@accelerated-agency/visual-editor 0.2.3 → 0.2.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.
- package/dist/index.js +3 -10
- package/dist/vite.cjs +1770 -165
- package/dist/vite.js +1770 -165
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4771,11 +4771,12 @@ function PlatformVisualEditorV2({
|
|
|
4771
4771
|
status,
|
|
4772
4772
|
tabs = [],
|
|
4773
4773
|
activeTab = "Visual Editor",
|
|
4774
|
-
loading = false,
|
|
4774
|
+
loading: _loading = false,
|
|
4775
4775
|
error = null,
|
|
4776
4776
|
showCloseButton = true,
|
|
4777
4777
|
closeLabel = "Close",
|
|
4778
|
-
loadingText = "Loading visual editor...",
|
|
4778
|
+
loadingText: _loadingText = "Loading visual editor...",
|
|
4779
|
+
renderLoading: _renderLoading,
|
|
4779
4780
|
saveDebounceSkips = 2,
|
|
4780
4781
|
experiment,
|
|
4781
4782
|
onClose,
|
|
@@ -4788,7 +4789,6 @@ function PlatformVisualEditorV2({
|
|
|
4788
4789
|
onNavigateRequested,
|
|
4789
4790
|
onDiscardDirty,
|
|
4790
4791
|
renderHeader,
|
|
4791
|
-
renderLoading,
|
|
4792
4792
|
renderError
|
|
4793
4793
|
}) {
|
|
4794
4794
|
const iframeRef = useRef(null);
|
|
@@ -4910,13 +4910,6 @@ function PlatformVisualEditorV2({
|
|
|
4910
4910
|
(tab) => onTabChange?.(tab),
|
|
4911
4911
|
[onTabChange]
|
|
4912
4912
|
);
|
|
4913
|
-
if (loading) {
|
|
4914
|
-
if (renderLoading) return renderLoading();
|
|
4915
|
-
return /* @__PURE__ */ jsx("div", { className: "fixed inset-0 z-[9999] flex items-center justify-center bg-slate-50", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-3", children: [
|
|
4916
|
-
/* @__PURE__ */ jsx("div", { className: "w-8 h-8 border-2 border-slate-200 border-t-indigo-500 rounded-full animate-spin" }),
|
|
4917
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-slate-400", children: loadingText })
|
|
4918
|
-
] }) });
|
|
4919
|
-
}
|
|
4920
4913
|
if (error) {
|
|
4921
4914
|
if (renderError) return renderError(error);
|
|
4922
4915
|
return /* @__PURE__ */ jsx("div", { className: "fixed inset-0 z-[9999] flex items-center justify-center bg-slate-50", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-2 text-center px-8", children: [
|