@puckeditor/plugin-pages 0.6.1-canary.4a204adc → 0.6.1-canary.64b72a90
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 +8 -8
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5099,7 +5099,7 @@ init_react_import();
|
|
|
5099
5099
|
// ../platform-client/components/AutoForm/AutoForm.tsx
|
|
5100
5100
|
init_react_import();
|
|
5101
5101
|
import { AutoField, FieldLabel } from "@puckeditor/core";
|
|
5102
|
-
import { useEffect as useEffect11, useState as useState9 } from "react";
|
|
5102
|
+
import { useEffect as useEffect11, useRef as useRef9, useState as useState9 } from "react";
|
|
5103
5103
|
|
|
5104
5104
|
// css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/AutoForm/AutoForm.module.css#css-module
|
|
5105
5105
|
init_react_import();
|
|
@@ -5185,7 +5185,7 @@ import { useEffect as useEffect12, useState as useState10 } from "react";
|
|
|
5185
5185
|
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
5186
5186
|
|
|
5187
5187
|
// ../platform-client/components/Code/Code.tsx
|
|
5188
|
-
import { useRef as
|
|
5188
|
+
import { useRef as useRef10, useState as useState11 } from "react";
|
|
5189
5189
|
import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
5190
5190
|
var getClassName9 = get_class_name_factory_default2("Code", Code_module_default);
|
|
5191
5191
|
var getClassNameTab = get_class_name_factory_default2("Tab", Code_module_default);
|
|
@@ -12925,7 +12925,7 @@ init_react_import();
|
|
|
12925
12925
|
|
|
12926
12926
|
// ../platform-client/components/Table/Table.tsx
|
|
12927
12927
|
init_react_import();
|
|
12928
|
-
import { useEffect as useEffect28, useMemo as useMemo19, useRef as
|
|
12928
|
+
import { useEffect as useEffect28, useMemo as useMemo19, useRef as useRef21, useState as useState27 } from "react";
|
|
12929
12929
|
|
|
12930
12930
|
// css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Table/Table.module.css#css-module
|
|
12931
12931
|
init_react_import();
|
|
@@ -12975,7 +12975,7 @@ init_react_import();
|
|
|
12975
12975
|
var styles_module_default7 = { "Pages": "_Pages_ey49w_5", "Pages-addPage": "_Pages-addPage_ey49w_12", "Pages-loader": "_Pages-loader_ey49w_18", "Pages-list": "_Pages-list_ey49w_26", "Pages-search": "_Pages-search_ey49w_34", "Pages-searchInput": "_Pages-searchInput_ey49w_38", "PagesPage": "_PagesPage_ey49w_59", "PagesPage--expanded": "_PagesPage--expanded_ey49w_69", "PagesPage-versions": "_PagesPage-versions_ey49w_73", "PagesPage-header": "_PagesPage-header_ey49w_96", "PagesPage--active": "_PagesPage--active_ey49w_124", "PagesPage-headerMain": "_PagesPage-headerMain_ey49w_137", "PagesPage-headerIcon": "_PagesPage-headerIcon_ey49w_144", "PagesPage-loader": "_PagesPage-loader_ey49w_148", "PagesVersion": "_PagesVersion_ey49w_174", "PagesVersion-inner": "_PagesVersion-inner_ey49w_174", "PagesVersion--current": "_PagesVersion--current_ey49w_189", "PagesVersion-header": "_PagesVersion-header_ey49w_204", "PagesVersion-version": "_PagesVersion-version_ey49w_210", "PagesVersion-date": "_PagesVersion-date_ey49w_216" };
|
|
12976
12976
|
|
|
12977
12977
|
// src/components/PagePlugin/index.tsx
|
|
12978
|
-
import { useCallback as useCallback9, useEffect as useEffect29, useMemo as useMemo22, useRef as
|
|
12978
|
+
import { useCallback as useCallback9, useEffect as useEffect29, useMemo as useMemo22, useRef as useRef22, useState as useState30 } from "react";
|
|
12979
12979
|
import { resolveAllData as resolveAllData2, useGetPuck as useGetPuck2 } from "@puckeditor/core";
|
|
12980
12980
|
|
|
12981
12981
|
// src/components/CreateForm/index.tsx
|
|
@@ -29282,7 +29282,7 @@ var PagePlugin = (opts) => {
|
|
|
29282
29282
|
const getPuck = useGetPuck2();
|
|
29283
29283
|
const [confirmModalOpen, setConfirmModalOpen] = useState30(false);
|
|
29284
29284
|
const [pendingNavigation, setPendingNavigation] = useState30(null);
|
|
29285
|
-
const lastRequestedPathRef =
|
|
29285
|
+
const lastRequestedPathRef = useRef22(void 0);
|
|
29286
29286
|
const parentOrigin = opts?.parentOrigin ?? "https://cloud.puckeditor.com";
|
|
29287
29287
|
const siteIdHeader = useSiteId();
|
|
29288
29288
|
const path = usePath();
|
|
@@ -29612,7 +29612,7 @@ var PagePlugin = (opts) => {
|
|
|
29612
29612
|
// src/components/HeaderActions/index.tsx
|
|
29613
29613
|
init_react_import();
|
|
29614
29614
|
import { createUsePuck, useGetPuck as useGetPuck3 } from "@puckeditor/core";
|
|
29615
|
-
import { useMemo as useMemo23, useRef as
|
|
29615
|
+
import { useMemo as useMemo23, useRef as useRef23, useState as useState31 } from "react";
|
|
29616
29616
|
|
|
29617
29617
|
// css-module:/home/runner/work/puck-platform/puck-platform/packages/plugin-pages/src/components/HeaderActions/styles.module.css#css-module
|
|
29618
29618
|
init_react_import();
|
|
@@ -29808,7 +29808,7 @@ var HeaderActions = (opts) => {
|
|
|
29808
29808
|
const defaultVersion = getDefaultPageVersion(resolvedPage);
|
|
29809
29809
|
replaceEditorState(defaultVersion?.data);
|
|
29810
29810
|
};
|
|
29811
|
-
const saving =
|
|
29811
|
+
const saving = useRef23(false);
|
|
29812
29812
|
const handleSaveDraft = async () => {
|
|
29813
29813
|
if (saving.current) return;
|
|
29814
29814
|
const path = activePage;
|
|
@@ -29845,7 +29845,7 @@ var HeaderActions = (opts) => {
|
|
|
29845
29845
|
saving.current = false;
|
|
29846
29846
|
}
|
|
29847
29847
|
};
|
|
29848
|
-
const publishing =
|
|
29848
|
+
const publishing = useRef23(false);
|
|
29849
29849
|
const handlePublish = async () => {
|
|
29850
29850
|
if (publishing.current) return;
|
|
29851
29851
|
const path = activePage;
|
package/package.json
CHANGED