@arbidocs/blocks 0.5.120 → 0.5.121
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/ClippingMediaViewer-B6WG7Q64.cjs +156 -0
- package/dist/ClippingMediaViewer-B6WG7Q64.cjs.map +1 -0
- package/dist/ClippingPdfViewer-6GCVTV3V.cjs +79 -0
- package/dist/ClippingPdfViewer-6GCVTV3V.cjs.map +1 -0
- package/dist/{ConnectedCallDock-WER7R222.cjs → ConnectedCallDock-DC5V5OUJ.cjs} +25 -23
- package/dist/ConnectedCallDock-DC5V5OUJ.cjs.map +1 -0
- package/dist/{ConnectedCallRoom-T7OBQTYP.cjs → ConnectedCallRoom-FQLXWTFB.cjs} +18 -16
- package/dist/{ConnectedCallRoom-T7OBQTYP.cjs.map → ConnectedCallRoom-FQLXWTFB.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-SGE4R3M4.cjs → ConnectedNativeDocxComparison-4Q5S7VLD.cjs} +17 -17
- package/dist/{ConnectedNativeDocxComparison-SGE4R3M4.cjs.map → ConnectedNativeDocxComparison-4Q5S7VLD.cjs.map} +1 -1
- package/dist/ConnectedPresentation-4HLDZDWV.cjs +183 -0
- package/dist/ConnectedPresentation-4HLDZDWV.cjs.map +1 -0
- package/dist/{ConnectedProductionSetDialog-LHB4VQWC.cjs → ConnectedProductionSetDialog-4EAY6KAZ.cjs} +3 -3
- package/dist/{ConnectedProductionSetDialog-LHB4VQWC.cjs.map → ConnectedProductionSetDialog-4EAY6KAZ.cjs.map} +1 -1
- package/dist/ConnectedSlidesTab-7QDE2CZD.cjs +234 -0
- package/dist/ConnectedSlidesTab-7QDE2CZD.cjs.map +1 -0
- package/dist/{ConnectedStreamedWordArtifact-6MCLJRIT.cjs → ConnectedStreamedWordArtifact-FFOQJBOI.cjs} +17 -17
- package/dist/{ConnectedStreamedWordArtifact-6MCLJRIT.cjs.map → ConnectedStreamedWordArtifact-FFOQJBOI.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-BPIAJJED.cjs → DocumentReviewCard-SNWVEZ7S.cjs} +17 -16
- package/dist/DocumentReviewCard-SNWVEZ7S.cjs.map +1 -0
- package/dist/{FilesViewerDialog-67WK3TZC.cjs → FilesViewerDialog-IZI63FOV.cjs} +52 -45
- package/dist/FilesViewerDialog-IZI63FOV.cjs.map +1 -0
- package/dist/{GridViewImpl-ZMJJWTOM.cjs → GridViewImpl-LTYET77Q.cjs} +3 -3
- package/dist/GridViewImpl-LTYET77Q.cjs.map +1 -0
- package/dist/{WorkspaceTableView-J3C6VH4T.cjs → WorkspaceTableView-TEIRB6VJ.cjs} +11 -10
- package/dist/WorkspaceTableView-TEIRB6VJ.cjs.map +1 -0
- package/dist/agents/index.cjs +297 -297
- package/dist/{ai-IM4A23YT.cjs → ai-KBYNRNZ6.cjs} +28 -26
- package/dist/ai-KBYNRNZ6.cjs.map +1 -0
- package/dist/calls/connected/CallControls.d.ts +2 -0
- package/dist/calls/connected/CallControls.js +71 -9
- package/dist/calls/connected/CallControls.js.map +2 -2
- package/dist/calls/connected/ShareDocumentDialog.d.ts +14 -0
- package/dist/calls/connected/ShareDocumentDialog.js +77 -0
- package/dist/calls/connected/ShareDocumentDialog.js.map +7 -0
- package/dist/calls/index.cjs +121 -121
- package/dist/chat/index.cjs +9 -8
- package/dist/{chunk-T23UTIRI.cjs → chunk-2PZT3J34.cjs} +6 -6
- package/dist/{chunk-T23UTIRI.cjs.map → chunk-2PZT3J34.cjs.map} +1 -1
- package/dist/{chunk-SGYSDABK.cjs → chunk-2W5E62EY.cjs} +6 -6
- package/dist/{chunk-SGYSDABK.cjs.map → chunk-2W5E62EY.cjs.map} +1 -1
- package/dist/{chunk-TDO5UWXF.cjs → chunk-3SCNXNHI.cjs} +5 -5
- package/dist/{chunk-TDO5UWXF.cjs.map → chunk-3SCNXNHI.cjs.map} +1 -1
- package/dist/{chunk-KTQOGT2L.cjs → chunk-474GPLCM.cjs} +7 -7
- package/dist/{chunk-KTQOGT2L.cjs.map → chunk-474GPLCM.cjs.map} +1 -1
- package/dist/{chunk-TP5PGWIO.cjs → chunk-4IOYQLKG.cjs} +3 -3
- package/dist/{chunk-TP5PGWIO.cjs.map → chunk-4IOYQLKG.cjs.map} +1 -1
- package/dist/{chunk-NY3YUCOW.cjs → chunk-4NPCDS2X.cjs} +3 -3
- package/dist/{chunk-NY3YUCOW.cjs.map → chunk-4NPCDS2X.cjs.map} +1 -1
- package/dist/{chunk-HA66DHW6.cjs → chunk-4RBQ44RY.cjs} +28 -28
- package/dist/chunk-4RBQ44RY.cjs.map +1 -0
- package/dist/{chunk-BQ5RIWWT.cjs → chunk-4VZZWYEC.cjs} +3 -3
- package/dist/{chunk-BQ5RIWWT.cjs.map → chunk-4VZZWYEC.cjs.map} +1 -1
- package/dist/{chunk-BP3IJ34D.cjs → chunk-52KGMAO5.cjs} +15 -15
- package/dist/{chunk-BP3IJ34D.cjs.map → chunk-52KGMAO5.cjs.map} +1 -1
- package/dist/{chunk-5IZFSAEZ.cjs → chunk-5534FYXP.cjs} +4 -4
- package/dist/{chunk-5IZFSAEZ.cjs.map → chunk-5534FYXP.cjs.map} +1 -1
- package/dist/chunk-5GCCUXMT.cjs +63 -0
- package/dist/chunk-5GCCUXMT.cjs.map +1 -0
- package/dist/chunk-5LTIZ44D.cjs +95 -0
- package/dist/chunk-5LTIZ44D.cjs.map +1 -0
- package/dist/{chunk-DFBDQKGE.cjs → chunk-734NPQNR.cjs} +4 -4
- package/dist/{chunk-DFBDQKGE.cjs.map → chunk-734NPQNR.cjs.map} +1 -1
- package/dist/{chunk-X36UR4A7.cjs → chunk-7VUJGHMY.cjs} +323 -96
- package/dist/chunk-7VUJGHMY.cjs.map +1 -0
- package/dist/chunk-AFQTQC7A.cjs +35 -0
- package/dist/chunk-AFQTQC7A.cjs.map +1 -0
- package/dist/{chunk-YYSBWMDJ.cjs → chunk-AY6EZSZB.cjs} +4 -4
- package/dist/{chunk-YYSBWMDJ.cjs.map → chunk-AY6EZSZB.cjs.map} +1 -1
- package/dist/{chunk-BUVIBHFU.cjs → chunk-BVAT4EVC.cjs} +38 -38
- package/dist/chunk-BVAT4EVC.cjs.map +1 -0
- package/dist/{chunk-ECLUFKYR.cjs → chunk-C2OICDMI.cjs} +10 -10
- package/dist/{chunk-ECLUFKYR.cjs.map → chunk-C2OICDMI.cjs.map} +1 -1
- package/dist/{chunk-CPR6EHG7.cjs → chunk-DR2AH7JL.cjs} +179 -55
- package/dist/chunk-DR2AH7JL.cjs.map +1 -0
- package/dist/{chunk-NJCK6V6U.cjs → chunk-EATIFPKP.cjs} +4 -60
- package/dist/chunk-EATIFPKP.cjs.map +1 -0
- package/dist/{chunk-B3LZITVF.cjs → chunk-EHP6OH5D.cjs} +11 -451
- package/dist/chunk-EHP6OH5D.cjs.map +1 -0
- package/dist/{chunk-775S43W7.cjs → chunk-ENGL7P3I.cjs} +31 -31
- package/dist/{chunk-775S43W7.cjs.map → chunk-ENGL7P3I.cjs.map} +1 -1
- package/dist/{chunk-VZCPMXWC.cjs → chunk-FKFQCK3C.cjs} +4 -4
- package/dist/{chunk-VZCPMXWC.cjs.map → chunk-FKFQCK3C.cjs.map} +1 -1
- package/dist/{chunk-6UTKM5AB.cjs → chunk-GKVE5JGB.cjs} +76 -76
- package/dist/chunk-GKVE5JGB.cjs.map +1 -0
- package/dist/{chunk-Q6CLWOP2.cjs → chunk-GPX5VC57.cjs} +50 -50
- package/dist/{chunk-Q6CLWOP2.cjs.map → chunk-GPX5VC57.cjs.map} +1 -1
- package/dist/{chunk-WAV762GP.cjs → chunk-GQXPNIRE.cjs} +6 -6
- package/dist/{chunk-WAV762GP.cjs.map → chunk-GQXPNIRE.cjs.map} +1 -1
- package/dist/chunk-GX2EBMJW.cjs +133 -0
- package/dist/chunk-GX2EBMJW.cjs.map +1 -0
- package/dist/{chunk-7OPOPYV6.cjs → chunk-H5OLHP2U.cjs} +3 -3
- package/dist/{chunk-7OPOPYV6.cjs.map → chunk-H5OLHP2U.cjs.map} +1 -1
- package/dist/chunk-HYUKPHCT.cjs +66 -0
- package/dist/chunk-HYUKPHCT.cjs.map +1 -0
- package/dist/{chunk-NLSWDP42.cjs → chunk-JQLWKNJO.cjs} +22 -12
- package/dist/chunk-JQLWKNJO.cjs.map +1 -0
- package/dist/{chunk-CKCG4NDB.cjs → chunk-JZEYHDWJ.cjs} +75 -75
- package/dist/{chunk-CKCG4NDB.cjs.map → chunk-JZEYHDWJ.cjs.map} +1 -1
- package/dist/{chunk-PGJYD67F.cjs → chunk-KNGZZC4O.cjs} +7 -6
- package/dist/chunk-KNGZZC4O.cjs.map +1 -0
- package/dist/{chunk-W6INT5GS.cjs → chunk-KP5AITQ4.cjs} +10 -10
- package/dist/{chunk-W6INT5GS.cjs.map → chunk-KP5AITQ4.cjs.map} +1 -1
- package/dist/{chunk-YYPZOEED.cjs → chunk-LHWOKOMP.cjs} +23 -2
- package/dist/chunk-LHWOKOMP.cjs.map +1 -0
- package/dist/{chunk-WXUU3COI.cjs → chunk-MZ2KZXNU.cjs} +3 -3
- package/dist/{chunk-WXUU3COI.cjs.map → chunk-MZ2KZXNU.cjs.map} +1 -1
- package/dist/chunk-NAJN32MF.cjs +154 -0
- package/dist/chunk-NAJN32MF.cjs.map +1 -0
- package/dist/{chunk-557MJ4IH.cjs → chunk-NLOETJCB.cjs} +17 -154
- package/dist/chunk-NLOETJCB.cjs.map +1 -0
- package/dist/{chunk-4XJEHKVZ.cjs → chunk-PIYYBPHH.cjs} +4 -4
- package/dist/{chunk-4XJEHKVZ.cjs.map → chunk-PIYYBPHH.cjs.map} +1 -1
- package/dist/chunk-Q3XJUXID.cjs +4774 -0
- package/dist/chunk-Q3XJUXID.cjs.map +1 -0
- package/dist/{chunk-325GVZE6.cjs → chunk-Q6DQGGP4.cjs} +3 -3
- package/dist/{chunk-325GVZE6.cjs.map → chunk-Q6DQGGP4.cjs.map} +1 -1
- package/dist/chunk-QFXILJMJ.cjs +458 -0
- package/dist/chunk-QFXILJMJ.cjs.map +1 -0
- package/dist/{chunk-QQWHG3KF.cjs → chunk-RYVZDFVO.cjs} +5 -5
- package/dist/{chunk-QQWHG3KF.cjs.map → chunk-RYVZDFVO.cjs.map} +1 -1
- package/dist/{chunk-EOG6OT5I.cjs → chunk-TXP2N3DC.cjs} +4 -4
- package/dist/{chunk-EOG6OT5I.cjs.map → chunk-TXP2N3DC.cjs.map} +1 -1
- package/dist/{chunk-KXIRVKCJ.cjs → chunk-UUENH4BJ.cjs} +3 -3
- package/dist/{chunk-KXIRVKCJ.cjs.map → chunk-UUENH4BJ.cjs.map} +1 -1
- package/dist/chunk-VJ5ZLRBD.cjs +27 -0
- package/dist/chunk-VJ5ZLRBD.cjs.map +1 -0
- package/dist/{chunk-3GWWOYGS.cjs → chunk-W6B3RYTX.cjs} +4 -4
- package/dist/{chunk-3GWWOYGS.cjs.map → chunk-W6B3RYTX.cjs.map} +1 -1
- package/dist/chunk-WOOOMTTA.cjs +19 -0
- package/dist/chunk-WOOOMTTA.cjs.map +1 -0
- package/dist/{chunk-CJYWHUZR.cjs → chunk-XCKHOXRP.cjs} +4 -4
- package/dist/{chunk-CJYWHUZR.cjs.map → chunk-XCKHOXRP.cjs.map} +1 -1
- package/dist/{chunk-6WMMZLEV.cjs → chunk-XJEXFEWG.cjs} +2 -27
- package/dist/chunk-XJEXFEWG.cjs.map +1 -0
- package/dist/chunk-XK4TVJKD.cjs +73 -0
- package/dist/chunk-XK4TVJKD.cjs.map +1 -0
- package/dist/chunk-XTR26TNE.cjs +1358 -0
- package/dist/chunk-XTR26TNE.cjs.map +1 -0
- package/dist/{chunk-E7TE2WVT.cjs → chunk-ZVEW3JBT.cjs} +3 -3
- package/dist/{chunk-E7TE2WVT.cjs.map → chunk-ZVEW3JBT.cjs.map} +1 -1
- package/dist/collaboration/index.cjs +70 -70
- package/dist/components/ZoomSlider.d.ts +25 -0
- package/dist/components/ZoomSlider.js +59 -0
- package/dist/components/ZoomSlider.js.map +7 -0
- package/dist/connect/docx.cjs +20 -20
- package/dist/connect/index.cjs +1150 -1232
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/viewer.cjs +40 -34
- package/dist/connection/ai.d.ts +1 -1
- package/dist/connection/files/ConnectedNewFileMenu.d.ts +2 -1
- package/dist/connection/files/ConnectedNewFileMenu.js +9 -3
- package/dist/connection/files/ConnectedNewFileMenu.js.map +2 -2
- package/dist/connection/files/explorer/ConnectedFilesExplorer.js +1 -1
- package/dist/connection/files/explorer/ConnectedFilesExplorer.js.map +2 -2
- package/dist/connection/files/explorer/FileTiles.js +1 -1
- package/dist/connection/files/explorer/FileTiles.js.map +2 -2
- package/dist/connection/files/fields/documentField.js +1 -1
- package/dist/connection/files/fields/documentField.js.map +2 -2
- package/dist/connection/files/grid/documentColumns.js +1 -1
- package/dist/connection/files/grid/documentColumns.js.map +2 -2
- package/dist/connection/files/page/DocumentsFilterBarActions.js +17 -28
- package/dist/connection/files/page/DocumentsFilterBarActions.js.map +2 -2
- package/dist/connection/mail/useMailboxDefaults.js +1 -1
- package/dist/connection/mail/useMailboxDefaults.js.map +2 -2
- package/dist/connection/panels/useSessionPanelMode.js +3 -2
- package/dist/connection/panels/useSessionPanelMode.js.map +2 -2
- package/dist/connection/presentation/ClippingMediaViewer.d.ts +12 -0
- package/dist/connection/presentation/ClippingMediaViewer.js +153 -0
- package/dist/connection/presentation/ClippingMediaViewer.js.map +7 -0
- package/dist/connection/presentation/ClippingPdfViewer.d.ts +22 -0
- package/dist/connection/presentation/ClippingPdfViewer.js +75 -0
- package/dist/connection/presentation/ClippingPdfViewer.js.map +7 -0
- package/dist/connection/presentation/ConnectedPresentation.d.ts +12 -0
- package/dist/connection/presentation/ConnectedPresentation.js +100 -0
- package/dist/connection/presentation/ConnectedPresentation.js.map +7 -0
- package/dist/connection/presentation/ConnectedSlidesTab.d.ts +20 -0
- package/dist/connection/presentation/ConnectedSlidesTab.js +220 -0
- package/dist/connection/presentation/ConnectedSlidesTab.js.map +7 -0
- package/dist/connection/presentation/CropClipDialog.d.ts +11 -0
- package/dist/connection/presentation/CropClipDialog.js +86 -0
- package/dist/connection/presentation/CropClipDialog.js.map +7 -0
- package/dist/connection/presentation/GenerateTile.d.ts +4 -0
- package/dist/connection/presentation/GenerateTile.js +24 -0
- package/dist/connection/presentation/GenerateTile.js.map +7 -0
- package/dist/connection/presentation/LabelColumnMenu.d.ts +8 -0
- package/dist/connection/presentation/LabelColumnMenu.js +38 -0
- package/dist/connection/presentation/LabelColumnMenu.js.map +7 -0
- package/dist/connection/presentation/PresentationDialogs.d.ts +39 -0
- package/dist/connection/presentation/PresentationDialogs.js +295 -0
- package/dist/connection/presentation/PresentationDialogs.js.map +7 -0
- package/dist/connection/presentation/PresentationFileCard.d.ts +10 -0
- package/dist/connection/presentation/PresentationFileCard.js +35 -0
- package/dist/connection/presentation/PresentationFileCard.js.map +7 -0
- package/dist/connection/presentation/PresentationPill.d.ts +8 -0
- package/dist/connection/presentation/PresentationPill.js +44 -0
- package/dist/connection/presentation/PresentationPill.js.map +7 -0
- package/dist/connection/presentation/PresentationSlot.d.ts +7 -0
- package/dist/connection/presentation/PresentationSlot.js +35 -0
- package/dist/connection/presentation/PresentationSlot.js.map +7 -0
- package/dist/connection/presentation/requests.d.ts +16 -0
- package/dist/connection/presentation/requests.js +20 -0
- package/dist/connection/presentation/requests.js.map +7 -0
- package/dist/connection/presentation/useImageGeneration.d.ts +11 -0
- package/dist/connection/presentation/useImageGeneration.js +66 -0
- package/dist/connection/presentation/useImageGeneration.js.map +7 -0
- package/dist/connection/presentation/useLabelColumns.d.ts +15 -0
- package/dist/connection/presentation/useLabelColumns.js +33 -0
- package/dist/connection/presentation/useLabelColumns.js.map +7 -0
- package/dist/connection/presentation/usePresentationController.d.ts +15 -0
- package/dist/connection/presentation/usePresentationController.js +118 -0
- package/dist/connection/presentation/usePresentationController.js.map +7 -0
- package/dist/connection/presentation/usePresentationFiles.d.ts +44 -0
- package/dist/connection/presentation/usePresentationFiles.js +307 -0
- package/dist/connection/presentation/usePresentationFiles.js.map +7 -0
- package/dist/connection/presentation/useViewerClipping.d.ts +14 -0
- package/dist/connection/presentation/useViewerClipping.js +18 -0
- package/dist/connection/presentation/useViewerClipping.js.map +7 -0
- package/dist/connection/shell/ConnectedAppShell.js +5 -1
- package/dist/connection/shell/ConnectedAppShell.js.map +2 -2
- package/dist/connection/viewer/CleanViewControl.d.ts +8 -0
- package/dist/connection/viewer/CleanViewControl.js +76 -0
- package/dist/connection/viewer/CleanViewControl.js.map +7 -0
- package/dist/connection/viewer/ConnectedDocumentViewer.js +28 -29
- package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
- package/dist/connection/viewer/ViewerCropModal.d.ts +5 -0
- package/dist/connection/viewer/ViewerCropModal.js +22 -0
- package/dist/connection/viewer/ViewerCropModal.js.map +7 -0
- package/dist/connection/viewer/ViewerPdfPane.d.ts +3 -1
- package/dist/connection/viewer/ViewerPdfPane.js +37 -0
- package/dist/connection/viewer/ViewerPdfPane.js.map +2 -2
- package/dist/connection/viewer/drafts.js +6 -4
- package/dist/connection/viewer/drafts.js.map +2 -2
- package/dist/connection/viewer/shareDocument.d.ts +11 -0
- package/dist/connection/viewer/shareDocument.js +11 -0
- package/dist/connection/viewer/shareDocument.js.map +7 -0
- package/dist/connection/viewer/slidesTabChunk.d.ts +2 -0
- package/dist/connection/viewer/slidesTabChunk.js +9 -0
- package/dist/connection/viewer/slidesTabChunk.js.map +7 -0
- package/dist/connection/viewer/useCleanView.d.ts +14 -0
- package/dist/connection/viewer/useCleanView.js +29 -0
- package/dist/connection/viewer/useCleanView.js.map +7 -0
- package/dist/connection/viewer/useViewedDocument.d.ts +1 -0
- package/dist/connection/viewer/useViewedDocument.js +9 -1
- package/dist/connection/viewer/useViewedDocument.js.map +2 -2
- package/dist/connection/viewer/useViewerTabs.js +18 -4
- package/dist/connection/viewer/useViewerTabs.js.map +2 -2
- package/dist/connection/workflows/ConnectedWorkflowStart.d.ts +14 -2
- package/dist/connection/workflows/ConnectedWorkflowStart.js +5 -2
- package/dist/connection/workflows/ConnectedWorkflowStart.js.map +2 -2
- package/dist/dashboards/index.cjs +1 -1
- package/dist/databases/index.cjs +49 -49
- package/dist/document-tools/DocumentToolButtons.d.ts +2 -0
- package/dist/document-tools/DocumentToolButtons.js +22 -1
- package/dist/document-tools/DocumentToolButtons.js.map +2 -2
- package/dist/document-tools/index.cjs +16 -12
- package/dist/document-tools/index.d.ts +1 -1
- package/dist/document-tools/index.js +2 -0
- package/dist/document-tools/index.js.map +2 -2
- package/dist/embed/index.cjs +41 -39
- package/dist/files/GridViewImpl.js +1 -1
- package/dist/files/GridViewImpl.js.map +2 -2
- package/dist/files/ViewerChrome.d.ts +5 -1
- package/dist/files/ViewerChrome.js +16 -6
- package/dist/files/ViewerChrome.js.map +2 -2
- package/dist/files/index.cjs +225 -225
- package/dist/files/navigator/DocumentSearchList.js +1 -1
- package/dist/files/navigator/DocumentSearchList.js.map +2 -2
- package/dist/index.cjs +1666 -1664
- package/dist/index.cjs.map +1 -1
- package/dist/presentation/BoxActionBar.d.ts +11 -0
- package/dist/presentation/BoxActionBar.js +182 -0
- package/dist/presentation/BoxActionBar.js.map +7 -0
- package/dist/presentation/ClipActionBar.d.ts +26 -0
- package/dist/presentation/ClipActionBar.js +103 -0
- package/dist/presentation/ClipActionBar.js.map +7 -0
- package/dist/presentation/ClipCaptureOverlay.d.ts +14 -0
- package/dist/presentation/ClipCaptureOverlay.js +69 -0
- package/dist/presentation/ClipCaptureOverlay.js.map +7 -0
- package/dist/presentation/ClipImage.d.ts +21 -0
- package/dist/presentation/ClipImage.js +119 -0
- package/dist/presentation/ClipImage.js.map +7 -0
- package/dist/presentation/ClipTray.d.ts +11 -0
- package/dist/presentation/ClipTray.js +152 -0
- package/dist/presentation/ClipTray.js.map +7 -0
- package/dist/presentation/ClipViewControls.d.ts +11 -0
- package/dist/presentation/ClipViewControls.js +142 -0
- package/dist/presentation/ClipViewControls.js.map +7 -0
- package/dist/presentation/DesignMenu.d.ts +8 -0
- package/dist/presentation/DesignMenu.js +199 -0
- package/dist/presentation/DesignMenu.js.map +7 -0
- package/dist/presentation/LayoutMenu.d.ts +17 -0
- package/dist/presentation/LayoutMenu.js +122 -0
- package/dist/presentation/LayoutMenu.js.map +7 -0
- package/dist/presentation/MediaClip.d.ts +15 -0
- package/dist/presentation/MediaClip.js +67 -0
- package/dist/presentation/MediaClip.js.map +7 -0
- package/dist/presentation/Notice.d.ts +6 -0
- package/dist/presentation/Notice.js +43 -0
- package/dist/presentation/Notice.js.map +7 -0
- package/dist/presentation/PresentationStage.d.ts +32 -0
- package/dist/presentation/PresentationStage.js +232 -0
- package/dist/presentation/PresentationStage.js.map +7 -0
- package/dist/presentation/PresenterView.d.ts +16 -0
- package/dist/presentation/PresenterView.js +69 -0
- package/dist/presentation/PresenterView.js.map +7 -0
- package/dist/presentation/SlideDecor.d.ts +25 -0
- package/dist/presentation/SlideDecor.js +189 -0
- package/dist/presentation/SlideDecor.js.map +7 -0
- package/dist/presentation/SlidesEditor.d.ts +25 -0
- package/dist/presentation/SlidesEditor.js +359 -0
- package/dist/presentation/SlidesEditor.js.map +7 -0
- package/dist/presentation/StageBox.d.ts +30 -0
- package/dist/presentation/StageBox.js +281 -0
- package/dist/presentation/StageBox.js.map +7 -0
- package/dist/presentation/StageItem.d.ts +37 -0
- package/dist/presentation/StageItem.js +211 -0
- package/dist/presentation/StageItem.js.map +7 -0
- package/dist/presentation/box-style.d.ts +6 -0
- package/dist/presentation/box-style.js +19 -0
- package/dist/presentation/box-style.js.map +7 -0
- package/dist/presentation/boxes.d.ts +105 -0
- package/dist/presentation/boxes.js +103 -0
- package/dist/presentation/boxes.js.map +7 -0
- package/dist/presentation/draw-boxes.d.ts +8 -0
- package/dist/presentation/draw-boxes.js +130 -0
- package/dist/presentation/draw-boxes.js.map +7 -0
- package/dist/presentation/export-boxes.d.ts +10 -0
- package/dist/presentation/export-boxes.js +74 -0
- package/dist/presentation/export-boxes.js.map +7 -0
- package/dist/presentation/export-pptx.d.ts +16 -0
- package/dist/presentation/export-pptx.js +194 -0
- package/dist/presentation/export-pptx.js.map +7 -0
- package/dist/presentation/import-pptx.d.ts +35 -0
- package/dist/presentation/import-pptx.js +659 -0
- package/dist/presentation/import-pptx.js.map +7 -0
- package/dist/presentation/merge-outside-edits.d.ts +12 -0
- package/dist/presentation/merge-outside-edits.js +35 -0
- package/dist/presentation/merge-outside-edits.js.map +7 -0
- package/dist/presentation/model.d.ts +201 -0
- package/dist/presentation/model.js +271 -0
- package/dist/presentation/model.js.map +7 -0
- package/dist/presentation/panel-id.d.ts +34 -0
- package/dist/presentation/panel-id.js +24 -0
- package/dist/presentation/panel-id.js.map +7 -0
- package/dist/presentation/persistence.d.ts +121 -0
- package/dist/presentation/persistence.js +141 -0
- package/dist/presentation/persistence.js.map +7 -0
- package/dist/presentation/pptx-data.d.ts +22 -0
- package/dist/presentation/pptx-data.js +83 -0
- package/dist/presentation/pptx-data.js.map +7 -0
- package/dist/presentation/pptx-xml.d.ts +90 -0
- package/dist/presentation/pptx-xml.js +333 -0
- package/dist/presentation/pptx-xml.js.map +7 -0
- package/dist/presentation/render-slides.d.ts +58 -0
- package/dist/presentation/render-slides.js +309 -0
- package/dist/presentation/render-slides.js.map +7 -0
- package/dist/presentation/saved-boxes.d.ts +11 -0
- package/dist/presentation/saved-boxes.js +80 -0
- package/dist/presentation/saved-boxes.js.map +7 -0
- package/dist/presentation/slide-layout.d.ts +54 -0
- package/dist/presentation/slide-layout.js +117 -0
- package/dist/presentation/slide-layout.js.map +7 -0
- package/dist/presentation/stage-videos.d.ts +5 -0
- package/dist/presentation/stage-videos.js +19 -0
- package/dist/presentation/stage-videos.js.map +7 -0
- package/dist/presentation/store.d.ts +203 -0
- package/dist/presentation/store.js +429 -0
- package/dist/presentation/store.js.map +7 -0
- package/dist/presentation/theme.d.ts +102 -0
- package/dist/presentation/theme.js +276 -0
- package/dist/presentation/theme.js.map +7 -0
- package/dist/presentation/useClipDrag.d.ts +26 -0
- package/dist/presentation/useClipDrag.js +65 -0
- package/dist/presentation/useClipDrag.js.map +7 -0
- package/dist/presentation/useObjectUrl.d.ts +6 -0
- package/dist/presentation/useObjectUrl.js +15 -0
- package/dist/presentation/useObjectUrl.js.map +7 -0
- package/dist/presentation/usePresenterKeys.d.ts +13 -0
- package/dist/presentation/usePresenterKeys.js +62 -0
- package/dist/presentation/usePresenterKeys.js.map +7 -0
- package/dist/settings/index.cjs +151 -150
- package/dist/shell/PanelPortal.js +1 -0
- package/dist/shell/PanelPortal.js.map +2 -2
- package/dist/shell/index.cjs +112 -110
- package/dist/shell/panel-windows.d.ts +2 -0
- package/dist/shell/panel-windows.js +7 -2
- package/dist/shell/panel-windows.js.map +2 -2
- package/dist/studio/index.cjs +28 -26
- package/dist/studio/index.cjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +55 -54
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +6 -5
- package/dist/ConnectedCallDock-WER7R222.cjs.map +0 -1
- package/dist/DocumentReviewCard-BPIAJJED.cjs.map +0 -1
- package/dist/FilesViewerDialog-67WK3TZC.cjs.map +0 -1
- package/dist/GridViewImpl-ZMJJWTOM.cjs.map +0 -1
- package/dist/WorkspaceTableView-J3C6VH4T.cjs.map +0 -1
- package/dist/ai-IM4A23YT.cjs.map +0 -1
- package/dist/chunk-557MJ4IH.cjs.map +0 -1
- package/dist/chunk-6UTKM5AB.cjs.map +0 -1
- package/dist/chunk-6WMMZLEV.cjs.map +0 -1
- package/dist/chunk-B3LZITVF.cjs.map +0 -1
- package/dist/chunk-BUVIBHFU.cjs.map +0 -1
- package/dist/chunk-CPR6EHG7.cjs.map +0 -1
- package/dist/chunk-HA66DHW6.cjs.map +0 -1
- package/dist/chunk-NJCK6V6U.cjs.map +0 -1
- package/dist/chunk-NLSWDP42.cjs.map +0 -1
- package/dist/chunk-PGJYD67F.cjs.map +0 -1
- package/dist/chunk-X36UR4A7.cjs.map +0 -1
- package/dist/chunk-YYPZOEED.cjs.map +0 -1
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var chunkAHDJXIUB_cjs = require('./chunk-AHDJXIUB.cjs');
|
|
6
|
-
var chunk3YZKDCWY_cjs = require('./chunk-3YZKDCWY.cjs');
|
|
4
|
+
var chunkQ6DQGGP4_cjs = require('./chunk-Q6DQGGP4.cjs');
|
|
7
5
|
var chunkDEXUL3T6_cjs = require('./chunk-DEXUL3T6.cjs');
|
|
8
|
-
var chunk6WMMZLEV_cjs = require('./chunk-6WMMZLEV.cjs');
|
|
9
6
|
var chunkYZSQ7F5K_cjs = require('./chunk-YZSQ7F5K.cjs');
|
|
10
7
|
var chunkFX3K6LNZ_cjs = require('./chunk-FX3K6LNZ.cjs');
|
|
8
|
+
var chunkAHDJXIUB_cjs = require('./chunk-AHDJXIUB.cjs');
|
|
11
9
|
var chunkPLIF5CUV_cjs = require('./chunk-PLIF5CUV.cjs');
|
|
12
10
|
var jsxRuntime = require('react/jsx-runtime');
|
|
13
11
|
var react = require('react');
|
|
14
12
|
var ui = require('@arbidocs/react/ui');
|
|
15
13
|
var lucideReact = require('lucide-react');
|
|
16
|
-
var reactDom = require('react-dom');
|
|
17
14
|
|
|
18
15
|
function ShellSidebar({
|
|
19
16
|
controller,
|
|
@@ -28,18 +25,18 @@ function ShellSidebar({
|
|
|
28
25
|
...rootProps
|
|
29
26
|
}) {
|
|
30
27
|
if (controller.layout.hidden) return null;
|
|
31
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
28
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkQ6DQGGP4_cjs.Sidebar.Root, { ...controller.rootProps, ...rootProps, children: [
|
|
32
29
|
controller.isDrawer && drawerLogo && /* @__PURE__ */ jsxRuntime.jsx(
|
|
33
|
-
|
|
30
|
+
chunkQ6DQGGP4_cjs.Sidebar.DrawerHeader,
|
|
34
31
|
{
|
|
35
32
|
logo: drawerLogo,
|
|
36
33
|
onClose: controller.closeDrawer,
|
|
37
34
|
"data-testid": drawerCloseTestId
|
|
38
35
|
}
|
|
39
36
|
),
|
|
40
|
-
header && /* @__PURE__ */ jsxRuntime.jsx(
|
|
41
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42
|
-
(tips || footer) && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
37
|
+
header && /* @__PURE__ */ jsxRuntime.jsx(chunkQ6DQGGP4_cjs.Sidebar.Header, { children: header }),
|
|
38
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQ6DQGGP4_cjs.Sidebar.Nav, { items, sections, className: navClassName }),
|
|
39
|
+
(tips || footer) && /* @__PURE__ */ jsxRuntime.jsxs(chunkQ6DQGGP4_cjs.Sidebar.Footer, { children: [
|
|
43
40
|
controller.tipsVisible && tips,
|
|
44
41
|
footer
|
|
45
42
|
] })
|
|
@@ -185,7 +182,7 @@ function SidebarRowAction({
|
|
|
185
182
|
"data-testid": testId,
|
|
186
183
|
children
|
|
187
184
|
}) {
|
|
188
|
-
const rowHovered = react.useContext(
|
|
185
|
+
const rowHovered = react.useContext(chunkQ6DQGGP4_cjs.SidebarRowHoverContext);
|
|
189
186
|
const tone = active ? "text-accent-foreground hover:bg-background/60" : pulse ? `${PULSE_STYLES[pulse]} hover:bg-muted` : ui.cn(
|
|
190
187
|
"text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
191
188
|
rowHovered ? "opacity-100" : "opacity-70"
|
|
@@ -567,7 +564,7 @@ function OfflinePill({
|
|
|
567
564
|
}
|
|
568
565
|
),
|
|
569
566
|
!compact && onReconnect && // Forced visible (context true): there is no row to hover.
|
|
570
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
567
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQ6DQGGP4_cjs.SidebarRowHoverContext.Provider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
571
568
|
SidebarRowAction,
|
|
572
569
|
{
|
|
573
570
|
label: labels?.reconnect ?? DEFAULT_OFFLINE_PILL_LABELS.reconnect,
|
|
@@ -877,439 +874,6 @@ function DockZone({ children, ...props }) {
|
|
|
877
874
|
isResizing && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 z-40 cursor-col-resize" })
|
|
878
875
|
] });
|
|
879
876
|
}
|
|
880
|
-
var btnClass = "h-7 w-7 p-0 text-muted-foreground hover:text-foreground";
|
|
881
|
-
function SwitcherButton({
|
|
882
|
-
label,
|
|
883
|
-
inPopout = false,
|
|
884
|
-
onClick,
|
|
885
|
-
testId,
|
|
886
|
-
children
|
|
887
|
-
}) {
|
|
888
|
-
const button = /* @__PURE__ */ jsxRuntime.jsx(
|
|
889
|
-
ui.Button,
|
|
890
|
-
{
|
|
891
|
-
variant: "ghost",
|
|
892
|
-
size: "sm",
|
|
893
|
-
className: btnClass,
|
|
894
|
-
"aria-label": label,
|
|
895
|
-
title: inPopout ? label : void 0,
|
|
896
|
-
onClick,
|
|
897
|
-
"data-testid": testId,
|
|
898
|
-
children
|
|
899
|
-
}
|
|
900
|
-
);
|
|
901
|
-
if (inPopout) return button;
|
|
902
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(ui.Tooltip, { children: [
|
|
903
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.TooltipTrigger, { asChild: true, children: button }),
|
|
904
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.TooltipContent, { children: label })
|
|
905
|
-
] });
|
|
906
|
-
}
|
|
907
|
-
var TABLET_AND_BELOW_QUERY = "(max-width: 1024px)";
|
|
908
|
-
function PanelModeSwitcher({
|
|
909
|
-
mode,
|
|
910
|
-
onModeChange,
|
|
911
|
-
onClose,
|
|
912
|
-
disablePopout,
|
|
913
|
-
closeTestId = "dialog-close-button"
|
|
914
|
-
}) {
|
|
915
|
-
const isPopout = mode === "popout";
|
|
916
|
-
const isSmallScreen = chunkFX3K6LNZ_cjs.useIsPhone();
|
|
917
|
-
const isTabletAndBelow = chunkFX3K6LNZ_cjs.useMediaQuery(TABLET_AND_BELOW_QUERY);
|
|
918
|
-
const closeButton = onClose && /* @__PURE__ */ jsxRuntime.jsx(
|
|
919
|
-
SwitcherButton,
|
|
920
|
-
{
|
|
921
|
-
label: "Close (Esc)",
|
|
922
|
-
onClick: (event) => {
|
|
923
|
-
event.stopPropagation();
|
|
924
|
-
onClose();
|
|
925
|
-
},
|
|
926
|
-
testId: closeTestId,
|
|
927
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "w-3.5 h-3.5" })
|
|
928
|
-
}
|
|
929
|
-
);
|
|
930
|
-
if (isSmallScreen) {
|
|
931
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-0.5 flex-shrink-0", children: closeButton });
|
|
932
|
-
}
|
|
933
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-0.5 flex-shrink-0", children: [
|
|
934
|
-
!disablePopout && !isTabletAndBelow && /* @__PURE__ */ jsxRuntime.jsx(
|
|
935
|
-
SwitcherButton,
|
|
936
|
-
{
|
|
937
|
-
label: isPopout ? "Pop back in" : "Open in new window",
|
|
938
|
-
inPopout: isPopout,
|
|
939
|
-
onClick: () => onModeChange(isPopout ? "docked" : "popout"),
|
|
940
|
-
testId: isPopout ? "pop-into-main-window-button" : "open-in-new-window-button",
|
|
941
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ExternalLink, { className: "w-3.5 h-3.5" })
|
|
942
|
-
}
|
|
943
|
-
),
|
|
944
|
-
!isPopout && mode !== "docked" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
945
|
-
SwitcherButton,
|
|
946
|
-
{
|
|
947
|
-
label: "Split screen",
|
|
948
|
-
onClick: () => onModeChange("docked"),
|
|
949
|
-
testId: "dock-panel-button",
|
|
950
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.PanelRight, { className: "w-3.5 h-3.5" })
|
|
951
|
-
}
|
|
952
|
-
),
|
|
953
|
-
!isPopout && mode !== "overlay" && !isTabletAndBelow && /* @__PURE__ */ jsxRuntime.jsx(
|
|
954
|
-
SwitcherButton,
|
|
955
|
-
{
|
|
956
|
-
label: "Float as overlay",
|
|
957
|
-
onClick: () => onModeChange("overlay"),
|
|
958
|
-
testId: "overlay-panel-button",
|
|
959
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.PictureInPicture2, { className: "w-3.5 h-3.5" })
|
|
960
|
-
}
|
|
961
|
-
),
|
|
962
|
-
!isPopout && closeButton
|
|
963
|
-
] });
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
// src/shell/panel-windows.ts
|
|
967
|
-
var PanelWindowManager = class {
|
|
968
|
-
constructor(defaultTitle = "Panel") {
|
|
969
|
-
this.defaultTitle = defaultTitle;
|
|
970
|
-
}
|
|
971
|
-
defaultTitle;
|
|
972
|
-
windows = /* @__PURE__ */ new Map();
|
|
973
|
-
createPopupWindow(panelId, onClose, title) {
|
|
974
|
-
const windowId = `panel-window-${panelId}`;
|
|
975
|
-
if (this.windows.has(windowId)) {
|
|
976
|
-
const existing = this.windows.get(windowId);
|
|
977
|
-
if (existing && !existing.window.closed) {
|
|
978
|
-
existing.window.focus();
|
|
979
|
-
return windowId;
|
|
980
|
-
} else {
|
|
981
|
-
this.windows.delete(windowId);
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
const currentWidth = window.outerWidth;
|
|
985
|
-
const currentHeight = window.outerHeight;
|
|
986
|
-
const currentLeft = window.screenX ?? window.screenLeft ?? 0;
|
|
987
|
-
const currentTop = window.screenY ?? window.screenTop ?? 0;
|
|
988
|
-
const halfWidth = Math.floor(currentWidth / 2);
|
|
989
|
-
const popupWidth = halfWidth;
|
|
990
|
-
const popupHeight = currentHeight;
|
|
991
|
-
const left = currentLeft + halfWidth;
|
|
992
|
-
const top = currentTop;
|
|
993
|
-
const popup = window.open(
|
|
994
|
-
"",
|
|
995
|
-
windowId,
|
|
996
|
-
`width=${popupWidth},height=${popupHeight},left=${left},top=${top},scrollbars=yes,resizable=yes,menubar=no,toolbar=no,location=no,status=no`
|
|
997
|
-
);
|
|
998
|
-
if (!popup) {
|
|
999
|
-
console.error("Failed to create popup window - popup blocked?");
|
|
1000
|
-
return null;
|
|
1001
|
-
}
|
|
1002
|
-
const mainDocument = document;
|
|
1003
|
-
const stylesheets = Array.from(
|
|
1004
|
-
mainDocument.head.querySelectorAll('link[rel="stylesheet"], style')
|
|
1005
|
-
).map((el) => el.outerHTML).join("\n");
|
|
1006
|
-
popup.document.write(`
|
|
1007
|
-
<!DOCTYPE html>
|
|
1008
|
-
<html lang="en">
|
|
1009
|
-
<head>
|
|
1010
|
-
<meta charset="UTF-8">
|
|
1011
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1012
|
-
<title></title>
|
|
1013
|
-
<!-- about:blank has no base, so copied @font-face / asset URLs (e.g.
|
|
1014
|
-
/assets/font.woff2) would resolve against nothing and render as
|
|
1015
|
-
tofu squares. Anchor relative URLs to the app origin. -->
|
|
1016
|
-
<base href="${window.location.origin}/">
|
|
1017
|
-
${stylesheets}
|
|
1018
|
-
<style>
|
|
1019
|
-
body {
|
|
1020
|
-
margin: 0;
|
|
1021
|
-
padding: 0;
|
|
1022
|
-
font-family: system-ui, -apple-system, sans-serif;
|
|
1023
|
-
}
|
|
1024
|
-
#panel-root {
|
|
1025
|
-
width: 100%;
|
|
1026
|
-
height: 100vh;
|
|
1027
|
-
overflow: hidden;
|
|
1028
|
-
}
|
|
1029
|
-
* {
|
|
1030
|
-
box-sizing: border-box;
|
|
1031
|
-
}
|
|
1032
|
-
</style>
|
|
1033
|
-
</head>
|
|
1034
|
-
<body>
|
|
1035
|
-
<div id="panel-root"></div>
|
|
1036
|
-
</body>
|
|
1037
|
-
</html>
|
|
1038
|
-
`);
|
|
1039
|
-
popup.document.close();
|
|
1040
|
-
popup.document.title = title || this.defaultTitle;
|
|
1041
|
-
try {
|
|
1042
|
-
mainDocument.fonts.forEach((font) => {
|
|
1043
|
-
try {
|
|
1044
|
-
popup.document.fonts.add(font);
|
|
1045
|
-
} catch {
|
|
1046
|
-
}
|
|
1047
|
-
});
|
|
1048
|
-
} catch {
|
|
1049
|
-
}
|
|
1050
|
-
const rootElement = popup.document.getElementById("panel-root");
|
|
1051
|
-
const popupWindow = {
|
|
1052
|
-
id: windowId,
|
|
1053
|
-
window: popup,
|
|
1054
|
-
panelId,
|
|
1055
|
-
rootElement,
|
|
1056
|
-
onClose
|
|
1057
|
-
};
|
|
1058
|
-
this.windows.set(windowId, popupWindow);
|
|
1059
|
-
const closeCheckInterval = setInterval(() => {
|
|
1060
|
-
if (popup.closed) {
|
|
1061
|
-
clearInterval(closeCheckInterval);
|
|
1062
|
-
const entry = this.windows.get(windowId);
|
|
1063
|
-
this.windows.delete(windowId);
|
|
1064
|
-
entry?.onClose?.();
|
|
1065
|
-
}
|
|
1066
|
-
}, 200);
|
|
1067
|
-
return windowId;
|
|
1068
|
-
}
|
|
1069
|
-
getWindow(windowId) {
|
|
1070
|
-
const popup = this.windows.get(windowId);
|
|
1071
|
-
return popup && !popup.window.closed ? popup.window : null;
|
|
1072
|
-
}
|
|
1073
|
-
getRootElement(windowId) {
|
|
1074
|
-
const popup = this.windows.get(windowId);
|
|
1075
|
-
return popup && !popup.window.closed ? popup.rootElement : null;
|
|
1076
|
-
}
|
|
1077
|
-
/** Focus the popup window for a given panel ID. Returns true if focused. */
|
|
1078
|
-
focusPanelWindow(panelId) {
|
|
1079
|
-
const windowId = `panel-window-panel-${panelId}`;
|
|
1080
|
-
const popup = this.windows.get(windowId);
|
|
1081
|
-
if (popup && !popup.window.closed) {
|
|
1082
|
-
popup.window.focus();
|
|
1083
|
-
return true;
|
|
1084
|
-
}
|
|
1085
|
-
return false;
|
|
1086
|
-
}
|
|
1087
|
-
/** Remove the onClose callback so it won't fire when the window is closed programmatically. */
|
|
1088
|
-
clearOnClose(windowId) {
|
|
1089
|
-
const popup = this.windows.get(windowId);
|
|
1090
|
-
if (popup) {
|
|
1091
|
-
popup.onClose = void 0;
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
closeWindow(windowId) {
|
|
1095
|
-
const popup = this.windows.get(windowId);
|
|
1096
|
-
if (popup && !popup.window.closed) {
|
|
1097
|
-
popup.window.close();
|
|
1098
|
-
}
|
|
1099
|
-
this.windows.delete(windowId);
|
|
1100
|
-
}
|
|
1101
|
-
closeAllWindows() {
|
|
1102
|
-
for (const [, popup] of this.windows) {
|
|
1103
|
-
if (!popup.window.closed) {
|
|
1104
|
-
popup.window.close();
|
|
1105
|
-
}
|
|
1106
|
-
}
|
|
1107
|
-
this.windows.clear();
|
|
1108
|
-
}
|
|
1109
|
-
};
|
|
1110
|
-
function createPanelWindowManager(options = {}) {
|
|
1111
|
-
return new PanelWindowManager(options.defaultTitle);
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
// src/shell/panel-host.ts
|
|
1115
|
-
var defaultWindows = createPanelWindowManager();
|
|
1116
|
-
var titleOnly = (title) => title;
|
|
1117
|
-
function usePanelHostSupport() {
|
|
1118
|
-
const { panels } = chunk3YZKDCWY_cjs.useHost();
|
|
1119
|
-
return {
|
|
1120
|
-
windows: panels?.windows ?? defaultWindows,
|
|
1121
|
-
popoutTitle: panels?.popoutTitle ?? titleOnly
|
|
1122
|
-
};
|
|
1123
|
-
}
|
|
1124
|
-
var OVERLAY_DEFAULT_PX = 544;
|
|
1125
|
-
var OVERLAY_MIN_PX = 360;
|
|
1126
|
-
function OverlaySheet({
|
|
1127
|
-
panelId,
|
|
1128
|
-
isExiting,
|
|
1129
|
-
onClose,
|
|
1130
|
-
defaultWidth,
|
|
1131
|
-
scoped,
|
|
1132
|
-
children
|
|
1133
|
-
}) {
|
|
1134
|
-
const [width, setWidth] = react.useState(defaultWidth ?? OVERLAY_DEFAULT_PX);
|
|
1135
|
-
const [isResizing, setIsResizing] = react.useState(false);
|
|
1136
|
-
const [dragWidth, setDragWidth] = react.useState(null);
|
|
1137
|
-
const dragWidthRef = react.useRef(null);
|
|
1138
|
-
const [hasEntered, setHasEntered] = react.useState(false);
|
|
1139
|
-
const handleResizeStart = react.useCallback((e) => {
|
|
1140
|
-
e.preventDefault();
|
|
1141
|
-
setHasEntered(true);
|
|
1142
|
-
setIsResizing(true);
|
|
1143
|
-
setDragWidth(null);
|
|
1144
|
-
dragWidthRef.current = null;
|
|
1145
|
-
}, []);
|
|
1146
|
-
react.useEffect(() => {
|
|
1147
|
-
if (!isResizing) return;
|
|
1148
|
-
const handleMouseMove = (e) => {
|
|
1149
|
-
const max = window.innerWidth * 0.92;
|
|
1150
|
-
const next = Math.min(Math.max(window.innerWidth - e.clientX, OVERLAY_MIN_PX), max);
|
|
1151
|
-
dragWidthRef.current = next;
|
|
1152
|
-
setDragWidth(next);
|
|
1153
|
-
};
|
|
1154
|
-
const handleMouseUp = () => {
|
|
1155
|
-
if (dragWidthRef.current !== null) setWidth(dragWidthRef.current);
|
|
1156
|
-
setIsResizing(false);
|
|
1157
|
-
setDragWidth(null);
|
|
1158
|
-
dragWidthRef.current = null;
|
|
1159
|
-
};
|
|
1160
|
-
document.addEventListener("mousemove", handleMouseMove);
|
|
1161
|
-
document.addEventListener("mouseup", handleMouseUp);
|
|
1162
|
-
document.body.style.cursor = "col-resize";
|
|
1163
|
-
document.body.style.userSelect = "none";
|
|
1164
|
-
return () => {
|
|
1165
|
-
document.removeEventListener("mousemove", handleMouseMove);
|
|
1166
|
-
document.removeEventListener("mouseup", handleMouseUp);
|
|
1167
|
-
document.body.style.cursor = "";
|
|
1168
|
-
document.body.style.userSelect = "";
|
|
1169
|
-
};
|
|
1170
|
-
}, [isResizing]);
|
|
1171
|
-
return (
|
|
1172
|
-
// Scoped: absolute within the layout's overlay zone (below the topbar).
|
|
1173
|
-
// Unscoped fallback: fixed over the whole viewport, as before.
|
|
1174
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1175
|
-
"div",
|
|
1176
|
-
{
|
|
1177
|
-
className: scoped ? "absolute inset-0 z-40" : "fixed inset-0 z-50",
|
|
1178
|
-
"data-testid": `${panelId}-overlay`,
|
|
1179
|
-
children: [
|
|
1180
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1181
|
-
"div",
|
|
1182
|
-
{
|
|
1183
|
-
className: `absolute inset-0 bg-black/40 dark:bg-black/20 duration-200 ${// fill-mode-forwards holds the exit end-state — without it the
|
|
1184
|
-
// element snaps back fully visible for the frames between the
|
|
1185
|
-
// animation finishing and React unmounting it (a flicker).
|
|
1186
|
-
isExiting ? "animate-out fade-out fill-mode-forwards" : "animate-in fade-in"}`,
|
|
1187
|
-
onClick: onClose,
|
|
1188
|
-
"aria-hidden": "true",
|
|
1189
|
-
"data-testid": `${panelId}-overlay-backdrop`
|
|
1190
|
-
}
|
|
1191
|
-
),
|
|
1192
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1193
|
-
"div",
|
|
1194
|
-
{
|
|
1195
|
-
style: { width },
|
|
1196
|
-
onAnimationEnd: () => !isExiting && setHasEntered(true),
|
|
1197
|
-
className: `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 ${isExiting ? "animate-out slide-out-to-right fill-mode-forwards" : (
|
|
1198
|
-
// Suppress the slide transform once entered so it doesn't replay.
|
|
1199
|
-
hasEntered ? "" : "animate-in slide-in-from-right"
|
|
1200
|
-
)}`,
|
|
1201
|
-
children: [
|
|
1202
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1203
|
-
"div",
|
|
1204
|
-
{
|
|
1205
|
-
className: "absolute left-0 top-0 bottom-0 z-10 w-1.5 -translate-x-1/2 cursor-col-resize hover:bg-primary/40",
|
|
1206
|
-
onMouseDown: handleResizeStart,
|
|
1207
|
-
"data-testid": `${panelId}-overlay-resize-handle`
|
|
1208
|
-
}
|
|
1209
|
-
),
|
|
1210
|
-
children
|
|
1211
|
-
]
|
|
1212
|
-
}
|
|
1213
|
-
),
|
|
1214
|
-
isResizing && dragWidth !== null && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1215
|
-
"div",
|
|
1216
|
-
{
|
|
1217
|
-
className: "absolute top-0 bottom-0 z-[60] w-0.5 bg-primary pointer-events-none",
|
|
1218
|
-
style: { right: dragWidth }
|
|
1219
|
-
}
|
|
1220
|
-
),
|
|
1221
|
-
isResizing && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 z-[55] cursor-col-resize" })
|
|
1222
|
-
]
|
|
1223
|
-
}
|
|
1224
|
-
)
|
|
1225
|
-
);
|
|
1226
|
-
}
|
|
1227
|
-
function PanelPortal({
|
|
1228
|
-
panelId,
|
|
1229
|
-
mode,
|
|
1230
|
-
isOpen,
|
|
1231
|
-
isExiting,
|
|
1232
|
-
onPopupClosed,
|
|
1233
|
-
onClose,
|
|
1234
|
-
popoutTitle,
|
|
1235
|
-
defaultWidth,
|
|
1236
|
-
children
|
|
1237
|
-
}) {
|
|
1238
|
-
const { windows: windowManager } = usePanelHostSupport();
|
|
1239
|
-
const [popupRoot, setPopupRoot] = react.useState(null);
|
|
1240
|
-
const popupWindowIdRef = react.useRef(null);
|
|
1241
|
-
react.useEffect(() => {
|
|
1242
|
-
if (!isOpen || mode !== "popout") {
|
|
1243
|
-
if (popupWindowIdRef.current) {
|
|
1244
|
-
windowManager.clearOnClose(popupWindowIdRef.current);
|
|
1245
|
-
windowManager.closeWindow(popupWindowIdRef.current);
|
|
1246
|
-
popupWindowIdRef.current = null;
|
|
1247
|
-
setPopupRoot(null);
|
|
1248
|
-
}
|
|
1249
|
-
return;
|
|
1250
|
-
}
|
|
1251
|
-
if (popupWindowIdRef.current) return;
|
|
1252
|
-
const windowId = windowManager.createPopupWindow(
|
|
1253
|
-
`panel-${panelId}`,
|
|
1254
|
-
() => {
|
|
1255
|
-
popupWindowIdRef.current = null;
|
|
1256
|
-
setPopupRoot(null);
|
|
1257
|
-
onPopupClosed?.();
|
|
1258
|
-
},
|
|
1259
|
-
popoutTitle || panelId
|
|
1260
|
-
);
|
|
1261
|
-
if (windowId) {
|
|
1262
|
-
const rootElement = windowManager.getRootElement(windowId);
|
|
1263
|
-
if (rootElement) {
|
|
1264
|
-
popupWindowIdRef.current = windowId;
|
|
1265
|
-
setPopupRoot(rootElement);
|
|
1266
|
-
windowManager.getWindow(windowId)?.focus();
|
|
1267
|
-
}
|
|
1268
|
-
}
|
|
1269
|
-
}, [isOpen, mode, panelId, popoutTitle, onPopupClosed, windowManager]);
|
|
1270
|
-
react.useEffect(() => {
|
|
1271
|
-
return () => {
|
|
1272
|
-
if (popupWindowIdRef.current) {
|
|
1273
|
-
windowManager.closeWindow(popupWindowIdRef.current);
|
|
1274
|
-
}
|
|
1275
|
-
};
|
|
1276
|
-
}, [windowManager]);
|
|
1277
|
-
if (!isOpen && !isExiting) return null;
|
|
1278
|
-
if (mode === "popout" && popupRoot) {
|
|
1279
|
-
return reactDom.createPortal(
|
|
1280
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.PortalContainerProvider, { container: popupRoot, children }),
|
|
1281
|
-
popupRoot
|
|
1282
|
-
);
|
|
1283
|
-
}
|
|
1284
|
-
if (mode === "overlay") {
|
|
1285
|
-
const overlayZone = document.getElementById(chunk6WMMZLEV_cjs.DEFAULT_OVERLAY_ZONE_ID);
|
|
1286
|
-
return reactDom.createPortal(
|
|
1287
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1288
|
-
OverlaySheet,
|
|
1289
|
-
{
|
|
1290
|
-
panelId,
|
|
1291
|
-
isExiting,
|
|
1292
|
-
onClose,
|
|
1293
|
-
defaultWidth,
|
|
1294
|
-
scoped: overlayZone !== null,
|
|
1295
|
-
children
|
|
1296
|
-
}
|
|
1297
|
-
),
|
|
1298
|
-
overlayZone ?? document.body
|
|
1299
|
-
);
|
|
1300
|
-
}
|
|
1301
|
-
if (mode === "main") {
|
|
1302
|
-
const mainZone = document.getElementById("main-zone");
|
|
1303
|
-
if (mainZone) {
|
|
1304
|
-
return reactDom.createPortal(children, mainZone);
|
|
1305
|
-
}
|
|
1306
|
-
}
|
|
1307
|
-
const dockZone = document.getElementById("dock-zone");
|
|
1308
|
-
if (dockZone) {
|
|
1309
|
-
return reactDom.createPortal(children, dockZone);
|
|
1310
|
-
}
|
|
1311
|
-
return null;
|
|
1312
|
-
}
|
|
1313
877
|
|
|
1314
878
|
exports.ActionCluster = ActionCluster;
|
|
1315
879
|
exports.AskField = AskField;
|
|
@@ -1321,19 +885,15 @@ exports.DEFAULT_REMOTE_CONTROL_PILL_LABELS = DEFAULT_REMOTE_CONTROL_PILL_LABELS;
|
|
|
1321
885
|
exports.DEFAULT_TIP_CARD_LABELS = DEFAULT_TIP_CARD_LABELS;
|
|
1322
886
|
exports.DockZone = DockZone;
|
|
1323
887
|
exports.OfflinePill = OfflinePill;
|
|
1324
|
-
exports.PanelModeSwitcher = PanelModeSwitcher;
|
|
1325
|
-
exports.PanelPortal = PanelPortal;
|
|
1326
888
|
exports.RemoteControlPill = RemoteControlPill;
|
|
1327
889
|
exports.ShellSidebar = ShellSidebar;
|
|
1328
890
|
exports.SidebarRowAction = SidebarRowAction;
|
|
1329
891
|
exports.StatusBadge = StatusBadge;
|
|
1330
892
|
exports.StatusRow = StatusRow;
|
|
1331
893
|
exports.TipCard = TipCard;
|
|
1332
|
-
exports.createPanelWindowManager = createPanelWindowManager;
|
|
1333
894
|
exports.resolveSidebarLayout = resolveSidebarLayout;
|
|
1334
895
|
exports.useCloseOnEscape = useCloseOnEscape;
|
|
1335
|
-
exports.usePanelHostSupport = usePanelHostSupport;
|
|
1336
896
|
exports.useSidebarController = useSidebarController;
|
|
1337
897
|
exports.useSidebarSettle = useSidebarSettle;
|
|
1338
|
-
//# sourceMappingURL=chunk-
|
|
1339
|
-
//# sourceMappingURL=chunk-
|
|
898
|
+
//# sourceMappingURL=chunk-EHP6OH5D.cjs.map
|
|
899
|
+
//# sourceMappingURL=chunk-EHP6OH5D.cjs.map
|