Releases: discoveryjs/discovery
Releases · discoveryjs/discovery
1.0.0-beta.83 Introducing encodings
- Added
encodings
option forApp
,Widget
(has no effect for now), preloader (vialoadDataOptions
) and Loading Data API (see Encodings)
1.0.0-beta.82
- Rebranded the "report page" as the "discovery page"
- Changed text on button
Make report
→Discover
- Changed page slug
report
→discovery
- Added redirect for locations
#report...
→#discovery...
, useWidget.options.intoreportToDiscoveryRedirect
to disable it Widget#reportPageId
→Widget#discoveryPageId
, with defaultdiscovery
instead ofreport
Widget.options.reportPageId
→Widget.options.discoveryPageId
navButtons.reportPage
→navButtons.discoveryPage
, button'sname
changed intodiscovery-page
- CSS classes:
.report-*
→.discovery-*
.discovery-editor
→.discovery-view-editor
- Changed text on button
- Added
positionMode
option forpopup
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
andpointerOffsetY
options forpopup
view andview.tooltip
- Enabled
positionMode: natural
for tooltips by default, can be changed via tooltip options - Exposed type checking helpers
isArray()
,isSet()
andisRegExp()
- Fixed
badge
view options when it receives an array as data - Fixed
struct
view annotation styling to avoid treatinghref
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
- Added basic support for
TypedArray
s andSet
values instruct
,signature
andtable
views - Added
'only'
value fordarkmode
option ofWidget
&App
, which forces to use dark mode with no option for a user to switch to light mode - Added
scalarCol
option fortable
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, theannotateScalars: 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 instruct
view - Exposed used CodeMirror for extension purposes via a static property
CodeMirror
ofQueryEditor
andViewEditor
, e.g.discovery.view.QueryEditor.CodeMirror.defineMode('my-mode', ...)
1.0.0-beta.80
- 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
- Reworked report page to support query graph and other improvements
- Uniformed font and size for monospace views
- Enlarged action buttons in
struct
andsignature
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
- 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
- Exposed
createLoadDataState()
method as utils - Introduced internal logging subsystem:
- Added
Widget#log()
method - Added
logLevel
option forWidget
andApp
. Supported values:silent
,error
,warn
,info
,perf
(default) anddebug
. To disable any logging setlogLevel
tosilent
- Added
logger
option (default toconsole
) to override an interface for a logging. Setting to falsy value will disable any logging
- Added
- Fixed displaying "Empty list" in view showcase when a view has no examples
- Fixed calling
onFinish()
callback onProgressbar
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
inexpand
view config - Removed warning on definition
resolveLink()
method in page config
1.0.0-beta.76
- Added
limitCompactObjectEntries
andmaxPropertyLength
options tostruct
view - Added
prelude
andpostlude
slots (new options in config) forsource
view - Added
sectionPrelude
andsectionPostlude
formarkdown
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 formarkdown
view to specify a config for code block rendering - Removed
codeActionButtons
option formarkdown
view, usecodeCofig.actionButtons
instead - Changed markup of
source
view:- Wrapped
action-buttons
,lines
andsource
blocks intoview-source__content
block - Added
view-source__
prefix for class names ofaction-buttons
,lines
andsource
blocks - Added auto scrolling for
source
view content when size of source block is restricted - Fixed positioning for actions block when content overflows
- Wrapped
- 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
andafterDemo
sections in usage render
1.0.0-beta.75
- 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 forsource
view to add extra buttons (or any views) before "Copy to clipboard" button - Added
codeActionButtons
option formarkdown
view to pass it as is tosource
view used to render code blocks in markdown
1.0.0-beta.74
- Fixed preloader init when no data specified