@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 CHANGED
@@ -1,9 +1,10 @@
1
1
  # @deckedout/visual-editor
2
2
 
3
3
  [![CI](https://github.com/EIP-DeckedOut-Orga/eip-visual-editor-package/actions/workflows/ci.yml/badge.svg)](https://github.com/EIP-DeckedOut-Orga/eip-visual-editor-package/actions/workflows/ci.yml)
4
+ [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=EIP-DeckedOut-Orga_eip-visual-editor-package&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=EIP-DeckedOut-Orga_eip-visual-editor-package)
5
+ [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=EIP-DeckedOut-Orga_eip-visual-editor-package&metric=coverage)](https://sonarcloud.io/summary/new_code?id=EIP-DeckedOut-Orga_eip-visual-editor-package)
4
6
  [![npm version](https://badge.fury.io/js/@deckedout%2Fvisual-editor.svg)](https://badge.fury.io/js/@deckedout%2Fvisual-editor)
5
7
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
- [![Coverage](https://img.shields.io/badge/coverage-95%25-brightgreen)]()
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, api]);
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, setEditorMode, registry, api]);
1406
+ }, [mode]);
1407
1407
  (0, import_react5.useEffect)(() => {
1408
1408
  if (onChange) {
1409
1409
  const data = api.exportJSON();