Releases: discoveryjs/discovery
Releases · discoveryjs/discovery
1.0.0-beta.21
- Fixed popup wrong position issues in some conditions (#16)
- Exposed layout helpers as
utils
:getOffsetParent
,getPageOffset
,getBoundingRect
andgetViewportRect
- Duplicated signature showing with click on button (better for mobile)
- Tweaked action buttons style in
struct
view to work better for touch devices - Changed
struct
view to open a link in a new tab - Added
limit
andlimitCollapsed
options support forstruct
view - Fixed pie chart in
signature
view popups to work in all browsers (#17) - Fixed
struct
view signature popup to show a path from a struct's data root
1.0.0-beta.20
- Moved wrapping static outside (to
@discoveryjs/cli
) - Removed unnecessary deps
1.0.0-beta.19
- Fixed missed dependency and module for libs
1.0.0-beta.18
- Removed
src/scan-fs.js
module since extracted into a separate package @discoveryjs/scan-fs - Extracted CLI tools to separate package @discoveryjs/cli
1.0.0-beta.17
- Config
- Extended
libs
option in model config to contain CSS files and made it available for model'sprepare
script
- Extended
- Build
- Added
--single-file
option to produce a model build as a single file - Fixed no favicon when favicon is not set up in a config (use default in this case)
- Tweaked relative path output in build log
- Added
- Client
- Fixed output of values that contain HTML in
signature
view
- Fixed output of values that contain HTML in
1.0.0-beta.16
- Config
- Added
--pretty-data
option to build to outputdata.json
with indentation (better for deltas) - Allowed to set up path to config as a value for
discovery
field inpackage.json
- Added
favicon
option to general and model configs - Added
viewport
option to general and model configs (to cusomize<meta name="viewport">
value) - Added
libs
option to model view config - Added model name injection into page HTML (as title)
- Added
- Build
- Fixed missed quotes for
data:
urls on CSS bundling - Fixed unnecessary
require()
resolving in model code
- Fixed missed quotes for
- Client
- Changed
QueryEditor
constructor to take a function to get suggestions instead ofdiscovery
instance - Fixed issue when suggestion item in editor can't be choosen by a click
- Fixed routing in model-free mode, when loading a data doesn't switch to report page
- Changed
1.0.0-beta.15
- Client
- Added
fallback
option toauto-link
view, which is using as a view config when a link is not resolved - Prevented influence of view build error block styles on other views on report page
- Added
1.0.0-beta.14
- Client
- Fixed trigger arrow position in
expand
view to be at the vertical middle - Tweaked
config-error
view styles - Changed render behaviour when a view config is not specified,
config-error
view is using in such cases now instead ofstruct
view - Prevented influence on
h3
andtextarea
element styles on report page - Tweaked headers styles
- Changed
header
view to look likeh4
view but still level 2 header (h2
tag is used) - Added
h5
view - Added
beforeTabs
andafterTabs
config options totabs
view - Fixed report header jumping on hover in edit mode on report page in some browsers
- Added virtual view
render
to render a view with config as current data and data as previous data - Removed global style rules for
<a>
element (it localized tolink
view now) and tweaked link's underline style - Reorganized CSS imports to avoid style duplicates
- Fixed indent of empty list text for
ul
andol
views
- Fixed trigger arrow position in
1.0.0-beta.13
- Server
- Fixed model assets generation when non-default config file is specified
- Client
- Fixed expanded state for
tree
view leafs whenexpanded
setting is a number - Improved display of long strings and strings that contains newlines in
struct
view - Fixed config composing in
context
view - Added
View#ensureValidConfig()
to return a config that can be used for rendering - Renamed
View#extendConfig()
toView#composeConfig()
and changed behaviour to handle more use cases - Changed
View#normalizeConfig()
to able return anull
(no config) and no validation on view option is present (useView#ensureValidConfig()
for that) - Added a list item config extension:
- via
itemConfig
option forlist
(list-*
),columns
,menu
,select
,tree
andtree-leaf
views - via
rowConfig
option fortable
view - via
tabConfig
option fortabs
view
- via
- Extended
className
option in a view config to take afunction(data, context)
orArray.<function(data, context)|string>
beside a string - Removed
fallback
view - Improved view config error output (view can be overrided by defining custom
config-error
view) - Improved
select
view:- Added selected value state in variants list
- Added
resetItem
option to specify a reset item in variants - Fixed
placeholder
is not visible - Fixed size when no item selected and no placeholder
- Added
href
option toauto-link
view, a function to preprocess a href value
- Fixed expanded state for
1.0.0-beta.12
- Client
- Added
ViewRenderer#normalizeConfig(config)
andViewRenderer#extendConfig(config, extension)
methods (available asdiscovery.view.*
) - Removed right padding/margin for last items in
hstack
andcolumns
- Changed styles for
button
,input
andselect
to be consistent with each others - Added disabled state for
menu-item
view - Added a message and disable menu items when JSON can't be copied through
struct
actions popup - Improved experience when JSON can't be copied through
struct
view actions, items are disabled and annotated with a reason message now - Added size of compacted JSON in
struct
actions menu - Renamed css class name for content block of
tree-leaf
view (addedview-
prefix) - Changed
source
view to extend flexibility to setup highlight ranges
- Added