@deckedout/visual-editor 1.0.6 → 1.0.7
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.
- package/README.md +2 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
# @deckedout/visual-editor
|
|
2
2
|
|
|
3
3
|
[](https://github.com/EIP-DeckedOut-Orga/eip-visual-editor-package/actions/workflows/ci.yml)
|
|
4
|
+
[](https://sonarcloud.io/summary/new_code?id=EIP-DeckedOut-Orga_eip-visual-editor-package)
|
|
5
|
+
[](https://sonarcloud.io/summary/new_code?id=EIP-DeckedOut-Orga_eip-visual-editor-package)
|
|
4
6
|
[](https://badge.fury.io/js/@deckedout%2Fvisual-editor)
|
|
5
7
|
[](https://opensource.org/licenses/MIT)
|
|
6
|
-
[]()
|
|
7
8
|
|
|
8
9
|
A flexible, drag-and-drop visual editor built with React and Konva for creating interactive canvases with customizable elements.
|
|
9
10
|
|
package/dist/index.js
CHANGED
|
@@ -1392,7 +1392,7 @@ var VisualEditor = ({
|
|
|
1392
1392
|
if (initialData) {
|
|
1393
1393
|
api.importJSON(initialData);
|
|
1394
1394
|
}
|
|
1395
|
-
}, [initialData
|
|
1395
|
+
}, [initialData]);
|
|
1396
1396
|
(0, import_react5.useEffect)(() => {
|
|
1397
1397
|
if (mode) {
|
|
1398
1398
|
setEditorMode(mode);
|
|
@@ -1403,7 +1403,7 @@ var VisualEditor = ({
|
|
|
1403
1403
|
mode.onModeActivate(api);
|
|
1404
1404
|
}
|
|
1405
1405
|
}
|
|
1406
|
-
}, [mode
|
|
1406
|
+
}, [mode]);
|
|
1407
1407
|
(0, import_react5.useEffect)(() => {
|
|
1408
1408
|
if (onChange) {
|
|
1409
1409
|
const data = api.exportJSON();
|