@arbidocs/blocks 0.4.147 → 0.4.150
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/ConnectedNativeDocxComparison-3XQSINPQ.cjs +44 -0
- package/dist/ConnectedNativeDocxComparison-3XQSINPQ.cjs.map +1 -0
- package/dist/ConnectedNativeDocxComparison-XQSXVGHR.js +35 -0
- package/dist/ConnectedNativeDocxComparison-XQSXVGHR.js.map +1 -0
- package/dist/ConnectedNativeDocxEditor-IPEZDERL.js +33 -0
- package/dist/ConnectedNativeDocxEditor-IPEZDERL.js.map +1 -0
- package/dist/ConnectedNativeDocxEditor-OUWFMIPH.cjs +46 -0
- package/dist/ConnectedNativeDocxEditor-OUWFMIPH.cjs.map +1 -0
- package/dist/ConnectedStreamedWordArtifact-D5LSMDO4.cjs +44 -0
- package/dist/ConnectedStreamedWordArtifact-D5LSMDO4.cjs.map +1 -0
- package/dist/ConnectedStreamedWordArtifact-UZVNBKQB.js +35 -0
- package/dist/ConnectedStreamedWordArtifact-UZVNBKQB.js.map +1 -0
- package/dist/FactTextEditor-YESAU2IJ.js +25 -0
- package/dist/FactTextEditor-YESAU2IJ.js.map +1 -0
- package/dist/FactTextEditor-YUPBCTXK.cjs +27 -0
- package/dist/FactTextEditor-YUPBCTXK.cjs.map +1 -0
- package/dist/{NativeDocxEditor-BE2OEOTJ.cjs → NativeDocxEditor-5VBNM5I7.cjs} +8 -8
- package/dist/{NativeDocxEditor-BE2OEOTJ.cjs.map → NativeDocxEditor-5VBNM5I7.cjs.map} +1 -1
- package/dist/{NativeDocxEditor-KOPFMRYW.js → NativeDocxEditor-XT5ZLFGU.js} +4 -4
- package/dist/{NativeDocxEditor-KOPFMRYW.js.map → NativeDocxEditor-XT5ZLFGU.js.map} +1 -1
- package/dist/agents/index.cjs +265 -266
- package/dist/agents/index.js +8 -9
- package/dist/calendar/index.cjs +117 -125
- package/dist/calendar/index.d.ts +0 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calls/index.cjs +3 -3
- package/dist/calls/index.js +2 -2
- package/dist/chat/index.cjs +78 -78
- package/dist/chat/index.js +3 -3
- package/dist/{chunk-2FL7QJKJ.js → chunk-265GOG4W.js} +3 -3
- package/dist/{chunk-2FL7QJKJ.js.map → chunk-265GOG4W.js.map} +1 -1
- package/dist/{chunk-VUR63NMQ.js → chunk-3E2F4AHD.js} +8 -8
- package/dist/{chunk-VUR63NMQ.js.map → chunk-3E2F4AHD.js.map} +1 -1
- package/dist/{chunk-U37AYUPI.cjs → chunk-3FSXWVHW.cjs} +47 -234
- package/dist/chunk-3FSXWVHW.cjs.map +1 -0
- package/dist/{chunk-IL3WB3YX.cjs → chunk-4JNKXOFZ.cjs} +3 -3
- package/dist/{chunk-IL3WB3YX.cjs.map → chunk-4JNKXOFZ.cjs.map} +1 -1
- package/dist/{chunk-ODRHHWHY.cjs → chunk-4KMLM3GY.cjs} +4 -4
- package/dist/chunk-4KMLM3GY.cjs.map +1 -0
- package/dist/{chunk-MHFF5N65.cjs → chunk-757OYF6G.cjs} +4 -38
- package/dist/chunk-757OYF6G.cjs.map +1 -0
- package/dist/chunk-AXTDDWMR.js +16 -0
- package/dist/chunk-AXTDDWMR.js.map +1 -0
- package/dist/{chunk-B3AHCIV5.js → chunk-BJ24VPOA.js} +4 -55
- package/dist/chunk-BJ24VPOA.js.map +1 -0
- package/dist/chunk-C7PTF6BQ.cjs +172 -0
- package/dist/chunk-C7PTF6BQ.cjs.map +1 -0
- package/dist/{chunk-LZRMXJIE.js → chunk-COA3S3CZ.js} +3 -3
- package/dist/{chunk-LZRMXJIE.js.map → chunk-COA3S3CZ.js.map} +1 -1
- package/dist/{chunk-SUUPR735.js → chunk-CQPFW64W.js} +5 -5
- package/dist/{chunk-SUUPR735.js.map → chunk-CQPFW64W.js.map} +1 -1
- package/dist/chunk-D3WFIFRY.cjs +659 -0
- package/dist/chunk-D3WFIFRY.cjs.map +1 -0
- package/dist/{chunk-QXMR5YHC.js → chunk-DIB4JYUY.js} +19 -3
- package/dist/chunk-DIB4JYUY.js.map +1 -0
- package/dist/chunk-DVB5ZKOF.js +22 -0
- package/dist/chunk-DVB5ZKOF.js.map +1 -0
- package/dist/{chunk-VHJHY7TT.js → chunk-ECERC6TI.js} +3 -3
- package/dist/{chunk-VHJHY7TT.js.map → chunk-ECERC6TI.js.map} +1 -1
- package/dist/chunk-EDV7CYG6.cjs +18 -0
- package/dist/chunk-EDV7CYG6.cjs.map +1 -0
- package/dist/chunk-FAXXN7KI.cjs +213 -0
- package/dist/chunk-FAXXN7KI.cjs.map +1 -0
- package/dist/{chunk-2MJWWPHY.js → chunk-G4IYES7G.js} +140 -15
- package/dist/chunk-G4IYES7G.js.map +1 -0
- package/dist/{chunk-AINU3EJ6.cjs → chunk-GGTUMLCT.cjs} +93 -91
- package/dist/chunk-GGTUMLCT.cjs.map +1 -0
- package/dist/{chunk-QI6AIHWP.cjs → chunk-GOWXP5KT.cjs} +145 -14
- package/dist/chunk-GOWXP5KT.cjs.map +1 -0
- package/dist/{chunk-H74HEPKT.js → chunk-HGLC566X.js} +598 -13
- package/dist/chunk-HGLC566X.js.map +1 -0
- package/dist/{chunk-AO7SK6WP.cjs → chunk-ILM42LE6.cjs} +33 -33
- package/dist/{chunk-AO7SK6WP.cjs.map → chunk-ILM42LE6.cjs.map} +1 -1
- package/dist/{chunk-LTU35TQN.cjs → chunk-IPQ5MJ4Z.cjs} +636 -31
- package/dist/chunk-IPQ5MJ4Z.cjs.map +1 -0
- package/dist/{chunk-NRFAWUVD.js → chunk-JAANWQGB.js} +157 -157
- package/dist/chunk-JAANWQGB.js.map +1 -0
- package/dist/{chunk-7RJTEWYM.js → chunk-JGOST4IL.js} +350 -64
- package/dist/chunk-JGOST4IL.js.map +1 -0
- package/dist/chunk-KHXEIEXN.js +41 -0
- package/dist/chunk-KHXEIEXN.js.map +1 -0
- package/dist/chunk-KLPRAQCE.cjs +22 -0
- package/dist/chunk-KLPRAQCE.cjs.map +1 -0
- package/dist/chunk-KQYPP72K.js +644 -0
- package/dist/chunk-KQYPP72K.js.map +1 -0
- package/dist/chunk-KUT2Y7JF.cjs +43 -0
- package/dist/chunk-KUT2Y7JF.cjs.map +1 -0
- package/dist/{chunk-6YTHQ73P.cjs → chunk-LLYZGH3L.cjs} +3 -56
- package/dist/chunk-LLYZGH3L.cjs.map +1 -0
- package/dist/{chunk-YSHIC4NJ.cjs → chunk-LXTOOUEN.cjs} +159 -154
- package/dist/chunk-LXTOOUEN.cjs.map +1 -0
- package/dist/{chunk-EVUEIBNU.js → chunk-M4S75AEJ.js} +44 -5
- package/dist/chunk-M4S75AEJ.js.map +1 -0
- package/dist/{chunk-V5OAXIBN.cjs → chunk-NPR5BGFF.cjs} +11 -11
- package/dist/{chunk-V5OAXIBN.cjs.map → chunk-NPR5BGFF.cjs.map} +1 -1
- package/dist/{chunk-PLJ7PHWU.cjs → chunk-NS7NVX4E.cjs} +3 -3
- package/dist/{chunk-PLJ7PHWU.cjs.map → chunk-NS7NVX4E.cjs.map} +1 -1
- package/dist/{chunk-T5I4NRFP.cjs → chunk-NWNAYXC7.cjs} +9 -9
- package/dist/{chunk-T5I4NRFP.cjs.map → chunk-NWNAYXC7.cjs.map} +1 -1
- package/dist/{chunk-WIZ7Z7FN.js → chunk-Q6N6MZKO.js} +47 -222
- package/dist/chunk-Q6N6MZKO.js.map +1 -0
- package/dist/{chunk-I2QSDQQV.cjs → chunk-QT3A4PFC.cjs} +21 -2
- package/dist/chunk-QT3A4PFC.cjs.map +1 -0
- package/dist/{chunk-ZM26YEOT.js → chunk-RY2SODRN.js} +3 -3
- package/dist/{chunk-ZM26YEOT.js.map → chunk-RY2SODRN.js.map} +1 -1
- package/dist/chunk-SDOEHEJP.js +208 -0
- package/dist/chunk-SDOEHEJP.js.map +1 -0
- package/dist/{chunk-DETZZBG2.cjs → chunk-SIB6C7P7.cjs} +43 -2
- package/dist/chunk-SIB6C7P7.cjs.map +1 -0
- package/dist/{chunk-MFY2ZNP6.cjs → chunk-SMN32BQ3.cjs} +4 -4
- package/dist/chunk-SMN32BQ3.cjs.map +1 -0
- package/dist/chunk-TAWPVD6C.cjs +1956 -0
- package/dist/chunk-TAWPVD6C.cjs.map +1 -0
- package/dist/chunk-TC25LGIM.js +6584 -0
- package/dist/chunk-TC25LGIM.js.map +1 -0
- package/dist/{chunk-DAHCRVPM.js → chunk-TL45OJQE.js} +85 -83
- package/dist/chunk-TL45OJQE.js.map +1 -0
- package/dist/{chunk-AOSUHWIL.js → chunk-TZOQKV64.js} +4 -37
- package/dist/chunk-TZOQKV64.js.map +1 -0
- package/dist/chunk-UTVY63DG.js +16 -0
- package/dist/chunk-UTVY63DG.js.map +1 -0
- package/dist/chunk-V4YZXGXR.cjs +6751 -0
- package/dist/chunk-V4YZXGXR.cjs.map +1 -0
- package/dist/chunk-XRWHFMHK.js +19 -0
- package/dist/chunk-XRWHFMHK.js.map +1 -0
- package/dist/{chunk-O4YPVYPO.cjs → chunk-YAEXSCUW.cjs} +364 -60
- package/dist/chunk-YAEXSCUW.cjs.map +1 -0
- package/dist/chunk-YIFCLNII.cjs +18 -0
- package/dist/chunk-YIFCLNII.cjs.map +1 -0
- package/dist/chunk-Z27QMJ6S.cjs +25 -0
- package/dist/chunk-Z27QMJ6S.cjs.map +1 -0
- package/dist/{chunk-CSI2B2H5.js → chunk-Z4NQ3TED.js} +4 -4
- package/dist/chunk-Z4NQ3TED.js.map +1 -0
- package/dist/{chunk-DWZXSPMB.cjs → chunk-ZAVEMQ37.cjs} +3 -3
- package/dist/{chunk-DWZXSPMB.cjs.map → chunk-ZAVEMQ37.cjs.map} +1 -1
- package/dist/{chunk-DGV7HQA7.js → chunk-ZLEYLCE4.js} +4 -4
- package/dist/chunk-ZLEYLCE4.js.map +1 -0
- package/dist/chunk-ZNLTEZEF.js +170 -0
- package/dist/chunk-ZNLTEZEF.js.map +1 -0
- package/dist/chunk-ZO7PJMCO.js +1907 -0
- package/dist/chunk-ZO7PJMCO.js.map +1 -0
- package/dist/citations/index.cjs +14 -14
- package/dist/citations/index.js +2 -2
- package/dist/collaboration/index.cjs +36 -36
- package/dist/collaboration/index.js +2 -2
- package/dist/connect/docx.cjs +23 -28
- package/dist/connect/docx.cjs.map +1 -1
- package/dist/connect/docx.js +12 -28
- package/dist/connect/docx.js.map +1 -1
- package/dist/connect/index.cjs +8661 -2823
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +10 -2
- package/dist/connect/index.js +8468 -2671
- package/dist/connect/index.js.map +1 -1
- package/dist/connect/viewer.cjs +1229 -0
- package/dist/connect/viewer.cjs.map +1 -0
- package/dist/connect/viewer.d.ts +8 -0
- package/dist/connect/viewer.js +1226 -0
- package/dist/connect/viewer.js.map +1 -0
- package/dist/connection/ConnectedWorkflowsTable.d.ts +2 -12
- package/dist/connection/ai.d.ts +2 -9
- package/dist/connection/billing/AddAddonDialog.d.ts +24 -0
- package/dist/connection/billing/BillingCard.d.ts +18 -0
- package/dist/connection/billing/BillingProjectEntity.d.ts +9 -0
- package/dist/connection/billing/ChangePlanDialog.d.ts +20 -0
- package/dist/connection/billing/ChangeProPlan.d.ts +20 -0
- package/dist/connection/billing/CheckoutTotal.d.ts +12 -0
- package/dist/connection/billing/DailyCapEditor.d.ts +4 -0
- package/dist/connection/billing/InvoicesModal.d.ts +6 -0
- package/dist/connection/billing/NewProjectFlow.d.ts +14 -0
- package/dist/connection/billing/PlanChangeLines.d.ts +13 -0
- package/dist/connection/billing/PlanSelector.d.ts +50 -0
- package/dist/connection/billing/ProjectBilling.d.ts +24 -0
- package/dist/connection/billing/ProjectDetail.d.ts +16 -0
- package/dist/connection/billing/ProjectUsageCard.d.ts +21 -0
- package/dist/connection/billing/ProjectUsageContent.d.ts +18 -0
- package/dist/connection/billing/ProjectsTable.d.ts +13 -0
- package/dist/connection/billing/ReduceAddonDialog.d.ts +18 -0
- package/dist/connection/billing/ReferralReward.d.ts +32 -0
- package/dist/connection/billing/SharedProjects.d.ts +13 -0
- package/dist/connection/billing/StripeCheckoutModal.d.ts +32 -0
- package/dist/connection/billing/SubscriptionPlans.d.ts +15 -0
- package/dist/connection/billing/SubscriptionStatus.d.ts +10 -0
- package/dist/connection/billing/addon-pricing.d.ts +97 -0
- package/dist/connection/billing/api-error.d.ts +6 -0
- package/dist/connection/billing/billing-country.d.ts +14 -0
- package/dist/connection/billing/billing-focus.d.ts +11 -0
- package/dist/connection/billing/index.d.ts +22 -0
- package/dist/connection/billing/plan-badge.d.ts +15 -0
- package/dist/connection/billing/plan-change-outcome.d.ts +15 -0
- package/dist/connection/billing/plan-constants.d.ts +29 -0
- package/dist/connection/billing/plan-pricing.d.ts +67 -0
- package/dist/connection/billing/quota-items.d.ts +33 -0
- package/dist/connection/billing/referral-reward.d.ts +28 -0
- package/dist/connection/billing/refusal-copy.d.ts +5 -0
- package/dist/connection/billing/reward-balance.d.ts +19 -0
- package/dist/connection/billing/support.d.ts +35 -0
- package/dist/connection/billing/tax-quote.d.ts +36 -0
- package/dist/connection/billing/useAddonPurchase.d.ts +32 -0
- package/dist/connection/billing/useAutoRefreshPendingProjects.d.ts +11 -0
- package/dist/connection/billing/useCheckoutQuote.d.ts +30 -0
- package/dist/connection/billing/useOpenBillingPortal.d.ts +12 -0
- package/dist/connection/calendar/CalendarSettingsDialog.d.ts +1 -1
- package/dist/connection/facts/ConnectedFactsPage.d.ts +50 -0
- package/dist/connection/facts/FactMarkdownEditor.d.ts +57 -0
- package/dist/connection/facts/FactSourcesPopover.d.ts +38 -0
- package/dist/connection/facts/FactTextEditor.d.ts +2 -0
- package/dist/connection/facts/factNouns.d.ts +4 -0
- package/dist/connection/facts/factPageColumns.d.ts +37 -0
- package/dist/connection/facts/types.d.ts +127 -0
- package/dist/connection/facts/useFactActions.d.ts +10 -0
- package/dist/connection/facts/useFactComposer.d.ts +54 -0
- package/dist/connection/facts/useFactFilters.d.ts +101 -0
- package/dist/connection/facts/useFactSelection.d.ts +82 -0
- package/dist/connection/facts/useFactsGrid.d.ts +87 -0
- package/dist/connection/facts/useFactsPageView.d.ts +4 -0
- package/dist/connection/mail/ConnectedMailComposer.d.ts +3 -1
- package/dist/connection/mail/ConnectedMailbox.d.ts +4 -2
- package/dist/connection/mail/MailComposerForm.d.ts +4 -2
- package/dist/connection/mail/MailRecipientInput.d.ts +14 -0
- package/dist/connection/mail/index.d.ts +1 -1
- package/dist/connection/mail/types.d.ts +10 -0
- package/dist/connection/search/ConnectedSearchPage.d.ts +64 -0
- package/dist/connection/search/SearchResultRows.d.ts +38 -0
- package/dist/connection/search/index.d.ts +2 -0
- package/dist/connection/tags/ConnectedTagTable.d.ts +108 -0
- package/dist/connection/tags/ConnectedTagsPage.d.ts +55 -0
- package/dist/connection/tags/DocTagPassages.d.ts +25 -0
- package/dist/connection/tags/GlossaryExport.d.ts +7 -0
- package/dist/connection/tags/TagCombineFilter.d.ts +14 -0
- package/dist/connection/tags/TagPlacement.d.ts +16 -0
- package/dist/connection/tags/TagsPageSections.d.ts +36 -0
- package/dist/connection/tags/tagCombine.d.ts +55 -0
- package/dist/connection/useConnectedWorkNotifications.d.ts +7 -24
- package/dist/connection/viewer/ConnectedDocumentToolsProvider.d.ts +11 -0
- package/dist/connection/viewer/ConnectedDocumentViewer.d.ts +21 -0
- package/dist/connection/viewer/FinaliseTranslationButton.d.ts +15 -0
- package/dist/connection/viewer/ViewerPdfPane.d.ts +46 -0
- package/dist/connection/viewer/support.d.ts +79 -0
- package/dist/connection/viewer/useImageCrop.d.ts +13 -0
- package/dist/connection/viewer/useViewedDocument.d.ts +70 -0
- package/dist/connection/viewer/useViewerBlobs.d.ts +15 -0
- package/dist/connection/viewer/useViewerTabs.d.ts +18 -0
- package/dist/connection/viewer/useViewerVersions.d.ts +11 -0
- package/dist/connection/workspace-settings/useConnectedWorkspaceSettings.d.ts +6 -0
- package/dist/document-tools/index.cjs +59 -652
- package/dist/document-tools/index.cjs.map +1 -1
- package/dist/document-tools/index.js +2 -641
- package/dist/document-tools/index.js.map +1 -1
- package/dist/docx/index.cjs +48 -47
- package/dist/docx/index.js +4 -3
- package/dist/facts/FactsBulkBar.d.ts +6 -3
- package/dist/facts/cited-version-ref.d.ts +1 -0
- package/dist/facts/index.cjs +206 -1942
- package/dist/facts/index.cjs.map +1 -1
- package/dist/facts/index.d.ts +1 -0
- package/dist/facts/index.js +15 -1897
- package/dist/facts/index.js.map +1 -1
- package/dist/files/ViewerChrome.d.ts +5 -4
- package/dist/files/ViewerControlBar.d.ts +12 -0
- package/dist/files/doc-labels.d.ts +35 -0
- package/dist/files/grid/FilterButton.d.ts +12 -0
- package/dist/files/grid/RowDensityControl.d.ts +18 -0
- package/dist/files/grid/row-density.d.ts +27 -0
- package/dist/files/index.cjs +779 -7100
- package/dist/files/index.cjs.map +1 -1
- package/dist/files/index.d.ts +5 -0
- package/dist/files/index.js +14 -6919
- package/dist/files/index.js.map +1 -1
- package/dist/home/index.cjs +2 -2
- package/dist/home/index.js +2 -2
- package/dist/index.cjs +1041 -1257
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +24 -357
- package/dist/index.js.map +1 -1
- package/dist/retrieval/SearchSnippet.d.ts +6 -0
- package/dist/retrieval/index.cjs +75 -42
- package/dist/retrieval/index.d.ts +2 -0
- package/dist/retrieval/index.js +3 -2
- package/dist/retrieval/search-results.d.ts +46 -0
- package/dist/settings/Billing.d.ts +0 -66
- package/dist/settings/SubscriptionParts.d.ts +1 -50
- package/dist/settings/index.cjs +170 -218
- package/dist/settings/index.d.ts +3 -2
- package/dist/settings/index.js +3 -3
- package/dist/settings/inverted-index-filter.d.ts +26 -0
- package/dist/shell/index.cjs +2 -2
- package/dist/shell/index.js +2 -2
- package/dist/studio/index.cjs +5 -5
- package/dist/studio/index.js +4 -4
- package/dist/tags/definitions.d.ts +10 -0
- package/dist/tags/index.d.ts +4 -1
- package/dist/tags/page/ExtractEntitiesDialog.d.ts +24 -0
- package/dist/tags/page/TagPicker.d.ts +16 -0
- package/dist/tags/page/tagsPageLabels.d.ts +36 -0
- package/dist/workflow-canvas/index.cjs +21 -22
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/dist/workflow-canvas/index.js +8 -9
- package/dist/workflow-canvas/index.js.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +13 -4
- package/dist/calendar/access-setup.d.ts +0 -8
- package/dist/chunk-2MJWWPHY.js.map +0 -1
- package/dist/chunk-3AFWGEDJ.cjs +0 -53
- package/dist/chunk-3AFWGEDJ.cjs.map +0 -1
- package/dist/chunk-6YTHQ73P.cjs.map +0 -1
- package/dist/chunk-7RJTEWYM.js.map +0 -1
- package/dist/chunk-AINU3EJ6.cjs.map +0 -1
- package/dist/chunk-AOSUHWIL.js.map +0 -1
- package/dist/chunk-B3AHCIV5.js.map +0 -1
- package/dist/chunk-CSI2B2H5.js.map +0 -1
- package/dist/chunk-DAHCRVPM.js.map +0 -1
- package/dist/chunk-DETZZBG2.cjs.map +0 -1
- package/dist/chunk-DGV7HQA7.js.map +0 -1
- package/dist/chunk-EVUEIBNU.js.map +0 -1
- package/dist/chunk-H74HEPKT.js.map +0 -1
- package/dist/chunk-I2QSDQQV.cjs.map +0 -1
- package/dist/chunk-J5CWKFSC.js +0 -170
- package/dist/chunk-J5CWKFSC.js.map +0 -1
- package/dist/chunk-LTU35TQN.cjs.map +0 -1
- package/dist/chunk-MFY2ZNP6.cjs.map +0 -1
- package/dist/chunk-MHFF5N65.cjs.map +0 -1
- package/dist/chunk-NRFAWUVD.js.map +0 -1
- package/dist/chunk-O4YPVYPO.cjs.map +0 -1
- package/dist/chunk-ODRHHWHY.cjs.map +0 -1
- package/dist/chunk-QI6AIHWP.cjs.map +0 -1
- package/dist/chunk-QXMR5YHC.js.map +0 -1
- package/dist/chunk-RFXJYIDV.js +0 -50
- package/dist/chunk-RFXJYIDV.js.map +0 -1
- package/dist/chunk-U37AYUPI.cjs.map +0 -1
- package/dist/chunk-WIZ7Z7FN.js.map +0 -1
- package/dist/chunk-XVUOMWMD.cjs +0 -177
- package/dist/chunk-XVUOMWMD.cjs.map +0 -1
- package/dist/chunk-YSHIC4NJ.cjs.map +0 -1
- package/dist/connection/ConnectedTagTable.d.ts +0 -32
- package/dist/connection/calendar/CopyField.d.ts +0 -9
- package/dist/connection/calendar/OpenAccessPanel.d.ts +0 -7
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
import type { GridApi } from 'ag-grid-community';
|
|
3
|
+
import type { Fact, FactsChat, FactsLabelTarget } from './types';
|
|
4
|
+
export declare function useFactSelection(notes: Fact[], gridApiRef: RefObject<GridApi<Fact> | null>, setFactTags: (fact: Fact, tagExtIds: string[]) => Promise<void>, chat: FactsChat | undefined): {
|
|
5
|
+
selectedFacts: {
|
|
6
|
+
text: string;
|
|
7
|
+
citations?: import("@arbidocs/client").components["schemas"]["CitationSources"] | null;
|
|
8
|
+
external_id: string;
|
|
9
|
+
workspace_ext_id: string;
|
|
10
|
+
shared: boolean;
|
|
11
|
+
confirmed: boolean;
|
|
12
|
+
date_start?: string | null;
|
|
13
|
+
date_end?: string | null;
|
|
14
|
+
timezone?: string | null;
|
|
15
|
+
reminder_task_ext_ids: string[];
|
|
16
|
+
tags: import("@arbidocs/client").components["schemas"]["FactTagResponse"][];
|
|
17
|
+
created_by_ext_id: string;
|
|
18
|
+
created_at: string;
|
|
19
|
+
updated_at: string;
|
|
20
|
+
}[];
|
|
21
|
+
clearSelection: () => void;
|
|
22
|
+
gridSelection: {
|
|
23
|
+
mode: "multiple";
|
|
24
|
+
selected: {
|
|
25
|
+
text: string;
|
|
26
|
+
citations?: import("@arbidocs/client").components["schemas"]["CitationSources"] | null;
|
|
27
|
+
external_id: string;
|
|
28
|
+
workspace_ext_id: string;
|
|
29
|
+
shared: boolean;
|
|
30
|
+
confirmed: boolean;
|
|
31
|
+
date_start?: string | null;
|
|
32
|
+
date_end?: string | null;
|
|
33
|
+
timezone?: string | null;
|
|
34
|
+
reminder_task_ext_ids: string[];
|
|
35
|
+
tags: import("@arbidocs/client").components["schemas"]["FactTagResponse"][];
|
|
36
|
+
created_by_ext_id: string;
|
|
37
|
+
created_at: string;
|
|
38
|
+
updated_at: string;
|
|
39
|
+
}[];
|
|
40
|
+
onSelectionChange: import("react").Dispatch<import("react").SetStateAction<{
|
|
41
|
+
text: string;
|
|
42
|
+
citations?: import("@arbidocs/client").components["schemas"]["CitationSources"] | null;
|
|
43
|
+
external_id: string;
|
|
44
|
+
workspace_ext_id: string;
|
|
45
|
+
shared: boolean;
|
|
46
|
+
confirmed: boolean;
|
|
47
|
+
date_start?: string | null;
|
|
48
|
+
date_end?: string | null;
|
|
49
|
+
timezone?: string | null;
|
|
50
|
+
reminder_task_ext_ids: string[];
|
|
51
|
+
tags: import("@arbidocs/client").components["schemas"]["FactTagResponse"][];
|
|
52
|
+
created_by_ext_id: string;
|
|
53
|
+
created_at: string;
|
|
54
|
+
updated_at: string;
|
|
55
|
+
}[]>>;
|
|
56
|
+
};
|
|
57
|
+
bulkDelete: () => Promise<void>;
|
|
58
|
+
freshSelectedFacts: {
|
|
59
|
+
text: string;
|
|
60
|
+
citations?: import("@arbidocs/client").components["schemas"]["CitationSources"] | null;
|
|
61
|
+
external_id: string;
|
|
62
|
+
workspace_ext_id: string;
|
|
63
|
+
shared: boolean;
|
|
64
|
+
confirmed: boolean;
|
|
65
|
+
date_start?: string | null;
|
|
66
|
+
date_end?: string | null;
|
|
67
|
+
timezone?: string | null;
|
|
68
|
+
reminder_task_ext_ids: string[];
|
|
69
|
+
tags: import("@arbidocs/client").components["schemas"]["FactTagResponse"][];
|
|
70
|
+
created_by_ext_id: string;
|
|
71
|
+
created_at: string;
|
|
72
|
+
updated_at: string;
|
|
73
|
+
}[];
|
|
74
|
+
factsLabelTarget: FactsLabelTarget;
|
|
75
|
+
allSelectedInChat: boolean;
|
|
76
|
+
bulkToggleInChat: () => void;
|
|
77
|
+
bulkSetShared: (shouldShare: boolean) => Promise<void>;
|
|
78
|
+
exportItems: {
|
|
79
|
+
extId: string;
|
|
80
|
+
label: string;
|
|
81
|
+
}[];
|
|
82
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wiring for the facts AG Grid: stable columns and grid options (context delegates through a ref
|
|
3
|
+
* so the grid never blanket-refreshes), label cell, focus-flash from quick-access jumps.
|
|
4
|
+
*/
|
|
5
|
+
import type { useCreateTag } from '@arbidocs/react';
|
|
6
|
+
import type { TagResponse } from '@arbidocs/sdk/browser';
|
|
7
|
+
import { type ReactNode, type RefObject } from 'react';
|
|
8
|
+
import type { GridApi } from 'ag-grid-community';
|
|
9
|
+
import { type FactCreator, type LookupUser } from './factPageColumns';
|
|
10
|
+
import type { Fact } from './types';
|
|
11
|
+
type Tag = TagResponse;
|
|
12
|
+
/** Who may do something to a fact, by its creator's id. */
|
|
13
|
+
type CreatorCheck = (creatorExtId: string | null | undefined) => boolean;
|
|
14
|
+
interface FactsGridArgs {
|
|
15
|
+
notes: Fact[];
|
|
16
|
+
labelTags: Tag[];
|
|
17
|
+
createTagStable: Pick<ReturnType<typeof useCreateTag>, 'mutateAsync'>;
|
|
18
|
+
setFactTags: (fact: Fact, tagExtIds: string[]) => Promise<void>;
|
|
19
|
+
/** The current chat's fact ids: the In chat column refreshes when they change. */
|
|
20
|
+
chatFactIds: string[];
|
|
21
|
+
toggleInChat: (fact: Fact) => void;
|
|
22
|
+
toggleConfirmed: (fact: Fact) => void;
|
|
23
|
+
toggleShared: (fact: Fact) => void;
|
|
24
|
+
remove: (fact: Fact) => Promise<boolean>;
|
|
25
|
+
openEdit: (fact: Fact) => void;
|
|
26
|
+
gridApiRef: RefObject<GridApi<Fact> | null>;
|
|
27
|
+
editingIdRef: RefObject<string | null>;
|
|
28
|
+
/** Who may change who sees a fact, and who may reword or delete it. */
|
|
29
|
+
canChangeSharing: CreatorCheck;
|
|
30
|
+
canRewrite: CreatorCheck;
|
|
31
|
+
lookupUser: LookupUser;
|
|
32
|
+
renderUser?: (user: FactCreator | null) => ReactNode;
|
|
33
|
+
/** A fact to bring into view once (a jump from elsewhere), and its done. */
|
|
34
|
+
focusFactId?: string | null;
|
|
35
|
+
onFocused?: () => void;
|
|
36
|
+
/** The chat's In chat column (absent: no chat). */
|
|
37
|
+
hasChat: boolean;
|
|
38
|
+
}
|
|
39
|
+
export declare function useFactsGrid({ notes, labelTags, createTagStable, setFactTags, chatFactIds, toggleInChat, toggleConfirmed, toggleShared, remove, openEdit, gridApiRef, editingIdRef, canChangeSharing: canChange, canRewrite, lookupUser, renderUser, focusFactId: focusedFactId, onFocused, hasChat, }: FactsGridArgs): {
|
|
40
|
+
factColumns: import("ag-grid-community").ColDef<{
|
|
41
|
+
text: string;
|
|
42
|
+
citations?: import("@arbidocs/client").components["schemas"]["CitationSources"] | null;
|
|
43
|
+
external_id: string;
|
|
44
|
+
workspace_ext_id: string;
|
|
45
|
+
shared: boolean;
|
|
46
|
+
confirmed: boolean;
|
|
47
|
+
date_start?: string | null;
|
|
48
|
+
date_end?: string | null;
|
|
49
|
+
timezone?: string | null;
|
|
50
|
+
reminder_task_ext_ids: string[];
|
|
51
|
+
tags: import("@arbidocs/client").components["schemas"]["FactTagResponse"][];
|
|
52
|
+
created_by_ext_id: string;
|
|
53
|
+
created_at: string;
|
|
54
|
+
updated_at: string;
|
|
55
|
+
}, any>[];
|
|
56
|
+
factGridOptions: {
|
|
57
|
+
context: {
|
|
58
|
+
lookupUser: LookupUser;
|
|
59
|
+
renderUser: ((user: FactCreator | null) => ReactNode) | undefined;
|
|
60
|
+
renderFactTags: (fact: Fact, rowHeight?: number) => import("react").JSX.Element;
|
|
61
|
+
openEdit: (m: Fact) => void;
|
|
62
|
+
removeFact: (m: Fact) => Promise<boolean>;
|
|
63
|
+
canChangeSharing: (m: Fact) => boolean;
|
|
64
|
+
canRewrite: (m: Fact) => boolean;
|
|
65
|
+
};
|
|
66
|
+
onRowDoubleClicked: (e: {
|
|
67
|
+
data?: Fact;
|
|
68
|
+
}) => void | undefined;
|
|
69
|
+
getRowClass: (p: {
|
|
70
|
+
data?: Fact;
|
|
71
|
+
}) => "facts-row-editing" | undefined;
|
|
72
|
+
suppressClickEdit: boolean;
|
|
73
|
+
tooltipInteraction: boolean;
|
|
74
|
+
};
|
|
75
|
+
factCtxRef: RefObject<{
|
|
76
|
+
lookupUser: LookupUser;
|
|
77
|
+
renderUser: ((user: FactCreator | null) => ReactNode) | undefined;
|
|
78
|
+
renderFactTags: (fact: Fact, rowHeight?: number) => import("react").JSX.Element;
|
|
79
|
+
openEdit: (fact: Fact) => void;
|
|
80
|
+
removeFact: (fact: Fact) => Promise<boolean>;
|
|
81
|
+
canChange: CreatorCheck;
|
|
82
|
+
canRewrite: CreatorCheck;
|
|
83
|
+
chatFactIdSet: Set<string>;
|
|
84
|
+
toggleInChat: (fact: Fact) => void;
|
|
85
|
+
}>;
|
|
86
|
+
};
|
|
87
|
+
export {};
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { type RefObject } from 'react';
|
|
9
9
|
import { type MailAccount, type MailCompose, type MailMessage } from '@arbidocs/react';
|
|
10
|
-
import type { MailDocumentSource, MailOfflineSupport, MailWordEditor } from './types';
|
|
10
|
+
import type { MailDocumentSource, MailOfflineSupport, MailRecipientSuggestions, MailWordEditor } from './types';
|
|
11
11
|
export interface ConnectedMailComposerProps {
|
|
12
12
|
/** Open this saved draft (from the account's Drafts) instead of a new message. */
|
|
13
13
|
draftId?: string;
|
|
@@ -35,6 +35,8 @@ export interface ConnectedMailComposerProps {
|
|
|
35
35
|
offline?: MailOfflineSupport;
|
|
36
36
|
/** Workspace documents to attach ("From workspace"). Absent: not offered. */
|
|
37
37
|
documents?: MailDocumentSource;
|
|
38
|
+
/** People suggested while typing a recipient. Absent: plain address fields. */
|
|
39
|
+
recipients?: MailRecipientSuggestions;
|
|
38
40
|
/** A native draft's body in the Word editor (see {@link MailWordEditor}). Absent: the rich-text body. */
|
|
39
41
|
word?: MailWordEditor;
|
|
40
42
|
/** This compose session, stable across remounts (its Word room is kept for it). */
|
|
@@ -12,7 +12,7 @@ import { type ReactNode } from 'react';
|
|
|
12
12
|
import type { GridState } from 'ag-grid-community';
|
|
13
13
|
import { type MailAddress, type MailAccount, type MailAttachment, type MailMessage } from '@arbidocs/react';
|
|
14
14
|
import { type MailAliasUser } from './ConnectedMailAccounts';
|
|
15
|
-
import type { MailDocumentSource, MailOfflineSupport, MailPanelProps, MailSaveToWorkspace, MailWordEditor } from './types';
|
|
15
|
+
import type { MailDocumentSource, MailRecipientSuggestions, MailOfflineSupport, MailPanelProps, MailSaveToWorkspace, MailWordEditor } from './types';
|
|
16
16
|
export interface ConnectedMailboxProps {
|
|
17
17
|
/** Which mailbox: an account id, or `'native'` for the user's own inbox. Default: the first. */
|
|
18
18
|
mailbox?: string;
|
|
@@ -42,6 +42,8 @@ export interface ConnectedMailboxProps {
|
|
|
42
42
|
offline?: MailOfflineSupport;
|
|
43
43
|
/** The open workspace's documents, attachable in the composer. */
|
|
44
44
|
documents?: MailDocumentSource;
|
|
45
|
+
/** People suggested while typing a recipient in the composer. Absent: plain address fields. */
|
|
46
|
+
recipients?: MailRecipientSuggestions;
|
|
45
47
|
/** Saving an email into a workspace ("Save to workspace" on native mail). */
|
|
46
48
|
saveToWorkspace?: MailSaveToWorkspace;
|
|
47
49
|
/** Native drafts' bodies in the Word editor, where ARBI's edits are suggestions. Absent: rich text. */
|
|
@@ -65,4 +67,4 @@ export interface ConnectedMailboxProps {
|
|
|
65
67
|
/** The message opened first (e.g. restored after a redirect). */
|
|
66
68
|
initialMessageId?: string | null;
|
|
67
69
|
}
|
|
68
|
-
export declare function ConnectedMailbox({ mailbox, draftId, onDraftOpened, folder: requestedFolder, onFolderOpened, composeAttachments, onComposeOpened, onOpenDocument, user, productName, oauthReturnPath, personLabel, offline, documents, saveToWorkspace, word, onReplyWithArbi, renderInvite, renderPanel, onViewerOpenChange, gridState, onGridStateChange, initialMessageId, }: ConnectedMailboxProps): import("react").JSX.Element;
|
|
70
|
+
export declare function ConnectedMailbox({ mailbox, draftId, onDraftOpened, folder: requestedFolder, onFolderOpened, composeAttachments, onComposeOpened, onOpenDocument, user, productName, oauthReturnPath, personLabel, offline, documents, recipients, saveToWorkspace, word, onReplyWithArbi, renderInvite, renderPanel, onViewerOpenChange, gridState, onGridStateChange, initialMessageId, }: ConnectedMailboxProps): import("react").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type RefObject } from 'react';
|
|
2
2
|
import { type MailAccount, type MailCompose, type MailMessage } from '@arbidocs/react';
|
|
3
|
-
import type { MailDocumentSource, MailOfflineSupport, MailWordEditor } from './types';
|
|
3
|
+
import type { MailDocumentSource, MailOfflineSupport, MailRecipientSuggestions, MailWordEditor } from './types';
|
|
4
4
|
export interface MailComposerFormProps {
|
|
5
5
|
account?: MailAccount;
|
|
6
6
|
initial: MailCompose;
|
|
@@ -21,6 +21,8 @@ export interface MailComposerFormProps {
|
|
|
21
21
|
localDraftId?: string;
|
|
22
22
|
offline?: MailOfflineSupport;
|
|
23
23
|
documents?: MailDocumentSource;
|
|
24
|
+
/** People suggested while typing a recipient. Absent: plain address fields. */
|
|
25
|
+
recipients?: MailRecipientSuggestions;
|
|
24
26
|
/** A native draft's body in the Word editor. Absent: the rich-text body. */
|
|
25
27
|
word?: MailWordEditor;
|
|
26
28
|
/** This compose session, stable across remounts (its Word room is kept for it). */
|
|
@@ -31,4 +33,4 @@ export interface MailComposerFormProps {
|
|
|
31
33
|
headerSlot?: HTMLElement | null;
|
|
32
34
|
}
|
|
33
35
|
/** Write, save and send one message. */
|
|
34
|
-
export declare function MailComposerForm({ account, initial, maxBytes, ready, drafts, onClose, onOpenDraft, onReload, onChange, embedded, closeRequestRef, localDraftId: initialLocalDraftId, offline, documents, word, sessionKey, roomId, headerSlot, }: MailComposerFormProps): import("react").JSX.Element;
|
|
36
|
+
export declare function MailComposerForm({ account, initial, maxBytes, ready, drafts, onClose, onOpenDraft, onReload, onChange, embedded, closeRequestRef, localDraftId: initialLocalDraftId, offline, documents, recipients, word, sessionKey, roomId, headerSlot, }: MailComposerFormProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type InputHTMLAttributes } from 'react';
|
|
2
|
+
import type { MailRecipientSuggestions } from './types';
|
|
3
|
+
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'>;
|
|
4
|
+
export interface MailRecipientInputProps extends InputProps {
|
|
5
|
+
value: string;
|
|
6
|
+
onValueChange: (value: string) => void;
|
|
7
|
+
suggestions: MailRecipientSuggestions;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A To / Cc / Bcc field that suggests people as you type the current address (a combobox: arrows move,
|
|
11
|
+
* Enter picks, Escape dismisses). Picking replaces the address being typed and leaves room for the next one.
|
|
12
|
+
*/
|
|
13
|
+
export declare function MailRecipientInput({ value, onValueChange, suggestions: source, className, ...input }: MailRecipientInputProps): import("react").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -4,4 +4,4 @@ export { ConnectedMailMessage, type ConnectedMailMessageProps } from './Connecte
|
|
|
4
4
|
export { resolveMailbox } from './mailbox';
|
|
5
5
|
export { ConnectedMailAccounts, type ConnectedMailAccountsProps, type MailAliasUser, } from './ConnectedMailAccounts';
|
|
6
6
|
export { ConnectedMailSetup } from './ConnectedMailSetup';
|
|
7
|
-
export type { MailLocalDraft, MailOutboxEntry, MailOutboxRequest, MailOfflineSupport, MailDocumentSource, MailSaveToWorkspace, MailPanelProps, MailWordEditor, } from './types';
|
|
7
|
+
export type { MailLocalDraft, MailOutboxEntry, MailOutboxRequest, MailOfflineSupport, MailDocumentSource, MailRecipientSuggestions, MailSaveToWorkspace, MailPanelProps, MailWordEditor, } from './types';
|
|
@@ -59,6 +59,16 @@ export interface MailOfflineSupport {
|
|
|
59
59
|
/** The request never got an answer (no connection), as opposed to the server refusing it. */
|
|
60
60
|
isNetworkFailure(error: unknown): boolean;
|
|
61
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* People to suggest while an address is typed in To / Cc / Bcc. `useSuggestions` is a hook (called on every
|
|
64
|
+
* render with the address being typed, '' for none): pass a stable object (e.g. a module constant).
|
|
65
|
+
*/
|
|
66
|
+
export interface MailRecipientSuggestions {
|
|
67
|
+
useSuggestions(query: string): {
|
|
68
|
+
email: string;
|
|
69
|
+
name?: string | null;
|
|
70
|
+
}[];
|
|
71
|
+
}
|
|
62
72
|
/** The open workspace's documents, attachable to an email as their files. */
|
|
63
73
|
export interface MailDocumentSource {
|
|
64
74
|
documents: MailAttachableDocument[];
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Smart Search page, connected: search the open workspace's documents for passages
|
|
3
|
+
* (`useSemanticSearch` over the shared search session, so results outlive the page), group them
|
|
4
|
+
* by document or list them by relevance, cut them by a relevance threshold, open a passage in the
|
|
5
|
+
* host's viewer (`BlocksEnvironment.openDocument`), and label every listed document.
|
|
6
|
+
*
|
|
7
|
+
* Runs under any host (`useConnectedWorkspace`). What it searches is the host's to narrow: pass
|
|
8
|
+
* `scope` (the filtered documents and the filter control); without it the page searches the whole
|
|
9
|
+
* workspace. A host can also bring its own document chip and empty-workspace surface.
|
|
10
|
+
*/
|
|
11
|
+
import { type ReactNode } from 'react';
|
|
12
|
+
import { type ConnectedDocument } from '../workspaceData';
|
|
13
|
+
import { type SearchRowLabels } from './SearchResultRows';
|
|
14
|
+
/** What the page searches: the host's narrowed document set and the control that narrows it. */
|
|
15
|
+
export interface SearchScope {
|
|
16
|
+
/** The documents to search; `null` searches the whole workspace (nothing narrowed). */
|
|
17
|
+
docIds: string[] | null;
|
|
18
|
+
/** How many documents are in scope (the tab's count, the intro's "N documents"). */
|
|
19
|
+
count: number;
|
|
20
|
+
/** The filter control, shown in the tab's actions on the standalone page. */
|
|
21
|
+
filter?: ReactNode;
|
|
22
|
+
/** Hover handlers of the filter control, attached to the whole tab. */
|
|
23
|
+
filterHoverHandlers?: {
|
|
24
|
+
onMouseEnter: () => void;
|
|
25
|
+
onMouseLeave: () => void;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export interface SearchDocumentChipProps {
|
|
29
|
+
docId: string;
|
|
30
|
+
/** The document from the open workspace's list, when it is there. */
|
|
31
|
+
doc?: ConnectedDocument;
|
|
32
|
+
}
|
|
33
|
+
export interface ConnectedSearchPageLabels extends SearchRowLabels {
|
|
34
|
+
tab: string;
|
|
35
|
+
/** An example query rather than an instruction: quoted phrase plus free words. */
|
|
36
|
+
placeholder: string;
|
|
37
|
+
byDoc: string;
|
|
38
|
+
byDocTitle: string;
|
|
39
|
+
byPassage: string;
|
|
40
|
+
byPassageTitle: string;
|
|
41
|
+
grouping: string;
|
|
42
|
+
offline: string;
|
|
43
|
+
tooManyDocuments: (count: number, max: number) => string;
|
|
44
|
+
/** The default name of the label made from a search. */
|
|
45
|
+
labelName: (query: string) => string;
|
|
46
|
+
labelled: (count: number, name: string) => string;
|
|
47
|
+
labelFailed: string;
|
|
48
|
+
}
|
|
49
|
+
export declare const DEFAULT_CONNECTED_SEARCH_PAGE_LABELS: ConnectedSearchPageLabels;
|
|
50
|
+
export interface ConnectedSearchPageProps {
|
|
51
|
+
/**
|
|
52
|
+
* Shown inside a host's Files view: no tab header of its own (the host has it and the filter),
|
|
53
|
+
* and the grouping toggle on a slim row above the search box.
|
|
54
|
+
*/
|
|
55
|
+
embedded?: boolean;
|
|
56
|
+
/** What to search; default the whole workspace. */
|
|
57
|
+
scope?: SearchScope;
|
|
58
|
+
/** A document's chip in a group's header; default the document's entity pill. */
|
|
59
|
+
DocumentChip?: (props: SearchDocumentChipProps) => ReactNode;
|
|
60
|
+
/** Shown instead of the intro when the workspace has no documents (e.g. an upload surface). */
|
|
61
|
+
emptyWorkspace?: ReactNode;
|
|
62
|
+
labels?: Partial<ConnectedSearchPageLabels>;
|
|
63
|
+
}
|
|
64
|
+
export declare function ConnectedSearchPage({ embedded, scope, DocumentChip, emptyWorkspace, labels, }: ConnectedSearchPageProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The search page's rows: a passage in the flat list, a passage inside its document's group, and
|
|
3
|
+
* the group's header. Each is memoized against stable props from the page, so paging or moving
|
|
4
|
+
* the threshold doesn't re-render rows.
|
|
5
|
+
*/
|
|
6
|
+
import { type MouseEvent, type ReactNode } from 'react';
|
|
7
|
+
import { type SearchChunk } from '@arbidocs/react';
|
|
8
|
+
import { type SearchDocumentGroup } from '../../retrieval/search-results';
|
|
9
|
+
export interface SearchRowLabels {
|
|
10
|
+
/** Badge on a passage that contains none of the query's words. */
|
|
11
|
+
meaningMatch: string;
|
|
12
|
+
meaningMatchTitle: string;
|
|
13
|
+
/** The page a grouped passage is on. */
|
|
14
|
+
page: (page: number) => string;
|
|
15
|
+
/** A grouped passage without a page. */
|
|
16
|
+
passage: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const DEFAULT_SEARCH_ROW_LABELS: SearchRowLabels;
|
|
19
|
+
interface RowProps {
|
|
20
|
+
hit: SearchChunk;
|
|
21
|
+
terms: string[];
|
|
22
|
+
onOpen: (e: MouseEvent, hit: SearchChunk) => void;
|
|
23
|
+
labels: SearchRowLabels;
|
|
24
|
+
}
|
|
25
|
+
export declare const FlatResultRow: import("react").NamedExoticComponent<RowProps & {
|
|
26
|
+
position: number;
|
|
27
|
+
}>;
|
|
28
|
+
export declare const GroupedResultRow: import("react").NamedExoticComponent<RowProps & {
|
|
29
|
+
testId: string;
|
|
30
|
+
}>;
|
|
31
|
+
export declare const SearchGroupRowHeader: import("react").NamedExoticComponent<{
|
|
32
|
+
group: SearchDocumentGroup;
|
|
33
|
+
/** The document's chip. */
|
|
34
|
+
source: ReactNode;
|
|
35
|
+
isExpanded: boolean;
|
|
36
|
+
onToggle: (docId: string) => void;
|
|
37
|
+
}>;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ConnectedSearchPage, DEFAULT_CONNECTED_SEARCH_PAGE_LABELS, type ConnectedSearchPageProps, type ConnectedSearchPageLabels, type SearchScope, type SearchDocumentChipProps, } from './ConnectedSearchPage';
|
|
2
|
+
export { DEFAULT_SEARCH_ROW_LABELS, type SearchRowLabels } from './SearchResultRows';
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `TagTable` bound to the connection: every tag of a kind in the open workspace (`kind="issue"`:
|
|
3
|
+
* every issue), or with `parentId` a label's children. The columns are the kind's fields in the
|
|
4
|
+
* workspace (`useTagKindSchema`), edited in place and saved as the kind's schema
|
|
5
|
+
* (`useUpdateTagKindSchema`); the rows are the tag list filtered by kind with links (`useTags`),
|
|
6
|
+
* their cells saved with `useSetTagValues`. "Add row" creates a tag of the kind (issues, people and
|
|
7
|
+
* organisations are flat: no parent). The workspace's people fill person columns and its tags
|
|
8
|
+
* link columns; the snapshot is filed in the workspace as a Word document (`.docx`, so it opens in
|
|
9
|
+
* the Word editor; its id goes to `onExported`, so a host can open it or send it for signature) or
|
|
10
|
+
* downloaded. A `filter` narrows the rows to the tagged items it lets through and to the tags
|
|
11
|
+
* whose name (or values) match its text, as the Tags page's filter does. A refused write is said
|
|
12
|
+
* through the blocks environment (`notify`).
|
|
13
|
+
*/
|
|
14
|
+
import { type TagKind } from '@arbidocs/sdk/browser';
|
|
15
|
+
import { type TagTableProps } from '../../tags/TagTable';
|
|
16
|
+
import { type TagFilterMatches } from './tagCombine';
|
|
17
|
+
/** What the filter box searches: tag names, and optionally their field values. */
|
|
18
|
+
export type TagTableFilterField = 'name' | 'values';
|
|
19
|
+
/** What narrows a table: the tagged items a tag filter lets through, and the filter box's text. */
|
|
20
|
+
export interface TagTableFilter {
|
|
21
|
+
matches?: TagFilterMatches;
|
|
22
|
+
text?: string;
|
|
23
|
+
fields?: readonly TagTableFilterField[];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* What a tag's values can name: the open workspace's people (person fields) and tags (link fields,
|
|
27
|
+
* e.g. a person's organisation, named for their chips), and the tag list itself.
|
|
28
|
+
*/
|
|
29
|
+
export declare function useTagValueOptions(): {
|
|
30
|
+
allTags: {
|
|
31
|
+
external_id: string;
|
|
32
|
+
workspace_ext_id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
instruction?: string | null | undefined;
|
|
35
|
+
tag_type: {
|
|
36
|
+
type: "checkbox" | "text" | "number" | "select" | "search" | "date";
|
|
37
|
+
options: string[];
|
|
38
|
+
};
|
|
39
|
+
kind: "label" | "annotation" | "search" | "issue" | "person" | "organisation";
|
|
40
|
+
shared: boolean;
|
|
41
|
+
parent_ext_id?: string | null | undefined;
|
|
42
|
+
doctag_count: number;
|
|
43
|
+
facttag_count: number;
|
|
44
|
+
convotag_count: number;
|
|
45
|
+
field_values?: {
|
|
46
|
+
[x: string]: unknown;
|
|
47
|
+
} | undefined;
|
|
48
|
+
links?: {
|
|
49
|
+
docs?: {
|
|
50
|
+
doc_ext_id: string;
|
|
51
|
+
file_name: string;
|
|
52
|
+
note?: string | null | undefined;
|
|
53
|
+
citations_count: number;
|
|
54
|
+
updated_at: string;
|
|
55
|
+
}[] | undefined;
|
|
56
|
+
facts?: {
|
|
57
|
+
fact_ext_id: string;
|
|
58
|
+
text: string;
|
|
59
|
+
confirmed: boolean;
|
|
60
|
+
updated_at: string;
|
|
61
|
+
}[] | undefined;
|
|
62
|
+
threads?: {
|
|
63
|
+
conversation_ext_id: string;
|
|
64
|
+
title?: string | null | undefined;
|
|
65
|
+
updated_at: string;
|
|
66
|
+
}[] | undefined;
|
|
67
|
+
doc_count: number;
|
|
68
|
+
fact_count: number;
|
|
69
|
+
thread_count: number;
|
|
70
|
+
} | null | undefined;
|
|
71
|
+
created_by_ext_id: string;
|
|
72
|
+
updated_by_ext_id?: string | null | undefined;
|
|
73
|
+
created_at: string;
|
|
74
|
+
updated_at: string;
|
|
75
|
+
}[];
|
|
76
|
+
people: {
|
|
77
|
+
value: string;
|
|
78
|
+
label: string;
|
|
79
|
+
}[];
|
|
80
|
+
tagOptions: {
|
|
81
|
+
value: string;
|
|
82
|
+
label: string;
|
|
83
|
+
kind: "label" | "search" | "annotation" | "person" | "organisation" | "issue";
|
|
84
|
+
}[];
|
|
85
|
+
};
|
|
86
|
+
export interface ConnectedTagTableProps extends Pick<TagTableProps, 'onOpenDocument' | 'onOpenFact' | 'onOpenThread' | 'onOpenRow' | 'onOpenTag' | 'actions' | 'labels' | 'className' | 'testId'> {
|
|
87
|
+
/** The rows are the workspace's tags of this kind, oldest first; the columns its fields. */
|
|
88
|
+
kind: TagKind;
|
|
89
|
+
/** This tag's children instead (a label hierarchy; flat kinds have none), as rows of `kind`. */
|
|
90
|
+
parentId?: string;
|
|
91
|
+
/** How many documents, facts and threads each row lists (the rest are counted). Default 3. */
|
|
92
|
+
linksLimit?: number;
|
|
93
|
+
/** Narrow the rows (see {@link TagTableFilter}). */
|
|
94
|
+
filter?: TagTableFilter;
|
|
95
|
+
/** The exported document's title; default the kind's ("Issues", "People", …). */
|
|
96
|
+
exportTitle?: string;
|
|
97
|
+
/** The snapshot was filed: its document id. Absent: no export button. */
|
|
98
|
+
onExported?: (documentId: string) => void;
|
|
99
|
+
/** Offer the snapshot as a `.docx` download. Default true. */
|
|
100
|
+
downloadable?: boolean;
|
|
101
|
+
/** Offer "Add row" (where the kind is added by name). Default true. */
|
|
102
|
+
addRows?: boolean;
|
|
103
|
+
/** Edit the columns (the kind's fields). Default true. */
|
|
104
|
+
editColumns?: boolean;
|
|
105
|
+
/** Read only: no cell edits, no "Add row", no column changes. */
|
|
106
|
+
readOnly?: boolean;
|
|
107
|
+
}
|
|
108
|
+
export declare function ConnectedTagTable({ kind, parentId, linksLimit, filter, exportTitle, onExported, downloadable, addRows, editColumns, readOnly, ...props }: ConnectedTagTableProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Tags page: every tag of the open workspace, by kind — labels, annotations, issues, people,
|
|
3
|
+
* organisations and saved searches — and everything tagged with each one.
|
|
4
|
+
*
|
|
5
|
+
* The tab header has a button per kind and the filter box with its filter menu, which only filters
|
|
6
|
+
* what is shown: tags included or excluded, whichever kind they are, narrow every view to the
|
|
7
|
+
* items they let through (`TagFilterChips` lists them). In the main area a search-and-create picker
|
|
8
|
+
* (`TagPicker`) opens a tag of the open kind or creates one. A kind shows all its tags as a table
|
|
9
|
+
* (their kind's fields as columns, and the items tagged with each); a tag shows its fields,
|
|
10
|
+
* editable in place, and every document (with the tag's note there and the passages it cites),
|
|
11
|
+
* fact and thread tagged with it, plus its sub-tags. Tags are moved, shared and deleted here;
|
|
12
|
+
* people and organisations can be extracted from documents.
|
|
13
|
+
*
|
|
14
|
+
* Data comes from `@arbidocs/react` (the open workspace's tags, tables, kinds, facts) and the
|
|
15
|
+
* connected workspace lists (`useConnectedDocuments`, `useConnectedConversations`: a host that keeps
|
|
16
|
+
* them itself gives them once through `ConnectedWorkspaceDataProvider`). What belongs to other
|
|
17
|
+
* parts of the host — the AI review, Smart Search, the tag editor form, opening a fact — comes in
|
|
18
|
+
* as callbacks and a render slot.
|
|
19
|
+
*/
|
|
20
|
+
import { type ReactNode } from 'react';
|
|
21
|
+
import { type TagKind, type TagResponse } from '@arbidocs/sdk/browser';
|
|
22
|
+
/** The kinds the AI review fills across the documents. */
|
|
23
|
+
export type TagsReviewKind = Extract<TagKind, 'label' | 'annotation' | 'issue'>;
|
|
24
|
+
/** What the tag editor is given: the tag to edit, and what to do once a new one is made. */
|
|
25
|
+
export interface TagEditorSlotProps {
|
|
26
|
+
open: boolean;
|
|
27
|
+
onOpenChange: (open: boolean) => void;
|
|
28
|
+
tag: TagResponse | undefined;
|
|
29
|
+
/** The workspace's tags (saved searches aside): what a tag can be nested under. */
|
|
30
|
+
tags: TagResponse[];
|
|
31
|
+
/** A new tag was made: open it. */
|
|
32
|
+
onCreated: (tagId: string) => void;
|
|
33
|
+
}
|
|
34
|
+
export interface ConnectedTagsPageProps {
|
|
35
|
+
/** Documents whose people and organisations are still being extracted. */
|
|
36
|
+
extractingDocIds?: readonly string[];
|
|
37
|
+
/** Open a fact. Absent: facts are listed, not opened. */
|
|
38
|
+
onOpenFact?: (factId: string) => void;
|
|
39
|
+
/** Open Smart Search: the saved searches' action. Absent: none. */
|
|
40
|
+
onOpenSmartSearch?: () => void;
|
|
41
|
+
/**
|
|
42
|
+
* Have the AI fill a kind's tags (or the open tag) across the documents: the labels',
|
|
43
|
+
* annotations' and issues' action. Absent: none.
|
|
44
|
+
*/
|
|
45
|
+
onReview?: (target: {
|
|
46
|
+
kind: TagsReviewKind;
|
|
47
|
+
tag?: {
|
|
48
|
+
id: string;
|
|
49
|
+
name: string;
|
|
50
|
+
};
|
|
51
|
+
}) => void;
|
|
52
|
+
/** The tag editor (a dialog). Absent: tags are not edited here. */
|
|
53
|
+
renderTagEditor?: (props: TagEditorSlotProps) => ReactNode;
|
|
54
|
+
}
|
|
55
|
+
export declare function ConnectedTagsPage({ extractingDocIds, onOpenFact, onOpenSmartSearch, onReview, renderTagEditor, }: ConnectedTagsPageProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The passages a tag's link to a document cites ("2 passages" under a tag on the Tags page), shown
|
|
3
|
+
* like a fact's sources: hovering or clicking the count opens a popover listing them (page +
|
|
4
|
+
* excerpt); a passage opens the document in the viewer at that passage, highlighted, exactly like a
|
|
5
|
+
* chat or fact citation; a cited document's name opens it; a whole-document citation just opens it.
|
|
6
|
+
*
|
|
7
|
+
* The citations are the doctag's own (`doctags[].citations` of the workspace's documents);
|
|
8
|
+
* excerpts are read live from the documents (`usePassageQuotes`); the presentation is the facts'
|
|
9
|
+
* (`FactSourcesPanel`, `FactSourceGroup`, `FactPassageItem`).
|
|
10
|
+
*/
|
|
11
|
+
import type { components } from '@arbidocs/client';
|
|
12
|
+
type DocResponse = components['schemas']['DocResponse'];
|
|
13
|
+
export interface DocTagPassagesProps {
|
|
14
|
+
/** The tagged document. */
|
|
15
|
+
docId: string;
|
|
16
|
+
/** The tag whose link to the document cites the passages. */
|
|
17
|
+
tagId: string;
|
|
18
|
+
/** The count's text ("2 passages"). */
|
|
19
|
+
label: string;
|
|
20
|
+
/** The workspace's documents by id (the doctag's citations, the cited documents' names). */
|
|
21
|
+
docOf: (docId: string) => DocResponse | undefined;
|
|
22
|
+
testId?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare function DocTagPassages({ docId, tagId, label, docOf, testId }: DocTagPassagesProps): import("react").JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface GlossaryExportProps {
|
|
2
|
+
/** The Definitions label. */
|
|
3
|
+
labelId: string;
|
|
4
|
+
/** A cited document's name (a definition's source). */
|
|
5
|
+
nameOf: (docId: string) => string | null | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare function GlossaryExport({ labelId, nameOf }: GlossaryExportProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type TagKind, type TagResponse } from '@arbidocs/sdk/browser';
|
|
2
|
+
import { type TagCombination } from './tagCombine';
|
|
3
|
+
export interface TagCombineFilterProps {
|
|
4
|
+
tags: readonly TagResponse[];
|
|
5
|
+
combination: TagCombination;
|
|
6
|
+
onChange: (combination: TagCombination) => void;
|
|
7
|
+
/** The kinds whose tags the menu lists (the open view's). */
|
|
8
|
+
kinds: readonly TagKind[];
|
|
9
|
+
/** Trigger styling (e.g. flush inside the filter box, as on the Files page). */
|
|
10
|
+
triggerClassName?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function TagCombineFilter({ tags, combination, onChange, kinds, triggerClassName, }: TagCombineFilterProps): import("react").JSX.Element;
|
|
13
|
+
/** Every tag the filter includes or excludes, whichever kind it is, each removable; and Clear. */
|
|
14
|
+
export declare function TagFilterChips({ tags, combination, onChange, }: Pick<TagCombineFilterProps, 'tags' | 'combination' | 'onChange'>): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a tag sits and who sees it, on its page: shared with the workspace or private, and (labels
|
|
3
|
+
* and annotations) the tag it is nested under — "Top level" or "Under …", among the tags of its
|
|
4
|
+
* kind that may be a parent (never itself or a sub-tag of its own, never a nested one: nesting is
|
|
5
|
+
* two levels deep). A tag with sub-tags stays at the top level. Issues, people and organisations
|
|
6
|
+
* are flat. Data-free: the host saves the change.
|
|
7
|
+
*/
|
|
8
|
+
import { type TagChange, type TagResponse } from '@arbidocs/sdk/browser';
|
|
9
|
+
export interface TagPlacementProps {
|
|
10
|
+
tag: TagResponse;
|
|
11
|
+
/** The workspace's tags. */
|
|
12
|
+
tags: readonly TagResponse[];
|
|
13
|
+
/** Save a change (`parent_ext_id: null` moves it to the top level); `done` says what it did. */
|
|
14
|
+
onChange: (change: Pick<TagChange, 'shared' | 'parent_ext_id'>, done: string) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare function TagPlacement({ tag, tags, onChange }: TagPlacementProps): import("react").JSX.Element;
|