@arbidocs/blocks 0.3.185 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +100 -0
- package/dist/agents/approvals/AuthorizeAgentParts.d.ts +79 -0
- package/dist/agents/approvals/ConsentPage.d.ts +76 -0
- package/dist/agents/approvals/ConsentParts.d.ts +37 -0
- package/dist/agents/approvals/index.d.ts +3 -0
- package/dist/agents/config/ConfigField.d.ts +43 -0
- package/dist/agents/config/ConfigForm.d.ts +35 -0
- package/dist/agents/config/TupleArrayField.d.ts +32 -0
- package/dist/agents/config/index.d.ts +4 -0
- package/dist/agents/config/schema-utils.d.ts +28 -0
- package/dist/agents/definitions/AgentCard.d.ts +63 -0
- package/dist/agents/definitions/AgentCreator.d.ts +118 -0
- package/dist/agents/definitions/AgentEditorParts.d.ts +63 -0
- package/dist/agents/definitions/AgentGallery.d.ts +29 -0
- package/dist/agents/definitions/index.d.ts +4 -0
- package/dist/agents/index.cjs +595 -0
- package/dist/agents/index.cjs.map +1 -0
- package/dist/agents/index.d.ts +7 -0
- package/dist/agents/index.js +14 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/runs/AgentBar.d.ts +103 -0
- package/dist/agents/runs/AgentSteps.d.ts +157 -0
- package/dist/agents/runs/SubagentRoster.d.ts +37 -0
- package/dist/agents/runs/index.d.ts +3 -0
- package/dist/agents/skills/SkillBrowserParts.d.ts +70 -0
- package/dist/agents/skills/SkillCard.d.ts +48 -0
- package/dist/agents/skills/SkillForms.d.ts +64 -0
- package/dist/agents/skills/SkillParts.d.ts +31 -0
- package/dist/agents/skills/SkillRow.d.ts +34 -0
- package/dist/agents/skills/index.d.ts +5 -0
- package/dist/agents/tasks/LiveRunsBanner.d.ts +26 -0
- package/dist/agents/tasks/RecurrenceBuilder.d.ts +36 -0
- package/dist/agents/tasks/TaskComposer.d.ts +108 -0
- package/dist/agents/tasks/TaskPlan.d.ts +78 -0
- package/dist/agents/tasks/TaskRowActions.d.ts +43 -0
- package/dist/agents/tasks/TaskRunsDialog.d.ts +45 -0
- package/dist/agents/tasks/TasksChrome.d.ts +36 -0
- package/dist/agents/tasks/UploadTaskItem.d.ts +39 -0
- package/dist/agents/tasks/UploadTaskList.d.ts +35 -0
- package/dist/agents/tasks/elapsed.d.ts +2 -0
- package/dist/agents/tasks/index.d.ts +13 -0
- package/dist/agents/tasks/rrule.d.ts +36 -0
- package/dist/agents/tasks/taskColumns.d.ts +68 -0
- package/dist/agents/tasks/taskLabels.d.ts +26 -0
- package/dist/agents/workflows/AgentSelect.d.ts +33 -0
- package/dist/agents/workflows/SchemaForm.d.ts +37 -0
- package/dist/agents/workflows/WorkflowConfigDialog.d.ts +73 -0
- package/dist/agents/workflows/WorkflowLauncher.d.ts +38 -0
- package/dist/agents/workflows/index.d.ts +6 -0
- package/dist/agents/workflows/types.d.ts +125 -0
- package/dist/agents/workflows/workflow.d.ts +62 -0
- package/dist/auth/AuthFooter.d.ts +56 -0
- package/dist/auth/AuthForm.d.ts +105 -0
- package/dist/auth/AuthLayout.d.ts +46 -0
- package/dist/auth/PasswordStrengthInput.d.ts +44 -0
- package/dist/auth/RecoveryDialogs.d.ts +90 -0
- package/dist/auth/SsoLoginButton.d.ts +19 -0
- package/dist/auth/index.cjs +123 -0
- package/dist/auth/index.cjs.map +1 -0
- package/dist/auth/index.d.ts +6 -0
- package/dist/auth/index.js +6 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/builder/AgentsPanel.d.ts +9 -0
- package/dist/builder/ModuleManager.d.ts +6 -0
- package/dist/builder/VerticalBuilder.d.ts +32 -0
- package/dist/builder/agents/store.d.ts +21 -0
- package/dist/builder/export.d.ts +30 -0
- package/dist/builder/modules/registry.d.ts +11 -0
- package/dist/builder/modules/store.d.ts +29 -0
- package/dist/builder/modules/types.d.ts +29 -0
- package/dist/builder/types.d.ts +28 -0
- package/dist/chat/BranchControls.d.ts +33 -0
- package/dist/chat/Composer.d.ts +156 -0
- package/dist/chat/ContextChip.d.ts +19 -0
- package/dist/chat/ContextPanel.d.ts +108 -0
- package/dist/chat/ConversationEmpty.d.ts +53 -0
- package/dist/chat/ConversationLayout.d.ts +40 -0
- package/dist/chat/ConversationParts.d.ts +62 -0
- package/dist/chat/ConversationSearchView.d.ts +57 -0
- package/dist/chat/LabelPinRow.d.ts +30 -0
- package/dist/chat/Message.d.ts +189 -0
- package/dist/chat/MessageAlert.d.ts +25 -0
- package/dist/chat/MessageList.d.ts +102 -0
- package/dist/chat/ModelPicker.d.ts +103 -0
- package/dist/chat/PendingAnswerBar.d.ts +36 -0
- package/dist/chat/PinnedDocChip.d.ts +22 -0
- package/dist/chat/SlashMenu.d.ts +57 -0
- package/dist/chat/ThreadMap.d.ts +45 -0
- package/dist/chat/index.cjs +423 -0
- package/dist/chat/index.cjs.map +1 -0
- package/dist/chat/index.d.ts +21 -0
- package/dist/chat/index.js +6 -0
- package/dist/chat/index.js.map +1 -0
- package/dist/chat/test-id.d.ts +16 -0
- package/dist/chat/useStreamAnnouncement.d.ts +19 -0
- package/dist/chunk-223D4727.cjs +50 -0
- package/dist/chunk-223D4727.cjs.map +1 -0
- package/dist/chunk-4EZVCGRL.js +803 -0
- package/dist/chunk-4EZVCGRL.js.map +1 -0
- package/dist/chunk-54Q3RNJU.cjs +516 -0
- package/dist/chunk-54Q3RNJU.cjs.map +1 -0
- package/dist/chunk-5B4PXAKI.cjs +287 -0
- package/dist/chunk-5B4PXAKI.cjs.map +1 -0
- package/dist/chunk-5TYEJOXY.js +1762 -0
- package/dist/chunk-5TYEJOXY.js.map +1 -0
- package/dist/chunk-6ALISABK.cjs +677 -0
- package/dist/chunk-6ALISABK.cjs.map +1 -0
- package/dist/chunk-6HIPFEID.cjs +574 -0
- package/dist/chunk-6HIPFEID.cjs.map +1 -0
- package/dist/chunk-76JDDMSP.js +31 -0
- package/dist/chunk-76JDDMSP.js.map +1 -0
- package/dist/chunk-7F6CBP3Z.js +12 -0
- package/dist/chunk-7F6CBP3Z.js.map +1 -0
- package/dist/chunk-7G2LJMUG.cjs +45 -0
- package/dist/chunk-7G2LJMUG.cjs.map +1 -0
- package/dist/chunk-7G3JNSJB.cjs +1809 -0
- package/dist/chunk-7G3JNSJB.cjs.map +1 -0
- package/dist/chunk-A2YAC22G.js +93 -0
- package/dist/chunk-A2YAC22G.js.map +1 -0
- package/dist/chunk-ADOKTJHV.cjs +262 -0
- package/dist/chunk-ADOKTJHV.cjs.map +1 -0
- package/dist/chunk-AXIZ2MDV.js +751 -0
- package/dist/chunk-AXIZ2MDV.js.map +1 -0
- package/dist/chunk-AZQDNYH4.js +2865 -0
- package/dist/chunk-AZQDNYH4.js.map +1 -0
- package/dist/chunk-C54XEN5T.cjs +34 -0
- package/dist/chunk-C54XEN5T.cjs.map +1 -0
- package/dist/chunk-CQCC7LE7.js +210 -0
- package/dist/chunk-CQCC7LE7.js.map +1 -0
- package/dist/chunk-CRIKTUEU.cjs +47 -0
- package/dist/chunk-CRIKTUEU.cjs.map +1 -0
- package/dist/chunk-CTZ5745I.js +564 -0
- package/dist/chunk-CTZ5745I.js.map +1 -0
- package/dist/chunk-DPLRHEJZ.js +78 -0
- package/dist/chunk-DPLRHEJZ.js.map +1 -0
- package/dist/chunk-DVLEQURC.js +672 -0
- package/dist/chunk-DVLEQURC.js.map +1 -0
- package/dist/chunk-ELR74ME6.cjs +68 -0
- package/dist/chunk-ELR74ME6.cjs.map +1 -0
- package/dist/{chunk-DBAUZD7A.cjs → chunk-FZQJ2S6P.cjs} +244 -1123
- package/dist/chunk-FZQJ2S6P.cjs.map +1 -0
- package/dist/chunk-G3G7LZPM.cjs +205 -0
- package/dist/chunk-G3G7LZPM.cjs.map +1 -0
- package/dist/chunk-GDFWJ73C.cjs +2973 -0
- package/dist/chunk-GDFWJ73C.cjs.map +1 -0
- package/dist/chunk-ITGHMJOM.js +5528 -0
- package/dist/chunk-ITGHMJOM.js.map +1 -0
- package/dist/chunk-K4BGOPGG.js +79 -0
- package/dist/chunk-K4BGOPGG.js.map +1 -0
- package/dist/chunk-KUA3BCT2.cjs +272 -0
- package/dist/chunk-KUA3BCT2.cjs.map +1 -0
- package/dist/chunk-LGBAZD37.js +341 -0
- package/dist/chunk-LGBAZD37.js.map +1 -0
- package/dist/chunk-MHVNT4J3.cjs +15 -0
- package/dist/chunk-MHVNT4J3.cjs.map +1 -0
- package/dist/chunk-MMYCZRKT.cjs +168 -0
- package/dist/chunk-MMYCZRKT.cjs.map +1 -0
- package/dist/chunk-NBV56SGU.js +42 -0
- package/dist/chunk-NBV56SGU.js.map +1 -0
- package/dist/chunk-NPLYHR2E.js +13 -0
- package/dist/chunk-NPLYHR2E.js.map +1 -0
- package/dist/chunk-NUNKSZKU.js +203 -0
- package/dist/chunk-NUNKSZKU.js.map +1 -0
- package/dist/chunk-OB5F4577.cjs +40 -0
- package/dist/chunk-OB5F4577.cjs.map +1 -0
- package/dist/chunk-OUW6G4O2.cjs +96 -0
- package/dist/chunk-OUW6G4O2.cjs.map +1 -0
- package/dist/chunk-OVEQERPO.js +66 -0
- package/dist/chunk-OVEQERPO.js.map +1 -0
- package/dist/chunk-P6GHJSLR.js +34 -0
- package/dist/chunk-P6GHJSLR.js.map +1 -0
- package/dist/chunk-PCB2BPN3.cjs +41 -0
- package/dist/chunk-PCB2BPN3.cjs.map +1 -0
- package/dist/chunk-PPCATBOY.cjs +15 -0
- package/dist/chunk-PPCATBOY.cjs.map +1 -0
- package/dist/chunk-QN42OA5J.js +887 -0
- package/dist/chunk-QN42OA5J.js.map +1 -0
- package/dist/{chunk-FZ2S6VAZ.js → chunk-RBXZYNVB.js} +223 -1102
- package/dist/chunk-RBXZYNVB.js.map +1 -0
- package/dist/chunk-RC6VTY2H.js +47 -0
- package/dist/chunk-RC6VTY2H.js.map +1 -0
- package/dist/chunk-RFIBUWLF.cjs +232 -0
- package/dist/chunk-RFIBUWLF.cjs.map +1 -0
- package/dist/chunk-S5T7ZTX2.js +266 -0
- package/dist/chunk-S5T7ZTX2.js.map +1 -0
- package/dist/chunk-S7PSMMRG.js +38 -0
- package/dist/chunk-S7PSMMRG.js.map +1 -0
- package/dist/chunk-SCFYPAG6.cjs +18 -0
- package/dist/chunk-SCFYPAG6.cjs.map +1 -0
- package/dist/chunk-SYDHKKRZ.cjs +818 -0
- package/dist/chunk-SYDHKKRZ.cjs.map +1 -0
- package/dist/chunk-TX2ZICS7.js +139 -0
- package/dist/chunk-TX2ZICS7.js.map +1 -0
- package/dist/chunk-TYZUCAT7.js +787 -0
- package/dist/chunk-TYZUCAT7.js.map +1 -0
- package/dist/chunk-U2E3WT3J.js +45 -0
- package/dist/chunk-U2E3WT3J.js.map +1 -0
- package/dist/chunk-UBNVIIBT.js +284 -0
- package/dist/chunk-UBNVIIBT.js.map +1 -0
- package/dist/chunk-UFHMLHIR.cjs +66 -0
- package/dist/chunk-UFHMLHIR.cjs.map +1 -0
- package/dist/chunk-UJE32SST.js +39 -0
- package/dist/chunk-UJE32SST.js.map +1 -0
- package/dist/chunk-ULWRNGGE.cjs +146 -0
- package/dist/chunk-ULWRNGGE.cjs.map +1 -0
- package/dist/chunk-UTWX2X2A.js +165 -0
- package/dist/chunk-UTWX2X2A.js.map +1 -0
- package/dist/chunk-UWGIB3VQ.js +64 -0
- package/dist/chunk-UWGIB3VQ.js.map +1 -0
- package/dist/chunk-V4ISCZJ7.cjs +207 -0
- package/dist/chunk-V4ISCZJ7.cjs.map +1 -0
- package/dist/chunk-VFUWWH52.cjs +83 -0
- package/dist/chunk-VFUWWH52.cjs.map +1 -0
- package/dist/chunk-VILAPTCB.js +259 -0
- package/dist/chunk-VILAPTCB.js.map +1 -0
- package/dist/chunk-VLCY46K6.cjs +82 -0
- package/dist/chunk-VLCY46K6.cjs.map +1 -0
- package/dist/chunk-VPPX5XUF.cjs +813 -0
- package/dist/chunk-VPPX5XUF.cjs.map +1 -0
- package/dist/chunk-WJMEXTVD.cjs +122 -0
- package/dist/chunk-WJMEXTVD.cjs.map +1 -0
- package/dist/chunk-WTNMWEBC.js +504 -0
- package/dist/chunk-WTNMWEBC.js.map +1 -0
- package/dist/chunk-WW6EOVZA.js +112 -0
- package/dist/chunk-WW6EOVZA.js.map +1 -0
- package/dist/chunk-XNBAXRY7.cjs +5673 -0
- package/dist/chunk-XNBAXRY7.cjs.map +1 -0
- package/dist/chunk-XQ7PKKDY.cjs +787 -0
- package/dist/chunk-XQ7PKKDY.cjs.map +1 -0
- package/dist/chunk-XZIYRKLW.cjs +347 -0
- package/dist/chunk-XZIYRKLW.cjs.map +1 -0
- package/dist/chunk-YBXCZEWS.js +187 -0
- package/dist/chunk-YBXCZEWS.js.map +1 -0
- package/dist/chunk-YDHO4AVL.js +16 -0
- package/dist/chunk-YDHO4AVL.js.map +1 -0
- package/dist/chunk-ZORQ5M3W.cjs +934 -0
- package/dist/chunk-ZORQ5M3W.cjs.map +1 -0
- package/dist/chunk-ZW6FPIFC.cjs +36 -0
- package/dist/chunk-ZW6FPIFC.cjs.map +1 -0
- package/dist/citations/CitationEditor.d.ts +58 -0
- package/dist/citations/PassagePill.d.ts +49 -0
- package/dist/citations/QuietMarks.d.ts +81 -0
- package/dist/citations/index.cjs +47 -0
- package/dist/citations/index.cjs.map +1 -0
- package/dist/citations/index.d.ts +3 -0
- package/dist/citations/index.js +6 -0
- package/dist/citations/index.js.map +1 -0
- package/dist/collaboration/contacts/AddContactsParts.d.ts +46 -0
- package/dist/collaboration/contacts/index.d.ts +1 -0
- package/dist/collaboration/direct-messages/DirectMessages.d.ts +33 -0
- package/dist/collaboration/direct-messages/DmParts.d.ts +139 -0
- package/dist/collaboration/direct-messages/index.d.ts +2 -0
- package/dist/collaboration/index.cjs +141 -0
- package/dist/collaboration/index.cjs.map +1 -0
- package/dist/collaboration/index.d.ts +5 -0
- package/dist/collaboration/index.js +8 -0
- package/dist/collaboration/index.js.map +1 -0
- package/dist/collaboration/mail/MailFolderTree.d.ts +34 -0
- package/dist/collaboration/mail/index.d.ts +2 -0
- package/dist/collaboration/mail/mailFolders.d.ts +25 -0
- package/dist/collaboration/members/WorkspaceMembers.d.ts +74 -0
- package/dist/collaboration/members/index.d.ts +1 -0
- package/dist/collaboration/sharing/ShareControl.d.ts +38 -0
- package/dist/collaboration/sharing/index.d.ts +1 -0
- package/dist/components/Accordion.d.ts +12 -0
- package/dist/components/ActionLink.d.ts +18 -0
- package/dist/components/AskBar.d.ts +48 -0
- package/dist/components/AvatarBlock.d.ts +9 -0
- package/dist/components/Banner.d.ts +12 -0
- package/dist/components/BlockImage.d.ts +18 -0
- package/dist/components/CTABanner.d.ts +17 -0
- package/dist/components/Callout.d.ts +9 -0
- package/dist/components/Chart.d.ts +27 -0
- package/dist/components/CollectionDetail.d.ts +23 -0
- package/dist/components/Columns.d.ts +11 -0
- package/dist/components/ContactForm.d.ts +42 -0
- package/dist/components/Container.d.ts +11 -0
- package/dist/components/DataTable.d.ts +47 -0
- package/dist/components/DataTableBlock.d.ts +26 -0
- package/dist/components/EmptyState.d.ts +11 -0
- package/dist/components/EntityChip.d.ts +24 -0
- package/dist/components/EntityIdentityBar.d.ts +90 -0
- package/dist/components/EntityTooltip.d.ts +43 -0
- package/dist/components/FAQ.d.ts +14 -0
- package/dist/components/FeatureGrid.d.ts +18 -0
- package/dist/components/Footer.d.ts +25 -0
- package/dist/components/Gallery.d.ts +15 -0
- package/dist/components/Hero.d.ts +35 -0
- package/dist/components/ListBlock.d.ts +10 -0
- package/dist/components/LogoCloud.d.ts +12 -0
- package/dist/components/MediaText.d.ts +15 -0
- package/dist/components/MemberAvatarStack.d.ts +36 -0
- package/dist/components/MetricCard.d.ts +28 -0
- package/dist/components/Navbar.d.ts +39 -0
- package/dist/components/PageHeader.d.ts +15 -0
- package/dist/components/PricingTable.d.ts +19 -0
- package/dist/components/RichTextBlock.d.ts +10 -0
- package/dist/components/SectionHeading.d.ts +11 -0
- package/dist/components/Spacer.d.ts +7 -0
- package/dist/components/StatGroup.d.ts +12 -0
- package/dist/components/Steps.d.ts +12 -0
- package/dist/components/Tabs.d.ts +15 -0
- package/dist/components/TeamGrid.d.ts +18 -0
- package/dist/components/Testimonial.d.ts +9 -0
- package/dist/components/TestimonialGrid.d.ts +13 -0
- package/dist/components/ToneBadge.d.ts +18 -0
- package/dist/components/Toolbar.d.ts +11 -0
- package/dist/components/UsageMeter.d.ts +21 -0
- package/dist/components/VideoEmbed.d.ts +16 -0
- package/dist/components/assetImage.d.ts +16 -0
- package/dist/components/assetResolver.d.ts +57 -0
- package/dist/components/blockLink.d.ts +26 -0
- package/dist/components/tones.d.ts +14 -0
- package/dist/connect/index.cjs +65 -0
- package/dist/connect/index.cjs.map +1 -0
- package/dist/connect/index.d.ts +8 -0
- package/dist/connect/index.js +28 -0
- package/dist/connect/index.js.map +1 -0
- package/dist/connection/ArbiAppProvider.d.ts +16 -0
- package/dist/connection/ConnectionProvider.d.ts +50 -0
- package/dist/connection/ai.d.ts +99 -0
- package/dist/connection/types.d.ts +54 -0
- package/dist/connection/useImageGen.d.ts +22 -0
- package/dist/facts/FactComposer.d.ts +75 -0
- package/dist/facts/FactDateInput.d.ts +34 -0
- package/dist/facts/FactLabelsCell.d.ts +35 -0
- package/dist/facts/FactPassages.d.ts +52 -0
- package/dist/facts/FactRowActions.d.ts +18 -0
- package/dist/facts/FactSearchParts.d.ts +80 -0
- package/dist/facts/FactSourceGroup.d.ts +26 -0
- package/dist/facts/FactTimelineViews.d.ts +37 -0
- package/dist/facts/FactsBulkBar.d.ts +53 -0
- package/dist/facts/FactsEmptyState.d.ts +38 -0
- package/dist/facts/FactsFieldsButton.d.ts +21 -0
- package/dist/facts/FactsFilterInput.d.ts +46 -0
- package/dist/facts/FactsTable.d.ts +28 -0
- package/dist/facts/FactsToolbar.d.ts +53 -0
- package/dist/facts/FactsViewToggle.d.ts +36 -0
- package/dist/facts/fact-date.d.ts +22 -0
- package/dist/facts/fact-text.d.ts +14 -0
- package/dist/facts/factColumns.d.ts +88 -0
- package/dist/facts/index.cjs +2372 -0
- package/dist/facts/index.cjs.map +1 -0
- package/dist/facts/index.d.ts +34 -0
- package/dist/facts/index.js +2316 -0
- package/dist/facts/index.js.map +1 -0
- package/dist/facts/timezone.d.ts +4 -0
- package/dist/files/AiReviewDialog.d.ts +77 -0
- package/dist/files/DocStatusIcon.d.ts +12 -0
- package/dist/files/DocumentGrid.d.ts +27 -0
- package/dist/files/Explorer.d.ts +10 -0
- package/dist/files/ExplorerSurface.d.ts +34 -0
- package/dist/files/ExplorerTile.d.ts +142 -0
- package/dist/files/ExportParts.d.ts +114 -0
- package/dist/files/FieldParts.d.ts +64 -0
- package/dist/files/FilesPage.d.ts +20 -0
- package/dist/files/FilesToolbar.d.ts +59 -0
- package/dist/files/FolderPicker.d.ts +82 -0
- package/dist/files/GridView.d.ts +59 -0
- package/dist/files/HtmlViewerParts.d.ts +183 -0
- package/dist/files/MoveToFolderDialog.d.ts +32 -0
- package/dist/files/RedlineParts.d.ts +72 -0
- package/dist/files/SelectionBar.d.ts +65 -0
- package/dist/files/StatusPill.d.ts +23 -0
- package/dist/files/TagPassagePanel.d.ts +60 -0
- package/dist/files/UploadDropzone.d.ts +33 -0
- package/dist/files/UploadFooter.d.ts +59 -0
- package/dist/files/UploadParts.d.ts +78 -0
- package/dist/files/UploadSources.d.ts +77 -0
- package/dist/files/VersionTimeline.d.ts +60 -0
- package/dist/files/ViewToggle.d.ts +49 -0
- package/dist/files/ViewerChrome.d.ts +155 -0
- package/dist/files/ViewerLayout.d.ts +32 -0
- package/dist/files/ViewerParts.d.ts +62 -0
- package/dist/files/bulk/BulkActionsBar.d.ts +76 -0
- package/dist/files/bulk/FolderFilterButton.d.ts +35 -0
- package/dist/files/bulk/index.d.ts +2 -0
- package/dist/files/cells/DocumentNameCell.d.ts +31 -0
- package/dist/files/cells/FolderCell.d.ts +25 -0
- package/dist/files/cells/HoverIconCell.d.ts +21 -0
- package/dist/files/cells/LabelMultiSelect.d.ts +50 -0
- package/dist/files/cells/RelatedDocsCell.d.ts +22 -0
- package/dist/files/cells/TagColumnParts.d.ts +29 -0
- package/dist/files/cells/index.d.ts +6 -0
- package/dist/files/documentGridLayout.d.ts +31 -0
- package/dist/files/grid-test-ids.d.ts +18 -0
- package/dist/files/import/CalendarImportRow.d.ts +26 -0
- package/dist/files/import/ImportParts.d.ts +114 -0
- package/dist/files/import/TaskSection.d.ts +51 -0
- package/dist/files/import/UrlInputDialogView.d.ts +63 -0
- package/dist/files/import/VendorLogo.d.ts +15 -0
- package/dist/files/import/index.d.ts +5 -0
- package/dist/files/index.cjs +7589 -0
- package/dist/files/index.cjs.map +1 -0
- package/dist/files/index.d.ts +34 -0
- package/dist/files/index.js +7374 -0
- package/dist/files/index.js.map +1 -0
- package/dist/files/page/FilesAddMenu.d.ts +30 -0
- package/dist/files/page/FilesPageParts.d.ts +24 -0
- package/dist/files/page/FilesPageTitle.d.ts +24 -0
- package/dist/files/page/index.d.ts +3 -0
- package/dist/files/tags/BulkTagEditor.d.ts +136 -0
- package/dist/files/tags/DocTagPopover.d.ts +113 -0
- package/dist/files/tags/TagManager.d.ts +54 -0
- package/dist/files/tags/index.d.ts +3 -0
- package/dist/files/views/FieldsEditorParts.d.ts +151 -0
- package/dist/files/views/FieldsManagerParts.d.ts +17 -0
- package/dist/files/views/TagFormParts.d.ts +109 -0
- package/dist/files/views/ViewSelectorMenu.d.ts +66 -0
- package/dist/files/views/fieldsEditorModel.d.ts +43 -0
- package/dist/files/views/index.d.ts +5 -0
- package/dist/home/ActionMenuDialog.d.ts +26 -0
- package/dist/home/AddFilesFirst.d.ts +22 -0
- package/dist/home/CardHeaderBar.d.ts +40 -0
- package/dist/home/CollapsibleSection.d.ts +43 -0
- package/dist/home/CreateTile.d.ts +17 -0
- package/dist/home/DashboardParts.d.ts +32 -0
- package/dist/home/FactsStrip.d.ts +41 -0
- package/dist/home/FoldSection.d.ts +19 -0
- package/dist/home/GettingStartedStrip.d.ts +49 -0
- package/dist/home/Greeting.d.ts +18 -0
- package/dist/home/HomeLayout.d.ts +28 -0
- package/dist/home/KeyValueRow.d.ts +43 -0
- package/dist/home/ProjectBandParts.d.ts +70 -0
- package/dist/home/QuickActionDialogHeader.d.ts +21 -0
- package/dist/home/RecentList.d.ts +48 -0
- package/dist/home/ScopePicker.d.ts +65 -0
- package/dist/home/StartTiles.d.ts +33 -0
- package/dist/home/index.cjs +854 -0
- package/dist/home/index.cjs.map +1 -0
- package/dist/home/index.d.ts +37 -0
- package/dist/home/index.js +763 -0
- package/dist/home/index.js.map +1 -0
- package/dist/home/sections.d.ts +33 -0
- package/dist/index.cjs +1932 -5547
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +71 -1716
- package/dist/index.js +142 -5316
- package/dist/index.js.map +1 -1
- package/dist/lib/balanced-columns.d.ts +8 -0
- package/dist/lib/format.d.ts +37 -0
- package/dist/lib/observe-resize.d.ts +6 -0
- package/dist/lib/password-strength.d.ts +24 -0
- package/dist/lib/sidebar-mode.d.ts +46 -0
- package/dist/lib/testid.d.ts +7 -0
- package/dist/lib/use-drawer.d.ts +11 -0
- package/dist/lib/useControllableState.d.ts +5 -0
- package/dist/lib/useDismissibleCard.d.ts +15 -0
- package/dist/lib/useListKeyNav.d.ts +42 -0
- package/dist/lib/useLongPaste.d.ts +15 -0
- package/dist/lib/useRestoreFocus.d.ts +11 -0
- package/dist/lib/useScopeSelection.d.ts +34 -0
- package/dist/nav/types.d.ts +19 -0
- package/dist/provider/BlocksProvider.d.ts +20 -0
- package/dist/provider/TooltipScope.d.ts +9 -0
- package/dist/record/index.cjs +2 -4
- package/dist/record/index.cjs.map +1 -1
- package/dist/record/index.d.ts +12 -16
- package/dist/record/index.js +2 -4
- package/dist/record/index.js.map +1 -1
- package/dist/retrieval/HighlightText.d.ts +21 -0
- package/dist/retrieval/SearchEmptyState.d.ts +39 -0
- package/dist/retrieval/SearchGroupHeader.d.ts +21 -0
- package/dist/retrieval/SearchHit.d.ts +36 -0
- package/dist/retrieval/SearchPage.d.ts +187 -0
- package/dist/retrieval/SearchPagination.d.ts +21 -0
- package/dist/retrieval/highlight.d.ts +21 -0
- package/dist/retrieval/index.cjs +160 -0
- package/dist/retrieval/index.cjs.map +1 -0
- package/dist/retrieval/index.d.ts +7 -0
- package/dist/retrieval/index.js +7 -0
- package/dist/retrieval/index.js.map +1 -0
- package/dist/settings/AccountDialogs.d.ts +89 -0
- package/dist/settings/AvatarPicker.d.ts +25 -0
- package/dist/settings/Billing.d.ts +113 -0
- package/dist/settings/ConfigSwitcherBar.d.ts +46 -0
- package/dist/settings/ConfirmDialog.d.ts +28 -0
- package/dist/settings/ConnectionCard.d.ts +58 -0
- package/dist/settings/ConversationSettingsParts.d.ts +53 -0
- package/dist/settings/DocumentPicker.d.ts +57 -0
- package/dist/settings/EmailWorkspaceDialogView.d.ts +60 -0
- package/dist/settings/ErrorDialog.d.ts +36 -0
- package/dist/settings/FloatingPanel.d.ts +32 -0
- package/dist/settings/JsonTree.d.ts +24 -0
- package/dist/settings/LogoutDialog.d.ts +51 -0
- package/dist/settings/ModalBreadcrumbHeader.d.ts +32 -0
- package/dist/settings/ModalScaffold.d.ts +60 -0
- package/dist/settings/MultiSelect.d.ts +111 -0
- package/dist/settings/NotificationCategoryList.d.ts +26 -0
- package/dist/settings/PanelFrame.d.ts +47 -0
- package/dist/settings/PasswordChangeDialog.d.ts +64 -0
- package/dist/settings/PlanBadge.d.ts +14 -0
- package/dist/settings/PlanCard.d.ts +97 -0
- package/dist/settings/PremiumModelsFrame.d.ts +17 -0
- package/dist/settings/ProfileCard.d.ts +67 -0
- package/dist/settings/Projects.d.ts +108 -0
- package/dist/settings/QuotaMeter.d.ts +31 -0
- package/dist/settings/ReferralCredit.d.ts +46 -0
- package/dist/settings/SegmentedControl.d.ts +20 -0
- package/dist/settings/ServerConnectionControls.d.ts +31 -0
- package/dist/settings/SettingsPanel.d.ts +61 -0
- package/dist/settings/SettingsSwitchRow.d.ts +21 -0
- package/dist/settings/SubscriptionParts.d.ts +215 -0
- package/dist/settings/SupportPanel.d.ts +32 -0
- package/dist/settings/SyncDialogParts.d.ts +155 -0
- package/dist/settings/ThreadPreviewDialog.d.ts +18 -0
- package/dist/settings/TipsEditorDialog.d.ts +94 -0
- package/dist/settings/TriStateFilterMenu.d.ts +66 -0
- package/dist/settings/Usage.d.ts +102 -0
- package/dist/settings/WelcomeDialog.d.ts +79 -0
- package/dist/settings/index.cjs +5131 -0
- package/dist/settings/index.cjs.map +1 -0
- package/dist/settings/index.d.ts +38 -0
- package/dist/settings/index.js +4922 -0
- package/dist/settings/index.js.map +1 -0
- package/dist/shell/ActionCluster.d.ts +28 -0
- package/dist/shell/AskField.d.ts +71 -0
- package/dist/shell/InfoBar.d.ts +20 -0
- package/dist/shell/MobileBars.d.ts +47 -0
- package/dist/shell/OfflinePill.d.ts +28 -0
- package/dist/shell/RemoteControlPill.d.ts +23 -0
- package/dist/shell/Shell.d.ts +123 -0
- package/dist/shell/Sidebar.d.ts +104 -0
- package/dist/shell/SidebarBadgeRow.d.ts +29 -0
- package/dist/shell/SidebarRowAction.d.ts +24 -0
- package/dist/shell/StatusRow.d.ts +20 -0
- package/dist/shell/TabHeader.d.ts +70 -0
- package/dist/shell/TipCard.d.ts +46 -0
- package/dist/shell/ToolButton.d.ts +12 -0
- package/dist/shell/Workspace.d.ts +90 -0
- package/dist/shell/index.cjs +187 -0
- package/dist/shell/index.cjs.map +1 -0
- package/dist/shell/index.d.ts +20 -0
- package/dist/shell/index.js +10 -0
- package/dist/shell/index.js.map +1 -0
- package/dist/shell/sidebar-context.d.ts +19 -0
- package/dist/shell/types.d.ts +48 -0
- package/dist/site/index.cjs +113 -90
- package/dist/site/index.d.ts +59 -4
- package/dist/site/index.js +8 -1
- package/dist/studio/PageRenderer.d.ts +35 -0
- package/dist/studio/Section.d.ts +24 -0
- package/dist/studio/StudioEditor.d.ts +32 -0
- package/dist/studio/aiFields.d.ts +17 -0
- package/dist/studio/blockKit.d.ts +36 -0
- package/dist/studio/blocksConfig.d.ts +42 -0
- package/dist/studio/imageFields.d.ts +14 -0
- package/dist/studio/index.cjs +3353 -0
- package/dist/studio/index.cjs.map +1 -0
- package/dist/studio/index.d.ts +32 -0
- package/dist/studio/index.js +3297 -0
- package/dist/studio/index.js.map +1 -0
- package/dist/studio/liveData.d.ts +4 -0
- package/dist/studio/liveWidgetRuntime.d.ts +41 -0
- package/dist/studio/persistence.d.ts +38 -0
- package/dist/studio/publish.d.ts +39 -0
- package/dist/studio/siteBlocks.d.ts +14 -0
- package/dist/studio/types.d.ts +46 -0
- package/dist/studio/websiteBlocks.d.ts +4 -0
- package/dist/studio/widgets.d.ts +20 -0
- package/dist/theme/ThemeEditor.d.ts +16 -0
- package/dist/theme/fontPairings.d.ts +48 -0
- package/dist/theme/store.d.ts +53 -0
- package/dist/theme/tokens.d.ts +105 -0
- package/dist/timeline/Timeline.d.ts +27 -0
- package/dist/timeline/TimelineCalendar.d.ts +54 -0
- package/dist/timeline/TimelineGantt.d.ts +71 -0
- package/dist/timeline/TimelineZoomControl.d.ts +17 -0
- package/dist/timeline/index.cjs +50 -0
- package/dist/timeline/index.cjs.map +1 -0
- package/dist/timeline/index.d.ts +13 -0
- package/dist/timeline/index.js +5 -0
- package/dist/timeline/index.js.map +1 -0
- package/dist/timeline/span.d.ts +29 -0
- package/dist/timeline/types.d.ts +30 -0
- package/dist/workspaces/WorkspaceBadges.d.ts +27 -0
- package/dist/workspaces/WorkspaceCard.d.ts +142 -0
- package/dist/workspaces/WorkspaceFormParts.d.ts +98 -0
- package/dist/workspaces/WorkspaceGroup.d.ts +31 -0
- package/dist/workspaces/WorkspaceSettingsParts.d.ts +70 -0
- package/dist/workspaces/index.cjs +690 -0
- package/dist/workspaces/index.cjs.map +1 -0
- package/dist/workspaces/index.d.ts +9 -0
- package/dist/workspaces/index.js +661 -0
- package/dist/workspaces/index.js.map +1 -0
- package/package.json +154 -9
- package/src/blocks.css +348 -0
- package/src/components/grid.css +60 -107
- package/src/source.css +20 -0
- package/src/studio/studio.css +3 -3
- package/src/tokens.css +226 -0
- package/dist/chunk-DBAUZD7A.cjs.map +0 -1
- package/dist/chunk-FZ2S6VAZ.js.map +0 -1
- package/dist/index-DduoEosi.d.cts +0 -846
- package/dist/index-DduoEosi.d.ts +0 -846
- package/dist/index.d.cts +0 -1717
- package/dist/record/index.d.cts +0 -96
- package/dist/site/index.d.cts +0 -4
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared shapes for the ARBI adapter — identical in demo and live mode so UI
|
|
3
|
+
* never needs to know which backend is serving it — plus the per-app config a
|
|
4
|
+
* host app supplies once to wire the connection + AI layer.
|
|
5
|
+
*/
|
|
6
|
+
export type ArbiMode = 'demo' | 'live';
|
|
7
|
+
export type ConnectionStatus = 'demo' | 'disconnected' | 'connecting' | 'authenticated' | 'error';
|
|
8
|
+
export interface ArbiUser {
|
|
9
|
+
name: string;
|
|
10
|
+
email: string;
|
|
11
|
+
/** The user's external_id (usr-…), when known (live sessions). */
|
|
12
|
+
externalId?: string;
|
|
13
|
+
/** Avatar image URL / data-URL from the backend profile, when set. */
|
|
14
|
+
picture?: string | null;
|
|
15
|
+
}
|
|
16
|
+
/** A retrieval-augmented answer step surfaced from the agent loop. */
|
|
17
|
+
export interface AssistantStep {
|
|
18
|
+
label: string;
|
|
19
|
+
detail?: string;
|
|
20
|
+
status: 'done' | 'running' | 'queued';
|
|
21
|
+
}
|
|
22
|
+
export interface AssistantCitation {
|
|
23
|
+
docId: string;
|
|
24
|
+
docName: string;
|
|
25
|
+
page?: number;
|
|
26
|
+
quote: string;
|
|
27
|
+
}
|
|
28
|
+
export interface AssistantMessage {
|
|
29
|
+
id: string;
|
|
30
|
+
role: 'user' | 'assistant';
|
|
31
|
+
content: string;
|
|
32
|
+
steps?: AssistantStep[];
|
|
33
|
+
citations?: AssistantCitation[];
|
|
34
|
+
streaming?: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Everything host-specific about the ARBI wiring, injected once at the app root.
|
|
38
|
+
* Framework-agnostic on purpose: the app reads its own env (Vite, Next, …) and
|
|
39
|
+
* passes the resolved values in, so the package never touches `import.meta.env`.
|
|
40
|
+
*/
|
|
41
|
+
export interface ArbiConnectionConfig {
|
|
42
|
+
/** Live backend URL. Empty string ⇒ run entirely in seeded demo mode. */
|
|
43
|
+
apiUrl: string;
|
|
44
|
+
/** Inert URL used to mount the SDK provider when there's no live backend. */
|
|
45
|
+
demoApiUrl?: string;
|
|
46
|
+
/** Preferred live workspace ext_id (else the first workspace is used). */
|
|
47
|
+
workspaceId?: string;
|
|
48
|
+
/** Default assistant *configuration* ext_id every agentic run is grounded on. */
|
|
49
|
+
assistantConfig?: string;
|
|
50
|
+
/** The seeded demo identity shown when running without a backend. */
|
|
51
|
+
demoUser: ArbiUser;
|
|
52
|
+
/** Workspace id used in demo mode (default "demo-workspace"). */
|
|
53
|
+
demoWorkspaceId?: string;
|
|
54
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AiTaskStatus } from './ai';
|
|
2
|
+
export interface UseImageGen {
|
|
3
|
+
/** ext_id of the most recently generated image document (null until one exists). */
|
|
4
|
+
docExtId: string | null;
|
|
5
|
+
/** Underlying task status: 'idle' | 'running' | 'done' | 'error'. */
|
|
6
|
+
status: AiTaskStatus;
|
|
7
|
+
/** Human-readable failure message, or null. */
|
|
8
|
+
error: string | null;
|
|
9
|
+
/** True while a generation is in flight. */
|
|
10
|
+
isGenerating: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Generate an image from a prompt, optionally editing / drawing on one or
|
|
13
|
+
* more reference images already in the workspace. Pass the reference images'
|
|
14
|
+
* document ext_ids in `referenceDocIds` (omit or `[]` for plain text→image).
|
|
15
|
+
* Resolves with the new image document's ext_id, or null when the prompt is
|
|
16
|
+
* empty or no image was produced.
|
|
17
|
+
*/
|
|
18
|
+
generate: (prompt: string, referenceDocIds?: string[]) => Promise<string | null>;
|
|
19
|
+
/** Clear the current result and error. */
|
|
20
|
+
reset: () => void;
|
|
21
|
+
}
|
|
22
|
+
export declare function useImageGen(): UseImageGen;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { ReactNode, Ref } from 'react';
|
|
2
|
+
export interface FactComposerLabels {
|
|
3
|
+
shared: string;
|
|
4
|
+
verified: string;
|
|
5
|
+
dates: string;
|
|
6
|
+
deleteFact: string;
|
|
7
|
+
cancel: string;
|
|
8
|
+
saveFact: string;
|
|
9
|
+
saving: string;
|
|
10
|
+
addFact: string;
|
|
11
|
+
adding: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const DEFAULT_FACT_COMPOSER_LABELS: FactComposerLabels;
|
|
14
|
+
export interface FactComposerTestIds {
|
|
15
|
+
tags: string;
|
|
16
|
+
delete: string;
|
|
17
|
+
save: string;
|
|
18
|
+
error: string;
|
|
19
|
+
}
|
|
20
|
+
export interface FactSourcesRowLabels {
|
|
21
|
+
sources: string;
|
|
22
|
+
hintButton: string;
|
|
23
|
+
hint: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const DEFAULT_FACT_SOURCES_ROW_LABELS: FactSourcesRowLabels;
|
|
26
|
+
/** Composer field: the name stacked above its control ("Labels", "Dates"...). */
|
|
27
|
+
export declare function FactFieldRow({ label, children, className, }: {
|
|
28
|
+
label: string;
|
|
29
|
+
children: ReactNode;
|
|
30
|
+
className?: string;
|
|
31
|
+
}): import("react").JSX.Element;
|
|
32
|
+
export interface FactSourcesRowProps {
|
|
33
|
+
/** The show/hide-sources toggle. */
|
|
34
|
+
toggle: ReactNode;
|
|
35
|
+
/** The document picker. */
|
|
36
|
+
picker: ReactNode;
|
|
37
|
+
labels?: Partial<FactSourcesRowLabels>;
|
|
38
|
+
/** Test id of the hint button (default `facts-source-hint`). */
|
|
39
|
+
hintTestId?: string;
|
|
40
|
+
}
|
|
41
|
+
/** Sources label (with passage-collection guidance), the sources toggle and the picker. */
|
|
42
|
+
export declare function FactSourcesRow({ toggle, picker, labels, hintTestId }: FactSourcesRowProps): import("react").JSX.Element;
|
|
43
|
+
export interface FactComposerProps {
|
|
44
|
+
/** Whether the composer is open (it stays mounted so it animates both ways). */
|
|
45
|
+
isOpen: boolean;
|
|
46
|
+
/** Ref to the panel (used to keep it measured/focus-managed by the page). */
|
|
47
|
+
panelRef?: Ref<HTMLDivElement>;
|
|
48
|
+
/** The WYSIWYG fact editor, with its sources row. */
|
|
49
|
+
editor: ReactNode;
|
|
50
|
+
/** The labels picker row. */
|
|
51
|
+
labels: ReactNode;
|
|
52
|
+
/** The Shared switch (label is added here). */
|
|
53
|
+
sharedToggle: ReactNode;
|
|
54
|
+
/** The Verified switch (label is added here). */
|
|
55
|
+
verifiedToggle: ReactNode;
|
|
56
|
+
/** The date picker. */
|
|
57
|
+
dateInput: ReactNode;
|
|
58
|
+
/** Editing an existing fact (shows Delete, "Save fact"). */
|
|
59
|
+
isEditing: boolean;
|
|
60
|
+
canSave: boolean;
|
|
61
|
+
isSaving: boolean;
|
|
62
|
+
isDeleting: boolean;
|
|
63
|
+
onSave: () => void;
|
|
64
|
+
onCancel: () => void;
|
|
65
|
+
onDelete: () => void;
|
|
66
|
+
error?: string | null;
|
|
67
|
+
uiLabels?: Partial<FactComposerLabels>;
|
|
68
|
+
testIds?: Partial<FactComposerTestIds>;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* The inline fact composer: editor on top, then labels + Shared / Verified, then the date with
|
|
72
|
+
* Cancel / Save (and Delete when editing). Always mounted; the grid-rows transition animates it
|
|
73
|
+
* open and closed symmetrically (a conditional mount could only animate one way).
|
|
74
|
+
*/
|
|
75
|
+
export declare function FactComposer({ isOpen, panelRef, editor, labels, sharedToggle, verifiedToggle, dateInput, isEditing, canSave, isSaving, isDeleting, onSave, onCancel, onDelete, error, uiLabels: labelOverrides, testIds, }: FactComposerProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type FactDateFields } from './fact-date';
|
|
2
|
+
export interface FactDateInputLabels {
|
|
3
|
+
weekdays: string[];
|
|
4
|
+
months: string[];
|
|
5
|
+
previousMonth: string;
|
|
6
|
+
earlierYears: string;
|
|
7
|
+
nextMonth: string;
|
|
8
|
+
laterYears: string;
|
|
9
|
+
pickYear: string;
|
|
10
|
+
addDate: string;
|
|
11
|
+
startTime: string;
|
|
12
|
+
endTime: string;
|
|
13
|
+
setStartFirst: string;
|
|
14
|
+
timezone: string;
|
|
15
|
+
endDate: string;
|
|
16
|
+
clearDate: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const DEFAULT_FACT_DATE_INPUT_LABELS: FactDateInputLabels;
|
|
19
|
+
export interface FactDateInputTestIds {
|
|
20
|
+
caption: string;
|
|
21
|
+
day: (dateKey: string) => string;
|
|
22
|
+
year: (year: number) => string;
|
|
23
|
+
}
|
|
24
|
+
export interface FactDateInputProps {
|
|
25
|
+
value: FactDateFields;
|
|
26
|
+
onChange: (next: FactDateFields) => void;
|
|
27
|
+
/** Prefix for data-testids: keeps composer vs. edit-row instances distinct. */
|
|
28
|
+
idPrefix: string;
|
|
29
|
+
labels?: Partial<FactDateInputLabels>;
|
|
30
|
+
/** Overrides for the calendar's own ids (the field ids derive from `idPrefix`). */
|
|
31
|
+
testIds?: Partial<FactDateInputTestIds>;
|
|
32
|
+
}
|
|
33
|
+
/** A fact's date in a popover: month/year calendar plus optional times, timezone and end date. */
|
|
34
|
+
export declare function FactDateInput({ value, onChange, idPrefix, labels, testIds }: FactDateInputProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface FactLabelsCellLabels {
|
|
2
|
+
edit: string;
|
|
3
|
+
searchPlaceholder: string;
|
|
4
|
+
create: (name: string) => string;
|
|
5
|
+
empty: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const DEFAULT_FACT_LABELS_CELL_LABELS: FactLabelsCellLabels;
|
|
8
|
+
export interface FactLabelsCellTestIds {
|
|
9
|
+
option: (labelId: string) => string;
|
|
10
|
+
}
|
|
11
|
+
/** One selectable label: id, name and a colour (any CSS colour) that keys its chip. */
|
|
12
|
+
export interface FactLabelOption {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
color: string;
|
|
16
|
+
}
|
|
17
|
+
export interface FactLabelsCellProps {
|
|
18
|
+
/** Every label that can be applied. */
|
|
19
|
+
options: FactLabelOption[];
|
|
20
|
+
/** The fact's full label id list (ids not in `options` are preserved on change). */
|
|
21
|
+
selectedIds: string[];
|
|
22
|
+
/** Persist the fact's full label id list. */
|
|
23
|
+
onChange: (ids: string[]) => void;
|
|
24
|
+
/** Create a label and resolve with its id (undefined when creation failed). */
|
|
25
|
+
onCreate: (name: string) => Promise<string | undefined>;
|
|
26
|
+
/** The grid row height; clamps the chips to the rows that fully fit. */
|
|
27
|
+
rowHeight?: number;
|
|
28
|
+
labels?: Partial<FactLabelsCellLabels>;
|
|
29
|
+
testIds?: Partial<FactLabelsCellTestIds>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The Labels cell of the Facts table: applied labels as colour-keyed chips (an empty cell shows
|
|
33
|
+
* a pencil), and a popover to toggle labels or create one with Enter.
|
|
34
|
+
*/
|
|
35
|
+
export declare const FactLabelsCell: import("react").NamedExoticComponent<FactLabelsCellProps>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface FactPassagesLabels {
|
|
3
|
+
loading: string;
|
|
4
|
+
close: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const DEFAULT_FACT_PASSAGES_LABELS: FactPassagesLabels;
|
|
7
|
+
export interface FactSourcesPanelTestIds {
|
|
8
|
+
popover: string;
|
|
9
|
+
close: string;
|
|
10
|
+
list: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Flatten a passage's markdown to one readable line for a list preview: headings, bullets,
|
|
14
|
+
* emphasis, links and table pipes only add noise on a single truncated line.
|
|
15
|
+
*/
|
|
16
|
+
export declare function toPreviewLine(md: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Render a flattened preview line with real super/subscripts: `<sup>15</sup>` shows as a
|
|
19
|
+
* superscript 15, not literal tag text. Unpaired tag fragments are dropped.
|
|
20
|
+
*/
|
|
21
|
+
export declare function renderPreviewInline(line: string): ReactNode;
|
|
22
|
+
export interface FactPassageItemProps {
|
|
23
|
+
/** Zero-based position in the list (shown as `n.`). */
|
|
24
|
+
index: number;
|
|
25
|
+
page?: number | null;
|
|
26
|
+
/** The passage excerpt (markdown), or null/undefined while it loads. */
|
|
27
|
+
excerpt?: string | null;
|
|
28
|
+
/** This passage is the one open in the viewer. */
|
|
29
|
+
isViewing?: boolean;
|
|
30
|
+
onSelect: () => void;
|
|
31
|
+
testId?: string;
|
|
32
|
+
className?: string;
|
|
33
|
+
labels?: Partial<FactPassagesLabels>;
|
|
34
|
+
}
|
|
35
|
+
/** One cited passage: index badge, page pill and a single quoted line. */
|
|
36
|
+
export declare function FactPassageItem({ index, page, excerpt, isViewing, onSelect, testId, className, labels, }: FactPassageItemProps): import("react").JSX.Element;
|
|
37
|
+
export interface FactSourcesPanelProps {
|
|
38
|
+
/** Header caption, e.g. "Sources (2 documents)". */
|
|
39
|
+
title: string;
|
|
40
|
+
onClose: () => void;
|
|
41
|
+
/** The fact section the panel is portalled INTO and fenced WITHIN. */
|
|
42
|
+
container?: HTMLElement | null;
|
|
43
|
+
children: ReactNode;
|
|
44
|
+
labels?: Partial<FactPassagesLabels>;
|
|
45
|
+
testIds?: Partial<FactSourcesPanelTestIds>;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Popover panel shell for a fact's sources: sticky header with a close control and a scrolling
|
|
49
|
+
* list. Must sit inside a `Popover`. Stays open while the user works in the document viewer
|
|
50
|
+
* (clicks inside the viewer, dialogs or other popper layers do not dismiss it).
|
|
51
|
+
*/
|
|
52
|
+
export declare function FactSourcesPanel({ title, onClose, container, children, labels, testIds, }: FactSourcesPanelProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface FactRowActionsLabels {
|
|
2
|
+
actions: string;
|
|
3
|
+
edit: string;
|
|
4
|
+
delete: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const DEFAULT_FACT_ROW_ACTIONS_LABELS: FactRowActionsLabels;
|
|
7
|
+
export interface FactRowActionsTestIds {
|
|
8
|
+
trigger: string;
|
|
9
|
+
edit: string;
|
|
10
|
+
delete: string;
|
|
11
|
+
}
|
|
12
|
+
export interface FactRowActionsProps {
|
|
13
|
+
onEdit: () => void;
|
|
14
|
+
onDelete: () => void;
|
|
15
|
+
labels?: Partial<FactRowActionsLabels>;
|
|
16
|
+
testIds?: Partial<FactRowActionsTestIds>;
|
|
17
|
+
}
|
|
18
|
+
export declare function FactRowActions({ onEdit, onDelete, labels, testIds }: FactRowActionsProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface FactSearchBarLabels {
|
|
3
|
+
search: string;
|
|
4
|
+
placeholder: string;
|
|
5
|
+
clear: string;
|
|
6
|
+
submit: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const DEFAULT_FACT_SEARCH_BAR_LABELS: FactSearchBarLabels;
|
|
9
|
+
export interface FactSearchBarTestIds {
|
|
10
|
+
input: string;
|
|
11
|
+
clear: string;
|
|
12
|
+
submit: string;
|
|
13
|
+
}
|
|
14
|
+
export interface FactSearchResultLabels {
|
|
15
|
+
core: string;
|
|
16
|
+
verified: string;
|
|
17
|
+
open: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const DEFAULT_FACT_SEARCH_RESULT_LABELS: FactSearchResultLabels;
|
|
20
|
+
export interface FactSearchResultTestIds {
|
|
21
|
+
hit: (id: string) => string;
|
|
22
|
+
labels: (id: string) => string;
|
|
23
|
+
verified: (id: string) => string;
|
|
24
|
+
}
|
|
25
|
+
export interface FactSearchBarProps {
|
|
26
|
+
query: string;
|
|
27
|
+
onQueryChange: (query: string) => void;
|
|
28
|
+
onSubmit: () => void;
|
|
29
|
+
onClear: () => void;
|
|
30
|
+
isSearching: boolean;
|
|
31
|
+
/** Wins over `labels.placeholder`. */
|
|
32
|
+
placeholder?: string;
|
|
33
|
+
labels?: Partial<FactSearchBarLabels>;
|
|
34
|
+
testIds?: Partial<FactSearchBarTestIds>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The facts Smart Search bar: the same bordered, auto-growing box as the Files Smart Search.
|
|
38
|
+
* Enter searches; Shift+Enter breaks a line.
|
|
39
|
+
*/
|
|
40
|
+
export declare function FactSearchBar({ query, onQueryChange, onSubmit, onClear, isSearching, placeholder, labels, testIds, }: FactSearchBarProps): import("react").JSX.Element;
|
|
41
|
+
/** Totals headline pinned between the search bar and the scrolling results. */
|
|
42
|
+
export declare function FactSearchTotals({ children, testId }: {
|
|
43
|
+
children: ReactNode;
|
|
44
|
+
testId?: string;
|
|
45
|
+
}): import("react").JSX.Element;
|
|
46
|
+
/** "Searching facts…" line. */
|
|
47
|
+
export declare function FactSearchPending({ children }: {
|
|
48
|
+
children: ReactNode;
|
|
49
|
+
}): import("react").JSX.Element;
|
|
50
|
+
/** No-matches message. */
|
|
51
|
+
export declare function FactSearchNoMatches({ children, testId, }: {
|
|
52
|
+
children: ReactNode;
|
|
53
|
+
testId?: string;
|
|
54
|
+
}): import("react").JSX.Element;
|
|
55
|
+
export interface FactSearchResultLabel {
|
|
56
|
+
id: string;
|
|
57
|
+
name: string;
|
|
58
|
+
color: string;
|
|
59
|
+
}
|
|
60
|
+
export interface FactSearchResultProps {
|
|
61
|
+
/** Fact id: keys the test ids. */
|
|
62
|
+
id: string;
|
|
63
|
+
/** 1-based rank, shown outside the card (it numbers the results, it is not part of the hit). */
|
|
64
|
+
rank: number;
|
|
65
|
+
text: string;
|
|
66
|
+
terms: string[];
|
|
67
|
+
renderSnippet: (content: string, terms: string[]) => ReactNode;
|
|
68
|
+
labels: FactSearchResultLabel[];
|
|
69
|
+
isPinned?: boolean;
|
|
70
|
+
isVerified?: boolean;
|
|
71
|
+
/** The fact open in the composer. */
|
|
72
|
+
isSelected?: boolean;
|
|
73
|
+
onOpen: () => void;
|
|
74
|
+
uiLabels?: Partial<FactSearchResultLabels>;
|
|
75
|
+
testIds?: Partial<FactSearchResultTestIds>;
|
|
76
|
+
/** Destination of the fact; the card stays a click target (see SearchHit `href`). */
|
|
77
|
+
href?: string;
|
|
78
|
+
}
|
|
79
|
+
/** One facts search result: rank, highlighted text, labels (and Core) and the Verified mark. */
|
|
80
|
+
export declare function FactSearchResult({ id, rank, text, terms, renderSnippet, labels, isPinned, isVerified, isSelected, onOpen, uiLabels: labelOverrides, testIds, href, }: FactSearchResultProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface FactSourceGroupLabels {
|
|
3
|
+
remove: string;
|
|
4
|
+
wholeDocument: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const DEFAULT_FACT_SOURCE_GROUP_LABELS: FactSourceGroupLabels;
|
|
7
|
+
export interface FactSourceGroupTestIds {
|
|
8
|
+
root: (docId: string) => string;
|
|
9
|
+
remove: (docId: string) => string;
|
|
10
|
+
}
|
|
11
|
+
export interface FactSourceGroupProps {
|
|
12
|
+
docId: string;
|
|
13
|
+
/** The document label/pill (the app supplies its entity pill). */
|
|
14
|
+
document: ReactNode;
|
|
15
|
+
/** True when this document is the one on display in the viewer. */
|
|
16
|
+
isViewing?: boolean;
|
|
17
|
+
onRemove: () => void;
|
|
18
|
+
/** The FactPassageItem children; when absent a "whole document" hint shows. */
|
|
19
|
+
children?: ReactNode;
|
|
20
|
+
/** Whether any passages are cited from this document. */
|
|
21
|
+
hasPassages: boolean;
|
|
22
|
+
labels?: Partial<FactSourceGroupLabels>;
|
|
23
|
+
testIds?: Partial<FactSourceGroupTestIds>;
|
|
24
|
+
}
|
|
25
|
+
/** One cited document in the sources list: its label, a remove control and its passages. */
|
|
26
|
+
export declare function FactSourceGroup({ docId, document, isViewing, onRemove, children, hasPassages, labels, testIds, }: FactSourceGroupProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type TimelineGanttProps } from '../timeline/TimelineGantt';
|
|
2
|
+
export interface FactTimelineLabels {
|
|
3
|
+
ganttEmpty: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const DEFAULT_FACT_TIMELINE_LABELS: FactTimelineLabels;
|
|
6
|
+
/** The fields of a fact the calendar reads. */
|
|
7
|
+
export interface FactCalendarRow {
|
|
8
|
+
external_id: string;
|
|
9
|
+
text: string;
|
|
10
|
+
date_start?: string | null;
|
|
11
|
+
date_end?: string | null;
|
|
12
|
+
}
|
|
13
|
+
export interface FactsCalendarProps<T extends FactCalendarRow> {
|
|
14
|
+
facts: T[];
|
|
15
|
+
onSelect?: (fact: T) => void;
|
|
16
|
+
/** The fact currently open for editing: its bars are highlighted. */
|
|
17
|
+
selectedId?: string | null;
|
|
18
|
+
/** Host element the n / N fact navigator portals into (see TimelineCalendar). */
|
|
19
|
+
navigatorContainer?: HTMLElement | null;
|
|
20
|
+
/** Denominator for the navigator: the page's filtered fact count. */
|
|
21
|
+
navigatorTotal?: number;
|
|
22
|
+
/** Calendar test id; entries are `${testId}-entry-${factId}` (default `facts-calendar`). */
|
|
23
|
+
testId?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Facts on the shared calendar. Maps a fact to a labelled span and hands the fact back on select,
|
|
27
|
+
* so packing, spanning bars and continuous scroll stay one implementation shared with every
|
|
28
|
+
* other timeline surface. Undated facts have nowhere to sit and are skipped.
|
|
29
|
+
*/
|
|
30
|
+
export declare function FactsCalendar<T extends FactCalendarRow>({ facts, onSelect, selectedId, navigatorContainer, navigatorTotal, testId, }: FactsCalendarProps<T>): import("react").JSX.Element;
|
|
31
|
+
/**
|
|
32
|
+
* The Facts timeline. `.facts-gantt` scopes CSS that truncates row labels to one line and hides
|
|
33
|
+
* the built-in detail side panel: a fact's contents are seen and edited in the composer instead.
|
|
34
|
+
*/
|
|
35
|
+
export declare function FactsGanttPane({ testId, emptyMessage, labels, ...props }: TimelineGanttProps & {
|
|
36
|
+
labels?: Partial<FactTimelineLabels>;
|
|
37
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface FactsBulkBarLabels {
|
|
3
|
+
unpin: string;
|
|
4
|
+
pin: string;
|
|
5
|
+
label: string;
|
|
6
|
+
shared: string;
|
|
7
|
+
more: string;
|
|
8
|
+
export: string;
|
|
9
|
+
delete: string;
|
|
10
|
+
budgetHint: string;
|
|
11
|
+
/** The `~{tokens}/{cap} tokens` line (numbers arrive formatted). */
|
|
12
|
+
budget: (tokens: string, cap: string) => string;
|
|
13
|
+
unpinTooltip: (pluralNoun: string) => string;
|
|
14
|
+
pinTooltip: (pluralNoun: string) => string;
|
|
15
|
+
labelTooltip: (pluralNoun: string) => string;
|
|
16
|
+
}
|
|
17
|
+
export declare const DEFAULT_FACTS_BULK_BAR_LABELS: FactsBulkBarLabels;
|
|
18
|
+
export interface FactsBulkBarTestIds {
|
|
19
|
+
budget: string;
|
|
20
|
+
pin: string;
|
|
21
|
+
label: string;
|
|
22
|
+
more: string;
|
|
23
|
+
export: string;
|
|
24
|
+
delete: string;
|
|
25
|
+
}
|
|
26
|
+
export interface FactsBulkBarProps {
|
|
27
|
+
/** Number of selected facts. */
|
|
28
|
+
count: number;
|
|
29
|
+
onClear: () => void;
|
|
30
|
+
/** True when every selected fact is already pinned (the action then unpins). */
|
|
31
|
+
allSelectedPinned: boolean;
|
|
32
|
+
onTogglePin: () => void;
|
|
33
|
+
onLabel: () => void;
|
|
34
|
+
/** The aggregate Shared switch for the selection (the app binds its toggle). */
|
|
35
|
+
sharedToggle: ReactNode;
|
|
36
|
+
onExport: () => void;
|
|
37
|
+
onDelete: () => void;
|
|
38
|
+
/** Pinned-core token budget, shown at the left (reflects the whole workspace, not the selection). */
|
|
39
|
+
budget?: {
|
|
40
|
+
tokens: number;
|
|
41
|
+
cap: number;
|
|
42
|
+
isOver: boolean;
|
|
43
|
+
} | null;
|
|
44
|
+
/** Plural noun for tooltips (lower case). */
|
|
45
|
+
pluralNoun?: string;
|
|
46
|
+
labels?: Partial<FactsBulkBarLabels>;
|
|
47
|
+
testIds?: Partial<FactsBulkBarTestIds>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Sticky bulk-action bar for the facts table: Pin, Label, Shared and a More menu (Export,
|
|
51
|
+
* Delete). Actions are disabled until something is selected.
|
|
52
|
+
*/
|
|
53
|
+
export declare function FactsBulkBar({ count, onClear, allSelectedPinned, onTogglePin, onLabel, sharedToggle, onExport, onDelete, budget, pluralNoun, labels, testIds, }: FactsBulkBarProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface FactsEmptyStateLabels {
|
|
2
|
+
title: string;
|
|
3
|
+
intro: string;
|
|
4
|
+
tryAdding: string;
|
|
5
|
+
/** Three kinds of durable knowledge a fact captures. */
|
|
6
|
+
kinds: {
|
|
7
|
+
label: string;
|
|
8
|
+
desc: string;
|
|
9
|
+
}[];
|
|
10
|
+
/** Starter fact texts offered as one-tap examples. */
|
|
11
|
+
examples: string[];
|
|
12
|
+
loading: string;
|
|
13
|
+
loadError: string;
|
|
14
|
+
retry: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const DEFAULT_FACTS_EMPTY_STATE_LABELS: FactsEmptyStateLabels;
|
|
17
|
+
export interface FactsEmptyStateTestIds {
|
|
18
|
+
root: string;
|
|
19
|
+
example: string;
|
|
20
|
+
}
|
|
21
|
+
export interface FactsEmptyStateProps {
|
|
22
|
+
/** Open the composer prefilled with an example. */
|
|
23
|
+
onUseExample: (text: string) => void;
|
|
24
|
+
labels?: Partial<FactsEmptyStateLabels>;
|
|
25
|
+
testIds?: Partial<FactsEmptyStateTestIds>;
|
|
26
|
+
}
|
|
27
|
+
/** First-run state: what facts are, the kinds they capture, and one-tap examples. */
|
|
28
|
+
export declare function FactsEmptyState({ onUseExample, labels, testIds }: FactsEmptyStateProps): import("react").JSX.Element;
|
|
29
|
+
/** Centered "Loading facts…" line. */
|
|
30
|
+
export declare function FactsLoading({ label, }: {
|
|
31
|
+
label?: string;
|
|
32
|
+
}): import("react").JSX.Element;
|
|
33
|
+
/** Load-failure message with a retry action. */
|
|
34
|
+
export declare function FactsLoadError({ onRetry, message, retryLabel, }: {
|
|
35
|
+
onRetry: () => void;
|
|
36
|
+
message?: string;
|
|
37
|
+
retryLabel?: string;
|
|
38
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { GridApi } from 'ag-grid-community';
|
|
2
|
+
export interface FactsFieldsButtonLabels {
|
|
3
|
+
fields: string;
|
|
4
|
+
defaultView: string;
|
|
5
|
+
columns: string;
|
|
6
|
+
/** Names for icon-only columns, keyed by colId. */
|
|
7
|
+
columnNames: Record<string, string>;
|
|
8
|
+
}
|
|
9
|
+
export declare const DEFAULT_FACTS_FIELDS_BUTTON_LABELS: FactsFieldsButtonLabels;
|
|
10
|
+
export interface FactsFieldsButtonTestIds {
|
|
11
|
+
trigger: string;
|
|
12
|
+
defaultView: string;
|
|
13
|
+
toggle: (colId: string) => string;
|
|
14
|
+
}
|
|
15
|
+
export interface FactsFieldsButtonProps<TData = unknown> {
|
|
16
|
+
/** The facts grid api (read lazily: the grid may not exist yet). */
|
|
17
|
+
getGridApi: () => GridApi<TData> | null | undefined;
|
|
18
|
+
labels?: Partial<FactsFieldsButtonLabels>;
|
|
19
|
+
testIds?: Partial<FactsFieldsButtonTestIds>;
|
|
20
|
+
}
|
|
21
|
+
export declare function FactsFieldsButton<TData = unknown>({ getGridApi, labels, testIds, }: FactsFieldsButtonProps<TData>): import("react").JSX.Element;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FactsFilterInput
|
|
3
|
+
*
|
|
4
|
+
* The Facts table's "Filter…" box, styled to match the Documents table's filter
|
|
5
|
+
* bar: a muted input with a leading funnel icon and an appended settings button
|
|
6
|
+
* whose popover picks WHICH fields the text matches against (the fact text, its
|
|
7
|
+
* labels, or both). The page owns the query + field state; this is a view.
|
|
8
|
+
*/
|
|
9
|
+
import type { ReactNode } from 'react';
|
|
10
|
+
export type FactsSearchField = 'text' | 'labels';
|
|
11
|
+
export declare const FACTS_SEARCH_FIELD_OPTIONS: {
|
|
12
|
+
value: FactsSearchField;
|
|
13
|
+
label: string;
|
|
14
|
+
}[];
|
|
15
|
+
export interface FactsFilterInputLabels {
|
|
16
|
+
placeholder: string;
|
|
17
|
+
clear: string;
|
|
18
|
+
chooseFields: string;
|
|
19
|
+
fieldsHeading: string;
|
|
20
|
+
/** Display name per searchable field. */
|
|
21
|
+
fieldNames: Record<FactsSearchField, string>;
|
|
22
|
+
}
|
|
23
|
+
export declare const DEFAULT_FACTS_FILTER_INPUT_LABELS: FactsFilterInputLabels;
|
|
24
|
+
export interface FactsFilterInputTestIds {
|
|
25
|
+
root: string;
|
|
26
|
+
quick: string;
|
|
27
|
+
input: string;
|
|
28
|
+
fieldsButton: string;
|
|
29
|
+
field: (field: FactsSearchField) => string;
|
|
30
|
+
}
|
|
31
|
+
export interface FactsFilterInputProps {
|
|
32
|
+
value: string;
|
|
33
|
+
onChange: (q: string) => void;
|
|
34
|
+
fields: FactsSearchField[];
|
|
35
|
+
onFieldsChange: (fields: FactsSearchField[]) => void;
|
|
36
|
+
/**
|
|
37
|
+
* The quick-filter dropdown trigger, embedded inside the input on the left
|
|
38
|
+
* (mirroring the Files search box). When absent, a static funnel icon shows.
|
|
39
|
+
*/
|
|
40
|
+
filter?: ReactNode;
|
|
41
|
+
/** Width classes for the box (default `w-44`). */
|
|
42
|
+
className?: string;
|
|
43
|
+
labels?: Partial<FactsFilterInputLabels>;
|
|
44
|
+
testIds?: Partial<FactsFilterInputTestIds>;
|
|
45
|
+
}
|
|
46
|
+
export declare function FactsFilterInput({ value, onChange, fields, onFieldsChange, filter, className, labels, testIds, }: FactsFilterInputProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type GridViewProps } from '../files/GridView';
|
|
2
|
+
import { type FactColumnLabels, type FactRowView } from './factColumns';
|
|
3
|
+
export interface FactsTableProps<T extends FactRowView> {
|
|
4
|
+
facts: T[];
|
|
5
|
+
onTogglePin: (fact: T) => void;
|
|
6
|
+
onToggleConfirmed: (fact: T) => void;
|
|
7
|
+
onToggleShared: (fact: T) => void;
|
|
8
|
+
/** The row menu appears when both `onEdit` and `onDelete` are provided. */
|
|
9
|
+
onEdit?: (fact: T) => void;
|
|
10
|
+
onDelete?: (fact: T) => void;
|
|
11
|
+
/** Row click (opens the fact). */
|
|
12
|
+
onOpen?: (fact: T) => void;
|
|
13
|
+
/** Display name of the fact's creator (sorting, filtering and the initials chip). */
|
|
14
|
+
getCreatorName?: (fact: T) => string;
|
|
15
|
+
/** Friendly display of an ISO timestamp. Defaults to the locale date. */
|
|
16
|
+
formatDate?: (iso: string) => string;
|
|
17
|
+
columnLabels?: Partial<FactColumnLabels>;
|
|
18
|
+
isLoading?: boolean;
|
|
19
|
+
/** Saved column state key (AG Grid persists by it). */
|
|
20
|
+
gridId?: string;
|
|
21
|
+
height?: GridViewProps<T>['height'];
|
|
22
|
+
rowHeight?: number;
|
|
23
|
+
/** Escape hatch for any other `GridView` prop. */
|
|
24
|
+
gridProps?: Partial<Omit<GridViewProps<T>, 'items' | 'columnDefs' | 'getItemId'>>;
|
|
25
|
+
testId?: string;
|
|
26
|
+
}
|
|
27
|
+
/** The default facts table: columns, cells and the grid in one component. */
|
|
28
|
+
export declare function FactsTable<T extends FactRowView>({ facts, onTogglePin, onToggleConfirmed, onToggleShared, onEdit, onDelete, onOpen, getCreatorName, formatDate, columnLabels, isLoading, gridId, height, rowHeight, gridProps, testId, }: FactsTableProps<T>): import("react").JSX.Element;
|