@arbidocs/blocks 0.4.146 → 0.4.150
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ConnectedNativeDocxComparison-3XQSINPQ.cjs +44 -0
- package/dist/ConnectedNativeDocxComparison-3XQSINPQ.cjs.map +1 -0
- package/dist/ConnectedNativeDocxComparison-XQSXVGHR.js +35 -0
- package/dist/ConnectedNativeDocxComparison-XQSXVGHR.js.map +1 -0
- package/dist/ConnectedNativeDocxEditor-IPEZDERL.js +33 -0
- package/dist/ConnectedNativeDocxEditor-IPEZDERL.js.map +1 -0
- package/dist/ConnectedNativeDocxEditor-OUWFMIPH.cjs +46 -0
- package/dist/ConnectedNativeDocxEditor-OUWFMIPH.cjs.map +1 -0
- package/dist/ConnectedStreamedWordArtifact-D5LSMDO4.cjs +44 -0
- package/dist/ConnectedStreamedWordArtifact-D5LSMDO4.cjs.map +1 -0
- package/dist/ConnectedStreamedWordArtifact-UZVNBKQB.js +35 -0
- package/dist/ConnectedStreamedWordArtifact-UZVNBKQB.js.map +1 -0
- package/dist/FactTextEditor-YESAU2IJ.js +25 -0
- package/dist/FactTextEditor-YESAU2IJ.js.map +1 -0
- package/dist/FactTextEditor-YUPBCTXK.cjs +27 -0
- package/dist/FactTextEditor-YUPBCTXK.cjs.map +1 -0
- package/dist/{NativeDocxEditor-BE2OEOTJ.cjs → NativeDocxEditor-5VBNM5I7.cjs} +8 -8
- package/dist/{NativeDocxEditor-BE2OEOTJ.cjs.map → NativeDocxEditor-5VBNM5I7.cjs.map} +1 -1
- package/dist/{NativeDocxEditor-KOPFMRYW.js → NativeDocxEditor-XT5ZLFGU.js} +4 -4
- package/dist/{NativeDocxEditor-KOPFMRYW.js.map → NativeDocxEditor-XT5ZLFGU.js.map} +1 -1
- package/dist/agents/index.cjs +265 -266
- package/dist/agents/index.js +8 -9
- package/dist/calendar/index.cjs +117 -125
- package/dist/calendar/index.d.ts +0 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calls/index.cjs +3 -3
- package/dist/calls/index.js +2 -2
- package/dist/chat/index.cjs +78 -78
- package/dist/chat/index.js +3 -3
- package/dist/{chunk-2FL7QJKJ.js → chunk-265GOG4W.js} +3 -3
- package/dist/{chunk-2FL7QJKJ.js.map → chunk-265GOG4W.js.map} +1 -1
- package/dist/{chunk-IJST4EBM.js → chunk-3E2F4AHD.js} +8 -8
- package/dist/{chunk-IJST4EBM.js.map → chunk-3E2F4AHD.js.map} +1 -1
- package/dist/chunk-3FSXWVHW.cjs +5184 -0
- package/dist/chunk-3FSXWVHW.cjs.map +1 -0
- package/dist/{chunk-LPYEUD2D.cjs → chunk-4JNKXOFZ.cjs} +3 -3
- package/dist/{chunk-LPYEUD2D.cjs.map → chunk-4JNKXOFZ.cjs.map} +1 -1
- package/dist/{chunk-ODRHHWHY.cjs → chunk-4KMLM3GY.cjs} +4 -4
- package/dist/chunk-4KMLM3GY.cjs.map +1 -0
- package/dist/{chunk-MHFF5N65.cjs → chunk-757OYF6G.cjs} +4 -38
- package/dist/chunk-757OYF6G.cjs.map +1 -0
- package/dist/chunk-AXTDDWMR.js +16 -0
- package/dist/chunk-AXTDDWMR.js.map +1 -0
- package/dist/{chunk-B3AHCIV5.js → chunk-BJ24VPOA.js} +4 -55
- package/dist/chunk-BJ24VPOA.js.map +1 -0
- package/dist/chunk-C7PTF6BQ.cjs +172 -0
- package/dist/chunk-C7PTF6BQ.cjs.map +1 -0
- package/dist/{chunk-T5B7FM7S.js → chunk-COA3S3CZ.js} +3 -3
- package/dist/{chunk-T5B7FM7S.js.map → chunk-COA3S3CZ.js.map} +1 -1
- package/dist/{chunk-C44TDH54.js → chunk-CQPFW64W.js} +5 -5
- package/dist/{chunk-C44TDH54.js.map → chunk-CQPFW64W.js.map} +1 -1
- package/dist/chunk-D3WFIFRY.cjs +659 -0
- package/dist/chunk-D3WFIFRY.cjs.map +1 -0
- package/dist/{chunk-QXMR5YHC.js → chunk-DIB4JYUY.js} +19 -3
- package/dist/chunk-DIB4JYUY.js.map +1 -0
- package/dist/chunk-DVB5ZKOF.js +22 -0
- package/dist/chunk-DVB5ZKOF.js.map +1 -0
- package/dist/{chunk-VHJHY7TT.js → chunk-ECERC6TI.js} +3 -3
- package/dist/{chunk-VHJHY7TT.js.map → chunk-ECERC6TI.js.map} +1 -1
- package/dist/chunk-EDV7CYG6.cjs +18 -0
- package/dist/chunk-EDV7CYG6.cjs.map +1 -0
- package/dist/chunk-FAXXN7KI.cjs +213 -0
- package/dist/chunk-FAXXN7KI.cjs.map +1 -0
- package/dist/{chunk-2MJWWPHY.js → chunk-G4IYES7G.js} +140 -15
- package/dist/chunk-G4IYES7G.js.map +1 -0
- package/dist/{chunk-MFMASSEO.cjs → chunk-GGTUMLCT.cjs} +93 -91
- package/dist/chunk-GGTUMLCT.cjs.map +1 -0
- package/dist/{chunk-QI6AIHWP.cjs → chunk-GOWXP5KT.cjs} +145 -14
- package/dist/chunk-GOWXP5KT.cjs.map +1 -0
- package/dist/{chunk-O6IEZDRC.cjs → chunk-GRGS5M6O.cjs} +181 -3
- package/dist/chunk-GRGS5M6O.cjs.map +1 -0
- package/dist/{chunk-A6IU4GIW.js → chunk-HGLC566X.js} +598 -13
- package/dist/chunk-HGLC566X.js.map +1 -0
- package/dist/{chunk-O2GW5IY6.cjs → chunk-ILM42LE6.cjs} +33 -33
- package/dist/{chunk-O2GW5IY6.cjs.map → chunk-ILM42LE6.cjs.map} +1 -1
- package/dist/{chunk-C3CGJK7A.cjs → chunk-IPQ5MJ4Z.cjs} +636 -31
- package/dist/chunk-IPQ5MJ4Z.cjs.map +1 -0
- package/dist/{chunk-NRFAWUVD.js → chunk-JAANWQGB.js} +157 -157
- package/dist/chunk-JAANWQGB.js.map +1 -0
- package/dist/{chunk-7RJTEWYM.js → chunk-JGOST4IL.js} +350 -64
- package/dist/chunk-JGOST4IL.js.map +1 -0
- package/dist/chunk-KHXEIEXN.js +41 -0
- package/dist/chunk-KHXEIEXN.js.map +1 -0
- package/dist/chunk-KLPRAQCE.cjs +22 -0
- package/dist/chunk-KLPRAQCE.cjs.map +1 -0
- package/dist/chunk-KQYPP72K.js +644 -0
- package/dist/chunk-KQYPP72K.js.map +1 -0
- package/dist/chunk-KUT2Y7JF.cjs +43 -0
- package/dist/chunk-KUT2Y7JF.cjs.map +1 -0
- package/dist/{chunk-6YTHQ73P.cjs → chunk-LLYZGH3L.cjs} +3 -56
- package/dist/chunk-LLYZGH3L.cjs.map +1 -0
- package/dist/{chunk-YSHIC4NJ.cjs → chunk-LXTOOUEN.cjs} +159 -154
- package/dist/chunk-LXTOOUEN.cjs.map +1 -0
- package/dist/{chunk-EVUEIBNU.js → chunk-M4S75AEJ.js} +44 -5
- package/dist/chunk-M4S75AEJ.js.map +1 -0
- package/dist/{chunk-V5OAXIBN.cjs → chunk-NPR5BGFF.cjs} +11 -11
- package/dist/{chunk-V5OAXIBN.cjs.map → chunk-NPR5BGFF.cjs.map} +1 -1
- package/dist/{chunk-PLJ7PHWU.cjs → chunk-NS7NVX4E.cjs} +3 -3
- package/dist/{chunk-PLJ7PHWU.cjs.map → chunk-NS7NVX4E.cjs.map} +1 -1
- package/dist/{chunk-RB7GX2VT.cjs → chunk-NWNAYXC7.cjs} +9 -9
- package/dist/{chunk-RB7GX2VT.cjs.map → chunk-NWNAYXC7.cjs.map} +1 -1
- package/dist/chunk-Q6N6MZKO.js +5004 -0
- package/dist/chunk-Q6N6MZKO.js.map +1 -0
- package/dist/{chunk-I2QSDQQV.cjs → chunk-QT3A4PFC.cjs} +21 -2
- package/dist/chunk-QT3A4PFC.cjs.map +1 -0
- package/dist/{chunk-6HCJ3ZEU.js → chunk-R6VCPDPF.js} +178 -6
- package/dist/chunk-R6VCPDPF.js.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-OPTBQSCV.cjs → chunk-SMN32BQ3.cjs} +4 -183
- package/dist/chunk-SMN32BQ3.cjs.map +1 -0
- package/dist/chunk-TAWPVD6C.cjs +1956 -0
- package/dist/chunk-TAWPVD6C.cjs.map +1 -0
- package/dist/chunk-TC25LGIM.js +6584 -0
- package/dist/chunk-TC25LGIM.js.map +1 -0
- package/dist/{chunk-OBWYM25Y.js → chunk-TL45OJQE.js} +85 -83
- package/dist/chunk-TL45OJQE.js.map +1 -0
- package/dist/{chunk-AOSUHWIL.js → chunk-TZOQKV64.js} +4 -37
- package/dist/chunk-TZOQKV64.js.map +1 -0
- package/dist/chunk-UTVY63DG.js +16 -0
- package/dist/chunk-UTVY63DG.js.map +1 -0
- package/dist/chunk-V4YZXGXR.cjs +6751 -0
- package/dist/chunk-V4YZXGXR.cjs.map +1 -0
- package/dist/chunk-XRWHFMHK.js +19 -0
- package/dist/chunk-XRWHFMHK.js.map +1 -0
- package/dist/{chunk-O4YPVYPO.cjs → chunk-YAEXSCUW.cjs} +364 -60
- package/dist/chunk-YAEXSCUW.cjs.map +1 -0
- package/dist/chunk-YIFCLNII.cjs +18 -0
- package/dist/chunk-YIFCLNII.cjs.map +1 -0
- package/dist/chunk-Z27QMJ6S.cjs +25 -0
- package/dist/chunk-Z27QMJ6S.cjs.map +1 -0
- package/dist/{chunk-CSI2B2H5.js → chunk-Z4NQ3TED.js} +4 -4
- package/dist/chunk-Z4NQ3TED.js.map +1 -0
- package/dist/{chunk-DWZXSPMB.cjs → chunk-ZAVEMQ37.cjs} +3 -3
- package/dist/{chunk-DWZXSPMB.cjs.map → chunk-ZAVEMQ37.cjs.map} +1 -1
- package/dist/{chunk-FUTMU4FR.js → chunk-ZLEYLCE4.js} +8 -181
- package/dist/chunk-ZLEYLCE4.js.map +1 -0
- package/dist/chunk-ZNLTEZEF.js +170 -0
- package/dist/chunk-ZNLTEZEF.js.map +1 -0
- package/dist/chunk-ZO7PJMCO.js +1907 -0
- package/dist/chunk-ZO7PJMCO.js.map +1 -0
- package/dist/citations/index.cjs +14 -14
- package/dist/citations/index.js +2 -2
- package/dist/collaboration/index.cjs +74 -74
- package/dist/collaboration/index.js +3 -3
- package/dist/connect/docx.cjs +23 -28
- package/dist/connect/docx.cjs.map +1 -1
- package/dist/connect/docx.js +12 -28
- package/dist/connect/docx.js.map +1 -1
- package/dist/connect/index.cjs +8799 -2057
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +11 -2
- package/dist/connect/index.js +8578 -1884
- package/dist/connect/index.js.map +1 -1
- package/dist/connect/viewer.cjs +1229 -0
- package/dist/connect/viewer.cjs.map +1 -0
- package/dist/connect/viewer.d.ts +8 -0
- package/dist/connect/viewer.js +1226 -0
- package/dist/connect/viewer.js.map +1 -0
- package/dist/connection/ConnectedWorkflowsTable.d.ts +2 -12
- package/dist/connection/ai.d.ts +2 -9
- package/dist/connection/billing/AddAddonDialog.d.ts +24 -0
- package/dist/connection/billing/BillingCard.d.ts +18 -0
- package/dist/connection/billing/BillingProjectEntity.d.ts +9 -0
- package/dist/connection/billing/ChangePlanDialog.d.ts +20 -0
- package/dist/connection/billing/ChangeProPlan.d.ts +20 -0
- package/dist/connection/billing/CheckoutTotal.d.ts +12 -0
- package/dist/connection/billing/DailyCapEditor.d.ts +4 -0
- package/dist/connection/billing/InvoicesModal.d.ts +6 -0
- package/dist/connection/billing/NewProjectFlow.d.ts +14 -0
- package/dist/connection/billing/PlanChangeLines.d.ts +13 -0
- package/dist/connection/billing/PlanSelector.d.ts +50 -0
- package/dist/connection/billing/ProjectBilling.d.ts +24 -0
- package/dist/connection/billing/ProjectDetail.d.ts +16 -0
- package/dist/connection/billing/ProjectUsageCard.d.ts +21 -0
- package/dist/connection/billing/ProjectUsageContent.d.ts +18 -0
- package/dist/connection/billing/ProjectsTable.d.ts +13 -0
- package/dist/connection/billing/ReduceAddonDialog.d.ts +18 -0
- package/dist/connection/billing/ReferralReward.d.ts +32 -0
- package/dist/connection/billing/SharedProjects.d.ts +13 -0
- package/dist/connection/billing/StripeCheckoutModal.d.ts +32 -0
- package/dist/connection/billing/SubscriptionPlans.d.ts +15 -0
- package/dist/connection/billing/SubscriptionStatus.d.ts +10 -0
- package/dist/connection/billing/addon-pricing.d.ts +97 -0
- package/dist/connection/billing/api-error.d.ts +6 -0
- package/dist/connection/billing/billing-country.d.ts +14 -0
- package/dist/connection/billing/billing-focus.d.ts +11 -0
- package/dist/connection/billing/index.d.ts +22 -0
- package/dist/connection/billing/plan-badge.d.ts +15 -0
- package/dist/connection/billing/plan-change-outcome.d.ts +15 -0
- package/dist/connection/billing/plan-constants.d.ts +29 -0
- package/dist/connection/billing/plan-pricing.d.ts +67 -0
- package/dist/connection/billing/quota-items.d.ts +33 -0
- package/dist/connection/billing/referral-reward.d.ts +28 -0
- package/dist/connection/billing/refusal-copy.d.ts +5 -0
- package/dist/connection/billing/reward-balance.d.ts +19 -0
- package/dist/connection/billing/support.d.ts +35 -0
- package/dist/connection/billing/tax-quote.d.ts +36 -0
- package/dist/connection/billing/useAddonPurchase.d.ts +32 -0
- package/dist/connection/billing/useAutoRefreshPendingProjects.d.ts +11 -0
- package/dist/connection/billing/useCheckoutQuote.d.ts +30 -0
- package/dist/connection/billing/useOpenBillingPortal.d.ts +12 -0
- package/dist/connection/calendar/CalendarSettingsDialog.d.ts +1 -1
- package/dist/connection/connectors/ConnectedAppsSettings.d.ts +24 -0
- package/dist/connection/connectors/ConnectedDriveSyncDialog.d.ts +12 -0
- package/dist/connection/connectors/ConnectedMailboxSyncDialog.d.ts +12 -0
- package/dist/connection/connectors/index.d.ts +4 -0
- package/dist/connection/connectors/sync-labels.d.ts +21 -0
- 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/settings-page/ConnectedSettingsPage.d.ts +4 -0
- package/dist/connection/settings-page/index.d.ts +1 -1
- package/dist/connection/tags/ConnectedTagTable.d.ts +108 -0
- package/dist/connection/tags/ConnectedTagsPage.d.ts +55 -0
- package/dist/connection/tags/DocTagPassages.d.ts +25 -0
- package/dist/connection/tags/GlossaryExport.d.ts +7 -0
- package/dist/connection/tags/TagCombineFilter.d.ts +14 -0
- package/dist/connection/tags/TagPlacement.d.ts +16 -0
- package/dist/connection/tags/TagsPageSections.d.ts +36 -0
- package/dist/connection/tags/tagCombine.d.ts +55 -0
- package/dist/connection/useConnectedWorkNotifications.d.ts +7 -24
- package/dist/connection/viewer/ConnectedDocumentToolsProvider.d.ts +11 -0
- package/dist/connection/viewer/ConnectedDocumentViewer.d.ts +21 -0
- package/dist/connection/viewer/FinaliseTranslationButton.d.ts +15 -0
- package/dist/connection/viewer/ViewerPdfPane.d.ts +46 -0
- package/dist/connection/viewer/support.d.ts +79 -0
- package/dist/connection/viewer/useImageCrop.d.ts +13 -0
- package/dist/connection/viewer/useViewedDocument.d.ts +70 -0
- package/dist/connection/viewer/useViewerBlobs.d.ts +15 -0
- package/dist/connection/viewer/useViewerTabs.d.ts +18 -0
- package/dist/connection/viewer/useViewerVersions.d.ts +11 -0
- package/dist/connection/workspace-settings/useConnectedWorkspaceSettings.d.ts +6 -0
- package/dist/document-tools/index.cjs +59 -652
- package/dist/document-tools/index.cjs.map +1 -1
- package/dist/document-tools/index.js +2 -641
- package/dist/document-tools/index.js.map +1 -1
- package/dist/docx/index.cjs +48 -47
- package/dist/docx/index.js +4 -3
- package/dist/facts/FactsBulkBar.d.ts +6 -3
- package/dist/facts/cited-version-ref.d.ts +1 -0
- package/dist/facts/index.cjs +206 -1942
- package/dist/facts/index.cjs.map +1 -1
- package/dist/facts/index.d.ts +1 -0
- package/dist/facts/index.js +15 -1897
- package/dist/facts/index.js.map +1 -1
- package/dist/files/ViewerChrome.d.ts +5 -4
- package/dist/files/ViewerControlBar.d.ts +12 -0
- package/dist/files/doc-labels.d.ts +35 -0
- package/dist/files/grid/FilterButton.d.ts +12 -0
- package/dist/files/grid/RowDensityControl.d.ts +18 -0
- package/dist/files/grid/row-density.d.ts +27 -0
- package/dist/files/index.cjs +779 -7100
- package/dist/files/index.cjs.map +1 -1
- package/dist/files/index.d.ts +5 -0
- package/dist/files/index.js +14 -6919
- package/dist/files/index.js.map +1 -1
- package/dist/home/index.cjs +2 -2
- package/dist/home/index.js +2 -2
- package/dist/index.cjs +1043 -1259
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +27 -360
- package/dist/index.js.map +1 -1
- package/dist/retrieval/SearchSnippet.d.ts +6 -0
- package/dist/retrieval/index.cjs +75 -42
- package/dist/retrieval/index.d.ts +2 -0
- package/dist/retrieval/index.js +3 -2
- package/dist/retrieval/search-results.d.ts +46 -0
- package/dist/settings/Billing.d.ts +0 -66
- package/dist/settings/PlanBadge.d.ts +1 -1
- package/dist/settings/SubscriptionParts.d.ts +1 -50
- package/dist/settings/index.cjs +501 -3714
- package/dist/settings/index.cjs.map +1 -1
- package/dist/settings/index.d.ts +3 -2
- package/dist/settings/index.js +10 -3527
- package/dist/settings/index.js.map +1 -1
- package/dist/settings/inverted-index-filter.d.ts +26 -0
- package/dist/shell/index.cjs +2 -2
- package/dist/shell/index.js +2 -2
- package/dist/site/index.cjs +5 -5
- package/dist/site/index.js +1 -1
- package/dist/studio/index.cjs +6 -6
- package/dist/studio/index.js +5 -5
- package/dist/tags/definitions.d.ts +10 -0
- package/dist/tags/index.d.ts +4 -1
- package/dist/tags/page/ExtractEntitiesDialog.d.ts +24 -0
- package/dist/tags/page/TagPicker.d.ts +16 -0
- package/dist/tags/page/tagsPageLabels.d.ts +36 -0
- package/dist/workflow-canvas/index.cjs +21 -22
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/dist/workflow-canvas/index.js +8 -9
- package/dist/workflow-canvas/index.js.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +13 -4
- package/dist/calendar/access-setup.d.ts +0 -8
- package/dist/chunk-2MJWWPHY.js.map +0 -1
- package/dist/chunk-3AFWGEDJ.cjs +0 -53
- package/dist/chunk-3AFWGEDJ.cjs.map +0 -1
- package/dist/chunk-5YHEHEJT.js +0 -1667
- package/dist/chunk-5YHEHEJT.js.map +0 -1
- package/dist/chunk-6HCJ3ZEU.js.map +0 -1
- package/dist/chunk-6YTHQ73P.cjs.map +0 -1
- package/dist/chunk-7RJTEWYM.js.map +0 -1
- package/dist/chunk-A6IU4GIW.js.map +0 -1
- package/dist/chunk-AOSUHWIL.js.map +0 -1
- package/dist/chunk-B3AHCIV5.js.map +0 -1
- package/dist/chunk-C3CGJK7A.cjs.map +0 -1
- package/dist/chunk-CSI2B2H5.js.map +0 -1
- package/dist/chunk-DETZZBG2.cjs.map +0 -1
- package/dist/chunk-EVUEIBNU.js.map +0 -1
- package/dist/chunk-FUTMU4FR.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-MFMASSEO.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-O6IEZDRC.cjs.map +0 -1
- package/dist/chunk-OBWYM25Y.js.map +0 -1
- package/dist/chunk-ODRHHWHY.cjs.map +0 -1
- package/dist/chunk-OPTBQSCV.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-U73KPFYH.cjs +0 -1717
- package/dist/chunk-U73KPFYH.cjs.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,648 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
export { AnnotateButton, DEFAULT_VERSION_SNAPSHOT_BAR_LABELS, DownloadMarkupButton, MarkupNotices, MarkupViewNote, RequestSignaturesButton, ShowOriginalButton, SignButton, SignatureCertificate, SignatureRequestBanner, SignatureStatus, SignedEditNote, VersionSnapshotBar, formatSignedAt } from '../chunk-KQYPP72K.js';
|
|
2
3
|
export { AdoptSignatureDialog, TYPED_SIGNATURE_STYLE } from '../chunk-EQB3WELX.js';
|
|
4
|
+
import '../chunk-6HKLTYNN.js';
|
|
3
5
|
export { SignDocumentDialog } from '../chunk-2YOVK524.js';
|
|
4
|
-
import { ViewerStatusNote } from '../chunk-6HKLTYNN.js';
|
|
5
6
|
import '../chunk-TX2ZICS7.js';
|
|
6
7
|
import '../chunk-VUNV25KB.js';
|
|
7
|
-
import { PencilLine, FileText, PenLine, Users, Send, FilePenLine, Download } from 'lucide-react';
|
|
8
|
-
import { Button, Popover, PopoverTrigger, PopoverContent, cn } from '@arbidocs/react/ui';
|
|
9
|
-
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
10
|
-
import { useOptionalDocumentTools, certificateLink, useDocumentTools, useDocumentSignatureRequests, useVoidSignatureRequest, matchSignedCopy } from '@arbidocs/react/document-tools';
|
|
11
|
-
import { useState, useRef } from 'react';
|
|
12
|
-
|
|
13
|
-
var TOUCH = "pointer-coarse:min-h-11";
|
|
14
|
-
function AnnotateButton({ active, onClick, compact }) {
|
|
15
|
-
return /* @__PURE__ */ jsxs(
|
|
16
|
-
Button,
|
|
17
|
-
{
|
|
18
|
-
type: "button",
|
|
19
|
-
variant: active ? "default" : "outline",
|
|
20
|
-
size: compact ? "icon" : "sm",
|
|
21
|
-
"aria-pressed": active,
|
|
22
|
-
title: "Annotate: highlight, comment, stamp, redact",
|
|
23
|
-
"aria-label": "Annotate",
|
|
24
|
-
"data-testid": "annotate-toggle",
|
|
25
|
-
className: TOUCH,
|
|
26
|
-
onClick,
|
|
27
|
-
children: [
|
|
28
|
-
/* @__PURE__ */ jsx(PencilLine, { className: "size-4" }),
|
|
29
|
-
!compact && /* @__PURE__ */ jsx("span", { className: "ml-1", children: "Annotate" })
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
function ShowOriginalButton({ active, onClick, compact }) {
|
|
35
|
-
return /* @__PURE__ */ jsxs(
|
|
36
|
-
Button,
|
|
37
|
-
{
|
|
38
|
-
type: "button",
|
|
39
|
-
variant: active ? "default" : "outline",
|
|
40
|
-
size: compact ? "icon" : "sm",
|
|
41
|
-
"aria-pressed": active,
|
|
42
|
-
title: active ? "Show the markup again" : "Show the original, without markup",
|
|
43
|
-
"aria-label": "Show original",
|
|
44
|
-
"data-testid": "markup-show-original",
|
|
45
|
-
className: TOUCH,
|
|
46
|
-
onClick,
|
|
47
|
-
children: [
|
|
48
|
-
/* @__PURE__ */ jsx(FileText, { className: "size-4" }),
|
|
49
|
-
!compact && /* @__PURE__ */ jsx("span", { className: "ml-1", children: "Show original" })
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
function DownloadMarkupButton({
|
|
55
|
-
onClick,
|
|
56
|
-
disabledReason
|
|
57
|
-
}) {
|
|
58
|
-
const button = /* @__PURE__ */ jsx(
|
|
59
|
-
Button,
|
|
60
|
-
{
|
|
61
|
-
type: "button",
|
|
62
|
-
variant: "outline",
|
|
63
|
-
size: "icon",
|
|
64
|
-
title: disabledReason ?? "Download with markup: the PDF with its annotations (opens in Acrobat or Preview)",
|
|
65
|
-
"aria-label": "Download with markup",
|
|
66
|
-
"aria-description": disabledReason,
|
|
67
|
-
disabled: !!disabledReason,
|
|
68
|
-
"data-testid": "markup-download",
|
|
69
|
-
className: TOUCH,
|
|
70
|
-
onClick,
|
|
71
|
-
children: /* @__PURE__ */ jsx(Download, { className: "size-4" })
|
|
72
|
-
}
|
|
73
|
-
);
|
|
74
|
-
return disabledReason ? /* @__PURE__ */ jsx("span", { title: disabledReason, className: "inline-flex", "data-testid": "markup-download-locked", children: button }) : button;
|
|
75
|
-
}
|
|
76
|
-
function SignedEditNote() {
|
|
77
|
-
return /* @__PURE__ */ jsx(
|
|
78
|
-
"p",
|
|
79
|
-
{
|
|
80
|
-
className: "border-b px-3 py-1.5 text-xs text-muted-foreground",
|
|
81
|
-
"data-testid": "signed-edit-note",
|
|
82
|
-
children: "Editing creates a new unsigned version"
|
|
83
|
-
}
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
function SignButton({ active, onClick, compact }) {
|
|
87
|
-
return /* @__PURE__ */ jsxs(
|
|
88
|
-
Button,
|
|
89
|
-
{
|
|
90
|
-
type: "button",
|
|
91
|
-
variant: active ? "default" : "outline",
|
|
92
|
-
size: compact ? "icon" : "sm",
|
|
93
|
-
"aria-pressed": active,
|
|
94
|
-
title: "Sign document",
|
|
95
|
-
"aria-label": "Sign",
|
|
96
|
-
"data-testid": "sign-document-button",
|
|
97
|
-
className: TOUCH,
|
|
98
|
-
onClick,
|
|
99
|
-
children: [
|
|
100
|
-
/* @__PURE__ */ jsx(PenLine, { className: "size-4" }),
|
|
101
|
-
!compact && /* @__PURE__ */ jsx("span", { className: "ml-1", children: "Sign" })
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
function RequestSignaturesButton({ active, onClick, compact }) {
|
|
107
|
-
return /* @__PURE__ */ jsxs(
|
|
108
|
-
Button,
|
|
109
|
-
{
|
|
110
|
-
type: "button",
|
|
111
|
-
variant: active ? "default" : "outline",
|
|
112
|
-
size: compact ? "icon" : "sm",
|
|
113
|
-
"aria-pressed": active,
|
|
114
|
-
title: "Request signatures",
|
|
115
|
-
"aria-label": "Request signatures",
|
|
116
|
-
"data-testid": "request-signatures-button",
|
|
117
|
-
className: TOUCH,
|
|
118
|
-
onClick,
|
|
119
|
-
children: [
|
|
120
|
-
/* @__PURE__ */ jsx(Users, { className: "size-4" }),
|
|
121
|
-
!compact && /* @__PURE__ */ jsx("span", { className: "ml-1", children: "Request signatures" })
|
|
122
|
-
]
|
|
123
|
-
}
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
|
-
var BAR = "flex flex-wrap items-center justify-between gap-2 border-b px-3 py-2 text-xs";
|
|
127
|
-
var LINK = "font-medium text-primary hover:underline disabled:opacity-50 disabled:no-underline pointer-coarse:min-h-11";
|
|
128
|
-
function MarkupNotices({ legacyPrompt, olderNote, onOpenVersion }) {
|
|
129
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
130
|
-
legacyPrompt && /* @__PURE__ */ jsxs("div", { className: BAR, role: "status", "data-testid": "markup-migration-prompt", children: [
|
|
131
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
|
132
|
-
legacyPrompt.count,
|
|
133
|
-
" annotation",
|
|
134
|
-
legacyPrompt.count === 1 ? "" : "s",
|
|
135
|
-
" on this document",
|
|
136
|
-
legacyPrompt.count === 1 ? " is" : " are",
|
|
137
|
-
" saved only in this browser. Add",
|
|
138
|
-
" ",
|
|
139
|
-
legacyPrompt.count === 1 ? "it" : "them",
|
|
140
|
-
" to the shared markup, where everyone with access sees ",
|
|
141
|
-
legacyPrompt.count === 1 ? "it" : "them",
|
|
142
|
-
"?"
|
|
143
|
-
] }),
|
|
144
|
-
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-3", children: [
|
|
145
|
-
/* @__PURE__ */ jsx(
|
|
146
|
-
"button",
|
|
147
|
-
{
|
|
148
|
-
type: "button",
|
|
149
|
-
className: LINK,
|
|
150
|
-
disabled: legacyPrompt.busy,
|
|
151
|
-
"data-testid": "markup-migration-add",
|
|
152
|
-
onClick: legacyPrompt.add,
|
|
153
|
-
children: legacyPrompt.busy ? "Adding\u2026" : "Add to shared markup"
|
|
154
|
-
}
|
|
155
|
-
),
|
|
156
|
-
/* @__PURE__ */ jsx(
|
|
157
|
-
"button",
|
|
158
|
-
{
|
|
159
|
-
type: "button",
|
|
160
|
-
className: LINK,
|
|
161
|
-
disabled: legacyPrompt.busy,
|
|
162
|
-
"data-testid": "markup-migration-discard",
|
|
163
|
-
onClick: legacyPrompt.discard,
|
|
164
|
-
children: "Discard"
|
|
165
|
-
}
|
|
166
|
-
)
|
|
167
|
-
] })
|
|
168
|
-
] }),
|
|
169
|
-
olderNote && /* @__PURE__ */ jsxs("div", { className: BAR, "data-testid": "markup-older-version-note", children: [
|
|
170
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
|
171
|
-
"The markup is on version ",
|
|
172
|
-
olderNote.version,
|
|
173
|
-
". This version started without it.",
|
|
174
|
-
olderNote.signed && /* @__PURE__ */ jsxs("span", { "data-testid": "markup-older-version-signed", children: [
|
|
175
|
-
" ",
|
|
176
|
-
"It is signed: comments copied here are kept beside it, and the signed PDF does not change."
|
|
177
|
-
] })
|
|
178
|
-
] }),
|
|
179
|
-
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-3", children: [
|
|
180
|
-
/* @__PURE__ */ jsxs(
|
|
181
|
-
"button",
|
|
182
|
-
{
|
|
183
|
-
type: "button",
|
|
184
|
-
className: LINK,
|
|
185
|
-
"data-testid": "markup-open-older-version",
|
|
186
|
-
onClick: () => onOpenVersion(olderNote.version),
|
|
187
|
-
children: [
|
|
188
|
-
"Open version ",
|
|
189
|
-
olderNote.version
|
|
190
|
-
]
|
|
191
|
-
}
|
|
192
|
-
),
|
|
193
|
-
/* @__PURE__ */ jsx(
|
|
194
|
-
"button",
|
|
195
|
-
{
|
|
196
|
-
type: "button",
|
|
197
|
-
className: LINK,
|
|
198
|
-
disabled: olderNote.busy,
|
|
199
|
-
"data-testid": "markup-copy-open-threads",
|
|
200
|
-
title: "Copy the unresolved comment threads onto this version (redactions never carry over)",
|
|
201
|
-
onClick: olderNote.copy,
|
|
202
|
-
children: olderNote.busy ? "Copying\u2026" : "Copy open comments here"
|
|
203
|
-
}
|
|
204
|
-
)
|
|
205
|
-
] })
|
|
206
|
-
] })
|
|
207
|
-
] });
|
|
208
|
-
}
|
|
209
|
-
function MarkupViewNote({ showOriginal, onToggle }) {
|
|
210
|
-
return /* @__PURE__ */ jsxs(ViewerStatusNote, { testId: "markup-view-note", children: [
|
|
211
|
-
showOriginal ? "Original, without markup" : "With markup",
|
|
212
|
-
" \xB7 ",
|
|
213
|
-
/* @__PURE__ */ jsx(
|
|
214
|
-
"button",
|
|
215
|
-
{
|
|
216
|
-
type: "button",
|
|
217
|
-
className: "font-medium text-primary hover:underline pointer-coarse:min-h-11",
|
|
218
|
-
"data-testid": "markup-view-note-toggle",
|
|
219
|
-
onClick: onToggle,
|
|
220
|
-
children: showOriginal ? "Show markup" : "Show original"
|
|
221
|
-
}
|
|
222
|
-
)
|
|
223
|
-
] });
|
|
224
|
-
}
|
|
225
|
-
function formatSignedAt(iso) {
|
|
226
|
-
const date = new Date(iso);
|
|
227
|
-
if (Number.isNaN(date.getTime())) return iso;
|
|
228
|
-
return date.toLocaleString([], { dateStyle: "medium", timeStyle: "short" });
|
|
229
|
-
}
|
|
230
|
-
function Row({ label, field, children }) {
|
|
231
|
-
return /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-[5.5rem_1fr] gap-2", children: [
|
|
232
|
-
/* @__PURE__ */ jsx("dt", { className: "text-muted-foreground", children: label }),
|
|
233
|
-
/* @__PURE__ */ jsx("dd", { className: "min-w-0 break-words", "data-testid": `signature-detail-${field}`, children })
|
|
234
|
-
] });
|
|
235
|
-
}
|
|
236
|
-
function SignatureStatus({
|
|
237
|
-
status,
|
|
238
|
-
formatDate = formatSignedAt,
|
|
239
|
-
certificateUrl
|
|
240
|
-
}) {
|
|
241
|
-
const tools = useOptionalDocumentTools();
|
|
242
|
-
const hostCertificateUrl = certificateUrl ?? tools?.certificateUrl;
|
|
243
|
-
const signatures = status.signatures ?? [];
|
|
244
|
-
const isCounterSigned = signatures.length > 1;
|
|
245
|
-
return /* @__PURE__ */ jsxs(Popover, { children: [
|
|
246
|
-
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
247
|
-
"button",
|
|
248
|
-
{
|
|
249
|
-
type: "button",
|
|
250
|
-
className: "flex-shrink-0 text-sm text-muted-foreground underline decoration-dotted underline-offset-4 hover:text-foreground pointer-coarse:min-h-11",
|
|
251
|
-
"data-testid": "document-signature-status",
|
|
252
|
-
"aria-label": `${status.intact ? "Signed, locked" : "Modified after signing"}: show signature details`,
|
|
253
|
-
children: status.intact ? "Signed \u2014 locked" : "Modified after signing"
|
|
254
|
-
}
|
|
255
|
-
) }),
|
|
256
|
-
/* @__PURE__ */ jsxs(
|
|
257
|
-
PopoverContent,
|
|
258
|
-
{
|
|
259
|
-
className: "max-h-[70vh] w-80 overflow-y-auto p-3 text-sm",
|
|
260
|
-
align: "start",
|
|
261
|
-
"data-testid": "signature-details",
|
|
262
|
-
children: [
|
|
263
|
-
/* @__PURE__ */ jsx("p", { className: "mb-2 font-medium", "data-testid": "signature-details-title", children: isCounterSigned ? `Electronic signatures (${signatures.length})` : "Electronic signature" }),
|
|
264
|
-
signatures.map((signature, index) => /* @__PURE__ */ jsxs(
|
|
265
|
-
"dl",
|
|
266
|
-
{
|
|
267
|
-
className: `mb-3 space-y-1 ${index > 0 ? "border-t border-border pt-2" : ""}`,
|
|
268
|
-
"data-testid": `signature-item-${index}`,
|
|
269
|
-
children: [
|
|
270
|
-
/* @__PURE__ */ jsx(Row, { label: "Signed by", field: "signer", children: signature.signer_name || signature.signer_email }),
|
|
271
|
-
/* @__PURE__ */ jsx(Row, { label: "On", field: "time", children: formatDate(signature.signed_at) }),
|
|
272
|
-
/* @__PURE__ */ jsx("dd", { children: /* @__PURE__ */ jsx(
|
|
273
|
-
"a",
|
|
274
|
-
{
|
|
275
|
-
href: certificateLink(signature, hostCertificateUrl),
|
|
276
|
-
target: "_blank",
|
|
277
|
-
rel: "noopener noreferrer",
|
|
278
|
-
className: "inline-flex items-center font-medium text-primary hover:underline pointer-coarse:min-h-11",
|
|
279
|
-
"data-testid": `signature-certificate-link-${index}`,
|
|
280
|
-
children: "View certificate"
|
|
281
|
-
}
|
|
282
|
-
) })
|
|
283
|
-
]
|
|
284
|
-
},
|
|
285
|
-
signature.reference
|
|
286
|
-
)),
|
|
287
|
-
/* @__PURE__ */ jsx(
|
|
288
|
-
"p",
|
|
289
|
-
{
|
|
290
|
-
className: `border-t border-border pt-2 ${status.intact ? "" : "text-red-text"}`,
|
|
291
|
-
"data-testid": "signature-detail-intact",
|
|
292
|
-
children: status.intact ? isCounterSigned ? "\u2713 Unchanged since the last signature" : "\u2713 Unchanged since signing" : "\u2717 Changed after it was signed"
|
|
293
|
-
}
|
|
294
|
-
),
|
|
295
|
-
/* @__PURE__ */ jsx("p", { className: "mt-1 text-xs text-muted-foreground", "data-testid": "signature-detail-locked", children: "Locked: only further signatures can be added." })
|
|
296
|
-
]
|
|
297
|
-
}
|
|
298
|
-
)
|
|
299
|
-
] });
|
|
300
|
-
}
|
|
301
|
-
function Frame({ children }) {
|
|
302
|
-
return /* @__PURE__ */ jsxs(
|
|
303
|
-
"main",
|
|
304
|
-
{
|
|
305
|
-
className: "mx-auto w-full max-w-xl px-4 py-10 text-foreground",
|
|
306
|
-
"data-testid": "signature-certificate",
|
|
307
|
-
children: [
|
|
308
|
-
/* @__PURE__ */ jsx("h1", { className: "mb-6 text-xl font-semibold", children: "Signature certificate" }),
|
|
309
|
-
children
|
|
310
|
-
]
|
|
311
|
-
}
|
|
312
|
-
);
|
|
313
|
-
}
|
|
314
|
-
function copyResult(name, match) {
|
|
315
|
-
if (match.kind === "current") return `\u2713 ${name} is the signed document, unchanged.`;
|
|
316
|
-
if (match.kind === "earlier") {
|
|
317
|
-
return `\u2713 ${name}: this is the version signed by ${match.signature.signer_name || "an ARBI user"}.`;
|
|
318
|
-
}
|
|
319
|
-
return `\u2717 ${name} is not the signed document: it differs from what was signed.`;
|
|
320
|
-
}
|
|
321
|
-
function SignatureCertificate({
|
|
322
|
-
reference,
|
|
323
|
-
verification,
|
|
324
|
-
isLoading = false,
|
|
325
|
-
error,
|
|
326
|
-
isErrorTransient = false,
|
|
327
|
-
formatDate = formatSignedAt,
|
|
328
|
-
allowCopyCheck = true
|
|
329
|
-
}) {
|
|
330
|
-
const [copy, setCopy] = useState({ state: "idle" });
|
|
331
|
-
const [dragging, setDragging] = useState(false);
|
|
332
|
-
const input = useRef(null);
|
|
333
|
-
if (isLoading) {
|
|
334
|
-
return /* @__PURE__ */ jsx(Frame, { children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", "data-testid": "signature-certificate-loading", children: "Checking the signature\u2026" }) });
|
|
335
|
-
}
|
|
336
|
-
if (error || !verification) {
|
|
337
|
-
return /* @__PURE__ */ jsx(Frame, { children: /* @__PURE__ */ jsx(
|
|
338
|
-
"p",
|
|
339
|
-
{
|
|
340
|
-
className: isErrorTransient ? "text-muted-foreground" : "text-red-text",
|
|
341
|
-
role: isErrorTransient ? "status" : "alert",
|
|
342
|
-
"data-testid": "signature-certificate-error",
|
|
343
|
-
children: error || "The signature could not be checked."
|
|
344
|
-
}
|
|
345
|
-
) });
|
|
346
|
-
}
|
|
347
|
-
const [first, ...counter] = verification.signatures;
|
|
348
|
-
const check = async (file) => {
|
|
349
|
-
if (!file) return;
|
|
350
|
-
setCopy({ state: "checking", name: file.name });
|
|
351
|
-
try {
|
|
352
|
-
setCopy({ state: "done", name: file.name, match: await matchSignedCopy(file, verification) });
|
|
353
|
-
} catch {
|
|
354
|
-
setCopy({ state: "failed", name: file.name });
|
|
355
|
-
}
|
|
356
|
-
};
|
|
357
|
-
const onDrop = (e) => {
|
|
358
|
-
e.preventDefault();
|
|
359
|
-
setDragging(false);
|
|
360
|
-
void check(e.dataTransfer.files[0]);
|
|
361
|
-
};
|
|
362
|
-
return /* @__PURE__ */ jsxs(Frame, { children: [
|
|
363
|
-
/* @__PURE__ */ jsxs("section", { className: "space-y-3", children: [
|
|
364
|
-
first && /* @__PURE__ */ jsxs("p", { className: "text-base", "data-testid": "signature-certificate-signer", children: [
|
|
365
|
-
"Signed by ",
|
|
366
|
-
/* @__PURE__ */ jsx("strong", { children: first.signer_name || "an ARBI user" }),
|
|
367
|
-
" on",
|
|
368
|
-
" ",
|
|
369
|
-
formatDate(first.signed_at)
|
|
370
|
-
] }),
|
|
371
|
-
counter.length > 0 && /* @__PURE__ */ jsx("ul", { className: "space-y-1 text-sm", "data-testid": "signature-certificate-counter", children: counter.map((s, i) => /* @__PURE__ */ jsxs("li", { children: [
|
|
372
|
-
"Also signed by ",
|
|
373
|
-
/* @__PURE__ */ jsx("strong", { children: s.signer_name || "an ARBI user" }),
|
|
374
|
-
" on",
|
|
375
|
-
" ",
|
|
376
|
-
formatDate(s.signed_at)
|
|
377
|
-
] }, `${s.sha256}-${i}`)) }),
|
|
378
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "ARBI checks that this document hasn\u2019t changed since it was signed. If anything changed, this check fails." }),
|
|
379
|
-
/* @__PURE__ */ jsx(
|
|
380
|
-
"p",
|
|
381
|
-
{
|
|
382
|
-
className: cn(
|
|
383
|
-
"rounded-md border px-3 py-2 font-medium",
|
|
384
|
-
verification.intact ? "border-green-border bg-green-bg text-green-text" : "border-red-text text-red-text"
|
|
385
|
-
),
|
|
386
|
-
role: "status",
|
|
387
|
-
"data-testid": "signature-certificate-result",
|
|
388
|
-
"data-intact": verification.intact,
|
|
389
|
-
children: verification.intact ? "\u2713 Unchanged since signing" : "\u2717 Changed since signing: this is not the document that was signed"
|
|
390
|
-
}
|
|
391
|
-
)
|
|
392
|
-
] }),
|
|
393
|
-
allowCopyCheck && /* @__PURE__ */ jsxs("section", { className: "mt-8 space-y-2", children: [
|
|
394
|
-
/* @__PURE__ */ jsx("h2", { className: "text-sm font-medium", children: "Check your copy" }),
|
|
395
|
-
/* @__PURE__ */ jsxs(
|
|
396
|
-
"div",
|
|
397
|
-
{
|
|
398
|
-
role: "button",
|
|
399
|
-
tabIndex: 0,
|
|
400
|
-
className: cn(
|
|
401
|
-
"flex min-h-24 cursor-pointer flex-col items-center justify-center rounded-md border border-dashed px-4 py-6 text-center text-sm text-muted-foreground pointer-coarse:min-h-32",
|
|
402
|
-
dragging && "border-primary bg-muted"
|
|
403
|
-
),
|
|
404
|
-
"data-testid": "signature-certificate-dropzone",
|
|
405
|
-
onClick: () => input.current?.click(),
|
|
406
|
-
onKeyDown: (e) => {
|
|
407
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
408
|
-
e.preventDefault();
|
|
409
|
-
input.current?.click();
|
|
410
|
-
}
|
|
411
|
-
},
|
|
412
|
-
onDragOver: (e) => {
|
|
413
|
-
e.preventDefault();
|
|
414
|
-
setDragging(true);
|
|
415
|
-
},
|
|
416
|
-
onDragLeave: () => setDragging(false),
|
|
417
|
-
onDrop,
|
|
418
|
-
children: [
|
|
419
|
-
"Drop the PDF you were sent here, or choose it",
|
|
420
|
-
/* @__PURE__ */ jsx("span", { className: "mt-1 text-xs", children: "It is checked in this browser and never uploaded." }),
|
|
421
|
-
/* @__PURE__ */ jsx(
|
|
422
|
-
"input",
|
|
423
|
-
{
|
|
424
|
-
ref: input,
|
|
425
|
-
type: "file",
|
|
426
|
-
accept: "application/pdf,.pdf",
|
|
427
|
-
className: "sr-only",
|
|
428
|
-
"data-testid": "signature-certificate-file-input",
|
|
429
|
-
onChange: (e) => void check(e.target.files?.[0])
|
|
430
|
-
}
|
|
431
|
-
)
|
|
432
|
-
]
|
|
433
|
-
}
|
|
434
|
-
),
|
|
435
|
-
copy.state !== "idle" && /* @__PURE__ */ jsx(
|
|
436
|
-
"p",
|
|
437
|
-
{
|
|
438
|
-
className: cn(
|
|
439
|
-
"text-sm",
|
|
440
|
-
copy.state === "done" && copy.match.kind !== "none" && "text-green-text",
|
|
441
|
-
(copy.state === "done" && copy.match.kind === "none" || copy.state === "failed") && "text-red-text"
|
|
442
|
-
),
|
|
443
|
-
role: "status",
|
|
444
|
-
"data-testid": "signature-certificate-copy-result",
|
|
445
|
-
children: copy.state === "checking" ? `Checking ${copy.name}\u2026` : copy.state === "failed" ? `${copy.name} could not be read.` : copyResult(copy.name, copy.match)
|
|
446
|
-
}
|
|
447
|
-
)
|
|
448
|
-
] }),
|
|
449
|
-
reference && /* @__PURE__ */ jsxs(
|
|
450
|
-
"p",
|
|
451
|
-
{
|
|
452
|
-
className: "mt-8 text-xs text-muted-foreground",
|
|
453
|
-
"data-testid": "signature-certificate-reference",
|
|
454
|
-
children: [
|
|
455
|
-
"Reference ",
|
|
456
|
-
reference
|
|
457
|
-
]
|
|
458
|
-
}
|
|
459
|
-
)
|
|
460
|
-
] });
|
|
461
|
-
}
|
|
462
|
-
var LINK2 = "font-medium text-primary hover:underline pointer-coarse:min-h-11";
|
|
463
|
-
var DEFAULT_VERSION_SNAPSHOT_BAR_LABELS = {
|
|
464
|
-
title: (number) => `${number ? `Version ${number}` : "Saved version"} \xB7 read only`,
|
|
465
|
-
ask: "Ask about this version",
|
|
466
|
-
returnToCurrent: "Return to current version",
|
|
467
|
-
returnToLive: "Return to live document"
|
|
468
|
-
};
|
|
469
|
-
function VersionSnapshotBar({
|
|
470
|
-
versionNumber,
|
|
471
|
-
live = false,
|
|
472
|
-
onAsk,
|
|
473
|
-
onReturn,
|
|
474
|
-
labels: overrides
|
|
475
|
-
}) {
|
|
476
|
-
const labels = { ...DEFAULT_VERSION_SNAPSHOT_BAR_LABELS, ...overrides };
|
|
477
|
-
return /* @__PURE__ */ jsxs(
|
|
478
|
-
"div",
|
|
479
|
-
{
|
|
480
|
-
className: "flex items-center justify-between border-b px-3 py-2 text-xs",
|
|
481
|
-
"data-testid": "version-snapshot-bar",
|
|
482
|
-
children: [
|
|
483
|
-
/* @__PURE__ */ jsx("span", { children: labels.title(versionNumber) }),
|
|
484
|
-
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-3", children: [
|
|
485
|
-
onAsk && /* @__PURE__ */ jsx("button", { type: "button", className: LINK2, "data-testid": "version-snapshot-ask", onClick: onAsk, children: labels.ask }),
|
|
486
|
-
/* @__PURE__ */ jsx(
|
|
487
|
-
"button",
|
|
488
|
-
{
|
|
489
|
-
type: "button",
|
|
490
|
-
className: LINK2,
|
|
491
|
-
"data-testid": "version-snapshot-return",
|
|
492
|
-
onClick: onReturn,
|
|
493
|
-
children: live ? labels.returnToLive : labels.returnToCurrent
|
|
494
|
-
}
|
|
495
|
-
)
|
|
496
|
-
] })
|
|
497
|
-
]
|
|
498
|
-
}
|
|
499
|
-
);
|
|
500
|
-
}
|
|
501
|
-
function names(request, status) {
|
|
502
|
-
return request.signers.filter((s) => s.status === status).map((s) => s.name || s.email || "");
|
|
503
|
-
}
|
|
504
|
-
function SignatureRequestBanner({
|
|
505
|
-
documentId,
|
|
506
|
-
onSign,
|
|
507
|
-
onEditDraft,
|
|
508
|
-
hidden = false
|
|
509
|
-
}) {
|
|
510
|
-
const { user, notify } = useDocumentTools();
|
|
511
|
-
const requests = useDocumentSignatureRequests(documentId, !hidden);
|
|
512
|
-
const voidRequest = useVoidSignatureRequest();
|
|
513
|
-
const me = user?.externalId ?? null;
|
|
514
|
-
if (hidden || !me || !requests.data) return null;
|
|
515
|
-
const open = requests.data.filter((r) => r.status === "sent" || r.status === "draft");
|
|
516
|
-
const awaitingMe = open.filter(
|
|
517
|
-
(r) => r.status === "sent" && r.signers.some((s) => s.user_ext_id === me && s.status === "pending")
|
|
518
|
-
);
|
|
519
|
-
const sentByMe = open.filter(
|
|
520
|
-
(r) => r.status === "sent" && r.created_by === me && !awaitingMe.includes(r)
|
|
521
|
-
);
|
|
522
|
-
const drafts = open.filter((r) => r.status === "draft" && r.created_by === me);
|
|
523
|
-
if (awaitingMe.length + sentByMe.length + drafts.length === 0) return null;
|
|
524
|
-
const doVoid = async (request) => {
|
|
525
|
-
try {
|
|
526
|
-
await voidRequest.mutateAsync(request.external_id);
|
|
527
|
-
notify(request.status === "draft" ? "Draft discarded." : "Signature request voided.", "info");
|
|
528
|
-
} catch (err) {
|
|
529
|
-
notify(err instanceof Error ? err.message : "Could not void it", "error");
|
|
530
|
-
}
|
|
531
|
-
};
|
|
532
|
-
return /* @__PURE__ */ jsxs(
|
|
533
|
-
"div",
|
|
534
|
-
{
|
|
535
|
-
className: "space-y-1.5 border-b border-border px-3 py-2 text-sm",
|
|
536
|
-
"data-testid": "signature-request-banner",
|
|
537
|
-
children: [
|
|
538
|
-
awaitingMe.map((r) => {
|
|
539
|
-
const count = r.fields.filter((f) => f.signer === me).length;
|
|
540
|
-
const author = r.signers.find((s) => s.user_ext_id === r.created_by)?.name;
|
|
541
|
-
return /* @__PURE__ */ jsxs(
|
|
542
|
-
"div",
|
|
543
|
-
{
|
|
544
|
-
className: "flex flex-wrap items-center gap-2 rounded-md bg-blue-50 px-2 py-1.5 text-blue-950 dark:bg-blue-950/40 dark:text-blue-100",
|
|
545
|
-
"data-testid": "signature-request-awaiting-me",
|
|
546
|
-
children: [
|
|
547
|
-
/* @__PURE__ */ jsx(PenLine, { className: "size-4 shrink-0", "aria-hidden": true }),
|
|
548
|
-
/* @__PURE__ */ jsxs("span", { className: "mr-auto", children: [
|
|
549
|
-
author && r.created_by !== me ? `${author} asked you to sign` : "You are asked to sign",
|
|
550
|
-
" ",
|
|
551
|
-
count,
|
|
552
|
-
" field",
|
|
553
|
-
count === 1 ? "" : "s",
|
|
554
|
-
" in this document.",
|
|
555
|
-
r.stale && " It has changed since it was sent: ask for it again."
|
|
556
|
-
] }),
|
|
557
|
-
/* @__PURE__ */ jsx(
|
|
558
|
-
Button,
|
|
559
|
-
{
|
|
560
|
-
type: "button",
|
|
561
|
-
size: "sm",
|
|
562
|
-
onClick: () => onSign(r),
|
|
563
|
-
disabled: r.stale,
|
|
564
|
-
"data-testid": "signature-request-start",
|
|
565
|
-
children: "Review and sign"
|
|
566
|
-
}
|
|
567
|
-
)
|
|
568
|
-
]
|
|
569
|
-
},
|
|
570
|
-
r.external_id
|
|
571
|
-
);
|
|
572
|
-
}),
|
|
573
|
-
sentByMe.map((r) => {
|
|
574
|
-
const pending = names(r, "pending");
|
|
575
|
-
const signed = r.signers.length - pending.length;
|
|
576
|
-
return /* @__PURE__ */ jsxs(
|
|
577
|
-
"div",
|
|
578
|
-
{
|
|
579
|
-
className: "flex flex-wrap items-center gap-2",
|
|
580
|
-
"data-testid": "signature-request-sent",
|
|
581
|
-
children: [
|
|
582
|
-
/* @__PURE__ */ jsx(Send, { className: "size-4 shrink-0 text-muted-foreground", "aria-hidden": true }),
|
|
583
|
-
/* @__PURE__ */ jsxs("span", { className: "mr-auto", children: [
|
|
584
|
-
"Out for signature: ",
|
|
585
|
-
signed,
|
|
586
|
-
" of ",
|
|
587
|
-
r.signers.length,
|
|
588
|
-
" signed",
|
|
589
|
-
pending.length > 0 && /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground", children: [
|
|
590
|
-
" \xB7 waiting for ",
|
|
591
|
-
pending.join(", ")
|
|
592
|
-
] }),
|
|
593
|
-
r.stale && /* @__PURE__ */ jsx("span", { className: "text-red-text", children: " \xB7 the document has changed since it was sent" })
|
|
594
|
-
] }),
|
|
595
|
-
/* @__PURE__ */ jsx(
|
|
596
|
-
Button,
|
|
597
|
-
{
|
|
598
|
-
type: "button",
|
|
599
|
-
size: "sm",
|
|
600
|
-
variant: "ghost",
|
|
601
|
-
onClick: () => doVoid(r),
|
|
602
|
-
disabled: voidRequest.isPending,
|
|
603
|
-
children: "Void"
|
|
604
|
-
}
|
|
605
|
-
)
|
|
606
|
-
]
|
|
607
|
-
},
|
|
608
|
-
r.external_id
|
|
609
|
-
);
|
|
610
|
-
}),
|
|
611
|
-
drafts.map((r) => /* @__PURE__ */ jsxs(
|
|
612
|
-
"div",
|
|
613
|
-
{
|
|
614
|
-
className: "flex flex-wrap items-center gap-2",
|
|
615
|
-
"data-testid": "signature-request-draft",
|
|
616
|
-
children: [
|
|
617
|
-
/* @__PURE__ */ jsx(FilePenLine, { className: "size-4 shrink-0 text-muted-foreground", "aria-hidden": true }),
|
|
618
|
-
/* @__PURE__ */ jsxs("span", { className: "mr-auto", children: [
|
|
619
|
-
"Draft signature request: ",
|
|
620
|
-
r.fields.length,
|
|
621
|
-
" field",
|
|
622
|
-
r.fields.length === 1 ? "" : "s",
|
|
623
|
-
", not sent yet."
|
|
624
|
-
] }),
|
|
625
|
-
/* @__PURE__ */ jsx(Button, { type: "button", size: "sm", variant: "outline", onClick: () => onEditDraft(r), children: "Continue" }),
|
|
626
|
-
/* @__PURE__ */ jsx(
|
|
627
|
-
Button,
|
|
628
|
-
{
|
|
629
|
-
type: "button",
|
|
630
|
-
size: "sm",
|
|
631
|
-
variant: "ghost",
|
|
632
|
-
onClick: () => doVoid(r),
|
|
633
|
-
disabled: voidRequest.isPending,
|
|
634
|
-
children: "Discard"
|
|
635
|
-
}
|
|
636
|
-
)
|
|
637
|
-
]
|
|
638
|
-
},
|
|
639
|
-
r.external_id
|
|
640
|
-
))
|
|
641
|
-
]
|
|
642
|
-
}
|
|
643
|
-
);
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
export { AnnotateButton, DEFAULT_VERSION_SNAPSHOT_BAR_LABELS, DownloadMarkupButton, MarkupNotices, MarkupViewNote, RequestSignaturesButton, ShowOriginalButton, SignButton, SignatureCertificate, SignatureRequestBanner, SignatureStatus, SignedEditNote, VersionSnapshotBar, formatSignedAt };
|
|
647
8
|
//# sourceMappingURL=index.js.map
|
|
648
9
|
//# sourceMappingURL=index.js.map
|