@arbidocs/blocks 0.5.165 → 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-LHIAK4GV.cjs → ConnectedCallDock-PFMK5OGR.cjs} +20 -20
- package/dist/{ConnectedCallDock-LHIAK4GV.cjs.map → ConnectedCallDock-PFMK5OGR.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-LA57WUKX.cjs → ConnectedCallRoom-VHU2XWLY.cjs} +19 -19
- package/dist/{ConnectedCallRoom-LA57WUKX.cjs.map → ConnectedCallRoom-VHU2XWLY.cjs.map} +1 -1
- package/dist/ConnectedMailInviteCard-S2X4XN3X.cjs +22 -0
- package/dist/{ConnectedMailInviteCard-LV2VARX3.cjs.map → ConnectedMailInviteCard-S2X4XN3X.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-SWX5DTYX.cjs → ConnectedNativeDocxComparison-AOVH47RY.cjs} +20 -20
- package/dist/{ConnectedNativeDocxComparison-SWX5DTYX.cjs.map → ConnectedNativeDocxComparison-AOVH47RY.cjs.map} +1 -1
- package/dist/{ConnectedPresentation-7ZBHQBIS.cjs → ConnectedPresentation-PYTZBAOR.cjs} +23 -23
- package/dist/{ConnectedPresentation-7ZBHQBIS.cjs.map → ConnectedPresentation-PYTZBAOR.cjs.map} +1 -1
- package/dist/{ConnectedProductionSetDialog-4N7R7SFZ.cjs → ConnectedProductionSetDialog-6ZGBUMOT.cjs} +10 -9
- package/dist/ConnectedProductionSetDialog-6ZGBUMOT.cjs.map +1 -0
- package/dist/{ConnectedSlidesTab-6XHUP32F.cjs → ConnectedSlidesTab-GT5TQPWW.cjs} +18 -18
- package/dist/{ConnectedSlidesTab-6XHUP32F.cjs.map → ConnectedSlidesTab-GT5TQPWW.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-SROLNCGC.cjs → ConnectedStreamedWordArtifact-2WBJZI2K.cjs} +20 -20
- package/dist/{ConnectedStreamedWordArtifact-SROLNCGC.cjs.map → ConnectedStreamedWordArtifact-2WBJZI2K.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-43SDO57A.cjs → DocumentReviewCard-3E44O3F6.cjs} +26 -26
- package/dist/{DocumentReviewCard-43SDO57A.cjs.map → DocumentReviewCard-3E44O3F6.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-2MJHM32X.cjs → FilesViewerDialog-JCW2SMBU.cjs} +53 -51
- package/dist/FilesViewerDialog-JCW2SMBU.cjs.map +1 -0
- package/dist/{WorkspaceTableView-EWLOVD6P.cjs → WorkspaceTableView-ZKLEEPCF.cjs} +11 -11
- package/dist/{WorkspaceTableView-EWLOVD6P.cjs.map → WorkspaceTableView-ZKLEEPCF.cjs.map} +1 -1
- package/dist/agents/index.cjs +254 -254
- 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-HME7CNDE.cjs → ai-VXPILCGE.cjs} +27 -28
- package/dist/ai-VXPILCGE.cjs.map +1 -0
- package/dist/auth/index.cjs +13 -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 +51 -51
- package/dist/chat/generatedDocuments.d.ts +2 -0
- package/dist/chat/generatedDocuments.js +6 -3
- package/dist/chat/generatedDocuments.js.map +2 -2
- package/dist/chat/index.cjs +120 -120
- package/dist/chat/rehype-doc-entity-pills.js +5 -3
- package/dist/chat/rehype-doc-entity-pills.js.map +2 -2
- package/dist/{chunk-AIKPZJNI.cjs → chunk-2KGU5G6Z.cjs} +243 -11
- package/dist/chunk-2KGU5G6Z.cjs.map +1 -0
- package/dist/{chunk-CKJTXS63.cjs → chunk-3K7V4LOF.cjs} +44 -35
- package/dist/chunk-3K7V4LOF.cjs.map +1 -0
- package/dist/{chunk-HBO567HU.cjs → chunk-4TJCJ74G.cjs} +70 -70
- package/dist/{chunk-HBO567HU.cjs.map → chunk-4TJCJ74G.cjs.map} +1 -1
- package/dist/{chunk-6XKQAQWF.cjs → chunk-5K6XHSAM.cjs} +4 -4
- package/dist/{chunk-6XKQAQWF.cjs.map → chunk-5K6XHSAM.cjs.map} +1 -1
- package/dist/{chunk-QNK5SK4Q.cjs → chunk-5PXK77RO.cjs} +4 -4
- package/dist/{chunk-QNK5SK4Q.cjs.map → chunk-5PXK77RO.cjs.map} +1 -1
- package/dist/{chunk-2QLO3HBN.cjs → chunk-6CNK2C34.cjs} +6 -6
- package/dist/{chunk-2QLO3HBN.cjs.map → chunk-6CNK2C34.cjs.map} +1 -1
- package/dist/{chunk-GEQW7XQA.cjs → chunk-6INJQAGS.cjs} +69 -66
- package/dist/chunk-6INJQAGS.cjs.map +1 -0
- package/dist/{chunk-LLVE5TST.cjs → chunk-6N7QT2DH.cjs} +4 -4
- package/dist/{chunk-LLVE5TST.cjs.map → chunk-6N7QT2DH.cjs.map} +1 -1
- package/dist/{chunk-63FEMB6U.cjs → chunk-6PKP7UT7.cjs} +57 -27
- package/dist/chunk-6PKP7UT7.cjs.map +1 -0
- package/dist/{chunk-DYIZ7W4P.cjs → chunk-6ZJBUMNK.cjs} +6 -6
- package/dist/{chunk-DYIZ7W4P.cjs.map → chunk-6ZJBUMNK.cjs.map} +1 -1
- package/dist/{chunk-QDZDHP23.cjs → chunk-7D3OMWIZ.cjs} +4 -4
- package/dist/{chunk-QDZDHP23.cjs.map → chunk-7D3OMWIZ.cjs.map} +1 -1
- package/dist/{chunk-SH7W4WVI.cjs → chunk-7FWP7W34.cjs} +9 -6
- package/dist/chunk-7FWP7W34.cjs.map +1 -0
- package/dist/{chunk-LOSCXAAF.cjs → chunk-7NVDGD63.cjs} +34 -4
- package/dist/chunk-7NVDGD63.cjs.map +1 -0
- package/dist/{chunk-FQXZZXS2.cjs → chunk-AHUEBRLX.cjs} +4 -4
- package/dist/{chunk-FQXZZXS2.cjs.map → chunk-AHUEBRLX.cjs.map} +1 -1
- package/dist/{chunk-XKQVAGVR.cjs → chunk-AKNZZGJ3.cjs} +50 -41
- package/dist/chunk-AKNZZGJ3.cjs.map +1 -0
- package/dist/{chunk-UYTFPMEA.cjs → chunk-B5AOYT4U.cjs} +8 -8
- package/dist/{chunk-UYTFPMEA.cjs.map → chunk-B5AOYT4U.cjs.map} +1 -1
- package/dist/{chunk-WKIESVWJ.cjs → chunk-BJRQHR7R.cjs} +14 -14
- package/dist/{chunk-WKIESVWJ.cjs.map → chunk-BJRQHR7R.cjs.map} +1 -1
- package/dist/{chunk-2P7VH2SK.cjs → chunk-C25KF2TM.cjs} +4 -4
- package/dist/{chunk-2P7VH2SK.cjs.map → chunk-C25KF2TM.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-ZL6VZTG6.cjs → chunk-DOBSQC2P.cjs} +4 -4
- package/dist/{chunk-ZL6VZTG6.cjs.map → chunk-DOBSQC2P.cjs.map} +1 -1
- package/dist/{chunk-AZO4F3ME.cjs → chunk-E43TT6FH.cjs} +59 -59
- package/dist/{chunk-AZO4F3ME.cjs.map → chunk-E43TT6FH.cjs.map} +1 -1
- package/dist/{chunk-T5XLL4L2.cjs → chunk-EADZEEKI.cjs} +115 -93
- package/dist/chunk-EADZEEKI.cjs.map +1 -0
- package/dist/{chunk-5NWTA4Y4.cjs → chunk-EG3DPKXM.cjs} +5 -5
- package/dist/{chunk-5NWTA4Y4.cjs.map → chunk-EG3DPKXM.cjs.map} +1 -1
- package/dist/{chunk-WD5KQ2VC.cjs → chunk-EXUCQ6KA.cjs} +28 -28
- package/dist/{chunk-WD5KQ2VC.cjs.map → chunk-EXUCQ6KA.cjs.map} +1 -1
- package/dist/{chunk-KL7R2IBY.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-DWN5AUMH.cjs → chunk-GD5OYIOV.cjs} +6 -6
- package/dist/{chunk-DWN5AUMH.cjs.map → chunk-GD5OYIOV.cjs.map} +1 -1
- package/dist/{chunk-CYI4OYZD.cjs → chunk-GXIXNSBV.cjs} +1108 -1060
- package/dist/chunk-GXIXNSBV.cjs.map +1 -0
- package/dist/{chunk-MB2Y2ZGM.cjs → chunk-H2BUDSKT.cjs} +6 -6
- package/dist/{chunk-MB2Y2ZGM.cjs.map → chunk-H2BUDSKT.cjs.map} +1 -1
- package/dist/{chunk-NGM4HIPP.cjs → chunk-H3VVUNEX.cjs} +21 -21
- package/dist/{chunk-NGM4HIPP.cjs.map → chunk-H3VVUNEX.cjs.map} +1 -1
- package/dist/{chunk-46LX6EQT.cjs → chunk-HN56WWBR.cjs} +2 -2
- package/dist/{chunk-46LX6EQT.cjs.map → chunk-HN56WWBR.cjs.map} +1 -1
- package/dist/{chunk-U4KUTO6O.cjs → chunk-IJ4JKHEC.cjs} +21 -21
- package/dist/{chunk-U4KUTO6O.cjs.map → chunk-IJ4JKHEC.cjs.map} +1 -1
- package/dist/{chunk-KZFE65SA.cjs → chunk-IPSR2PUU.cjs} +15 -15
- package/dist/{chunk-KZFE65SA.cjs.map → chunk-IPSR2PUU.cjs.map} +1 -1
- package/dist/chunk-IRUQZI6P.cjs +17 -0
- package/dist/chunk-IRUQZI6P.cjs.map +1 -0
- package/dist/{chunk-C2VVBU7K.cjs → chunk-IXCWZ4HC.cjs} +6 -6
- package/dist/{chunk-C2VVBU7K.cjs.map → chunk-IXCWZ4HC.cjs.map} +1 -1
- package/dist/{chunk-5HPUGSTJ.cjs → chunk-J37DOAGN.cjs} +7 -7
- package/dist/{chunk-5HPUGSTJ.cjs.map → chunk-J37DOAGN.cjs.map} +1 -1
- package/dist/{chunk-DLGYR4JL.cjs → chunk-J5CBCUQE.cjs} +8 -8
- package/dist/{chunk-DLGYR4JL.cjs.map → chunk-J5CBCUQE.cjs.map} +1 -1
- package/dist/{chunk-T26UYA6Q.cjs → chunk-JTBWI74K.cjs} +7 -7
- package/dist/{chunk-T26UYA6Q.cjs.map → chunk-JTBWI74K.cjs.map} +1 -1
- package/dist/{chunk-VHD5DZW4.cjs → chunk-KBRDUFXG.cjs} +15 -13
- package/dist/chunk-KBRDUFXG.cjs.map +1 -0
- package/dist/{chunk-Z22ORBA2.cjs → chunk-KTYJNF7R.cjs} +4 -4
- package/dist/{chunk-Z22ORBA2.cjs.map → chunk-KTYJNF7R.cjs.map} +1 -1
- package/dist/{chunk-PIWXX2M4.cjs → chunk-LG2IKM2G.cjs} +10 -10
- package/dist/{chunk-PIWXX2M4.cjs.map → chunk-LG2IKM2G.cjs.map} +1 -1
- package/dist/{chunk-RI367OOL.cjs → chunk-LJTHFTQQ.cjs} +5 -5
- package/dist/{chunk-RI367OOL.cjs.map → chunk-LJTHFTQQ.cjs.map} +1 -1
- package/dist/{chunk-KJ65QZJI.cjs → chunk-M3HYFFCK.cjs} +12 -12
- package/dist/{chunk-KJ65QZJI.cjs.map → chunk-M3HYFFCK.cjs.map} +1 -1
- package/dist/{chunk-7HHIVC23.cjs → chunk-NFVYHS3X.cjs} +65 -36
- package/dist/chunk-NFVYHS3X.cjs.map +1 -0
- package/dist/{chunk-Z2XZ2D4N.cjs → chunk-O2NHBB3D.cjs} +8 -5
- package/dist/chunk-O2NHBB3D.cjs.map +1 -0
- package/dist/{chunk-CULUTYOD.cjs → chunk-OO452QD5.cjs} +4 -4
- package/dist/{chunk-CULUTYOD.cjs.map → chunk-OO452QD5.cjs.map} +1 -1
- package/dist/{chunk-7XR6CPCU.cjs → chunk-PIJPM5RA.cjs} +25 -3
- package/dist/chunk-PIJPM5RA.cjs.map +1 -0
- package/dist/{chunk-4RR7ZZPD.cjs → chunk-PJ5OQ5VB.cjs} +5 -5
- package/dist/{chunk-4RR7ZZPD.cjs.map → chunk-PJ5OQ5VB.cjs.map} +1 -1
- package/dist/chunk-PNZVCHFS.cjs +516 -0
- package/dist/chunk-PNZVCHFS.cjs.map +1 -0
- package/dist/{chunk-SLQPSKYU.cjs → chunk-PP3KYFSS.cjs} +13 -8
- package/dist/chunk-PP3KYFSS.cjs.map +1 -0
- package/dist/{chunk-P7VUIW24.cjs → chunk-QDXZVJWN.cjs} +23 -9
- package/dist/chunk-QDXZVJWN.cjs.map +1 -0
- package/dist/{chunk-OM5J23JR.cjs → chunk-QGCNYDHZ.cjs} +24 -24
- package/dist/{chunk-OM5J23JR.cjs.map → chunk-QGCNYDHZ.cjs.map} +1 -1
- package/dist/{chunk-HJDMKDAE.cjs → chunk-SKQ5OMMF.cjs} +14 -14
- package/dist/{chunk-HJDMKDAE.cjs.map → chunk-SKQ5OMMF.cjs.map} +1 -1
- package/dist/{chunk-5GBM7BQB.cjs → chunk-SOT7NPIB.cjs} +4 -4
- package/dist/{chunk-5GBM7BQB.cjs.map → chunk-SOT7NPIB.cjs.map} +1 -1
- package/dist/{chunk-3GQQUR27.cjs → chunk-TNBNDY2J.cjs} +4 -4
- package/dist/{chunk-3GQQUR27.cjs.map → chunk-TNBNDY2J.cjs.map} +1 -1
- package/dist/{chunk-7WENPOCP.cjs → chunk-TPYOXG5S.cjs} +7 -7
- package/dist/{chunk-7WENPOCP.cjs.map → chunk-TPYOXG5S.cjs.map} +1 -1
- package/dist/{chunk-V2IV2E2B.cjs → chunk-TU46WKTN.cjs} +4 -4
- package/dist/{chunk-V2IV2E2B.cjs.map → chunk-TU46WKTN.cjs.map} +1 -1
- package/dist/{chunk-BAZZTZW5.cjs → chunk-U33XOC7T.cjs} +8 -8
- package/dist/{chunk-BAZZTZW5.cjs.map → chunk-U33XOC7T.cjs.map} +1 -1
- package/dist/{chunk-PDDC5JOE.cjs → chunk-UNSZLNA4.cjs} +12 -12
- package/dist/{chunk-PDDC5JOE.cjs.map → chunk-UNSZLNA4.cjs.map} +1 -1
- package/dist/{chunk-XMSK3LQX.cjs → chunk-UXGIMOIN.cjs} +4 -4
- package/dist/{chunk-XMSK3LQX.cjs.map → chunk-UXGIMOIN.cjs.map} +1 -1
- package/dist/{chunk-NTAGDFWU.cjs → chunk-VHXGBVT6.cjs} +4 -4
- package/dist/{chunk-NTAGDFWU.cjs.map → chunk-VHXGBVT6.cjs.map} +1 -1
- package/dist/{chunk-EKFA2OS3.cjs → chunk-VJNJ4G6Y.cjs} +4 -4
- package/dist/{chunk-EKFA2OS3.cjs.map → chunk-VJNJ4G6Y.cjs.map} +1 -1
- package/dist/{chunk-JARBYN6Z.cjs → chunk-VNUBBRJM.cjs} +8 -6
- package/dist/chunk-VNUBBRJM.cjs.map +1 -0
- package/dist/{chunk-GB5MN5FC.cjs → chunk-VWSOHZK2.cjs} +4 -4
- package/dist/{chunk-GB5MN5FC.cjs.map → chunk-VWSOHZK2.cjs.map} +1 -1
- package/dist/{chunk-JHDCDEXY.cjs → chunk-W5JTACMK.cjs} +8 -5
- package/dist/chunk-W5JTACMK.cjs.map +1 -0
- package/dist/{chunk-YGCS53TK.cjs → chunk-W6PTT27N.cjs} +27 -27
- package/dist/{chunk-YGCS53TK.cjs.map → chunk-W6PTT27N.cjs.map} +1 -1
- package/dist/{chunk-U4YOVI5D.cjs → chunk-W7TSEN3J.cjs} +6 -6
- package/dist/{chunk-U4YOVI5D.cjs.map → chunk-W7TSEN3J.cjs.map} +1 -1
- package/dist/{chunk-W5QSKW7T.cjs → chunk-WHHBEV4G.cjs} +4 -4
- package/dist/{chunk-W5QSKW7T.cjs.map → chunk-WHHBEV4G.cjs.map} +1 -1
- package/dist/{chunk-POFKTD4G.cjs → chunk-WQQ6C2ML.cjs} +5 -5
- package/dist/{chunk-POFKTD4G.cjs.map → chunk-WQQ6C2ML.cjs.map} +1 -1
- package/dist/{chunk-36NQMOJE.cjs → chunk-XGMA7ITI.cjs} +6 -6
- package/dist/{chunk-36NQMOJE.cjs.map → chunk-XGMA7ITI.cjs.map} +1 -1
- package/dist/{chunk-FVSJXCKF.cjs → chunk-XKOIHIVQ.cjs} +4 -4
- package/dist/{chunk-FVSJXCKF.cjs.map → chunk-XKOIHIVQ.cjs.map} +1 -1
- package/dist/{chunk-HXYOG3DH.cjs → chunk-Y4OTUJGD.cjs} +10 -10
- package/dist/{chunk-HXYOG3DH.cjs.map → chunk-Y4OTUJGD.cjs.map} +1 -1
- package/dist/{chunk-YA6GXWC2.cjs → chunk-ZQQVXRYZ.cjs} +4 -4
- package/dist/{chunk-YA6GXWC2.cjs.map → chunk-ZQQVXRYZ.cjs.map} +1 -1
- package/dist/{chunk-HRLWD6FJ.cjs → chunk-ZSZI576U.cjs} +9 -9
- package/dist/{chunk-HRLWD6FJ.cjs.map → chunk-ZSZI576U.cjs.map} +1 -1
- package/dist/citations/index.cjs +8 -8
- package/dist/collaboration/direct-messages/DmParts.d.ts +2 -1
- package/dist/collaboration/direct-messages/DmParts.js +21 -7
- package/dist/collaboration/direct-messages/DmParts.js.map +2 -2
- package/dist/collaboration/index.cjs +82 -82
- package/dist/components/EntityChip.d.ts +2 -1
- package/dist/components/EntityChip.js +2 -0
- package/dist/components/EntityChip.js.map +2 -2
- package/dist/connect/docx.cjs +23 -23
- package/dist/connect/index.cjs +2380 -1831
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/viewer.cjs +39 -37
- package/dist/connection/ConnectedAgentChatPanel.d.ts +3 -1
- package/dist/connection/ConnectedAgentChatPanel.js +10 -5
- package/dist/connection/ConnectedAgentChatPanel.js.map +2 -2
- package/dist/connection/agents/ConnectedAgentsPage.js +6 -1
- package/dist/connection/agents/ConnectedAgentsPage.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/contacts/ConnectedContactsPanel.js +4 -2
- package/dist/connection/contacts/ConnectedContactsPanel.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/ConnectedMarkdown.js +58 -24
- package/dist/connection/conversation/ConnectedMarkdown.js.map +2 -2
- package/dist/connection/conversation/ConnectedMessage.js +19 -14
- package/dist/connection/conversation/ConnectedMessage.js.map +2 -2
- package/dist/connection/conversation/ConversationComposer.js +29 -7
- package/dist/connection/conversation/ConversationComposer.js.map +2 -2
- package/dist/connection/conversation/DocumentWorkspaceContext.d.ts +7 -2
- package/dist/connection/conversation/DocumentWorkspaceContext.js +31 -11
- package/dist/connection/conversation/DocumentWorkspaceContext.js.map +2 -2
- package/dist/connection/conversation/EntityReference.d.ts +8 -0
- package/dist/connection/conversation/EntityReference.js +124 -0
- package/dist/connection/conversation/EntityReference.js.map +7 -0
- package/dist/connection/conversation/entity-references.d.ts +1 -0
- package/dist/connection/conversation/entity-references.js +7 -0
- package/dist/connection/conversation/entity-references.js.map +7 -0
- package/dist/connection/conversation/open-entity-reference.d.ts +5 -0
- package/dist/connection/conversation/open-entity-reference.js +57 -0
- package/dist/connection/conversation/open-entity-reference.js.map +7 -0
- package/dist/connection/databases/ConnectedDatabasesPage.js +15 -2
- package/dist/connection/databases/ConnectedDatabasesPage.js.map +2 -2
- package/dist/connection/databases/DatabaseViewsMenu.d.ts +2 -1
- package/dist/connection/databases/DatabaseViewsMenu.js +9 -0
- package/dist/connection/databases/DatabaseViewsMenu.js.map +2 -2
- package/dist/connection/entities/ConnectedDocumentPill.js +5 -1
- package/dist/connection/entities/ConnectedDocumentPill.js.map +2 -2
- package/dist/connection/entities/ConnectedUserEntity.js +3 -0
- package/dist/connection/entities/ConnectedUserEntity.js.map +2 -2
- package/dist/connection/entities/ConnectedWorkspaceEntity.js +4 -0
- package/dist/connection/entities/ConnectedWorkspaceEntity.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/grid/cells.js +11 -2
- package/dist/connection/files/grid/cells.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/files/views/ViewSelector.js +13 -1
- package/dist/connection/files/views/ViewSelector.js.map +2 -2
- package/dist/connection/messenger/ConnectedChatThread.d.ts +0 -9
- package/dist/connection/messenger/ConnectedChatThread.js +72 -41
- package/dist/connection/messenger/ConnectedChatThread.js.map +2 -2
- package/dist/connection/messenger/ConnectedMessenger.js +6 -4
- package/dist/connection/messenger/ConnectedMessenger.js.map +2 -2
- package/dist/connection/messenger/DmAgentProgress.d.ts +7 -0
- package/dist/connection/messenger/DmAgentProgress.js +47 -0
- package/dist/connection/messenger/DmAgentProgress.js.map +7 -0
- package/dist/connection/messenger/full-variant.js +1 -1
- package/dist/connection/messenger/full-variant.js.map +2 -2
- package/dist/connection/panels/ConnectedPanelHost.d.ts +2 -10
- package/dist/connection/panels/ConnectedPanelHost.js +32 -4
- package/dist/connection/panels/ConnectedPanelHost.js.map +2 -2
- package/dist/connection/panels/ConnectedPanelRegistry.d.ts +1 -1
- package/dist/connection/panels/ConnectedPanelRegistry.js +1 -0
- package/dist/connection/panels/ConnectedPanelRegistry.js.map +2 -2
- package/dist/connection/panels/ConversationPresentation.d.ts +15 -0
- package/dist/connection/panels/ConversationPresentation.js +13 -0
- package/dist/connection/panels/ConversationPresentation.js.map +7 -0
- 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/ConnectedReportProblem.d.ts +3 -1
- package/dist/connection/report-problem/ConnectedReportProblem.js +9 -2
- package/dist/connection/report-problem/ConnectedReportProblem.js.map +2 -2
- package/dist/connection/report-problem/ReportProblemDialog.d.ts +6 -1
- package/dist/connection/report-problem/ReportProblemDialog.js +24 -9
- package/dist/connection/report-problem/ReportProblemDialog.js.map +2 -2
- package/dist/connection/report-problem/SupportVideoEvidence.d.ts +7 -0
- package/dist/connection/report-problem/SupportVideoEvidence.js +134 -0
- package/dist/connection/report-problem/SupportVideoEvidence.js.map +7 -0
- package/dist/connection/report-problem/screen-capture.d.ts +2 -0
- package/dist/connection/report-problem/screen-capture.js +11 -6
- package/dist/connection/report-problem/screen-capture.js.map +2 -2
- package/dist/connection/report-problem/support-browser-context.d.ts +5 -0
- package/dist/connection/report-problem/support-browser-context.js +19 -0
- package/dist/connection/report-problem/support-browser-context.js.map +7 -0
- package/dist/connection/report-problem/useReportProblem.js +16 -7
- package/dist/connection/report-problem/useReportProblem.js.map +2 -2
- package/dist/connection/report-problem/useSupportVideo.d.ts +21 -0
- package/dist/connection/report-problem/useSupportVideo.js +167 -0
- package/dist/connection/report-problem/useSupportVideo.js.map +7 -0
- package/dist/connection/routes/useDeepLinkSync.js +41 -5
- package/dist/connection/routes/useDeepLinkSync.js.map +2 -2
- package/dist/connection/shell/workspace-project-line.js +1 -0
- package/dist/connection/shell/workspace-project-line.js.map +2 -2
- package/dist/connection/tags/ConnectedTagsPage.js +10 -1
- package/dist/connection/tags/ConnectedTagsPage.js.map +2 -2
- package/dist/connection/threads/ConversationEntity.js +8 -1
- package/dist/connection/threads/ConversationEntity.js.map +2 -2
- package/dist/connection/viewer/ViewerPdfPane.js +18 -2
- package/dist/connection/viewer/ViewerPdfPane.js.map +2 -2
- package/dist/connection/viewer/useViewedDocument.d.ts +1 -0
- package/dist/connection/viewer/useViewedDocument.js +4 -1
- package/dist/connection/viewer/useViewedDocument.js.map +2 -2
- package/dist/connection/viewer/useViewerTabs.js +6 -3
- package/dist/connection/viewer/useViewerTabs.js.map +2 -2
- package/dist/dashboards/index.cjs +18 -18
- package/dist/embed/index.cjs +49 -48
- package/dist/facts/index.cjs +46 -46
- package/dist/files/cells/DocumentNameCell.d.ts +2 -1
- package/dist/files/cells/DocumentNameCell.js +7 -1
- package/dist/files/cells/DocumentNameCell.js.map +2 -2
- package/dist/files/index.cjs +232 -232
- package/dist/home/index.cjs +26 -26
- package/dist/index.cjs +1026 -1022
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +2 -2
- package/dist/lib/entity-id.d.ts +5 -0
- package/dist/lib/entity-id.js +14 -0
- package/dist/lib/entity-id.js.map +7 -0
- package/dist/lib/routes.d.ts +2 -0
- package/dist/lib/routes.js +32 -2
- package/dist/lib/routes.js.map +2 -2
- package/dist/pages/index.cjs +50 -50
- package/dist/provider/environment.d.ts +4 -0
- package/dist/provider/environment.js.map +2 -2
- package/dist/retrieval/index.cjs +4 -4
- package/dist/settings/index.cjs +139 -139
- package/dist/shell/PanelPortal.d.ts +2 -13
- package/dist/shell/PanelPortal.js +61 -10
- package/dist/shell/PanelPortal.js.map +2 -2
- package/dist/shell/index.cjs +53 -53
- package/dist/shell/useFloatingDrag.d.ts +23 -0
- package/dist/shell/useFloatingDrag.js +195 -0
- package/dist/shell/useFloatingDrag.js.map +7 -0
- package/dist/studio/index.cjs +35 -36
- package/dist/studio/index.cjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +78 -79
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/dist/workspaces/index.cjs +26 -26
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/ConnectedMailInviteCard-LV2VARX3.cjs +0 -22
- package/dist/ConnectedProductionSetDialog-4N7R7SFZ.cjs.map +0 -1
- package/dist/FilesViewerDialog-2MJHM32X.cjs.map +0 -1
- package/dist/ai-HME7CNDE.cjs.map +0 -1
- package/dist/chunk-63FEMB6U.cjs.map +0 -1
- package/dist/chunk-6U3CYVZC.cjs.map +0 -1
- package/dist/chunk-7HHIVC23.cjs.map +0 -1
- package/dist/chunk-7XR6CPCU.cjs.map +0 -1
- package/dist/chunk-AIKPZJNI.cjs.map +0 -1
- package/dist/chunk-CKJTXS63.cjs.map +0 -1
- package/dist/chunk-CYI4OYZD.cjs.map +0 -1
- package/dist/chunk-GEQW7XQA.cjs.map +0 -1
- package/dist/chunk-JARBYN6Z.cjs.map +0 -1
- package/dist/chunk-JHDCDEXY.cjs.map +0 -1
- package/dist/chunk-KL7R2IBY.cjs.map +0 -1
- package/dist/chunk-LOSCXAAF.cjs.map +0 -1
- package/dist/chunk-MCXS6X37.cjs +0 -13
- package/dist/chunk-MCXS6X37.cjs.map +0 -1
- package/dist/chunk-MSFWSDRS.cjs +0 -320
- package/dist/chunk-MSFWSDRS.cjs.map +0 -1
- package/dist/chunk-P7VUIW24.cjs.map +0 -1
- package/dist/chunk-SH7W4WVI.cjs.map +0 -1
- package/dist/chunk-SLQPSKYU.cjs.map +0 -1
- package/dist/chunk-T5XLL4L2.cjs.map +0 -1
- package/dist/chunk-VHD5DZW4.cjs.map +0 -1
- package/dist/chunk-XKQVAGVR.cjs.map +0 -1
- package/dist/chunk-Z2XZ2D4N.cjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export * from './guided';
|
|
|
19
19
|
export { tid } from './lib/testid';
|
|
20
20
|
export { formatCurrency, initials, fmtDate, fmtDateTime, daysUntil, hrs, pct, formatCount, pluralize, displayName, type CountForms, type DisplayNameUser, } from './lib/format';
|
|
21
21
|
export { buildDeepLinkPath, buildDeepLinkUrl, parseDeepLinkPath, type DeepLinkParams, } from './lib/deep-link';
|
|
22
|
-
export { ARBI_ROUTES, createRouteCodec, hrefFor, isDeepLinkPath, parseHref, pathRoute, readArrivalParams, renamedPage, type AnyRouteDefinition, type ArrivalParams, type ArbiRoute, type ArbiRouteKind, type RouteCodec, type RouteDefinition, } from './lib/routes';
|
|
22
|
+
export { ARBI_ROUTES, createRouteCodec, hrefFor, entityHrefFor, isDeepLinkPath, parseHref, pathRoute, readArrivalParams, renamedPage, type AnyRouteDefinition, type ArrivalParams, type ArbiRoute, type ArbiRouteKind, type RouteCodec, type RouteDefinition, } from './lib/routes';
|
|
23
23
|
export { DataTable, type Column, type DataTableProps, type DataTableSort, type DataTableTestIds, } from './components/DataTable';
|
|
24
24
|
export { DataTableBlock, type DataTableBlockProps, type DataTableBlockColumn, } from './components/DataTableBlock';
|
|
25
25
|
export { EmptyState } from './components/EmptyState';
|
package/dist/index.js
CHANGED
|
@@ -57,6 +57,7 @@ import {
|
|
|
57
57
|
ARBI_ROUTES,
|
|
58
58
|
createRouteCodec,
|
|
59
59
|
hrefFor,
|
|
60
|
+
entityHrefFor,
|
|
60
61
|
isDeepLinkPath,
|
|
61
62
|
parseHref,
|
|
62
63
|
pathRoute,
|
|
@@ -345,6 +346,7 @@ export {
|
|
|
345
346
|
displayName,
|
|
346
347
|
docxEditorChunk,
|
|
347
348
|
ensureContrast,
|
|
349
|
+
entityHrefFor,
|
|
348
350
|
fmtDate,
|
|
349
351
|
fmtDateTime,
|
|
350
352
|
fontPackages,
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * @arbidocs/blocks \u2014 composable AI-native back-office blocks layered on top of\n * @arbidocs/react. A host app supplies a config (identity, nav, theme, ARBI wiring) and\n * composes capability areas (retrieval, facts, agents, workspaces, citations, collaboration),\n * the theme system, the connection layer and primitives instead of forking them.\n */\n\n// \u2500\u2500 Theme system \u2014 one token model, store factory and editor for every host \u2500\u2500\nexport {\n applyThemeVars,\n clearThemeVars,\n applyFontVars,\n clearFontVars,\n toHslTriplet,\n themeCssVars,\n themeMetaVars,\n THEME_STYLE_ID,\n type ColorToken,\n type ThemeFonts,\n type ThemeTokens,\n type ThemePreset,\n type ThemeEmitMode,\n type ApplyThemeOptions,\n} from './theme/tokens'\nexport {\n createThemeStore,\n applyStoredTheme,\n type ThemeState,\n type ThemeStoreConfig,\n type ThemeBundle,\n} from './theme/store'\nexport { ThemeEditor, type ThemeEditorProps } from './theme/ThemeEditor'\nexport { ThemePreview, type ThemePreviewProps } from './theme/ThemePreview'\nexport { DEFAULT_THEME_PREVIEW_LABELS, type ThemePreviewLabels } from './theme/previewLabels'\nexport {\n deriveColors,\n inferInputs,\n contrastIssues,\n CONTRAST_PAIRS,\n type ThemeInputs,\n type ThemeInputKey,\n type ColorScheme,\n type ContrastPair,\n type ContrastIssue,\n} from './theme/derive'\nexport { contrastRatio, ensureContrast } from './theme/color'\nexport {\n createAppearanceStore,\n type AppearanceBundle,\n type AppearanceDefaults,\n type AppearanceState,\n type AppearanceStoreConfig,\n} from './theme/appearance'\nexport { themeFromCss, type ThemeFromCss, type ThemeFromCssOptions } from './theme/fromCss'\nexport {\n FONT_PAIRINGS,\n getFontPairing,\n matchFontPairing,\n fontPackages,\n type FontPairing,\n} from './theme/fontPairings'\n\n// \u2500\u2500 Contextual tips engine (the tips are the site's content) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nexport * from './tips'\n\n// \u2500\u2500 Guided runs (\"Show me\", remote control): the cursor, the runner, the registry \u2500\u2500\nexport * from './guided'\n\n// \u2500\u2500 Formatting + testid helpers \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nexport { tid } from './lib/testid'\nexport {\n formatCurrency,\n initials,\n fmtDate,\n fmtDateTime,\n daysUntil,\n hrs,\n pct,\n formatCount,\n pluralize,\n displayName,\n type CountForms,\n type DisplayNameUser,\n} from './lib/format'\n\n// \u2500\u2500 ARBI deep links \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nexport {\n buildDeepLinkPath,\n buildDeepLinkUrl,\n parseDeepLinkPath,\n type DeepLinkParams,\n} from './lib/deep-link'\n// The route codec: every address of the app as a typed route, from one route table.\nexport {\n ARBI_ROUTES,\n createRouteCodec,\n hrefFor,\n isDeepLinkPath,\n parseHref,\n pathRoute,\n readArrivalParams,\n renamedPage,\n type AnyRouteDefinition,\n type ArrivalParams,\n type ArbiRoute,\n type ArbiRouteKind,\n type RouteCodec,\n type RouteDefinition,\n} from './lib/routes'\n\n// \u2500\u2500 Generic UI primitives \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nexport {\n DataTable,\n type Column,\n type DataTableProps,\n type DataTableSort,\n type DataTableTestIds,\n} from './components/DataTable'\nexport {\n DataTableBlock,\n type DataTableBlockProps,\n type DataTableBlockColumn,\n} from './components/DataTableBlock'\nexport { EmptyState } from './components/EmptyState'\nexport {\n ErrorBoundary,\n DEFAULT_ERROR_BOUNDARY_LABELS,\n type ErrorBoundaryLabels,\n type ErrorBoundaryProps,\n type ErrorBoundaryFallbackProps,\n} from './components/ErrorBoundary'\nexport { LoadingIndicator, type LoadingIndicatorProps } from './components/LoadingIndicator'\nexport { DroppableContainer, type DroppableContainerProps } from './components/DroppableContainer'\nexport {\n RowNavigatorControls,\n type RowNavigatorControlsProps,\n} from './components/RowNavigatorControls'\nexport { GridRowNavigator, type GridRowNavigatorProps } from './components/GridRowNavigator'\nexport { SharedCell, type SharedCellProps, type SharedItem } from './components/SharedCell'\nexport {\n UsageMeter,\n usageMeterState,\n type UsageMeterAllowance,\n type UsageMeterState,\n} from './components/UsageMeter'\n\n// \u2500\u2500 Timeline views \u2014 calendar, Gantt, and the toggle between them \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nexport {\n Timeline,\n TimelineCalendar,\n TimelineGantt,\n TimelineZoomControl,\n TIMELINE_ZOOM,\n formatSpan,\n parseIso,\n utcDay,\n dayKey,\n monthLabel,\n type TimelineItem,\n type TimelineProps,\n type TimelineViewMode,\n type TimelineCalendarProps,\n type TimelineGanttProps,\n type TimelineZoomControlProps,\n} from './timeline'\nexport { PageHeader, type PageHeaderProps } from './components/PageHeader'\nexport { SectionHeading } from './components/SectionHeading'\nexport {\n DetailPanel,\n DetailBody,\n DetailEmpty,\n DetailField,\n DetailFields,\n DetailLinkItem,\n DetailLinkList,\n DetailLoading,\n DetailSection,\n DEFAULT_DETAIL_PANEL_LABELS,\n type DetailPanelProps,\n type DetailPanelLabels,\n type DetailSectionProps,\n type DetailFieldProps,\n type DetailLinkItemProps,\n} from './components/DetailPanel'\nexport {\n CollectionDetail,\n type CollectionDetailProps,\n type CollectionDetailContext,\n} from './components/CollectionDetail'\nexport { ToneBadge, type Tone, type ToneBadgeProps } from './components/ToneBadge'\nexport { TONES, isTone } from './components/tones'\nexport { Chart, type ChartProps, type ChartSeries } from './components/Chart'\nexport { Toolbar } from './components/Toolbar'\nexport {\n EntityIdentityBar,\n IDENTITY_NAME_MAX_LENGTH,\n type EntityIdentityBarProps,\n type EntityIdentityField,\n} from './components/EntityIdentityBar'\nexport {\n MemberAvatarStack,\n type MemberAvatarStackProps,\n type StackedMember,\n} from './components/MemberAvatarStack'\nexport { MetricCard, type MetricCardProps } from './components/MetricCard'\nexport {\n EntityTooltip,\n EntityTooltipHeader,\n EntityTooltipStats,\n EntityTooltipSection,\n EntityTooltipHint,\n type EntityTooltipHeaderProps,\n type EntityTooltipStat,\n} from './components/EntityTooltip'\nexport { EntityChip, type EntityChipProps } from './components/EntityChip'\nexport { AskBar, type AskBarProps } from './components/AskBar'\nexport { Table, TableHeader, TableBody, TableRow, TableHead, TableCell } from '@arbidocs/react/ui'\n// `Shell.Root` already mounts TooltipProvider for the whole back office; these are\n// re-exported for apps that render tooltips outside the shell (marketing pages,\n// standalone surfaces).\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from '@arbidocs/react/ui'\n// The document tile is defined in @arbidocs/react (blocks depends on react, never the reverse),\n// but it is a general component card, so it is part of the blocks surface too.\n\n// \u2500\u2500 App-level UI areas (clean, view-model driven; see docs/design) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n// Areas that need a heavy library are NOT re-exported here, so importing the root never loads\n// them: `/files`, `/facts` and `/databases` (AG Grid), `/home` and `/workspaces` (dnd-kit), `/settings` (cmdk),\n// `/connect` (React Query), `/studio` (Puck, router). Import those from their subpath.\nexport * from './chat'\nexport * from './shell'\nexport * from './auth'\nexport * from './retrieval'\nexport * from './agents'\nexport * from './citations'\nexport * from './collaboration'\nexport * from './activity'\nexport * from './tags'\n\n// \u2500\u2500 The host configuration (one `<ArbiHost config>`) and its environment \u2500\u2500\u2500\u2500\u2500\nexport { ArbiHost, useHost, type ArbiHostConfig } from './provider/host'\nexport type { WorkflowsHost, WorkflowCatalogueEntry } from './connection/workflows/support'\nexport {\n createBlocksEnvironment,\n useBlocksDialogs,\n useBlocksEnvironment,\n type BlocksEnvironment,\n type BlocksRuntimeConfig,\n type LinkTarget,\n type OpenCalendarOptions,\n type OpenConversationOptions,\n type OpenDocumentOptions,\n type OpenFilesOptions,\n type OpenMailOptions,\n type OpenNewConversationOptions,\n type OpenWordEditorOptions,\n type OpenWorkflowOptions,\n type ShareRequest,\n type UploadSource,\n} from './provider/environment'\nexport {\n requestSettingsSection,\n useRequestedSettingsSection,\n type SettingsSectionRequest,\n} from './provider/settings-section'\nexport {\n closeAllDialogs,\n closeDialog,\n getDialog,\n openDialog,\n useDialogProps,\n type BlocksDialogKind,\n type BlocksDialogProps,\n type CreateWorkspaceDialogProps,\n type UploadDialogProps,\n} from './provider/dialog-registry'\nexport {\n type ConfirmRequest,\n type ConfirmKind,\n type ChoiceRequest,\n type PromptChoice,\n} from './provider/dialogs'\nexport { BlocksTooltipProvider } from './provider/TooltipScope'\n\n// \u2500\u2500 Website building blocks (marketing / media / navigation / layout) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nexport { BlockImage, type BlockImageProps } from './components/BlockImage'\nexport { Hero, type HeroProps, type HeroCta } from './components/Hero'\nexport {\n BlockLink,\n type BlockLinkProps,\n type BlockLinkComponent,\n type BlockLinkRenderProps,\n} from './components/blockLink'\nexport { ActionLink, type ActionLinkProps } from './components/ActionLink'\nexport {\n OpenConversationButton,\n type OpenConversationButtonProps,\n} from './components/OpenConversationButton'\nexport { FeatureGrid, type FeatureGridProps, type FeatureItem } from './components/FeatureGrid'\nexport { StatGroup, type StatGroupProps, type StatItem } from './components/StatGroup'\nexport { Testimonial, type TestimonialProps } from './components/Testimonial'\nexport { CTABanner, type CTABannerProps } from './components/CTABanner'\nexport { LogoCloud, type LogoCloudProps, type LogoItem } from './components/LogoCloud'\nexport { FAQ, type FAQProps, type FaqItem } from './components/FAQ'\nexport { RichTextBlock, type RichTextBlockProps } from './components/RichTextBlock'\nexport { Callout, type CalloutProps, type CalloutVariant } from './components/Callout'\nexport { AvatarBlock, type AvatarBlockProps } from './components/AvatarBlock'\nexport { Navbar, type NavbarProps, type NavLink } from './components/Navbar'\nexport { Footer, type FooterProps, type FooterColumn, type FooterLink } from './components/Footer'\nexport { ListBlock, type ListBlockProps, type ListItem } from './components/ListBlock'\nexport { Columns, type ColumnsProps } from './components/Columns'\nexport { Spacer, type SpacerProps } from './components/Spacer'\nexport { Container, type ContainerProps } from './components/Container'\nexport { PricingTable, type PricingTableProps, type PricingPlan } from './components/PricingTable'\nexport { Tabs, type TabsProps, type TabItem } from './components/Tabs'\nexport { Accordion, type AccordionProps, type AccordionItem } from './components/Accordion'\nexport { Gallery, type GalleryProps, type GalleryImage } from './components/Gallery'\nexport {\n VideoEmbed,\n toEmbedUrl,\n type VideoEmbedProps,\n type VideoAspect,\n} from './components/VideoEmbed'\nexport { ContactForm, type ContactFormProps, type ContactField } from './components/ContactForm'\nexport { Banner, type BannerProps, type BannerTone } from './components/Banner'\nexport { MediaText, type MediaTextProps } from './components/MediaText'\nexport { TeamGrid, type TeamGridProps, type TeamMember } from './components/TeamGrid'\nexport * from './components/editorial'\nexport { Steps, type StepsProps, type StepItem } from './components/Steps'\nexport {\n TestimonialGrid,\n type TestimonialGridProps,\n type TestimonialItem,\n} from './components/TestimonialGrid'\n\n// \u2500\u2500 Navigation contracts \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nexport { type AppNavItem, type AppNavSection } from './nav/types'\nexport { defineActions, type ActionDefinition } from './nav/actions'\nexport { defineNavigation } from './nav/manifest'\nexport { EXPERIMENTAL_NAV_ITEMS, useExperimentalNavItems } from './connection/shell/experimentalNav'\n\nexport {\n FilterInput,\n DEFAULT_FILTER_FIELDS,\n DEFAULT_FILTER_INPUT_LABELS,\n type FilterField,\n type FilterInputProps,\n type FilterInputLabels,\n type FilterInputTestIds,\n} from './shell/FilterInput'\n\n// Heavy components in their own chunks (grid, calendar, Word editor, PDF viewer).\nexport {\n calendarGridChunk,\n docxEditorChunk,\n gridChunk,\n KIT_CHUNK_LOADERS,\n prefetchViewerChunks,\n preloadKitChunks,\n} from './lazy-chunks'\n"],
|
|
5
|
-
"mappings": ";AAQA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAOK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAIK;AACP,SAAS,mBAA0C;AACnD,SAAS,oBAA4C;AACrD,SAAS,oCAA6D;AACtE;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAMK;AACP,SAAS,eAAe,sBAAsB;AAC9C;AAAA,EACE;AAAA,OAKK;AACP,SAAS,oBAAiE;AAC1E;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OA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A;AAAA,EACA;AAAA,OACK;",
|
|
4
|
+
"sourcesContent": ["/**\n * @arbidocs/blocks \u2014 composable AI-native back-office blocks layered on top of\n * @arbidocs/react. A host app supplies a config (identity, nav, theme, ARBI wiring) and\n * composes capability areas (retrieval, facts, agents, workspaces, citations, collaboration),\n * the theme system, the connection layer and primitives instead of forking them.\n */\n\n// \u2500\u2500 Theme system \u2014 one token model, store factory and editor for every host \u2500\u2500\nexport {\n applyThemeVars,\n clearThemeVars,\n applyFontVars,\n clearFontVars,\n toHslTriplet,\n themeCssVars,\n themeMetaVars,\n THEME_STYLE_ID,\n type ColorToken,\n type ThemeFonts,\n type ThemeTokens,\n type ThemePreset,\n type ThemeEmitMode,\n type ApplyThemeOptions,\n} from './theme/tokens'\nexport {\n createThemeStore,\n applyStoredTheme,\n type ThemeState,\n type ThemeStoreConfig,\n type ThemeBundle,\n} from './theme/store'\nexport { ThemeEditor, type ThemeEditorProps } from './theme/ThemeEditor'\nexport { ThemePreview, type ThemePreviewProps } from './theme/ThemePreview'\nexport { DEFAULT_THEME_PREVIEW_LABELS, type ThemePreviewLabels } from './theme/previewLabels'\nexport {\n deriveColors,\n inferInputs,\n contrastIssues,\n CONTRAST_PAIRS,\n type ThemeInputs,\n type ThemeInputKey,\n type ColorScheme,\n type ContrastPair,\n type ContrastIssue,\n} from './theme/derive'\nexport { contrastRatio, ensureContrast } from './theme/color'\nexport {\n createAppearanceStore,\n type AppearanceBundle,\n type AppearanceDefaults,\n type AppearanceState,\n type AppearanceStoreConfig,\n} from './theme/appearance'\nexport { themeFromCss, type ThemeFromCss, type ThemeFromCssOptions } from './theme/fromCss'\nexport {\n FONT_PAIRINGS,\n getFontPairing,\n matchFontPairing,\n fontPackages,\n type FontPairing,\n} from './theme/fontPairings'\n\n// \u2500\u2500 Contextual tips engine (the tips are the site's content) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nexport * from './tips'\n\n// \u2500\u2500 Guided runs (\"Show me\", remote control): the cursor, the runner, the registry \u2500\u2500\nexport * from './guided'\n\n// \u2500\u2500 Formatting + testid helpers \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nexport { tid } from './lib/testid'\nexport {\n formatCurrency,\n initials,\n fmtDate,\n fmtDateTime,\n daysUntil,\n hrs,\n pct,\n formatCount,\n pluralize,\n displayName,\n type CountForms,\n type DisplayNameUser,\n} from './lib/format'\n\n// \u2500\u2500 ARBI deep links \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nexport {\n buildDeepLinkPath,\n buildDeepLinkUrl,\n parseDeepLinkPath,\n type DeepLinkParams,\n} from './lib/deep-link'\n// The route codec: every address of the app as a typed route, from one route table.\nexport {\n ARBI_ROUTES,\n createRouteCodec,\n hrefFor,\n entityHrefFor,\n isDeepLinkPath,\n parseHref,\n pathRoute,\n readArrivalParams,\n renamedPage,\n type AnyRouteDefinition,\n type ArrivalParams,\n type ArbiRoute,\n type ArbiRouteKind,\n type RouteCodec,\n type RouteDefinition,\n} from './lib/routes'\n\n// \u2500\u2500 Generic UI primitives \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nexport {\n DataTable,\n type Column,\n type DataTableProps,\n type DataTableSort,\n type DataTableTestIds,\n} from './components/DataTable'\nexport {\n DataTableBlock,\n type DataTableBlockProps,\n type DataTableBlockColumn,\n} from './components/DataTableBlock'\nexport { EmptyState } from './components/EmptyState'\nexport {\n ErrorBoundary,\n DEFAULT_ERROR_BOUNDARY_LABELS,\n type ErrorBoundaryLabels,\n type ErrorBoundaryProps,\n type ErrorBoundaryFallbackProps,\n} from './components/ErrorBoundary'\nexport { LoadingIndicator, type LoadingIndicatorProps } from './components/LoadingIndicator'\nexport { DroppableContainer, type DroppableContainerProps } from './components/DroppableContainer'\nexport {\n RowNavigatorControls,\n type RowNavigatorControlsProps,\n} from './components/RowNavigatorControls'\nexport { GridRowNavigator, type GridRowNavigatorProps } from './components/GridRowNavigator'\nexport { SharedCell, type SharedCellProps, type SharedItem } from './components/SharedCell'\nexport {\n UsageMeter,\n usageMeterState,\n type UsageMeterAllowance,\n type UsageMeterState,\n} from './components/UsageMeter'\n\n// \u2500\u2500 Timeline views \u2014 calendar, Gantt, and the toggle between them \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nexport {\n Timeline,\n TimelineCalendar,\n TimelineGantt,\n TimelineZoomControl,\n TIMELINE_ZOOM,\n formatSpan,\n parseIso,\n utcDay,\n dayKey,\n monthLabel,\n type TimelineItem,\n type TimelineProps,\n type TimelineViewMode,\n type TimelineCalendarProps,\n type TimelineGanttProps,\n type TimelineZoomControlProps,\n} from './timeline'\nexport { PageHeader, type PageHeaderProps } from './components/PageHeader'\nexport { SectionHeading } from './components/SectionHeading'\nexport {\n DetailPanel,\n DetailBody,\n DetailEmpty,\n DetailField,\n DetailFields,\n DetailLinkItem,\n DetailLinkList,\n DetailLoading,\n DetailSection,\n DEFAULT_DETAIL_PANEL_LABELS,\n type DetailPanelProps,\n type DetailPanelLabels,\n type DetailSectionProps,\n type DetailFieldProps,\n type DetailLinkItemProps,\n} from './components/DetailPanel'\nexport {\n CollectionDetail,\n type CollectionDetailProps,\n type CollectionDetailContext,\n} from './components/CollectionDetail'\nexport { ToneBadge, type Tone, type ToneBadgeProps } from './components/ToneBadge'\nexport { TONES, isTone } from './components/tones'\nexport { Chart, type ChartProps, type ChartSeries } from './components/Chart'\nexport { Toolbar } from './components/Toolbar'\nexport {\n EntityIdentityBar,\n IDENTITY_NAME_MAX_LENGTH,\n type EntityIdentityBarProps,\n type EntityIdentityField,\n} from './components/EntityIdentityBar'\nexport {\n MemberAvatarStack,\n type MemberAvatarStackProps,\n type StackedMember,\n} from './components/MemberAvatarStack'\nexport { MetricCard, type MetricCardProps } from './components/MetricCard'\nexport {\n EntityTooltip,\n EntityTooltipHeader,\n EntityTooltipStats,\n EntityTooltipSection,\n EntityTooltipHint,\n type EntityTooltipHeaderProps,\n type EntityTooltipStat,\n} from './components/EntityTooltip'\nexport { EntityChip, type EntityChipProps } from './components/EntityChip'\nexport { AskBar, type AskBarProps } from './components/AskBar'\nexport { Table, TableHeader, TableBody, TableRow, TableHead, TableCell } from '@arbidocs/react/ui'\n// `Shell.Root` already mounts TooltipProvider for the whole back office; these are\n// re-exported for apps that render tooltips outside the shell (marketing pages,\n// standalone surfaces).\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from '@arbidocs/react/ui'\n// The document tile is defined in @arbidocs/react (blocks depends on react, never the reverse),\n// but it is a general component card, so it is part of the blocks surface too.\n\n// \u2500\u2500 App-level UI areas (clean, view-model driven; see docs/design) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n// Areas that need a heavy library are NOT re-exported here, so importing the root never loads\n// them: `/files`, `/facts` and `/databases` (AG Grid), `/home` and `/workspaces` (dnd-kit), `/settings` (cmdk),\n// `/connect` (React Query), `/studio` (Puck, router). Import those from their subpath.\nexport * from './chat'\nexport * from './shell'\nexport * from './auth'\nexport * from './retrieval'\nexport * from './agents'\nexport * from './citations'\nexport * from './collaboration'\nexport * from './activity'\nexport * from './tags'\n\n// \u2500\u2500 The host configuration (one `<ArbiHost config>`) and its environment \u2500\u2500\u2500\u2500\u2500\nexport { ArbiHost, useHost, type ArbiHostConfig } from './provider/host'\nexport type { WorkflowsHost, WorkflowCatalogueEntry } from './connection/workflows/support'\nexport {\n createBlocksEnvironment,\n useBlocksDialogs,\n useBlocksEnvironment,\n type BlocksEnvironment,\n type BlocksRuntimeConfig,\n type LinkTarget,\n type OpenCalendarOptions,\n type OpenConversationOptions,\n type OpenDocumentOptions,\n type OpenFilesOptions,\n type OpenMailOptions,\n type OpenNewConversationOptions,\n type OpenWordEditorOptions,\n type OpenWorkflowOptions,\n type ShareRequest,\n type UploadSource,\n} from './provider/environment'\nexport {\n requestSettingsSection,\n useRequestedSettingsSection,\n type SettingsSectionRequest,\n} from './provider/settings-section'\nexport {\n closeAllDialogs,\n closeDialog,\n getDialog,\n openDialog,\n useDialogProps,\n type BlocksDialogKind,\n type BlocksDialogProps,\n type CreateWorkspaceDialogProps,\n type UploadDialogProps,\n} from './provider/dialog-registry'\nexport {\n type ConfirmRequest,\n type ConfirmKind,\n type ChoiceRequest,\n type PromptChoice,\n} from './provider/dialogs'\nexport { BlocksTooltipProvider } from './provider/TooltipScope'\n\n// \u2500\u2500 Website building blocks (marketing / media / navigation / layout) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nexport { BlockImage, type BlockImageProps } from './components/BlockImage'\nexport { Hero, type HeroProps, type HeroCta } from './components/Hero'\nexport {\n BlockLink,\n type BlockLinkProps,\n type BlockLinkComponent,\n type BlockLinkRenderProps,\n} from './components/blockLink'\nexport { ActionLink, type ActionLinkProps } from './components/ActionLink'\nexport {\n OpenConversationButton,\n type OpenConversationButtonProps,\n} from './components/OpenConversationButton'\nexport { FeatureGrid, type FeatureGridProps, type FeatureItem } from './components/FeatureGrid'\nexport { StatGroup, type StatGroupProps, type StatItem } from './components/StatGroup'\nexport { Testimonial, type TestimonialProps } from './components/Testimonial'\nexport { CTABanner, type CTABannerProps } from './components/CTABanner'\nexport { LogoCloud, type LogoCloudProps, type LogoItem } from './components/LogoCloud'\nexport { FAQ, type FAQProps, type FaqItem } from './components/FAQ'\nexport { RichTextBlock, type RichTextBlockProps } from './components/RichTextBlock'\nexport { Callout, type CalloutProps, type CalloutVariant } from './components/Callout'\nexport { AvatarBlock, type AvatarBlockProps } from './components/AvatarBlock'\nexport { Navbar, type NavbarProps, type NavLink } from './components/Navbar'\nexport { Footer, type FooterProps, type FooterColumn, type FooterLink } from './components/Footer'\nexport { ListBlock, type ListBlockProps, type ListItem } from './components/ListBlock'\nexport { Columns, type ColumnsProps } from './components/Columns'\nexport { Spacer, type SpacerProps } from './components/Spacer'\nexport { Container, type ContainerProps } from './components/Container'\nexport { PricingTable, type PricingTableProps, type PricingPlan } from './components/PricingTable'\nexport { Tabs, type TabsProps, type TabItem } from './components/Tabs'\nexport { Accordion, type AccordionProps, type AccordionItem } from './components/Accordion'\nexport { Gallery, type GalleryProps, type GalleryImage } from './components/Gallery'\nexport {\n VideoEmbed,\n toEmbedUrl,\n type VideoEmbedProps,\n type VideoAspect,\n} from './components/VideoEmbed'\nexport { ContactForm, type ContactFormProps, type ContactField } from './components/ContactForm'\nexport { Banner, type BannerProps, type BannerTone } from './components/Banner'\nexport { MediaText, type MediaTextProps } from './components/MediaText'\nexport { TeamGrid, type TeamGridProps, type TeamMember } from './components/TeamGrid'\nexport * from './components/editorial'\nexport { Steps, type StepsProps, type StepItem } from './components/Steps'\nexport {\n TestimonialGrid,\n type TestimonialGridProps,\n type TestimonialItem,\n} from './components/TestimonialGrid'\n\n// \u2500\u2500 Navigation contracts \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nexport { type AppNavItem, type AppNavSection } from './nav/types'\nexport { defineActions, type ActionDefinition } from './nav/actions'\nexport { defineNavigation } from './nav/manifest'\nexport { EXPERIMENTAL_NAV_ITEMS, useExperimentalNavItems } from './connection/shell/experimentalNav'\n\nexport {\n FilterInput,\n DEFAULT_FILTER_FIELDS,\n DEFAULT_FILTER_INPUT_LABELS,\n type FilterField,\n type FilterInputProps,\n type FilterInputLabels,\n type FilterInputTestIds,\n} from './shell/FilterInput'\n\n// Heavy components in their own chunks (grid, calendar, Word editor, PDF viewer).\nexport {\n calendarGridChunk,\n docxEditorChunk,\n gridChunk,\n KIT_CHUNK_LOADERS,\n prefetchViewerChunks,\n preloadKitChunks,\n} from './lazy-chunks'\n"],
|
|
5
|
+
"mappings": ";AAQA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAOK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAIK;AACP,SAAS,mBAA0C;AACnD,SAAS,oBAA4C;AACrD,SAAS,oCAA6D;AACtE;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAMK;AACP,SAAS,eAAe,sBAAsB;AAC9C;AAAA,EACE;AAAA,OAKK;AACP,SAAS,oBAAiE;AAC1E;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAGP,cAAc;AAGd,cAAc;AAGd,SAAS,WAAW;AACpB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA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AAc;AAGd,SAAS,UAAU,eAAoC;AAEvD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAcK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAEK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AAOP,SAAS,6BAA6B;AAGtC,SAAS,kBAAwC;AACjD,SAAS,YAA0C;AACnD;AAAA,EACE;AAAA,OAIK;AACP,SAAS,kBAAwC;AACjD;AAAA,EACE;AAAA,OAEK;AACP,SAAS,mBAA4D;AACrE,SAAS,iBAAqD;AAC9D,SAAS,mBAA0C;AACnD,SAAS,iBAAsC;AAC/C,SAAS,iBAAqD;AAC9D,SAAS,WAAwC;AACjD,SAAS,qBAA8C;AACvD,SAAS,eAAuD;AAChE,SAAS,mBAA0C;AACnD,SAAS,cAA8C;AACvD,SAAS,cAAoE;AAC7E,SAAS,iBAAqD;AAC9D,SAAS,eAAkC;AAC3C,SAAS,cAAgC;AACzC,SAAS,iBAAsC;AAC/C,SAAS,oBAA8D;AACvE,SAAS,YAA0C;AACnD,SAAS,iBAA0D;AACnE,SAAS,eAAqD;AAC9D;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP,SAAS,mBAA6D;AACtE,SAAS,cAAiD;AAC1D,SAAS,iBAAsC;AAC/C,SAAS,gBAAqD;AAC9D,cAAc;AACd,SAAS,aAA6C;AACtD;AAAA,EACE;AAAA,OAGK;AAIP,SAAS,qBAA4C;AACrD,SAAS,wBAAwB;AACjC,SAAS,wBAAwB,+BAA+B;AAEhE;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AAGP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Exact external ids only: partial ids in streaming text must never cause lookups. */
|
|
2
|
+
export declare const ENTITY_ID_SOURCE = "(?:doc|eml|evt|call|con|wrk|prj|wfl|pag|dbs|viw|fct|tag|usr|agt|cht|cal)-[a-zA-Z0-9]{8}";
|
|
3
|
+
export declare const ENTITY_ID: RegExp;
|
|
4
|
+
/** A direct resource reference, optionally qualified by a complete workspace id. */
|
|
5
|
+
export declare function entityIdFromPath(pathname: string): string | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const ENTITY_ID_SOURCE = "(?:doc|eml|evt|call|con|wrk|prj|wfl|pag|dbs|viw|fct|tag|usr|agt|cht|cal)-[a-zA-Z0-9]{8}";
|
|
3
|
+
const ENTITY_ID = new RegExp(`^${ENTITY_ID_SOURCE}$`);
|
|
4
|
+
function entityIdFromPath(pathname) {
|
|
5
|
+
const parts = pathname.split("/").filter(Boolean);
|
|
6
|
+
if (parts.length === 2 && parts[0].startsWith("wrk-") && ENTITY_ID.test(parts[0])) parts.shift();
|
|
7
|
+
return parts.length === 1 && ENTITY_ID.test(parts[0]) ? parts[0] : void 0;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
ENTITY_ID,
|
|
11
|
+
ENTITY_ID_SOURCE,
|
|
12
|
+
entityIdFromPath
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=entity-id.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/lib/entity-id.ts"],
|
|
4
|
+
"sourcesContent": ["/** Exact external ids only: partial ids in streaming text must never cause lookups. */\nexport const ENTITY_ID_SOURCE =\n '(?:doc|eml|evt|call|con|wrk|prj|wfl|pag|dbs|viw|fct|tag|usr|agt|cht|cal)-[a-zA-Z0-9]{8}'\nexport const ENTITY_ID = new RegExp(`^${ENTITY_ID_SOURCE}$`)\n\n/** A direct resource reference, optionally qualified by a complete workspace id. */\nexport function entityIdFromPath(pathname: string): string | undefined {\n const parts = pathname.split('/').filter(Boolean)\n if (parts.length === 2 && parts[0].startsWith('wrk-') && ENTITY_ID.test(parts[0])) parts.shift()\n return parts.length === 1 && ENTITY_ID.test(parts[0]) ? parts[0] : undefined\n}\n"],
|
|
5
|
+
"mappings": ";AACO,MAAM,mBACX;AACK,MAAM,YAAY,IAAI,OAAO,IAAI,gBAAgB,GAAG;AAGpD,SAAS,iBAAiB,UAAsC;AACrE,QAAM,QAAQ,SAAS,MAAM,GAAG,EAAE,OAAO,OAAO;AAChD,MAAI,MAAM,WAAW,KAAK,MAAM,CAAC,EAAE,WAAW,MAAM,KAAK,UAAU,KAAK,MAAM,CAAC,CAAC,EAAG,OAAM,MAAM;AAC/F,SAAO,MAAM,WAAW,KAAK,UAAU,KAAK,MAAM,CAAC,CAAC,IAAI,MAAM,CAAC,IAAI;AACrE;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/lib/routes.d.ts
CHANGED
|
@@ -136,4 +136,6 @@ export declare function readArrivalParams(search: string): ArrivalParams;
|
|
|
136
136
|
export declare const hrefFor: (route: ArbiRoute) => string | undefined;
|
|
137
137
|
/** The route at an address of an ARBI app (`ARBI_ROUTES`). */
|
|
138
138
|
export declare const parseHref: (href: string) => ArbiRoute | null;
|
|
139
|
+
/** Canonical reference links, also used by presentation-only pills through the host. */
|
|
140
|
+
export declare function entityHrefFor(id: string, workspaceId?: string | null): string | undefined;
|
|
139
141
|
export {};
|
package/dist/lib/routes.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { parseRecordingLinkParams } from "../calls/recording-link.js";
|
|
3
3
|
import { buildDeepLinkPath, parseDeepLinkPath } from "./deep-link.js";
|
|
4
|
+
import { ENTITY_ID, entityIdFromPath } from "./entity-id.js";
|
|
4
5
|
const segmentsOf = (pathname) => pathname.split("/").filter(Boolean);
|
|
5
6
|
const DEEP_LINK_TOKENS = ["wrk-", "con-", "msg-", "doc-", "cnk-", "cmt-"];
|
|
6
7
|
function isDeepLinkPath(pathname) {
|
|
7
8
|
const first = segmentsOf(pathname)[0];
|
|
8
|
-
return !!first && (first.startsWith("wrk-") || first === "action");
|
|
9
|
+
return !!first && (first.startsWith("wrk-") || first === "action" || first === "entity");
|
|
9
10
|
}
|
|
10
11
|
function deepLinkParams(pathname) {
|
|
11
12
|
if (!isDeepLinkPath(pathname)) return null;
|
|
@@ -84,6 +85,16 @@ function renamedPage(page) {
|
|
|
84
85
|
const UUID = /^[a-f0-9-]{36}$/i;
|
|
85
86
|
const MAIL_DRAFT_MAX = 512;
|
|
86
87
|
const ARBI_ROUTES = [
|
|
88
|
+
{
|
|
89
|
+
kind: "entity",
|
|
90
|
+
parse: (url) => {
|
|
91
|
+
const m = /^\/(?:((?:wrk)-[a-zA-Z0-9]{8})\/)?entity\/([a-z]+-[a-zA-Z0-9]{8})\/?$/.exec(
|
|
92
|
+
url.pathname
|
|
93
|
+
);
|
|
94
|
+
return m ? { kind: "entity", entityId: m[2], workspaceId: m[1] } : null;
|
|
95
|
+
},
|
|
96
|
+
href: ({ entityId, workspaceId }) => `/${workspaceId ? `${workspaceId}/` : ""}entity/${encodeURIComponent(entityId)}`
|
|
97
|
+
},
|
|
87
98
|
queryRoute("review-access", "review_access"),
|
|
88
99
|
queryRoute("notification", "notification"),
|
|
89
100
|
{
|
|
@@ -152,9 +163,11 @@ const ARBI_ROUTES = [
|
|
|
152
163
|
{
|
|
153
164
|
kind: "calendar",
|
|
154
165
|
parse: (url) => {
|
|
166
|
+
const direct = entityIdFromPath(url.pathname);
|
|
167
|
+
if (direct?.startsWith("evt-")) return { kind: "calendar", eventId: direct };
|
|
155
168
|
if (!atStart(url) || url.searchParams.get("view") !== "calendar") return null;
|
|
156
169
|
const eventId = url.searchParams.get("event");
|
|
157
|
-
return eventId &&
|
|
170
|
+
return eventId?.startsWith("evt-") && ENTITY_ID.test(eventId) ? { kind: "calendar", eventId } : { kind: "calendar" };
|
|
158
171
|
},
|
|
159
172
|
href: ({ eventId }) => viewQuery("calendar", { event: eventId })
|
|
160
173
|
},
|
|
@@ -218,9 +231,26 @@ function readArrivalParams(search) {
|
|
|
218
231
|
const arbiCodec = createRouteCodec(ARBI_ROUTES);
|
|
219
232
|
const hrefFor = arbiCodec.hrefFor;
|
|
220
233
|
const parseHref = arbiCodec.parseHref;
|
|
234
|
+
function entityHrefFor(id, workspaceId) {
|
|
235
|
+
const prefix = id.split("-")[0];
|
|
236
|
+
if (prefix === "doc" && workspaceId)
|
|
237
|
+
return hrefFor({ kind: "document", documentId: id, workspaceId });
|
|
238
|
+
if (prefix === "con" && workspaceId)
|
|
239
|
+
return hrefFor({ kind: "conversation", conversationId: id, workspaceId });
|
|
240
|
+
if (prefix === "wrk") return hrefFor({ kind: "workspace", workspaceId: id });
|
|
241
|
+
if (prefix === "evt") return hrefFor({ kind: "calendar", eventId: id });
|
|
242
|
+
if (prefix === "call") return hrefFor({ kind: "call", callId: id });
|
|
243
|
+
if (prefix === "eml") return hrefFor({ kind: "mail", draftId: id });
|
|
244
|
+
return hrefFor({
|
|
245
|
+
kind: "entity",
|
|
246
|
+
entityId: id,
|
|
247
|
+
workspaceId: ["usr", "agt", "cht", "prj", "cal"].includes(prefix) ? void 0 : workspaceId
|
|
248
|
+
});
|
|
249
|
+
}
|
|
221
250
|
export {
|
|
222
251
|
ARBI_ROUTES,
|
|
223
252
|
createRouteCodec,
|
|
253
|
+
entityHrefFor,
|
|
224
254
|
hrefFor,
|
|
225
255
|
isDeepLinkPath,
|
|
226
256
|
parseHref,
|
package/dist/lib/routes.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/lib/routes.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * The route codec: every address an ARBI app opens, as a typed route, from one route table.\n * `hrefFor(route)` writes a route's address and `parseHref(href)` reads one back, so a link, the\n * address bar (`useDeepLinkSync`), the sign-in's return address (`resolveAuthReturn`) and a printed\n * QR code all agree. A host with other addresses builds its own codec from its table\n * (`createRouteCodec`); ARBI's is `ARBI_ROUTES`.\n */\n\nimport { parseRecordingLinkParams } from '../calls/recording-link'\nimport { buildDeepLinkPath, parseDeepLinkPath, type DeepLinkParams } from './deep-link'\nimport type { LinkTarget } from '../provider/environment'\n\n/**\n * A place in the app. The kinds a kit links to are its `LinkTarget`s (a target without an address\n * here, a project, a workflow or a settings section, has no link); the rest are the app's own.\n */\nexport type ArbiRoute =\n | Exclude<LinkTarget, { kind: 'document' }>\n /** A document, at a version, a comment or a passage (`cnk-\u2026`) when given. */\n | {\n kind: 'document'\n documentId: string\n workspaceId?: string | null\n version?: number\n commentId?: string\n passageId?: string\n }\n /** The app's start (`/`). */\n | { kind: 'home' }\n /** A page by name (`/?view=tags`): a renamed page reads as its new name. */\n | { kind: 'page'; page: string }\n /** A UI action to run once (`/action/authorize-agent`). */\n | { kind: 'action'; action: string }\n /** Where a notification leads, once it has loaded (`/?notification=ntf-\u2026`). */\n | { kind: 'notification'; notificationId: string }\n /** The review of an access request (the request email's `/?review_access=ntf-\u2026`). */\n | { kind: 'review-access'; notificationId: string }\n /** A secure-mail message to claim (`/secure-mail/<uuid>`; its key rides in the fragment). */\n | { kind: 'secure-mail'; claimId: string }\n /** A shared file (`/shared-files/<id>`); none: the shared-files page. */\n | { kind: 'shared-file'; shareId?: string }\n /** A call (`/call/call-\u2026`), with a personal invite token (`?i=`) and its key fragment. */\n | { kind: 'call'; callId: string; invite?: string; fragment?: string }\n\nexport type ArbiRouteKind = ArbiRoute['kind']\ntype RouteOf<K extends ArbiRouteKind> = Extract<ArbiRoute, { kind: K }>\n\n/** One entry of a route table: how its routes are read from an address and written back. */\nexport interface RouteDefinition<K extends ArbiRouteKind = ArbiRouteKind> {\n kind: K\n /** The route at `url`, or null when the address is not this route. */\n parse(url: URL): RouteOf<K> | null\n /** The route's address (path, query, fragment); undefined when it has none. */\n href(route: RouteOf<K>): string | undefined\n}\n\n/** A route table's entry, of any kind. */\nexport type AnyRouteDefinition = { [K in ArbiRouteKind]: RouteDefinition<K> }[ArbiRouteKind]\n\n// \u2500\u2500 Building blocks of a route table \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\nconst segmentsOf = (pathname: string): string[] => pathname.split('/').filter(Boolean)\n\nconst DEEP_LINK_TOKENS = ['wrk-', 'con-', 'msg-', 'doc-', 'cnk-', 'cmt-']\n\n/**\n * Whether a pathname is meant as a deep link (a workspace token or `action` first), as opposed to\n * a page like `/`, `/login` or `/word/\u2026`. A deep link may still be malformed (`parseHref` is null).\n */\nexport function isDeepLinkPath(pathname: string): boolean {\n const first = segmentsOf(pathname)[0]\n return !!first && (first.startsWith('wrk-') || first === 'action')\n}\n\n/** A deep link's parts, or null for a path that is not a well-formed deep link. */\nfunction deepLinkParams(pathname: string): DeepLinkParams | null {\n if (!isDeepLinkPath(pathname)) return null\n const segments = segmentsOf(pathname)\n for (let i = 0; i < segments.length; i++) {\n if (segments[i] === 'action') i++\n else if (!DEEP_LINK_TOKENS.some((prefix) => segments[i].startsWith(prefix))) return null\n }\n return parseDeepLinkPath(pathname)\n}\n\n/** A route kept in a query parameter, on any path (`/?notification=\u2026`). */\nfunction queryRoute<K extends 'notification' | 'review-access'>(\n kind: K,\n key: string\n): RouteDefinition<K> {\n return {\n kind,\n parse: (url) => {\n const notificationId = url.searchParams.get(key)\n return notificationId ? ({ kind, notificationId } as RouteOf<K>) : null\n },\n href: ({ notificationId }: { notificationId: string }) =>\n `/?${key}=${encodeURIComponent(notificationId)}`,\n }\n}\n\ntype PathParams = Record<string, RegExp>\n\n/**\n * A route at a path pattern (`/secure-mail/:claimId`, `:name?` optional), each parameter checked\n * by its pattern; a trailing slash is tolerated. `query` maps route fields to query parameters,\n * `fragment` names the field kept in the fragment.\n */\nexport function pathRoute<K extends ArbiRouteKind>(\n kind: K,\n pattern: string,\n params: PathParams,\n { query = {}, fragment }: { query?: Record<string, string>; fragment?: string } = {}\n): RouteDefinition<K> {\n const parts = segmentsOf(pattern)\n return {\n kind,\n parse: (url) => {\n const segments = segmentsOf(url.pathname)\n if (segments.length > parts.length) return null\n const route: Record<string, string> = { kind }\n for (const [i, part] of parts.entries()) {\n const segment = segments[i]\n if (!part.startsWith(':')) {\n if (segment !== part) return null\n continue\n }\n const name = part.slice(1).replace(/\\?$/, '')\n if (segment === undefined) {\n if (part.endsWith('?')) continue\n return null\n }\n if (!params[name]?.test(segment)) return null\n route[name] = segment\n }\n for (const [field, key] of Object.entries(query)) {\n const value = url.searchParams.get(key)\n if (value) route[field] = value\n }\n if (fragment && url.hash.length > 1) route[fragment] = url.hash.slice(1)\n return route as unknown as RouteOf<K>\n },\n href: (route) => {\n const fields = route as unknown as Record<string, string | undefined>\n const path = parts\n .map((part) => (part.startsWith(':') ? fields[part.slice(1).replace(/\\?$/, '')] : part))\n .filter(Boolean)\n .join('/')\n const search = new URLSearchParams()\n for (const [field, key] of Object.entries(query))\n if (fields[field]) search.set(key, fields[field])\n const qs = search.toString()\n const hash = fragment && fields[fragment] ? `#${fields[fragment]}` : ''\n return `/${path}${qs ? `?${qs}` : ''}${hash}`\n },\n }\n}\n\n/** A page of the app's start (`/?view=<page>`), with the page's own query fields. */\nfunction viewQuery(view: string, fields: Record<string, string | undefined> = {}): string {\n const pairs = Object.entries({ view, ...fields }).filter(([, value]) => value)\n return `/?${pairs.map(([key, value]) => `${key}=${encodeURIComponent(value!)}`).join('&')}`\n}\n\nconst atStart = (url: URL) => segmentsOf(url.pathname).length === 0\n\n/**\n * Page names that were renamed, mapped to the page that replaced them: an old `?view=<name>` link\n * or a stored page still lands on the right page.\n */\nconst PAGE_ALIASES: Record<string, string> = {\n // Automations became Workflows (by hand, scheduled, on an event, after a task, or stepped).\n automations: 'workflows',\n // Dashboards became Analytics, the person's own page (not a workspace's).\n dashboards: 'analytics',\n}\n\n/** The page an old page name now means, or undefined when it was not renamed. */\nexport function renamedPage(page: string): string | undefined {\n return Object.prototype.hasOwnProperty.call(PAGE_ALIASES, page) ? PAGE_ALIASES[page] : undefined\n}\n\nconst UUID = /^[a-f0-9-]{36}$/i\nconst MAIL_DRAFT_MAX = 512\n\n/**\n * ARBI's addresses, first match wins: the notification links (on any path), the deep links\n * (`/wrk-\u2026/con-\u2026/msg-\u2026`, `/wrk-\u2026/doc-\u2026@v2/cmt-\u2026/cnk-\u2026`, `/action/\u2026`), the public pages and the\n * start's pages (`/?view=\u2026`).\n */\nexport const ARBI_ROUTES: readonly AnyRouteDefinition[] = [\n queryRoute('review-access', 'review_access'),\n queryRoute('notification', 'notification'),\n {\n kind: 'action',\n parse: (url) => {\n const action = deepLinkParams(url.pathname)?.action\n return action ? { kind: 'action', action } : null\n },\n href: ({ action }) => buildDeepLinkPath({ action }),\n } satisfies RouteDefinition<'action'>,\n {\n kind: 'conversation',\n parse: (url) => {\n const p = deepLinkParams(url.pathname)\n if (!p?.workspaceId || !p.conversationId) return null\n return {\n kind: 'conversation',\n workspaceId: p.workspaceId,\n conversationId: p.conversationId,\n ...(p.messageId ? { messageId: p.messageId } : {}),\n }\n },\n href: ({ workspaceId, conversationId, messageId }) =>\n workspaceId ? buildDeepLinkPath({ workspaceId, conversationId, messageId }) : undefined,\n } satisfies RouteDefinition<'conversation'>,\n {\n kind: 'document',\n parse: (url) => {\n const p = deepLinkParams(url.pathname)\n if (!p?.workspaceId || !p.documentId) return null\n return {\n kind: 'document',\n workspaceId: p.workspaceId,\n documentId: p.documentId,\n ...(p.version !== undefined ? { version: p.version } : {}),\n ...(p.commentId ? { commentId: p.commentId } : {}),\n ...(p.chunkId ? { passageId: p.chunkId } : {}),\n }\n },\n href: ({ workspaceId, documentId, version, commentId, passageId }) =>\n workspaceId\n ? buildDeepLinkPath({ workspaceId, documentId, version, commentId, chunkId: passageId })\n : undefined,\n } satisfies RouteDefinition<'document'>,\n {\n kind: 'workspace',\n parse: (url) => {\n const p = deepLinkParams(url.pathname)\n return p?.workspaceId ? { kind: 'workspace', workspaceId: p.workspaceId } : null\n },\n href: ({ workspaceId }) => buildDeepLinkPath({ workspaceId }),\n } satisfies RouteDefinition<'workspace'>,\n pathRoute('secure-mail', '/secure-mail/:claimId', { claimId: UUID }),\n pathRoute('shared-file', '/shared-files/:shareId?', { shareId: /^[^/]+$/ }),\n pathRoute(\n 'call',\n '/call/:callId',\n { callId: /^call-[A-Za-z0-9]{8}$/ },\n { query: { invite: 'i' }, fragment: 'fragment' }\n ),\n {\n kind: 'mail',\n parse: (url) => {\n if (!atStart(url) || url.searchParams.get('view') !== 'mail') return null\n const draftId = url.searchParams.get('draft')\n return draftId && draftId.length <= MAIL_DRAFT_MAX\n ? { kind: 'mail', draftId }\n : { kind: 'mail' }\n },\n href: ({ draftId }) => viewQuery('mail', { draft: draftId }),\n } satisfies RouteDefinition<'mail'>,\n {\n kind: 'calendar',\n parse: (url) => {\n if (!atStart(url) || url.searchParams.get('view') !== 'calendar') return null\n const eventId = url.searchParams.get('event')\n return eventId && /^evt-[A-Za-z0-9]{8}$/.test(eventId)\n ? { kind: 'calendar', eventId }\n : { kind: 'calendar' }\n },\n href: ({ eventId }) => viewQuery('calendar', { event: eventId }),\n } satisfies RouteDefinition<'calendar'>,\n {\n kind: 'page',\n parse: (url) => {\n const page = atStart(url) ? url.searchParams.get('view') : null\n return page ? { kind: 'page', page: renamedPage(page) ?? page } : null\n },\n href: ({ page }) => viewQuery(page),\n } satisfies RouteDefinition<'page'>,\n {\n kind: 'home',\n parse: (url) => (atStart(url) ? { kind: 'home' } : null),\n href: () => '/',\n } satisfies RouteDefinition<'home'>,\n]\n\nexport interface RouteCodec {\n /** The address of a route (a kit's link target too); undefined when it has none here. */\n hrefFor(route: ArbiRoute): string | undefined\n /**\n * The route at an address (a path, or a full URL of this origin). A legacy hash deep link\n * (`/#/wrk-\u2026`, the format before deep links moved to the path) reads as its path. Null: no route\n * of this table (an auth page, the Word add-in, a malformed deep link: see `isDeepLinkPath`).\n */\n parseHref(href: string): ArbiRoute | null\n}\n\nconst BASE = 'http://route.invalid'\n\n/** A codec over a route table: the first definition of a kind writes it; the first match reads. */\nexport function createRouteCodec(routes: readonly AnyRouteDefinition[]): RouteCodec {\n const parse = (url: URL): ArbiRoute | null => {\n for (const route of routes) {\n const match = route.parse(url)\n if (match) return match\n }\n return null\n }\n return {\n hrefFor(route) {\n const definition = routes.find((r) => r.kind === route.kind) as\n RouteDefinition<typeof route.kind> | undefined\n return definition?.href(route as never)\n },\n parseHref(href) {\n let url: URL\n try {\n url = new URL(href, BASE)\n } catch {\n return null\n }\n if (atStart(url) && url.hash.startsWith('#/')) {\n const legacy = new URL(url.hash.slice(1), BASE)\n // A malformed one is an ordinary fragment: the start it is on.\n if (deepLinkParams(legacy.pathname)) return parse(legacy)\n }\n return parse(url)\n },\n }\n}\n\n/** What a link brings beside its route, handled once on arrival and then cleared from the address. */\nexport interface ArrivalParams {\n /** An OAuth return: the connector that just connected (`?connected=<vendor>`). */\n connected?: string\n /** The OAuth return stays on the page it started from (`?stay=1`)\u2026 */\n stay?: string\n /** \u2026reopening a dialog there (`?reopen=accounts`). */\n reopen?: string\n /** A cancelled or denied consent (`?connect_error=<vendor>`). */\n connectError?: string\n /** A call recording to show (`?recording=crc-\u2026`), in its meeting chat (`?chat=cht-\u2026`). */\n recording?: string\n chat?: string\n /** The direct chat with a person (`?dm=usr-\u2026`): a shared file's email links to its sender. */\n dm?: string\n}\n\nconst USER_ID = /^usr-[a-zA-Z0-9]+$/\n\n/** The arrival parameters of a query string; unknown ones and malformed ids are ignored. */\nexport function readArrivalParams(search: string): ArrivalParams {\n const query = new URLSearchParams(search)\n const dm = query.get('dm')\n const fields: ArrivalParams = {\n connected: query.get('connected') ?? undefined,\n stay: query.get('stay') ?? undefined,\n reopen: query.get('reopen') ?? undefined,\n connectError: query.get('connect_error') ?? undefined,\n dm: dm && USER_ID.test(dm) ? dm : undefined,\n ...parseRecordingLinkParams(search),\n }\n return Object.fromEntries(Object.entries(fields).filter(([, value]) => value)) as ArrivalParams\n}\n\nconst arbiCodec = createRouteCodec(ARBI_ROUTES)\n\n/** The address of a route in an ARBI app (`ARBI_ROUTES`); a host's `hrefFor`. */\nexport const hrefFor = arbiCodec.hrefFor\n/** The route at an address of an ARBI app (`ARBI_ROUTES`). */\nexport const parseHref = arbiCodec.parseHref\n"],
|
|
5
|
-
"mappings": ";AAQA,SAAS,gCAAgC;AACzC,SAAS,mBAAmB,yBAA8C;
|
|
4
|
+
"sourcesContent": ["/**\n * The route codec: every address an ARBI app opens, as a typed route, from one route table.\n * `hrefFor(route)` writes a route's address and `parseHref(href)` reads one back, so a link, the\n * address bar (`useDeepLinkSync`), the sign-in's return address (`resolveAuthReturn`) and a printed\n * QR code all agree. A host with other addresses builds its own codec from its table\n * (`createRouteCodec`); ARBI's is `ARBI_ROUTES`.\n */\n\nimport { parseRecordingLinkParams } from '../calls/recording-link'\nimport { buildDeepLinkPath, parseDeepLinkPath, type DeepLinkParams } from './deep-link'\nimport type { LinkTarget } from '../provider/environment'\nimport { ENTITY_ID, entityIdFromPath } from './entity-id'\n\n/**\n * A place in the app. The kinds a kit links to are its `LinkTarget`s (a target without an address\n * here, a project, a workflow or a settings section, has no link); the rest are the app's own.\n */\nexport type ArbiRoute =\n | Exclude<LinkTarget, { kind: 'document' }>\n /** A document, at a version, a comment or a passage (`cnk-\u2026`) when given. */\n | {\n kind: 'document'\n documentId: string\n workspaceId?: string | null\n version?: number\n commentId?: string\n passageId?: string\n }\n /** The app's start (`/`). */\n | { kind: 'home' }\n /** A page by name (`/?view=tags`): a renamed page reads as its new name. */\n | { kind: 'page'; page: string }\n /** A UI action to run once (`/action/authorize-agent`). */\n | { kind: 'action'; action: string }\n /** Where a notification leads, once it has loaded (`/?notification=ntf-\u2026`). */\n | { kind: 'notification'; notificationId: string }\n /** The review of an access request (the request email's `/?review_access=ntf-\u2026`). */\n | { kind: 'review-access'; notificationId: string }\n /** A secure-mail message to claim (`/secure-mail/<uuid>`; its key rides in the fragment). */\n | { kind: 'secure-mail'; claimId: string }\n /** A shared file (`/shared-files/<id>`); none: the shared-files page. */\n | { kind: 'shared-file'; shareId?: string }\n /** A call (`/call/call-\u2026`), with a personal invite token (`?i=`) and its key fragment. */\n | { kind: 'call'; callId: string; invite?: string; fragment?: string }\n\nexport type ArbiRouteKind = ArbiRoute['kind']\ntype RouteOf<K extends ArbiRouteKind> = Extract<ArbiRoute, { kind: K }>\n\n/** One entry of a route table: how its routes are read from an address and written back. */\nexport interface RouteDefinition<K extends ArbiRouteKind = ArbiRouteKind> {\n kind: K\n /** The route at `url`, or null when the address is not this route. */\n parse(url: URL): RouteOf<K> | null\n /** The route's address (path, query, fragment); undefined when it has none. */\n href(route: RouteOf<K>): string | undefined\n}\n\n/** A route table's entry, of any kind. */\nexport type AnyRouteDefinition = { [K in ArbiRouteKind]: RouteDefinition<K> }[ArbiRouteKind]\n\n// \u2500\u2500 Building blocks of a route table \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\nconst segmentsOf = (pathname: string): string[] => pathname.split('/').filter(Boolean)\n\nconst DEEP_LINK_TOKENS = ['wrk-', 'con-', 'msg-', 'doc-', 'cnk-', 'cmt-']\n\n/**\n * Whether a pathname is meant as a deep link (a workspace token or `action` first), as opposed to\n * a page like `/`, `/login` or `/word/\u2026`. A deep link may still be malformed (`parseHref` is null).\n */\nexport function isDeepLinkPath(pathname: string): boolean {\n const first = segmentsOf(pathname)[0]\n return !!first && (first.startsWith('wrk-') || first === 'action' || first === 'entity')\n}\n\n/** A deep link's parts, or null for a path that is not a well-formed deep link. */\nfunction deepLinkParams(pathname: string): DeepLinkParams | null {\n if (!isDeepLinkPath(pathname)) return null\n const segments = segmentsOf(pathname)\n for (let i = 0; i < segments.length; i++) {\n if (segments[i] === 'action') i++\n else if (!DEEP_LINK_TOKENS.some((prefix) => segments[i].startsWith(prefix))) return null\n }\n return parseDeepLinkPath(pathname)\n}\n\n/** A route kept in a query parameter, on any path (`/?notification=\u2026`). */\nfunction queryRoute<K extends 'notification' | 'review-access'>(\n kind: K,\n key: string\n): RouteDefinition<K> {\n return {\n kind,\n parse: (url) => {\n const notificationId = url.searchParams.get(key)\n return notificationId ? ({ kind, notificationId } as RouteOf<K>) : null\n },\n href: ({ notificationId }: { notificationId: string }) =>\n `/?${key}=${encodeURIComponent(notificationId)}`,\n }\n}\n\ntype PathParams = Record<string, RegExp>\n\n/**\n * A route at a path pattern (`/secure-mail/:claimId`, `:name?` optional), each parameter checked\n * by its pattern; a trailing slash is tolerated. `query` maps route fields to query parameters,\n * `fragment` names the field kept in the fragment.\n */\nexport function pathRoute<K extends ArbiRouteKind>(\n kind: K,\n pattern: string,\n params: PathParams,\n { query = {}, fragment }: { query?: Record<string, string>; fragment?: string } = {}\n): RouteDefinition<K> {\n const parts = segmentsOf(pattern)\n return {\n kind,\n parse: (url) => {\n const segments = segmentsOf(url.pathname)\n if (segments.length > parts.length) return null\n const route: Record<string, string> = { kind }\n for (const [i, part] of parts.entries()) {\n const segment = segments[i]\n if (!part.startsWith(':')) {\n if (segment !== part) return null\n continue\n }\n const name = part.slice(1).replace(/\\?$/, '')\n if (segment === undefined) {\n if (part.endsWith('?')) continue\n return null\n }\n if (!params[name]?.test(segment)) return null\n route[name] = segment\n }\n for (const [field, key] of Object.entries(query)) {\n const value = url.searchParams.get(key)\n if (value) route[field] = value\n }\n if (fragment && url.hash.length > 1) route[fragment] = url.hash.slice(1)\n return route as unknown as RouteOf<K>\n },\n href: (route) => {\n const fields = route as unknown as Record<string, string | undefined>\n const path = parts\n .map((part) => (part.startsWith(':') ? fields[part.slice(1).replace(/\\?$/, '')] : part))\n .filter(Boolean)\n .join('/')\n const search = new URLSearchParams()\n for (const [field, key] of Object.entries(query))\n if (fields[field]) search.set(key, fields[field])\n const qs = search.toString()\n const hash = fragment && fields[fragment] ? `#${fields[fragment]}` : ''\n return `/${path}${qs ? `?${qs}` : ''}${hash}`\n },\n }\n}\n\n/** A page of the app's start (`/?view=<page>`), with the page's own query fields. */\nfunction viewQuery(view: string, fields: Record<string, string | undefined> = {}): string {\n const pairs = Object.entries({ view, ...fields }).filter(([, value]) => value)\n return `/?${pairs.map(([key, value]) => `${key}=${encodeURIComponent(value!)}`).join('&')}`\n}\n\nconst atStart = (url: URL) => segmentsOf(url.pathname).length === 0\n\n/**\n * Page names that were renamed, mapped to the page that replaced them: an old `?view=<name>` link\n * or a stored page still lands on the right page.\n */\nconst PAGE_ALIASES: Record<string, string> = {\n // Automations became Workflows (by hand, scheduled, on an event, after a task, or stepped).\n automations: 'workflows',\n // Dashboards became Analytics, the person's own page (not a workspace's).\n dashboards: 'analytics',\n}\n\n/** The page an old page name now means, or undefined when it was not renamed. */\nexport function renamedPage(page: string): string | undefined {\n return Object.prototype.hasOwnProperty.call(PAGE_ALIASES, page) ? PAGE_ALIASES[page] : undefined\n}\n\nconst UUID = /^[a-f0-9-]{36}$/i\nconst MAIL_DRAFT_MAX = 512\n\n/**\n * ARBI's addresses, first match wins: the notification links (on any path), the deep links\n * (`/wrk-\u2026/con-\u2026/msg-\u2026`, `/wrk-\u2026/doc-\u2026@v2/cmt-\u2026/cnk-\u2026`, `/action/\u2026`), the public pages and the\n * start's pages (`/?view=\u2026`).\n */\nexport const ARBI_ROUTES: readonly AnyRouteDefinition[] = [\n {\n kind: 'entity',\n parse: (url) => {\n const m = /^\\/(?:((?:wrk)-[a-zA-Z0-9]{8})\\/)?entity\\/([a-z]+-[a-zA-Z0-9]{8})\\/?$/.exec(\n url.pathname\n )\n return m ? { kind: 'entity', entityId: m[2], workspaceId: m[1] } : null\n },\n href: ({ entityId, workspaceId }) =>\n `/${workspaceId ? `${workspaceId}/` : ''}entity/${encodeURIComponent(entityId)}`,\n } satisfies RouteDefinition<'entity'>,\n queryRoute('review-access', 'review_access'),\n queryRoute('notification', 'notification'),\n {\n kind: 'action',\n parse: (url) => {\n const action = deepLinkParams(url.pathname)?.action\n return action ? { kind: 'action', action } : null\n },\n href: ({ action }) => buildDeepLinkPath({ action }),\n } satisfies RouteDefinition<'action'>,\n {\n kind: 'conversation',\n parse: (url) => {\n const p = deepLinkParams(url.pathname)\n if (!p?.workspaceId || !p.conversationId) return null\n return {\n kind: 'conversation',\n workspaceId: p.workspaceId,\n conversationId: p.conversationId,\n ...(p.messageId ? { messageId: p.messageId } : {}),\n }\n },\n href: ({ workspaceId, conversationId, messageId }) =>\n workspaceId ? buildDeepLinkPath({ workspaceId, conversationId, messageId }) : undefined,\n } satisfies RouteDefinition<'conversation'>,\n {\n kind: 'document',\n parse: (url) => {\n const p = deepLinkParams(url.pathname)\n if (!p?.workspaceId || !p.documentId) return null\n return {\n kind: 'document',\n workspaceId: p.workspaceId,\n documentId: p.documentId,\n ...(p.version !== undefined ? { version: p.version } : {}),\n ...(p.commentId ? { commentId: p.commentId } : {}),\n ...(p.chunkId ? { passageId: p.chunkId } : {}),\n }\n },\n href: ({ workspaceId, documentId, version, commentId, passageId }) =>\n workspaceId\n ? buildDeepLinkPath({ workspaceId, documentId, version, commentId, chunkId: passageId })\n : undefined,\n } satisfies RouteDefinition<'document'>,\n {\n kind: 'workspace',\n parse: (url) => {\n const p = deepLinkParams(url.pathname)\n return p?.workspaceId ? { kind: 'workspace', workspaceId: p.workspaceId } : null\n },\n href: ({ workspaceId }) => buildDeepLinkPath({ workspaceId }),\n } satisfies RouteDefinition<'workspace'>,\n pathRoute('secure-mail', '/secure-mail/:claimId', { claimId: UUID }),\n pathRoute('shared-file', '/shared-files/:shareId?', { shareId: /^[^/]+$/ }),\n pathRoute(\n 'call',\n '/call/:callId',\n { callId: /^call-[A-Za-z0-9]{8}$/ },\n { query: { invite: 'i' }, fragment: 'fragment' }\n ),\n {\n kind: 'mail',\n parse: (url) => {\n if (!atStart(url) || url.searchParams.get('view') !== 'mail') return null\n const draftId = url.searchParams.get('draft')\n return draftId && draftId.length <= MAIL_DRAFT_MAX\n ? { kind: 'mail', draftId }\n : { kind: 'mail' }\n },\n href: ({ draftId }) => viewQuery('mail', { draft: draftId }),\n } satisfies RouteDefinition<'mail'>,\n {\n kind: 'calendar',\n parse: (url) => {\n const direct = entityIdFromPath(url.pathname)\n if (direct?.startsWith('evt-')) return { kind: 'calendar', eventId: direct }\n if (!atStart(url) || url.searchParams.get('view') !== 'calendar') return null\n const eventId = url.searchParams.get('event')\n return eventId?.startsWith('evt-') && ENTITY_ID.test(eventId)\n ? { kind: 'calendar', eventId }\n : { kind: 'calendar' }\n },\n href: ({ eventId }) => viewQuery('calendar', { event: eventId }),\n } satisfies RouteDefinition<'calendar'>,\n {\n kind: 'page',\n parse: (url) => {\n const page = atStart(url) ? url.searchParams.get('view') : null\n return page ? { kind: 'page', page: renamedPage(page) ?? page } : null\n },\n href: ({ page }) => viewQuery(page),\n } satisfies RouteDefinition<'page'>,\n {\n kind: 'home',\n parse: (url) => (atStart(url) ? { kind: 'home' } : null),\n href: () => '/',\n } satisfies RouteDefinition<'home'>,\n]\n\nexport interface RouteCodec {\n /** The address of a route (a kit's link target too); undefined when it has none here. */\n hrefFor(route: ArbiRoute): string | undefined\n /**\n * The route at an address (a path, or a full URL of this origin). A legacy hash deep link\n * (`/#/wrk-\u2026`, the format before deep links moved to the path) reads as its path. Null: no route\n * of this table (an auth page, the Word add-in, a malformed deep link: see `isDeepLinkPath`).\n */\n parseHref(href: string): ArbiRoute | null\n}\n\nconst BASE = 'http://route.invalid'\n\n/** A codec over a route table: the first definition of a kind writes it; the first match reads. */\nexport function createRouteCodec(routes: readonly AnyRouteDefinition[]): RouteCodec {\n const parse = (url: URL): ArbiRoute | null => {\n for (const route of routes) {\n const match = route.parse(url)\n if (match) return match\n }\n return null\n }\n return {\n hrefFor(route) {\n const definition = routes.find((r) => r.kind === route.kind) as\n RouteDefinition<typeof route.kind> | undefined\n return definition?.href(route as never)\n },\n parseHref(href) {\n let url: URL\n try {\n url = new URL(href, BASE)\n } catch {\n return null\n }\n if (atStart(url) && url.hash.startsWith('#/')) {\n const legacy = new URL(url.hash.slice(1), BASE)\n // A malformed one is an ordinary fragment: the start it is on.\n if (deepLinkParams(legacy.pathname)) return parse(legacy)\n }\n return parse(url)\n },\n }\n}\n\n/** What a link brings beside its route, handled once on arrival and then cleared from the address. */\nexport interface ArrivalParams {\n /** An OAuth return: the connector that just connected (`?connected=<vendor>`). */\n connected?: string\n /** The OAuth return stays on the page it started from (`?stay=1`)\u2026 */\n stay?: string\n /** \u2026reopening a dialog there (`?reopen=accounts`). */\n reopen?: string\n /** A cancelled or denied consent (`?connect_error=<vendor>`). */\n connectError?: string\n /** A call recording to show (`?recording=crc-\u2026`), in its meeting chat (`?chat=cht-\u2026`). */\n recording?: string\n chat?: string\n /** The direct chat with a person (`?dm=usr-\u2026`): a shared file's email links to its sender. */\n dm?: string\n}\n\nconst USER_ID = /^usr-[a-zA-Z0-9]+$/\n\n/** The arrival parameters of a query string; unknown ones and malformed ids are ignored. */\nexport function readArrivalParams(search: string): ArrivalParams {\n const query = new URLSearchParams(search)\n const dm = query.get('dm')\n const fields: ArrivalParams = {\n connected: query.get('connected') ?? undefined,\n stay: query.get('stay') ?? undefined,\n reopen: query.get('reopen') ?? undefined,\n connectError: query.get('connect_error') ?? undefined,\n dm: dm && USER_ID.test(dm) ? dm : undefined,\n ...parseRecordingLinkParams(search),\n }\n return Object.fromEntries(Object.entries(fields).filter(([, value]) => value)) as ArrivalParams\n}\n\nconst arbiCodec = createRouteCodec(ARBI_ROUTES)\n\n/** The address of a route in an ARBI app (`ARBI_ROUTES`); a host's `hrefFor`. */\nexport const hrefFor = arbiCodec.hrefFor\n/** The route at an address of an ARBI app (`ARBI_ROUTES`). */\nexport const parseHref = arbiCodec.parseHref\n\n/** Canonical reference links, also used by presentation-only pills through the host. */\nexport function entityHrefFor(id: string, workspaceId?: string | null): string | undefined {\n const prefix = id.split('-')[0]\n if (prefix === 'doc' && workspaceId)\n return hrefFor({ kind: 'document', documentId: id, workspaceId })\n if (prefix === 'con' && workspaceId)\n return hrefFor({ kind: 'conversation', conversationId: id, workspaceId })\n if (prefix === 'wrk') return hrefFor({ kind: 'workspace', workspaceId: id })\n if (prefix === 'evt') return hrefFor({ kind: 'calendar', eventId: id })\n if (prefix === 'call') return hrefFor({ kind: 'call', callId: id })\n if (prefix === 'eml') return hrefFor({ kind: 'mail', draftId: id })\n return hrefFor({\n kind: 'entity',\n entityId: id,\n workspaceId: ['usr', 'agt', 'cht', 'prj', 'cal'].includes(prefix) ? undefined : workspaceId,\n })\n}\n"],
|
|
5
|
+
"mappings": ";AAQA,SAAS,gCAAgC;AACzC,SAAS,mBAAmB,yBAA8C;AAE1E,SAAS,WAAW,wBAAwB;AAmD5C,MAAM,aAAa,CAAC,aAA+B,SAAS,MAAM,GAAG,EAAE,OAAO,OAAO;AAErF,MAAM,mBAAmB,CAAC,QAAQ,QAAQ,QAAQ,QAAQ,QAAQ,MAAM;AAMjE,SAAS,eAAe,UAA2B;AACxD,QAAM,QAAQ,WAAW,QAAQ,EAAE,CAAC;AACpC,SAAO,CAAC,CAAC,UAAU,MAAM,WAAW,MAAM,KAAK,UAAU,YAAY,UAAU;AACjF;AAGA,SAAS,eAAe,UAAyC;AAC/D,MAAI,CAAC,eAAe,QAAQ,EAAG,QAAO;AACtC,QAAM,WAAW,WAAW,QAAQ;AACpC,WAAS,IAAI,GAAG,IAAI,SAAS,QAAQ,KAAK;AACxC,QAAI,SA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,aAAiD;AACzF,QAAM,SAAS,GAAG,MAAM,GAAG,EAAE,CAAC;AAC9B,MAAI,WAAW,SAAS;AACtB,WAAO,QAAQ,EAAE,MAAM,YAAY,YAAY,IAAI,YAAY,CAAC;AAClE,MAAI,WAAW,SAAS;AACtB,WAAO,QAAQ,EAAE,MAAM,gBAAgB,gBAAgB,IAAI,YAAY,CAAC;AAC1E,MAAI,WAAW,MAAO,QAAO,QAAQ,EAAE,MAAM,aAAa,aAAa,GAAG,CAAC;AAC3E,MAAI,WAAW,MAAO,QAAO,QAAQ,EAAE,MAAM,YAAY,SAAS,GAAG,CAAC;AACtE,MAAI,WAAW,OAAQ,QAAO,QAAQ,EAAE,MAAM,QAAQ,QAAQ,GAAG,CAAC;AAClE,MAAI,WAAW,MAAO,QAAO,QAAQ,EAAE,MAAM,QAAQ,SAAS,GAAG,CAAC;AAClE,SAAO,QAAQ;AAAA,IACb,MAAM;AAAA,IACN,UAAU;AAAA,IACV,aAAa,CAAC,OAAO,OAAO,OAAO,OAAO,KAAK,EAAE,SAAS,MAAM,IAAI,SAAY;AAAA,EAClF,CAAC;AACH;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/pages/index.cjs
CHANGED
|
@@ -2,66 +2,66 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkK5F2VNCX_cjs = require('../chunk-K5F2VNCX.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunk6INJQAGS_cjs = require('../chunk-6INJQAGS.cjs');
|
|
6
6
|
require('../chunk-DWRUGOTQ.cjs');
|
|
7
7
|
require('../chunk-KD66CBYO.cjs');
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-
|
|
12
|
-
|
|
8
|
+
require('../chunk-IPSR2PUU.cjs');
|
|
9
|
+
require('../chunk-LJTHFTQQ.cjs');
|
|
10
|
+
require('../chunk-UNSZLNA4.cjs');
|
|
11
|
+
require('../chunk-FC6VMY2L.cjs');
|
|
12
|
+
require('../chunk-FUGQ7YQW.cjs');
|
|
13
|
+
require('../chunk-QUMUAJ2P.cjs');
|
|
14
|
+
var chunkJ5CBCUQE_cjs = require('../chunk-J5CBCUQE.cjs');
|
|
13
15
|
require('../chunk-JWCVA4LC.cjs');
|
|
14
|
-
var
|
|
16
|
+
var chunkPP3KYFSS_cjs = require('../chunk-PP3KYFSS.cjs');
|
|
15
17
|
require('../chunk-223D4727.cjs');
|
|
16
18
|
require('../chunk-SNUBQMIS.cjs');
|
|
17
|
-
require('../chunk-
|
|
18
|
-
require('../chunk-
|
|
19
|
-
require('../chunk-
|
|
20
|
-
require('../chunk-GB5MN5FC.cjs');
|
|
21
|
-
require('../chunk-KL7R2IBY.cjs');
|
|
22
|
-
require('../chunk-6U3CYVZC.cjs');
|
|
23
|
-
require('../chunk-QUMUAJ2P.cjs');
|
|
24
|
-
var chunk4RR7ZZPD_cjs = require('../chunk-4RR7ZZPD.cjs');
|
|
19
|
+
require('../chunk-SOT7NPIB.cjs');
|
|
20
|
+
require('../chunk-BJRQHR7R.cjs');
|
|
21
|
+
var chunkPJ5OQ5VB_cjs = require('../chunk-PJ5OQ5VB.cjs');
|
|
25
22
|
var chunkYSAUOJA7_cjs = require('../chunk-YSAUOJA7.cjs');
|
|
26
|
-
var
|
|
23
|
+
var chunkJ37DOAGN_cjs = require('../chunk-J37DOAGN.cjs');
|
|
27
24
|
require('../chunk-QEMGGJB6.cjs');
|
|
28
25
|
var chunkQ25CZLK6_cjs = require('../chunk-Q25CZLK6.cjs');
|
|
29
26
|
var chunkMWHVETKN_cjs = require('../chunk-MWHVETKN.cjs');
|
|
30
27
|
require('../chunk-DTMBAFIL.cjs');
|
|
31
28
|
var chunkNSD37OF5_cjs = require('../chunk-NSD37OF5.cjs');
|
|
32
|
-
require('../chunk-
|
|
29
|
+
require('../chunk-DNHZYLPK.cjs');
|
|
30
|
+
require('../chunk-7G2LJMUG.cjs');
|
|
33
31
|
require('../chunk-WRTEKOQP.cjs');
|
|
34
32
|
require('../chunk-SK6HQ46Q.cjs');
|
|
35
|
-
require('../chunk-
|
|
36
|
-
require('../chunk-
|
|
37
|
-
require('../chunk-2P7VH2SK.cjs');
|
|
33
|
+
require('../chunk-WCT6FT2K.cjs');
|
|
34
|
+
require('../chunk-C25KF2TM.cjs');
|
|
38
35
|
require('../chunk-ZU2B2RZK.cjs');
|
|
39
36
|
require('../chunk-BH322H5B.cjs');
|
|
40
37
|
require('../chunk-M55XUF4L.cjs');
|
|
41
38
|
require('../chunk-EVZH6Z5O.cjs');
|
|
42
39
|
require('../chunk-S237ORM3.cjs');
|
|
43
40
|
require('../chunk-II2OEXHW.cjs');
|
|
44
|
-
require('../chunk-
|
|
41
|
+
require('../chunk-B5AOYT4U.cjs');
|
|
45
42
|
require('../chunk-AHDJXIUB.cjs');
|
|
46
|
-
require('../chunk-C2VVBU7K.cjs');
|
|
47
43
|
require('../chunk-S3GVFAFB.cjs');
|
|
48
44
|
require('../chunk-6UZC4XVV.cjs');
|
|
45
|
+
require('../chunk-IXCWZ4HC.cjs');
|
|
49
46
|
require('../chunk-VZOOGA47.cjs');
|
|
50
|
-
require('../chunk-
|
|
51
|
-
|
|
47
|
+
require('../chunk-DKY67DA6.cjs');
|
|
48
|
+
require('../chunk-ZQQVXRYZ.cjs');
|
|
49
|
+
require('../chunk-ZVEW3JBT.cjs');
|
|
52
50
|
var chunkMHIG6GGS_cjs = require('../chunk-MHIG6GGS.cjs');
|
|
53
51
|
require('../chunk-VG24E4JJ.cjs');
|
|
54
52
|
require('../chunk-U2FFG2B3.cjs');
|
|
53
|
+
require('../chunk-JTBWI74K.cjs');
|
|
54
|
+
require('../chunk-GD5OYIOV.cjs');
|
|
55
|
+
require('../chunk-VWSOHZK2.cjs');
|
|
56
|
+
require('../chunk-TMX7YFVM.cjs');
|
|
57
|
+
require('../chunk-3YZKDCWY.cjs');
|
|
58
|
+
var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
|
|
55
59
|
require('../chunk-SQCCQU3K.cjs');
|
|
56
60
|
require('../chunk-UDSHVNU3.cjs');
|
|
57
|
-
require('../chunk-PPCATBOY.cjs');
|
|
58
61
|
require('../chunk-IPSHAMO2.cjs');
|
|
59
|
-
|
|
62
|
+
require('../chunk-PPCATBOY.cjs');
|
|
63
|
+
var chunkHN56WWBR_cjs = require('../chunk-HN56WWBR.cjs');
|
|
60
64
|
require('../chunk-K67VMSOX.cjs');
|
|
61
|
-
require('../chunk-7G2LJMUG.cjs');
|
|
62
|
-
require('../chunk-WCT6FT2K.cjs');
|
|
63
|
-
require('../chunk-DKY67DA6.cjs');
|
|
64
|
-
require('../chunk-ZVEW3JBT.cjs');
|
|
65
65
|
require('../chunk-CVPV4I7Z.cjs');
|
|
66
66
|
require('../chunk-PLIF5CUV.cjs');
|
|
67
67
|
var react$1 = require('react');
|
|
@@ -74,7 +74,7 @@ var documentTools = require('@arbidocs/react/document-tools');
|
|
|
74
74
|
var viewers = require('@arbidocs/react/viewers');
|
|
75
75
|
|
|
76
76
|
var PAGE_TEMPLATES = [
|
|
77
|
-
|
|
77
|
+
chunk6INJQAGS_cjs.WORKSPACE_DASHBOARD_PAGE,
|
|
78
78
|
...chunkYSAUOJA7_cjs.DASHBOARD_TEMPLATES
|
|
79
79
|
];
|
|
80
80
|
function pageOfTemplate(template) {
|
|
@@ -446,7 +446,7 @@ function BlockEditor({
|
|
|
446
446
|
] }),
|
|
447
447
|
value && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
448
448
|
(value.kind === "chart" || value.kind === "metric") && /* @__PURE__ */ jsxRuntime.jsx(
|
|
449
|
-
|
|
449
|
+
chunkPJ5OQ5VB_cjs.PanelEditor,
|
|
450
450
|
{
|
|
451
451
|
value: react.panelOfBlock(value),
|
|
452
452
|
onChange: setPanel,
|
|
@@ -1255,7 +1255,7 @@ function WithNewFileMenu({ children }) {
|
|
|
1255
1255
|
const [open, setOpen] = react$1.useState(false);
|
|
1256
1256
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1257
1257
|
children(() => setOpen(true)),
|
|
1258
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1258
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6INJQAGS_cjs.ConnectedNewFileMenu, { open, onOpenChange: setOpen })
|
|
1259
1259
|
] });
|
|
1260
1260
|
}
|
|
1261
1261
|
function PageBlockView({
|
|
@@ -1271,7 +1271,7 @@ function PageBlockView({
|
|
|
1271
1271
|
case "chart":
|
|
1272
1272
|
case "metric":
|
|
1273
1273
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1274
|
-
|
|
1274
|
+
chunkJ37DOAGN_cjs.DashboardPanel,
|
|
1275
1275
|
{
|
|
1276
1276
|
panel: react.panelOfBlock(block),
|
|
1277
1277
|
actions,
|
|
@@ -1313,7 +1313,7 @@ function PageBlockView({
|
|
|
1313
1313
|
}
|
|
1314
1314
|
);
|
|
1315
1315
|
case "document":
|
|
1316
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1316
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkJ5CBCUQE_cjs.ConnectedDocumentToolsProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1317
1317
|
DocumentBlockView,
|
|
1318
1318
|
{
|
|
1319
1319
|
documentId: block.config.document,
|
|
@@ -1324,7 +1324,7 @@ function PageBlockView({
|
|
|
1324
1324
|
}
|
|
1325
1325
|
) });
|
|
1326
1326
|
case "gallery":
|
|
1327
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1327
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkJ5CBCUQE_cjs.ConnectedDocumentToolsProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1328
1328
|
GalleryBlockView,
|
|
1329
1329
|
{
|
|
1330
1330
|
documentIds: block.config.documents,
|
|
@@ -1336,18 +1336,18 @@ function PageBlockView({
|
|
|
1336
1336
|
) });
|
|
1337
1337
|
case "list":
|
|
1338
1338
|
return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: block.config.source === "documents" ? /* @__PURE__ */ jsxRuntime.jsx(WithNewFileMenu, { children: (onCreateNew) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1339
|
-
|
|
1339
|
+
chunk6INJQAGS_cjs.ConnectedListBlock,
|
|
1340
1340
|
{
|
|
1341
1341
|
config: block.config,
|
|
1342
1342
|
onCreateNew,
|
|
1343
1343
|
testId: testId && `${testId}-list`
|
|
1344
1344
|
}
|
|
1345
|
-
) }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1345
|
+
) }) : /* @__PURE__ */ jsxRuntime.jsx(chunk6INJQAGS_cjs.ConnectedListBlock, { config: block.config, testId: testId && `${testId}-list` }) });
|
|
1346
1346
|
case "carousel":
|
|
1347
|
-
return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1347
|
+
return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(chunk6INJQAGS_cjs.ConnectedCarouselBlock, { config: block.config, testId: testId && `${testId}-carousel` }) });
|
|
1348
1348
|
case "agenda":
|
|
1349
1349
|
return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1350
|
-
|
|
1350
|
+
chunk6INJQAGS_cjs.ConnectedAgendaBlock,
|
|
1351
1351
|
{
|
|
1352
1352
|
config: block.config,
|
|
1353
1353
|
className: "border-0 p-0",
|
|
@@ -1355,7 +1355,7 @@ function PageBlockView({
|
|
|
1355
1355
|
}
|
|
1356
1356
|
) });
|
|
1357
1357
|
case "start":
|
|
1358
|
-
return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(WithNewFileMenu, { children: (onCreateNew) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1358
|
+
return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(WithNewFileMenu, { children: (onCreateNew) => /* @__PURE__ */ jsxRuntime.jsx(chunk6INJQAGS_cjs.ConnectedStartBlock, { onCreateNew }) }) });
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
1361
|
function NewPageButton({
|
|
@@ -1610,9 +1610,9 @@ function OpenPageTransferDialog({
|
|
|
1610
1610
|
testId = "page-transfer"
|
|
1611
1611
|
}) {
|
|
1612
1612
|
const l = { ...DEFAULT_PAGE_TRANSFER_LABELS, ...labels };
|
|
1613
|
-
const { notify } =
|
|
1614
|
-
const { options, nameOf } =
|
|
1615
|
-
const trackTransfer =
|
|
1613
|
+
const { notify } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
1614
|
+
const { options, nameOf } = chunk6INJQAGS_cjs.useTransferTargets();
|
|
1615
|
+
const trackTransfer = chunk6INJQAGS_cjs.useExportStore((state) => state.trackTransfer);
|
|
1616
1616
|
const [targetId, setTargetId] = react$1.useState(null);
|
|
1617
1617
|
const [references, setReferences] = react$1.useState("link");
|
|
1618
1618
|
const [jobId, setJobId] = react$1.useState(null);
|
|
@@ -1624,7 +1624,7 @@ function OpenPageTransferDialog({
|
|
|
1624
1624
|
isFetching: isPlanning,
|
|
1625
1625
|
refetch: refetchPlan
|
|
1626
1626
|
} = react.usePlanWorkspaceTransfer(scope, mode, { enabled: !jobId });
|
|
1627
|
-
const failure =
|
|
1627
|
+
const failure = chunk6INJQAGS_cjs.planFailure(planError);
|
|
1628
1628
|
const start = react.useStartWorkspaceTransfer();
|
|
1629
1629
|
const cancel = react.useCancelWorkspaceTransfer();
|
|
1630
1630
|
const switchToPages = react.useSwitchToWorkspacePages();
|
|
@@ -1669,7 +1669,7 @@ function OpenPageTransferDialog({
|
|
|
1669
1669
|
if (!jobId) {
|
|
1670
1670
|
body = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
1671
1671
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1672
|
-
|
|
1672
|
+
chunkPP3KYFSS_cjs.ExportWorkspacePicker,
|
|
1673
1673
|
{
|
|
1674
1674
|
workspaces: options,
|
|
1675
1675
|
selectedId: targetId,
|
|
@@ -1678,7 +1678,7 @@ function OpenPageTransferDialog({
|
|
|
1678
1678
|
}
|
|
1679
1679
|
),
|
|
1680
1680
|
documents > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1681
|
-
|
|
1681
|
+
chunkPP3KYFSS_cjs.TransferReferencesChooser,
|
|
1682
1682
|
{
|
|
1683
1683
|
value: references,
|
|
1684
1684
|
onChange: setReferences,
|
|
@@ -1692,7 +1692,7 @@ function OpenPageTransferDialog({
|
|
|
1692
1692
|
),
|
|
1693
1693
|
views > 0 && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "pt-2 text-sm text-muted-foreground", "data-testid": `${testId}-views`, children: l.viewsStay(views) }),
|
|
1694
1694
|
failure && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pt-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1695
|
-
|
|
1695
|
+
chunkPP3KYFSS_cjs.TransferPlanError,
|
|
1696
1696
|
{
|
|
1697
1697
|
detail: typeof failure === "string" ? failure : void 0,
|
|
1698
1698
|
onRetry: () => void refetchPlan(),
|
|
@@ -1726,7 +1726,7 @@ function OpenPageTransferDialog({
|
|
|
1726
1726
|
] });
|
|
1727
1727
|
} else if (!finished || !items) {
|
|
1728
1728
|
body = job ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1729
|
-
|
|
1729
|
+
chunkPP3KYFSS_cjs.TransferProgressView,
|
|
1730
1730
|
{
|
|
1731
1731
|
title: l.progress(mode, target),
|
|
1732
1732
|
processed: job.processed ?? 0,
|
|
@@ -1901,7 +1901,7 @@ function ConnectedPagesPage({
|
|
|
1901
1901
|
testId = "pages"
|
|
1902
1902
|
}) {
|
|
1903
1903
|
const l = { ...DEFAULT_PAGES_PAGE_LABELS, ...labels };
|
|
1904
|
-
const { confirm, notify } =
|
|
1904
|
+
const { confirm, notify } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
1905
1905
|
const arbi = react.useArbi();
|
|
1906
1906
|
const me = arbi.isLoggedIn ? arbi.user.identity()?.externalId ?? null : null;
|
|
1907
1907
|
const workflowsOn = react.useFeature("workflows");
|
|
@@ -104,6 +104,10 @@ export interface OpenFilesOptions {
|
|
|
104
104
|
* workspace it is in, when the kit knows it.
|
|
105
105
|
*/
|
|
106
106
|
export type LinkTarget = {
|
|
107
|
+
kind: 'entity';
|
|
108
|
+
entityId: string;
|
|
109
|
+
workspaceId?: string | null;
|
|
110
|
+
} | {
|
|
107
111
|
kind: 'document';
|
|
108
112
|
documentId: string;
|
|
109
113
|
workspaceId?: string | null;
|