Skip to content

Releases: discoveryjs/discovery

1.0.0-beta.21

14 Sep 21:27
Compare
Choose a tag to compare
  • Fixed popup wrong position issues in some conditions (#16)
  • Exposed layout helpers as utils: getOffsetParent, getPageOffset, getBoundingRect and getViewportRect
  • 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 and limitCollapsed options support for struct 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

09 Sep 15:08
Compare
Choose a tag to compare
  • Moved wrapping static outside (to @discoveryjs/cli)
  • Removed unnecessary deps

1.0.0-beta.19

09 Sep 01:24
Compare
Choose a tag to compare
  • Fixed missed dependency and module for libs

1.0.0-beta.18

09 Sep 01:06
Compare
Choose a tag to compare

1.0.0-beta.17

06 Sep 13:26
Compare
Choose a tag to compare
  • Config
    • Extended libs option in model config to contain CSS files and made it available for model's prepare script
  • 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
  • Client
    • Fixed output of values that contain HTML in signature view

1.0.0-beta.16

24 Jul 15:14
Compare
Choose a tag to compare
  • Config
    • Added --pretty-data option to build to output data.json with indentation (better for deltas)
    • Allowed to set up path to config as a value for discovery field in package.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)
  • Build
    • Fixed missed quotes for data: urls on CSS bundling
    • Fixed unnecessary require() resolving in model code
  • Client
    • Changed QueryEditor constructor to take a function to get suggestions instead of discovery 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

1.0.0-beta.15

03 Jul 14:15
Compare
Choose a tag to compare
  • Client
    • Added fallback option to auto-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

1.0.0-beta.14

26 Jun 23:04
Compare
Choose a tag to compare
  • 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 of struct view
    • Prevented influence on h3 and textarea element styles on report page
    • Tweaked headers styles
    • Changed header view to look like h4 view but still level 2 header (h2 tag is used)
    • Added h5 view
    • Added beforeTabs and afterTabs config options to tabs 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 to link view now) and tweaked link's underline style
    • Reorganized CSS imports to avoid style duplicates
    • Fixed indent of empty list text for ul and ol views

1.0.0-beta.13

18 Jun 11:52
Compare
Choose a tag to compare
  • Server
    • Fixed model assets generation when non-default config file is specified
  • Client
    • Fixed expanded state for tree view leafs when expanded 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() to View#composeConfig() and changed behaviour to handle more use cases
    • Changed View#normalizeConfig() to able return a null (no config) and no validation on view option is present (use View#ensureValidConfig() for that)
    • Added a list item config extension:
      • via itemConfig option for list (list-*), columns, menu, select, tree and tree-leaf views
      • via rowConfig option for table view
      • via tabConfig option for tabs view
    • Extended className option in a view config to take a function(data, context) or Array.<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 to auto-link view, a function to preprocess a href value

1.0.0-beta.12

03 Jun 21:05
Compare
Choose a tag to compare
  • Client
    • Added ViewRenderer#normalizeConfig(config) and ViewRenderer#extendConfig(config, extension) methods (available as discovery.view.*)
    • Removed right padding/margin for last items in hstack and columns
    • Changed styles for button, input and select 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 (added view- prefix)
    • Changed source view to extend flexibility to setup highlight ranges