@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/dist/index.mjs CHANGED
@@ -1319,7 +1319,7 @@ var VisualEditor = ({
1319
1319
  if (initialData) {
1320
1320
  api.importJSON(initialData);
1321
1321
  }
1322
- }, [initialData, api]);
1322
+ }, [initialData]);
1323
1323
  useEffect(() => {
1324
1324
  if (mode) {
1325
1325
  setEditorMode(mode);
@@ -1330,7 +1330,7 @@ var VisualEditor = ({
1330
1330
  mode.onModeActivate(api);
1331
1331
  }
1332
1332
  }
1333
- }, [mode, setEditorMode, registry, api]);
1333
+ }, [mode]);
1334
1334
  useEffect(() => {
1335
1335
  if (onChange) {
1336
1336
  const data = api.exportJSON();