efficient-easel 0.103.0 → 0.104.0
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 +33 -6
- package/dist/chunk-4EUWOGZF.js +1 -0
- package/dist/chunk-5D2XAZKH.js +62 -0
- package/dist/chunk-7755VWRT.js +4 -0
- package/dist/chunk-7GVLSNFW.js +1 -0
- package/dist/chunk-A2LFBOUF.js +1 -0
- package/dist/{chunk-Z3KBLIEH.js → chunk-BBRY7KI4.js} +1 -1
- package/dist/chunk-BVN33R76.js +1 -0
- package/dist/chunk-D6324C3E.js +5 -0
- package/dist/chunk-ERR437B5.js +1 -0
- package/dist/chunk-HMWJB3HF.js +1 -0
- package/dist/{chunk-KDYIMJTZ.js → chunk-KCOBHPN6.js} +1 -1
- package/dist/chunk-KVNRNDUC.js +1 -0
- package/dist/chunk-LEGAPYPC.js +1 -0
- package/dist/chunk-LRTIMWZG.js +2 -0
- package/dist/{chunk-LG436UTD.js → chunk-LXEOVUAV.js} +1 -1
- package/dist/{chunk-66ICOE3I.js → chunk-NEQIEYYO.js} +1 -1
- package/dist/{chunk-6TZTKAB5.js → chunk-O7Q4DDJT.js} +1 -1
- package/dist/chunk-PYNQRX56.js +4 -0
- package/dist/{chunk-6UJ3Y6FC.js → chunk-QCBWT2XE.js} +1 -1
- package/dist/{chunk-7MU3RJ6S.js → chunk-QDEZQ5A6.js} +1 -1
- package/dist/chunk-QOPY2LQM.js +1 -0
- package/dist/{chunk-AKFJK65Z.js → chunk-R2MUSGPS.js} +1 -1
- package/dist/chunk-RSCMJIWS.js +1 -0
- package/dist/{chunk-GXN65JMA.js → chunk-TTENU2HX.js} +1 -1
- package/dist/chunk-UB7JVPK4.js +1 -0
- package/dist/{chunk-MSBF7IW3.js → chunk-YODRYAZX.js} +2 -2
- package/dist/chunk-Z6BAZFSW.js +2 -0
- package/dist/chunk-ZOJEFIP4.js +1 -0
- package/dist/screen/components/AddBlockRow.js +1 -1
- package/dist/screen/components/AddSidePanel.js +1 -1
- package/dist/screen/components/MediaSidePanel.d.ts +2 -1
- package/dist/screen/components/MediaSidePanel.js +1 -1
- package/dist/screen/components/NodeContextMenu.d.ts +47 -2
- package/dist/screen/components/NodeContextMenu.js +1 -1
- package/dist/screen/components/PageEditGuardNotices.js +1 -1
- package/dist/screen/components/ScreenChrome.js +1 -1
- package/dist/screen/components/ScreenDocumentContext.d.ts +1 -0
- package/dist/screen/components/ScreenDocumentContext.js +1 -1
- package/dist/screen/components/ScreenMount.d.ts +4 -1
- package/dist/screen/components/ScreenMount.js +1 -1
- package/dist/screen/components/ScreenStoreProvider.d.ts +3 -0
- package/dist/screen/components/ScreenStoreProvider.js +1 -1
- package/dist/screen/components/SectionScreenShell.js +16 -16
- package/dist/screen/components/usePartBridge.d.ts +3 -0
- package/dist/screen/components/usePartBridge.js +1 -1
- package/dist/screen/index.d.ts +5 -2
- package/dist/screen/index.js +1 -1
- package/dist/screen/lib/admin-bridge.d.ts +2 -0
- package/dist/screen/lib/admin-bridge.js +1 -1
- package/dist/screen/lib/backend-error.d.ts +20 -5
- package/dist/screen/lib/backend-error.js +1 -1
- package/dist/screen/lib/document-addressing.d.ts +1 -0
- package/dist/screen/lib/failure.d.ts +6 -2
- package/dist/screen/lib/failure.js +1 -1
- package/dist/screen/lib/host-inbound.js +1 -1
- package/dist/screen/lib/host.d.ts +2 -1
- package/dist/screen/lib/load-error.d.ts +9 -3
- package/dist/screen/lib/load-error.js +1 -1
- package/dist/screen/lib/media-panel.d.ts +81 -17
- package/dist/screen/lib/media-panel.js +1 -1
- package/dist/screen/lib/media-picker.d.ts +13 -1
- package/dist/screen/lib/media-picker.js +1 -1
- package/dist/screen/lib/page-lock.d.ts +45 -1
- package/dist/screen/lib/page-lock.js +1 -1
- package/dist/screen/lib/puck/content-tree.d.ts +20 -1
- package/dist/screen/lib/puck/content-tree.js +1 -1
- package/dist/screen/lib/puck/section-doc.js +1 -1
- package/dist/screen/lib/puck/slot-child-name.d.ts +18 -3
- package/dist/screen/lib/puck/slot-child-name.js +1 -1
- package/dist/screen/lib/puck/use-section-ops.d.ts +6 -0
- package/dist/screen/lib/puck/use-section-ops.js +1 -1
- package/dist/screen/lib/screen-parts.d.ts +150 -4
- package/dist/screen/lib/screen-parts.js +1 -1
- package/dist/screen/lib/section-templates.d.ts +25 -1
- package/dist/screen/lib/section-templates.js +1 -1
- package/dist/screen/lib/session-context.d.ts +5 -1
- package/dist/screen/lib/session-context.js +1 -1
- package/dist/screen/lib/session.d.ts +58 -5
- package/dist/screen/lib/session.js +1 -1
- package/dist/screen/words.d.ts +24 -1
- package/dist/screen/words.js +1 -1
- package/dist/strings/catalogue.js +1 -1
- package/dist/strings/index.js +1 -1
- package/dist/tree/index.d.ts +4 -142
- package/dist/types-DJDBtdB2.d.ts +143 -0
- package/package.json +1 -1
- package/dist/chunk-3M3A3DN2.js +0 -4
- package/dist/chunk-4MXFKJUY.js +0 -1
- package/dist/chunk-6FY3PZS3.js +0 -1
- package/dist/chunk-A7ZJII7O.js +0 -1
- package/dist/chunk-AJBJ74ME.js +0 -1
- package/dist/chunk-AKZWUV5Z.js +0 -1
- package/dist/chunk-F6CCTEIX.js +0 -1
- package/dist/chunk-FUDHI5I4.js +0 -1
- package/dist/chunk-HDKTR5TZ.js +0 -62
- package/dist/chunk-HMX55DYT.js +0 -1
- package/dist/chunk-HWW4XJOH.js +0 -1
- package/dist/chunk-NBJ2YY6Y.js +0 -4
- package/dist/chunk-OORDMLL4.js +0 -5
- package/dist/chunk-Q3SQBNJB.js +0 -1
- package/dist/chunk-VV5ADNBR.js +0 -1
- package/dist/chunk-YJXEHK6I.js +0 -2
- package/dist/chunk-ZWK3CBRU.js +0 -1
- package/dist/chunk-ZZ7VLIHQ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ScreenChrome as default}from"../../chunk-
|
|
1
|
+
export{ScreenChrome as default}from"../../chunk-5D2XAZKH.js";import"../../chunk-26OOWIJJ.js";import"../../chunk-Q2HPBMG5.js";import"../../chunk-FGNR22NY.js";import"../../chunk-ZE7I3PLX.js";import"../../chunk-R2MUSGPS.js";import"../../chunk-PWZOS45R.js";import"../../chunk-7F52SZOI.js";import"../../chunk-R2HLPNQF.js";import"../../chunk-QOPY2LQM.js";import"../../chunk-4ES5JGGX.js";import"../../chunk-IQ5TA7AM.js";import"../../chunk-DUVRZ456.js";import"../../chunk-6W7WLPZH.js";import"../../chunk-OM67AJQC.js";import"../../chunk-KCBEE2MC.js";import"../../chunk-5MZ3RNQQ.js";import"../../chunk-SERF2FAU.js";import"../../chunk-TTENU2HX.js";import"../../chunk-A2LFBOUF.js";import"../../chunk-IYT6NN2J.js";import"../../chunk-HMWJB3HF.js";import"../../chunk-7GVLSNFW.js";import"../../chunk-LXEOVUAV.js";import"../../chunk-BSPCSC45.js";import"../../chunk-I54UCYOU.js";import"../../chunk-GOTN2KY4.js";import"../../chunk-R5L2E7JX.js";import"../../chunk-LRTIMWZG.js";import"../../chunk-QDEZQ5A6.js";import"../../chunk-ERR437B5.js";import"../../chunk-UB7JVPK4.js";import"../../chunk-ZOJEFIP4.js";import"../../chunk-RLBXE4EU.js";import"../../chunk-OYX47SL7.js";import"../../chunk-4EUWOGZF.js";import"../../chunk-KVNRNDUC.js";import"../../chunk-3WSPDAK2.js";import"../../chunk-57DJOKXT.js";import"../../chunk-3QVB4AG2.js";import"../../chunk-D6324C3E.js";import"../../chunk-5ZBY24K7.js";import"../../chunk-GENAF3P6.js";import"../../chunk-BVN33R76.js";import"../../chunk-IWAPPEL4.js";import"../../chunk-KQMML6JM.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-O7Q4DDJT.js";import"../../chunk-RSCMJIWS.js";import"../../chunk-HQ4VVRIC.js";import"../../chunk-PYNQRX56.js";import"../../chunk-7755VWRT.js";import"../../chunk-Z6BAZFSW.js";import"../../chunk-R5ZVNJLJ.js";import"../../chunk-6WY6ZXJG.js";import"../../chunk-LEGAPYPC.js";import"../../chunk-P67FP7PG.js";import"../../chunk-AELNNAFM.js";import"../../chunk-BXZ6WLHC.js";import"../../chunk-EOJNJCMJ.js";import"../../chunk-ZFDCDJNZ.js";import"../../chunk-ZNS7727Y.js";import"../../chunk-3EDSDPIP.js";import"../../chunk-QTLAVDJE.js";import"../../chunk-YRLPFZW3.js";import"../../chunk-RW4XBUUW.js";import"../../chunk-KTVH2ZRL.js";import"../../chunk-2LK54I4E.js";import"../../chunk-WK3AFPXY.js";import"../../chunk-D2BCHTQR.js";import"../../chunk-OWBO4WKA.js";import"../../chunk-BDTITTMW.js";import"../../chunk-H6DDIBQ4.js";import"../../chunk-6DJHRLCU.js";import"../../chunk-ZJEBF4NB.js";import"../../chunk-JUQ6YJCG.js";import"../../chunk-RE4LP46F.js";import"../../chunk-WZ7TGAAT.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-EWVJSRRY.js";import"../../chunk-P6O363EE.js";import"../../chunk-FPOKPNO4.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-BZ5ASXOL.js";import"../../chunk-TTJ54QGG.js";import"../../chunk-O2NLQBFX.js";import"../../chunk-67GNT6PF.js";import"../../chunk-PAELDYYS.js";import"../../chunk-ZNCEOSXO.js";import"../../chunk-L5KW4HG5.js";import"../../chunk-KRXQM65X.js";import"../../chunk-NKB3KVAB.js";
|
|
@@ -12,6 +12,7 @@ import '../../types-41704JE4.js';
|
|
|
12
12
|
import '../../resolve-D68pb3Bx.js';
|
|
13
13
|
import '../../plan-DChbUXdS.js';
|
|
14
14
|
import '../lib/session.js';
|
|
15
|
+
import '../lib/backend-error.js';
|
|
15
16
|
import '../lib/host-chrome.js';
|
|
16
17
|
import '../lib/links/link-filters.js';
|
|
17
18
|
import '../../LinkPicker-W2Rtxetz.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ScreenDocumentContext,ScreenDocumentProvider,useScreenDocument}from"../../chunk-
|
|
1
|
+
export{ScreenDocumentContext,ScreenDocumentProvider,useScreenDocument}from"../../chunk-LRTIMWZG.js";import"../../chunk-QDEZQ5A6.js";import"../../chunk-ERR437B5.js";import"../../chunk-UB7JVPK4.js";import"../../chunk-ZOJEFIP4.js";import"../../chunk-RLBXE4EU.js";import"../../chunk-OYX47SL7.js";import"../../chunk-4EUWOGZF.js";import"../../chunk-KVNRNDUC.js";import"../../chunk-3WSPDAK2.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-O7Q4DDJT.js";import"../../chunk-RSCMJIWS.js";import"../../chunk-Z6BAZFSW.js";import"../../chunk-R5ZVNJLJ.js";import"../../chunk-LEGAPYPC.js";import"../../chunk-BDTITTMW.js";import"../../chunk-H6DDIBQ4.js";import"../../chunk-JUQ6YJCG.js";import"../../chunk-RE4LP46F.js";import"../../chunk-MFIRYGHW.js";
|
|
@@ -10,6 +10,8 @@ import '../../resolve-D68pb3Bx.js';
|
|
|
10
10
|
import '../../plan-DChbUXdS.js';
|
|
11
11
|
import '../lib/document-contract.js';
|
|
12
12
|
import '../lib/session.js';
|
|
13
|
+
import '../lib/backend-error.js';
|
|
14
|
+
import '../../edit-lock/index.js';
|
|
13
15
|
import '../lib/host-chrome.js';
|
|
14
16
|
import '../lib/links/link-filters.js';
|
|
15
17
|
import '../../LinkPicker-W2Rtxetz.js';
|
|
@@ -18,12 +20,13 @@ import '../lib/section-template-types.js';
|
|
|
18
20
|
import '../lib/puck/content-tree.js';
|
|
19
21
|
import '../lib/document-switch.js';
|
|
20
22
|
import '../../engine-DBxp_v6B.js';
|
|
21
|
-
import '../../edit-lock/index.js';
|
|
22
23
|
import '../lib/admin-bridge.js';
|
|
23
24
|
import '../../types-CqY85foL.js';
|
|
24
25
|
import '../../types-DWS-s9z-.js';
|
|
25
26
|
import '../../wordFit-D4S36PvB.js';
|
|
26
27
|
import '../../panelWidths-D9hTLR25.js';
|
|
28
|
+
import '../../types-DJDBtdB2.js';
|
|
29
|
+
import '../../words-DgHcY5qB.js';
|
|
27
30
|
import '../lib/puck/add-target-types.js';
|
|
28
31
|
import '../lib/puck/block-choice.js';
|
|
29
32
|
import '../lib/puck/slot-section-spec.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DocumentScreen,ScreenMount as default}from"../../chunk-
|
|
1
|
+
export{DocumentScreen,ScreenMount as default}from"../../chunk-BBRY7KI4.js";import"../../chunk-GXQCZJOP.js";import"../../chunk-YODRYAZX.js";import"../../chunk-5D2XAZKH.js";import"../../chunk-26OOWIJJ.js";import"../../chunk-Q2HPBMG5.js";import"../../chunk-FGNR22NY.js";import"../../chunk-ZE7I3PLX.js";import"../../chunk-R2MUSGPS.js";import"../../chunk-PWZOS45R.js";import"../../chunk-7F52SZOI.js";import"../../chunk-R2HLPNQF.js";import"../../chunk-QOPY2LQM.js";import"../../chunk-4ES5JGGX.js";import"../../chunk-IQ5TA7AM.js";import"../../chunk-DUVRZ456.js";import"../../chunk-6W7WLPZH.js";import"../../chunk-OM67AJQC.js";import"../../chunk-KCBEE2MC.js";import"../../chunk-5MZ3RNQQ.js";import"../../chunk-SERF2FAU.js";import"../../chunk-TTENU2HX.js";import"../../chunk-A2LFBOUF.js";import"../../chunk-IYT6NN2J.js";import"../../chunk-HMWJB3HF.js";import"../../chunk-7GVLSNFW.js";import"../../chunk-LXEOVUAV.js";import"../../chunk-BSPCSC45.js";import"../../chunk-I54UCYOU.js";import"../../chunk-GOTN2KY4.js";import"../../chunk-R5L2E7JX.js";import"../../chunk-LRTIMWZG.js";import"../../chunk-QDEZQ5A6.js";import"../../chunk-ERR437B5.js";import"../../chunk-UB7JVPK4.js";import"../../chunk-ZOJEFIP4.js";import"../../chunk-RLBXE4EU.js";import"../../chunk-OYX47SL7.js";import"../../chunk-4EUWOGZF.js";import"../../chunk-KVNRNDUC.js";import"../../chunk-3WSPDAK2.js";import"../../chunk-57DJOKXT.js";import"../../chunk-3QVB4AG2.js";import"../../chunk-D6324C3E.js";import"../../chunk-5ZBY24K7.js";import"../../chunk-GENAF3P6.js";import"../../chunk-BVN33R76.js";import"../../chunk-IWAPPEL4.js";import"../../chunk-KQMML6JM.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-O7Q4DDJT.js";import"../../chunk-RSCMJIWS.js";import"../../chunk-HQ4VVRIC.js";import"../../chunk-PYNQRX56.js";import"../../chunk-7755VWRT.js";import"../../chunk-Z6BAZFSW.js";import"../../chunk-R5ZVNJLJ.js";import"../../chunk-6WY6ZXJG.js";import"../../chunk-LEGAPYPC.js";import"../../chunk-P67FP7PG.js";import"../../chunk-AELNNAFM.js";import"../../chunk-BXZ6WLHC.js";import"../../chunk-EOJNJCMJ.js";import"../../chunk-ZFDCDJNZ.js";import"../../chunk-ZNS7727Y.js";import"../../chunk-3EDSDPIP.js";import"../../chunk-QTLAVDJE.js";import"../../chunk-YRLPFZW3.js";import"../../chunk-RW4XBUUW.js";import"../../chunk-KTVH2ZRL.js";import"../../chunk-2LK54I4E.js";import"../../chunk-WK3AFPXY.js";import"../../chunk-D2BCHTQR.js";import"../../chunk-OWBO4WKA.js";import"../../chunk-BDTITTMW.js";import"../../chunk-H6DDIBQ4.js";import"../../chunk-6DJHRLCU.js";import"../../chunk-ZJEBF4NB.js";import"../../chunk-JUQ6YJCG.js";import"../../chunk-RE4LP46F.js";import"../../chunk-WZ7TGAAT.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-EWVJSRRY.js";import"../../chunk-P6O363EE.js";import"../../chunk-FPOKPNO4.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-BZ5ASXOL.js";import"../../chunk-TTJ54QGG.js";import"../../chunk-O2NLQBFX.js";import"../../chunk-67GNT6PF.js";import"../../chunk-PAELDYYS.js";import"../../chunk-ZNCEOSXO.js";import"../../chunk-L5KW4HG5.js";import"../../chunk-KRXQM65X.js";import"../../chunk-NKB3KVAB.js";
|
|
@@ -12,10 +12,13 @@ import '../../types-DWS-s9z-.js';
|
|
|
12
12
|
import '../../wordFit-D4S36PvB.js';
|
|
13
13
|
import '../../edit-lock/index.js';
|
|
14
14
|
import '../../panelWidths-D9hTLR25.js';
|
|
15
|
+
import '../../types-DJDBtdB2.js';
|
|
16
|
+
import '../../words-DgHcY5qB.js';
|
|
15
17
|
import '../lib/host-chrome.js';
|
|
16
18
|
import '../lib/links/link-filters.js';
|
|
17
19
|
import '../../LinkPicker-W2Rtxetz.js';
|
|
18
20
|
import '../lib/session.js';
|
|
21
|
+
import '../lib/backend-error.js';
|
|
19
22
|
import '../lib/document-contract.js';
|
|
20
23
|
import '../lib/document-hooks.js';
|
|
21
24
|
import '../lib/section-template-types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ScreenStoreProvider as default}from"../../chunk-
|
|
1
|
+
export{ScreenStoreProvider as default}from"../../chunk-YODRYAZX.js";import"../../chunk-7755VWRT.js";import"../../chunk-Z6BAZFSW.js";import"../../chunk-R5ZVNJLJ.js";import"../../chunk-P67FP7PG.js";import"../../chunk-AELNNAFM.js";import"../../chunk-BXZ6WLHC.js";import"../../chunk-EOJNJCMJ.js";import"../../chunk-ZFDCDJNZ.js";import"../../chunk-ZNS7727Y.js";import"../../chunk-3EDSDPIP.js";import"../../chunk-QTLAVDJE.js";import"../../chunk-YRLPFZW3.js";import"../../chunk-KTVH2ZRL.js";import"../../chunk-D2BCHTQR.js";import"../../chunk-EWVJSRRY.js";import"../../chunk-P6O363EE.js";import"../../chunk-FPOKPNO4.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-BZ5ASXOL.js";import"../../chunk-67GNT6PF.js";import"../../chunk-ZNCEOSXO.js";import"../../chunk-L5KW4HG5.js";import"../../chunk-KRXQM65X.js";import"../../chunk-NKB3KVAB.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{AddBlockRow as e}from"../../chunk-
|
|
2
|
-
return
|
|
3
|
-
return w
|
|
4
|
-
/* @__PURE__ */
|
|
5
|
-
return
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
-
return w
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
1
|
+
import{AddBlockRow as e}from"../../chunk-NEQIEYYO.js";import{slotChildRowName as n}from"../../chunk-QOPY2LQM.js";import{scrollPreviewToSection as o,gotoPreviewSlide as r}from"../../chunk-4ES5JGGX.js";import"../../chunk-IQ5TA7AM.js";import"../../chunk-DUVRZ456.js";import"../../chunk-6W7WLPZH.js";import{useEaselUndoKeys as t}from"../../chunk-OM67AJQC.js";import{SlotChildActionsProvider as s}from"../../chunk-KCBEE2MC.js";import{DEFAULT_PANEL_W as i}from"../../chunk-SERF2FAU.js";import{usePartBridge as c}from"../../chunk-TTENU2HX.js";import{useSectionOps as p}from"../../chunk-A2LFBOUF.js";import"../../chunk-IYT6NN2J.js";import{nestsInTree as l,slotFieldsOf as d}from"../../chunk-7GVLSNFW.js";import"../../chunk-I54UCYOU.js";import"../../chunk-GOTN2KY4.js";import"../../chunk-R5L2E7JX.js";import{useScreenDocument as m}from"../../chunk-LRTIMWZG.js";import"../../chunk-QDEZQ5A6.js";import"../../chunk-ERR437B5.js";import"../../chunk-UB7JVPK4.js";import"../../chunk-ZOJEFIP4.js";import"../../chunk-RLBXE4EU.js";import"../../chunk-OYX47SL7.js";import"../../chunk-4EUWOGZF.js";import"../../chunk-KVNRNDUC.js";import"../../chunk-3WSPDAK2.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-O7Q4DDJT.js";import"../../chunk-RSCMJIWS.js";import"../../chunk-HQ4VVRIC.js";import{MediaSidePanel as a}from"../../chunk-PYNQRX56.js";import{SELECTION_MODE as u,useScreenPinned as h,useScreenCanvasFrame as k,useScreenInspectorPanel as j,useScreenPickFollowsSelection as f,sameInspectorMode as N,useStandaloneScreenBridges as y,useScreenBlockLook as S,useScreenBlockRules as C}from"../../chunk-7755VWRT.js";import{useMediaPanel as A,usePanelPick as P,useCancelPanelPick as E}from"../../chunk-Z6BAZFSW.js";import"../../chunk-R5ZVNJLJ.js";import"../../chunk-LEGAPYPC.js";import{useEasel as x}from"../../chunk-P67FP7PG.js";import"../../chunk-AELNNAFM.js";import"../../chunk-BXZ6WLHC.js";import"../../chunk-EOJNJCMJ.js";import{LayersTree as O,Subtree as R,TreeRow as L,TreeRowAction as T,TreeSeam as g}from"../../chunk-ZFDCDJNZ.js";import"../../chunk-ZNS7727Y.js";import"../../chunk-3EDSDPIP.js";import"../../chunk-QTLAVDJE.js";import"../../chunk-YRLPFZW3.js";import"../../chunk-KTVH2ZRL.js";import"../../chunk-D2BCHTQR.js";import"../../chunk-BDTITTMW.js";import{saveIndicator as v}from"../../chunk-H6DDIBQ4.js";import{SaveState as J,panelWidthVars as D}from"../../chunk-6DJHRLCU.js";import"../../chunk-ZJEBF4NB.js";import"../../chunk-JUQ6YJCG.js";import"../../chunk-RE4LP46F.js";import"../../chunk-WZ7TGAAT.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-EWVJSRRY.js";import"../../chunk-P6O363EE.js";import"../../chunk-FPOKPNO4.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-BZ5ASXOL.js";import"../../chunk-TTJ54QGG.js";import"../../chunk-O2NLQBFX.js";import{useTreeDrag as z}from"../../chunk-67GNT6PF.js";import"../../chunk-PAELDYYS.js";import"../../chunk-ZNCEOSXO.js";import{TrashIcon as B}from"../../chunk-L5KW4HG5.js";import{zoneKey as F,parseZoneKey as Z}from"../../chunk-KRXQM65X.js";import"../../chunk-NKB3KVAB.js";import{useState as W,useRef as b,useEffect as Q,useCallback as Y,Fragment as w}from"react";import{jsxs as G,jsx as I,Fragment as M}from"react/jsx-runtime";var $=e=>n=>{n.target.closest(".es-tree-select, button")||e()},H={rowClick:$};function K(){const{saveState:K,readOnly:U,readOnlyReason:V=null}=m(),X=p(),{appState:q,selectedItem:_,config:ee}=x(e=>e),[ne,oe]=W(u),[re,te]=W(null),{first:se,last:ie,panelOf:ce}=h(),pe=ce(se),le=k(),de=j(),me=q.data.content?.[0]??null,ae=me?.props.id??null,ue=me?.type===se,he=me?.type===ie,ke=b(null),je=b(null);t(je);const fe=A(),Ne=P(),ye=E();f(_?.props.id),Q(()=>{const e=je.current;if(!Ne||!e)return;const n=e=>{"Escape"===e.key&&ye()};return e.addEventListener("keydown",n),()=>e.removeEventListener("keydown",n)},[Ne]),Q(()=>{ae&&ke.current!==ae&&(ke.current=ae,ue?oe(pe??u):_||X.select({index:0}))},[ae,_,X,ue]);const Se=Y(e=>oe(n=>N(n,e)?n:e),[]),Ce=y({kind:ne.kind,mode:ne,open:Se,show:e=>oe(e),reveal:()=>{}}),{selectNode:Ae}=c({mode:ne,setMode:oe,onOpenPart:o}),Pe=S(),{labelAtLevel:Ee,Icon:xe}=Pe,{canAddTo:Oe}=C(),Re=e=>ee.components[e]?.label??e,Le=e=>Ee(e,"section",Re(e)),Te=!ue&&"puck"===ne.kind&&_?.props.id===ae,ge=me?Oe(me.type)?.spec??null:null,ve=me&&ge?`${me.props.id}:${ge.slot}`:null,Je=me&&ge&&Array.isArray(me.props[ge.slot])?me.props[ge.slot]:[],De=e=>n(e,Re,Pe.plainText),ze=(e,n)=>{me&&ge&&ve&&(oe(u),ge.slider?(r(String(me.props.id),e),X.select({index:e,zone:ve}),o(String(me.props.id))):(X.select({index:e,zone:ve}),o(n)))},Be=()=>{if(!me||!ge||!ve)return;const e=Je.length;X.insertComponent(ve,ge.childType,e),oe(u),ge.slider?requestAnimationFrame(()=>{r(String(me.props.id),e),X.select({index:e,zone:ve})}):X.select({index:e,zone:ve})},Fe=e=>d(ee,e),Ze=e=>{const{parentId:n,slot:o}=Z(e),r=e=>{if(!e)return null;if(String(e.props.id)===n)return e;for(const n of Fe(e.type)){const o=Array.isArray(e.props[n])?e.props[n]:[];for(const e of o){const n=r(e);if(n)return n}}return null},t=r(me)?.props[o];return Array.isArray(t)?t.length:0},We=(e,n,o)=>{const r=Math.min(Math.max(o,0),Ze(e)),t=n<r?r-1:r;t!==n&&(X.reorderComponent(e,n,t),oe(u),X.select({index:t,zone:e}))},be=z({keyOf:e=>e.id,readOnly:Boolean(U),canDrop:(e,n)=>F(n)===e.zone&&n.index>=0&&n.index<=Ze(e.zone),onDrop:(e,n)=>We(e.zone,e.index,n.index),onStep:(e,n)=>We(e.zone,e.index,n<0?e.index-1:e.index+2)}),Qe=(e,n)=>/* @__PURE__ */I(g,{...U?{}:be.seam({place:{...Z(e),index:n}})},`seam:${e}:${n}`),Ye=e=>Pe.blockRowName(e,Re),we=(e,n,r)=>{oe(u),X.select({index:n,zone:e}),o(r)},Ge=(e,n,o)=>{X.insertComponent(e,n,o),oe(u),X.select({index:o,zone:e}),te(null)},Ie=(n,o,r)=>/* @__PURE__ */I(e,{choices:r,open:re===n,onToggle:()=>te(re===n?null:n),onPick:e=>Ge(n,e,o)}),Me=(e,n)=>{const o=Fe((r=e).type).flatMap(e=>(Array.isArray(r.props[e])?r.props[e]:[]).map((n,o)=>({child:n,zone:`${r.props.id}:${e}`,index:o})));var r;const t=Oe(e.type),s=t?.choices??null,i="footer"===t?.source?Ye:De;/* @__PURE__ */
|
|
2
|
+
return G(M,{children:[o.map(({child:e,zone:o,index:r})=>{const t=_?.props.id===e.props.id,s=l(ee,e.type,n),c=i(e),p=String(e.props.id),d=()=>we(o,r,p),{rowProps:m,...a}=be.row({item:{id:p,zone:o,index:r},place:{...Z(o),index:r}},{onClick:$(d)});/* @__PURE__ */
|
|
3
|
+
return G(w,{children:[0===r&&Qe(o,0),
|
|
4
|
+
/* @__PURE__ */I(L,{icon:/* @__PURE__ */I(xe,{type:e.type,size:13}),name:c,selected:t,onSelect:d,...a,actions:/* @__PURE__ */I(T,{kind:"delete",label:`Delete ${c}`,onClick:()=>{return e=o,n=r,X.removeComponent(e,n),oe(u),void X.select(null);var e,n},children:/* @__PURE__ */I(B,{size:13})}),rowProps:m}),s&&/* @__PURE__ */I(R,{children:Me(e,n+1)}),Qe(o,r+1)]},String(e.props.id??`${o}-${r}`))}),t&&s?Ie(`${e.props.id}:${t.slot}`,o.length,s):null]})},$e="HeroSingle"===me?.type,He=Boolean(me)&&(Boolean(ge)||he||ue||$e);/* @__PURE__ */
|
|
5
|
+
return G("div",{ref:je,className:"sf-editor es-editor",style:D(i),children:[
|
|
6
|
+
/* @__PURE__ */I("div",{className:"sf-section-bar",children:/* @__PURE__ */I(J,null!==V?{tone:"off",label:V,role:"status"}:{...v(K),role:"status"})}),
|
|
7
|
+
/* @__PURE__ */G("div",{className:"sf-body",children:[Ne&&fe?/* @__PURE__ */I("aside",{className:"es-sidepanel es-sidepanel--left sf-panel sf-panel--left",children:/* @__PURE__ */I(a,{panel:fe,pick:Ne})}):He&&me&&/* @__PURE__ */G("aside",{className:"es-sidepanel es-sidepanel--left sf-panel sf-panel--left",children:[
|
|
8
|
+
/* @__PURE__ */I("div",{className:"sf-panel-head",children:/* @__PURE__ */I("button",{type:"button",className:"sf-panel-title sf-panel-title--btn "+(Te?"is-selected":""),"aria-pressed":Te,title:ue?"Header settings":`${Le(me.type)} settings`,onClick:()=>{ue?oe(pe??u):(oe(u),X.select({index:0}))},children:Le(me.type)})}),
|
|
9
|
+
/* @__PURE__ */I(O,{className:"sf-tree sf-scroll",rootProps:be.rootProps(),children:/* @__PURE__ */I(R,{children:ue?
|
|
10
|
+
/* @__PURE__ */I(L,{icon:/* @__PURE__ */I(xe,{type:"header",size:13}),name:"Header settings",selected:ne.kind===pe?.kind,onSelect:()=>oe(pe??u),rowProps:{onClick:$(()=>oe(pe??u))}}):ge?/* @__PURE__ */G(M,{children:[Je.map((e,n)=>{const o=_?.props.id===e.props.id,r=De(e),t=String(e.props.id),s=()=>ze(n,t),{rowProps:i,...c}=be.row({item:{id:t,zone:ve,index:n},place:{...Z(ve),index:n}},{onClick:$(s)});/* @__PURE__ */
|
|
11
|
+
return G(w,{children:[0===n&&Qe(ve,0),
|
|
12
|
+
/* @__PURE__ */I(L,{icon:/* @__PURE__ */I(xe,{type:e.type,size:13}),name:r,selected:o,onSelect:s,...c,actions:/* @__PURE__ */I(T,{kind:"delete",label:`Delete ${r}`,onClick:()=>{return e=n,void(ve&&(X.removeComponent(ve,e),oe(u),X.select(null)));var e},children:/* @__PURE__ */I(B,{size:13})}),rowProps:i}),Qe(ve,n+1)]},String(e.props.id??n))}),
|
|
13
|
+
/* @__PURE__ */G("button",{type:"button",className:"sf-add-card",onClick:Be,children:[
|
|
14
|
+
/* @__PURE__ */I("span",{className:"sf-plus sf-plus--sm",children:"+"}),ge.addLabel]}),ae?Ce.partRows?.(me,H):null]}):Me(me,1)})})]}),
|
|
15
|
+
/* @__PURE__ */I("div",{className:"sf-center",children:/* @__PURE__ */I("div",{className:"sf-preview-host",children:/* @__PURE__ */I(le,{})})}),
|
|
16
|
+
/* @__PURE__ */I(s,{value:{selectChild:(e,n,o,r)=>"section"===Oe(r)?.source?ze(n,o):we(e,n,o),addChild:(e,n,o,r,t)=>"section"===Oe(t)?.source?Be():Ge(`${e}:${n}`,o,r),childRowName:De,blockRowName:Ye},children:/* @__PURE__ */I(de,{mode:ne,onOpenWebsiteSettings:Ce.openSettings??(()=>{}),onSelectNode:Ae,hideNodeActions:!0})})]})]})}export{K as default};
|
|
@@ -11,10 +11,13 @@ import '../../types-DWS-s9z-.js';
|
|
|
11
11
|
import '../../wordFit-D4S36PvB.js';
|
|
12
12
|
import '../../edit-lock/index.js';
|
|
13
13
|
import '../../panelWidths-D9hTLR25.js';
|
|
14
|
+
import '../../types-DJDBtdB2.js';
|
|
15
|
+
import '../../words-DgHcY5qB.js';
|
|
14
16
|
import '../lib/host-chrome.js';
|
|
15
17
|
import '../lib/links/link-filters.js';
|
|
16
18
|
import '../../LinkPicker-W2Rtxetz.js';
|
|
17
19
|
import '../lib/session.js';
|
|
20
|
+
import '../lib/backend-error.js';
|
|
18
21
|
import '../lib/document-contract.js';
|
|
19
22
|
import '../lib/document-hooks.js';
|
|
20
23
|
import '../lib/section-template-types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{usePartBridge}from"../../chunk-
|
|
1
|
+
export{usePartBridge}from"../../chunk-TTENU2HX.js";import"../../chunk-A2LFBOUF.js";import"../../chunk-IYT6NN2J.js";import"../../chunk-7GVLSNFW.js";import"../../chunk-I54UCYOU.js";import"../../chunk-GOTN2KY4.js";import"../../chunk-R5L2E7JX.js";import"../../chunk-7755VWRT.js";import"../../chunk-Z6BAZFSW.js";import"../../chunk-R5ZVNJLJ.js";import"../../chunk-P67FP7PG.js";import"../../chunk-AELNNAFM.js";import"../../chunk-BXZ6WLHC.js";import"../../chunk-EOJNJCMJ.js";import"../../chunk-ZFDCDJNZ.js";import"../../chunk-ZNS7727Y.js";import"../../chunk-3EDSDPIP.js";import"../../chunk-QTLAVDJE.js";import"../../chunk-YRLPFZW3.js";import"../../chunk-KTVH2ZRL.js";import"../../chunk-D2BCHTQR.js";import"../../chunk-EWVJSRRY.js";import"../../chunk-P6O363EE.js";import"../../chunk-FPOKPNO4.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-BZ5ASXOL.js";import"../../chunk-67GNT6PF.js";import"../../chunk-ZNCEOSXO.js";import"../../chunk-L5KW4HG5.js";import"../../chunk-KRXQM65X.js";import"../../chunk-NKB3KVAB.js";
|
package/dist/screen/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { DocumentScreen, default as ScreenMount } from './components/ScreenMount.js';
|
|
2
2
|
export { default as ScreenStoreProvider } from './components/ScreenStoreProvider.js';
|
|
3
|
-
export { NodeDefaults, SELECTION_MODE, ScreenBlockLook, ScreenBlockRules, ScreenBridges, ScreenCanvas, ScreenDevices, ScreenDocumentOps, ScreenInspector, ScreenInspectorMode, ScreenInspectorPanelProps, ScreenLeftPanel, ScreenLeftView, ScreenLeftViewFrame, ScreenLeftViewRules, ScreenNewNode, ScreenNode, ScreenNodeLevel, ScreenNodeMaker, ScreenPartMode, ScreenParts, ScreenPartsProvider, ScreenPinnedNodes, ScreenRailItem, ScreenTree, ScreenTreeFolds, ScreenTreeRows, sameInspectorMode, useScreenBlockLook, useScreenBlockRules, useScreenBridges, useScreenCanvasFrame, useScreenDevices, useScreenDocumentPass, useScreenInspectorPanel, useScreenLeftView, useScreenOwnerName, useScreenParts, useScreenPinned, useScreenSaveSwitch, useStandaloneScreenBridges } from './lib/screen-parts.js';
|
|
4
|
-
export { EFFICIENT_BACKEND, EaselSession, SessionBackend, SessionBlocks, activateEaselSession, backendOf, createEaselSession, currentEaselSession, deactivateEaselSession, efficientClientOpen, isEfficientBackend, provideDefaultBackend, resetAmbientEaselSession, sessionRegistry, setSessionBridgedSite, setSessionDocumentSite } from './lib/session.js';
|
|
3
|
+
export { NodeDefaults, SELECTION_MODE, ScreenBlockLook, ScreenBlockRules, ScreenBridges, ScreenCanvas, ScreenDevices, ScreenDocumentOps, ScreenInspector, ScreenInspectorMode, ScreenInspectorPanelProps, ScreenLeftPanel, ScreenLeftView, ScreenLeftViewFrame, ScreenLeftViewRules, ScreenNewNode, ScreenNode, ScreenNodeActions, ScreenNodeLevel, ScreenNodeMaker, ScreenPartMode, ScreenParts, ScreenPartsProvider, ScreenPinnedBand, ScreenPinnedNodes, ScreenRailItem, ScreenTree, ScreenTreeFolds, ScreenTreeRows, isPinnedFirst, isPinnedLast, sameInspectorMode, useScreenBlockLook, useScreenBlockRules, useScreenBridges, useScreenCanvasFrame, useScreenDevices, useScreenDocumentLabel, useScreenDocumentPass, useScreenInspectorPanel, useScreenLeftView, useScreenOwnerName, useScreenParts, useScreenPickFollowsSelection, useScreenPinned, useScreenSaveSwitch, useStandaloneScreenBridges } from './lib/screen-parts.js';
|
|
4
|
+
export { DefaultBackend, EFFICIENT_BACKEND, EaselSession, SessionBackend, SessionBlocks, activateEaselSession, backendOf, createEaselSession, currentEaselSession, deactivateEaselSession, efficientClientOpen, isEfficientBackend, provideDefaultBackend, resetAmbientEaselSession, sessionRegistry, setSessionBridgedSite, setSessionDocumentSite } from './lib/session.js';
|
|
5
5
|
export { EaselSessionProvider, useEaselSession } from './lib/session-context.js';
|
|
6
6
|
export { A as AnyDocumentAddressing, D as DETACHED_EASEL_HOST, a as DocumentAddressing, E as EaselHost, b as EaselHostAddress, c as EaselHostContext, d as EaselHostProvider, e as EaselMessageType, f as EaselToHostMessage, H as HostPickedMedia, g as HostToEaselMessage, I as InboundHostMessage, N as NO_DOCUMENT_ADDRESSING, S as SectionScreenTarget, h as SendToHost, i as createEaselHost, u as useEaselHost } from '../host-DJ8Gzsx7.js';
|
|
7
7
|
export { EaselCapabilities, EaselDocument, EaselDocumentAdapter, EaselPageRow, SiteRecord, SiteRecordPatch, WebsiteEditLock } from './lib/document-contract.js';
|
|
@@ -17,12 +17,15 @@ import '../types-DWS-s9z-.js';
|
|
|
17
17
|
import '../wordFit-D4S36PvB.js';
|
|
18
18
|
import '../edit-lock/index.js';
|
|
19
19
|
import '../panelWidths-D9hTLR25.js';
|
|
20
|
+
import '../types-DJDBtdB2.js';
|
|
21
|
+
import '../words-DgHcY5qB.js';
|
|
20
22
|
import './lib/host-chrome.js';
|
|
21
23
|
import './lib/links/link-filters.js';
|
|
22
24
|
import '../LinkPicker-W2Rtxetz.js';
|
|
23
25
|
import './lib/puck/add-target-types.js';
|
|
24
26
|
import './lib/puck/block-choice.js';
|
|
25
27
|
import './lib/puck/slot-section-spec.js';
|
|
28
|
+
import './lib/backend-error.js';
|
|
26
29
|
import './lib/document-hooks.js';
|
|
27
30
|
import './lib/section-template-types.js';
|
|
28
31
|
import './lib/puck/content-tree.js';
|
package/dist/screen/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunk-GZO72N3Q.js";export{DocumentScreen,ScreenMount}from"../chunk-
|
|
1
|
+
import"../chunk-GZO72N3Q.js";export{DocumentScreen,ScreenMount}from"../chunk-BBRY7KI4.js";import"../chunk-GXQCZJOP.js";export{ScreenStoreProvider}from"../chunk-YODRYAZX.js";import"../chunk-5D2XAZKH.js";import"../chunk-26OOWIJJ.js";import"../chunk-Q2HPBMG5.js";import"../chunk-FGNR22NY.js";import"../chunk-ZE7I3PLX.js";import"../chunk-R2MUSGPS.js";import"../chunk-PWZOS45R.js";import"../chunk-7F52SZOI.js";import"../chunk-R2HLPNQF.js";import"../chunk-QOPY2LQM.js";import"../chunk-4ES5JGGX.js";import"../chunk-IQ5TA7AM.js";import"../chunk-DUVRZ456.js";import"../chunk-6W7WLPZH.js";import"../chunk-OM67AJQC.js";import"../chunk-KCBEE2MC.js";import"../chunk-5MZ3RNQQ.js";import"../chunk-SERF2FAU.js";import"../chunk-TTENU2HX.js";import"../chunk-A2LFBOUF.js";import"../chunk-IYT6NN2J.js";import"../chunk-HMWJB3HF.js";import"../chunk-7GVLSNFW.js";import"../chunk-LXEOVUAV.js";import"../chunk-BSPCSC45.js";import"../chunk-I54UCYOU.js";import"../chunk-GOTN2KY4.js";import"../chunk-R5L2E7JX.js";import"../chunk-LRTIMWZG.js";import"../chunk-QDEZQ5A6.js";import"../chunk-ERR437B5.js";import"../chunk-UB7JVPK4.js";import"../chunk-ZOJEFIP4.js";export{NO_DOCUMENT_ADDRESSING}from"../chunk-RLBXE4EU.js";import"../chunk-OYX47SL7.js";import"../chunk-4EUWOGZF.js";import"../chunk-KVNRNDUC.js";import"../chunk-3WSPDAK2.js";import"../chunk-57DJOKXT.js";import"../chunk-3QVB4AG2.js";import"../chunk-D6324C3E.js";import"../chunk-5ZBY24K7.js";import"../chunk-GENAF3P6.js";import"../chunk-BVN33R76.js";import"../chunk-IWAPPEL4.js";import"../chunk-KQMML6JM.js";import"../chunk-KCOBHPN6.js";export{EaselSessionProvider,useEaselSession}from"../chunk-O7Q4DDJT.js";export{EFFICIENT_BACKEND,activateEaselSession,backendOf,createEaselSession,currentEaselSession,deactivateEaselSession,efficientClientOpen,isEfficientBackend,provideDefaultBackend,resetAmbientEaselSession,sessionRegistry,setSessionBridgedSite,setSessionDocumentSite}from"../chunk-RSCMJIWS.js";import"../chunk-HQ4VVRIC.js";import"../chunk-PYNQRX56.js";export{SELECTION_MODE,ScreenPartsProvider,isPinnedFirst,isPinnedLast,sameInspectorMode,useScreenBlockLook,useScreenBlockRules,useScreenBridges,useScreenCanvasFrame,useScreenDevices,useScreenDocumentLabel,useScreenDocumentPass,useScreenInspectorPanel,useScreenLeftView,useScreenOwnerName,useScreenParts,useScreenPickFollowsSelection,useScreenPinned,useScreenSaveSwitch,useStandaloneScreenBridges}from"../chunk-7755VWRT.js";import"../chunk-Z6BAZFSW.js";export{DETACHED_EASEL_HOST,EaselHostContext,EaselHostProvider,createEaselHost,useEaselHost}from"../chunk-R5ZVNJLJ.js";import"../chunk-6WY6ZXJG.js";import"../chunk-LEGAPYPC.js";import"../chunk-P67FP7PG.js";import"../chunk-AELNNAFM.js";import"../chunk-BXZ6WLHC.js";import"../chunk-EOJNJCMJ.js";import"../chunk-ZFDCDJNZ.js";import"../chunk-ZNS7727Y.js";import"../chunk-3EDSDPIP.js";import"../chunk-QTLAVDJE.js";import"../chunk-YRLPFZW3.js";import"../chunk-RW4XBUUW.js";import"../chunk-KTVH2ZRL.js";import"../chunk-2LK54I4E.js";import"../chunk-WK3AFPXY.js";import"../chunk-D2BCHTQR.js";import"../chunk-OWBO4WKA.js";import"../chunk-BDTITTMW.js";import"../chunk-H6DDIBQ4.js";import"../chunk-6DJHRLCU.js";import"../chunk-ZJEBF4NB.js";import"../chunk-JUQ6YJCG.js";import"../chunk-RE4LP46F.js";import"../chunk-WZ7TGAAT.js";import"../chunk-2OAZYSWJ.js";import"../chunk-EWVJSRRY.js";import"../chunk-P6O363EE.js";import"../chunk-FPOKPNO4.js";import"../chunk-MFIRYGHW.js";import"../chunk-BZ5ASXOL.js";import"../chunk-TTJ54QGG.js";import"../chunk-O2NLQBFX.js";import"../chunk-67GNT6PF.js";import"../chunk-PAELDYYS.js";import"../chunk-ZNCEOSXO.js";import"../chunk-L5KW4HG5.js";import"../chunk-KRXQM65X.js";import"../chunk-NKB3KVAB.js";
|
|
@@ -6,6 +6,8 @@ import '../../data/index.js';
|
|
|
6
6
|
import '../../types-41704JE4.js';
|
|
7
7
|
import '../../resolve-D68pb3Bx.js';
|
|
8
8
|
import '../../plan-DChbUXdS.js';
|
|
9
|
+
import './backend-error.js';
|
|
10
|
+
import '../../edit-lock/index.js';
|
|
9
11
|
import './host-chrome.js';
|
|
10
12
|
import './links/link-filters.js';
|
|
11
13
|
import '../../LinkPicker-W2Rtxetz.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{NO_BRIDGED_CAPABILITIES,applyAuthGrant,useAdminBridge}from"../../chunk-
|
|
1
|
+
export{NO_BRIDGED_CAPABILITIES,applyAuthGrant,useAdminBridge}from"../../chunk-KVNRNDUC.js";import"../../chunk-3WSPDAK2.js";import"../../chunk-O7Q4DDJT.js";import"../../chunk-RSCMJIWS.js";import"../../chunk-R5ZVNJLJ.js";
|
|
@@ -79,6 +79,8 @@ interface HostFailure {
|
|
|
79
79
|
data: unknown;
|
|
80
80
|
message: string;
|
|
81
81
|
}
|
|
82
|
+
/** How a host's client errors read: the page's (`provideHostFailures`), or
|
|
83
|
+
* one session's own (`createEaselSession({ hostFailures })`, 0.103.0). */
|
|
82
84
|
interface HostFailures {
|
|
83
85
|
/** A host client error as a {@link HostFailure}; null for anything else. */
|
|
84
86
|
read(err: unknown): HostFailure | null;
|
|
@@ -90,17 +92,30 @@ interface HostFailures {
|
|
|
90
92
|
slug: string;
|
|
91
93
|
}): string | null;
|
|
92
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* WHOSE READING a failure gets (0.103.0): the editor's session it happened in,
|
|
97
|
+
* when that session brought its own (`EaselSession.hostFailures`), else the
|
|
98
|
+
* page's. Every reader below takes one, optionally: two hosts mounted in one
|
|
99
|
+
* page (the website editor and the campaign designer in the admin) each read
|
|
100
|
+
* their own client's errors, and neither has to replace the other's page-wide
|
|
101
|
+
* registration to do it. Left out, or a session that brought none, it is the
|
|
102
|
+
* page's, as it always was.
|
|
103
|
+
*/
|
|
104
|
+
type FailureScope = {
|
|
105
|
+
readonly hostFailures?: HostFailures | null;
|
|
106
|
+
} | null | undefined;
|
|
93
107
|
/** Tell the editor how to read the host client's own errors. Called once, by
|
|
94
|
-
* the host's backend module as it loads (EFFICIENT's: `lib/efficient-backend`).
|
|
108
|
+
* the host's backend module as it loads (EFFICIENT's: `lib/efficient-backend`).
|
|
109
|
+
* It is the page's: a session's own (`hostFailures`) is read in its place. */
|
|
95
110
|
declare function provideHostFailures(failures: HostFailures): void;
|
|
96
111
|
/** `err` as the host's client failure it is, or null when it is not one (or no
|
|
97
112
|
* host has said how to read its errors). */
|
|
98
|
-
declare function readHostFailure(err: unknown): HostFailure | null;
|
|
113
|
+
declare function readHostFailure(err: unknown, scope?: FailureScope): HostFailure | null;
|
|
99
114
|
/** The host's sentence for a document it refused to open, or null. */
|
|
100
115
|
declare function hostLoadRefusalOf(err: unknown, document: {
|
|
101
116
|
slug: string;
|
|
102
|
-
}): string | null;
|
|
117
|
+
}, scope?: FailureScope): string | null;
|
|
103
118
|
/** The host's own "server cannot be reached" sentence, or a plain one. */
|
|
104
|
-
declare function hostUnreachableMessage(): string;
|
|
119
|
+
declare function hostUnreachableMessage(scope?: FailureScope): string;
|
|
105
120
|
|
|
106
|
-
export { type HostFailure, STATUS_UNREACHABLE, WebsiteBackendError, type WebsiteBackendErrorKind, hostLoadRefusalOf, hostUnreachableMessage, isBackendError, provideHostFailures, readHostFailure };
|
|
121
|
+
export { type FailureScope, type HostFailure, type HostFailures, STATUS_UNREACHABLE, WebsiteBackendError, type WebsiteBackendErrorKind, hostLoadRefusalOf, hostUnreachableMessage, isBackendError, provideHostFailures, readHostFailure };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{STATUS_UNREACHABLE,WebsiteBackendError,hostLoadRefusalOf,hostUnreachableMessage,isBackendError,provideHostFailures,readHostFailure}from"../../chunk-
|
|
1
|
+
export{STATUS_UNREACHABLE,WebsiteBackendError,hostLoadRefusalOf,hostUnreachableMessage,isBackendError,provideHostFailures,readHostFailure}from"../../chunk-KCOBHPN6.js";
|
|
@@ -12,6 +12,7 @@ import './document-switch.js';
|
|
|
12
12
|
import '../../engine-DBxp_v6B.js';
|
|
13
13
|
import '../../edit-lock/index.js';
|
|
14
14
|
import './admin-bridge.js';
|
|
15
|
+
import './backend-error.js';
|
|
15
16
|
import './host-chrome.js';
|
|
16
17
|
import './links/link-filters.js';
|
|
17
18
|
import '../../LinkPicker-W2Rtxetz.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EditLockFailure } from '../../edit-lock/index.js';
|
|
2
|
+
import { FailureScope } from './backend-error.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* What a failed editor call WAS, as `{ status, data }` — the shape the shared
|
|
@@ -40,7 +41,10 @@ import { EditLockFailure } from '../../edit-lock/index.js';
|
|
|
40
41
|
* (lib/efficient-backend), so a raw body and a translated kind read alike.
|
|
41
42
|
*/
|
|
42
43
|
declare const PAGE_CONFLICT_CODE = "page_changed_elsewhere";
|
|
43
|
-
|
|
44
|
+
/** `scope`: whose reading of a host's client error it is — the editor's
|
|
45
|
+
* session when it brought its own (lib/backend-error `FailureScope`), else
|
|
46
|
+
* the page's. */
|
|
47
|
+
declare function readEaselFailure(err: unknown, scope?: FailureScope): EditLockFailure | null;
|
|
44
48
|
/**
|
|
45
49
|
* A call was refused because the SESSION is no longer authorised — the one
|
|
46
50
|
* failure the editor answers by asking its host for a fresh sign-in.
|
|
@@ -49,6 +53,6 @@ declare function readEaselFailure(err: unknown): EditLockFailure | null;
|
|
|
49
53
|
* `unauthorized` too, and a 403 has never been a reason to re-authenticate. A
|
|
50
54
|
* backend that speaks only in kinds says `unauthorized`.
|
|
51
55
|
*/
|
|
52
|
-
declare function isExpiredSession(err: unknown): boolean;
|
|
56
|
+
declare function isExpiredSession(err: unknown, scope?: FailureScope): boolean;
|
|
53
57
|
|
|
54
58
|
export { PAGE_CONFLICT_CODE, isExpiredSession, readEaselFailure };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{PAGE_CONFLICT_CODE,isExpiredSession,readEaselFailure}from"../../chunk-
|
|
1
|
+
export{PAGE_CONFLICT_CODE,isExpiredSession,readEaselFailure}from"../../chunk-4EUWOGZF.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-JUQ6YJCG.js";import"../../chunk-RE4LP46F.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{routeSharedHostMessage}from"../../chunk-
|
|
1
|
+
export{routeSharedHostMessage}from"../../chunk-QDEZQ5A6.js";import"../../chunk-UB7JVPK4.js";import"../../chunk-Z6BAZFSW.js";import"../../chunk-R5ZVNJLJ.js";
|
|
@@ -8,6 +8,8 @@ import '../../resolve-D68pb3Bx.js';
|
|
|
8
8
|
import '../../plan-DChbUXdS.js';
|
|
9
9
|
import './document-contract.js';
|
|
10
10
|
import './session.js';
|
|
11
|
+
import './backend-error.js';
|
|
12
|
+
import '../../edit-lock/index.js';
|
|
11
13
|
import './host-chrome.js';
|
|
12
14
|
import './links/link-filters.js';
|
|
13
15
|
import '../../LinkPicker-W2Rtxetz.js';
|
|
@@ -16,5 +18,4 @@ import './section-template-types.js';
|
|
|
16
18
|
import './puck/content-tree.js';
|
|
17
19
|
import './document-switch.js';
|
|
18
20
|
import '../../engine-DBxp_v6B.js';
|
|
19
|
-
import '../../edit-lock/index.js';
|
|
20
21
|
import './admin-bridge.js';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { FailureScope } from './backend-error.js';
|
|
2
|
+
import '../../edit-lock/index.js';
|
|
3
|
+
|
|
1
4
|
/** Say what stopped the editor loading a document, in words an operator can
|
|
2
5
|
* hand to a developer.
|
|
3
6
|
*
|
|
@@ -13,8 +16,11 @@
|
|
|
13
16
|
* mismatch — and the one thing anybody could report was the one thing that
|
|
14
17
|
* narrowed nothing down. It lives in its own module, apart from the React
|
|
15
18
|
* provider that shows it, so the wording is pinned by a test rather than
|
|
16
|
-
* re-derived by whoever next reads the catch block.
|
|
17
|
-
|
|
19
|
+
* re-derived by whoever next reads the catch block.
|
|
20
|
+
*
|
|
21
|
+
* `scope` is whose reading of a host's client error it is (lib/backend-error
|
|
22
|
+
* `FailureScope`): the editor's session, when it brought its own. */
|
|
23
|
+
declare function describeLoadFailure(e: unknown, scope?: FailureScope): string;
|
|
18
24
|
/**
|
|
19
25
|
* The host's own sentence for a load it REFUSED, or null when this failure is
|
|
20
26
|
* not one of those. EFFICIENT has one: a slug that more than one website owns,
|
|
@@ -24,6 +30,6 @@ declare function describeLoadFailure(e: unknown): string;
|
|
|
24
30
|
*/
|
|
25
31
|
declare function hostLoadRefusal(e: unknown, document: {
|
|
26
32
|
slug: string;
|
|
27
|
-
}): string | null;
|
|
33
|
+
}, scope?: FailureScope): string | null;
|
|
28
34
|
|
|
29
35
|
export { describeLoadFailure, hostLoadRefusal };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{describeLoadFailure,hostLoadRefusal}from"../../chunk-
|
|
1
|
+
export{describeLoadFailure,hostLoadRefusal}from"../../chunk-ERR437B5.js";import"../../chunk-KCOBHPN6.js";
|