@arbidocs/blocks 0.4.147 → 0.4.151
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-OFPIXNJB.js +35 -0
- package/dist/ConnectedNativeDocxComparison-OFPIXNJB.js.map +1 -0
- package/dist/ConnectedNativeDocxComparison-Y5BNLNH6.cjs +44 -0
- package/dist/ConnectedNativeDocxComparison-Y5BNLNH6.cjs.map +1 -0
- package/dist/ConnectedNativeDocxEditor-HTEW5JAH.cjs +46 -0
- package/dist/ConnectedNativeDocxEditor-HTEW5JAH.cjs.map +1 -0
- package/dist/ConnectedNativeDocxEditor-LRYU5HPA.js +33 -0
- package/dist/ConnectedNativeDocxEditor-LRYU5HPA.js.map +1 -0
- package/dist/ConnectedStreamedWordArtifact-QAUVUCSX.js +35 -0
- package/dist/ConnectedStreamedWordArtifact-QAUVUCSX.js.map +1 -0
- package/dist/ConnectedStreamedWordArtifact-QW74LKHN.cjs +44 -0
- package/dist/ConnectedStreamedWordArtifact-QW74LKHN.cjs.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 +263 -264
- package/dist/agents/index.js +6 -7
- package/dist/calendar/index.cjs +117 -125
- package/dist/calendar/index.d.ts +0 -1
- package/dist/calendar/index.js +1 -1
- 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-LTU35TQN.cjs → chunk-2FLWPM3B.cjs} +636 -31
- package/dist/chunk-2FLWPM3B.cjs.map +1 -0
- package/dist/{chunk-SUUPR735.js → chunk-3PCBYOIZ.js} +4 -4
- package/dist/{chunk-SUUPR735.js.map → chunk-3PCBYOIZ.js.map} +1 -1
- package/dist/{chunk-WIZ7Z7FN.js → chunk-4236BRZK.js} +46 -221
- package/dist/chunk-4236BRZK.js.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-6I6CVX5G.cjs +22 -0
- package/dist/chunk-6I6CVX5G.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-B3FMUFAW.cjs +1956 -0
- package/dist/chunk-B3FMUFAW.cjs.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-VUR63NMQ.js → chunk-CROTH2BS.js} +6 -6
- package/dist/{chunk-VUR63NMQ.js.map → chunk-CROTH2BS.js.map} +1 -1
- package/dist/{chunk-AO7SK6WP.cjs → chunk-CU2O32Z4.cjs} +31 -31
- package/dist/{chunk-AO7SK6WP.cjs.map → chunk-CU2O32Z4.cjs.map} +1 -1
- package/dist/chunk-D3WFIFRY.cjs +659 -0
- package/dist/chunk-D3WFIFRY.cjs.map +1 -0
- package/dist/{chunk-DAHCRVPM.js → chunk-DB2OXRQC.js} +84 -82
- package/dist/chunk-DB2OXRQC.js.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-EYJMMGXF.js +19 -0
- package/dist/chunk-EYJMMGXF.js.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-T5I4NRFP.cjs → chunk-GFOEWPAP.cjs} +8 -8
- package/dist/{chunk-T5I4NRFP.cjs.map → chunk-GFOEWPAP.cjs.map} +1 -1
- package/dist/{chunk-QI6AIHWP.cjs → chunk-GOWXP5KT.cjs} +145 -14
- package/dist/chunk-GOWXP5KT.cjs.map +1 -0
- package/dist/chunk-HALD6ZB5.cjs +18 -0
- package/dist/chunk-HALD6ZB5.cjs.map +1 -0
- package/dist/chunk-HUJF2XM2.js +6584 -0
- package/dist/chunk-HUJF2XM2.js.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-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-AINU3EJ6.cjs → chunk-Q4BY2CQQ.cjs} +92 -90
- package/dist/chunk-Q4BY2CQQ.cjs.map +1 -0
- package/dist/chunk-QN47Q4N7.js +16 -0
- package/dist/chunk-QN47Q4N7.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-T74Q3MCZ.cjs +6751 -0
- package/dist/chunk-T74Q3MCZ.cjs.map +1 -0
- package/dist/{chunk-AOSUHWIL.js → chunk-TZOQKV64.js} +4 -37
- package/dist/chunk-TZOQKV64.js.map +1 -0
- package/dist/{chunk-U37AYUPI.cjs → chunk-U6JQ4KMX.cjs} +46 -233
- package/dist/chunk-U6JQ4KMX.cjs.map +1 -0
- package/dist/chunk-WFA2GVZJ.js +16 -0
- package/dist/chunk-WFA2GVZJ.js.map +1 -0
- package/dist/chunk-WU34CHU5.js +1907 -0
- package/dist/chunk-WU34CHU5.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-H74HEPKT.js → chunk-YXNNNP57.js} +598 -13
- package/dist/chunk-YXNNNP57.js.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-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-ZP6Q3KXU.cjs +18 -0
- package/dist/chunk-ZP6Q3KXU.cjs.map +1 -0
- package/dist/citations/index.cjs +14 -14
- package/dist/citations/index.js +2 -2
- package/dist/collaboration/index.cjs +35 -35
- package/dist/collaboration/index.js +1 -1
- package/dist/connect/docx.cjs +21 -26
- package/dist/connect/docx.cjs.map +1 -1
- package/dist/connect/docx.js +10 -26
- package/dist/connect/docx.js.map +1 -1
- package/dist/connect/index.cjs +8662 -2824
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +10 -2
- package/dist/connect/index.js +8467 -2670
- package/dist/connect/index.js.map +1 -1
- package/dist/connect/viewer.cjs +2357 -0
- package/dist/connect/viewer.cjs.map +1 -0
- package/dist/connect/viewer.d.ts +8 -0
- package/dist/connect/viewer.js +2350 -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/parsed/ParsedPassage.d.ts +48 -0
- package/dist/connection/viewer/parsed/ParsedTextView.d.ts +17 -0
- package/dist/connection/viewer/parsed/PassageTagPanel.d.ts +18 -0
- package/dist/connection/viewer/parsed/citation-line.d.ts +17 -0
- package/dist/connection/viewer/parsed/document-tags.d.ts +8 -0
- package/dist/connection/viewer/parsed/useChunkTagging.d.ts +46 -0
- package/dist/connection/viewer/parsed/useCitationSelection.d.ts +27 -0
- package/dist/connection/viewer/parsed/useDocumentLabels.d.ts +38 -0
- package/dist/connection/viewer/parsed/useLazyPages.d.ts +18 -0
- package/dist/connection/viewer/parsed/usePageScrollSync.d.ts +17 -0
- package/dist/connection/viewer/parsed/usePassageCopy.d.ts +25 -0
- package/dist/connection/viewer/support.d.ts +97 -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 +204 -1940
- package/dist/facts/index.cjs.map +1 -1
- package/dist/facts/index.d.ts +1 -0
- package/dist/facts/index.js +13 -1895
- package/dist/facts/index.js.map +1 -1
- package/dist/files/TagPassagePanel.d.ts +2 -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 +778 -7099
- package/dist/files/index.cjs.map +1 -1
- package/dist/files/index.d.ts +5 -0
- package/dist/files/index.js +13 -6918
- package/dist/files/index.js.map +1 -1
- package/dist/index.cjs +993 -1209
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -355
- package/dist/index.js.map +1 -1
- package/dist/retrieval/SearchSnippet.d.ts +6 -0
- package/dist/retrieval/index.cjs +74 -41
- package/dist/retrieval/index.d.ts +2 -0
- package/dist/retrieval/index.js +2 -1
- 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 +166 -214
- package/dist/settings/index.d.ts +3 -2
- package/dist/settings/index.js +1 -1
- package/dist/settings/inverted-index-filter.d.ts +26 -0
- package/dist/studio/index.cjs +3 -3
- package/dist/studio/index.js +2 -2
- 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 +19 -20
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/dist/workflow-canvas/index.js +6 -7
- 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,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the connected Facts page shares with its host. The page reads and writes the facts itself
|
|
3
|
+
* (`@arbidocs/react`); a host plugs in what lives elsewhere in it: the current chat's facts, the
|
|
4
|
+
* document viewer's passage collection, where the page's view choices are kept, and the parts that
|
|
5
|
+
* are its own (the labels panel, export, Smart Search).
|
|
6
|
+
*/
|
|
7
|
+
import type { ReactNode } from 'react';
|
|
8
|
+
import type { GridState } from 'ag-grid-community';
|
|
9
|
+
import type { FactResponse } from '@arbidocs/sdk/browser';
|
|
10
|
+
import type { TriState } from '../../settings/TriStateFilterMenu';
|
|
11
|
+
import type { FactsSearchField } from '../../facts/FactsFilterInput';
|
|
12
|
+
import type { FactsViewMode } from '../../facts/FactsViewToggle';
|
|
13
|
+
export type Fact = FactResponse;
|
|
14
|
+
/**
|
|
15
|
+
* The current chat's facts (absent: no chat, no In chat column). Adding is the host's to refuse
|
|
16
|
+
* (a budget, a duplicate) and to say why; it returns how many it added.
|
|
17
|
+
*/
|
|
18
|
+
export interface FactsChat {
|
|
19
|
+
/** The ids of the facts in the current chat. */
|
|
20
|
+
factIds: readonly string[];
|
|
21
|
+
add: (facts: Fact[]) => number;
|
|
22
|
+
remove: (factIds: string[]) => number;
|
|
23
|
+
/** The chat's facts budget, in characters (absent: no budget shown). */
|
|
24
|
+
budget?: {
|
|
25
|
+
used: number;
|
|
26
|
+
cap: number;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
/** A passage picked in the viewer for the fact being written. */
|
|
30
|
+
export interface CollectedPassage {
|
|
31
|
+
chunk_id: string;
|
|
32
|
+
page?: number | null;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The document viewer's passage collection: citing a document opens it in the viewer, and the
|
|
36
|
+
* passages picked (or unpicked) there land on the fact being written. Absent: citing a document
|
|
37
|
+
* opens it (`openDocument`) and sources are whole documents or passages already cited.
|
|
38
|
+
*/
|
|
39
|
+
export interface FactPassageCollector {
|
|
40
|
+
/** The document on display in the viewer (null when it is closed). */
|
|
41
|
+
displayedDocId: string | null;
|
|
42
|
+
/** The document passages are being collected from (null: not collecting). */
|
|
43
|
+
collectingDocId: string | null;
|
|
44
|
+
/** Passages picked in the viewer since the last `consumePicked`. */
|
|
45
|
+
picked: readonly CollectedPassage[];
|
|
46
|
+
/** Passages unpicked in the viewer since the last `consumeUnpicked`. */
|
|
47
|
+
unpicked: readonly string[];
|
|
48
|
+
consumePicked: () => void;
|
|
49
|
+
consumeUnpicked: () => void;
|
|
50
|
+
/** Open a document in the viewer, collecting for this fact (null: a new one). */
|
|
51
|
+
open: (docId: string, factId: string | null) => void;
|
|
52
|
+
/** Collect from a document already on display (null: stop collecting). */
|
|
53
|
+
collect: (docId: string | null) => void;
|
|
54
|
+
/** Close the viewer. */
|
|
55
|
+
close: () => void;
|
|
56
|
+
/** Mark the cited passages in the viewer while the sources list is open ([]: none). */
|
|
57
|
+
highlight: (chunkIds: string[]) => void;
|
|
58
|
+
/** Clear the passage being read in the viewer and its highlight. */
|
|
59
|
+
clearReading: () => void;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Where the page keeps its view choices, so they outlast leaving the page (default: kept in the
|
|
63
|
+
* page while it is mounted). Each pair is a value and its setter.
|
|
64
|
+
*/
|
|
65
|
+
export interface FactsPageView {
|
|
66
|
+
view: FactsViewMode;
|
|
67
|
+
setView: (view: FactsViewMode) => void;
|
|
68
|
+
/** The table's row height (px). */
|
|
69
|
+
rowHeight: number;
|
|
70
|
+
setRowHeight: (height: number) => void;
|
|
71
|
+
/** The timeline's label gutter width (px). */
|
|
72
|
+
labelWidth: number;
|
|
73
|
+
setLabelWidth: (width: number) => void;
|
|
74
|
+
/** The timeline zoom. */
|
|
75
|
+
zoom: number;
|
|
76
|
+
setZoom: (zoom: number) => void;
|
|
77
|
+
/** The filter box's text and what it searches. */
|
|
78
|
+
filterText: string;
|
|
79
|
+
setFilterText: (text: string) => void;
|
|
80
|
+
searchFields: FactsSearchField[];
|
|
81
|
+
setSearchFields: (fields: FactsSearchField[]) => void;
|
|
82
|
+
/** The quick filters (tri-state, by filter id). */
|
|
83
|
+
filters: Map<string, TriState>;
|
|
84
|
+
setFilters: (filters: Map<string, TriState>) => void;
|
|
85
|
+
/** The table's column state. */
|
|
86
|
+
gridState?: GridState;
|
|
87
|
+
setGridState?: (state: GridState) => void;
|
|
88
|
+
}
|
|
89
|
+
/** What the labels panel applies labels to: the selected facts. */
|
|
90
|
+
export interface FactsLabelTarget {
|
|
91
|
+
noun: {
|
|
92
|
+
singular: string;
|
|
93
|
+
plural: string;
|
|
94
|
+
};
|
|
95
|
+
ids: string[];
|
|
96
|
+
/** How many facts carry a label. */
|
|
97
|
+
countFor: (tagId: string) => number;
|
|
98
|
+
apply: (tagIds: string[]) => Promise<void>;
|
|
99
|
+
clear: (tagIds: string[]) => Promise<void>;
|
|
100
|
+
}
|
|
101
|
+
/** A one-off request from another surface: show a view, start a fact, or bring one into view. */
|
|
102
|
+
export interface FactsPageRequest {
|
|
103
|
+
view?: FactsViewMode | null;
|
|
104
|
+
compose?: boolean;
|
|
105
|
+
focusFactId?: string | null;
|
|
106
|
+
}
|
|
107
|
+
/** The host's own parts of the page. */
|
|
108
|
+
export interface FactsPageSlots {
|
|
109
|
+
/** The labels panel for the selected facts (opened by `onOpenLabels`). */
|
|
110
|
+
renderLabelsPanel?: (target: FactsLabelTarget) => ReactNode;
|
|
111
|
+
/** Export the selected facts. */
|
|
112
|
+
renderExport?: (props: {
|
|
113
|
+
open: boolean;
|
|
114
|
+
onOpenChange: (open: boolean) => void;
|
|
115
|
+
items: {
|
|
116
|
+
extId: string;
|
|
117
|
+
label: string;
|
|
118
|
+
}[];
|
|
119
|
+
}) => ReactNode;
|
|
120
|
+
/** The Smart Search view (absent: no Smart Search). */
|
|
121
|
+
renderSmartSearch?: (props: {
|
|
122
|
+
selectedFactId: string | null;
|
|
123
|
+
onOpenFact: (factId: string) => void;
|
|
124
|
+
}) => ReactNode;
|
|
125
|
+
/** Under the empty state (e.g. "find facts in your documents"). */
|
|
126
|
+
emptyStateExtra?: ReactNode;
|
|
127
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CellValueChangedEvent } from 'ag-grid-community';
|
|
2
|
+
import type { Fact } from './types';
|
|
3
|
+
export declare function useFactActions(refetch: () => unknown): {
|
|
4
|
+
toggleShared: (m: Fact) => Promise<void>;
|
|
5
|
+
toggleConfirmed: (m: Fact) => Promise<void>;
|
|
6
|
+
remove: (m: Fact) => Promise<boolean>;
|
|
7
|
+
setFactTags: (fact: Fact, tagExtIds: string[]) => Promise<void>;
|
|
8
|
+
handleCellValueChanged: (event: CellValueChangedEvent<Fact>) => Promise<void>;
|
|
9
|
+
isDeleting: boolean;
|
|
10
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The inline fact composer's state and behaviour: draft buffers, passage collection from the
|
|
3
|
+
* document viewer, create/update/delete, and the "dirty" check that gates Save.
|
|
4
|
+
*/
|
|
5
|
+
import type { components } from '@arbidocs/client';
|
|
6
|
+
import { type RefObject } from 'react';
|
|
7
|
+
import type { GridApi } from 'ag-grid-community';
|
|
8
|
+
import { type FactDateFields } from '../../facts/fact-date';
|
|
9
|
+
import type { Fact, FactPassageCollector } from './types';
|
|
10
|
+
export declare function useFactComposer(notes: Fact[], remove: (fact: Fact) => Promise<boolean>, gridApiRef: RefObject<GridApi<Fact> | null>, collector: FactPassageCollector | undefined,
|
|
11
|
+
/** A request to start a fact (from another surface), and its done. */
|
|
12
|
+
composeRequested: boolean, onComposeHandled: () => void): {
|
|
13
|
+
composing: boolean;
|
|
14
|
+
setComposing: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
15
|
+
draft: string;
|
|
16
|
+
setDraft: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
17
|
+
setBaselineText: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
18
|
+
draftCitations: {
|
|
19
|
+
doc_ext_id: string;
|
|
20
|
+
version?: number | null;
|
|
21
|
+
chunks?: components["schemas"]["CitedChunk"][];
|
|
22
|
+
}[] | null;
|
|
23
|
+
setDraftCitations: import("react").Dispatch<import("react").SetStateAction<{
|
|
24
|
+
doc_ext_id: string;
|
|
25
|
+
version?: number | null;
|
|
26
|
+
chunks?: components["schemas"]["CitedChunk"][];
|
|
27
|
+
}[] | null>>;
|
|
28
|
+
draftTagIds: string[];
|
|
29
|
+
setDraftTagIds: import("react").Dispatch<import("react").SetStateAction<string[]>>;
|
|
30
|
+
draftDateFields: FactDateFields;
|
|
31
|
+
setDraftDateFields: import("react").Dispatch<import("react").SetStateAction<FactDateFields>>;
|
|
32
|
+
draftShared: boolean;
|
|
33
|
+
setDraftShared: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
34
|
+
draftConfirmed: boolean;
|
|
35
|
+
setDraftConfirmed: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
36
|
+
composerError: string | null;
|
|
37
|
+
setComposerError: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
38
|
+
editingId: string | null;
|
|
39
|
+
composerSession: number;
|
|
40
|
+
editingIdRef: RefObject<string | null>;
|
|
41
|
+
displayedDocId: string | null;
|
|
42
|
+
resetComposer: () => void;
|
|
43
|
+
startNewFact: () => void;
|
|
44
|
+
saveComposer: () => Promise<void>;
|
|
45
|
+
deleteEditingFact: () => Promise<void>;
|
|
46
|
+
openEdit: (m: Fact) => void;
|
|
47
|
+
composerDirty: boolean;
|
|
48
|
+
citeDocument: (docExtId: string, target: string, opts?: {
|
|
49
|
+
toggle?: boolean;
|
|
50
|
+
}) => void;
|
|
51
|
+
setSourceCitationSession: (docExtId: string | null) => void;
|
|
52
|
+
isSaving: boolean;
|
|
53
|
+
DRAFT_TARGET: string;
|
|
54
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import type { TriStateGroup, TriStateOption } from '../../settings/TriStateFilterMenu';
|
|
2
|
+
import type { Fact, FactsChat, FactsPageView } from './types';
|
|
3
|
+
export declare function useFactFilters(notes: Fact[], view: FactsPageView, chat: FactsChat | undefined): {
|
|
4
|
+
labelTags: {
|
|
5
|
+
external_id: string;
|
|
6
|
+
workspace_ext_id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
instruction?: string | null | undefined;
|
|
9
|
+
tag_type: {
|
|
10
|
+
type: "checkbox" | "text" | "number" | "select" | "search" | "date";
|
|
11
|
+
options: string[];
|
|
12
|
+
};
|
|
13
|
+
kind: "label" | "annotation" | "search" | "issue" | "person" | "organisation";
|
|
14
|
+
shared: boolean;
|
|
15
|
+
parent_ext_id?: string | null | undefined;
|
|
16
|
+
doctag_count: number;
|
|
17
|
+
facttag_count: number;
|
|
18
|
+
convotag_count: number;
|
|
19
|
+
field_values?: {
|
|
20
|
+
[x: string]: unknown;
|
|
21
|
+
} | undefined;
|
|
22
|
+
links?: {
|
|
23
|
+
docs?: {
|
|
24
|
+
doc_ext_id: string;
|
|
25
|
+
file_name: string;
|
|
26
|
+
note?: string | null | undefined;
|
|
27
|
+
citations_count: number;
|
|
28
|
+
updated_at: string;
|
|
29
|
+
}[] | undefined;
|
|
30
|
+
facts?: {
|
|
31
|
+
fact_ext_id: string;
|
|
32
|
+
text: string;
|
|
33
|
+
confirmed: boolean;
|
|
34
|
+
updated_at: string;
|
|
35
|
+
}[] | undefined;
|
|
36
|
+
threads?: {
|
|
37
|
+
conversation_ext_id: string;
|
|
38
|
+
title?: string | null | undefined;
|
|
39
|
+
updated_at: string;
|
|
40
|
+
}[] | undefined;
|
|
41
|
+
doc_count: number;
|
|
42
|
+
fact_count: number;
|
|
43
|
+
thread_count: number;
|
|
44
|
+
} | null | undefined;
|
|
45
|
+
created_by_ext_id: string;
|
|
46
|
+
updated_by_ext_id?: string | null | undefined;
|
|
47
|
+
created_at: string;
|
|
48
|
+
updated_at: string;
|
|
49
|
+
}[];
|
|
50
|
+
createTagStable: {
|
|
51
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
52
|
+
external_id: string;
|
|
53
|
+
workspace_ext_id: string;
|
|
54
|
+
name: string;
|
|
55
|
+
instruction?: string | null;
|
|
56
|
+
tag_type: import("@arbidocs/client").components["schemas"]["TagFormat"];
|
|
57
|
+
kind: "label" | "annotation" | "search" | "issue" | "person" | "organisation";
|
|
58
|
+
shared: boolean;
|
|
59
|
+
parent_ext_id?: string | null;
|
|
60
|
+
doctag_count: number;
|
|
61
|
+
facttag_count: number;
|
|
62
|
+
convotag_count: number;
|
|
63
|
+
field_values?: {
|
|
64
|
+
[key: string]: unknown;
|
|
65
|
+
};
|
|
66
|
+
links?: import("@arbidocs/client").components["schemas"]["TagLinks"] | null;
|
|
67
|
+
created_by_ext_id: string;
|
|
68
|
+
updated_by_ext_id?: string | null;
|
|
69
|
+
created_at: string;
|
|
70
|
+
updated_at: string;
|
|
71
|
+
}, Error, import("@arbidocs/react").CreateTagInput, unknown>;
|
|
72
|
+
};
|
|
73
|
+
makeTagPicker: (selected: string[], setSelected: (ids: string[]) => void, opts?: {
|
|
74
|
+
hideAppliedPills?: boolean;
|
|
75
|
+
}) => import("react").JSX.Element;
|
|
76
|
+
factFilters: Map<string, import("../../settings").TriState>;
|
|
77
|
+
setFactFilters: (filters: Map<string, import("../../settings").TriState>) => void;
|
|
78
|
+
factFilterOptions: TriStateOption<string>[];
|
|
79
|
+
factFilterGroups: TriStateGroup<string>[];
|
|
80
|
+
factsFilter: string;
|
|
81
|
+
setFactsFilter: (text: string) => void;
|
|
82
|
+
factsSearchFields: import("../..").FilterField[];
|
|
83
|
+
setFactsSearchFields: (fields: import("../..").FilterField[]) => void;
|
|
84
|
+
filteredNotes: {
|
|
85
|
+
text: string;
|
|
86
|
+
citations?: import("@arbidocs/client").components["schemas"]["CitationSources"] | null;
|
|
87
|
+
external_id: string;
|
|
88
|
+
workspace_ext_id: string;
|
|
89
|
+
shared: boolean;
|
|
90
|
+
confirmed: boolean;
|
|
91
|
+
date_start?: string | null;
|
|
92
|
+
date_end?: string | null;
|
|
93
|
+
timezone?: string | null;
|
|
94
|
+
reminder_task_ext_ids: string[];
|
|
95
|
+
tags: import("@arbidocs/client").components["schemas"]["FactTagResponse"][];
|
|
96
|
+
created_by_ext_id: string;
|
|
97
|
+
created_at: string;
|
|
98
|
+
updated_at: string;
|
|
99
|
+
}[];
|
|
100
|
+
hasActiveFilters: boolean;
|
|
101
|
+
};
|
|
@@ -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;
|