@accelerated-agency/visual-editor 0.3.4 → 0.3.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.js CHANGED
@@ -4827,6 +4827,7 @@ function PlatformVisualEditorV2({
4827
4827
  onTabChange,
4828
4828
  onDirtyChange,
4829
4829
  onEditorReady,
4830
+ onEditorUrlChanged,
4830
4831
  onSaveSuccess,
4831
4832
  onSaveError,
4832
4833
  onRequestSave,
@@ -4908,6 +4909,9 @@ function PlatformVisualEditorV2({
4908
4909
  setDirty(!!payload?.dirty);
4909
4910
  if (!payload?.dirty) mutationSkipCountRef.current = 0;
4910
4911
  break;
4912
+ case "editor-url-changed":
4913
+ await onEditorUrlChanged?.(payload ?? {});
4914
+ break;
4911
4915
  case "save-experiment":
4912
4916
  if (!onRequestSave) return;
4913
4917
  try {
@@ -4948,6 +4952,7 @@ function PlatformVisualEditorV2({
4948
4952
  loadPayload,
4949
4953
  saveDebounceSkips,
4950
4954
  onEditorReady,
4955
+ onEditorUrlChanged,
4951
4956
  onRequestSave,
4952
4957
  onSaveSuccess,
4953
4958
  onSaveError,