@discoveryjs/discovery
Advanced tools
Changelog
1.0.0-beta.83 (03-04-2024)
encodings
option for App
, Widget
(has no effect for now), preloader (via loadDataOptions
) and Loading Data API (see Encodings)Changelog
1.0.0-beta.82 (20-03-2024)
Make report
→ Discover
report
→ discovery
#report...
→ #discovery...
, use Widget.options.intoreportToDiscoveryRedirect
to disable itWidget#reportPageId
→ Widget#discoveryPageId
, with default discovery
instead of report
Widget.options.reportPageId
→ Widget.options.discoveryPageId
navButtons.reportPage
→ navButtons.discoveryPage
, button's name
changed into discovery-page
.report-*
→ .discovery-*
.discovery-editor
→ .discovery-view-editor
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)pointerOffsetX
and pointerOffsetY
options for popup
view and view.tooltip
positionMode: natural
for tooltips by default, can be changed via tooltip optionsisArray()
, isSet()
and isRegExp()
badge
view options when it receives an array as datastruct
view annotation styling to avoid treating href
values as links when they are falsyhide()
methodposition: pointer
Changelog
1.0.0-beta.81 (06-03-2024)
TypedArray
s and Set
values in struct
, signature
and table
views'only'
value for darkmode
option of Widget
& App
, which forces to use dark mode with no option for a user to switch to light modescalarCol
option for table
view to display the row value as the first cellstruct
viewstruct
view by default. To enable it, the annotateScalars: true
option must be set explicitly on object marker definitionsource
viewtable
view when rendered in struct
viewCodeMirror
of QueryEditor
and ViewEditor
, e.g. discovery.view.QueryEditor.CodeMirror.defineMode('my-mode', ...)
Changelog
1.0.0-beta.80 (21-01-2024)
showDelay
when the pointer moves over nested trigger elements before coming to a stopChangelog
1.0.0-beta.79 (29-10-2023)
struct
and structure
viewsstruct
view[…]
Widget#view.attachTooltip(el, config, data, context)
methodPopup#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.Popup#show()
method, when set to a truthy value it specifies to bypass show delay if anyPopup#options
in favor of propertiesWidget
to utilize deep comparison for page params, ensuring more accurate detection of changesWidget#log()
method where it would crash when attempting to output a single collapsed errordefaultPage
option to have no effectChangelog
1.0.0-beta.78 (21-09-2023)
Changelog
1.0.0-beta.77 (27-07-2023)
createLoadDataState()
method as utilsWidget#log()
methodlogLevel
option for Widget
and App
. Supported values: silent
, error
, warn
, info
, perf
(default) and debug
. To disable any logging set logLevel
to silent
logger
option (default to console
) to override an interface for a logging. Setting to falsy value will disable any loggingonFinish()
callback on Progressbar
getting an errortitle
in expand
view configresolveLink()
method in page configChangelog
1.0.0-beta.76 (10-07-2023)
limitCompactObjectEntries
and maxPropertyLength
options to struct
viewprelude
and postlude
slots (new options in config) for source
viewsectionPrelude
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)codeConfig
option for markdown
view to specify a config for code block renderingcodeActionButtons
option for markdown
view, use codeCofig.actionButtons
insteadsource
view:
action-buttons
, lines
and source
blocks into view-source__content
blockview-source__
prefix for class names of action-buttons
, lines
and source
blockssource
view content when size of source block is restrictedstruct
view to no longer rely on paddings usedstruct
viewtable
view rendering when a column content defined as a view shorthand with config, e.g. view{ prop: 1 }
beforeDemo
, demo
and afterDemo
sections in usage renderChangelog
1.0.0-beta.75 (15-06-2023)
.jsonxl
to list of default extensions for uploadsource
viewsource
viewactionButtons
option for source
view to add extra buttons (or any views) before "Copy to clipboard" buttoncodeActionButtons
option for markdown
view to pass it as is to source
view used to render code blocks in markdown