@arbidocs/blocks 0.5.166 → 0.5.167
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/{CalendarGridImpl-ZUHFUWWA.cjs → CalendarGridImpl-2M6IPL4U.cjs} +19 -19
- package/dist/{CalendarGridImpl-ZUHFUWWA.cjs.map → CalendarGridImpl-2M6IPL4U.cjs.map} +1 -1
- package/dist/{ConnectedCallDock-RUBZWNBS.cjs → ConnectedCallDock-PFMK5OGR.cjs} +25 -25
- package/dist/{ConnectedCallDock-RUBZWNBS.cjs.map → ConnectedCallDock-PFMK5OGR.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-UE73GPNR.cjs → ConnectedCallRoom-VHU2XWLY.cjs} +18 -18
- package/dist/{ConnectedCallRoom-UE73GPNR.cjs.map → ConnectedCallRoom-VHU2XWLY.cjs.map} +1 -1
- package/dist/ConnectedMailInviteCard-S2X4XN3X.cjs +22 -0
- package/dist/{ConnectedMailInviteCard-HPOHLB72.cjs.map → ConnectedMailInviteCard-S2X4XN3X.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-P5TX46HD.cjs → ConnectedNativeDocxComparison-AOVH47RY.cjs} +17 -17
- package/dist/{ConnectedNativeDocxComparison-P5TX46HD.cjs.map → ConnectedNativeDocxComparison-AOVH47RY.cjs.map} +1 -1
- package/dist/{ConnectedPresentation-CQJB3BOB.cjs → ConnectedPresentation-PYTZBAOR.cjs} +20 -20
- package/dist/{ConnectedPresentation-CQJB3BOB.cjs.map → ConnectedPresentation-PYTZBAOR.cjs.map} +1 -1
- package/dist/{ConnectedProductionSetDialog-O5RX57PS.cjs → ConnectedProductionSetDialog-6ZGBUMOT.cjs} +5 -5
- package/dist/{ConnectedProductionSetDialog-O5RX57PS.cjs.map → ConnectedProductionSetDialog-6ZGBUMOT.cjs.map} +1 -1
- package/dist/{ConnectedSlidesTab-LEA5OW75.cjs → ConnectedSlidesTab-GT5TQPWW.cjs} +15 -15
- package/dist/{ConnectedSlidesTab-LEA5OW75.cjs.map → ConnectedSlidesTab-GT5TQPWW.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-XO4ULCQO.cjs → ConnectedStreamedWordArtifact-2WBJZI2K.cjs} +17 -17
- package/dist/{ConnectedStreamedWordArtifact-XO4ULCQO.cjs.map → ConnectedStreamedWordArtifact-2WBJZI2K.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-OHWZ6YI3.cjs → DocumentReviewCard-3E44O3F6.cjs} +16 -16
- package/dist/{DocumentReviewCard-OHWZ6YI3.cjs.map → DocumentReviewCard-3E44O3F6.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-M6MRG2X7.cjs → FilesViewerDialog-JCW2SMBU.cjs} +46 -46
- package/dist/{FilesViewerDialog-M6MRG2X7.cjs.map → FilesViewerDialog-JCW2SMBU.cjs.map} +1 -1
- package/dist/{WorkspaceTableView-ZAN4C4IZ.cjs → WorkspaceTableView-ZKLEEPCF.cjs} +9 -9
- package/dist/{WorkspaceTableView-ZAN4C4IZ.cjs.map → WorkspaceTableView-ZKLEEPCF.cjs.map} +1 -1
- package/dist/agents/index.cjs +284 -284
- package/dist/agents/workflows/StepDocuments.d.ts +14 -1
- package/dist/agents/workflows/StepDocuments.js +23 -1
- package/dist/agents/workflows/StepDocuments.js.map +2 -2
- package/dist/{ai-AV4LQ5AW.cjs → ai-VXPILCGE.cjs} +29 -29
- package/dist/ai-VXPILCGE.cjs.map +1 -0
- package/dist/auth/index.cjs +12 -12
- package/dist/calendar/SchedulingAssistant.js +6 -1
- package/dist/calendar/SchedulingAssistant.js.map +2 -2
- package/dist/calendar/index.cjs +117 -117
- package/dist/calendar/labels.js +1 -0
- package/dist/calendar/labels.js.map +2 -2
- package/dist/calendar/types.d.ts +1 -0
- package/dist/calls/connected/CallPeoplePicker.d.ts +1 -1
- package/dist/calls/connected/CallPeoplePicker.js +4 -2
- package/dist/calls/connected/CallPeoplePicker.js.map +2 -2
- package/dist/calls/connected/ConnectedCallRoom.js +33 -2
- package/dist/calls/connected/ConnectedCallRoom.js.map +2 -2
- package/dist/calls/connected/DmCallButton.js +14 -6
- package/dist/calls/connected/DmCallButton.js.map +2 -2
- package/dist/calls/connected/call-people.d.ts +4 -2
- package/dist/calls/connected/call-people.js +4 -0
- package/dist/calls/connected/call-people.js.map +2 -2
- package/dist/calls/index.cjs +119 -119
- package/dist/chat/index.cjs +56 -56
- package/dist/{chunk-SXBQAMHV.cjs → chunk-2KGU5G6Z.cjs} +6 -6
- package/dist/chunk-2KGU5G6Z.cjs.map +1 -0
- package/dist/{chunk-W7XZKTDG.cjs → chunk-3K7V4LOF.cjs} +19 -10
- package/dist/chunk-3K7V4LOF.cjs.map +1 -0
- package/dist/{chunk-QD2XCNJH.cjs → chunk-4TJCJ74G.cjs} +54 -54
- package/dist/{chunk-QD2XCNJH.cjs.map → chunk-4TJCJ74G.cjs.map} +1 -1
- package/dist/{chunk-TKO24ZZ6.cjs → chunk-5PXK77RO.cjs} +4 -4
- package/dist/{chunk-TKO24ZZ6.cjs.map → chunk-5PXK77RO.cjs.map} +1 -1
- package/dist/{chunk-7QSZSGUQ.cjs → chunk-6CNK2C34.cjs} +6 -6
- package/dist/{chunk-7QSZSGUQ.cjs.map → chunk-6CNK2C34.cjs.map} +1 -1
- package/dist/{chunk-3QHVDOQT.cjs → chunk-6INJQAGS.cjs} +22 -22
- package/dist/{chunk-3QHVDOQT.cjs.map → chunk-6INJQAGS.cjs.map} +1 -1
- package/dist/{chunk-VDHBLDQC.cjs → chunk-6N7QT2DH.cjs} +3 -3
- package/dist/{chunk-VDHBLDQC.cjs.map → chunk-6N7QT2DH.cjs.map} +1 -1
- package/dist/{chunk-VNYMWFIT.cjs → chunk-6PKP7UT7.cjs} +8 -7
- package/dist/chunk-6PKP7UT7.cjs.map +1 -0
- package/dist/{chunk-VDT7TEAH.cjs → chunk-6ZJBUMNK.cjs} +3 -3
- package/dist/{chunk-VDT7TEAH.cjs.map → chunk-6ZJBUMNK.cjs.map} +1 -1
- package/dist/{chunk-3UCRJRNI.cjs → chunk-7NVDGD63.cjs} +3 -3
- package/dist/{chunk-3UCRJRNI.cjs.map → chunk-7NVDGD63.cjs.map} +1 -1
- package/dist/{chunk-JEHGTPS2.cjs → chunk-AHUEBRLX.cjs} +4 -4
- package/dist/{chunk-JEHGTPS2.cjs.map → chunk-AHUEBRLX.cjs.map} +1 -1
- package/dist/{chunk-5G33DATM.cjs → chunk-AKNZZGJ3.cjs} +36 -36
- package/dist/{chunk-5G33DATM.cjs.map → chunk-AKNZZGJ3.cjs.map} +1 -1
- package/dist/{chunk-5FSULBPE.cjs → chunk-B5AOYT4U.cjs} +3 -3
- package/dist/{chunk-5FSULBPE.cjs.map → chunk-B5AOYT4U.cjs.map} +1 -1
- package/dist/{chunk-3EIO4ZH5.cjs → chunk-BJRQHR7R.cjs} +6 -6
- package/dist/{chunk-3EIO4ZH5.cjs.map → chunk-BJRQHR7R.cjs.map} +1 -1
- package/dist/{chunk-ZKKSTMMI.cjs → chunk-DNHZYLPK.cjs} +3 -3
- package/dist/{chunk-ZKKSTMMI.cjs.map → chunk-DNHZYLPK.cjs.map} +1 -1
- package/dist/{chunk-LZGGR63X.cjs → chunk-DOBSQC2P.cjs} +4 -4
- package/dist/{chunk-LZGGR63X.cjs.map → chunk-DOBSQC2P.cjs.map} +1 -1
- package/dist/{chunk-N2SJR2Y7.cjs → chunk-E43TT6FH.cjs} +52 -52
- package/dist/{chunk-N2SJR2Y7.cjs.map → chunk-E43TT6FH.cjs.map} +1 -1
- package/dist/{chunk-LE4Z2UIG.cjs → chunk-EADZEEKI.cjs} +61 -61
- package/dist/{chunk-LE4Z2UIG.cjs.map → chunk-EADZEEKI.cjs.map} +1 -1
- package/dist/{chunk-6AFAYGJW.cjs → chunk-EG3DPKXM.cjs} +5 -5
- package/dist/{chunk-6AFAYGJW.cjs.map → chunk-EG3DPKXM.cjs.map} +1 -1
- package/dist/{chunk-7OMRSZOJ.cjs → chunk-EXUCQ6KA.cjs} +28 -28
- package/dist/{chunk-7OMRSZOJ.cjs.map → chunk-EXUCQ6KA.cjs.map} +1 -1
- package/dist/{chunk-4M3OIBIS.cjs → chunk-FC6VMY2L.cjs} +49 -44
- package/dist/chunk-FC6VMY2L.cjs.map +1 -0
- package/dist/{chunk-6U3CYVZC.cjs → chunk-FUGQ7YQW.cjs} +3 -2
- package/dist/chunk-FUGQ7YQW.cjs.map +1 -0
- package/dist/{chunk-YTDVWIHU.cjs → chunk-GXIXNSBV.cjs} +146 -107
- package/dist/chunk-GXIXNSBV.cjs.map +1 -0
- package/dist/{chunk-SJPKXXB5.cjs → chunk-H2BUDSKT.cjs} +6 -6
- package/dist/{chunk-SJPKXXB5.cjs.map → chunk-H2BUDSKT.cjs.map} +1 -1
- package/dist/{chunk-CI777IPA.cjs → chunk-IJ4JKHEC.cjs} +18 -18
- package/dist/{chunk-CI777IPA.cjs.map → chunk-IJ4JKHEC.cjs.map} +1 -1
- package/dist/{chunk-OHWYQI3B.cjs → chunk-IPSR2PUU.cjs} +12 -12
- package/dist/{chunk-OHWYQI3B.cjs.map → chunk-IPSR2PUU.cjs.map} +1 -1
- package/dist/{chunk-PK5H5SVS.cjs → chunk-KBRDUFXG.cjs} +7 -7
- package/dist/{chunk-PK5H5SVS.cjs.map → chunk-KBRDUFXG.cjs.map} +1 -1
- package/dist/{chunk-SX6KL6UN.cjs → chunk-KTYJNF7R.cjs} +4 -4
- package/dist/{chunk-SX6KL6UN.cjs.map → chunk-KTYJNF7R.cjs.map} +1 -1
- package/dist/{chunk-WV3RNWAG.cjs → chunk-LG2IKM2G.cjs} +11 -11
- package/dist/{chunk-WV3RNWAG.cjs.map → chunk-LG2IKM2G.cjs.map} +1 -1
- package/dist/{chunk-ER2MRSLT.cjs → chunk-LJTHFTQQ.cjs} +3 -3
- package/dist/{chunk-ER2MRSLT.cjs.map → chunk-LJTHFTQQ.cjs.map} +1 -1
- package/dist/{chunk-7GVKG3G4.cjs → chunk-M3HYFFCK.cjs} +13 -13
- package/dist/{chunk-7GVKG3G4.cjs.map → chunk-M3HYFFCK.cjs.map} +1 -1
- package/dist/{chunk-ZLXTGHK3.cjs → chunk-NFVYHS3X.cjs} +85 -56
- package/dist/chunk-NFVYHS3X.cjs.map +1 -0
- package/dist/{chunk-7XR6CPCU.cjs → chunk-PIJPM5RA.cjs} +25 -3
- package/dist/chunk-PIJPM5RA.cjs.map +1 -0
- package/dist/{chunk-BNXWT3DX.cjs → chunk-PNZVCHFS.cjs} +8 -8
- package/dist/{chunk-BNXWT3DX.cjs.map → chunk-PNZVCHFS.cjs.map} +1 -1
- package/dist/{chunk-6DHDITKK.cjs → chunk-PP3KYFSS.cjs} +4 -4
- package/dist/{chunk-6DHDITKK.cjs.map → chunk-PP3KYFSS.cjs.map} +1 -1
- package/dist/{chunk-4RDXW7KP.cjs → chunk-QGCNYDHZ.cjs} +11 -11
- package/dist/{chunk-4RDXW7KP.cjs.map → chunk-QGCNYDHZ.cjs.map} +1 -1
- package/dist/{chunk-3DRBJGRR.cjs → chunk-SKQ5OMMF.cjs} +7 -7
- package/dist/{chunk-3DRBJGRR.cjs.map → chunk-SKQ5OMMF.cjs.map} +1 -1
- package/dist/{chunk-XKXKEVHH.cjs → chunk-TPYOXG5S.cjs} +6 -6
- package/dist/{chunk-XKXKEVHH.cjs.map → chunk-TPYOXG5S.cjs.map} +1 -1
- package/dist/{chunk-OIYKKUAN.cjs → chunk-TU46WKTN.cjs} +3 -3
- package/dist/{chunk-OIYKKUAN.cjs.map → chunk-TU46WKTN.cjs.map} +1 -1
- package/dist/{chunk-PYKTUGPE.cjs → chunk-U33XOC7T.cjs} +6 -6
- package/dist/{chunk-PYKTUGPE.cjs.map → chunk-U33XOC7T.cjs.map} +1 -1
- package/dist/{chunk-DI6UEQCZ.cjs → chunk-VHXGBVT6.cjs} +4 -4
- package/dist/{chunk-DI6UEQCZ.cjs.map → chunk-VHXGBVT6.cjs.map} +1 -1
- package/dist/{chunk-NAXF2KHT.cjs → chunk-VNUBBRJM.cjs} +6 -6
- package/dist/{chunk-NAXF2KHT.cjs.map → chunk-VNUBBRJM.cjs.map} +1 -1
- package/dist/{chunk-WGRXQ7PI.cjs → chunk-W6PTT27N.cjs} +17 -17
- package/dist/{chunk-WGRXQ7PI.cjs.map → chunk-W6PTT27N.cjs.map} +1 -1
- package/dist/{chunk-TLIZD6DV.cjs → chunk-W7TSEN3J.cjs} +6 -6
- package/dist/{chunk-TLIZD6DV.cjs.map → chunk-W7TSEN3J.cjs.map} +1 -1
- package/dist/{chunk-BCU65RJM.cjs → chunk-WQ2KG4LS.cjs} +3 -3
- package/dist/{chunk-BCU65RJM.cjs.map → chunk-WQ2KG4LS.cjs.map} +1 -1
- package/dist/{chunk-FUKN3PI5.cjs → chunk-WQQ6C2ML.cjs} +3 -3
- package/dist/{chunk-FUKN3PI5.cjs.map → chunk-WQQ6C2ML.cjs.map} +1 -1
- package/dist/{chunk-JFCTB5YI.cjs → chunk-XGMA7ITI.cjs} +6 -6
- package/dist/{chunk-JFCTB5YI.cjs.map → chunk-XGMA7ITI.cjs.map} +1 -1
- package/dist/{chunk-NFXHBTAO.cjs → chunk-XKOIHIVQ.cjs} +4 -4
- package/dist/{chunk-NFXHBTAO.cjs.map → chunk-XKOIHIVQ.cjs.map} +1 -1
- package/dist/{chunk-AG5XZ3AM.cjs → chunk-Y4OTUJGD.cjs} +11 -11
- package/dist/{chunk-AG5XZ3AM.cjs.map → chunk-Y4OTUJGD.cjs.map} +1 -1
- package/dist/{chunk-HH5MKRBL.cjs → chunk-ZSZI576U.cjs} +7 -7
- package/dist/{chunk-HH5MKRBL.cjs.map → chunk-ZSZI576U.cjs.map} +1 -1
- package/dist/connect/docx.cjs +20 -20
- package/dist/connect/index.cjs +1355 -1322
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/viewer.cjs +34 -34
- package/dist/connection/ConnectedAgentChatPanel.js +5 -5
- package/dist/connection/ConnectedAgentChatPanel.js.map +2 -2
- package/dist/connection/calendar/ConnectedCalendar.js +4 -2
- package/dist/connection/calendar/ConnectedCalendar.js.map +2 -2
- package/dist/connection/calendar/EventScheduling.js +29 -4
- package/dist/connection/calendar/EventScheduling.js.map +2 -2
- package/dist/connection/conversation/AgentControlBar.js +2 -2
- package/dist/connection/conversation/AgentControlBar.js.map +2 -2
- package/dist/connection/conversation/AnswerTable.js +19 -2
- package/dist/connection/conversation/AnswerTable.js.map +2 -2
- package/dist/connection/conversation/ConversationComposer.js +29 -7
- package/dist/connection/conversation/ConversationComposer.js.map +2 -2
- package/dist/connection/files/fields/fields-manager-panel.d.ts +1 -1
- package/dist/connection/files/fields/fields-manager-panel.js +1 -1
- package/dist/connection/files/fields/fields-manager-panel.js.map +2 -2
- package/dist/connection/files/upload/useAddFromUrls.d.ts +1 -1
- package/dist/connection/files/upload/useAddFromUrls.js +1 -1
- package/dist/connection/files/upload/useAddFromUrls.js.map +1 -1
- package/dist/connection/messenger/full-variant.js +1 -1
- package/dist/connection/messenger/full-variant.js.map +2 -2
- package/dist/connection/panels/ConnectedPanelHost.js +3 -2
- package/dist/connection/panels/ConnectedPanelHost.js.map +2 -2
- package/dist/connection/report-problem/CaptureBar.d.ts +4 -5
- package/dist/connection/report-problem/CaptureBar.js +56 -13
- package/dist/connection/report-problem/CaptureBar.js.map +2 -2
- package/dist/connection/report-problem/ReportProblemDialog.js +3 -2
- package/dist/connection/report-problem/ReportProblemDialog.js.map +2 -2
- package/dist/connection/report-problem/SupportVideoEvidence.js +22 -49
- package/dist/connection/report-problem/SupportVideoEvidence.js.map +2 -2
- package/dist/connection/report-problem/useReportProblem.js +11 -23
- package/dist/connection/report-problem/useReportProblem.js.map +2 -2
- package/dist/connection/report-problem/useSupportVideo.d.ts +2 -0
- package/dist/connection/report-problem/useSupportVideo.js +1 -0
- package/dist/connection/report-problem/useSupportVideo.js.map +2 -2
- package/dist/dashboards/index.cjs +1 -1
- package/dist/embed/index.cjs +39 -39
- package/dist/facts/index.cjs +44 -44
- package/dist/files/index.cjs +228 -228
- package/dist/index.cjs +1588 -1588
- package/dist/pages/index.cjs +30 -30
- package/dist/settings/index.cjs +138 -138
- package/dist/shell/PanelPortal.js +4 -4
- package/dist/shell/PanelPortal.js.map +2 -2
- package/dist/shell/index.cjs +84 -84
- package/dist/studio/index.cjs +28 -28
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +65 -65
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/ConnectedMailInviteCard-HPOHLB72.cjs +0 -22
- package/dist/ai-AV4LQ5AW.cjs.map +0 -1
- package/dist/chunk-4M3OIBIS.cjs.map +0 -1
- package/dist/chunk-6U3CYVZC.cjs.map +0 -1
- package/dist/chunk-7XR6CPCU.cjs.map +0 -1
- package/dist/chunk-SXBQAMHV.cjs.map +0 -1
- package/dist/chunk-VNYMWFIT.cjs.map +0 -1
- package/dist/chunk-W7XZKTDG.cjs.map +0 -1
- package/dist/chunk-YTDVWIHU.cjs.map +0 -1
- package/dist/chunk-ZLXTGHK3.cjs.map +0 -1
|
@@ -29,7 +29,7 @@ function OverlaySheet({
|
|
|
29
29
|
const [width, setWidth] = useState(defaultWidth ?? OVERLAY_DEFAULT_PX);
|
|
30
30
|
const [dockInset, setDockInset] = useState(0);
|
|
31
31
|
useEffect(() => {
|
|
32
|
-
if (!scoped) return;
|
|
32
|
+
if (!scoped || floating) return;
|
|
33
33
|
const dock = document.getElementById("dock-zone");
|
|
34
34
|
const region = document.getElementById(DEFAULT_OVERLAY_ZONE_ID)?.parentElement;
|
|
35
35
|
if (!dock || !region) return;
|
|
@@ -51,7 +51,7 @@ function OverlaySheet({
|
|
|
51
51
|
children2.disconnect();
|
|
52
52
|
window.removeEventListener("resize", measure);
|
|
53
53
|
};
|
|
54
|
-
}, [scoped]);
|
|
54
|
+
}, [scoped, floating]);
|
|
55
55
|
const [isResizing, setIsResizing] = useState(false);
|
|
56
56
|
const [dragWidth, setDragWidth] = useState(null);
|
|
57
57
|
const dragWidthRef = useRef(null);
|
|
@@ -97,8 +97,8 @@ function OverlaySheet({
|
|
|
97
97
|
/* @__PURE__ */ jsxs(
|
|
98
98
|
"div",
|
|
99
99
|
{
|
|
100
|
-
className: `${scoped ? "absolute inset-0
|
|
101
|
-
style: dockInset ? { right: dockInset } : void 0,
|
|
100
|
+
className: `${scoped ? "absolute inset-0" : "fixed inset-0"} ${floating ? "z-[45] pointer-events-none" : scoped ? "z-40" : "z-50"}`,
|
|
101
|
+
style: !floating && dockInset ? { right: dockInset } : void 0,
|
|
102
102
|
"data-testid": `${panelId}-overlay`,
|
|
103
103
|
children: [
|
|
104
104
|
floating && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/shell/PanelPortal.tsx"],
|
|
4
|
-
"sourcesContent": ["import { Move } from 'lucide-react'\n/**\n * PanelPortal Component\n *\n * Thin portal layer that renders children into the right target based on panel mode:\n * - docked: portal to #dock-zone element\n * - overlay: portal to <body> as a slide-out sheet over a backdrop\n * - popout: portal to a separate browser window\n * - main: portal to #main-zone element\n *\n * Manages popup window lifecycle for popout mode.\n * Content-agnostic \u2014 just handles where things render.\n */\n\nimport { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react'\nimport { useFloatingDrag } from './useFloatingDrag'\nimport { createPortal } from 'react-dom'\nimport { DEFAULT_OVERLAY_ZONE_ID } from './Shell'\nimport { usePanelHostSupport } from './panel-host'\nimport { PortalContainerProvider } from '@arbidocs/react/ui'\nimport type { FloatingPanelMode as PanelMode } from '../settings/FloatingPanel'\n\n// Overlay sheet sizing \u2014 defaults match the docked width (DEFAULT_DOCK_PX) so a\n// panel is the same size whether pinned or floating, and stays draggable here.\nconst OVERLAY_DEFAULT_PX = 544\nconst OVERLAY_MIN_PX = 360\n\nexport interface PanelPortalProps {\n panelId: string\n mode: PanelMode\n isOpen: boolean\n /** True while the overlay is animating out before unmounting. */\n isExiting?: boolean\n /** Called when popup window is closed externally (user closes the window) */\n onPopupClosed?: () => void\n /** Dismisses the panel \u2014 used by the overlay backdrop. */\n onClose?: () => void\n /** Window title for popout mode */\n popoutTitle?: string\n /** Initial overlay width in px (defaults to OVERLAY_DEFAULT_PX). */\n defaultWidth?: number\n floating?: boolean\n children: React.ReactNode\n}\n\n/**\n * Overlay sheet \u2014 a slide-out panel over the still-visible page, resizable by\n * dragging its left edge. Slides in on mount and out (via isExiting) before\n * unmounting, mirroring the left sidebar's animation.\n */\nfunction OverlaySheet({\n panelId,\n isExiting,\n onClose,\n defaultWidth,\n scoped,\n floating,\n children,\n}: {\n panelId: string\n isExiting?: boolean\n onClose?: () => void\n defaultWidth?: number\n /** Rendered inside the layout's overlay zone (below the topbar) rather than\n * over the whole viewport. */\n scoped?: boolean\n floating?: boolean\n children: React.ReactNode\n}) {\n const floatingDrag = useFloatingDrag(panelId, !!floating)\n const {\n style: floatingPosition,\n isDragging,\n previewRef,\n previewStyle,\n ...floatingHandlers\n } = floatingDrag\n const [width, setWidth] = useState(defaultWidth ?? OVERLAY_DEFAULT_PX)\n const [dockInset, setDockInset] = useState(0)\n useEffect(() => {\n if (!scoped) return\n const dock = document.getElementById('dock-zone')\n const region = document.getElementById(DEFAULT_OVERLAY_ZONE_ID)?.parentElement\n if (!dock || !region) return\n // A host can retain a working conversation beside a temporary overlay. Keep both the\n // sheet and its backdrop within the main area so the conversation remains interactive.\n const measure = () => {\n const rect = dock.getBoundingClientRect()\n setDockInset(\n dock.childElementCount && rect.width > 0 && window.innerWidth > 640\n ? Math.max(0, region.getBoundingClientRect().right - rect.left)\n : 0\n )\n }\n measure()\n const sizes = typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(measure)\n sizes?.observe(dock)\n sizes?.observe(region)\n window.addEventListener('resize', measure)\n const children = new MutationObserver(measure)\n children.observe(dock, { childList: true, attributes: true, attributeFilter: ['style'] })\n return () => {\n sizes?.disconnect()\n children.disconnect()\n window.removeEventListener('resize', measure)\n }\n }, [scoped])\n const [isResizing, setIsResizing] = useState(false)\n // Live cursor position while dragging. The panel keeps its committed `width`\n // during the drag \u2014 only this thin preview line moves \u2014 so the heavy panel\n // content never reflows mid-drag (matching DockZone's split-screen handle).\n // The width is committed once on mouse-up.\n const [dragWidth, setDragWidth] = useState<number | null>(null)\n const dragWidthRef = useRef<number | null>(null)\n // Once the slide-in has played we drop the entry class, so later re-renders\n // don't restart the animation.\n const [hasEntered, setHasEntered] = useState(false)\n\n const handleResizeStart = useCallback((e: React.MouseEvent) => {\n e.preventDefault()\n setHasEntered(true)\n setIsResizing(true)\n setDragWidth(null)\n dragWidthRef.current = null\n }, [])\n\n useEffect(() => {\n if (!isResizing) return\n const handleMouseMove = (e: MouseEvent) => {\n // Anchored to the right edge \u2014 width grows as the cursor moves left.\n const max = window.innerWidth * 0.92\n const next = Math.min(\n Math.max(window.innerWidth - dockInset - e.clientX, OVERLAY_MIN_PX),\n max\n )\n dragWidthRef.current = next\n setDragWidth(next)\n }\n const handleMouseUp = () => {\n if (dragWidthRef.current !== null) setWidth(dragWidthRef.current)\n setIsResizing(false)\n setDragWidth(null)\n dragWidthRef.current = null\n }\n document.addEventListener('mousemove', handleMouseMove)\n document.addEventListener('mouseup', handleMouseUp)\n document.body.style.cursor = 'col-resize'\n document.body.style.userSelect = 'none'\n return () => {\n document.removeEventListener('mousemove', handleMouseMove)\n document.removeEventListener('mouseup', handleMouseUp)\n document.body.style.cursor = ''\n document.body.style.userSelect = ''\n }\n }, [isResizing, dockInset])\n\n return (\n // Scoped: absolute within the layout's overlay zone (below the topbar).\n // Unscoped fallback: fixed over the whole viewport, as before.\n <div\n className={`${scoped ? 'absolute inset-0 z-40' : 'fixed inset-0 z-50'} ${floating ? 'pointer-events-none' : ''}`}\n style={dockInset ? { right: dockInset } : undefined}\n data-testid={`${panelId}-overlay`}\n >\n {floating && (\n <>\n <div\n aria-hidden=\"true\"\n data-testid={`${panelId}-move-backdrop`}\n className={`absolute inset-0 z-40 pointer-events-none bg-black/15 dark:bg-black/30 transition-opacity duration-150 motion-reduce:transition-none ${isDragging ? 'opacity-100' : 'opacity-0'}`}\n />\n {isDragging && (\n <div\n ref={previewRef}\n style={previewStyle}\n aria-hidden=\"true\"\n data-testid={`${panelId}-move-outline`}\n className=\"absolute z-50 pointer-events-none rounded-[26px] border-2 border-dashed border-primary/80 bg-primary/[0.04] will-change-transform\"\n />\n )}\n </>\n )}\n {/* In dark mode a 40% black veil crushes the light page text behind the sheet to\n mid-grey, so the veil is lighter there and the page stays readable underneath. */}\n <div\n className={`${floating ? 'hidden' : ''} absolute inset-0 bg-black/40 dark:bg-black/20 duration-200 ${\n // fill-mode-forwards holds the exit end-state \u2014 without it the\n // element snaps back fully visible for the frames between the\n // animation finishing and React unmounting it (a flicker).\n isExiting ? 'animate-out fade-out fill-mode-forwards' : 'animate-in fade-in'\n }`}\n onClick={onClose}\n aria-hidden=\"true\"\n data-testid={`${panelId}-overlay-backdrop`}\n />\n <div\n {...floatingHandlers}\n data-dragging={isDragging || undefined}\n style={\n floating\n ? {\n width: Math.min(width, 480),\n maxWidth: 'calc(100% - 32px)',\n maxHeight: 'calc(100% - 32px)',\n ...floatingPosition,\n }\n : { width, maxWidth: '100%' }\n }\n onAnimationEnd={() => !isExiting && setHasEntered(true)}\n className={`${floating ? 'group/floating absolute bottom-6 right-6 max-sm:bottom-3 max-sm:right-4 pointer-events-none flex flex-col transition-none' : 'absolute right-0 top-0 bottom-0 flex max-w-[92vw] flex-col border-l max-sm:!w-full max-sm:!max-w-full max-sm:border-l-0 border-border bg-muted shadow-2xl'} duration-200 ${\n isExiting\n ? 'animate-out slide-out-to-right fill-mode-forwards'\n : // Suppress the slide transform once entered so it doesn't replay.\n hasEntered || floating\n ? ''\n : 'animate-in slide-in-from-right'\n }`}\n >\n {/* Drag handle on the left edge to resize the sheet. */}\n <div\n className={`${floating ? 'hidden' : ''} absolute left-0 top-0 bottom-0 z-10 w-1.5 -translate-x-1/2 cursor-col-resize hover:bg-primary/40`}\n onMouseDown={handleResizeStart}\n data-testid={`${panelId}-overlay-resize-handle`}\n />\n {floating && (\n <button\n type=\"button\"\n data-floating-drag-handle\n aria-label=\"Move conversation\"\n title=\"Drag to move \u00B7 Arrow keys to position \u00B7 Home to reset\"\n className=\"absolute -left-10 bottom-4 flex h-7 w-10 cursor-grab touch-none items-center justify-start rounded-full bg-transparent text-muted-foreground opacity-0 pointer-events-none transition-opacity duration-150 group-hover/floating:opacity-100 group-hover/floating:pointer-events-auto group-data-[dragging=true]/floating:opacity-100 focus-visible:opacity-100 focus-visible:pointer-events-auto focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring active:cursor-grabbing\"\n >\n <span className=\"flex size-7 items-center justify-center rounded-full bg-card\">\n <Move className=\"size-3.5\" />\n </span>\n </button>\n )}\n {children}\n </div>\n\n {/* Preview line \u2014 tracks the cursor during the drag; the panel resizes\n to this position only on release. */}\n {isResizing && dragWidth !== null && (\n <div\n className=\"absolute top-0 bottom-0 z-[60] w-0.5 bg-primary pointer-events-none\"\n style={{ right: dragWidth }}\n />\n )}\n {/* Transparent capture layer so the drag isn't interrupted by elements\n (iframes, the grid) swallowing pointer events. */}\n {isResizing && <div className=\"absolute inset-0 z-[55] cursor-col-resize\" />}\n </div>\n )\n}\n\nexport function PanelPortal({\n panelId,\n mode,\n isOpen,\n isExiting,\n onPopupClosed,\n onClose,\n popoutTitle,\n defaultWidth,\n floating = false,\n children,\n}: PanelPortalProps) {\n const { windows: windowManager } = usePanelHostSupport()\n // A shell can mount its zones in the same commit as an already-open panel.\n // Resolve again after that commit instead of relying on a later session update.\n const [portalTarget, setPortalTarget] = useState<HTMLElement | null>(null)\n useLayoutEffect(() => {\n const id =\n mode === 'overlay' ? DEFAULT_OVERLAY_ZONE_ID : mode === 'main' ? 'main-zone' : 'dock-zone'\n setPortalTarget(document.getElementById(id))\n }, [mode, isOpen])\n const [popupRoot, setPopupRoot] = useState<HTMLElement | null>(null)\n const popupWindowIdRef = useRef<string | null>(null)\n\n // Open popup window when switching to popout mode\n useEffect(() => {\n if (!isOpen || mode !== 'popout') {\n // Close popup if we're leaving popout mode (intentional mode switch, not user closing)\n if (popupWindowIdRef.current) {\n // Clear the onClose callback before closing so it doesn't trigger onPopupClosed\n windowManager.clearOnClose(popupWindowIdRef.current)\n windowManager.closeWindow(popupWindowIdRef.current)\n popupWindowIdRef.current = null\n setPopupRoot(null)\n }\n return\n }\n\n // Already have a popup open\n if (popupWindowIdRef.current) return\n\n const windowId = windowManager.createPopupWindow(\n `panel-${panelId}`,\n () => {\n popupWindowIdRef.current = null\n setPopupRoot(null)\n onPopupClosed?.()\n },\n popoutTitle || panelId\n )\n\n if (windowId) {\n const rootElement = windowManager.getRootElement(windowId)\n if (rootElement) {\n popupWindowIdRef.current = windowId\n setPopupRoot(rootElement)\n windowManager.getWindow(windowId)?.focus()\n }\n }\n }, [isOpen, mode, panelId, popoutTitle, onPopupClosed, windowManager])\n\n // Close the window on unmount, a moment later: a remount straight after (React's StrictMode\n // replays mount effects) keeps it instead. Closing it and opening another would need a second\n // click's permission to open a window, and the browser would block the new one as a pop-up.\n const pendingClose = useRef<ReturnType<typeof setTimeout> | null>(null)\n useEffect(() => {\n if (pendingClose.current) {\n clearTimeout(pendingClose.current)\n pendingClose.current = null\n }\n return () => {\n const windowId = popupWindowIdRef.current\n if (!windowId) return\n popupWindowIdRef.current = null\n pendingClose.current = setTimeout(() => {\n pendingClose.current = null\n // Taken up again by the remount (the open effect reuses a window that is still open).\n if (popupWindowIdRef.current === windowId) return\n windowManager.closeWindow(windowId)\n }, 0)\n }\n }, [windowManager])\n\n if (!isOpen && !isExiting) return null\n\n // Popout: render into popup window. Its dialogs and menus open there too, not in the window\n // behind it (where the Sign dialog used to open, out of sight).\n if (mode === 'popout' && popupRoot) {\n return createPortal(\n <PortalContainerProvider container={popupRoot}>{children}</PortalContainerProvider>,\n popupRoot\n )\n }\n\n // Overlay: a slide-out sheet over the still-visible page. Rendered into the\n // layout's #app-overlay-zone \u2014 the content region BELOW the app topbar \u2014 so\n // the bar stays visible and interactive above every overlay. Falls back to\n // <body> (viewport-covering) when no zone is mounted (e.g. embedded shells).\n if (mode === 'overlay') {\n const overlayZone = portalTarget\n return createPortal(\n <OverlaySheet\n panelId={panelId}\n isExiting={isExiting}\n onClose={onClose}\n defaultWidth={defaultWidth}\n scoped={overlayZone !== null}\n floating={floating}\n >\n {children}\n </OverlaySheet>,\n overlayZone ?? document.body\n )\n }\n\n // Main: render into main content zone\n if (mode === 'main') {\n const mainZone = portalTarget\n if (mainZone) {\n return createPortal(children, mainZone)\n }\n }\n\n // Docked: render into dock zone\n const dockZone = portalTarget\n if (dockZone) {\n return createPortal(children, dockZone)\n }\n\n // No target zone mounted yet \u2014 render nothing\n return null\n}\n"],
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { Move } from 'lucide-react'\n/**\n * PanelPortal Component\n *\n * Thin portal layer that renders children into the right target based on panel mode:\n * - docked: portal to #dock-zone element\n * - overlay: portal to <body> as a slide-out sheet over a backdrop\n * - popout: portal to a separate browser window\n * - main: portal to #main-zone element\n *\n * Manages popup window lifecycle for popout mode.\n * Content-agnostic \u2014 just handles where things render.\n */\n\nimport { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react'\nimport { useFloatingDrag } from './useFloatingDrag'\nimport { createPortal } from 'react-dom'\nimport { DEFAULT_OVERLAY_ZONE_ID } from './Shell'\nimport { usePanelHostSupport } from './panel-host'\nimport { PortalContainerProvider } from '@arbidocs/react/ui'\nimport type { FloatingPanelMode as PanelMode } from '../settings/FloatingPanel'\n\n// Overlay sheet sizing \u2014 defaults match the docked width (DEFAULT_DOCK_PX) so a\n// panel is the same size whether pinned or floating, and stays draggable here.\nconst OVERLAY_DEFAULT_PX = 544\nconst OVERLAY_MIN_PX = 360\n\nexport interface PanelPortalProps {\n panelId: string\n mode: PanelMode\n isOpen: boolean\n /** True while the overlay is animating out before unmounting. */\n isExiting?: boolean\n /** Called when popup window is closed externally (user closes the window) */\n onPopupClosed?: () => void\n /** Dismisses the panel \u2014 used by the overlay backdrop. */\n onClose?: () => void\n /** Window title for popout mode */\n popoutTitle?: string\n /** Initial overlay width in px (defaults to OVERLAY_DEFAULT_PX). */\n defaultWidth?: number\n floating?: boolean\n children: React.ReactNode\n}\n\n/**\n * Overlay sheet \u2014 a slide-out panel over the still-visible page, resizable by\n * dragging its left edge. Slides in on mount and out (via isExiting) before\n * unmounting, mirroring the left sidebar's animation.\n */\nfunction OverlaySheet({\n panelId,\n isExiting,\n onClose,\n defaultWidth,\n scoped,\n floating,\n children,\n}: {\n panelId: string\n isExiting?: boolean\n onClose?: () => void\n defaultWidth?: number\n /** Rendered inside the layout's overlay zone (below the topbar) rather than\n * over the whole viewport. */\n scoped?: boolean\n floating?: boolean\n children: React.ReactNode\n}) {\n const floatingDrag = useFloatingDrag(panelId, !!floating)\n const {\n style: floatingPosition,\n isDragging,\n previewRef,\n previewStyle,\n ...floatingHandlers\n } = floatingDrag\n const [width, setWidth] = useState(defaultWidth ?? OVERLAY_DEFAULT_PX)\n const [dockInset, setDockInset] = useState(0)\n useEffect(() => {\n if (!scoped || floating) return\n const dock = document.getElementById('dock-zone')\n const region = document.getElementById(DEFAULT_OVERLAY_ZONE_ID)?.parentElement\n if (!dock || !region) return\n // A host can retain a working conversation beside a temporary overlay. Keep both the\n // sheet and its backdrop within the main area so the conversation remains interactive.\n const measure = () => {\n const rect = dock.getBoundingClientRect()\n setDockInset(\n dock.childElementCount && rect.width > 0 && window.innerWidth > 640\n ? Math.max(0, region.getBoundingClientRect().right - rect.left)\n : 0\n )\n }\n measure()\n const sizes = typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(measure)\n sizes?.observe(dock)\n sizes?.observe(region)\n window.addEventListener('resize', measure)\n const children = new MutationObserver(measure)\n children.observe(dock, { childList: true, attributes: true, attributeFilter: ['style'] })\n return () => {\n sizes?.disconnect()\n children.disconnect()\n window.removeEventListener('resize', measure)\n }\n }, [scoped, floating])\n const [isResizing, setIsResizing] = useState(false)\n // Live cursor position while dragging. The panel keeps its committed `width`\n // during the drag \u2014 only this thin preview line moves \u2014 so the heavy panel\n // content never reflows mid-drag (matching DockZone's split-screen handle).\n // The width is committed once on mouse-up.\n const [dragWidth, setDragWidth] = useState<number | null>(null)\n const dragWidthRef = useRef<number | null>(null)\n // Once the slide-in has played we drop the entry class, so later re-renders\n // don't restart the animation.\n const [hasEntered, setHasEntered] = useState(false)\n\n const handleResizeStart = useCallback((e: React.MouseEvent) => {\n e.preventDefault()\n setHasEntered(true)\n setIsResizing(true)\n setDragWidth(null)\n dragWidthRef.current = null\n }, [])\n\n useEffect(() => {\n if (!isResizing) return\n const handleMouseMove = (e: MouseEvent) => {\n // Anchored to the right edge \u2014 width grows as the cursor moves left.\n const max = window.innerWidth * 0.92\n const next = Math.min(\n Math.max(window.innerWidth - dockInset - e.clientX, OVERLAY_MIN_PX),\n max\n )\n dragWidthRef.current = next\n setDragWidth(next)\n }\n const handleMouseUp = () => {\n if (dragWidthRef.current !== null) setWidth(dragWidthRef.current)\n setIsResizing(false)\n setDragWidth(null)\n dragWidthRef.current = null\n }\n document.addEventListener('mousemove', handleMouseMove)\n document.addEventListener('mouseup', handleMouseUp)\n document.body.style.cursor = 'col-resize'\n document.body.style.userSelect = 'none'\n return () => {\n document.removeEventListener('mousemove', handleMouseMove)\n document.removeEventListener('mouseup', handleMouseUp)\n document.body.style.cursor = ''\n document.body.style.userSelect = ''\n }\n }, [isResizing, dockInset])\n\n return (\n // Scoped: absolute within the layout's overlay zone (below the topbar).\n // Unscoped fallback: fixed over the whole viewport, as before.\n <div\n // A floating conversation stays above a temporary sheet opened over it, and stays usable.\n className={`${scoped ? 'absolute inset-0' : 'fixed inset-0'} ${floating ? 'z-[45] pointer-events-none' : scoped ? 'z-40' : 'z-50'}`}\n // A compact conversation keeps its anchor when a document opens beside the page.\n style={!floating && dockInset ? { right: dockInset } : undefined}\n data-testid={`${panelId}-overlay`}\n >\n {floating && (\n <>\n <div\n aria-hidden=\"true\"\n data-testid={`${panelId}-move-backdrop`}\n className={`absolute inset-0 z-40 pointer-events-none bg-black/15 dark:bg-black/30 transition-opacity duration-150 motion-reduce:transition-none ${isDragging ? 'opacity-100' : 'opacity-0'}`}\n />\n {isDragging && (\n <div\n ref={previewRef}\n style={previewStyle}\n aria-hidden=\"true\"\n data-testid={`${panelId}-move-outline`}\n className=\"absolute z-50 pointer-events-none rounded-[26px] border-2 border-dashed border-primary/80 bg-primary/[0.04] will-change-transform\"\n />\n )}\n </>\n )}\n {/* In dark mode a 40% black veil crushes the light page text behind the sheet to\n mid-grey, so the veil is lighter there and the page stays readable underneath. */}\n <div\n className={`${floating ? 'hidden' : ''} absolute inset-0 bg-black/40 dark:bg-black/20 duration-200 ${\n // fill-mode-forwards holds the exit end-state \u2014 without it the\n // element snaps back fully visible for the frames between the\n // animation finishing and React unmounting it (a flicker).\n isExiting ? 'animate-out fade-out fill-mode-forwards' : 'animate-in fade-in'\n }`}\n onClick={onClose}\n aria-hidden=\"true\"\n data-testid={`${panelId}-overlay-backdrop`}\n />\n <div\n {...floatingHandlers}\n data-dragging={isDragging || undefined}\n style={\n floating\n ? {\n width: Math.min(width, 480),\n maxWidth: 'calc(100% - 32px)',\n maxHeight: 'calc(100% - 32px)',\n ...floatingPosition,\n }\n : { width, maxWidth: '100%' }\n }\n onAnimationEnd={() => !isExiting && setHasEntered(true)}\n className={`${floating ? 'group/floating absolute bottom-6 right-6 max-sm:bottom-3 max-sm:right-4 pointer-events-none flex flex-col transition-none' : 'absolute right-0 top-0 bottom-0 flex max-w-[92vw] flex-col border-l max-sm:!w-full max-sm:!max-w-full max-sm:border-l-0 border-border bg-muted shadow-2xl'} duration-200 ${\n isExiting\n ? 'animate-out slide-out-to-right fill-mode-forwards'\n : // Suppress the slide transform once entered so it doesn't replay.\n hasEntered || floating\n ? ''\n : 'animate-in slide-in-from-right'\n }`}\n >\n {/* Drag handle on the left edge to resize the sheet. */}\n <div\n className={`${floating ? 'hidden' : ''} absolute left-0 top-0 bottom-0 z-10 w-1.5 -translate-x-1/2 cursor-col-resize hover:bg-primary/40`}\n onMouseDown={handleResizeStart}\n data-testid={`${panelId}-overlay-resize-handle`}\n />\n {floating && (\n <button\n type=\"button\"\n data-floating-drag-handle\n aria-label=\"Move conversation\"\n title=\"Drag to move \u00B7 Arrow keys to position \u00B7 Home to reset\"\n className=\"absolute -left-10 bottom-4 flex h-7 w-10 cursor-grab touch-none items-center justify-start rounded-full bg-transparent text-muted-foreground opacity-0 pointer-events-none transition-opacity duration-150 group-hover/floating:opacity-100 group-hover/floating:pointer-events-auto group-data-[dragging=true]/floating:opacity-100 focus-visible:opacity-100 focus-visible:pointer-events-auto focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring active:cursor-grabbing\"\n >\n <span className=\"flex size-7 items-center justify-center rounded-full bg-card\">\n <Move className=\"size-3.5\" />\n </span>\n </button>\n )}\n {children}\n </div>\n\n {/* Preview line \u2014 tracks the cursor during the drag; the panel resizes\n to this position only on release. */}\n {isResizing && dragWidth !== null && (\n <div\n className=\"absolute top-0 bottom-0 z-[60] w-0.5 bg-primary pointer-events-none\"\n style={{ right: dragWidth }}\n />\n )}\n {/* Transparent capture layer so the drag isn't interrupted by elements\n (iframes, the grid) swallowing pointer events. */}\n {isResizing && <div className=\"absolute inset-0 z-[55] cursor-col-resize\" />}\n </div>\n )\n}\n\nexport function PanelPortal({\n panelId,\n mode,\n isOpen,\n isExiting,\n onPopupClosed,\n onClose,\n popoutTitle,\n defaultWidth,\n floating = false,\n children,\n}: PanelPortalProps) {\n const { windows: windowManager } = usePanelHostSupport()\n // A shell can mount its zones in the same commit as an already-open panel.\n // Resolve again after that commit instead of relying on a later session update.\n const [portalTarget, setPortalTarget] = useState<HTMLElement | null>(null)\n useLayoutEffect(() => {\n const id =\n mode === 'overlay' ? DEFAULT_OVERLAY_ZONE_ID : mode === 'main' ? 'main-zone' : 'dock-zone'\n setPortalTarget(document.getElementById(id))\n }, [mode, isOpen])\n const [popupRoot, setPopupRoot] = useState<HTMLElement | null>(null)\n const popupWindowIdRef = useRef<string | null>(null)\n\n // Open popup window when switching to popout mode\n useEffect(() => {\n if (!isOpen || mode !== 'popout') {\n // Close popup if we're leaving popout mode (intentional mode switch, not user closing)\n if (popupWindowIdRef.current) {\n // Clear the onClose callback before closing so it doesn't trigger onPopupClosed\n windowManager.clearOnClose(popupWindowIdRef.current)\n windowManager.closeWindow(popupWindowIdRef.current)\n popupWindowIdRef.current = null\n setPopupRoot(null)\n }\n return\n }\n\n // Already have a popup open\n if (popupWindowIdRef.current) return\n\n const windowId = windowManager.createPopupWindow(\n `panel-${panelId}`,\n () => {\n popupWindowIdRef.current = null\n setPopupRoot(null)\n onPopupClosed?.()\n },\n popoutTitle || panelId\n )\n\n if (windowId) {\n const rootElement = windowManager.getRootElement(windowId)\n if (rootElement) {\n popupWindowIdRef.current = windowId\n setPopupRoot(rootElement)\n windowManager.getWindow(windowId)?.focus()\n }\n }\n }, [isOpen, mode, panelId, popoutTitle, onPopupClosed, windowManager])\n\n // Close the window on unmount, a moment later: a remount straight after (React's StrictMode\n // replays mount effects) keeps it instead. Closing it and opening another would need a second\n // click's permission to open a window, and the browser would block the new one as a pop-up.\n const pendingClose = useRef<ReturnType<typeof setTimeout> | null>(null)\n useEffect(() => {\n if (pendingClose.current) {\n clearTimeout(pendingClose.current)\n pendingClose.current = null\n }\n return () => {\n const windowId = popupWindowIdRef.current\n if (!windowId) return\n popupWindowIdRef.current = null\n pendingClose.current = setTimeout(() => {\n pendingClose.current = null\n // Taken up again by the remount (the open effect reuses a window that is still open).\n if (popupWindowIdRef.current === windowId) return\n windowManager.closeWindow(windowId)\n }, 0)\n }\n }, [windowManager])\n\n if (!isOpen && !isExiting) return null\n\n // Popout: render into popup window. Its dialogs and menus open there too, not in the window\n // behind it (where the Sign dialog used to open, out of sight).\n if (mode === 'popout' && popupRoot) {\n return createPortal(\n <PortalContainerProvider container={popupRoot}>{children}</PortalContainerProvider>,\n popupRoot\n )\n }\n\n // Overlay: a slide-out sheet over the still-visible page. Rendered into the\n // layout's #app-overlay-zone \u2014 the content region BELOW the app topbar \u2014 so\n // the bar stays visible and interactive above every overlay. Falls back to\n // <body> (viewport-covering) when no zone is mounted (e.g. embedded shells).\n if (mode === 'overlay') {\n const overlayZone = portalTarget\n return createPortal(\n <OverlaySheet\n panelId={panelId}\n isExiting={isExiting}\n onClose={onClose}\n defaultWidth={defaultWidth}\n scoped={overlayZone !== null}\n floating={floating}\n >\n {children}\n </OverlaySheet>,\n overlayZone ?? document.body\n )\n }\n\n // Main: render into main content zone\n if (mode === 'main') {\n const mainZone = portalTarget\n if (mainZone) {\n return createPortal(children, mainZone)\n }\n }\n\n // Docked: render into dock zone\n const dockZone = portalTarget\n if (dockZone) {\n return createPortal(children, dockZone)\n }\n\n // No target zone mounted yet \u2014 render nothing\n return null\n}\n"],
|
|
5
|
+
"mappings": ";AAuKQ,mBACE,KADF;AAvKR,SAAS,YAAY;AAcrB,SAAS,aAAa,WAAW,iBAAiB,QAAQ,gBAAgB;AAC1E,SAAS,uBAAuB;AAChC,SAAS,oBAAoB;AAC7B,SAAS,+BAA+B;AACxC,SAAS,2BAA2B;AACpC,SAAS,+BAA+B;AAKxC,MAAM,qBAAqB;AAC3B,MAAM,iBAAiB;AAyBvB,SAAS,aAAa;AAAA,EACpB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAUG;AACD,QAAM,eAAe,gBAAgB,SAAS,CAAC,CAAC,QAAQ;AACxD,QAAM;AAAA,IACJ,OAAO;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,IAAI;AACJ,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAS,gBAAgB,kBAAkB;AACrE,QAAM,CAAC,WAAW,YAAY,IAAI,SAAS,CAAC;AAC5C,YAAU,MAAM;AACd,QAA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AW,iBAAiB;AAClC,UAAI,CAAC,SAAU;AACf,uBAAiB,UAAU;AAC3B,mBAAa,UAAU,WAAW,MAAM;AACtC,qBAAa,UAAU;AAEvB,YAAI,iBAAiB,YAAY,SAAU;AAC3C,sBAAc,YAAY,QAAQ;AAAA,MACpC,GAAG,CAAC;AAAA,IACN;AAAA,EACF,GAAG,CAAC,aAAa,CAAC;AAElB,MAAI,CAAC,UAAU,CAAC,UAAW,QAAO;AAIlC,MAAI,SAAS,YAAY,WAAW;AAClC,WAAO;AAAA,MACL,oBAAC,2BAAwB,WAAW,WAAY,UAAS;AAAA,MACzD;AAAA,IACF;AAAA,EACF;AAMA,MAAI,SAAS,WAAW;AACtB,UAAM,cAAc;AACpB,WAAO;AAAA,MACL;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,QAAQ,gBAAgB;AAAA,UACxB;AAAA,UAEC;AAAA;AAAA,MACH;AAAA,MACA,eAAe,SAAS;AAAA,IAC1B;AAAA,EACF;AAGA,MAAI,SAAS,QAAQ;AACnB,UAAM,WAAW;AACjB,QAAI,UAAU;AACZ,aAAO,aAAa,UAAU,QAAQ;AAAA,IACxC;AAAA,EACF;AAGA,QAAM,WAAW;AACjB,MAAI,UAAU;AACZ,WAAO,aAAa,UAAU,QAAQ;AAAA,EACxC;AAGA,SAAO;AACT;",
|
|
6
6
|
"names": ["children"]
|
|
7
7
|
}
|
package/dist/shell/index.cjs
CHANGED
|
@@ -3,25 +3,25 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkLIDXIX36_cjs = require('../chunk-LIDXIX36.cjs');
|
|
5
5
|
require('../chunk-34HQO4ZQ.cjs');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var chunkSXBQAMHV_cjs = require('../chunk-SXBQAMHV.cjs');
|
|
6
|
+
var chunkLG2IKM2G_cjs = require('../chunk-LG2IKM2G.cjs');
|
|
7
|
+
var chunk2KGU5G6Z_cjs = require('../chunk-2KGU5G6Z.cjs');
|
|
9
8
|
var chunk2RLA6QO2_cjs = require('../chunk-2RLA6QO2.cjs');
|
|
10
|
-
var
|
|
11
|
-
var
|
|
9
|
+
var chunk6N7QT2DH_cjs = require('../chunk-6N7QT2DH.cjs');
|
|
10
|
+
var chunk6ZJBUMNK_cjs = require('../chunk-6ZJBUMNK.cjs');
|
|
12
11
|
var chunkWRTEKOQP_cjs = require('../chunk-WRTEKOQP.cjs');
|
|
13
|
-
var chunkDEXUL3T6_cjs = require('../chunk-DEXUL3T6.cjs');
|
|
14
|
-
var chunkAFQTQC7A_cjs = require('../chunk-AFQTQC7A.cjs');
|
|
15
|
-
var chunkXJEXFEWG_cjs = require('../chunk-XJEXFEWG.cjs');
|
|
16
|
-
var chunkYZSQ7F5K_cjs = require('../chunk-YZSQ7F5K.cjs');
|
|
17
|
-
var chunkKQF7POTG_cjs = require('../chunk-KQF7POTG.cjs');
|
|
18
|
-
var chunkFX3K6LNZ_cjs = require('../chunk-FX3K6LNZ.cjs');
|
|
19
12
|
require('../chunk-AHDJXIUB.cjs');
|
|
20
13
|
var chunk6UZC4XVV_cjs = require('../chunk-6UZC4XVV.cjs');
|
|
21
14
|
require('../chunk-ZQQVXRYZ.cjs');
|
|
22
15
|
var chunkKKYNTWDU_cjs = require('../chunk-KKYNTWDU.cjs');
|
|
23
16
|
require('../chunk-3YZKDCWY.cjs');
|
|
24
17
|
var chunkSJSGSHIT_cjs = require('../chunk-SJSGSHIT.cjs');
|
|
18
|
+
var chunkCT3SLXB7_cjs = require('../chunk-CT3SLXB7.cjs');
|
|
19
|
+
var chunkDEXUL3T6_cjs = require('../chunk-DEXUL3T6.cjs');
|
|
20
|
+
var chunkAFQTQC7A_cjs = require('../chunk-AFQTQC7A.cjs');
|
|
21
|
+
var chunkXJEXFEWG_cjs = require('../chunk-XJEXFEWG.cjs');
|
|
22
|
+
var chunkYZSQ7F5K_cjs = require('../chunk-YZSQ7F5K.cjs');
|
|
23
|
+
var chunkKQF7POTG_cjs = require('../chunk-KQF7POTG.cjs');
|
|
24
|
+
var chunkFX3K6LNZ_cjs = require('../chunk-FX3K6LNZ.cjs');
|
|
25
25
|
require('../chunk-PPCATBOY.cjs');
|
|
26
26
|
require('../chunk-HN56WWBR.cjs');
|
|
27
27
|
require('../chunk-K67VMSOX.cjs');
|
|
@@ -82,101 +82,93 @@ Object.defineProperty(exports, "useInstallPrompt", {
|
|
|
82
82
|
enumerable: true,
|
|
83
83
|
get: function () { return chunkLIDXIX36_cjs.useInstallPrompt; }
|
|
84
84
|
});
|
|
85
|
-
Object.defineProperty(exports, "DEFAULT_DOCK_WIDTH", {
|
|
86
|
-
enumerable: true,
|
|
87
|
-
get: function () { return chunkCT3SLXB7_cjs.DEFAULT_DOCK_WIDTH; }
|
|
88
|
-
});
|
|
89
|
-
Object.defineProperty(exports, "Toaster", {
|
|
90
|
-
enumerable: true,
|
|
91
|
-
get: function () { return chunkCT3SLXB7_cjs.Toaster; }
|
|
92
|
-
});
|
|
93
85
|
Object.defineProperty(exports, "ActionCluster", {
|
|
94
86
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkLG2IKM2G_cjs.ActionCluster; }
|
|
96
88
|
});
|
|
97
89
|
Object.defineProperty(exports, "AskField", {
|
|
98
90
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkLG2IKM2G_cjs.AskField; }
|
|
100
92
|
});
|
|
101
93
|
Object.defineProperty(exports, "AskRow", {
|
|
102
94
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkLG2IKM2G_cjs.AskRow; }
|
|
104
96
|
});
|
|
105
97
|
Object.defineProperty(exports, "AskTrigger", {
|
|
106
98
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkLG2IKM2G_cjs.AskTrigger; }
|
|
108
100
|
});
|
|
109
101
|
Object.defineProperty(exports, "DEFAULT_ASK_FIELD_LABELS", {
|
|
110
102
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkLG2IKM2G_cjs.DEFAULT_ASK_FIELD_LABELS; }
|
|
112
104
|
});
|
|
113
105
|
Object.defineProperty(exports, "DEFAULT_OFFLINE_PILL_LABELS", {
|
|
114
106
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkLG2IKM2G_cjs.DEFAULT_OFFLINE_PILL_LABELS; }
|
|
116
108
|
});
|
|
117
109
|
Object.defineProperty(exports, "DEFAULT_REMOTE_CONTROL_PILL_LABELS", {
|
|
118
110
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkLG2IKM2G_cjs.DEFAULT_REMOTE_CONTROL_PILL_LABELS; }
|
|
120
112
|
});
|
|
121
113
|
Object.defineProperty(exports, "DEFAULT_TIP_CARD_LABELS", {
|
|
122
114
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkLG2IKM2G_cjs.DEFAULT_TIP_CARD_LABELS; }
|
|
124
116
|
});
|
|
125
117
|
Object.defineProperty(exports, "DockZone", {
|
|
126
118
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkLG2IKM2G_cjs.DockZone; }
|
|
128
120
|
});
|
|
129
121
|
Object.defineProperty(exports, "OfflinePill", {
|
|
130
122
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkLG2IKM2G_cjs.OfflinePill; }
|
|
132
124
|
});
|
|
133
125
|
Object.defineProperty(exports, "RemoteControlPill", {
|
|
134
126
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkLG2IKM2G_cjs.RemoteControlPill; }
|
|
136
128
|
});
|
|
137
129
|
Object.defineProperty(exports, "ShellSidebar", {
|
|
138
130
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkLG2IKM2G_cjs.ShellSidebar; }
|
|
140
132
|
});
|
|
141
133
|
Object.defineProperty(exports, "SidebarRowAction", {
|
|
142
134
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkLG2IKM2G_cjs.SidebarRowAction; }
|
|
144
136
|
});
|
|
145
137
|
Object.defineProperty(exports, "StatusBadge", {
|
|
146
138
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkLG2IKM2G_cjs.StatusBadge; }
|
|
148
140
|
});
|
|
149
141
|
Object.defineProperty(exports, "StatusRow", {
|
|
150
142
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkLG2IKM2G_cjs.StatusRow; }
|
|
152
144
|
});
|
|
153
145
|
Object.defineProperty(exports, "TipCard", {
|
|
154
146
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkLG2IKM2G_cjs.TipCard; }
|
|
156
148
|
});
|
|
157
149
|
Object.defineProperty(exports, "resolveSidebarLayout", {
|
|
158
150
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkLG2IKM2G_cjs.resolveSidebarLayout; }
|
|
160
152
|
});
|
|
161
153
|
Object.defineProperty(exports, "useCloseOnEscape", {
|
|
162
154
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkLG2IKM2G_cjs.useCloseOnEscape; }
|
|
164
156
|
});
|
|
165
157
|
Object.defineProperty(exports, "useSidebarController", {
|
|
166
158
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkLG2IKM2G_cjs.useSidebarController; }
|
|
168
160
|
});
|
|
169
161
|
Object.defineProperty(exports, "useSidebarSettle", {
|
|
170
162
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkLG2IKM2G_cjs.useSidebarSettle; }
|
|
172
164
|
});
|
|
173
165
|
Object.defineProperty(exports, "PanelModeSwitcher", {
|
|
174
166
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunk2KGU5G6Z_cjs.PanelModeSwitcher; }
|
|
176
168
|
});
|
|
177
169
|
Object.defineProperty(exports, "PanelPortal", {
|
|
178
170
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunk2KGU5G6Z_cjs.PanelPortal; }
|
|
180
172
|
});
|
|
181
173
|
Object.defineProperty(exports, "createPanelWindowManager", {
|
|
182
174
|
enumerable: true,
|
|
@@ -188,63 +180,63 @@ Object.defineProperty(exports, "usePanelHostSupport", {
|
|
|
188
180
|
});
|
|
189
181
|
Object.defineProperty(exports, "DEFAULT_MOBILE_BARS_LABELS", {
|
|
190
182
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunk6N7QT2DH_cjs.DEFAULT_MOBILE_BARS_LABELS; }
|
|
192
184
|
});
|
|
193
185
|
Object.defineProperty(exports, "MobileAppBar", {
|
|
194
186
|
enumerable: true,
|
|
195
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunk6N7QT2DH_cjs.MobileAppBar; }
|
|
196
188
|
});
|
|
197
189
|
Object.defineProperty(exports, "MobileTabBar", {
|
|
198
190
|
enumerable: true,
|
|
199
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunk6N7QT2DH_cjs.MobileTabBar; }
|
|
200
192
|
});
|
|
201
193
|
Object.defineProperty(exports, "hasUnsavedInput", {
|
|
202
194
|
enumerable: true,
|
|
203
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunk6N7QT2DH_cjs.hasUnsavedInput; }
|
|
204
196
|
});
|
|
205
197
|
Object.defineProperty(exports, "installReloadPolicy", {
|
|
206
198
|
enumerable: true,
|
|
207
|
-
get: function () { return
|
|
199
|
+
get: function () { return chunk6N7QT2DH_cjs.installReloadPolicy; }
|
|
208
200
|
});
|
|
209
201
|
Object.defineProperty(exports, "markBuildStale", {
|
|
210
202
|
enumerable: true,
|
|
211
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunk6N7QT2DH_cjs.markBuildStale; }
|
|
212
204
|
});
|
|
213
205
|
Object.defineProperty(exports, "prefetchChunk", {
|
|
214
206
|
enumerable: true,
|
|
215
|
-
get: function () { return
|
|
207
|
+
get: function () { return chunk6N7QT2DH_cjs.prefetchChunk; }
|
|
216
208
|
});
|
|
217
209
|
Object.defineProperty(exports, "requestReload", {
|
|
218
210
|
enumerable: true,
|
|
219
|
-
get: function () { return
|
|
211
|
+
get: function () { return chunk6N7QT2DH_cjs.requestReload; }
|
|
220
212
|
});
|
|
221
213
|
Object.defineProperty(exports, "DEFAULT_SIDEBAR_LABELS", {
|
|
222
214
|
enumerable: true,
|
|
223
|
-
get: function () { return
|
|
215
|
+
get: function () { return chunk6ZJBUMNK_cjs.DEFAULT_SIDEBAR_LABELS; }
|
|
224
216
|
});
|
|
225
217
|
Object.defineProperty(exports, "SHELL_START_INSET_VAR", {
|
|
226
218
|
enumerable: true,
|
|
227
|
-
get: function () { return
|
|
219
|
+
get: function () { return chunk6ZJBUMNK_cjs.SHELL_START_INSET_VAR; }
|
|
228
220
|
});
|
|
229
221
|
Object.defineProperty(exports, "Sidebar", {
|
|
230
222
|
enumerable: true,
|
|
231
|
-
get: function () { return
|
|
223
|
+
get: function () { return chunk6ZJBUMNK_cjs.Sidebar; }
|
|
232
224
|
});
|
|
233
225
|
Object.defineProperty(exports, "SidebarBadgeRow", {
|
|
234
226
|
enumerable: true,
|
|
235
|
-
get: function () { return
|
|
227
|
+
get: function () { return chunk6ZJBUMNK_cjs.SidebarBadgeRow; }
|
|
236
228
|
});
|
|
237
229
|
Object.defineProperty(exports, "SidebarRowHoverContext", {
|
|
238
230
|
enumerable: true,
|
|
239
|
-
get: function () { return
|
|
231
|
+
get: function () { return chunk6ZJBUMNK_cjs.SidebarRowHoverContext; }
|
|
240
232
|
});
|
|
241
233
|
Object.defineProperty(exports, "useShellStartInset", {
|
|
242
234
|
enumerable: true,
|
|
243
|
-
get: function () { return
|
|
235
|
+
get: function () { return chunk6ZJBUMNK_cjs.useShellStartInset; }
|
|
244
236
|
});
|
|
245
237
|
Object.defineProperty(exports, "useSidebarContext", {
|
|
246
238
|
enumerable: true,
|
|
247
|
-
get: function () { return
|
|
239
|
+
get: function () { return chunk6ZJBUMNK_cjs.useSidebarContext; }
|
|
248
240
|
});
|
|
249
241
|
Object.defineProperty(exports, "DEFAULT_WORKSPACE_KIND_LABELS", {
|
|
250
242
|
enumerable: true,
|
|
@@ -270,6 +262,42 @@ Object.defineProperty(exports, "workspaceKindMeta", {
|
|
|
270
262
|
enumerable: true,
|
|
271
263
|
get: function () { return chunkWRTEKOQP_cjs.workspaceKindMeta; }
|
|
272
264
|
});
|
|
265
|
+
Object.defineProperty(exports, "DEFAULT_FILTER_FIELDS", {
|
|
266
|
+
enumerable: true,
|
|
267
|
+
get: function () { return chunk6UZC4XVV_cjs.DEFAULT_FILTER_FIELDS; }
|
|
268
|
+
});
|
|
269
|
+
Object.defineProperty(exports, "DEFAULT_FILTER_INPUT_LABELS", {
|
|
270
|
+
enumerable: true,
|
|
271
|
+
get: function () { return chunk6UZC4XVV_cjs.DEFAULT_FILTER_INPUT_LABELS; }
|
|
272
|
+
});
|
|
273
|
+
Object.defineProperty(exports, "FilterInput", {
|
|
274
|
+
enumerable: true,
|
|
275
|
+
get: function () { return chunk6UZC4XVV_cjs.FilterInput; }
|
|
276
|
+
});
|
|
277
|
+
Object.defineProperty(exports, "getInstallInstructions", {
|
|
278
|
+
enumerable: true,
|
|
279
|
+
get: function () { return chunkKKYNTWDU_cjs.getInstallInstructions; }
|
|
280
|
+
});
|
|
281
|
+
Object.defineProperty(exports, "isIosDevice", {
|
|
282
|
+
enumerable: true,
|
|
283
|
+
get: function () { return chunkKKYNTWDU_cjs.isIosDevice; }
|
|
284
|
+
});
|
|
285
|
+
Object.defineProperty(exports, "DEFAULT_TAB_HEADER_LABELS", {
|
|
286
|
+
enumerable: true,
|
|
287
|
+
get: function () { return chunkSJSGSHIT_cjs.DEFAULT_TAB_HEADER_LABELS; }
|
|
288
|
+
});
|
|
289
|
+
Object.defineProperty(exports, "TabHeader", {
|
|
290
|
+
enumerable: true,
|
|
291
|
+
get: function () { return chunkSJSGSHIT_cjs.TabHeader; }
|
|
292
|
+
});
|
|
293
|
+
Object.defineProperty(exports, "DEFAULT_DOCK_WIDTH", {
|
|
294
|
+
enumerable: true,
|
|
295
|
+
get: function () { return chunkCT3SLXB7_cjs.DEFAULT_DOCK_WIDTH; }
|
|
296
|
+
});
|
|
297
|
+
Object.defineProperty(exports, "Toaster", {
|
|
298
|
+
enumerable: true,
|
|
299
|
+
get: function () { return chunkCT3SLXB7_cjs.Toaster; }
|
|
300
|
+
});
|
|
273
301
|
Object.defineProperty(exports, "STATUS_ROW_BASE_CLASS", {
|
|
274
302
|
enumerable: true,
|
|
275
303
|
get: function () { return chunkDEXUL3T6_cjs.STATUS_ROW_BASE_CLASS; }
|
|
@@ -330,33 +358,5 @@ Object.defineProperty(exports, "useMediaQuery", {
|
|
|
330
358
|
enumerable: true,
|
|
331
359
|
get: function () { return chunkFX3K6LNZ_cjs.useMediaQuery; }
|
|
332
360
|
});
|
|
333
|
-
Object.defineProperty(exports, "DEFAULT_FILTER_FIELDS", {
|
|
334
|
-
enumerable: true,
|
|
335
|
-
get: function () { return chunk6UZC4XVV_cjs.DEFAULT_FILTER_FIELDS; }
|
|
336
|
-
});
|
|
337
|
-
Object.defineProperty(exports, "DEFAULT_FILTER_INPUT_LABELS", {
|
|
338
|
-
enumerable: true,
|
|
339
|
-
get: function () { return chunk6UZC4XVV_cjs.DEFAULT_FILTER_INPUT_LABELS; }
|
|
340
|
-
});
|
|
341
|
-
Object.defineProperty(exports, "FilterInput", {
|
|
342
|
-
enumerable: true,
|
|
343
|
-
get: function () { return chunk6UZC4XVV_cjs.FilterInput; }
|
|
344
|
-
});
|
|
345
|
-
Object.defineProperty(exports, "getInstallInstructions", {
|
|
346
|
-
enumerable: true,
|
|
347
|
-
get: function () { return chunkKKYNTWDU_cjs.getInstallInstructions; }
|
|
348
|
-
});
|
|
349
|
-
Object.defineProperty(exports, "isIosDevice", {
|
|
350
|
-
enumerable: true,
|
|
351
|
-
get: function () { return chunkKKYNTWDU_cjs.isIosDevice; }
|
|
352
|
-
});
|
|
353
|
-
Object.defineProperty(exports, "DEFAULT_TAB_HEADER_LABELS", {
|
|
354
|
-
enumerable: true,
|
|
355
|
-
get: function () { return chunkSJSGSHIT_cjs.DEFAULT_TAB_HEADER_LABELS; }
|
|
356
|
-
});
|
|
357
|
-
Object.defineProperty(exports, "TabHeader", {
|
|
358
|
-
enumerable: true,
|
|
359
|
-
get: function () { return chunkSJSGSHIT_cjs.TabHeader; }
|
|
360
|
-
});
|
|
361
361
|
//# sourceMappingURL=index.cjs.map
|
|
362
362
|
//# sourceMappingURL=index.cjs.map
|
package/dist/studio/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
4
|
+
var chunkSKQ5OMMF_cjs = require('../chunk-SKQ5OMMF.cjs');
|
|
5
|
+
require('../chunk-M3HYFFCK.cjs');
|
|
6
|
+
require('../chunk-IPSR2PUU.cjs');
|
|
7
|
+
require('../chunk-LJTHFTQQ.cjs');
|
|
8
|
+
require('../chunk-BJRQHR7R.cjs');
|
|
9
9
|
var chunkPJ5OQ5VB_cjs = require('../chunk-PJ5OQ5VB.cjs');
|
|
10
10
|
var chunkJ37DOAGN_cjs = require('../chunk-J37DOAGN.cjs');
|
|
11
11
|
var chunkQEMGGJB6_cjs = require('../chunk-QEMGGJB6.cjs');
|
|
@@ -13,46 +13,46 @@ require('../chunk-MWHVETKN.cjs');
|
|
|
13
13
|
var chunkOO452QD5_cjs = require('../chunk-OO452QD5.cjs');
|
|
14
14
|
var chunkANWJG4A4_cjs = require('../chunk-ANWJG4A4.cjs');
|
|
15
15
|
var chunkICZSVCDT_cjs = require('../chunk-ICZSVCDT.cjs');
|
|
16
|
-
var
|
|
16
|
+
var chunkW7TSEN3J_cjs = require('../chunk-W7TSEN3J.cjs');
|
|
17
17
|
var chunkNEGFHF3V_cjs = require('../chunk-NEGFHF3V.cjs');
|
|
18
18
|
require('../chunk-ADMNU2CR.cjs');
|
|
19
19
|
var chunkPCB2BPN3_cjs = require('../chunk-PCB2BPN3.cjs');
|
|
20
20
|
var chunkNSD37OF5_cjs = require('../chunk-NSD37OF5.cjs');
|
|
21
|
-
require('../chunk-JFCTB5YI.cjs');
|
|
22
|
-
require('../chunk-CI777IPA.cjs');
|
|
23
|
-
require('../chunk-PK5H5SVS.cjs');
|
|
24
|
-
require('../chunk-5F4DCIHS.cjs');
|
|
25
21
|
var chunk34HQO4ZQ_cjs = require('../chunk-34HQO4ZQ.cjs');
|
|
26
|
-
require('../chunk-
|
|
22
|
+
require('../chunk-6ZJBUMNK.cjs');
|
|
27
23
|
require('../chunk-NWNVWO6L.cjs');
|
|
28
|
-
require('../chunk-AFQTQC7A.cjs');
|
|
29
|
-
require('../chunk-XJEXFEWG.cjs');
|
|
30
|
-
require('../chunk-YZSQ7F5K.cjs');
|
|
31
|
-
require('../chunk-KQF7POTG.cjs');
|
|
32
|
-
require('../chunk-75BNMCUX.cjs');
|
|
33
24
|
var chunkC25KF2TM_cjs = require('../chunk-C25KF2TM.cjs');
|
|
34
25
|
var chunkZU2B2RZK_cjs = require('../chunk-ZU2B2RZK.cjs');
|
|
35
26
|
require('../chunk-OEJQFPWO.cjs');
|
|
36
27
|
require('../chunk-I4IS6ST6.cjs');
|
|
37
28
|
require('../chunk-M55XUF4L.cjs');
|
|
38
29
|
require('../chunk-EVZH6Z5O.cjs');
|
|
39
|
-
require('../chunk-IN6ILI5A.cjs');
|
|
40
|
-
require('../chunk-7XR6CPCU.cjs');
|
|
41
30
|
require('../chunk-II2OEXHW.cjs');
|
|
42
|
-
require('../chunk-
|
|
31
|
+
require('../chunk-B5AOYT4U.cjs');
|
|
43
32
|
require('../chunk-AHDJXIUB.cjs');
|
|
44
33
|
require('../chunk-IXCWZ4HC.cjs');
|
|
45
|
-
require('../chunk-Y3GJBLAI.cjs');
|
|
46
|
-
require('../chunk-SQCCQU3K.cjs');
|
|
47
|
-
require('../chunk-UDSHVNU3.cjs');
|
|
48
|
-
require('../chunk-ZQQVXRYZ.cjs');
|
|
49
|
-
var chunkIPSHAMO2_cjs = require('../chunk-IPSHAMO2.cjs');
|
|
50
34
|
require('../chunk-VZOOGA47.cjs');
|
|
35
|
+
require('../chunk-ZQQVXRYZ.cjs');
|
|
51
36
|
require('../chunk-GD5OYIOV.cjs');
|
|
52
37
|
var chunkVWSOHZK2_cjs = require('../chunk-VWSOHZK2.cjs');
|
|
53
38
|
require('../chunk-3YZKDCWY.cjs');
|
|
54
|
-
require('../chunk-PPCATBOY.cjs');
|
|
55
39
|
var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
|
|
40
|
+
require('../chunk-XGMA7ITI.cjs');
|
|
41
|
+
require('../chunk-IJ4JKHEC.cjs');
|
|
42
|
+
require('../chunk-KBRDUFXG.cjs');
|
|
43
|
+
require('../chunk-5F4DCIHS.cjs');
|
|
44
|
+
require('../chunk-AFQTQC7A.cjs');
|
|
45
|
+
require('../chunk-XJEXFEWG.cjs');
|
|
46
|
+
require('../chunk-YZSQ7F5K.cjs');
|
|
47
|
+
require('../chunk-KQF7POTG.cjs');
|
|
48
|
+
require('../chunk-75BNMCUX.cjs');
|
|
49
|
+
require('../chunk-IN6ILI5A.cjs');
|
|
50
|
+
require('../chunk-PIJPM5RA.cjs');
|
|
51
|
+
require('../chunk-Y3GJBLAI.cjs');
|
|
52
|
+
require('../chunk-SQCCQU3K.cjs');
|
|
53
|
+
require('../chunk-UDSHVNU3.cjs');
|
|
54
|
+
var chunkIPSHAMO2_cjs = require('../chunk-IPSHAMO2.cjs');
|
|
55
|
+
require('../chunk-PPCATBOY.cjs');
|
|
56
56
|
var chunkHN56WWBR_cjs = require('../chunk-HN56WWBR.cjs');
|
|
57
57
|
require('../chunk-K67VMSOX.cjs');
|
|
58
58
|
require('../chunk-CVPV4I7Z.cjs');
|
|
@@ -619,7 +619,7 @@ function StudioEditor({
|
|
|
619
619
|
className: "w-80 shrink-0 border-l border-border",
|
|
620
620
|
"data-testid": `${testIdPrefix}-theme-drawer`,
|
|
621
621
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
622
|
-
|
|
622
|
+
chunkW7TSEN3J_cjs.ThemeEditor,
|
|
623
623
|
{
|
|
624
624
|
bundle: themeBundle,
|
|
625
625
|
variant: "drawer",
|
|
@@ -992,7 +992,7 @@ function latestImageDocId(artifacts) {
|
|
|
992
992
|
return null;
|
|
993
993
|
}
|
|
994
994
|
function useImageGen() {
|
|
995
|
-
const task =
|
|
995
|
+
const task = chunkSKQ5OMMF_cjs.useConnectedAiTask();
|
|
996
996
|
const { run } = task;
|
|
997
997
|
const generate = react.useCallback(
|
|
998
998
|
async (prompt, referenceDocIds = []) => {
|
|
@@ -3391,7 +3391,7 @@ function VerticalBuilder({
|
|
|
3391
3391
|
] })
|
|
3392
3392
|
] }),
|
|
3393
3393
|
/* @__PURE__ */ jsxRuntime.jsx(ui.TabsContent, { value: "theme", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3394
|
-
|
|
3394
|
+
chunkW7TSEN3J_cjs.ThemeEditor,
|
|
3395
3395
|
{
|
|
3396
3396
|
bundle: themeBundle,
|
|
3397
3397
|
variant: "panel",
|