@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
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkFAXXN7KI_cjs = require('./chunk-FAXXN7KI.cjs');
|
|
5
|
+
var chunkD54JXTPG_cjs = require('./chunk-D54JXTPG.cjs');
|
|
6
|
+
var chunkQT3A4PFC_cjs = require('./chunk-QT3A4PFC.cjs');
|
|
7
|
+
var chunkGFOEWPAP_cjs = require('./chunk-GFOEWPAP.cjs');
|
|
8
|
+
var chunkRQ2Y7USX_cjs = require('./chunk-RQ2Y7USX.cjs');
|
|
9
|
+
var chunkULWRNGGE_cjs = require('./chunk-ULWRNGGE.cjs');
|
|
6
10
|
var ui = require('@arbidocs/react/ui');
|
|
7
11
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
-
var react = require('react');
|
|
9
12
|
var lucideReact = require('lucide-react');
|
|
13
|
+
var react = require('react');
|
|
10
14
|
|
|
11
15
|
function LoadingIndicator({
|
|
12
16
|
message,
|
|
@@ -38,6 +42,101 @@ function LoadingIndicator({
|
|
|
38
42
|
message && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: message })
|
|
39
43
|
] });
|
|
40
44
|
}
|
|
45
|
+
function RowNavigatorControls({
|
|
46
|
+
total,
|
|
47
|
+
currentIndex,
|
|
48
|
+
onGo,
|
|
49
|
+
testId,
|
|
50
|
+
itemLabel = "row",
|
|
51
|
+
keepWhenEmpty = false
|
|
52
|
+
}) {
|
|
53
|
+
if (total === 0 && !keepWhenEmpty) return null;
|
|
54
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex shrink-0 items-center gap-0.5", "data-testid": `${testId}-nav`, children: [
|
|
55
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
56
|
+
"button",
|
|
57
|
+
{
|
|
58
|
+
type: "button",
|
|
59
|
+
"aria-label": `Previous ${itemLabel}`,
|
|
60
|
+
"data-testid": `${testId}-nav-prev`,
|
|
61
|
+
disabled: total === 0 || currentIndex === null || currentIndex <= 0,
|
|
62
|
+
onClick: () => onGo((currentIndex ?? 0) - 1),
|
|
63
|
+
className: "rounded p-0.5 text-muted-foreground enabled:hover:bg-accent enabled:hover:text-foreground disabled:opacity-30 pointer-coarse:size-11! shrink-0",
|
|
64
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "h-4 w-4" })
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
68
|
+
"span",
|
|
69
|
+
{
|
|
70
|
+
className: "whitespace-nowrap tabular-nums text-sm font-light text-muted-foreground",
|
|
71
|
+
"data-testid": `${testId}-nav-position`,
|
|
72
|
+
children: [
|
|
73
|
+
currentIndex !== null ? currentIndex + 1 : "\u2013",
|
|
74
|
+
" / ",
|
|
75
|
+
total > 0 ? total : "\u2013"
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
80
|
+
"button",
|
|
81
|
+
{
|
|
82
|
+
type: "button",
|
|
83
|
+
"aria-label": `Next ${itemLabel}`,
|
|
84
|
+
"data-testid": `${testId}-nav-next`,
|
|
85
|
+
disabled: total === 0 || currentIndex !== null && currentIndex >= total - 1,
|
|
86
|
+
onClick: () => onGo(currentIndex === null ? 0 : currentIndex + 1),
|
|
87
|
+
className: "rounded p-0.5 text-muted-foreground enabled:hover:bg-accent enabled:hover:text-foreground disabled:opacity-30 pointer-coarse:size-11! shrink-0",
|
|
88
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "h-4 w-4" })
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
] });
|
|
92
|
+
}
|
|
93
|
+
var ROW_MODEL_EVENTS = ["modelUpdated", "sortChanged", "filterChanged", "rowDataUpdated"];
|
|
94
|
+
function GridRowNavigator({
|
|
95
|
+
gridApi,
|
|
96
|
+
selectedId,
|
|
97
|
+
onSelect,
|
|
98
|
+
testId,
|
|
99
|
+
itemLabel = "row"
|
|
100
|
+
}) {
|
|
101
|
+
const [{ total, currentIndex }, setPosition] = react.useState({ total: 0, currentIndex: null });
|
|
102
|
+
const readPosition = react.useCallback(() => {
|
|
103
|
+
if (!gridApi || gridApi.isDestroyed()) {
|
|
104
|
+
setPosition({ total: 0, currentIndex: null });
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
const total2 = gridApi.getDisplayedRowCount();
|
|
108
|
+
const node = selectedId ? gridApi.getRowNode(selectedId) : void 0;
|
|
109
|
+
const index = node?.rowIndex;
|
|
110
|
+
setPosition({ total: total2, currentIndex: typeof index === "number" && index >= 0 ? index : null });
|
|
111
|
+
}, [gridApi, selectedId]);
|
|
112
|
+
react.useEffect(() => {
|
|
113
|
+
readPosition();
|
|
114
|
+
if (!gridApi || gridApi.isDestroyed()) return;
|
|
115
|
+
for (const ev of ROW_MODEL_EVENTS) gridApi.addEventListener(ev, readPosition);
|
|
116
|
+
return () => {
|
|
117
|
+
if (gridApi.isDestroyed()) return;
|
|
118
|
+
for (const ev of ROW_MODEL_EVENTS) gridApi.removeEventListener(ev, readPosition);
|
|
119
|
+
};
|
|
120
|
+
}, [gridApi, readPosition]);
|
|
121
|
+
const goTo = (index) => {
|
|
122
|
+
if (!gridApi || gridApi.isDestroyed()) return;
|
|
123
|
+
const clamped = Math.max(0, Math.min(total - 1, index));
|
|
124
|
+
const node = gridApi.getDisplayedRowAtIndex(clamped);
|
|
125
|
+
if (!node?.data) return;
|
|
126
|
+
gridApi.ensureIndexVisible(clamped, "middle");
|
|
127
|
+
onSelect(node.data);
|
|
128
|
+
};
|
|
129
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
130
|
+
RowNavigatorControls,
|
|
131
|
+
{
|
|
132
|
+
total,
|
|
133
|
+
currentIndex,
|
|
134
|
+
onGo: goTo,
|
|
135
|
+
testId,
|
|
136
|
+
itemLabel
|
|
137
|
+
}
|
|
138
|
+
);
|
|
139
|
+
}
|
|
41
140
|
var IDENTITY_NAME_MAX_LENGTH = 50;
|
|
42
141
|
var COUNTER_THRESHOLD = 10;
|
|
43
142
|
function EntityIdentityBar({
|
|
@@ -232,9 +331,9 @@ function workspaceActivityHeadline(item) {
|
|
|
232
331
|
return item.status ? `${run} (${item.status.replace(/_/g, " ")})` : run;
|
|
233
332
|
}
|
|
234
333
|
default: {
|
|
235
|
-
const headline =
|
|
334
|
+
const headline = chunkGFOEWPAP_cjs.taskActivityHeadline(
|
|
236
335
|
{ kind: item.kind, detail: item.detail },
|
|
237
|
-
|
|
336
|
+
chunkGFOEWPAP_cjs.DEFAULT_TASK_ACTIVITY_LABELS
|
|
238
337
|
);
|
|
239
338
|
return `${headline} in ${thread}`;
|
|
240
339
|
}
|
|
@@ -292,7 +391,7 @@ function WorkspaceActivityList({
|
|
|
292
391
|
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: "divide-y divide-border", "data-testid": `${testId}-list`, children: items.map((item) => {
|
|
293
392
|
const target = workspaceActivityTarget(item);
|
|
294
393
|
const actor = item.actor_ext_id ? nameOf?.(item.actor_ext_id) ?? null : l.system;
|
|
295
|
-
const
|
|
394
|
+
const body2 = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
296
395
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "mt-0.5 shrink-0 text-muted-foreground", children: ICONS[item.source] }),
|
|
297
396
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "min-w-0 flex-1 text-sm", children: [
|
|
298
397
|
actor && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-medium", children: [
|
|
@@ -321,9 +420,9 @@ function WorkspaceActivityList({
|
|
|
321
420
|
type: "button",
|
|
322
421
|
className: "flex w-full items-start gap-3 px-3 py-2 text-left hover:bg-accent focus-visible:bg-accent focus-visible:outline-none",
|
|
323
422
|
onClick: () => onOpen(target, item),
|
|
324
|
-
children:
|
|
423
|
+
children: body2
|
|
325
424
|
}
|
|
326
|
-
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-start gap-3 px-3 py-2", children:
|
|
425
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-start gap-3 px-3 py-2", children: body2 })
|
|
327
426
|
},
|
|
328
427
|
item.external_id
|
|
329
428
|
);
|
|
@@ -1284,6 +1383,158 @@ function TagTable({
|
|
|
1284
1383
|
] })
|
|
1285
1384
|
] });
|
|
1286
1385
|
}
|
|
1386
|
+
var DEFAULT_TAG_DETAIL_LABELS = {
|
|
1387
|
+
fields: "Fields",
|
|
1388
|
+
documents: "Documents",
|
|
1389
|
+
facts: "Facts",
|
|
1390
|
+
threads: "Threads",
|
|
1391
|
+
showing: "Showing {shown} of {count}",
|
|
1392
|
+
noDocuments: "No document carries this tag yet.",
|
|
1393
|
+
noFacts: "No fact carries this tag yet.",
|
|
1394
|
+
noValue: "No note",
|
|
1395
|
+
noThreads: "No thread carries this tag yet.",
|
|
1396
|
+
untitledThread: "Untitled thread",
|
|
1397
|
+
threadUpdated: "Updated {date}",
|
|
1398
|
+
passages: "{count} passages",
|
|
1399
|
+
passage: "1 passage",
|
|
1400
|
+
loading: "Loading\u2026"
|
|
1401
|
+
};
|
|
1402
|
+
var formatDay = (iso) => {
|
|
1403
|
+
const at = new Date(iso);
|
|
1404
|
+
return Number.isNaN(at.getTime()) ? iso : at.toLocaleDateString(void 0, { day: "numeric", month: "short", year: "numeric" });
|
|
1405
|
+
};
|
|
1406
|
+
function TagDetail({
|
|
1407
|
+
row,
|
|
1408
|
+
fields = [],
|
|
1409
|
+
isLoading,
|
|
1410
|
+
people,
|
|
1411
|
+
tags,
|
|
1412
|
+
onOpenTag,
|
|
1413
|
+
onChangeValue,
|
|
1414
|
+
onOpenDocument,
|
|
1415
|
+
onOpenFact,
|
|
1416
|
+
onOpenThread,
|
|
1417
|
+
noteLabel,
|
|
1418
|
+
noteIsValue = false,
|
|
1419
|
+
renderPassages,
|
|
1420
|
+
labels,
|
|
1421
|
+
fieldLabels,
|
|
1422
|
+
className,
|
|
1423
|
+
testId = "tag-detail"
|
|
1424
|
+
}) {
|
|
1425
|
+
const l = { ...DEFAULT_TAG_DETAIL_LABELS, ...labels };
|
|
1426
|
+
const cellLabels = { ...DEFAULT_TAG_TABLE_LABELS, ...fieldLabels };
|
|
1427
|
+
if (isLoading || !row) return /* @__PURE__ */ jsxRuntime.jsx(chunkD54JXTPG_cjs.DetailLoading, { label: l.loading });
|
|
1428
|
+
const links = rowLinks(row);
|
|
1429
|
+
const docs = links.docs ?? [];
|
|
1430
|
+
const facts = links.facts ?? [];
|
|
1431
|
+
const threads = links.threads ?? [];
|
|
1432
|
+
const passages = (n) => n === 1 ? l.passage : l.passages.replace("{count}", String(n));
|
|
1433
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkD54JXTPG_cjs.DetailBody, { className, testId, children: [
|
|
1434
|
+
fields.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(chunkD54JXTPG_cjs.DetailSection, { title: l.fields, testId: `${testId}-fields`, children: /* @__PURE__ */ jsxRuntime.jsx(chunkD54JXTPG_cjs.DetailFields, { children: fields.map((field) => /* @__PURE__ */ jsxRuntime.jsx(chunkD54JXTPG_cjs.DetailField, { label: field.name, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1435
|
+
TagTableCell,
|
|
1436
|
+
{
|
|
1437
|
+
row,
|
|
1438
|
+
column: field,
|
|
1439
|
+
people,
|
|
1440
|
+
tags,
|
|
1441
|
+
onOpenTag,
|
|
1442
|
+
onChange: onChangeValue,
|
|
1443
|
+
l: cellLabels,
|
|
1444
|
+
testId: `${testId}-field-${field.id}`
|
|
1445
|
+
}
|
|
1446
|
+
) }, field.id)) }) }),
|
|
1447
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1448
|
+
chunkD54JXTPG_cjs.DetailSection,
|
|
1449
|
+
{
|
|
1450
|
+
title: l.documents,
|
|
1451
|
+
count: links.doc_count,
|
|
1452
|
+
shown: docs.length,
|
|
1453
|
+
showingLabel: l.showing,
|
|
1454
|
+
testId: `${testId}-documents`,
|
|
1455
|
+
children: docs.length ? /* @__PURE__ */ jsxRuntime.jsx(chunkD54JXTPG_cjs.DetailLinkList, { children: docs.map((d) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1456
|
+
chunkD54JXTPG_cjs.DetailLinkItem,
|
|
1457
|
+
{
|
|
1458
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileText, { className: "size-4" }),
|
|
1459
|
+
onClick: onOpenDocument ? () => onOpenDocument(d.doc_ext_id) : void 0,
|
|
1460
|
+
testId: `${testId}-doc-${d.doc_ext_id}`,
|
|
1461
|
+
trailing: d.citations_count > 0 && !renderPassages && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: passages(d.citations_count) }),
|
|
1462
|
+
after: d.citations_count > 0 && renderPassages && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 px-3 py-2 text-xs", children: renderPassages(d, passages(d.citations_count)) }),
|
|
1463
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "min-w-0 flex-1", children: [
|
|
1464
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "block truncate font-medium", children: d.file_name }),
|
|
1465
|
+
(d.note || noteIsValue) && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1466
|
+
"span",
|
|
1467
|
+
{
|
|
1468
|
+
className: ui.cn(
|
|
1469
|
+
"mt-0.5 flex min-w-0 items-baseline gap-2",
|
|
1470
|
+
noteIsValue ? "text-base text-foreground" : "text-muted-foreground"
|
|
1471
|
+
),
|
|
1472
|
+
"data-testid": `${testId}-doc-${d.doc_ext_id}-note`,
|
|
1473
|
+
children: [
|
|
1474
|
+
noteLabel && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: noteLabel }),
|
|
1475
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1476
|
+
"span",
|
|
1477
|
+
{
|
|
1478
|
+
className: ui.cn(
|
|
1479
|
+
"line-clamp-3 min-w-0 whitespace-pre-line",
|
|
1480
|
+
noteIsValue && "font-semibold",
|
|
1481
|
+
!d.note && "font-normal italic text-muted-foreground"
|
|
1482
|
+
),
|
|
1483
|
+
children: d.note || l.noValue
|
|
1484
|
+
}
|
|
1485
|
+
)
|
|
1486
|
+
]
|
|
1487
|
+
}
|
|
1488
|
+
)
|
|
1489
|
+
] })
|
|
1490
|
+
},
|
|
1491
|
+
d.doc_ext_id
|
|
1492
|
+
)) }) : /* @__PURE__ */ jsxRuntime.jsx(chunkD54JXTPG_cjs.DetailEmpty, { children: l.noDocuments })
|
|
1493
|
+
}
|
|
1494
|
+
),
|
|
1495
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1496
|
+
chunkD54JXTPG_cjs.DetailSection,
|
|
1497
|
+
{
|
|
1498
|
+
title: l.facts,
|
|
1499
|
+
count: links.fact_count,
|
|
1500
|
+
shown: facts.length,
|
|
1501
|
+
showingLabel: l.showing,
|
|
1502
|
+
testId: `${testId}-facts`,
|
|
1503
|
+
children: facts.length ? /* @__PURE__ */ jsxRuntime.jsx(chunkD54JXTPG_cjs.DetailLinkList, { children: facts.map((f) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1504
|
+
chunkD54JXTPG_cjs.DetailLinkItem,
|
|
1505
|
+
{
|
|
1506
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Lightbulb, { className: "size-4" }),
|
|
1507
|
+
onClick: onOpenFact ? () => onOpenFact(f.fact_ext_id) : void 0,
|
|
1508
|
+
testId: `${testId}-fact-${f.fact_ext_id}`,
|
|
1509
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "line-clamp-3 min-w-0 flex-1", children: f.text })
|
|
1510
|
+
},
|
|
1511
|
+
f.fact_ext_id
|
|
1512
|
+
)) }) : /* @__PURE__ */ jsxRuntime.jsx(chunkD54JXTPG_cjs.DetailEmpty, { children: l.noFacts })
|
|
1513
|
+
}
|
|
1514
|
+
),
|
|
1515
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1516
|
+
chunkD54JXTPG_cjs.DetailSection,
|
|
1517
|
+
{
|
|
1518
|
+
title: l.threads,
|
|
1519
|
+
count: links.thread_count,
|
|
1520
|
+
shown: threads.length,
|
|
1521
|
+
showingLabel: l.showing,
|
|
1522
|
+
testId: `${testId}-threads`,
|
|
1523
|
+
children: threads.length ? /* @__PURE__ */ jsxRuntime.jsx(chunkD54JXTPG_cjs.DetailLinkList, { children: threads.map((t) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1524
|
+
chunkD54JXTPG_cjs.DetailLinkItem,
|
|
1525
|
+
{
|
|
1526
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MessagesSquare, { className: "size-4" }),
|
|
1527
|
+
onClick: onOpenThread ? () => onOpenThread(t.conversation_ext_id) : void 0,
|
|
1528
|
+
testId: `${testId}-thread-${t.conversation_ext_id}`,
|
|
1529
|
+
trailing: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: l.threadUpdated.replace("{date}", formatDay(t.updated_at)) }),
|
|
1530
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 truncate font-medium", children: t.title || l.untitledThread })
|
|
1531
|
+
},
|
|
1532
|
+
t.conversation_ext_id
|
|
1533
|
+
)) }) : /* @__PURE__ */ jsxRuntime.jsx(chunkD54JXTPG_cjs.DetailEmpty, { children: l.noThreads })
|
|
1534
|
+
}
|
|
1535
|
+
)
|
|
1536
|
+
] });
|
|
1537
|
+
}
|
|
1287
1538
|
|
|
1288
1539
|
// src/tags/tagTableDocx.ts
|
|
1289
1540
|
var TAG_TABLE_DOCX_LANDSCAPE_AFTER = 6;
|
|
@@ -1313,7 +1564,7 @@ function evidenceParagraphs(row, l) {
|
|
|
1313
1564
|
const threads = links.threads ?? [];
|
|
1314
1565
|
const more = links.doc_count - docs.length + (links.fact_count - facts.length) + (links.thread_count - threads.length);
|
|
1315
1566
|
return [
|
|
1316
|
-
|
|
1567
|
+
chunkQT3A4PFC_cjs.paragraph(
|
|
1317
1568
|
[
|
|
1318
1569
|
{
|
|
1319
1570
|
text: [
|
|
@@ -1327,15 +1578,15 @@ function evidenceParagraphs(row, l) {
|
|
|
1327
1578
|
"TagTableCell"
|
|
1328
1579
|
),
|
|
1329
1580
|
...docs.map(
|
|
1330
|
-
(d) =>
|
|
1581
|
+
(d) => chunkQT3A4PFC_cjs.paragraph(
|
|
1331
1582
|
[{ text: d.file_name, bold: true }, ...d.note ? [{ text: ` \u2014 ${d.note}` }] : []],
|
|
1332
1583
|
"TagTableCell"
|
|
1333
1584
|
)
|
|
1334
1585
|
),
|
|
1335
|
-
...facts.map((f) =>
|
|
1336
|
-
...threads.map((t) =>
|
|
1586
|
+
...facts.map((f) => chunkQT3A4PFC_cjs.paragraph([{ text: `\u201C${f.text}\u201D`, italic: true }], "TagTableCell")),
|
|
1587
|
+
...threads.map((t) => chunkQT3A4PFC_cjs.paragraph([{ text: t.title || l.untitledThread }], "TagTableCell")),
|
|
1337
1588
|
...more > 0 ? [
|
|
1338
|
-
|
|
1589
|
+
chunkQT3A4PFC_cjs.paragraph(
|
|
1339
1590
|
[{ text: l.more.replace("{count}", String(more)), muted: true }],
|
|
1340
1591
|
"TagTableCell"
|
|
1341
1592
|
)
|
|
@@ -1345,8 +1596,8 @@ function evidenceParagraphs(row, l) {
|
|
|
1345
1596
|
function gapParagraphs(row, columns, l) {
|
|
1346
1597
|
const missing = columns.filter((c) => c.type !== "checkbox" && cellText(cellValue(row, c), c) === "").map((c) => c.name);
|
|
1347
1598
|
return [
|
|
1348
|
-
...isGap(row) ? [
|
|
1349
|
-
...missing.length ? [
|
|
1599
|
+
...isGap(row) ? [chunkQT3A4PFC_cjs.paragraph([{ text: l.noEvidence, bold: true }], "TagTableCell")] : [],
|
|
1600
|
+
...missing.length ? [chunkQT3A4PFC_cjs.paragraph([{ text: l.missing.replace("{fields}", missing.join(", ")) }], "TagTableCell")] : []
|
|
1350
1601
|
];
|
|
1351
1602
|
}
|
|
1352
1603
|
function tagTableDocumentXml(table, options) {
|
|
@@ -1354,56 +1605,398 @@ function tagTableDocumentXml(table, options) {
|
|
|
1354
1605
|
const { columns, rows } = table;
|
|
1355
1606
|
const heads = [l.row, ...columns.map((c) => c.name), l.evidence, l.gaps];
|
|
1356
1607
|
const landscape = heads.length > TAG_TABLE_DOCX_LANDSCAPE_AFTER;
|
|
1357
|
-
const { textWidth, sectPr } =
|
|
1608
|
+
const { textWidth, sectPr } = chunkQT3A4PFC_cjs.page(landscape);
|
|
1358
1609
|
const weights = [2, ...columns.map(() => 1), 3, 1.5];
|
|
1359
1610
|
const total = weights.reduce((a, b) => a + b, 0);
|
|
1360
1611
|
const widths = weights.map((w) => Math.floor(textWidth * w / total));
|
|
1361
|
-
const at =
|
|
1612
|
+
const at = chunkQT3A4PFC_cjs.minuteUtc(options.at ?? (/* @__PURE__ */ new Date()).toISOString());
|
|
1362
1613
|
const header = `<w:tr><w:trPr><w:tblHeader/><w:cantSplit/></w:trPr>${heads.map(
|
|
1363
|
-
(h, i) =>
|
|
1614
|
+
(h, i) => chunkQT3A4PFC_cjs.cell([chunkQT3A4PFC_cjs.paragraph([{ text: h, bold: true }], "TagTableCell")], widths[i], "E7E6E6")
|
|
1364
1615
|
).join("")}</w:tr>`;
|
|
1365
|
-
const
|
|
1616
|
+
const body2 = rows.map((row) => {
|
|
1366
1617
|
const fill = isGap(row) ? "FFF2CC" : void 0;
|
|
1367
1618
|
const cells = [
|
|
1368
|
-
|
|
1619
|
+
chunkQT3A4PFC_cjs.cell([chunkQT3A4PFC_cjs.paragraph([{ text: row.name, bold: true }], "TagTableCell")], widths[0], fill),
|
|
1369
1620
|
...columns.map((c, i) => {
|
|
1370
1621
|
const text = cellText(cellValue(row, c), c, options.nameOf);
|
|
1371
|
-
return
|
|
1622
|
+
return chunkQT3A4PFC_cjs.cell(text ? [chunkQT3A4PFC_cjs.paragraph([{ text }], "TagTableCell")] : [], widths[i + 1], fill);
|
|
1372
1623
|
}),
|
|
1373
|
-
|
|
1374
|
-
|
|
1624
|
+
chunkQT3A4PFC_cjs.cell(evidenceParagraphs(row, l), widths[columns.length + 1], fill),
|
|
1625
|
+
chunkQT3A4PFC_cjs.cell(gapParagraphs(row, columns, l), widths[columns.length + 2], fill)
|
|
1375
1626
|
];
|
|
1376
1627
|
return `<w:tr><w:trPr><w:cantSplit/></w:trPr>${cells.join("")}</w:tr>`;
|
|
1377
1628
|
});
|
|
1378
|
-
const grid = `<w:tbl><w:tblPr><w:tblStyle w:val="TagTableGrid"/><w:tblW w:w="${textWidth}" w:type="dxa"/><w:tblLayout w:type="fixed"/><w:tblLook w:val="04A0" w:firstRow="1" w:lastRow="0" w:firstColumn="1" w:lastColumn="0" w:noHBand="0" w:noVBand="1"/></w:tblPr><w:tblGrid>${widths.map((w) => `<w:gridCol w:w="${w}"/>`).join("")}</w:tblGrid>${header}${
|
|
1379
|
-
return
|
|
1380
|
-
`${
|
|
1629
|
+
const grid = `<w:tbl><w:tblPr><w:tblStyle w:val="TagTableGrid"/><w:tblW w:w="${textWidth}" w:type="dxa"/><w:tblLayout w:type="fixed"/><w:tblLook w:val="04A0" w:firstRow="1" w:lastRow="0" w:firstColumn="1" w:lastColumn="0" w:noHBand="0" w:noVBand="1"/></w:tblPr><w:tblGrid>${widths.map((w) => `<w:gridCol w:w="${w}"/>`).join("")}</w:tblGrid>${header}${body2.join("")}</w:tbl>`;
|
|
1630
|
+
return chunkQT3A4PFC_cjs.documentXml(
|
|
1631
|
+
`${chunkQT3A4PFC_cjs.paragraph(
|
|
1381
1632
|
[{ text: options.title }],
|
|
1382
1633
|
"Title"
|
|
1383
|
-
)}${
|
|
1634
|
+
)}${chunkQT3A4PFC_cjs.paragraph([{ text: l.takenAt.replace("{at}", `${at} UTC`), muted: true }])}${grid}${rows.length ? "" : chunkQT3A4PFC_cjs.paragraph([{ text: l.empty, muted: true }])}<w:p/>${sectPr}`
|
|
1384
1635
|
);
|
|
1385
1636
|
}
|
|
1386
1637
|
function tagTableDocx(table, options) {
|
|
1387
1638
|
const at = new Date(options.at ?? Date.now()).toISOString();
|
|
1388
|
-
return
|
|
1639
|
+
return chunkQT3A4PFC_cjs.docxPackage({
|
|
1389
1640
|
document: tagTableDocumentXml(table, { ...options, at }),
|
|
1390
|
-
styles:
|
|
1641
|
+
styles: chunkQT3A4PFC_cjs.TABLE_DOCUMENT_STYLES,
|
|
1391
1642
|
title: options.title,
|
|
1392
1643
|
at
|
|
1393
1644
|
});
|
|
1394
1645
|
}
|
|
1395
1646
|
|
|
1647
|
+
// src/tags/glossary.ts
|
|
1648
|
+
var DEFAULT_GLOSSARY_LABELS = {
|
|
1649
|
+
term: "Term",
|
|
1650
|
+
definition: "Definition",
|
|
1651
|
+
source: "Source",
|
|
1652
|
+
takenAt: "Printed {at}",
|
|
1653
|
+
empty: "No definitions."
|
|
1654
|
+
};
|
|
1655
|
+
var body = (rest) => rest.replace(/^\s*[:—–-]\s*/, "").trim();
|
|
1656
|
+
function glossaryEntries(sources, options = {}) {
|
|
1657
|
+
const { groups, unparsed } = chunkQT3A4PFC_cjs.groupDefinitions(sources, options);
|
|
1658
|
+
return [
|
|
1659
|
+
...groups.flatMap(
|
|
1660
|
+
(g) => g.definitions.map((d) => ({
|
|
1661
|
+
term: d.term,
|
|
1662
|
+
definition: body(d.rest),
|
|
1663
|
+
source: d.source ?? "",
|
|
1664
|
+
factId: d.id
|
|
1665
|
+
}))
|
|
1666
|
+
),
|
|
1667
|
+
...[...unparsed].sort(chunkQT3A4PFC_cjs.compareDefinitions).map((d) => ({
|
|
1668
|
+
term: "",
|
|
1669
|
+
definition: d.text.trim(),
|
|
1670
|
+
source: d.source ?? "",
|
|
1671
|
+
factId: d.id
|
|
1672
|
+
}))
|
|
1673
|
+
];
|
|
1674
|
+
}
|
|
1675
|
+
var escapeCell2 = (text) => text.replace(/\|/g, "\\|").replace(/\n+/g, " ");
|
|
1676
|
+
function glossaryMarkdown(entries, options) {
|
|
1677
|
+
const l = { ...DEFAULT_GLOSSARY_LABELS, ...options.labels };
|
|
1678
|
+
const at = chunkQT3A4PFC_cjs.minuteUtc(options.at ?? (/* @__PURE__ */ new Date()).toISOString());
|
|
1679
|
+
const lines = [
|
|
1680
|
+
`# ${options.title}`,
|
|
1681
|
+
"",
|
|
1682
|
+
`_${l.takenAt.replace("{at}", `${at} UTC`)}_`,
|
|
1683
|
+
"",
|
|
1684
|
+
`| ${l.term} | ${l.definition} | ${l.source} |`,
|
|
1685
|
+
"| --- | --- | --- |",
|
|
1686
|
+
...entries.map(
|
|
1687
|
+
(e) => `| ${e.term ? `**${escapeCell2(e.term)}**` : ""} | ${escapeCell2(e.definition)} | ${escapeCell2(e.source)} |`
|
|
1688
|
+
)
|
|
1689
|
+
];
|
|
1690
|
+
if (!entries.length) lines.push("", l.empty);
|
|
1691
|
+
return `${lines.join("\n")}
|
|
1692
|
+
`;
|
|
1693
|
+
}
|
|
1694
|
+
function glossaryDocumentXml(entries, options) {
|
|
1695
|
+
const l = { ...DEFAULT_GLOSSARY_LABELS, ...options.labels };
|
|
1696
|
+
const { textWidth, sectPr } = chunkQT3A4PFC_cjs.page(false);
|
|
1697
|
+
const widths = [2, 6, 2].map((w) => Math.floor(textWidth * w / 10));
|
|
1698
|
+
const at = chunkQT3A4PFC_cjs.minuteUtc(options.at ?? (/* @__PURE__ */ new Date()).toISOString());
|
|
1699
|
+
const text = (t, bold = false) => [chunkQT3A4PFC_cjs.paragraph([{ text: t, bold }], "TagTableCell")];
|
|
1700
|
+
const header = `<w:tr><w:trPr><w:tblHeader/><w:cantSplit/></w:trPr>${[
|
|
1701
|
+
l.term,
|
|
1702
|
+
l.definition,
|
|
1703
|
+
l.source
|
|
1704
|
+
].map((h, i) => chunkQT3A4PFC_cjs.cell(text(h, true), widths[i], "E7E6E6")).join("")}</w:tr>`;
|
|
1705
|
+
const rows = entries.map(
|
|
1706
|
+
(e) => `<w:tr><w:trPr><w:cantSplit/></w:trPr>${chunkQT3A4PFC_cjs.cell(e.term ? text(e.term, true) : [], widths[0])}${chunkQT3A4PFC_cjs.cell(
|
|
1707
|
+
text(e.definition),
|
|
1708
|
+
widths[1]
|
|
1709
|
+
)}${chunkQT3A4PFC_cjs.cell(e.source ? text(e.source) : [], widths[2])}</w:tr>`
|
|
1710
|
+
);
|
|
1711
|
+
const table = `<w:tbl><w:tblPr><w:tblStyle w:val="TagTableGrid"/><w:tblW w:w="${textWidth}" w:type="dxa"/><w:tblLayout w:type="fixed"/><w:tblLook w:val="04A0" w:firstRow="1" w:lastRow="0" w:firstColumn="1" w:lastColumn="0" w:noHBand="0" w:noVBand="1"/></w:tblPr><w:tblGrid>${widths.map((w) => `<w:gridCol w:w="${w}"/>`).join("")}</w:tblGrid>${header}${rows.join("")}</w:tbl>`;
|
|
1712
|
+
return chunkQT3A4PFC_cjs.documentXml(
|
|
1713
|
+
`${chunkQT3A4PFC_cjs.paragraph([{ text: options.title }], "Title")}${chunkQT3A4PFC_cjs.paragraph([
|
|
1714
|
+
{ text: l.takenAt.replace("{at}", `${at} UTC`), muted: true }
|
|
1715
|
+
])}${table}${entries.length ? "" : chunkQT3A4PFC_cjs.paragraph([{ text: l.empty, muted: true }])}<w:p/>${sectPr}`
|
|
1716
|
+
);
|
|
1717
|
+
}
|
|
1718
|
+
function glossaryDocx(entries, options) {
|
|
1719
|
+
const at = new Date(options.at ?? Date.now()).toISOString();
|
|
1720
|
+
return chunkQT3A4PFC_cjs.docxPackage({
|
|
1721
|
+
document: glossaryDocumentXml(entries, { ...options, at }),
|
|
1722
|
+
styles: chunkQT3A4PFC_cjs.TABLE_DOCUMENT_STYLES,
|
|
1723
|
+
title: options.title,
|
|
1724
|
+
at
|
|
1725
|
+
});
|
|
1726
|
+
}
|
|
1727
|
+
function glossaryFileName(title, extension) {
|
|
1728
|
+
return `${title.replace(/[\\/:*?"<>|]+/g, " ").trim() || "Glossary"}.${extension}`;
|
|
1729
|
+
}
|
|
1730
|
+
var lower = (text) => text.toLowerCase();
|
|
1731
|
+
function tagsPageNouns() {
|
|
1732
|
+
return {
|
|
1733
|
+
// ANY_TAG, not TAG: TAG is the Files page's "Field" (a document column).
|
|
1734
|
+
tag: ui.getEntityLabel("ANY_TAG"),
|
|
1735
|
+
tags: ui.getEntityLabel("ANY_TAG", "PLURAL"),
|
|
1736
|
+
document: ui.getEntityLabel("DOCUMENT"),
|
|
1737
|
+
documents: ui.getEntityLabel("DOCUMENT", "PLURAL"),
|
|
1738
|
+
fact: ui.getEntityLabel("FACT"),
|
|
1739
|
+
facts: ui.getEntityLabel("FACT", "PLURAL"),
|
|
1740
|
+
thread: ui.getEntityLabel("CONVERSATION"),
|
|
1741
|
+
threads: ui.getEntityLabel("CONVERSATION", "PLURAL"),
|
|
1742
|
+
people: ui.getEntityLabel("PERSON", "PLURAL"),
|
|
1743
|
+
organisations: ui.getEntityLabel("ORGANISATION", "PLURAL")
|
|
1744
|
+
};
|
|
1745
|
+
}
|
|
1746
|
+
function entitiesPhrase() {
|
|
1747
|
+
const n = tagsPageNouns();
|
|
1748
|
+
return `${n.people} and ${lower(n.organisations)}`;
|
|
1749
|
+
}
|
|
1750
|
+
function documentCount(count2) {
|
|
1751
|
+
const n = tagsPageNouns();
|
|
1752
|
+
return `${count2} ${lower(count2 === 1 ? n.document : n.documents)}`;
|
|
1753
|
+
}
|
|
1754
|
+
function tagTableLabels(kind) {
|
|
1755
|
+
const n = tagsPageNouns();
|
|
1756
|
+
const k = ui.tagKindNouns(kind);
|
|
1757
|
+
return {
|
|
1758
|
+
row: ui.tagKindTitle(kind),
|
|
1759
|
+
evidence: "Tagged items",
|
|
1760
|
+
documents: `{count} ${lower(n.documents)}`,
|
|
1761
|
+
document: `1 ${lower(n.document)}`,
|
|
1762
|
+
facts: `{count} ${lower(n.facts)}`,
|
|
1763
|
+
fact: `1 ${lower(n.fact)}`,
|
|
1764
|
+
threads: `{count} ${lower(n.threads)}`,
|
|
1765
|
+
thread: `1 ${lower(n.thread)}`,
|
|
1766
|
+
untitledThread: `Untitled ${lower(n.thread)}`,
|
|
1767
|
+
empty: `No ${k.plural} yet.`,
|
|
1768
|
+
noColumns: "No fields yet."
|
|
1769
|
+
};
|
|
1770
|
+
}
|
|
1771
|
+
function tagDetailLabels() {
|
|
1772
|
+
const n = tagsPageNouns();
|
|
1773
|
+
const carries = (noun) => `No ${lower(noun)} carries this ${lower(n.tag)} yet.`;
|
|
1774
|
+
return {
|
|
1775
|
+
documents: n.documents,
|
|
1776
|
+
facts: n.facts,
|
|
1777
|
+
threads: n.threads,
|
|
1778
|
+
noDocuments: carries(n.document),
|
|
1779
|
+
noFacts: carries(n.fact),
|
|
1780
|
+
noThreads: carries(n.thread),
|
|
1781
|
+
untitledThread: `Untitled ${lower(n.thread)}`
|
|
1782
|
+
};
|
|
1783
|
+
}
|
|
1784
|
+
function tagNoteLabel(kind) {
|
|
1785
|
+
return kind === "label" || kind === "search" ? void 0 : "Note";
|
|
1786
|
+
}
|
|
1787
|
+
function tagKindDescription(kind) {
|
|
1788
|
+
const n = tagsPageNouns();
|
|
1789
|
+
const k = ui.tagKindNouns(kind);
|
|
1790
|
+
const docs = lower(n.documents);
|
|
1791
|
+
switch (kind) {
|
|
1792
|
+
case "label":
|
|
1793
|
+
return `Short names that file ${docs}, ${lower(n.facts)} and ${lower(n.threads)}.`;
|
|
1794
|
+
case "annotation":
|
|
1795
|
+
return `A note on each ${lower(n.document)} (text, number, choice or date), filled in by hand or by AI.`;
|
|
1796
|
+
case "issue":
|
|
1797
|
+
return `Points in dispute, each with the same ${lower(k.singular)} fields.`;
|
|
1798
|
+
case "person":
|
|
1799
|
+
case "organisation":
|
|
1800
|
+
return `${ui.tagKindTitle(kind, { plural: true })} the ${docs} mention.`;
|
|
1801
|
+
case "search":
|
|
1802
|
+
return `${ui.tagKindTitle(kind, { plural: true })}.`;
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
function TagPicker({ tags, selectedId, kinds, onSelect, onCreate }) {
|
|
1806
|
+
const [open, setOpen] = react.useState(false);
|
|
1807
|
+
const [kind, ...otherKinds] = kinds;
|
|
1808
|
+
const noun = ui.tagKindNouns(kind);
|
|
1809
|
+
const create = (name, as) => {
|
|
1810
|
+
setOpen(false);
|
|
1811
|
+
void onCreate?.(name, as);
|
|
1812
|
+
};
|
|
1813
|
+
const selected = tags.find((t) => t.external_id === selectedId);
|
|
1814
|
+
const placeholder = onCreate ? `Find or create a ${noun.singular}\u2026` : `Find a ${noun.singular}\u2026`;
|
|
1815
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(ui.Popover, { open, onOpenChange: setOpen, children: [
|
|
1816
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1817
|
+
"button",
|
|
1818
|
+
{
|
|
1819
|
+
type: "button",
|
|
1820
|
+
className: "flex h-9 w-72 max-w-full items-center gap-2 rounded-md border border-input bg-background px-3 text-left text-sm hover:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
1821
|
+
"data-testid": "tags-picker",
|
|
1822
|
+
children: [
|
|
1823
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "size-4 shrink-0 text-muted-foreground" }),
|
|
1824
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: selected ? "min-w-0 flex-1 truncate" : "flex-1 text-muted-foreground", children: selected?.name ?? placeholder }),
|
|
1825
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "size-4 shrink-0 text-muted-foreground" })
|
|
1826
|
+
]
|
|
1827
|
+
}
|
|
1828
|
+
) }),
|
|
1829
|
+
open && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1830
|
+
ui.PopoverContent,
|
|
1831
|
+
{
|
|
1832
|
+
className: "w-[var(--radix-popover-trigger-width)] min-w-72 p-0",
|
|
1833
|
+
align: "start",
|
|
1834
|
+
sideOffset: 4,
|
|
1835
|
+
"data-testid": "tags-picker-list",
|
|
1836
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1837
|
+
chunkFAXXN7KI_cjs.LabelPickerList,
|
|
1838
|
+
{
|
|
1839
|
+
options: tags.map((t) => ({
|
|
1840
|
+
id: t.external_id,
|
|
1841
|
+
name: t.name,
|
|
1842
|
+
color: ui.getEntityColor(t.external_id, "medium")
|
|
1843
|
+
})),
|
|
1844
|
+
appliedIds: new Set(selectedId ? [selectedId] : []),
|
|
1845
|
+
onToggle: (id) => {
|
|
1846
|
+
setOpen(false);
|
|
1847
|
+
onSelect(id);
|
|
1848
|
+
},
|
|
1849
|
+
onCreate: onCreate ? (name) => create(name, kind) : void 0,
|
|
1850
|
+
moreCreates: onCreate ? otherKinds.map((other) => ({
|
|
1851
|
+
label: (name) => `Create ${ui.tagKindNouns(other).singular} \u201C${name}\u201D`,
|
|
1852
|
+
onCreate: (name) => create(name, other)
|
|
1853
|
+
})) : void 0,
|
|
1854
|
+
labels: {
|
|
1855
|
+
searchPlaceholder: placeholder,
|
|
1856
|
+
noLabels: `No ${noun.plural} yet`,
|
|
1857
|
+
create: (name) => `Create ${noun.singular} \u201C${name}\u201D`
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
)
|
|
1861
|
+
}
|
|
1862
|
+
)
|
|
1863
|
+
] });
|
|
1864
|
+
}
|
|
1865
|
+
var EXTRACT_LIMIT = 500;
|
|
1866
|
+
var isTopLevel = (d) => !d.parent_ext_id;
|
|
1867
|
+
function ExtractEntitiesDialog({
|
|
1868
|
+
open,
|
|
1869
|
+
onOpenChange,
|
|
1870
|
+
documents,
|
|
1871
|
+
onExtract,
|
|
1872
|
+
onTooMany,
|
|
1873
|
+
isPending
|
|
1874
|
+
}) {
|
|
1875
|
+
const [picked, setPicked] = react.useState([]);
|
|
1876
|
+
const [all, setAll] = react.useState(false);
|
|
1877
|
+
const topLevel = react.useMemo(() => documents.filter(isTopLevel), [documents]);
|
|
1878
|
+
const allIds = topLevel.map((d) => d.external_id);
|
|
1879
|
+
const docIds = all ? allIds : picked;
|
|
1880
|
+
const nouns = tagsPageNouns();
|
|
1881
|
+
const entities = entitiesPhrase().toLowerCase();
|
|
1882
|
+
const groups = react.useMemo(
|
|
1883
|
+
() => [
|
|
1884
|
+
{
|
|
1885
|
+
id: "all",
|
|
1886
|
+
heading: "In this workspace",
|
|
1887
|
+
docs: topLevel.map((d) => ({
|
|
1888
|
+
id: d.external_id,
|
|
1889
|
+
title: ui.getDocumentTitle(d, d.file_name ?? void 0),
|
|
1890
|
+
fileName: d.file_name,
|
|
1891
|
+
pages: ui.isImageDocument(d) ? null : d.n_pages ?? null,
|
|
1892
|
+
tokens: ui.isImageDocument(d) ? null : d.tokens ?? null
|
|
1893
|
+
})).sort((a, b) => a.title.toLowerCase().localeCompare(b.title.toLowerCase()))
|
|
1894
|
+
}
|
|
1895
|
+
],
|
|
1896
|
+
[topLevel]
|
|
1897
|
+
);
|
|
1898
|
+
const toggle = (id) => setPicked((ids) => ids.includes(id) ? ids.filter((x) => x !== id) : [...ids, id]);
|
|
1899
|
+
const close = () => {
|
|
1900
|
+
setPicked([]);
|
|
1901
|
+
setAll(false);
|
|
1902
|
+
onOpenChange(false);
|
|
1903
|
+
};
|
|
1904
|
+
const run = async () => {
|
|
1905
|
+
if (docIds.length > EXTRACT_LIMIT) {
|
|
1906
|
+
onTooMany(`Choose at most ${documentCount(EXTRACT_LIMIT)} at a time.`);
|
|
1907
|
+
return;
|
|
1908
|
+
}
|
|
1909
|
+
try {
|
|
1910
|
+
await onExtract(docIds);
|
|
1911
|
+
close();
|
|
1912
|
+
} catch {
|
|
1913
|
+
}
|
|
1914
|
+
};
|
|
1915
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ui.Dialog, { open, onOpenChange: (next) => next ? onOpenChange(true) : close(), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1916
|
+
ui.DialogContent,
|
|
1917
|
+
{
|
|
1918
|
+
presentation: "sheet",
|
|
1919
|
+
className: "w-modal max-w-modal-vw max-h-panel flex flex-col overflow-hidden p-0",
|
|
1920
|
+
"data-testid": "extract-entities-dialog",
|
|
1921
|
+
children: [
|
|
1922
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkULWRNGGE_cjs.ModalHeader, { children: [
|
|
1923
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.DialogTitle, { children: [
|
|
1924
|
+
"Extract ",
|
|
1925
|
+
entities
|
|
1926
|
+
] }),
|
|
1927
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.DialogDescription, { children: [
|
|
1928
|
+
"The AI finds the ",
|
|
1929
|
+
entities,
|
|
1930
|
+
" each ",
|
|
1931
|
+
nouns.document.toLowerCase(),
|
|
1932
|
+
" names and links them, with the passages that name them. ",
|
|
1933
|
+
entitiesPhrase(),
|
|
1934
|
+
" already here are matched by name."
|
|
1935
|
+
] })
|
|
1936
|
+
] }),
|
|
1937
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-1 min-h-0 flex-col gap-3 overflow-auto p-4", children: [
|
|
1938
|
+
/* @__PURE__ */ jsxRuntime.jsxs("label", { className: "flex items-center gap-2 text-sm", children: [
|
|
1939
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1940
|
+
ui.Checkbox,
|
|
1941
|
+
{
|
|
1942
|
+
checked: all,
|
|
1943
|
+
onCheckedChange: (v) => setAll(v === true),
|
|
1944
|
+
"data-testid": "extract-entities-all"
|
|
1945
|
+
}
|
|
1946
|
+
),
|
|
1947
|
+
"All ",
|
|
1948
|
+
nouns.documents.toLowerCase(),
|
|
1949
|
+
" (",
|
|
1950
|
+
allIds.length,
|
|
1951
|
+
")"
|
|
1952
|
+
] }),
|
|
1953
|
+
!all && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1954
|
+
chunkRQ2Y7USX_cjs.DocumentPicker,
|
|
1955
|
+
{
|
|
1956
|
+
groups,
|
|
1957
|
+
value: "",
|
|
1958
|
+
onValueChange: toggle,
|
|
1959
|
+
selectedIds: picked,
|
|
1960
|
+
labels: { placeholder: `Search ${nouns.documents.toLowerCase()}\u2026` }
|
|
1961
|
+
}
|
|
1962
|
+
)
|
|
1963
|
+
] }),
|
|
1964
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-end gap-2 border-t border-border px-4 py-3", children: [
|
|
1965
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "ghost", onClick: close, children: "Cancel" }),
|
|
1966
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1967
|
+
ui.Button,
|
|
1968
|
+
{
|
|
1969
|
+
onClick: () => void run(),
|
|
1970
|
+
disabled: docIds.length === 0 || isPending,
|
|
1971
|
+
"data-testid": "extract-entities-run",
|
|
1972
|
+
children: docIds.length > 0 ? `Extract from ${documentCount(docIds.length)}` : "Extract"
|
|
1973
|
+
}
|
|
1974
|
+
)
|
|
1975
|
+
] })
|
|
1976
|
+
]
|
|
1977
|
+
}
|
|
1978
|
+
) });
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
exports.DEFAULT_GLOSSARY_LABELS = DEFAULT_GLOSSARY_LABELS;
|
|
1396
1982
|
exports.DEFAULT_TAG_COLUMNS_EDITOR_LABELS = DEFAULT_TAG_COLUMNS_EDITOR_LABELS;
|
|
1983
|
+
exports.DEFAULT_TAG_DETAIL_LABELS = DEFAULT_TAG_DETAIL_LABELS;
|
|
1397
1984
|
exports.DEFAULT_TAG_TABLE_DOCX_LABELS = DEFAULT_TAG_TABLE_DOCX_LABELS;
|
|
1398
1985
|
exports.DEFAULT_TAG_TABLE_LABELS = DEFAULT_TAG_TABLE_LABELS;
|
|
1399
1986
|
exports.DEFAULT_THREAD_FOLLOW_LABELS = DEFAULT_THREAD_FOLLOW_LABELS;
|
|
1400
1987
|
exports.DEFAULT_WORKSPACE_ACTIVITY_LABELS = DEFAULT_WORKSPACE_ACTIVITY_LABELS;
|
|
1401
1988
|
exports.DEFAULT_WORKSPACE_NOTIFICATION_MENU_LABELS = DEFAULT_WORKSPACE_NOTIFICATION_MENU_LABELS;
|
|
1989
|
+
exports.EXTRACT_LIMIT = EXTRACT_LIMIT;
|
|
1402
1990
|
exports.EntityIdentityBar = EntityIdentityBar;
|
|
1991
|
+
exports.ExtractEntitiesDialog = ExtractEntitiesDialog;
|
|
1992
|
+
exports.GridRowNavigator = GridRowNavigator;
|
|
1403
1993
|
exports.IDENTITY_NAME_MAX_LENGTH = IDENTITY_NAME_MAX_LENGTH;
|
|
1404
1994
|
exports.LoadingIndicator = LoadingIndicator;
|
|
1995
|
+
exports.RowNavigatorControls = RowNavigatorControls;
|
|
1405
1996
|
exports.TAG_TABLE_DOCX_LANDSCAPE_AFTER = TAG_TABLE_DOCX_LANDSCAPE_AFTER;
|
|
1406
1997
|
exports.TagColumnsEditor = TagColumnsEditor;
|
|
1998
|
+
exports.TagDetail = TagDetail;
|
|
1999
|
+
exports.TagPicker = TagPicker;
|
|
1407
2000
|
exports.TagTable = TagTable;
|
|
1408
2001
|
exports.TagTableCell = TagTableCell;
|
|
1409
2002
|
exports.ThreadFollowButton = ThreadFollowButton;
|
|
@@ -1412,14 +2005,26 @@ exports.WorkspaceActivityList = WorkspaceActivityList;
|
|
|
1412
2005
|
exports.WorkspaceNotificationMenu = WorkspaceNotificationMenu;
|
|
1413
2006
|
exports.cellText = cellText;
|
|
1414
2007
|
exports.cellValue = cellValue;
|
|
2008
|
+
exports.documentCount = documentCount;
|
|
2009
|
+
exports.entitiesPhrase = entitiesPhrase;
|
|
1415
2010
|
exports.fieldWrites = fieldWrites;
|
|
2011
|
+
exports.glossaryDocumentXml = glossaryDocumentXml;
|
|
2012
|
+
exports.glossaryDocx = glossaryDocx;
|
|
2013
|
+
exports.glossaryEntries = glossaryEntries;
|
|
2014
|
+
exports.glossaryFileName = glossaryFileName;
|
|
2015
|
+
exports.glossaryMarkdown = glossaryMarkdown;
|
|
1416
2016
|
exports.isGap = isGap;
|
|
1417
2017
|
exports.parseCell = parseCell;
|
|
1418
2018
|
exports.rowLinks = rowLinks;
|
|
2019
|
+
exports.tagDetailLabels = tagDetailLabels;
|
|
2020
|
+
exports.tagKindDescription = tagKindDescription;
|
|
2021
|
+
exports.tagNoteLabel = tagNoteLabel;
|
|
1419
2022
|
exports.tagTableDocumentXml = tagTableDocumentXml;
|
|
1420
2023
|
exports.tagTableDocx = tagTableDocx;
|
|
2024
|
+
exports.tagTableLabels = tagTableLabels;
|
|
1421
2025
|
exports.tagTableMarkdown = tagTableMarkdown;
|
|
2026
|
+
exports.tagsPageNouns = tagsPageNouns;
|
|
1422
2027
|
exports.workspaceActivityHeadline = workspaceActivityHeadline;
|
|
1423
2028
|
exports.workspaceActivityTarget = workspaceActivityTarget;
|
|
1424
|
-
//# sourceMappingURL=chunk-
|
|
1425
|
-
//# sourceMappingURL=chunk-
|
|
2029
|
+
//# sourceMappingURL=chunk-2FLWPM3B.cjs.map
|
|
2030
|
+
//# sourceMappingURL=chunk-2FLWPM3B.cjs.map
|