Skip to content

Releases: discoveryjs/discovery

1.0.0-beta.83 Introducing encodings

04 Apr 02:33
Compare
Choose a tag to compare
  • Added encodings option for App, Widget (has no effect for now), preloader (via loadDataOptions) and Loading Data API (see Encodings)

1.0.0-beta.82

24 Mar 00:19
Compare
Choose a tag to compare
  • Rebranded the "report page" as the "discovery page"
    • Changed text on button Make reportDiscover
    • Changed page slug reportdiscovery
    • Added redirect for locations #report...#discovery..., use Widget.options.intoreportToDiscoveryRedirect to disable it
    • Widget#reportPageIdWidget#discoveryPageId, with default discovery instead of report
    • Widget.options.reportPageIdWidget.options.discoveryPageId
    • navButtons.reportPagenavButtons.discoveryPage, button's name changed into discovery-page
    • CSS classes:
      • .report-*.discovery-*
      • .discovery-editor.discovery-view-editor
  • Added positionMode option for popup view. When set to "natural", the popup attempts to position itself at the bottom right side if dimensions allow, instead of positioning towards the larger available space by default (value "safe" for the option)
  • Added pointerOffsetX and pointerOffsetY options for popup view and view.tooltip
  • Enabled positionMode: natural for tooltips by default, can be changed via tooltip options
  • Exposed type checking helpers isArray(), isSet() and isRegExp()
  • Fixed badge view options when it receives an array as data
  • Fixed struct view annotation styling to avoid treating href values as links when they are falsy
  • Fixed a sticky tooltip for "Enable view inspection" button on inspecting start
  • Fixed the delayed popup display after calling the hide() method
  • Fixed positioning of popups with position: pointer
  • Fixed animation of the inspector's details popup when transitioning into full-screen mode

1.0.0-beta.81

07 Mar 02:30
Compare
Choose a tag to compare
  • Added basic support for TypedArrays and Set values in struct, signature and table views
  • Added 'only' value for darkmode option of Widget & App, which forces to use dark mode with no option for a user to switch to light mode
  • Added scalarCol option for table view to display the row value as the first cell
  • Added a thousandth delimiter for text in annotations in struct view
  • Removed an annotation of scalar values by object markers in struct view by default. To enable it, the annotateScalars: true option must be set explicitly on object marker definition
  • Modified the badge view to enable passing all options via config, in addition to data
  • Fixed the highlighting of Jora assertions
  • Fixed displaying supported syntaxes in view's showcase for source view
  • Fixed passing context to table view when rendered in struct view
  • Exposed used CodeMirror for extension purposes via a static property CodeMirror of QueryEditor and ViewEditor, e.g. discovery.view.QueryEditor.CodeMirror.defineMode('my-mode', ...)

1.0.0-beta.80

21 Jan 18:21
Compare
Choose a tag to compare
  • Fixed the highlighting of Jora assertions when the assertion is the same as a literal keyword
  • Fixed updating of an expanded query output in query editor
  • Fixed the issue with displaying popups using showDelay when the pointer moves over nested trigger elements before coming to a stop
  • Improved view inspecting of popups
  • Bumped jora to 1.0.0-beta.10

1.0.0-beta.79 Query graph, reworked query editor

30 Oct 02:06
Compare
Choose a tag to compare
  • Reworked report page to support query graph and other improvements
  • Uniformed font and size for monospace views
  • Enlarged action buttons in struct and signature views
  • Improved UX for signature popup displaying in struct view
  • Changed rendering of after-annotations to render in a prelude when a value is expanded
  • Changed default rendering of arrays in a table cell to display number of array elements instead of […]
  • Added separate colors for keywords and assertions in a query editor
  • Added a 3-second delay for enabling view inspect mode when the "inspect" button is clicked with the Cmd (⌘) or Ctrl key (useful for tooltips, context menus etc.)
  • Added Widget#view.attachTooltip(el, config, data, context) method
  • Added Popup#showDelay option to control the behavior of popup appearance. The option specifies the delay in milliseconds after the pointer stops moving over a trigger before the popup is displayed. By default, there is no delay. When set to true, the default delay of 300 milliseconds is applied. If a positive number is provided, it is used as the delay, while other values are treated as 0, resulting in an immediate show.
  • Added third parameter for Popup#show() method, when set to a truthy value it specifies to bypass show delay if any
  • Removed Popup#options in favor of properties
  • Fixed editor to not render text until gets focus
  • Fixed suggestion popup positioning in query editor in some cases
  • Modified Widget to utilize deep comparison for page params, ensuring more accurate detection of changes
  • Fixed query editor to not suggest a variant which exactly equals to current text
  • Fixed Widget#log() method where it would crash when attempting to output a single collapsed error
  • Added "Copy report as page hash" button
  • Fixed "Copy report permalink" button being always disabled
  • Fixed defaultPage option to have no effect
  • Bumped jora to 1.0.0-beta.9

1.0.0-beta.78

22 Sep 01:22
Compare
Choose a tag to compare
  • Bumped jora to 1.0.0-beta.8: assertions and dozens of new methods
  • Tweaked error output on app & data loading

1.0.0-beta.77

28 Jul 01:39
Compare
Choose a tag to compare
  • Exposed createLoadDataState() method as utils
  • Introduced internal logging subsystem:
    • Added Widget#log() method
    • Added logLevel option for Widget and App. Supported values: silent, error, warn, info, perf (default) and debug. To disable any logging set logLevel to silent
    • Added logger option (default to console) to override an interface for a logging. Setting to falsy value will disable any logging
  • Fixed displaying "Empty list" in view showcase when a view has no examples
  • Fixed calling onFinish() callback on Progressbar getting an error
  • Fixed an exception on unsubscribing from progressbar state sync on loading data error
  • Fixed "uncaught error in promise" on data load failure in preloader
  • Removed deprecated option title in expand view config
  • Removed warning on definition resolveLink() method in page config

1.0.0-beta.76

10 Jul 16:27
Compare
Choose a tag to compare
  • Added limitCompactObjectEntries and maxPropertyLength options to struct view
  • Added prelude and postlude slots (new options in config) for source view
  • Added sectionPrelude and sectionPostlude for markdown view to define view config to render in the beggining of the section (right after a header) or in the end of the section (before next header or end of source)
  • Added codeConfig option for markdown view to specify a config for code block rendering
  • Removed codeActionButtons option for markdown view, use codeCofig.actionButtons instead
  • Changed markup of source view:
    • Wrapped action-buttons, lines and source blocks into view-source__content block
    • Added view-source__ prefix for class names of action-buttons, lines and source blocks
    • Added auto scrolling for source view content when size of source block is restricted
    • Fixed positioning for actions block when content overflows
  • Improved styles of the expanded section line in struct view to no longer rely on paddings used
  • Fixed rendering of truncated urls in struct view
  • Fixed table view rendering when a column content defined as a view shorthand with config, e.g. view{ prop: 1 }
  • Fixed context value for beforeDemo, demo and afterDemo sections in usage render

1.0.0-beta.75

27 Jun 22:48
Compare
Choose a tag to compare
  • Added .jsonxl to list of default extensions for upload
  • Improved markdown syntax highlighting in source view
  • Added "Copy to clipboard" button to source view
  • Added actionButtons option for source view to add extra buttons (or any views) before "Copy to clipboard" button
  • Added codeActionButtons option for markdown view to pass it as is to source view used to render code blocks in markdown

1.0.0-beta.74

11 Apr 15:56
Compare
Choose a tag to compare
  • Fixed preloader init when no data specified