@terrestris/shogun-admin 18.1.0-next.2 → 18.1.0-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -77,7 +77,7 @@ export var JSONEditor = function (_a) {
|
|
|
77
77
|
var _b;
|
|
78
78
|
var _c;
|
|
79
79
|
var initialValue = _a.initialValue, onChangeProp = _a.onChange, editorProps = _a.editorProps, entityType = _a.entityType, dataField = _a.dataField, _d = _a.indentSize, indentSize = _d === void 0 ? 2 : _d;
|
|
80
|
-
var _e = useState(
|
|
80
|
+
var _e = useState(), currentValue = _e[0], setCurrentValue = _e[1];
|
|
81
81
|
// We need to keep track of whether the document has been formatted initially. This is necessary
|
|
82
82
|
// because the document will be formatted on mount, which will trigger the onChange event. We
|
|
83
83
|
// don't want to trigger the onChange event on mount, so we need to keep track of whether the
|
|
@@ -217,6 +217,11 @@ export var JSONEditor = function (_a) {
|
|
|
217
217
|
}
|
|
218
218
|
};
|
|
219
219
|
var isEditedManually = isEditedManuallyMap === null || isEditedManuallyMap === void 0 ? void 0 : isEditedManuallyMap["".concat(entityType, ".").concat(dataField)];
|
|
220
|
+
useEffect(function () {
|
|
221
|
+
if (initialValue) {
|
|
222
|
+
setCurrentValue(JSON.stringify(initialValue || undefined, null, indentSize));
|
|
223
|
+
}
|
|
224
|
+
}, [indentSize, initialValue]);
|
|
220
225
|
return (React.createElement(FullscreenWrapper, null,
|
|
221
226
|
React.createElement("div", { className: "json-editor" },
|
|
222
227
|
React.createElement("div", { className: "json-editor-toolbar" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@terrestris/shogun-admin",
|
|
3
|
-
"version": "18.1.0-next.
|
|
3
|
+
"version": "18.1.0-next.4",
|
|
4
4
|
"description": "The admin UI for the SHOGun Web-mapping backend.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"SHOGun",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"monaco-editor": "0.54.0",
|
|
60
60
|
"ol": "10.7.0",
|
|
61
61
|
"ol-mapbox-style": "12.4.1",
|
|
62
|
+
"proj4": "2.20.9",
|
|
62
63
|
"react": "19.0.0",
|
|
63
64
|
"react-dom": "19.0.0",
|
|
64
65
|
"react-hotkeys-hook": "5.2.4",
|
|
@@ -82,7 +83,7 @@
|
|
|
82
83
|
"@playwright/test": "1.60.0",
|
|
83
84
|
"@reduxjs/toolkit": "2.11.2",
|
|
84
85
|
"@rspack/cli": "1.7.3",
|
|
85
|
-
"@rspack/core": "1.7.
|
|
86
|
+
"@rspack/core": "1.7.3",
|
|
86
87
|
"@rspack/plugin-react-refresh": "1.6.0",
|
|
87
88
|
"@semantic-release/changelog": "6.0.3",
|
|
88
89
|
"@semantic-release/git": "10.0.1",
|