@discoveryjs/discovery
Advanced tools
Changelog
1.0.0-beta.63 (07-02-2022)
popup
view to auto hide when trigger elements are removing from a documentApp.modelfreeLoadData()
method, use App#loadDataFromEvent()
or #.actions.upload
insteadWidget#unloadData()
method to reset loaded data and context if any#.dataLoaded
property to indicate is data loaded or notimport { upload } from '@discoveryjs/discovery'
and configured via options.upload
options.upload
is truthy for App
options.upload
:
accept
("application/json,.json"
when ommited) – specify accept attribute for file selection inputsdragdrop
(true
when ommited) – enable "drop file to load data" featureWidget#actions
(available as #.actions
in jora queries) dictionary for special actions:
startInspect
and stopInspect
when inspector is applieduploadFile
and unloadData
when upload
extension is appliedmarkdown
view:
{{ query }}
syntaxsource
valuetable
view cellChangelog
1.0.0-beta.62 (14-10-2021)
source
viewjora
for discovery-query
syntax (used in source
and markdown
)anchor
option to enable itmarkdown
view and anchors
option to disable ithstack
to use flexbox for layoutimage
viewimage-preview
to behave as image
but with chess backgroundlineNum
option to the source
viewChangelog
1.0.0-beta.61 (31-03-2021)
push
mode loading when no data is provided (model-free mode build as a single file)App
initWidget
's init to set a container lastnavButtons
as extensions: indexPage
, reportPage
, loadData
, inspect
and darkmodeToggle
Changelog
1.0.0-beta.60 (19-03-2021)
data-page
attribute on widget's root with current pageId
as a value--discovery-page-padding-top/right/bottom/left
custom propertiesChangelog
1.0.0-beta.59 (10-03-2021)
Changelog
1.0.0-beta.58 (05-03-2021)
source
view supported syntaxes to list modes with no mimeoptions
parameter for loadDataFromUrl()
with following options:
fetch
– is passing as is into fetch()
as second argumentisResponseOk(response)
– a function to check response is okgetContentSize(url, response)
- a function to determine a size of decoded contentvalidateData(data)
- a function to check payload is valid response data, must throw an error if data is invalidWidget#setContainer()
to append only if container is an instance of Node
Changelog
1.0.0-beta.57 (04-03-2021)
struct
view when click events aren't handled--discovery-nav-height
as compliment for --discovery-nav-width
Widget#nav.replace()
methodinspector
default exportsinspector
option for Widget
to allow disable inspector if neededrouter
option for App
to allow disable router if neededresolveValueLinks()
and query()
methods to prepare handler API (i.e. discovery.setPrepare((data, { resolveValueLinks, query }) => ...)
)rollbackContainerStyles()
util functionChangelog
1.0.0-beta.56 (01-03-2021)
report
page-b64
on report
pageChangelog
1.0.0-beta.55 (17-02-2021)
injectStyles()
helperprogress
viewprogressbar
and re-use progress
stylesstyles
option for preloader, the same as for Widget
/App
constructorslib/preloader.css
and dist/discovery-preloader.css
to the packageChangelog
1.0.0-beta.54 (15-02-2021)
Widget#setDataProgress()
is used, which resulted in double page renderingmodel-free
modelocalStorage
access (local variable localStorage
was renamed into something neutral)markdown
view