sanity 5.0.0-next-major.14 → 5.0.0-next-major.6
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/bin/sanity +2 -1
- package/lib/_chunks-es/LiveQueries.js +1 -1
- package/lib/_chunks-es/LiveQueries.js.map +1 -1
- package/lib/_chunks-es/MenuGroup.js +3 -3
- package/lib/_chunks-es/MenuGroup.js.map +1 -1
- package/lib/_chunks-es/PostMessagePreviewSnapshots.js +2 -2
- package/lib/_chunks-es/PostMessagePreviewSnapshots.js.map +1 -1
- package/lib/_chunks-es/PresentationToolGrantsCheck.js +54 -54
- package/lib/_chunks-es/PresentationToolGrantsCheck.js.map +1 -1
- package/lib/_chunks-es/QRCodeSVG.js +1 -1
- package/lib/_chunks-es/QRCodeSVG.js.map +1 -1
- package/lib/_chunks-es/StructureToolProvider.js +1 -1
- package/lib/_chunks-es/StructureToolProvider.js.map +1 -1
- package/lib/_chunks-es/VideoPlayer.js +1 -1
- package/lib/_chunks-es/VideoPlayer.js.map +1 -1
- package/lib/_chunks-es/ViteDevServerStopped.js +6 -6
- package/lib/_chunks-es/ViteDevServerStopped.js.map +1 -1
- package/lib/_chunks-es/_internal.js +1 -1
- package/lib/_chunks-es/_internal.js.map +1 -1
- package/lib/_chunks-es/deployApiAction.js +1 -1
- package/lib/_chunks-es/deployApiAction.js.map +1 -1
- package/lib/_chunks-es/execScript.js +2 -1
- package/lib/_chunks-es/execScript.js.map +1 -1
- package/lib/_chunks-es/exportAssetsAction.js +1 -1
- package/lib/_chunks-es/exportAssetsAction.js.map +1 -1
- package/lib/_chunks-es/extractAction.js +2 -1
- package/lib/_chunks-es/extractAction.js.map +1 -1
- package/lib/_chunks-es/extractManifestAction.js +2 -1
- package/lib/_chunks-es/extractManifestAction.js.map +1 -1
- package/lib/_chunks-es/generate-help-url.esm.js +1 -1
- package/lib/_chunks-es/generate-help-url.esm.js.map +1 -1
- package/lib/_chunks-es/getGraphQLAPIs.js +2 -1
- package/lib/_chunks-es/getGraphQLAPIs.js.map +1 -1
- package/lib/_chunks-es/helpers.js +2 -1
- package/lib/_chunks-es/helpers.js.map +1 -1
- package/lib/_chunks-es/index2.js +1 -1
- package/lib/_chunks-es/index2.js.map +1 -1
- package/lib/_chunks-es/index3.js +8 -8
- package/lib/_chunks-es/index3.js.map +1 -1
- package/lib/_chunks-es/package.js +1 -1
- package/lib/_chunks-es/pane.js +140 -140
- package/lib/_chunks-es/pane.js.map +1 -1
- package/lib/_chunks-es/presentation.js +4 -4
- package/lib/_chunks-es/presentation.js.map +1 -1
- package/lib/_chunks-es/previewServer.js +2 -1
- package/lib/_chunks-es/previewServer.js.map +1 -1
- package/lib/_chunks-es/runtime.js +14 -13
- package/lib/_chunks-es/runtime.js.map +1 -1
- package/lib/_chunks-es/validateAction.js +2 -1
- package/lib/_chunks-es/validateAction.js.map +1 -1
- package/lib/_chunks-es/validateAction2.js +2 -1
- package/lib/_chunks-es/validateAction2.js.map +1 -1
- package/lib/_chunks-es/version.js +1 -1
- package/lib/_internal/cli/threads/validateDocuments.cjs +1 -1
- package/lib/_internal/cli/threads/validateDocuments.cjs.map +1 -1
- package/lib/_singletons.d.ts +82 -2
- package/lib/_singletons.js +6 -2
- package/lib/_singletons.js.map +1 -1
- package/lib/desk.d.ts +28 -2
- package/lib/index.d.ts +30 -1
- package/lib/index.js +3573 -3172
- package/lib/index.js.map +1 -1
- package/lib/presentation.d.ts +14 -1
- package/lib/structure.d.ts +14 -1
- package/package.json +32 -32
|
@@ -135,7 +135,7 @@ const presentationMachine = setup({
|
|
|
135
135
|
children
|
|
136
136
|
} = props;
|
|
137
137
|
let t0;
|
|
138
|
-
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = {}, $[0] = t0) : t0 = $[0];
|
|
138
|
+
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {}, $[0] = t0) : t0 = $[0];
|
|
139
139
|
const sharedState = useRef(t0);
|
|
140
140
|
let t1, t2;
|
|
141
141
|
$[1] !== comlink ? (t1 = () => comlink?.on("visual-editing/shared-state", () => ({
|
|
@@ -215,7 +215,7 @@ const itemKey = "presentation/panels", getStoredItem = () => JSON.parse(localSto
|
|
|
215
215
|
function usePanelsStorage() {
|
|
216
216
|
const $ = c(1), get = _temp2$9, set = _temp3$4;
|
|
217
217
|
let t0;
|
|
218
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
218
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
219
219
|
const setDebounced = debounce(set, 100);
|
|
220
220
|
t0 = {
|
|
221
221
|
get,
|
|
@@ -338,13 +338,13 @@ const PanelsWrapper = styled.div`
|
|
|
338
338
|
children
|
|
339
339
|
} = t0, panelsEl = useRef(null);
|
|
340
340
|
let t1;
|
|
341
|
-
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = /* @__PURE__ */ new Map(), $[0] = t1) : t1 = $[0];
|
|
341
|
+
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = /* @__PURE__ */ new Map(), $[0] = t1) : t1 = $[0];
|
|
342
342
|
const [elements, setElements] = useState(t1);
|
|
343
343
|
let t2;
|
|
344
344
|
$[1] !== elements ? (t2 = getSortedElements(elements).filter(isPanel), $[1] = elements, $[2] = t2) : t2 = $[2];
|
|
345
345
|
const panels = t2;
|
|
346
346
|
let t3;
|
|
347
|
-
$[3] === Symbol.for("react.memo_cache_sentinel") ? (t3 = [], $[3] = t3) : t3 = $[3];
|
|
347
|
+
$[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = [], $[3] = t3) : t3 = $[3];
|
|
348
348
|
const [widths, setWidths] = useState(t3), [activeResizer, setActiveResizer] = useState(null);
|
|
349
349
|
let t4;
|
|
350
350
|
$[4] !== elements || $[5] !== panels || $[6] !== widths ? (t4 = {
|
|
@@ -360,7 +360,7 @@ const PanelsWrapper = styled.div`
|
|
|
360
360
|
}), $[8] = activeResizer, $[9] = panels, $[10] = widths, $[11] = t5) : t5 = $[11];
|
|
361
361
|
const getPanelStyle = t5;
|
|
362
362
|
let t6;
|
|
363
|
-
$[12] === Symbol.for("react.memo_cache_sentinel") ? (t6 = (id_0, data) => {
|
|
363
|
+
$[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t6 = (id_0, data) => {
|
|
364
364
|
setElements((prev) => {
|
|
365
365
|
if (prev.has(id_0))
|
|
366
366
|
return prev;
|
|
@@ -370,7 +370,7 @@ const PanelsWrapper = styled.div`
|
|
|
370
370
|
}, $[12] = t6) : t6 = $[12];
|
|
371
371
|
const registerElement = t6;
|
|
372
372
|
let t7;
|
|
373
|
-
$[13] === Symbol.for("react.memo_cache_sentinel") ? (t7 = (id_1) => {
|
|
373
|
+
$[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t7 = (id_1) => {
|
|
374
374
|
setElements((prev_0) => {
|
|
375
375
|
if (!prev_0.has(id_1))
|
|
376
376
|
return prev_0;
|
|
@@ -380,7 +380,7 @@ const PanelsWrapper = styled.div`
|
|
|
380
380
|
}, $[13] = t7) : t7 = $[13];
|
|
381
381
|
const unregisterElement = t7;
|
|
382
382
|
let t8;
|
|
383
|
-
$[14] === Symbol.for("react.memo_cache_sentinel") ? (t8 = {
|
|
383
|
+
$[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t8 = {
|
|
384
384
|
containerWidth: window.innerWidth,
|
|
385
385
|
dragOffset: 0,
|
|
386
386
|
panelAfter: null,
|
|
@@ -410,7 +410,7 @@ const PanelsWrapper = styled.div`
|
|
|
410
410
|
}, $[15] = elements, $[16] = t9) : t9 = $[16];
|
|
411
411
|
const startDragging = t9;
|
|
412
412
|
let t10;
|
|
413
|
-
$[17] === Symbol.for("react.memo_cache_sentinel") ? (t10 = () => {
|
|
413
|
+
$[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t10 = () => {
|
|
414
414
|
setActiveResizer(null);
|
|
415
415
|
}, $[17] = t10) : t10 = $[17];
|
|
416
416
|
const stopDragging = t10;
|
|
@@ -467,7 +467,7 @@ const PanelsWrapper = styled.div`
|
|
|
467
467
|
widths.length && storage.setDebounced(panels, widths);
|
|
468
468
|
}, t17 = [storage, panels, widths], $[29] = panels, $[30] = storage, $[31] = widths, $[32] = t16, $[33] = t17) : (t16 = $[32], t17 = $[33]), useEffect(t16, t17);
|
|
469
469
|
let t18, t19;
|
|
470
|
-
$[34] === Symbol.for("react.memo_cache_sentinel") ? (t18 = () => {
|
|
470
|
+
$[34] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t18 = () => {
|
|
471
471
|
const resizeObserver = new ResizeObserver(() => {
|
|
472
472
|
const {
|
|
473
473
|
panels: panels_0,
|
|
@@ -650,10 +650,10 @@ function PresentationPaneRouterProvider(props) {
|
|
|
650
650
|
}, $[2] = resolvePathFromState, $[3] = routerSearchParams, $[4] = routerState, $[5] = t1) : t1 = $[5];
|
|
651
651
|
const createPathWithParams = t1;
|
|
652
652
|
let t2;
|
|
653
|
-
$[6] === Symbol.for("react.memo_cache_sentinel") ? (t2 = {}, $[6] = t2) : t2 = $[6];
|
|
653
|
+
$[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = {}, $[6] = t2) : t2 = $[6];
|
|
654
654
|
const t3 = structureParams;
|
|
655
655
|
let t4;
|
|
656
|
-
$[7] === Symbol.for("react.memo_cache_sentinel") ? (t4 = [], $[7] = t4) : t4 = $[7];
|
|
656
|
+
$[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t4 = [], $[7] = t4) : t4 = $[7];
|
|
657
657
|
let t5;
|
|
658
658
|
$[8] !== refs || $[9] !== searchParams ? (t5 = forwardRef(function(childLinkProps, ref) {
|
|
659
659
|
const {
|
|
@@ -792,10 +792,10 @@ function DocumentListPane(props) {
|
|
|
792
792
|
}, $[9] = t1, $[10] = t2, $[11] = t3) : t3 = $[11];
|
|
793
793
|
const pane = t3, [errorParams, setErrorParams] = useState(null);
|
|
794
794
|
let t4;
|
|
795
|
-
$[12] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => setErrorParams(null), $[12] = t4) : t4 = $[12];
|
|
795
|
+
$[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t4 = () => setErrorParams(null), $[12] = t4) : t4 = $[12];
|
|
796
796
|
const handleRetry = t4, [structureParams] = useState(_temp2$7);
|
|
797
797
|
let t5;
|
|
798
|
-
$[13] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => setErrorParams(null), $[13] = t5) : t5 = $[13];
|
|
798
|
+
$[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t5 = () => setErrorParams(null), $[13] = t5) : t5 = $[13];
|
|
799
799
|
let t6;
|
|
800
800
|
if ($[14] !== refs ? (t6 = [refs], $[14] = refs, $[15] = t6) : t6 = $[15], useEffect(t5, t6), errorParams) {
|
|
801
801
|
let t72;
|
|
@@ -864,10 +864,10 @@ function DocumentPane(props) {
|
|
|
864
864
|
}), $[10] = documentId, $[11] = documentType, $[12] = onFocusPath, $[13] = t3) : t3 = $[13];
|
|
865
865
|
const handleFocusPath = t3, [errorParams, setErrorParams] = useState(null);
|
|
866
866
|
let t4;
|
|
867
|
-
$[14] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => setErrorParams(null), $[14] = t4) : t4 = $[14];
|
|
867
|
+
$[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t4 = () => setErrorParams(null), $[14] = t4) : t4 = $[14];
|
|
868
868
|
const handleRetry = t4;
|
|
869
869
|
let t5;
|
|
870
|
-
$[15] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => {
|
|
870
|
+
$[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t5 = () => {
|
|
871
871
|
setErrorParams(null);
|
|
872
872
|
}, $[15] = t5) : t5 = $[15];
|
|
873
873
|
let t6;
|
|
@@ -883,11 +883,11 @@ function DocumentPane(props) {
|
|
|
883
883
|
return $[26] !== t72 || $[27] !== t82 ? (t92 = /* @__PURE__ */ jsx(ErrorCard, { flex: 1, message: t72, onRetry: handleRetry, children: t82 }), $[26] = t72, $[27] = t82, $[28] = t92) : t92 = $[28], t92;
|
|
884
884
|
}
|
|
885
885
|
let t7;
|
|
886
|
-
$[29] === Symbol.for("react.memo_cache_sentinel") ? (t7 = {
|
|
886
|
+
$[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t7 = {
|
|
887
887
|
height: "100%"
|
|
888
888
|
}, $[29] = t7) : t7 = $[29];
|
|
889
889
|
let t8;
|
|
890
|
-
$[30] === Symbol.for("react.memo_cache_sentinel") ? (t8 = /* @__PURE__ */ jsx(PresentationSpinner, {}), $[30] = t8) : t8 = $[30];
|
|
890
|
+
$[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t8 = /* @__PURE__ */ jsx(PresentationSpinner, {}), $[30] = t8) : t8 = $[30];
|
|
891
891
|
let t9;
|
|
892
892
|
$[31] !== handleFocusPath || $[32] !== paneDocumentNode ? (t9 = /* @__PURE__ */ jsx(Suspense, { fallback: t8, children: /* @__PURE__ */ jsx(DocumentPane$1, { paneKey: "document", index: 1, itemId: "document", pane: paneDocumentNode, onFocusPath: handleFocusPath }) }), $[31] = handleFocusPath, $[32] = paneDocumentNode, $[33] = t9) : t9 = $[33];
|
|
893
893
|
let t10;
|
|
@@ -909,7 +909,7 @@ function DocumentPanel(props) {
|
|
|
909
909
|
function usePreviewState(documentId, schemaType2) {
|
|
910
910
|
const $ = c(7), documentPreviewStore = useDocumentPreviewStore();
|
|
911
911
|
let t0;
|
|
912
|
-
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = {}, $[0] = t0) : t0 = $[0];
|
|
912
|
+
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {}, $[0] = t0) : t0 = $[0];
|
|
913
913
|
const [preview, setPreview] = useState(t0), {
|
|
914
914
|
perspectiveStack
|
|
915
915
|
} = usePerspective();
|
|
@@ -1103,7 +1103,7 @@ const Resizer = styled.div`
|
|
|
1103
1103
|
unregisterElement(id);
|
|
1104
1104
|
}), t8 = [id, order, registerElement, unregisterElement], $[14] = id, $[15] = order, $[16] = registerElement, $[17] = unregisterElement, $[18] = t7, $[19] = t8) : (t7 = $[18], t8 = $[19]), useLayoutEffect(t7, t8);
|
|
1105
1105
|
let t10, t9;
|
|
1106
|
-
$[20] === Symbol.for("react.memo_cache_sentinel") ? (t9 = /* @__PURE__ */ jsx("span", {}), t10 = /* @__PURE__ */ jsx("span", {}), $[20] = t10, $[21] = t9) : (t10 = $[20], t9 = $[21]);
|
|
1106
|
+
$[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t9 = /* @__PURE__ */ jsx("span", {}), t10 = /* @__PURE__ */ jsx("span", {}), $[20] = t10, $[21] = t9) : (t10 = $[20], t9 = $[21]);
|
|
1107
1107
|
let t11;
|
|
1108
1108
|
$[22] !== disabled ? (t11 = /* @__PURE__ */ jsxs(ResizerInner, { $disabled: disabled, children: [
|
|
1109
1109
|
t9,
|
|
@@ -1118,7 +1118,7 @@ const Resizer = styled.div`
|
|
|
1118
1118
|
getCommentIntent
|
|
1119
1119
|
} = props;
|
|
1120
1120
|
let t0;
|
|
1121
|
-
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsx(PanelResizer, { order: 4 }), $[0] = t0) : t0 = $[0];
|
|
1121
|
+
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsx(PanelResizer, { order: 4 }), $[0] = t0) : t0 = $[0];
|
|
1122
1122
|
let t1;
|
|
1123
1123
|
$[1] !== getCommentIntent || $[2] !== props.children ? (t1 = /* @__PURE__ */ jsx(CommentsIntentProvider, { getIntent: getCommentIntent, children: props.children }), $[1] = getCommentIntent, $[2] = props.children, $[3] = t1) : t1 = $[3];
|
|
1124
1124
|
let t2;
|
|
@@ -1280,9 +1280,9 @@ const IFrame = forwardRef(function(props, forwardedRef) {
|
|
|
1280
1280
|
style
|
|
1281
1281
|
} = props, ref = useRef(null);
|
|
1282
1282
|
let t0;
|
|
1283
|
-
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[0] = t0) : t0 = $[0], useImperativeHandle(forwardedRef, t0);
|
|
1283
|
+
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[0] = t0) : t0 = $[0], useImperativeHandle(forwardedRef, t0);
|
|
1284
1284
|
let t1, t2;
|
|
1285
|
-
$[1] === Symbol.for("react.memo_cache_sentinel") ? (t1 = () => {
|
|
1285
|
+
$[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = () => {
|
|
1286
1286
|
if (!ref.current)
|
|
1287
1287
|
return;
|
|
1288
1288
|
const instance = ref.current, handleBlur = function() {
|
|
@@ -1306,7 +1306,7 @@ const IFrame = forwardRef(function(props, forwardedRef) {
|
|
|
1306
1306
|
let t5;
|
|
1307
1307
|
$[13] !== preventClick ? (t5 = preventClick && /* @__PURE__ */ jsx(IFrameOverlay, {}), $[13] = preventClick, $[14] = t5) : t5 = $[14];
|
|
1308
1308
|
let t6;
|
|
1309
|
-
$[15] === Symbol.for("react.memo_cache_sentinel") ? (t6 = /* @__PURE__ */ jsx(GlobalViewTransition, {}), $[15] = t6) : t6 = $[15];
|
|
1309
|
+
$[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t6 = /* @__PURE__ */ jsx(GlobalViewTransition, {}), $[15] = t6) : t6 = $[15];
|
|
1310
1310
|
let t7;
|
|
1311
1311
|
return $[16] !== t4 || $[17] !== t5 ? (t7 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1312
1312
|
t4,
|
|
@@ -1363,7 +1363,7 @@ function OpenPreviewButton(props) {
|
|
|
1363
1363
|
let t2;
|
|
1364
1364
|
$[9] !== t1 ? (t2 = /* @__PURE__ */ jsx(Text, { size: 1, children: t1 }), $[9] = t1, $[10] = t2) : t2 = $[10];
|
|
1365
1365
|
let t3;
|
|
1366
|
-
$[11] === Symbol.for("react.memo_cache_sentinel") ? (t3 = ["bottom-start"], $[11] = t3) : t3 = $[11];
|
|
1366
|
+
$[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = ["bottom-start"], $[11] = t3) : t3 = $[11];
|
|
1367
1367
|
let t4;
|
|
1368
1368
|
$[12] !== t ? (t4 = t("share-url.menu-item.open.text"), $[12] = t, $[13] = t4) : t4 = $[13];
|
|
1369
1369
|
let t5;
|
|
@@ -1395,7 +1395,7 @@ function PreviewLocationInput(props) {
|
|
|
1395
1395
|
basePath: t2
|
|
1396
1396
|
} = useActiveWorkspace()?.activeWorkspace || {}, basePath = t2 === void 0 ? "/" : t2, inputRef = useRef(null), [sessionValue, setSessionValue] = useState(void 0), [customValidity, setCustomValidity] = useState(void 0);
|
|
1397
1397
|
let t3;
|
|
1398
|
-
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t3 = (event) => {
|
|
1398
|
+
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = (event) => {
|
|
1399
1399
|
setSessionValue(event.currentTarget.value);
|
|
1400
1400
|
}, $[0] = t3) : t3 = $[0];
|
|
1401
1401
|
const handleChange = t3;
|
|
@@ -1431,7 +1431,7 @@ function PreviewLocationInput(props) {
|
|
|
1431
1431
|
}, $[1] = allowOrigins, $[2] = basePath, $[3] = onChange, $[4] = sessionValue, $[5] = t, $[6] = targetOrigin, $[7] = t4) : t4 = $[7];
|
|
1432
1432
|
const handleKeyDown = t4;
|
|
1433
1433
|
let t5;
|
|
1434
|
-
$[8] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => {
|
|
1434
|
+
$[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t5 = () => {
|
|
1435
1435
|
setCustomValidity(void 0), setSessionValue(void 0);
|
|
1436
1436
|
}, $[8] = t5) : t5 = $[8];
|
|
1437
1437
|
const handleBlur = t5;
|
|
@@ -1447,18 +1447,18 @@ function PreviewLocationInput(props) {
|
|
|
1447
1447
|
}, $[9] = targetOrigin, $[10] = value, $[11] = t6) : t6 = $[11];
|
|
1448
1448
|
const handleClear = t6;
|
|
1449
1449
|
let t7;
|
|
1450
|
-
$[12] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => {
|
|
1450
|
+
$[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t7 = () => {
|
|
1451
1451
|
setCustomValidity(void 0), setSessionValue(void 0);
|
|
1452
1452
|
}, $[12] = t7) : t7 = $[12];
|
|
1453
1453
|
let t8;
|
|
1454
1454
|
$[13] !== targetOrigin || $[14] !== value ? (t8 = [targetOrigin, value], $[13] = targetOrigin, $[14] = value, $[15] = t8) : t8 = $[15], useEffect(t7, t8);
|
|
1455
1455
|
let t9;
|
|
1456
|
-
$[16] === Symbol.for("react.memo_cache_sentinel") ? (t9 = {
|
|
1456
|
+
$[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t9 = {
|
|
1457
1457
|
icon: ResetIcon
|
|
1458
1458
|
}, $[16] = t9) : t9 = $[16];
|
|
1459
1459
|
const t10 = customValidity ? t9 : void 0;
|
|
1460
1460
|
let t11;
|
|
1461
|
-
$[17] === Symbol.for("react.memo_cache_sentinel") ? (t11 = {
|
|
1461
|
+
$[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t11 = {
|
|
1462
1462
|
zIndex: 1
|
|
1463
1463
|
}, $[17] = t11) : t11 = $[17];
|
|
1464
1464
|
let t12;
|
|
@@ -1487,7 +1487,7 @@ function SharePreviewMenu(props) {
|
|
|
1487
1487
|
push: pushToast
|
|
1488
1488
|
} = useToast();
|
|
1489
1489
|
let t0;
|
|
1490
|
-
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = {
|
|
1490
|
+
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {
|
|
1491
1491
|
apiVersion: API_VERSION
|
|
1492
1492
|
}, $[0] = t0) : t0 = $[0];
|
|
1493
1493
|
const client = useClient(t0), currentUser = useCurrentUser(), [loading, setLoading] = useState(!0), [enabling, setEnabling] = useState(!1), [disabling, setDisabling] = useState(!1), [secret, setSecret] = useState(null), busy = enabling || disabling || loading;
|
|
@@ -1583,7 +1583,7 @@ function SharePreviewMenu(props) {
|
|
|
1583
1583
|
let t9;
|
|
1584
1584
|
$[24] !== t8 ? (t9 = /* @__PURE__ */ jsx(Button, { "aria-label": t8, icon: ShareIcon, mode: "bleed", tooltipProps: null }), $[24] = t8, $[25] = t9) : t9 = $[25];
|
|
1585
1585
|
let t10;
|
|
1586
|
-
$[26] === Symbol.for("react.memo_cache_sentinel") ? (t10 = {
|
|
1586
|
+
$[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t10 = {
|
|
1587
1587
|
maxWidth: 248
|
|
1588
1588
|
}, $[26] = t10) : t10 = $[26];
|
|
1589
1589
|
const t11 = canUseSharedPreviewAccess ? void 0 : 0;
|
|
@@ -1655,7 +1655,7 @@ function SharePreviewMenu(props) {
|
|
|
1655
1655
|
let t13;
|
|
1656
1656
|
$[40] !== t11 || $[41] !== t12 ? (t13 = /* @__PURE__ */ jsx(Menu, { style: t10, padding: t11, children: t12 }), $[40] = t11, $[41] = t12, $[42] = t13) : t13 = $[42];
|
|
1657
1657
|
let t14;
|
|
1658
|
-
$[43] === Symbol.for("react.memo_cache_sentinel") ? (t14 = {
|
|
1658
|
+
$[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t14 = {
|
|
1659
1659
|
constrainSize: !0,
|
|
1660
1660
|
placement: "bottom",
|
|
1661
1661
|
portal: !0
|
|
@@ -1712,7 +1712,7 @@ const PreviewHeaderDefault = (props) => {
|
|
|
1712
1712
|
search
|
|
1713
1713
|
} = t2, previewLocationRoute = `${pathname}${search}`, perspectiveToggleTooltipId = useId(), previewUrlBusy = useSelector(previewUrlRef, _temp6);
|
|
1714
1714
|
let t3;
|
|
1715
|
-
$[12] === Symbol.for("react.memo_cache_sentinel") ? (t3 = {
|
|
1715
|
+
$[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = {
|
|
1716
1716
|
width: "100%"
|
|
1717
1717
|
}, $[12] = t3) : t3 = $[12];
|
|
1718
1718
|
let t4;
|
|
@@ -1722,7 +1722,7 @@ const PreviewHeaderDefault = (props) => {
|
|
|
1722
1722
|
placement: "bottom"
|
|
1723
1723
|
} }), $[13] = navigatorEnabled, $[14] = t, $[15] = toggleNavigator, $[16] = t4) : t4 = $[16];
|
|
1724
1724
|
let t5;
|
|
1725
|
-
$[17] === Symbol.for("react.memo_cache_sentinel") ? (t5 = {
|
|
1725
|
+
$[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t5 = {
|
|
1726
1726
|
whiteSpace: "nowrap"
|
|
1727
1727
|
}, $[17] = t5) : t5 = $[17];
|
|
1728
1728
|
const t6 = overlaysEnabled ? "disable" : "enable";
|
|
@@ -1733,7 +1733,7 @@ const PreviewHeaderDefault = (props) => {
|
|
|
1733
1733
|
let t8;
|
|
1734
1734
|
$[21] !== t7 ? (t8 = /* @__PURE__ */ jsx(Box, { padding: 1, children: /* @__PURE__ */ jsx(Text, { size: 1, children: t7 }) }), $[21] = t7, $[22] = t8) : t8 = $[22];
|
|
1735
1735
|
let t9;
|
|
1736
|
-
$[23] === Symbol.for("react.memo_cache_sentinel") ? (t9 = /* @__PURE__ */ jsx(Box, { paddingY: 1, children: /* @__PURE__ */ jsx(Hotkeys, { keys: ["Alt"], style: {
|
|
1736
|
+
$[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t9 = /* @__PURE__ */ jsx(Box, { paddingY: 1, children: /* @__PURE__ */ jsx(Hotkeys, { keys: ["Alt"], style: {
|
|
1737
1737
|
marginTop: -4,
|
|
1738
1738
|
marginBottom: -4
|
|
1739
1739
|
} }) }), $[23] = t9) : t9 = $[23];
|
|
@@ -1743,16 +1743,16 @@ const PreviewHeaderDefault = (props) => {
|
|
|
1743
1743
|
t9
|
|
1744
1744
|
] }), $[24] = t8, $[25] = t10) : t10 = $[25];
|
|
1745
1745
|
let t11;
|
|
1746
|
-
$[26] === Symbol.for("react.memo_cache_sentinel") ? (t11 = ["bottom-start"], $[26] = t11) : t11 = $[26];
|
|
1746
|
+
$[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t11 = ["bottom-start"], $[26] = t11) : t11 = $[26];
|
|
1747
1747
|
let t12;
|
|
1748
|
-
$[27] === Symbol.for("react.memo_cache_sentinel") ? (t12 = {
|
|
1748
|
+
$[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t12 = {
|
|
1749
1749
|
lineHeight: 0,
|
|
1750
1750
|
borderRadius: 999,
|
|
1751
1751
|
userSelect: "none"
|
|
1752
1752
|
}, $[27] = t12) : t12 = $[27];
|
|
1753
1753
|
const t13 = overlaysEnabled ? "transparent" : void 0;
|
|
1754
1754
|
let t14;
|
|
1755
|
-
$[28] === Symbol.for("react.memo_cache_sentinel") ? (t14 = {
|
|
1755
|
+
$[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t14 = {
|
|
1756
1756
|
margin: -4
|
|
1757
1757
|
}, $[28] = t14) : t14 = $[28];
|
|
1758
1758
|
const t15 = !isLoaded, t16 = isLoading || overlaysConnection !== "connected";
|
|
@@ -1779,7 +1779,7 @@ const PreviewHeaderDefault = (props) => {
|
|
|
1779
1779
|
let t25;
|
|
1780
1780
|
$[54] !== t24 ? (t25 = /* @__PURE__ */ jsx(Text, { size: 1, children: t24 }), $[54] = t24, $[55] = t25) : t25 = $[55];
|
|
1781
1781
|
let t26;
|
|
1782
|
-
$[56] === Symbol.for("react.memo_cache_sentinel") ? (t26 = ["bottom-end"], $[56] = t26) : t26 = $[56];
|
|
1782
|
+
$[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t26 = ["bottom-end"], $[56] = t26) : t26 = $[56];
|
|
1783
1783
|
let t27;
|
|
1784
1784
|
$[57] !== t ? (t27 = t("preview-frame.refresh-button.aria-label"), $[57] = t, $[58] = t27) : t27 = $[58];
|
|
1785
1785
|
const t28 = isReloading || isRefreshing || previewUrlBusy;
|
|
@@ -1803,7 +1803,7 @@ const PreviewHeaderDefault = (props) => {
|
|
|
1803
1803
|
let t36;
|
|
1804
1804
|
$[83] !== t35 ? (t36 = /* @__PURE__ */ jsx(Text, { size: 1, children: t35 }), $[83] = t35, $[84] = t36) : t36 = $[84];
|
|
1805
1805
|
let t37;
|
|
1806
|
-
$[85] === Symbol.for("react.memo_cache_sentinel") ? (t37 = ["bottom-start"], $[85] = t37) : t37 = $[85];
|
|
1806
|
+
$[85] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t37 = ["bottom-start"], $[85] = t37) : t37 = $[85];
|
|
1807
1807
|
let t38;
|
|
1808
1808
|
$[86] !== t ? (t38 = t("preview-frame.viewport-button.aria-label"), $[86] = t, $[87] = t38) : t38 = $[87];
|
|
1809
1809
|
const t39 = viewport === "desktop" ? MobileDeviceIcon : DesktopIcon;
|
|
@@ -1828,11 +1828,11 @@ function PreviewHeader(props) {
|
|
|
1828
1828
|
$[0] !== HeaderComponent || $[1] !== props ? (t0 = HeaderComponent ? /* @__PURE__ */ jsx(HeaderComponent, { ...props, renderDefault }) : renderDefault(props), $[0] = HeaderComponent, $[1] = props, $[2] = t0) : t0 = $[2];
|
|
1829
1829
|
const header = t0;
|
|
1830
1830
|
let t1;
|
|
1831
|
-
$[3] === Symbol.for("react.memo_cache_sentinel") ? (t1 = {
|
|
1831
|
+
$[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = {
|
|
1832
1832
|
position: "relative"
|
|
1833
1833
|
}, $[3] = t1) : t1 = $[3];
|
|
1834
1834
|
let t2;
|
|
1835
|
-
$[4] === Symbol.for("react.memo_cache_sentinel") ? (t2 = {
|
|
1835
|
+
$[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = {
|
|
1836
1836
|
minHeight: 0
|
|
1837
1837
|
}, $[4] = t2) : t2 = $[4];
|
|
1838
1838
|
let t3;
|
|
@@ -2163,10 +2163,10 @@ function useDocumentsOnPage(perspective, frameStateRef) {
|
|
|
2163
2163
|
const $ = c(11);
|
|
2164
2164
|
validateApiPerspective(perspective);
|
|
2165
2165
|
let t0;
|
|
2166
|
-
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = {}, $[0] = t0) : t0 = $[0];
|
|
2166
|
+
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {}, $[0] = t0) : t0 = $[0];
|
|
2167
2167
|
const [published, setPublished] = useState(t0);
|
|
2168
2168
|
let t1;
|
|
2169
|
-
$[1] === Symbol.for("react.memo_cache_sentinel") ? (t1 = {}, $[1] = t1) : t1 = $[1];
|
|
2169
|
+
$[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = {}, $[1] = t1) : t1 = $[1];
|
|
2170
2170
|
const [previewDrafts, setPreviewDrafts] = useState(t1), urlRef = useRef("");
|
|
2171
2171
|
let t2;
|
|
2172
2172
|
$[2] !== frameStateRef ? (t2 = (key, perspective_0, t32) => {
|
|
@@ -2270,7 +2270,7 @@ function useMainDocument(props) {
|
|
|
2270
2270
|
state: routerState
|
|
2271
2271
|
} = useRouter();
|
|
2272
2272
|
let t2;
|
|
2273
|
-
$[2] === Symbol.for("react.memo_cache_sentinel") ? (t2 = {
|
|
2273
|
+
$[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = {
|
|
2274
2274
|
apiVersion: API_VERSION
|
|
2275
2275
|
}, $[2] = t2) : t2 = $[2];
|
|
2276
2276
|
const client = useClient(t2);
|
|
@@ -2450,7 +2450,7 @@ function useParams(t0) {
|
|
|
2450
2450
|
$[45] !== routerState ? (t9 = [routerState], $[45] = routerState, $[46] = t9) : t9 = $[46];
|
|
2451
2451
|
const [navigationHistory, setNavigationHistory] = useState(t9);
|
|
2452
2452
|
let t10;
|
|
2453
|
-
$[47] === Symbol.for("react.memo_cache_sentinel") ? (t10 = (t112) => {
|
|
2453
|
+
$[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t10 = (t112) => {
|
|
2454
2454
|
const {
|
|
2455
2455
|
id: id_0,
|
|
2456
2456
|
type: type_0
|
|
@@ -2503,7 +2503,7 @@ function _temp$7(acc_0, t0) {
|
|
|
2503
2503
|
const usePopups = (controller) => {
|
|
2504
2504
|
const $ = c(10), [popups, setPopups] = useState(_temp$6);
|
|
2505
2505
|
let t0;
|
|
2506
|
-
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = (url) => {
|
|
2506
|
+
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = (url) => {
|
|
2507
2507
|
const source = window.open(url, "_blank");
|
|
2508
2508
|
source && setPopups((prev) => new Set(prev).add(source));
|
|
2509
2509
|
}, $[0] = t0) : t0 = $[0];
|
|
@@ -2563,7 +2563,7 @@ function usePresentationPerspective(t0) {
|
|
|
2563
2563
|
function useStatus() {
|
|
2564
2564
|
const $ = c(4);
|
|
2565
2565
|
let t0;
|
|
2566
|
-
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ new Map(), $[0] = t0) : t0 = $[0];
|
|
2566
|
+
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ new Map(), $[0] = t0) : t0 = $[0];
|
|
2567
2567
|
const [statusMap, setStatusMap] = useState(t0);
|
|
2568
2568
|
let t1;
|
|
2569
2569
|
bb0: {
|
|
@@ -2581,7 +2581,7 @@ function useStatus() {
|
|
|
2581
2581
|
}
|
|
2582
2582
|
const memoStatus = t1;
|
|
2583
2583
|
let t2;
|
|
2584
|
-
$[1] === Symbol.for("react.memo_cache_sentinel") ? (t2 = (event) => {
|
|
2584
|
+
$[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = (event) => {
|
|
2585
2585
|
setStatusMap((prev) => {
|
|
2586
2586
|
const next = new Map(prev);
|
|
2587
2587
|
if (event.status === "disconnected")
|
|
@@ -2649,7 +2649,7 @@ function PresentationTool(props) {
|
|
|
2649
2649
|
}, $[4] = tool.options?.devMode, $[5] = t2) : t2 = $[5];
|
|
2650
2650
|
const [devMode] = useState(t2), iframeRef = useRef(null), [controller, setController] = useState(), [visualEditingComlink, setVisualEditingComlink] = useState(null);
|
|
2651
2651
|
let t3;
|
|
2652
|
-
$[6] === Symbol.for("react.memo_cache_sentinel") ? (t3 = {
|
|
2652
|
+
$[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = {
|
|
2653
2653
|
title: void 0,
|
|
2654
2654
|
url: void 0
|
|
2655
2655
|
}, $[6] = t3) : t3 = $[6];
|
|
@@ -3699,7 +3699,7 @@ const resolveUrlFromPreviewSearchParamActor = fromPromise(async ({
|
|
|
3699
3699
|
function usePreviewUrlActorRef(previewUrlOption, allowOption) {
|
|
3700
3700
|
const $ = c(25), grantsStore = useGrantsStore();
|
|
3701
3701
|
let t0;
|
|
3702
|
-
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = {
|
|
3702
|
+
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {
|
|
3703
3703
|
apiVersion: API_VERSION
|
|
3704
3704
|
}, $[0] = t0) : t0 = $[0];
|
|
3705
3705
|
const client = useClient(t0), currentUserId = useCurrentUser()?.id, studioBasePath = useActiveWorkspace()?.activeWorkspace?.basePath || "/", router = useRouter();
|
|
@@ -3711,7 +3711,7 @@ function usePreviewUrlActorRef(previewUrlOption, allowOption) {
|
|
|
3711
3711
|
t
|
|
3712
3712
|
} = useTranslation(presentationLocaleNamespace);
|
|
3713
3713
|
let t2;
|
|
3714
|
-
$[3] === Symbol.for("react.memo_cache_sentinel") ? (t2 = {
|
|
3714
|
+
$[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = {
|
|
3715
3715
|
scheduledDraft: void 0
|
|
3716
3716
|
}, $[3] = t2) : t2 = $[3];
|
|
3717
3717
|
const perspective = usePresentationPerspective(t2);
|
|
@@ -3828,7 +3828,7 @@ function _temp$2(state) {
|
|
|
3828
3828
|
function useVercelBypassSecret() {
|
|
3829
3829
|
const $ = c(7);
|
|
3830
3830
|
let t0;
|
|
3831
|
-
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = {
|
|
3831
|
+
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {
|
|
3832
3832
|
apiVersion: API_VERSION
|
|
3833
3833
|
}, $[0] = t0) : t0 = $[0];
|
|
3834
3834
|
const client = useClient(t0), [vercelProtectionBypassReadyState, ready] = useReducer(_temp$1, "loading"), [vercelProtectionBypassSecret, setVercelProtectionBypassSecret] = useState(null);
|
|
@@ -3853,7 +3853,7 @@ function PresentationToolGrantsCheck(t0) {
|
|
|
3853
3853
|
const previewAccessSharingCreatePermission = useSelector(previewUrlRef, _temp), previewAccessSharingUpdatePermission = useSelector(previewUrlRef, _temp2), previewAccessSharingReadPermission = useSelector(previewUrlRef, _temp3), previewUrlSecretPermission = useSelector(previewUrlRef, _temp4), url = useSelector(previewUrlRef, _temp5), [vercelProtectionBypass, vercelProtectionBypassReadyState] = useVercelBypassSecret();
|
|
3854
3854
|
if (!url || vercelProtectionBypassReadyState === "loading" || !previewAccessSharingCreatePermission || typeof previewAccessSharingCreatePermission.granted > "u" || !previewAccessSharingUpdatePermission || typeof previewAccessSharingUpdatePermission.granted > "u" || !previewUrlSecretPermission || !previewAccessSharingReadPermission || typeof previewAccessSharingReadPermission.granted > "u" || typeof previewUrlSecretPermission.granted > "u") {
|
|
3855
3855
|
let t12;
|
|
3856
|
-
return $[0] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(PresentationSpinner, {}), $[0] = t12) : t12 = $[0], t12;
|
|
3856
|
+
return $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(PresentationSpinner, {}), $[0] = t12) : t12 = $[0], t12;
|
|
3857
3857
|
}
|
|
3858
3858
|
const t1 = previewAccessSharingCreatePermission?.granted === !0 && previewAccessSharingUpdatePermission?.granted === !0, t2 = previewAccessSharingReadPermission?.granted === !0;
|
|
3859
3859
|
let t3;
|