Jos de Jong
2a861a2868
Defined charset="utf-8" and lang="en" in all examples
2020-09-23 10:23:38 +02:00
Josh Kelley
69fbe63f0e
Multi-select mouse events now honor the event's window ( #1098 )
...
* Multi-select mouse events now honor the event's window
This prevents errors from opening JSONEditor in a child window (such as `window.open` or third-party libraries like react-new-window).
* Add a demo of showing a JSONEditor in a child window
* Minor spelling fixes
* Further improvements to new window support
Use `event.view` instead of the global `window`. Copy VanillaPicker styles in the example so that the color picker is correctly styled.
* Add 'noopener'
This helps security; otherwise, JavaScript running in the context of the new window can access the original window object via the `window.opener` property, even if it's a different origin.
* Update modal handling for new windows
There are two approaches we could take; we could use the existing modalAnchor property and make callers responsible for setting it, or we could modify the default handling to default to the node's container body. For now, I chose to make callers responsible.
Rename showTransformModal's `anchor` parameter to `container`; as far as I can tell, `anchor` didn't work properly.
2020-09-23 10:06:12 +02:00
Jos de Jong
2cbac6fd5c
Default to tree mode in custom styling example
2020-09-09 09:05:04 +02:00
Jos de Jong
09f2a398ca
Make React examples maintenance friendly
2020-07-04 15:06:15 +02:00
dependabot[bot]
3048e710c9
Bump websocket-extensions in /examples/react_advanced_demo ( #1007 )
...
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node ) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/faye/websocket-extensions-node/releases )
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md )
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-06 16:49:11 +02:00
dependabot[bot]
2d38d0bbc9
Bump websocket-extensions from 0.1.3 to 0.1.4 in /examples/react_demo ( #1006 )
...
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node ) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/faye/websocket-extensions-node/releases )
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md )
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-06 14:08:16 +02:00
josdejong
c2fa821a31
Update example 20 to also show how to customize font color (See #990 )
2020-05-23 14:26:29 +02:00
josdejong
7dafdf8d9a
Update dependencies of React examples
2020-05-03 10:13:57 +02:00
Snyk bot
16a46885fe
fix: upgrade react-scripts from 3.4.0 to 3.4.1 ( #943 )
...
Snyk has created this PR to upgrade react-scripts from 3.4.0 to 3.4.1.
See this package in NPM:
https://www.npmjs.com/package/react-scripts
See this project in Snyk:
https://app.snyk.io/org/josdejong/project/913c7924-24ae-4f86-8a9b-91da27c3e8f1?utm_source=github&utm_medium=upgrade-pr
2020-03-24 20:10:00 +01:00
greenkeeper[bot]
ac5a24ffce
Update react in group default to the latest version 🚀 ( #933 )
...
* fix(package): update react to version 16.13.1
* fix(package): update react to version 16.13.1
* fix(package): update react-dom to version 16.13.1
* fix(package): update react-dom to version 16.13.1
* chore(package): update lockfile examples/react_demo/package-lock.json
* chore(package): update lockfile examples/react_advanced_demo/package-lock.json
Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-03-20 22:48:22 +01:00
dependabot[bot]
341cc2ca8e
Bump acorn from 5.7.3 to 5.7.4 in /examples/react_demo ( #930 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-14 15:37:29 +01:00
dependabot[bot]
98e9fb222c
Bump acorn from 5.7.3 to 5.7.4 in /examples/react_advanced_demo ( #929 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-14 15:36:48 +01:00
greenkeeper[bot]
d0a2644485
Update react in group default to the latest version 🚀 ( #919 )
...
* fix(package): update react to version 16.13.0
* fix(package): update react to version 16.13.0
* fix(package): update react-dom to version 16.13.0
* fix(package): update react-dom to version 16.13.0
* chore(package): update lockfile examples/react_demo/package-lock.json
* chore(package): update lockfile examples/react_advanced_demo/package-lock.json
2020-02-29 13:13:38 +01:00
jos
bdd90847eb
Update dependencies in react examples
2020-02-15 11:04:33 +01:00
jos
9e9fd72edd
Merge remote-tracking branch 'origin/develop' into develop
2020-02-05 08:50:19 +01:00
jos
c5c64bcde3
Merge branch 'feature/custom_query_language' into develop
...
# Conflicts:
# HISTORY.md
2020-02-05 08:50:12 +01:00
greenkeeper[bot]
a20c9f1f9f
Update react-scripts in group default to the latest version 🚀 ( #890 )
...
* fix(package): update react-scripts to version 3.3.1
* fix(package): update react-scripts to version 3.3.1
* chore(package): update lockfile examples/react_demo/package-lock.json
* chore(package): update lockfile examples/react_advanced_demo/package-lock.json
2020-02-02 17:57:09 +01:00
jos
7d4b72fb38
Publish v8.3.0
2020-01-18 14:26:28 +01:00
jos
d12a5e7cf2
Improve projection in example to flatten picking a single field
2020-01-04 12:24:12 +01:00
jos
ad430a3173
Improve example with a `projection` which flattens the selected fields
2020-01-04 12:21:01 +01:00
jos
9ed5d5c5ae
Work out handling of `'@'` field in example
2020-01-04 11:41:11 +01:00
jos
40d312b987
Work out fixme in the example
2020-01-04 10:46:21 +01:00
jos
e09fde628b
Change `showTransformModal` to pass an object with properties. Fix transform not working in `text` and `preview` mode.
2020-01-04 10:39:34 +01:00
jos
aba0a58383
Change `showTransformModal` to pass an object with properties. Fix transform not working in `text` and `preview` mode.
2020-01-04 10:16:32 +01:00
jos
6ece0f9acb
Merge branch 'develop' into feature/custom_query_language
...
# Conflicts:
# src/js/JSONEditor.js
2020-01-04 09:59:22 +01:00
greenkeeper[bot]
1f02eda866
Update jsoneditor in group default to the latest version 🚀 ( #868 )
...
* fix(package): update jsoneditor to version 8.0.0
* fix(package): update jsoneditor to version 8.0.0
* chore(package): update lockfile examples/react_demo/package-lock.json
* chore(package): update lockfile examples/react_advanced_demo/package-lock.json
2019-12-11 17:37:48 +01:00
jos
d2332dc308
Implement proof of concept for `createQuery` and `executeQuery`, see #857
2019-12-11 17:09:47 +01:00
Small
ce15bb4b37
add timestampFormat ( #863 )
...
* add timestampFormat
* use createTextNode instead innerHTML
2019-12-11 11:34:24 +01:00
Meir Rotstein
84950ac69a
onValidationError to report any kind of error ( #861 )
...
* onValidationError to report any kind of error
* lint fixes
2019-12-08 10:35:22 +01:00
jos
45ade363f4
Update dependencies of example projects
2019-12-08 10:19:21 +01:00
Meir Rotstein
266eeec21a
onValidationError option ( #854 )
...
* provide onValidationError callback
* linter fixes
* docu fixes
* textmode - invoke callback also when no errors
This to cover situation of changes that fixes validations
* fixed cautom validation example
2019-12-01 16:21:16 +01:00
jos
87691e6693
Remove test options from example again (see #850 )
2019-12-01 11:56:22 +01:00
jos
0d4525d3d2
Fixed #850 : make autocomplete options robust against non-string inputs
2019-12-01 11:54:56 +01:00
greenkeeper[bot]
58c6379e32
Update react in group default to the latest version 🚀 ( #846 )
...
* fix(package): update react to version 16.12.0
* fix(package): update react to version 16.12.0
* fix(package): update react-dom to version 16.12.0
* fix(package): update react-dom to version 16.12.0
* chore(package): update lockfile examples/react_demo/package-lock.json
* chore(package): update lockfile examples/react_advanced_demo/package-lock.json
2019-11-15 19:42:08 +01:00
jos
da235536bc
Update dependencies of react example projects
2019-10-23 14:41:06 +02:00
jos
ecb1674f09
Update dependencies
2019-10-05 22:10:48 +02:00
greenkeeper[bot]
42821e2c53
Update react in group default to the latest version 🚀 ( #807 )
...
* fix(package): update react to version 16.10.2
* fix(package): update react to version 16.10.2
* fix(package): update react-dom to version 16.10.2
* fix(package): update react-dom to version 16.10.2
* chore(package): update lockfile examples/react_demo/package-lock.json
* chore(package): update lockfile examples/react_advanced_demo/package-lock.json
2019-10-05 21:54:58 +02:00
greenkeeper[bot]
3997062911
Update react in group default to the latest version 🚀 ( #803 )
...
* fix(package): update react to version 16.10.0
* fix(package): update react to version 16.10.0
* fix(package): update react-dom to version 16.10.0
* fix(package): update react-dom to version 16.10.0
* chore(package): update lockfile examples/react_demo/package-lock.json
* chore(package): update lockfile examples/react_advanced_demo/package-lock.json
2019-09-29 16:29:05 +02:00
greenkeeper[bot]
8633f33420
Update react-scripts in group default to the latest version 🚀 ( #797 )
...
* fix(package): update react-scripts to version 3.1.2
* fix(package): update react-scripts to version 3.1.2
* chore(package): update lockfile examples/react_demo/package-lock.json
* chore(package): update lockfile examples/react_advanced_demo/package-lock.json
2019-09-19 22:36:31 +02:00
Vishwas Navada K
f100c4f403
change jsoneditor dependency property value. ( #787 )
...
* change jsoneditor dependency property value.
Adding the jsoneditor version into package.json npm install did not install jsoneditor with "file:../..".
* update jsoneditor version to have version.
2019-09-07 11:29:36 +02:00
jos
ceb08fe13d
Some fixes and updates in examples
2019-09-01 16:37:57 +02:00
jos
6bfede956b
Rewrite code styling of browser examples
2019-08-29 15:45:32 +02:00
jos
a5d6b8a65b
Set up code style linting with standardjs
2019-08-28 13:21:14 +02:00
dependabot[bot]
06618fcbd5
Bump eslint-utils from 1.4.0 to 1.4.2 in /examples/react_advanced_demo ( #775 )
...
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils ) from 1.4.0 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases )
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.4.0...v1.4.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-08-28 10:38:38 +02:00
dependabot[bot]
e9f301c901
Bump eslint-utils from 1.4.0 to 1.4.2 in /examples/react_demo ( #776 )
...
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils ) from 1.4.0 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases )
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.4.0...v1.4.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-08-28 10:38:17 +02:00
jos
ee64c1fbb3
Update dependencies of react examples
2019-08-15 11:45:18 +02:00
jos
6bef66aaba
Merge branch 'develop' into feature/preview
...
# Conflicts:
# HISTORY.md
2019-07-24 13:48:20 +02:00
jos
745a4f3665
Implement validation in mode `"preview"`
2019-07-24 13:30:44 +02:00
jos
8c06c41f02
Merge remote-tracking branch 'origin/develop' into develop
2019-07-20 11:11:12 +02:00
jos
6f6f58bb33
Update package-lock.json files of react examples
2019-07-20 11:11:01 +02:00