@arbidocs/blocks 0.4.159 → 0.4.161
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -9
- package/dist/{ConnectedNativeDocxComparison-R6RU5TZE.cjs → ConnectedNativeDocxComparison-GLHOGUP6.cjs} +12 -11
- package/dist/{ConnectedNativeDocxComparison-R6RU5TZE.cjs.map → ConnectedNativeDocxComparison-GLHOGUP6.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-XMZ5KLD4.js → ConnectedNativeDocxComparison-LKIMKOTA.js} +11 -10
- package/dist/{ConnectedStreamedWordArtifact-IXRJ7MUE.js.map → ConnectedNativeDocxComparison-LKIMKOTA.js.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-NGUK2AX6.js → ConnectedNativeDocxEditor-6LNYWZ3P.js} +10 -9
- package/dist/{ConnectedNativeDocxEditor-NGUK2AX6.js.map → ConnectedNativeDocxEditor-6LNYWZ3P.js.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-LBATSM3M.cjs → ConnectedNativeDocxEditor-M3UGWL6K.cjs} +12 -11
- package/dist/{ConnectedNativeDocxEditor-LBATSM3M.cjs.map → ConnectedNativeDocxEditor-M3UGWL6K.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-IXRJ7MUE.js → ConnectedStreamedWordArtifact-432HT7DK.js} +11 -10
- package/dist/{ConnectedNativeDocxComparison-XMZ5KLD4.js.map → ConnectedStreamedWordArtifact-432HT7DK.js.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-CWFR6A37.cjs → ConnectedStreamedWordArtifact-COEXL5IT.cjs} +12 -11
- package/dist/ConnectedStreamedWordArtifact-COEXL5IT.cjs.map +1 -0
- package/dist/{FactTextEditor-YESAU2IJ.js → FactTextEditor-ABKKJOCY.js} +2 -2
- package/dist/FactTextEditor-ABKKJOCY.js.map +1 -0
- package/dist/{FactTextEditor-YUPBCTXK.cjs → FactTextEditor-GYN5RHJT.cjs} +2 -2
- package/dist/FactTextEditor-GYN5RHJT.cjs.map +1 -0
- package/dist/{WorkspaceTableView-EYLEUZZT.cjs → WorkspaceTableView-AQTF5F6T.cjs} +6 -5
- package/dist/WorkspaceTableView-AQTF5F6T.cjs.map +1 -0
- package/dist/{WorkspaceTableView-DWUE4VQF.js → WorkspaceTableView-PTB5BPVA.js} +4 -3
- package/dist/WorkspaceTableView-PTB5BPVA.js.map +1 -0
- package/dist/agents/index.cjs +263 -263
- package/dist/agents/index.js +6 -6
- package/dist/agents/skills/skillLibrary.d.ts +1 -1
- package/dist/{chunk-FPHTSNOE.js → chunk-2AKIMCDD.js} +3 -3
- package/dist/{chunk-FPHTSNOE.js.map → chunk-2AKIMCDD.js.map} +1 -1
- package/dist/{chunk-YNMO3DSR.js → chunk-2AMYT2HQ.js} +3 -3
- package/dist/{chunk-YNMO3DSR.js.map → chunk-2AMYT2HQ.js.map} +1 -1
- package/dist/{chunk-MSFQDELO.cjs → chunk-3CUORKDL.cjs} +4 -4
- package/dist/{chunk-MSFQDELO.cjs.map → chunk-3CUORKDL.cjs.map} +1 -1
- package/dist/{chunk-MNG7N6M2.js → chunk-3PQIWOTZ.js} +122 -57
- package/dist/chunk-3PQIWOTZ.js.map +1 -0
- package/dist/chunk-5C7DRQQE.cjs +1891 -0
- package/dist/chunk-5C7DRQQE.cjs.map +1 -0
- package/dist/{chunk-F57LNUSZ.js → chunk-5NWY3FXQ.js} +24 -57
- package/dist/chunk-5NWY3FXQ.js.map +1 -0
- package/dist/{chunk-ISHFVKVU.js → chunk-5WLORPGX.js} +4 -4
- package/dist/{chunk-ISHFVKVU.js.map → chunk-5WLORPGX.js.map} +1 -1
- package/dist/{chunk-FAXXN7KI.cjs → chunk-5Y6V7F6W.cjs} +53 -4
- package/dist/chunk-5Y6V7F6W.cjs.map +1 -0
- package/dist/{chunk-6QAAIDQQ.cjs → chunk-6UTIAHQG.cjs} +60 -60
- package/dist/{chunk-6QAAIDQQ.cjs.map → chunk-6UTIAHQG.cjs.map} +1 -1
- package/dist/{chunk-KCSIX7CY.js → chunk-6XIXNH26.js} +3 -3
- package/dist/{chunk-KCSIX7CY.js.map → chunk-6XIXNH26.js.map} +1 -1
- package/dist/{chunk-YBJ4QGNH.cjs → chunk-ANLTECZ6.cjs} +8 -8
- package/dist/{chunk-YBJ4QGNH.cjs.map → chunk-ANLTECZ6.cjs.map} +1 -1
- package/dist/{chunk-Q2XGM372.cjs → chunk-AR6A2PMV.cjs} +4 -4
- package/dist/{chunk-Q2XGM372.cjs.map → chunk-AR6A2PMV.cjs.map} +1 -1
- package/dist/{chunk-KBO75NLM.cjs → chunk-AYJZRBHG.cjs} +7 -7
- package/dist/{chunk-KBO75NLM.cjs.map → chunk-AYJZRBHG.cjs.map} +1 -1
- package/dist/{chunk-FM3IRQJW.cjs → chunk-AYKE6USO.cjs} +12 -12
- package/dist/chunk-AYKE6USO.cjs.map +1 -0
- package/dist/chunk-BGJZVJJM.cjs +63 -0
- package/dist/chunk-BGJZVJJM.cjs.map +1 -0
- package/dist/{chunk-ECW2R2KF.cjs → chunk-BPL5RLNN.cjs} +27 -27
- package/dist/{chunk-ECW2R2KF.cjs.map → chunk-BPL5RLNN.cjs.map} +1 -1
- package/dist/{chunk-CNHUJRQ4.cjs → chunk-EFEFLBRM.cjs} +21 -55
- package/dist/chunk-EFEFLBRM.cjs.map +1 -0
- package/dist/{chunk-ETZ5A3GU.js → chunk-EVO2UNX3.js} +3 -3
- package/dist/chunk-EVO2UNX3.js.map +1 -0
- package/dist/{chunk-P6RIBIVN.js → chunk-FMJGVAWX.js} +8 -9
- package/dist/chunk-FMJGVAWX.js.map +1 -0
- package/dist/chunk-H5542IOD.cjs +108 -0
- package/dist/chunk-H5542IOD.cjs.map +1 -0
- package/dist/{chunk-VF5EUAIV.js → chunk-H7PHANI4.js} +3 -3
- package/dist/chunk-H7PHANI4.js.map +1 -0
- package/dist/chunk-HQJL7FSY.js +58 -0
- package/dist/chunk-HQJL7FSY.js.map +1 -0
- package/dist/{chunk-OFV3PRF2.cjs → chunk-HRDVQERS.cjs} +7 -7
- package/dist/{chunk-OFV3PRF2.cjs.map → chunk-HRDVQERS.cjs.map} +1 -1
- package/dist/{chunk-3VULDTNL.cjs → chunk-HUNX4CQG.cjs} +4 -4
- package/dist/chunk-HUNX4CQG.cjs.map +1 -0
- package/dist/{chunk-2BHDRVVL.cjs → chunk-I6I34FDU.cjs} +38 -37
- package/dist/chunk-I6I34FDU.cjs.map +1 -0
- package/dist/chunk-IWVOZREF.js +12 -0
- package/dist/chunk-IWVOZREF.js.map +1 -0
- package/dist/chunk-J7YHBMBB.js +1834 -0
- package/dist/chunk-J7YHBMBB.js.map +1 -0
- package/dist/{chunk-SDOEHEJP.js → chunk-JMQLTMJ7.js} +53 -5
- package/dist/chunk-JMQLTMJ7.js.map +1 -0
- package/dist/{chunk-TF7HN5EU.js → chunk-JNE2XEXD.js} +12 -12
- package/dist/chunk-JNE2XEXD.js.map +1 -0
- package/dist/{chunk-QKR5LWDO.js → chunk-K7CZFNJ2.js} +7 -7
- package/dist/{chunk-QKR5LWDO.js.map → chunk-K7CZFNJ2.js.map} +1 -1
- package/dist/{chunk-4RPBUMHB.cjs → chunk-KMZO5W6D.cjs} +4 -4
- package/dist/chunk-KMZO5W6D.cjs.map +1 -0
- package/dist/{chunk-FTZ45WHY.js → chunk-KNCJSPXV.js} +5020 -4014
- package/dist/chunk-KNCJSPXV.js.map +1 -0
- package/dist/{chunk-3OCNUKGX.js → chunk-KQWC4YBX.js} +3 -3
- package/dist/{chunk-3OCNUKGX.js.map → chunk-KQWC4YBX.js.map} +1 -1
- package/dist/{chunk-TC3RQNEX.cjs → chunk-L4KWTDFE.cjs} +5 -5
- package/dist/chunk-L4KWTDFE.cjs.map +1 -0
- package/dist/{chunk-VTTZZ4FN.js → chunk-LH3JAZ33.js} +5 -5
- package/dist/chunk-LH3JAZ33.js.map +1 -0
- package/dist/{chunk-P2YM67Y5.cjs → chunk-LQYPOWKN.cjs} +14 -21
- package/dist/chunk-LQYPOWKN.cjs.map +1 -0
- package/dist/{chunk-RATEAOKT.js → chunk-NOXGEQQR.js} +7 -13
- package/dist/chunk-NOXGEQQR.js.map +1 -0
- package/dist/{chunk-NPLGB4LI.cjs → chunk-NUAC5GTQ.cjs} +5115 -4077
- package/dist/chunk-NUAC5GTQ.cjs.map +1 -0
- package/dist/chunk-NYECCTB3.js +101 -0
- package/dist/chunk-NYECCTB3.js.map +1 -0
- package/dist/{chunk-GC2FSPSQ.cjs → chunk-O5E3NKPI.cjs} +128 -58
- package/dist/chunk-O5E3NKPI.cjs.map +1 -0
- package/dist/{chunk-SZOFGU7W.js → chunk-O5XREO7H.js} +3 -3
- package/dist/{chunk-SZOFGU7W.js.map → chunk-O5XREO7H.js.map} +1 -1
- package/dist/{chunk-OOU4QLRK.cjs → chunk-OHCYJFV2.cjs} +9 -9
- package/dist/{chunk-OOU4QLRK.cjs.map → chunk-OHCYJFV2.cjs.map} +1 -1
- package/dist/{chunk-DEPF5LQI.js → chunk-OKRYNQPH.js} +3 -3
- package/dist/chunk-OKRYNQPH.js.map +1 -0
- package/dist/{chunk-KFMRBZQK.js → chunk-PCL7IEZO.js} +21 -20
- package/dist/chunk-PCL7IEZO.js.map +1 -0
- package/dist/chunk-RFB7B6XG.cjs +169 -0
- package/dist/chunk-RFB7B6XG.cjs.map +1 -0
- package/dist/{chunk-SZSJGZSO.js → chunk-SQQU3WRB.js} +714 -5
- package/dist/chunk-SQQU3WRB.js.map +1 -0
- package/dist/{chunk-OALEDG67.cjs → chunk-TNESYDBR.cjs} +5 -5
- package/dist/{chunk-OALEDG67.cjs.map → chunk-TNESYDBR.cjs.map} +1 -1
- package/dist/chunk-TTS353W2.js +163 -0
- package/dist/chunk-TTS353W2.js.map +1 -0
- package/dist/{chunk-CROGFB46.cjs → chunk-U7OUZHBH.cjs} +753 -2
- package/dist/chunk-U7OUZHBH.cjs.map +1 -0
- package/dist/{chunk-BQ77KSXU.js → chunk-UORU5S7Y.js} +3 -3
- package/dist/{chunk-BQ77KSXU.js.map → chunk-UORU5S7Y.js.map} +1 -1
- package/dist/{chunk-FYZXDZM7.js → chunk-VFF76GTB.js} +4 -4
- package/dist/{chunk-FYZXDZM7.js.map → chunk-VFF76GTB.js.map} +1 -1
- package/dist/{chunk-E4H5H2C3.cjs → chunk-VYTK2WJB.cjs} +4 -4
- package/dist/{chunk-E4H5H2C3.cjs.map → chunk-VYTK2WJB.cjs.map} +1 -1
- package/dist/{chunk-XI37A7HH.js → chunk-WKSP73RU.js} +3 -3
- package/dist/{chunk-XI37A7HH.js.map → chunk-WKSP73RU.js.map} +1 -1
- package/dist/chunk-WP4VIOOA.cjs +15 -0
- package/dist/chunk-WP4VIOOA.cjs.map +1 -0
- package/dist/{chunk-YF3QUHKN.cjs → chunk-X3XPXEIM.cjs} +14 -15
- package/dist/chunk-X3XPXEIM.cjs.map +1 -0
- package/dist/{chunk-VZPFYZZU.cjs → chunk-Z2HEBOA3.cjs} +8 -8
- package/dist/{chunk-VZPFYZZU.cjs.map → chunk-Z2HEBOA3.cjs.map} +1 -1
- package/dist/{chunk-Q7CQYYZW.cjs → chunk-ZMYW5M75.cjs} +5 -5
- package/dist/chunk-ZMYW5M75.cjs.map +1 -0
- package/dist/{chunk-7UENVUA6.js → chunk-ZW2AWACP.js} +3 -3
- package/dist/{chunk-7UENVUA6.js.map → chunk-ZW2AWACP.js.map} +1 -1
- package/dist/citations/index.cjs +10 -10
- package/dist/citations/index.js +2 -2
- package/dist/collaboration/contacts/contact-form.d.ts +47 -0
- package/dist/collaboration/contacts/index.d.ts +3 -1
- package/dist/collaboration/contacts/invite-plan.d.ts +46 -0
- package/dist/collaboration/contacts/parseEmails.d.ts +7 -0
- package/dist/collaboration/index.cjs +163 -83
- package/dist/collaboration/index.js +2 -2
- package/dist/components/ActionLink.d.ts +1 -1
- package/dist/components/TeamGrid.d.ts +1 -1
- package/dist/components/editorial/{ProfileCard.d.ts → EditorialProfileCard.d.ts} +2 -2
- package/dist/components/editorial/index.d.ts +1 -1
- package/dist/connect/docx.cjs +14 -13
- package/dist/connect/docx.d.ts +1 -1
- package/dist/connect/docx.js +10 -9
- package/dist/connect/index.cjs +22097 -14743
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +11 -7
- package/dist/connect/index.js +15203 -7912
- package/dist/connect/index.js.map +1 -1
- package/dist/connect/viewer.cjs +83 -138
- package/dist/connect/viewer.cjs.map +1 -1
- package/dist/connect/viewer.d.ts +3 -2
- package/dist/connect/viewer.js +25 -82
- package/dist/connect/viewer.js.map +1 -1
- package/dist/connection/ConnectedSettings.d.ts +3 -2
- package/dist/connection/ConnectionProvider.d.ts +5 -4
- package/dist/connection/StreamedArtifact.d.ts +1 -1
- package/dist/connection/billing/index.d.ts +3 -3
- package/dist/connection/billing/support.d.ts +4 -7
- package/dist/connection/contacts/ConnectedAddContacts.d.ts +9 -0
- package/dist/connection/contacts/ConnectedContactCardForm.d.ts +11 -0
- package/dist/connection/contacts/ConnectedContactToggle.d.ts +16 -0
- package/dist/connection/contacts/ConnectedContactsDirectory.d.ts +10 -0
- package/dist/connection/contacts/ImportVcf.d.ts +29 -0
- package/dist/connection/contacts/index.d.ts +5 -0
- package/dist/connection/defaultHost.d.ts +9 -0
- package/dist/connection/docx/ConnectedNativeDocxEditor.d.ts +3 -3
- package/dist/connection/docx/support.d.ts +10 -9
- package/dist/connection/files/bulk/ConnectedFilesBulkActions.d.ts +22 -0
- package/dist/connection/files/bulk/useDocumentBulkActions.d.ts +19 -0
- package/dist/connection/files/explorer/FileTiles.d.ts +6 -3
- package/dist/connection/files/fields/ConnectedBulkTagEditor.d.ts +16 -0
- package/dist/connection/files/fields/ConnectedFieldsEditor.d.ts +40 -0
- package/dist/connection/files/fields/ConnectedFieldsManager.d.ts +33 -0
- package/dist/connection/files/fields/ConnectedTagEditorDialog.d.ts +20 -0
- package/dist/connection/files/fields/ConnectedTagForm.d.ts +54 -0
- package/dist/connection/files/fields/DocumentFieldParts.d.ts +33 -0
- package/dist/connection/files/fields/DocumentUser.d.ts +11 -0
- package/dist/connection/files/fields/documentField.d.ts +48 -0
- package/dist/connection/files/fields/useFieldWrites.d.ts +20 -0
- package/dist/connection/files/fields/useFieldsApply.d.ts +49 -0
- package/dist/connection/files/fields/useMemberLookup.d.ts +3 -0
- package/dist/connection/files/grid/ConnectedTagEntity.d.ts +19 -0
- package/dist/connection/files/grid/cells.d.ts +85 -0
- package/dist/connection/files/grid/documentColumns.d.ts +66 -0
- package/dist/connection/files/grid/documentGridBus.d.ts +48 -0
- package/dist/connection/files/grid/documentStatus.d.ts +43 -0
- package/dist/connection/files/grid/familyMeta.d.ts +21 -0
- package/dist/connection/files/grid/tagColumn.d.ts +23 -0
- package/dist/connection/files/grid/useDocumentGridSync.d.ts +48 -0
- package/dist/connection/files/grid/useDocumentTable.d.ts +30 -0
- package/dist/connection/files/index.d.ts +36 -2
- package/dist/connection/files/move/ConnectedMoveToFolder.d.ts +31 -0
- package/dist/connection/files/page/ConnectedFilesPage.d.ts +86 -0
- package/dist/connection/files/page/DocumentsFilterBarActions.d.ts +39 -0
- package/dist/connection/files/page/DocumentsUploadButton.d.ts +25 -0
- package/dist/connection/files/page/PersistedGridView.d.ts +6 -0
- package/dist/connection/files/page/ProgressiveLoadingChip.d.ts +12 -0
- package/dist/connection/files/page/useDocumentNavigation.d.ts +20 -0
- package/dist/connection/files/review/ConnectedAiReview.d.ts +40 -0
- package/dist/connection/files/review/reviewProgress.d.ts +2 -0
- package/dist/connection/files/store.d.ts +96 -0
- package/dist/connection/files/useDocumentFilters.d.ts +54 -0
- package/dist/connection/files/views/ViewSelector.d.ts +33 -0
- package/dist/connection/files/views/tableViews.d.ts +22 -0
- package/dist/connection/files/views/useTableViews.d.ts +22 -0
- package/dist/connection/mail/ConnectedMailbox.d.ts +2 -2
- package/dist/connection/messenger/ChatAttachments.d.ts +15 -0
- package/dist/connection/messenger/ConnectedChatThread.d.ts +21 -0
- package/dist/connection/messenger/ConnectedGroupMembers.d.ts +20 -0
- package/dist/connection/messenger/ConnectedMessenger.d.ts +52 -0
- package/dist/connection/messenger/index.d.ts +6 -0
- package/dist/connection/messenger/types.d.ts +103 -0
- package/dist/connection/messenger/useMessengerRows.d.ts +19 -0
- package/dist/connection/tags/ConnectedTagsPage.d.ts +2 -35
- package/dist/connection/viewer/ConnectedDocumentToolsProvider.d.ts +19 -2
- package/dist/connection/viewer/ConnectedDocumentViewer.d.ts +1 -1
- package/dist/connection/viewer/support.d.ts +21 -15
- package/dist/connection/workspaceData.d.ts +134 -8
- package/dist/facts/index.cjs +3 -3
- package/dist/facts/index.js +2 -2
- package/dist/files/bulk/BulkActionsBar.d.ts +9 -5
- package/dist/files/cells/DocumentNameCell.d.ts +4 -2
- package/dist/files/cells/MultiSelectCellEditor.d.ts +13 -0
- package/dist/files/cells/RelatedDocsCell.d.ts +2 -1
- package/dist/files/cells/index.d.ts +1 -0
- package/dist/files/documentColumns.d.ts +15 -0
- package/dist/files/folders/DocumentsFolderButton.d.ts +26 -0
- package/dist/files/folders/FolderTreePicker.d.ts +16 -0
- package/dist/files/folders/index.d.ts +2 -0
- package/dist/files/index.cjs +430 -434
- package/dist/files/index.d.ts +4 -1
- package/dist/files/index.js +5 -5
- package/dist/files/navigator/DocumentSearchList.d.ts +19 -0
- package/dist/files/navigator/ExplorerFileNavigator.d.ts +23 -0
- package/dist/files/navigator/NavDocumentPicker.d.ts +15 -0
- package/dist/files/navigator/NavigatorPickerBar.d.ts +26 -0
- package/dist/files/navigator/index.d.ts +5 -0
- package/dist/files/navigator/types.d.ts +7 -0
- package/dist/files/tags/BulkTagEditor.d.ts +2 -1
- package/dist/files/tags/index.d.ts +0 -2
- package/dist/files/visibility.d.ts +6 -5
- package/dist/home/StartTiles.d.ts +1 -1
- package/dist/home/index.cjs +30 -30
- package/dist/home/index.js +5 -5
- package/dist/index.cjs +684 -694
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +22 -134
- package/dist/index.js.map +1 -1
- package/dist/provider/{BlocksProvider.d.ts → environment.d.ts} +8 -10
- package/dist/provider/host.d.ts +44 -0
- package/dist/retrieval/index.cjs +4 -4
- package/dist/retrieval/index.js +2 -2
- package/dist/shell/index.cjs +44 -44
- package/dist/shell/index.js +3 -3
- package/dist/shell/types.d.ts +1 -1
- package/dist/site/index.cjs +61 -61
- package/dist/site/index.js +2 -2
- package/dist/studio/index.cjs +86 -87
- package/dist/studio/index.cjs.map +1 -1
- package/dist/studio/index.js +15 -16
- package/dist/studio/index.js.map +1 -1
- package/dist/workflow-canvas/index.cjs +28 -27
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/dist/workflow-canvas/index.js +11 -10
- package/dist/workflow-canvas/index.js.map +1 -1
- package/dist/workspaces/WorkspaceCard.d.ts +1 -1
- package/dist/workspaces/index.cjs +20 -20
- package/dist/workspaces/index.js +4 -4
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/ConnectedStreamedWordArtifact-CWFR6A37.cjs.map +0 -1
- package/dist/FactTextEditor-YESAU2IJ.js.map +0 -1
- package/dist/FactTextEditor-YUPBCTXK.cjs.map +0 -1
- package/dist/WorkspaceTableView-DWUE4VQF.js.map +0 -1
- package/dist/WorkspaceTableView-EYLEUZZT.cjs.map +0 -1
- package/dist/chunk-2BHDRVVL.cjs.map +0 -1
- package/dist/chunk-3VULDTNL.cjs.map +0 -1
- package/dist/chunk-4RPBUMHB.cjs.map +0 -1
- package/dist/chunk-5ZIYPZYE.js +0 -2748
- package/dist/chunk-5ZIYPZYE.js.map +0 -1
- package/dist/chunk-6I6CVX5G.cjs +0 -22
- package/dist/chunk-6I6CVX5G.cjs.map +0 -1
- package/dist/chunk-7NL6WJER.cjs +0 -682
- package/dist/chunk-7NL6WJER.cjs.map +0 -1
- package/dist/chunk-CB4TIDEX.cjs +0 -54
- package/dist/chunk-CB4TIDEX.cjs.map +0 -1
- package/dist/chunk-CNHUJRQ4.cjs.map +0 -1
- package/dist/chunk-CROGFB46.cjs.map +0 -1
- package/dist/chunk-DEPF5LQI.js.map +0 -1
- package/dist/chunk-ETZ5A3GU.js.map +0 -1
- package/dist/chunk-EYJMMGXF.js +0 -19
- package/dist/chunk-EYJMMGXF.js.map +0 -1
- package/dist/chunk-F57LNUSZ.js.map +0 -1
- package/dist/chunk-FAXXN7KI.cjs.map +0 -1
- package/dist/chunk-FM3IRQJW.cjs.map +0 -1
- package/dist/chunk-FTZ45WHY.js.map +0 -1
- package/dist/chunk-GC2FSPSQ.cjs.map +0 -1
- package/dist/chunk-KDLX5AA7.js +0 -49
- package/dist/chunk-KDLX5AA7.js.map +0 -1
- package/dist/chunk-KFMRBZQK.js.map +0 -1
- package/dist/chunk-MNG7N6M2.js.map +0 -1
- package/dist/chunk-NPLGB4LI.cjs.map +0 -1
- package/dist/chunk-P2YM67Y5.cjs.map +0 -1
- package/dist/chunk-P6RIBIVN.js.map +0 -1
- package/dist/chunk-Q7CQYYZW.cjs.map +0 -1
- package/dist/chunk-QJFJ5JBF.cjs +0 -2838
- package/dist/chunk-QJFJ5JBF.cjs.map +0 -1
- package/dist/chunk-RATEAOKT.js.map +0 -1
- package/dist/chunk-SDOEHEJP.js.map +0 -1
- package/dist/chunk-SZSJGZSO.js.map +0 -1
- package/dist/chunk-TC3RQNEX.cjs.map +0 -1
- package/dist/chunk-TF7HN5EU.js.map +0 -1
- package/dist/chunk-VF5EUAIV.js.map +0 -1
- package/dist/chunk-VTTZZ4FN.js.map +0 -1
- package/dist/chunk-WK6FVIF7.js +0 -654
- package/dist/chunk-WK6FVIF7.js.map +0 -1
- package/dist/chunk-YF3QUHKN.cjs.map +0 -1
- package/dist/connection/ArbiAppProvider.d.ts +0 -16
- package/dist/connection/files/support.d.ts +0 -40
- package/dist/files/tags/DocTagPopover.d.ts +0 -113
- package/dist/files/tags/TagManager.d.ts +0 -54
package/dist/chunk-WK6FVIF7.js
DELETED
|
@@ -1,654 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { ModalSection, ModalSectionTitle } from './chunk-TX2ZICS7.js';
|
|
3
|
-
import { useMemo } from 'react';
|
|
4
|
-
import { Gift, AtSign, Contact, Mail, Phone, MoreHorizontal, Download, UserPlus, MoreVertical, Plus, KeyRound, Loader2, BellOff, Bell, X, ChevronsUpDown, AlertCircle, XCircle, CheckCircle } from 'lucide-react';
|
|
5
|
-
import { Textarea, Button, Avatar, AvatarImage, AvatarFallback, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, ScrollArea, Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, DialogFooter, Tooltip, TooltipTrigger, TooltipContent, Popover, PopoverTrigger, PopoverContent, Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem } from '@arbidocs/react/ui';
|
|
6
|
-
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
7
|
-
|
|
8
|
-
// src/collaboration/contacts/parseEmails.ts
|
|
9
|
-
var MAX_INVITE_EMAILS = 100;
|
|
10
|
-
var EMAIL = /^[^\s@,;]+@[^\s@,;]+\.[^\s@,;]+$/;
|
|
11
|
-
function parseEmails(text) {
|
|
12
|
-
const parts = text.split(/[\s,;]+/).map((e) => e.trim().toLowerCase());
|
|
13
|
-
return [...new Set(parts.filter((e) => EMAIL.test(e)))];
|
|
14
|
-
}
|
|
15
|
-
var DEFAULT_CONTACT_OUTCOME_LABELS = {
|
|
16
|
-
contact_added: "Added to your colleagues",
|
|
17
|
-
already_contact: "Already one of your colleagues",
|
|
18
|
-
invited: "Invitation sent",
|
|
19
|
-
reinvited: "Invitation sent again",
|
|
20
|
-
not_resent_still_pending: "Invitation already pending",
|
|
21
|
-
failed: "Could not add this address"
|
|
22
|
-
};
|
|
23
|
-
function toAddContactsRow(row, labels = {}) {
|
|
24
|
-
const l = { ...DEFAULT_CONTACT_OUTCOME_LABELS, ...labels };
|
|
25
|
-
switch (row.outcome) {
|
|
26
|
-
case "contact_added":
|
|
27
|
-
case "already_contact":
|
|
28
|
-
case "invited":
|
|
29
|
-
case "reinvited":
|
|
30
|
-
return { email: row.email ?? "", status: "success", message: l[row.outcome] };
|
|
31
|
-
case "not_resent_still_pending":
|
|
32
|
-
return { email: row.email ?? "", status: "pending", message: l.not_resent_still_pending };
|
|
33
|
-
default:
|
|
34
|
-
return {
|
|
35
|
-
email: row.email ?? "",
|
|
36
|
-
status: row.status === "failed" || row.outcome === "failed" ? "failed" : "pending",
|
|
37
|
-
message: row.outcome_detail ?? l.failed
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
var toAddContactsRows = (rows, labels) => rows.map((r) => toAddContactsRow(r, labels));
|
|
42
|
-
var DEFAULT_ADD_CONTACTS_LABELS = {
|
|
43
|
-
placeholder: "name@example.com",
|
|
44
|
-
hint: "Paste one or multiple emails \u2014 separated by commas, spaces, or new lines.",
|
|
45
|
-
add: (count) => `Add${count > 0 ? ` (${count})` : ""}`,
|
|
46
|
-
addOverMax: (count, max) => `Add (${count}) - Max ${max}`,
|
|
47
|
-
adding: "Adding...",
|
|
48
|
-
cancel: "Cancel",
|
|
49
|
-
results: "Results",
|
|
50
|
-
email: "Email",
|
|
51
|
-
status: "Status",
|
|
52
|
-
done: "Done",
|
|
53
|
-
addMore: "Add More",
|
|
54
|
-
reward: (amount) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
55
|
-
"Get ",
|
|
56
|
-
/* @__PURE__ */ jsxs("span", { className: "font-semibold text-foreground", children: [
|
|
57
|
-
amount,
|
|
58
|
-
" off your next invoice"
|
|
59
|
-
] }),
|
|
60
|
-
" for every invited contact who goes Pro. They get ",
|
|
61
|
-
amount,
|
|
62
|
-
" off theirs."
|
|
63
|
-
] })
|
|
64
|
-
};
|
|
65
|
-
function AddContactsForm({
|
|
66
|
-
value,
|
|
67
|
-
onChange,
|
|
68
|
-
emailCount: emailCountProp,
|
|
69
|
-
maxEmails = MAX_INVITE_EMAILS,
|
|
70
|
-
isPending,
|
|
71
|
-
onSubmit,
|
|
72
|
-
onCancel,
|
|
73
|
-
rewardAmount,
|
|
74
|
-
labels
|
|
75
|
-
}) {
|
|
76
|
-
const l = useMemo(() => ({ ...DEFAULT_ADD_CONTACTS_LABELS, ...labels }), [labels]);
|
|
77
|
-
const emails = useMemo(() => parseEmails(value), [value]);
|
|
78
|
-
const emailCount = emailCountProp ?? emails.length;
|
|
79
|
-
const overMax = emailCount > maxEmails;
|
|
80
|
-
return /* @__PURE__ */ jsxs("div", { className: "space-y-4", "data-slot": "add-contacts-form", children: [
|
|
81
|
-
rewardAmount && /* @__PURE__ */ jsxs(
|
|
82
|
-
"div",
|
|
83
|
-
{
|
|
84
|
-
className: "flex items-start gap-2 rounded-md bg-green-bg p-3 text-sm",
|
|
85
|
-
"data-testid": "invite-reward-banner",
|
|
86
|
-
children: [
|
|
87
|
-
/* @__PURE__ */ jsx(Gift, { className: "mt-0.5 size-4 shrink-0 text-green-text" }),
|
|
88
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: l.reward(rewardAmount) })
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
),
|
|
92
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
93
|
-
/* @__PURE__ */ jsx(
|
|
94
|
-
Textarea,
|
|
95
|
-
{
|
|
96
|
-
id: "invite-emails",
|
|
97
|
-
value,
|
|
98
|
-
onChange: (e) => onChange(e.target.value),
|
|
99
|
-
disabled: isPending,
|
|
100
|
-
placeholder: l.placeholder,
|
|
101
|
-
rows: 2,
|
|
102
|
-
autoFocus: true,
|
|
103
|
-
"data-testid": "invite-emails-input"
|
|
104
|
-
}
|
|
105
|
-
),
|
|
106
|
-
/* @__PURE__ */ jsx("p", { className: "mt-1.5 text-sm text-muted-foreground", children: l.hint })
|
|
107
|
-
] }),
|
|
108
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 pt-2", children: [
|
|
109
|
-
/* @__PURE__ */ jsx(
|
|
110
|
-
Button,
|
|
111
|
-
{
|
|
112
|
-
onClick: () => onSubmit(emails),
|
|
113
|
-
disabled: emailCount === 0 || overMax || isPending,
|
|
114
|
-
className: "w-full",
|
|
115
|
-
"data-testid": "invite-send-button",
|
|
116
|
-
children: isPending ? l.adding : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
117
|
-
/* @__PURE__ */ jsx(AtSign, { className: "mr-2 size-4" }),
|
|
118
|
-
overMax ? l.addOverMax(emailCount, maxEmails) : l.add(emailCount)
|
|
119
|
-
] })
|
|
120
|
-
}
|
|
121
|
-
),
|
|
122
|
-
/* @__PURE__ */ jsx(Button, { variant: "outline", onClick: onCancel, disabled: isPending, className: "w-full", children: l.cancel })
|
|
123
|
-
] })
|
|
124
|
-
] });
|
|
125
|
-
}
|
|
126
|
-
var STATUS_ICON = {
|
|
127
|
-
success: /* @__PURE__ */ jsx(CheckCircle, { className: "size-4 shrink-0 text-green-text" }),
|
|
128
|
-
failed: /* @__PURE__ */ jsx(XCircle, { className: "size-4 shrink-0 text-red-text" }),
|
|
129
|
-
pending: /* @__PURE__ */ jsx(AlertCircle, { className: "size-4 shrink-0 text-yellow-text" })
|
|
130
|
-
};
|
|
131
|
-
function AddContactsResults({ rows, onDone, onAddMore, labels }) {
|
|
132
|
-
const l = useMemo(() => ({ ...DEFAULT_ADD_CONTACTS_LABELS, ...labels }), [labels]);
|
|
133
|
-
return /* @__PURE__ */ jsxs(ModalSection, { children: [
|
|
134
|
-
/* @__PURE__ */ jsx(ModalSectionTitle, { children: l.results }),
|
|
135
|
-
/* @__PURE__ */ jsx("div", { className: "max-h-80 overflow-y-auto rounded-md border", children: /* @__PURE__ */ jsxs("table", { className: "w-full", children: [
|
|
136
|
-
/* @__PURE__ */ jsx("thead", { className: "sticky top-0 bg-muted/50", children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
137
|
-
/* @__PURE__ */ jsx("th", { className: "p-2 text-left font-medium", children: l.email }),
|
|
138
|
-
/* @__PURE__ */ jsx("th", { className: "p-2 text-left font-medium", children: l.status })
|
|
139
|
-
] }) }),
|
|
140
|
-
/* @__PURE__ */ jsx("tbody", { children: rows.map((row, index) => /* @__PURE__ */ jsxs(
|
|
141
|
-
"tr",
|
|
142
|
-
{
|
|
143
|
-
className: "border-t hover:bg-muted/30",
|
|
144
|
-
"data-testid": `email-status-row-${index}`,
|
|
145
|
-
children: [
|
|
146
|
-
/* @__PURE__ */ jsx("td", { className: "p-2", children: row.email }),
|
|
147
|
-
/* @__PURE__ */ jsx("td", { className: "p-2", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
148
|
-
STATUS_ICON[row.status],
|
|
149
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: row.message })
|
|
150
|
-
] }) })
|
|
151
|
-
]
|
|
152
|
-
},
|
|
153
|
-
index
|
|
154
|
-
)) })
|
|
155
|
-
] }) }),
|
|
156
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 pt-4", children: [
|
|
157
|
-
/* @__PURE__ */ jsx(Button, { onClick: onDone, className: "w-full", "data-testid": "close-results-button", children: l.done }),
|
|
158
|
-
/* @__PURE__ */ jsx(
|
|
159
|
-
Button,
|
|
160
|
-
{
|
|
161
|
-
variant: "outline",
|
|
162
|
-
onClick: onAddMore,
|
|
163
|
-
className: "w-full",
|
|
164
|
-
"data-testid": "start-over-button",
|
|
165
|
-
children: l.addMore
|
|
166
|
-
}
|
|
167
|
-
)
|
|
168
|
-
] })
|
|
169
|
-
] });
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
// src/collaboration/contacts/vcard.ts
|
|
173
|
-
function escapeText(value) {
|
|
174
|
-
return value.replace(/\\/g, "\\\\").replace(/([,;])/g, "\\$1").replace(/\r\n|\r|\n/g, "\\n");
|
|
175
|
-
}
|
|
176
|
-
function fold(line) {
|
|
177
|
-
const encoder = new TextEncoder();
|
|
178
|
-
if (encoder.encode(line).length <= 75) return line;
|
|
179
|
-
const out = [];
|
|
180
|
-
let current = "";
|
|
181
|
-
let size = 0;
|
|
182
|
-
for (const ch of line) {
|
|
183
|
-
const bytes = encoder.encode(ch).length;
|
|
184
|
-
const limit = out.length === 0 ? 75 : 74;
|
|
185
|
-
if (size + bytes > limit) {
|
|
186
|
-
out.push(current);
|
|
187
|
-
current = "";
|
|
188
|
-
size = 0;
|
|
189
|
-
}
|
|
190
|
-
current += ch;
|
|
191
|
-
size += bytes;
|
|
192
|
-
}
|
|
193
|
-
out.push(current);
|
|
194
|
-
return out.join("\r\n ");
|
|
195
|
-
}
|
|
196
|
-
function splitName(name) {
|
|
197
|
-
const words = name.trim().split(/\s+/).filter(Boolean);
|
|
198
|
-
const family = words.length > 1 ? words[words.length - 1] ?? "" : "";
|
|
199
|
-
const given = words.length > 1 ? words.slice(0, -1).join(" ") : words[0] ?? "";
|
|
200
|
-
return { family, given };
|
|
201
|
-
}
|
|
202
|
-
function contactToVCard(contact) {
|
|
203
|
-
const name = contact.name.trim();
|
|
204
|
-
const { family, given } = splitName(name);
|
|
205
|
-
const lines = [
|
|
206
|
-
"BEGIN:VCARD",
|
|
207
|
-
"VERSION:3.0",
|
|
208
|
-
`N:${escapeText(family)};${escapeText(given)};;;`,
|
|
209
|
-
`FN:${escapeText(name)}`,
|
|
210
|
-
contact.organisation && `ORG:${escapeText(contact.organisation)}`,
|
|
211
|
-
contact.title && `TITLE:${escapeText(contact.title)}`,
|
|
212
|
-
contact.email && `EMAIL;TYPE=INTERNET,WORK:${escapeText(contact.email)}`,
|
|
213
|
-
contact.phone && `TEL;TYPE=WORK,VOICE:${escapeText(contact.phone)}`,
|
|
214
|
-
contact.address && `ADR;TYPE=WORK:;;${escapeText(contact.address)};;;;`,
|
|
215
|
-
contact.url && `URL:${contact.url}`,
|
|
216
|
-
contact.note && `NOTE:${escapeText(contact.note)}`,
|
|
217
|
-
"END:VCARD"
|
|
218
|
-
].filter((line) => Boolean(line));
|
|
219
|
-
return lines.map(fold).join("\r\n") + "\r\n";
|
|
220
|
-
}
|
|
221
|
-
function vCardFilename(contact) {
|
|
222
|
-
const slug = contact.name.normalize("NFKD").replace(/[̀-ͯ]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
223
|
-
return `${slug || "contact"}.vcf`;
|
|
224
|
-
}
|
|
225
|
-
function downloadVCard(contact) {
|
|
226
|
-
const blob = new Blob([contactToVCard(contact)], { type: "text/vcard;charset=utf-8" });
|
|
227
|
-
const url = URL.createObjectURL(blob);
|
|
228
|
-
const link = document.createElement("a");
|
|
229
|
-
link.href = url;
|
|
230
|
-
link.download = vCardFilename(contact);
|
|
231
|
-
document.body.appendChild(link);
|
|
232
|
-
link.click();
|
|
233
|
-
link.remove();
|
|
234
|
-
setTimeout(() => URL.revokeObjectURL(url), 0);
|
|
235
|
-
}
|
|
236
|
-
var DEFAULT_CONTACT_CARD_LABELS = {
|
|
237
|
-
actions: "Contact actions",
|
|
238
|
-
exportVCard: "Save to address book (.vcf)"
|
|
239
|
-
};
|
|
240
|
-
function initials(name) {
|
|
241
|
-
const words = name.trim().split(/\s+/).filter(Boolean);
|
|
242
|
-
return ((words[0]?.[0] ?? "") + (words.length > 1 ? words[words.length - 1]?.[0] ?? "" : "")).toUpperCase();
|
|
243
|
-
}
|
|
244
|
-
function ContactCard({
|
|
245
|
-
contact,
|
|
246
|
-
status,
|
|
247
|
-
onExportVCard = downloadVCard,
|
|
248
|
-
exportable = true,
|
|
249
|
-
actions = [],
|
|
250
|
-
labels,
|
|
251
|
-
className,
|
|
252
|
-
"data-testid": testId = "contact-card"
|
|
253
|
-
}) {
|
|
254
|
-
const l = { ...DEFAULT_CONTACT_CARD_LABELS, ...labels };
|
|
255
|
-
const subtitle = [contact.title, contact.organisation].filter(Boolean).join(", ");
|
|
256
|
-
const hasMenu = exportable || actions.length > 0;
|
|
257
|
-
const { avatarUrl, ...vcard } = contact;
|
|
258
|
-
return /* @__PURE__ */ jsxs(
|
|
259
|
-
"div",
|
|
260
|
-
{
|
|
261
|
-
"data-slot": "contact-card",
|
|
262
|
-
"data-testid": testId,
|
|
263
|
-
className: `flex min-w-0 items-center gap-3 rounded-lg border border-border bg-card p-3 text-card-foreground ${className ?? ""}`,
|
|
264
|
-
children: [
|
|
265
|
-
/* @__PURE__ */ jsxs(Avatar, { className: "size-10 shrink-0", children: [
|
|
266
|
-
avatarUrl && /* @__PURE__ */ jsx(AvatarImage, { src: avatarUrl, alt: "" }),
|
|
267
|
-
/* @__PURE__ */ jsx(AvatarFallback, { children: initials(contact.name) || /* @__PURE__ */ jsx(Contact, { className: "size-4" }) })
|
|
268
|
-
] }),
|
|
269
|
-
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
270
|
-
/* @__PURE__ */ jsx("p", { className: "truncate text-sm font-medium", "data-testid": `${testId}-name`, children: contact.name }),
|
|
271
|
-
subtitle && /* @__PURE__ */ jsx("p", { className: "truncate text-xs text-muted-foreground", children: subtitle }),
|
|
272
|
-
contact.email && /* @__PURE__ */ jsxs("p", { className: "flex min-w-0 items-center gap-1 text-xs text-muted-foreground", children: [
|
|
273
|
-
/* @__PURE__ */ jsx(Mail, { className: "size-3 shrink-0", "aria-hidden": "true" }),
|
|
274
|
-
/* @__PURE__ */ jsx("span", { className: "truncate", children: contact.email })
|
|
275
|
-
] }),
|
|
276
|
-
contact.phone && /* @__PURE__ */ jsxs("p", { className: "flex min-w-0 items-center gap-1 text-xs text-muted-foreground", children: [
|
|
277
|
-
/* @__PURE__ */ jsx(Phone, { className: "size-3 shrink-0", "aria-hidden": "true" }),
|
|
278
|
-
/* @__PURE__ */ jsx("span", { className: "truncate", children: contact.phone })
|
|
279
|
-
] }),
|
|
280
|
-
status && /* @__PURE__ */ jsx("div", { className: "mt-1 text-xs", children: status })
|
|
281
|
-
] }),
|
|
282
|
-
hasMenu && /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
283
|
-
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
284
|
-
"button",
|
|
285
|
-
{
|
|
286
|
-
type: "button",
|
|
287
|
-
"aria-label": l.actions,
|
|
288
|
-
"data-testid": `${testId}-menu`,
|
|
289
|
-
className: "flex size-8 pointer-coarse:size-11 shrink-0 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted hover:text-foreground data-[state=open]:bg-muted",
|
|
290
|
-
children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "size-4", "aria-hidden": "true" })
|
|
291
|
-
}
|
|
292
|
-
) }),
|
|
293
|
-
/* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", children: [
|
|
294
|
-
exportable && /* @__PURE__ */ jsxs(
|
|
295
|
-
DropdownMenuItem,
|
|
296
|
-
{
|
|
297
|
-
onSelect: () => onExportVCard(vcard),
|
|
298
|
-
"data-testid": `${testId}-export-vcard`,
|
|
299
|
-
children: [
|
|
300
|
-
/* @__PURE__ */ jsx(Download, { className: "mr-2 size-4", "aria-hidden": "true" }),
|
|
301
|
-
l.exportVCard
|
|
302
|
-
]
|
|
303
|
-
}
|
|
304
|
-
),
|
|
305
|
-
actions.map((a) => /* @__PURE__ */ jsxs(
|
|
306
|
-
DropdownMenuItem,
|
|
307
|
-
{
|
|
308
|
-
onSelect: a.onSelect,
|
|
309
|
-
className: a.destructive ? "text-red-text focus:text-red-text" : void 0,
|
|
310
|
-
"data-testid": `${testId}-action-${a.id}`,
|
|
311
|
-
children: [
|
|
312
|
-
a.icon,
|
|
313
|
-
a.label
|
|
314
|
-
]
|
|
315
|
-
},
|
|
316
|
-
a.id
|
|
317
|
-
))
|
|
318
|
-
] })
|
|
319
|
-
] })
|
|
320
|
-
]
|
|
321
|
-
}
|
|
322
|
-
);
|
|
323
|
-
}
|
|
324
|
-
var DEFAULT_DM_INVITE_CHIP_LABELS = {
|
|
325
|
-
title: "Add a contact by email",
|
|
326
|
-
description: "Send an invitation to join you on ARBI"
|
|
327
|
-
};
|
|
328
|
-
function DmInviteChip({
|
|
329
|
-
onClick,
|
|
330
|
-
title,
|
|
331
|
-
description,
|
|
332
|
-
testId = "dm-invite-chip",
|
|
333
|
-
labels
|
|
334
|
-
}) {
|
|
335
|
-
const l = useMemo(() => ({ ...DEFAULT_DM_INVITE_CHIP_LABELS, ...labels }), [labels]);
|
|
336
|
-
return /* @__PURE__ */ jsxs(
|
|
337
|
-
"button",
|
|
338
|
-
{
|
|
339
|
-
type: "button",
|
|
340
|
-
onClick,
|
|
341
|
-
"data-testid": testId,
|
|
342
|
-
className: "flex w-full items-center gap-3 border-b border-border px-4 py-3 text-left transition-colors hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring pointer-coarse:min-h-11",
|
|
343
|
-
children: [
|
|
344
|
-
/* @__PURE__ */ jsx("span", { className: "flex size-9 shrink-0 items-center justify-center rounded-full bg-ai-accent-soft", children: /* @__PURE__ */ jsx(UserPlus, { className: "size-4 text-ai-accent" }) }),
|
|
345
|
-
/* @__PURE__ */ jsxs("span", { className: "min-w-0", children: [
|
|
346
|
-
/* @__PURE__ */ jsx("span", { className: "block text-sm font-semibold text-foreground", children: title ?? l.title }),
|
|
347
|
-
/* @__PURE__ */ jsx("span", { className: "block text-xs text-muted-foreground", children: description ?? l.description })
|
|
348
|
-
] })
|
|
349
|
-
]
|
|
350
|
-
}
|
|
351
|
-
);
|
|
352
|
-
}
|
|
353
|
-
function DmThreadHeader({
|
|
354
|
-
avatar,
|
|
355
|
-
name,
|
|
356
|
-
badge,
|
|
357
|
-
presence,
|
|
358
|
-
email,
|
|
359
|
-
menu,
|
|
360
|
-
testId = "dm-active-chip"
|
|
361
|
-
}) {
|
|
362
|
-
return /* @__PURE__ */ jsxs(
|
|
363
|
-
"div",
|
|
364
|
-
{
|
|
365
|
-
className: "flex items-center gap-1 border-b border-border pr-2",
|
|
366
|
-
"data-slot": "dm-thread-header",
|
|
367
|
-
children: [
|
|
368
|
-
/* @__PURE__ */ jsxs("div", { "data-testid": testId, className: "flex min-w-0 flex-1 items-center gap-3 px-4 py-2.5", children: [
|
|
369
|
-
avatar,
|
|
370
|
-
/* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1", children: [
|
|
371
|
-
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
372
|
-
/* @__PURE__ */ jsx("span", { className: "truncate text-sm font-semibold text-foreground", children: name }),
|
|
373
|
-
badge
|
|
374
|
-
] }),
|
|
375
|
-
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
376
|
-
presence,
|
|
377
|
-
presence && /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: "\xB7" }),
|
|
378
|
-
/* @__PURE__ */ jsx("span", { className: "min-w-0 truncate text-xs text-muted-foreground", children: email ?? "" })
|
|
379
|
-
] })
|
|
380
|
-
] })
|
|
381
|
-
] }),
|
|
382
|
-
menu
|
|
383
|
-
]
|
|
384
|
-
}
|
|
385
|
-
);
|
|
386
|
-
}
|
|
387
|
-
var DEFAULT_DM_ACCESS_REQUEST_BANNER_LABELS = {
|
|
388
|
-
requestedAccess: " requested workspace access",
|
|
389
|
-
review: "Review"
|
|
390
|
-
};
|
|
391
|
-
var DEFAULT_DM_THREAD_FRAME_LABELS = {
|
|
392
|
-
noMessages: "No messages yet \u2014 say hi \u{1F44B}"
|
|
393
|
-
};
|
|
394
|
-
var DEFAULT_DM_GRANT_ACCESS_DIALOG_LABELS = {
|
|
395
|
-
title: "Grant workspace access",
|
|
396
|
-
description: (peerName) => `Give ${peerName} access to one of your workspaces. Access is permanent until you remove it.`,
|
|
397
|
-
noWorkspace: "Open the workspace you want to share, as its owner, and you can grant access to it from here.",
|
|
398
|
-
workspace: "Workspace",
|
|
399
|
-
role: "Role",
|
|
400
|
-
cancel: "Cancel",
|
|
401
|
-
grantAccess: "Grant access"
|
|
402
|
-
};
|
|
403
|
-
var DEFAULT_RECIPIENT_PICKER_LABELS = {
|
|
404
|
-
to: "To",
|
|
405
|
-
unmuteNotifications: "Unmute notifications",
|
|
406
|
-
muteNotifications: "Mute notifications",
|
|
407
|
-
removeRecipient: "Remove recipient",
|
|
408
|
-
selectRecipient: "Select recipient...",
|
|
409
|
-
addRecipient: "Add recipient",
|
|
410
|
-
searchUsers: "Search users...",
|
|
411
|
-
noKnownUsers: "No known users",
|
|
412
|
-
noMatchingUsers: "No matching users",
|
|
413
|
-
addContactsHint: "Add contacts or join workspaces to send private messages"
|
|
414
|
-
};
|
|
415
|
-
function ActionMenu({ label, testId, entries, contentClassName = "w-56" }) {
|
|
416
|
-
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
417
|
-
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
418
|
-
Button,
|
|
419
|
-
{
|
|
420
|
-
variant: "ghost",
|
|
421
|
-
size: "icon",
|
|
422
|
-
className: "size-7 shrink-0 text-muted-foreground hover:text-foreground pointer-coarse:size-11",
|
|
423
|
-
"aria-label": label,
|
|
424
|
-
"data-testid": testId,
|
|
425
|
-
onClick: (e) => e.stopPropagation(),
|
|
426
|
-
children: /* @__PURE__ */ jsx(MoreVertical, { className: "size-4" })
|
|
427
|
-
}
|
|
428
|
-
) }),
|
|
429
|
-
/* @__PURE__ */ jsx(DropdownMenuContent, { align: "end", className: contentClassName, children: entries.map(
|
|
430
|
-
(entry) => "separator" in entry ? /* @__PURE__ */ jsx(DropdownMenuSeparator, {}, entry.id) : /* @__PURE__ */ jsxs(
|
|
431
|
-
DropdownMenuItem,
|
|
432
|
-
{
|
|
433
|
-
onClick: entry.onSelect,
|
|
434
|
-
className: entry.destructive ? "text-destructive focus:text-destructive" : void 0,
|
|
435
|
-
"data-testid": entry.testId,
|
|
436
|
-
children: [
|
|
437
|
-
entry.icon && /* @__PURE__ */ jsx("span", { className: "mr-2 inline-flex size-4 items-center", children: entry.icon }),
|
|
438
|
-
entry.label
|
|
439
|
-
]
|
|
440
|
-
},
|
|
441
|
-
entry.id
|
|
442
|
-
)
|
|
443
|
-
) })
|
|
444
|
-
] });
|
|
445
|
-
}
|
|
446
|
-
function DmInviteAvatar() {
|
|
447
|
-
return /* @__PURE__ */ jsx("span", { className: "flex size-9 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground", children: /* @__PURE__ */ jsx(AtSign, { className: "size-4" }) });
|
|
448
|
-
}
|
|
449
|
-
function DmNewTabIcon() {
|
|
450
|
-
return /* @__PURE__ */ jsx("div", { className: "flex h-5 w-5 items-center justify-center rounded-full bg-primary/10", children: /* @__PURE__ */ jsx(Plus, { className: "h-3 w-3 text-primary" }) });
|
|
451
|
-
}
|
|
452
|
-
function DmAccessRequestBanner({
|
|
453
|
-
name,
|
|
454
|
-
onReview,
|
|
455
|
-
labels
|
|
456
|
-
}) {
|
|
457
|
-
const l = useMemo(() => ({ ...DEFAULT_DM_ACCESS_REQUEST_BANNER_LABELS, ...labels }), [labels]);
|
|
458
|
-
return /* @__PURE__ */ jsxs("div", { className: "mx-4 mt-3 flex items-center gap-3 rounded-lg bg-muted px-3 py-2.5", children: [
|
|
459
|
-
/* @__PURE__ */ jsx(KeyRound, { className: "h-4 w-4 shrink-0 text-primary" }),
|
|
460
|
-
/* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1 text-sm text-foreground", children: [
|
|
461
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium", children: name }),
|
|
462
|
-
l.requestedAccess
|
|
463
|
-
] }),
|
|
464
|
-
/* @__PURE__ */ jsx(Button, { size: "sm", onClick: onReview, "data-testid": "dm-review-access-button", children: l.review })
|
|
465
|
-
] });
|
|
466
|
-
}
|
|
467
|
-
function DmThreadFrame({
|
|
468
|
-
recipientPicker,
|
|
469
|
-
accessBanner,
|
|
470
|
-
hasRecipient,
|
|
471
|
-
isLoading,
|
|
472
|
-
history,
|
|
473
|
-
isEmpty,
|
|
474
|
-
noRecipientPrompt,
|
|
475
|
-
historyRef,
|
|
476
|
-
composer,
|
|
477
|
-
labels
|
|
478
|
-
}) {
|
|
479
|
-
const l = useMemo(() => ({ ...DEFAULT_DM_THREAD_FRAME_LABELS, ...labels }), [labels]);
|
|
480
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col bg-background", children: [
|
|
481
|
-
recipientPicker,
|
|
482
|
-
accessBanner,
|
|
483
|
-
hasRecipient && /* @__PURE__ */ jsx("div", { className: "min-h-0 flex-1 overflow-hidden bg-background", ref: historyRef, children: /* @__PURE__ */ jsx(ScrollArea, { className: "h-full", children: /* @__PURE__ */ jsx("div", { className: "px-4 py-3", children: isLoading ? /* @__PURE__ */ jsx("div", { className: "flex h-32 items-center justify-center", children: /* @__PURE__ */ jsx(Loader2, { className: "h-6 w-6 animate-spin text-muted-foreground" }) }) : !isEmpty ? history : /* @__PURE__ */ jsx("div", { className: "flex h-32 items-center justify-center text-sm text-muted-foreground", children: l.noMessages }) }) }) }),
|
|
484
|
-
!hasRecipient && noRecipientPrompt && /* @__PURE__ */ jsx("div", { className: "flex min-h-0 flex-1 items-center justify-center bg-background p-4", children: /* @__PURE__ */ jsx("p", { className: "text-center text-sm text-muted-foreground", children: noRecipientPrompt }) }),
|
|
485
|
-
/* @__PURE__ */ jsx("div", { className: "shrink-0", children: composer })
|
|
486
|
-
] });
|
|
487
|
-
}
|
|
488
|
-
function DmGrantAccessDialogView({
|
|
489
|
-
open,
|
|
490
|
-
onOpenChange,
|
|
491
|
-
peerName,
|
|
492
|
-
workspaceName,
|
|
493
|
-
role,
|
|
494
|
-
onRoleChange,
|
|
495
|
-
roles,
|
|
496
|
-
isGranting,
|
|
497
|
-
onGrant,
|
|
498
|
-
labels
|
|
499
|
-
}) {
|
|
500
|
-
const l = useMemo(() => ({ ...DEFAULT_DM_GRANT_ACCESS_DIALOG_LABELS, ...labels }), [labels]);
|
|
501
|
-
return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs(DialogContent, { presentation: "sheet", "data-testid": "dm-grant-access-modal", children: [
|
|
502
|
-
/* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
503
|
-
/* @__PURE__ */ jsx(DialogTitle, { children: l.title }),
|
|
504
|
-
/* @__PURE__ */ jsx(DialogDescription, { children: l.description(peerName) })
|
|
505
|
-
] }),
|
|
506
|
-
workspaceName === null ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", "data-testid": "dm-grant-none", children: l.noWorkspace }) : /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
507
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
508
|
-
/* @__PURE__ */ jsx("label", { className: "text-sm font-medium", children: l.workspace }),
|
|
509
|
-
/* @__PURE__ */ jsx("p", { className: "rounded-lg bg-muted px-3 py-2 text-sm", "data-testid": "dm-grant-workspace", children: workspaceName })
|
|
510
|
-
] }),
|
|
511
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
512
|
-
/* @__PURE__ */ jsx("label", { className: "text-sm font-medium", children: l.role }),
|
|
513
|
-
/* @__PURE__ */ jsxs(Select, { value: role, onValueChange: onRoleChange, children: [
|
|
514
|
-
/* @__PURE__ */ jsx(SelectTrigger, { "data-testid": "dm-grant-role", children: /* @__PURE__ */ jsx(SelectValue, {}) }),
|
|
515
|
-
/* @__PURE__ */ jsx(SelectContent, { children: roles.map((r) => /* @__PURE__ */ jsxs(SelectItem, { value: r.value, children: [
|
|
516
|
-
r.label,
|
|
517
|
-
" \u2014 ",
|
|
518
|
-
r.hint
|
|
519
|
-
] }, r.value)) })
|
|
520
|
-
] })
|
|
521
|
-
] })
|
|
522
|
-
] }),
|
|
523
|
-
/* @__PURE__ */ jsxs(DialogFooter, { children: [
|
|
524
|
-
/* @__PURE__ */ jsx(Button, { variant: "ghost", onClick: () => onOpenChange(false), disabled: isGranting, children: l.cancel }),
|
|
525
|
-
/* @__PURE__ */ jsxs(
|
|
526
|
-
Button,
|
|
527
|
-
{
|
|
528
|
-
onClick: onGrant,
|
|
529
|
-
disabled: isGranting || workspaceName === null,
|
|
530
|
-
"data-testid": "dm-grant-submit",
|
|
531
|
-
children: [
|
|
532
|
-
isGranting && /* @__PURE__ */ jsx(Loader2, { className: "mr-2 size-4 animate-spin" }),
|
|
533
|
-
l.grantAccess
|
|
534
|
-
]
|
|
535
|
-
}
|
|
536
|
-
)
|
|
537
|
-
] })
|
|
538
|
-
] }) });
|
|
539
|
-
}
|
|
540
|
-
function RecipientPicker({
|
|
541
|
-
selected,
|
|
542
|
-
onRemove,
|
|
543
|
-
candidates,
|
|
544
|
-
onPick,
|
|
545
|
-
canAdd,
|
|
546
|
-
isOpen,
|
|
547
|
-
onOpenChange,
|
|
548
|
-
search,
|
|
549
|
-
onSearchChange,
|
|
550
|
-
hasNoKnownUsers,
|
|
551
|
-
labels
|
|
552
|
-
}) {
|
|
553
|
-
const l = useMemo(() => ({ ...DEFAULT_RECIPIENT_PICKER_LABELS, ...labels }), [labels]);
|
|
554
|
-
return /* @__PURE__ */ jsx("div", { className: "shrink-0 border-b px-6 py-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
555
|
-
/* @__PURE__ */ jsx(ModalSectionTitle, { className: "mb-0 shrink-0 py-1.5", children: l.to }),
|
|
556
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col gap-1.5", children: [
|
|
557
|
-
selected.map((recipient) => /* @__PURE__ */ jsxs(
|
|
558
|
-
"div",
|
|
559
|
-
{
|
|
560
|
-
className: "flex items-center justify-between gap-2 rounded-md bg-muted/50 px-3 py-1.5",
|
|
561
|
-
children: [
|
|
562
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
563
|
-
recipient.identity,
|
|
564
|
-
/* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
565
|
-
/* @__PURE__ */ jsx(
|
|
566
|
-
TooltipTrigger,
|
|
567
|
-
{
|
|
568
|
-
onClick: recipient.onToggleMute,
|
|
569
|
-
"aria-label": recipient.isMuted ? l.unmuteNotifications : l.muteNotifications,
|
|
570
|
-
"aria-pressed": recipient.isMuted,
|
|
571
|
-
className: `rounded p-1 transition-colors hover:bg-muted pointer-coarse:p-3 ${recipient.isMuted ? "text-muted-foreground" : "text-muted-foreground/40 hover:text-muted-foreground"}`,
|
|
572
|
-
disabled: recipient.isMuteBusy,
|
|
573
|
-
children: recipient.isMuted ? /* @__PURE__ */ jsx(BellOff, { size: 14, fill: "currentColor" }) : /* @__PURE__ */ jsx(Bell, { size: 14 })
|
|
574
|
-
}
|
|
575
|
-
),
|
|
576
|
-
/* @__PURE__ */ jsx(TooltipContent, { className: "max-w-[250px]", children: recipient.muteTooltip })
|
|
577
|
-
] })
|
|
578
|
-
] }),
|
|
579
|
-
/* @__PURE__ */ jsx(
|
|
580
|
-
"button",
|
|
581
|
-
{
|
|
582
|
-
type: "button",
|
|
583
|
-
onClick: () => onRemove(recipient.id),
|
|
584
|
-
className: "p-1 text-muted-foreground hover:text-destructive pointer-coarse:p-3",
|
|
585
|
-
title: l.removeRecipient,
|
|
586
|
-
"aria-label": l.removeRecipient,
|
|
587
|
-
children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4" })
|
|
588
|
-
}
|
|
589
|
-
)
|
|
590
|
-
]
|
|
591
|
-
},
|
|
592
|
-
recipient.id
|
|
593
|
-
)),
|
|
594
|
-
canAdd && /* @__PURE__ */ jsxs(Popover, { open: isOpen, onOpenChange, children: [
|
|
595
|
-
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: selected.length === 0 ? /* @__PURE__ */ jsxs(
|
|
596
|
-
Button,
|
|
597
|
-
{
|
|
598
|
-
variant: "outline",
|
|
599
|
-
size: "sm",
|
|
600
|
-
disabled: hasNoKnownUsers,
|
|
601
|
-
className: "w-full justify-start text-muted-foreground",
|
|
602
|
-
children: [
|
|
603
|
-
/* @__PURE__ */ jsx(ChevronsUpDown, { className: "mr-2 h-4 w-4" }),
|
|
604
|
-
l.selectRecipient
|
|
605
|
-
]
|
|
606
|
-
}
|
|
607
|
-
) : /* @__PURE__ */ jsx(
|
|
608
|
-
Button,
|
|
609
|
-
{
|
|
610
|
-
variant: "ghost",
|
|
611
|
-
size: "icon",
|
|
612
|
-
disabled: hasNoKnownUsers,
|
|
613
|
-
className: "h-7 w-7 rounded-full",
|
|
614
|
-
title: l.addRecipient,
|
|
615
|
-
"aria-label": l.addRecipient,
|
|
616
|
-
children: /* @__PURE__ */ jsx(Plus, { className: "h-4 w-4" })
|
|
617
|
-
}
|
|
618
|
-
) }),
|
|
619
|
-
/* @__PURE__ */ jsx(
|
|
620
|
-
PopoverContent,
|
|
621
|
-
{
|
|
622
|
-
className: "w-72 p-0",
|
|
623
|
-
align: "start",
|
|
624
|
-
onPointerDownOutside: (e) => e.preventDefault(),
|
|
625
|
-
children: /* @__PURE__ */ jsxs(Command, { shouldFilter: false, children: [
|
|
626
|
-
/* @__PURE__ */ jsx(
|
|
627
|
-
CommandInput,
|
|
628
|
-
{
|
|
629
|
-
placeholder: l.searchUsers,
|
|
630
|
-
value: search,
|
|
631
|
-
onValueChange: onSearchChange
|
|
632
|
-
}
|
|
633
|
-
),
|
|
634
|
-
/* @__PURE__ */ jsx(CommandList, { children: candidates.length === 0 ? /* @__PURE__ */ jsx(CommandEmpty, { children: hasNoKnownUsers ? l.noKnownUsers : l.noMatchingUsers }) : /* @__PURE__ */ jsx(CommandGroup, { children: candidates.map((candidate) => /* @__PURE__ */ jsx(
|
|
635
|
-
CommandItem,
|
|
636
|
-
{
|
|
637
|
-
onSelect: () => onPick(candidate.id),
|
|
638
|
-
className: "cursor-pointer justify-start",
|
|
639
|
-
children: candidate.identity
|
|
640
|
-
},
|
|
641
|
-
candidate.id
|
|
642
|
-
)) }) })
|
|
643
|
-
] })
|
|
644
|
-
}
|
|
645
|
-
)
|
|
646
|
-
] }),
|
|
647
|
-
hasNoKnownUsers && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: l.addContactsHint })
|
|
648
|
-
] })
|
|
649
|
-
] }) });
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
export { ActionMenu, AddContactsForm, AddContactsResults, ContactCard, DEFAULT_ADD_CONTACTS_LABELS, DEFAULT_CONTACT_CARD_LABELS, DEFAULT_CONTACT_OUTCOME_LABELS, DEFAULT_DM_ACCESS_REQUEST_BANNER_LABELS, DEFAULT_DM_GRANT_ACCESS_DIALOG_LABELS, DEFAULT_DM_INVITE_CHIP_LABELS, DEFAULT_DM_THREAD_FRAME_LABELS, DEFAULT_RECIPIENT_PICKER_LABELS, DmAccessRequestBanner, DmGrantAccessDialogView, DmInviteAvatar, DmInviteChip, DmNewTabIcon, DmThreadFrame, DmThreadHeader, MAX_INVITE_EMAILS, RecipientPicker, contactToVCard, downloadVCard, parseEmails, toAddContactsRow, toAddContactsRows, vCardFilename };
|
|
653
|
-
//# sourceMappingURL=chunk-WK6FVIF7.js.map
|
|
654
|
-
//# sourceMappingURL=chunk-WK6FVIF7.js.map
|