@arbidocs/blocks 0.3.185 → 0.4.1
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 +122 -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-2K33YGM6.cjs +1846 -0
- package/dist/chunk-2K33YGM6.cjs.map +1 -0
- package/dist/chunk-2ORA62OF.js +266 -0
- package/dist/chunk-2ORA62OF.js.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-6HIPFEID.cjs +574 -0
- package/dist/chunk-6HIPFEID.cjs.map +1 -0
- package/dist/{chunk-FZ2S6VAZ.js → chunk-6P6AEQJB.js} +413 -1132
- package/dist/chunk-6P6AEQJB.js.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-7PEELPMA.js +1799 -0
- package/dist/chunk-7PEELPMA.js.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-AE5FHFZ5.cjs +272 -0
- package/dist/chunk-AE5FHFZ5.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-DBAUZD7A.cjs → chunk-DREI7EQ2.cjs} +437 -1152
- package/dist/chunk-DREI7EQ2.cjs.map +1 -0
- package/dist/chunk-ELR74ME6.cjs +68 -0
- package/dist/chunk-ELR74ME6.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-J2BGSWXM.cjs +990 -0
- package/dist/chunk-J2BGSWXM.cjs.map +1 -0
- package/dist/chunk-K4BGOPGG.js +79 -0
- package/dist/chunk-K4BGOPGG.js.map +1 -0
- package/dist/chunk-LGBAZD37.js +341 -0
- package/dist/chunk-LGBAZD37.js.map +1 -0
- package/dist/chunk-LRUCMZK6.cjs +680 -0
- package/dist/chunk-LRUCMZK6.cjs.map +1 -0
- package/dist/chunk-MHVNT4J3.cjs +15 -0
- package/dist/chunk-MHVNT4J3.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-OBLSURHV.js +973 -0
- package/dist/chunk-OBLSURHV.js.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-QXEJXIP4.js +675 -0
- package/dist/chunk-QXEJXIP4.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-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-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 +35 -0
- package/dist/components/CollectionDetail.d.ts +23 -0
- package/dist/components/Columns.d.ts +11 -0
- package/dist/components/ContactForm.d.ts +54 -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 +30 -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/editorial/ArticleList.d.ts +32 -0
- package/dist/components/editorial/Bands.d.ts +29 -0
- package/dist/components/editorial/EditorialHeading.d.ts +17 -0
- package/dist/components/editorial/EditorialHero.d.ts +46 -0
- package/dist/components/editorial/EditorialSection.d.ts +47 -0
- package/dist/components/editorial/Eyebrow.d.ts +14 -0
- package/dist/components/editorial/PanelGrid.d.ts +45 -0
- package/dist/components/editorial/ProfileCard.d.ts +27 -0
- package/dist/components/editorial/PullQuote.d.ts +17 -0
- package/dist/components/editorial/Reveal.d.ts +15 -0
- package/dist/components/editorial/index.d.ts +12 -0
- package/dist/components/editorial/lists.d.ts +42 -0
- package/dist/components/editorial/tone.d.ts +33 -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 +38 -0
- package/dist/facts/fact-date.d.ts +22 -0
- package/dist/facts/fact-row.d.ts +32 -0
- package/dist/facts/fact-text.d.ts +14 -0
- package/dist/facts/factColumns.d.ts +88 -0
- package/dist/facts/index.cjs +2401 -0
- package/dist/facts/index.cjs.map +1 -0
- package/dist/facts/index.d.ts +35 -0
- package/dist/facts/index.js +2343 -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 +53 -0
- package/dist/files/ViewerChrome.d.ts +152 -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 +7555 -0
- package/dist/files/index.cjs.map +1 -0
- package/dist/files/index.d.ts +34 -0
- package/dist/files/index.js +7340 -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 +1992 -5547
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +72 -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 +33 -0
- package/dist/shell/AskField.d.ts +76 -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 +173 -90
- package/dist/site/index.d.ts +60 -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 +365 -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,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;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type FactsFilterInputLabels, type FactsFilterInputTestIds, type FactsSearchField } from './FactsFilterInput';
|
|
3
|
+
import { type FactsViewMode, type FactsViewToggleLabels } from './FactsViewToggle';
|
|
4
|
+
export interface FactsToolbarLabels {
|
|
5
|
+
tags: string;
|
|
6
|
+
newFact: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const DEFAULT_FACTS_TOOLBAR_LABELS: FactsToolbarLabels;
|
|
9
|
+
export interface FactsToolbarTestIds {
|
|
10
|
+
tab: string;
|
|
11
|
+
tagsButton: string;
|
|
12
|
+
newFact: string;
|
|
13
|
+
filterBar: string;
|
|
14
|
+
filterBarNav: string;
|
|
15
|
+
}
|
|
16
|
+
export interface FactsToolbarProps {
|
|
17
|
+
/** Facts matching the current filters (shown beside the glyph). */
|
|
18
|
+
count: number;
|
|
19
|
+
/** Solid-fill the count while any filter is narrowing the list. */
|
|
20
|
+
hasActiveFilters: boolean;
|
|
21
|
+
filterText: string;
|
|
22
|
+
onFilterTextChange: (text: string) => void;
|
|
23
|
+
searchFields: FactsSearchField[];
|
|
24
|
+
onSearchFieldsChange: (fields: FactsSearchField[]) => void;
|
|
25
|
+
/** The quick-filter dropdown, embedded inside the filter box. */
|
|
26
|
+
quickFilter?: ReactNode;
|
|
27
|
+
/** Open the Labels panel. Omit it to hide the Tags button. */
|
|
28
|
+
onOpenTags?: () => void;
|
|
29
|
+
viewMode: FactsViewMode;
|
|
30
|
+
onViewModeChange: (mode: FactsViewMode) => void;
|
|
31
|
+
onNewFact: () => void;
|
|
32
|
+
/** Second row: left slot for the row navigator (portal host for calendar/timeline). */
|
|
33
|
+
navSlotRef?: (el: HTMLElement | null) => void;
|
|
34
|
+
/** Table navigator rendered directly in the left slot. */
|
|
35
|
+
navigator?: ReactNode;
|
|
36
|
+
/** Second row, right side: per-view controls (Fields, density, zoom). */
|
|
37
|
+
tools?: ReactNode;
|
|
38
|
+
/** Smart Search has no toolbar row. */
|
|
39
|
+
showToolbarRow?: boolean;
|
|
40
|
+
labels?: Partial<FactsToolbarLabels>;
|
|
41
|
+
testIds?: Partial<FactsToolbarTestIds>;
|
|
42
|
+
/** Overrides for the embedded filter box. */
|
|
43
|
+
filterLabels?: Partial<FactsFilterInputLabels>;
|
|
44
|
+
filterTestIds?: Partial<FactsFilterInputTestIds>;
|
|
45
|
+
/** Overrides for the embedded view toggle. */
|
|
46
|
+
viewToggleLabels?: Partial<FactsViewToggleLabels>;
|
|
47
|
+
viewToggleTestIdPrefix?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Facts page header: count tab with filter box and Tags button, the view toggle centred, New fact
|
|
51
|
+
* on the right (the page's one primary action), and a second row for per-view controls.
|
|
52
|
+
*/
|
|
53
|
+
export declare function FactsToolbar({ count, hasActiveFilters, filterText, onFilterTextChange, searchFields, onSearchFieldsChange, quickFilter, onOpenTags, viewMode, onViewModeChange, onNewFact, navSlotRef, navigator, tools, showToolbarRow, labels, testIds, filterLabels, filterTestIds, viewToggleLabels, viewToggleTestIdPrefix, }: FactsToolbarProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FactsViewToggle
|
|
3
|
+
*
|
|
4
|
+
* Table / Calendar / Timeline switch for the Notes page. (The list view
|
|
5
|
+
* retired into the table — 'list' stays in the type for old deep links,
|
|
6
|
+
* which the page maps to 'table'.) Uses the shared
|
|
7
|
+
* ViewToggle so it matches Documents (Gallery / Table / Review), Home and Smart
|
|
8
|
+
* Search rather than being a fifth bespoke button group, and sits in the tab
|
|
9
|
+
* header where every other page puts its views.
|
|
10
|
+
*
|
|
11
|
+
* Calendar and Timeline read only the dated notes — a note without a date has
|
|
12
|
+
* nowhere to sit on either — which the tooltips say rather than the labels.
|
|
13
|
+
*/
|
|
14
|
+
export type FactsViewMode = 'list' | 'table' | 'calendar' | 'gantt' | 'smart_search';
|
|
15
|
+
export interface FactsViewToggleLabels {
|
|
16
|
+
table: string;
|
|
17
|
+
calendar: string;
|
|
18
|
+
timeline: string;
|
|
19
|
+
smartSearch: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const DEFAULT_FACTS_VIEW_TOGGLE_LABELS: FactsViewToggleLabels;
|
|
22
|
+
export interface FactsViewToggleProps {
|
|
23
|
+
viewMode: FactsViewMode;
|
|
24
|
+
onChange: (mode: FactsViewMode) => void;
|
|
25
|
+
/**
|
|
26
|
+
* Collapse the labels to icons. Driven by a width measurement of the header
|
|
27
|
+
* row (see FactsPage) rather than a `@container`, so the toggle can stay
|
|
28
|
+
* absolutely centred — its position never shifts with the side controls —
|
|
29
|
+
* while still collapsing when the row actually runs out of room.
|
|
30
|
+
*/
|
|
31
|
+
collapsed?: boolean;
|
|
32
|
+
labels?: Partial<FactsViewToggleLabels>;
|
|
33
|
+
/** Item test ids are `${testIdPrefix}-${mode}-button` (default `facts-layout`). */
|
|
34
|
+
testIdPrefix?: string;
|
|
35
|
+
/** Per-mode item ids that replace the prefixed ones. */
|
|
36
|
+
testIds?: Partial<Record<FactsViewMode, string>>;
|
|
37
|
+
}
|
|
38
|
+
export declare function FactsViewToggle({ viewMode, onChange, collapsed, labels, testIdPrefix, testIds, }: FactsViewToggleProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface FactDateFields {
|
|
2
|
+
/** `YYYY-MM-DD`. Empty means the fact has no date at all. */
|
|
3
|
+
date: string;
|
|
4
|
+
/** `HH:MM`. Empty means `date` is a whole day, not an instant. */
|
|
5
|
+
time: string;
|
|
6
|
+
/** IANA zone `time` is expressed in. Only meaningful (and only sent) when `time` is set. */
|
|
7
|
+
timezone: string;
|
|
8
|
+
/** `YYYY-MM-DD` end of a range. Empty means a single day/instant, not a span. */
|
|
9
|
+
endDate: string;
|
|
10
|
+
/** `HH:MM` paired with `endDate`, only offered once `time` is set. */
|
|
11
|
+
endTime: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const EMPTY_FACT_DATE_FIELDS: FactDateFields;
|
|
14
|
+
/** Editable fields from a stored fact's date span — the inverse of `factDateFieldsToSpan`. */
|
|
15
|
+
export declare function factDateSpanToFields(dateStart: string | null | undefined, dateEnd: string | null | undefined, timezone: string | null | undefined): FactDateFields;
|
|
16
|
+
/** A fact's date span for the API — the inverse of `factDateSpanToFields`. `null`s
|
|
17
|
+
* clear the span entirely; a bare date (no time) stays timezone-agnostic. */
|
|
18
|
+
export declare function factDateFieldsToSpan(fields: FactDateFields): {
|
|
19
|
+
date: string | null;
|
|
20
|
+
date_end: string | null;
|
|
21
|
+
timezone: string | null;
|
|
22
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { FactRowView } from './factColumns';
|
|
2
|
+
/**
|
|
3
|
+
* A fact as a host with plain records usually holds it: camelCase, optional flags, tags as
|
|
4
|
+
* strings. `toFactRow` maps it to the `FactRowView` that `FactsTable` and `createFactColumns`
|
|
5
|
+
* read, so a host without the SDK type needs no adapter of its own.
|
|
6
|
+
*/
|
|
7
|
+
export interface PlainFactRecord {
|
|
8
|
+
id: string;
|
|
9
|
+
text: string;
|
|
10
|
+
pinned?: boolean;
|
|
11
|
+
confirmed?: boolean;
|
|
12
|
+
shared?: boolean;
|
|
13
|
+
/** ISO date (or date-time) the fact starts. */
|
|
14
|
+
dateStart?: string | null;
|
|
15
|
+
dateEnd?: string | null;
|
|
16
|
+
timezone?: string | null;
|
|
17
|
+
tags?: Array<string | {
|
|
18
|
+
name: string;
|
|
19
|
+
}> | null;
|
|
20
|
+
/** Passages that support the fact; only their count is shown. */
|
|
21
|
+
citations?: unknown[] | null;
|
|
22
|
+
createdBy?: string | null;
|
|
23
|
+
createdAt?: string | null;
|
|
24
|
+
updatedAt?: string | null;
|
|
25
|
+
}
|
|
26
|
+
/** The row plus the record it came from, so callbacks can hand the host its own object back. */
|
|
27
|
+
export type PlainFactRow<T extends PlainFactRecord> = FactRowView & {
|
|
28
|
+
record: T;
|
|
29
|
+
};
|
|
30
|
+
/** Map one plain record to a grid row. Missing flags are `false`, missing lists are empty. */
|
|
31
|
+
export declare function toFactRow<T extends PlainFactRecord>(record: T): PlainFactRow<T>;
|
|
32
|
+
export declare function toFactRows<T extends PlainFactRecord>(records: T[]): PlainFactRow<T>[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A fact's text is written in the rich markdown editor, which encodes
|
|
3
|
+
* otherwise-insignificant whitespace as HTML character references so it survives
|
|
4
|
+
* markdown's round-trip — a trailing space becomes ` `, a tab `	`, and
|
|
5
|
+
* so on. The editor decodes them back when it re-renders, but anything that
|
|
6
|
+
* shows the raw text (the grid cell, its tooltip) prints the reference verbatim,
|
|
7
|
+
* so a fact reads like `This is a fact. ` instead of `This is a fact.`.
|
|
8
|
+
*
|
|
9
|
+
* {@link decodeWhitespaceEntities} turns those references back into the
|
|
10
|
+
* characters they stand for. Only WHITESPACE code points are decoded, so the
|
|
11
|
+
* result is safe both to store as markdown (an escaped `*` or `<` is never
|
|
12
|
+
* turned back into active syntax) and to show as plain text.
|
|
13
|
+
*/
|
|
14
|
+
export declare function decodeWhitespaceEntities(text: string | null | undefined): string;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Column definitions for the Facts grid. Every column has an explicit `colId` (AG Grid persists
|
|
3
|
+
* column state by id: see CLAUDE.md). The app supplies behaviour and app-specific cells through
|
|
4
|
+
* slots; the structure, widths, sorting, filters and presentational cells live here.
|
|
5
|
+
*/
|
|
6
|
+
import type { ReactNode } from 'react';
|
|
7
|
+
import type { ColDef, ICellRendererParams, IHeaderParams, ValueGetterParams } from 'ag-grid-community';
|
|
8
|
+
export interface FactColumnLabels {
|
|
9
|
+
pinnedHeaderTooltip: string;
|
|
10
|
+
pinnedTitle: string;
|
|
11
|
+
unpinnedTitle: string;
|
|
12
|
+
unpin: string;
|
|
13
|
+
pin: string;
|
|
14
|
+
fact: string;
|
|
15
|
+
dates: string;
|
|
16
|
+
dateTitle: string;
|
|
17
|
+
labels: string;
|
|
18
|
+
verified: string;
|
|
19
|
+
verifiedTooltip: string;
|
|
20
|
+
shared: string;
|
|
21
|
+
sharedTooltip: string;
|
|
22
|
+
createdBy: string;
|
|
23
|
+
sources: string;
|
|
24
|
+
/** Tooltip of the Sources cell for `count` cited documents. */
|
|
25
|
+
sourcedFrom: (count: number) => string;
|
|
26
|
+
createdAt: string;
|
|
27
|
+
updated: string;
|
|
28
|
+
id: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const DEFAULT_FACT_COLUMN_LABELS: FactColumnLabels;
|
|
31
|
+
export interface FactColumnTestIds {
|
|
32
|
+
pinned: (factId: string) => string;
|
|
33
|
+
text: (factId: string) => string;
|
|
34
|
+
date: (factId: string) => string;
|
|
35
|
+
}
|
|
36
|
+
/** The fields of a fact the grid reads. Callers' richer types are accepted as-is. */
|
|
37
|
+
export interface FactRowView {
|
|
38
|
+
external_id: string;
|
|
39
|
+
text: string;
|
|
40
|
+
pinned: boolean;
|
|
41
|
+
confirmed: boolean;
|
|
42
|
+
shared: boolean;
|
|
43
|
+
date_start?: string | null;
|
|
44
|
+
date_end?: string | null;
|
|
45
|
+
timezone?: string | null;
|
|
46
|
+
tags?: Array<{
|
|
47
|
+
name: string;
|
|
48
|
+
}> | null;
|
|
49
|
+
citations?: unknown[] | null;
|
|
50
|
+
created_by_ext_id?: string | null;
|
|
51
|
+
created_at?: string | null;
|
|
52
|
+
updated_at?: string | null;
|
|
53
|
+
}
|
|
54
|
+
export interface FactColumnSlots<T extends FactRowView> {
|
|
55
|
+
onTogglePin: (fact: T) => void;
|
|
56
|
+
/** Custom header (persistent filter button) for the columns that use one. */
|
|
57
|
+
renderHeader: (params: IHeaderParams, colId: string) => ReactNode;
|
|
58
|
+
/** Row action menu, shown at the right edge of the Fact cell. */
|
|
59
|
+
renderRowActions: (fact: T, params: ICellRendererParams<T>) => ReactNode;
|
|
60
|
+
/** Inline label picker for the Labels cell. */
|
|
61
|
+
renderLabels: (fact: T, params: ICellRendererParams<T>) => ReactNode;
|
|
62
|
+
/** The Verified switch. */
|
|
63
|
+
renderVerified: (fact: T) => ReactNode;
|
|
64
|
+
/** The Shared switch. */
|
|
65
|
+
renderShared: (fact: T) => ReactNode;
|
|
66
|
+
/** The creator avatar. */
|
|
67
|
+
renderCreator: (fact: T, params: ICellRendererParams<T>) => ReactNode;
|
|
68
|
+
/** Sort/filter value for the Created by column (the creator's display name). */
|
|
69
|
+
getCreatorName: (params: ValueGetterParams<T>) => string;
|
|
70
|
+
/** Friendly display of an ISO timestamp (Created at / Updated). */
|
|
71
|
+
formatDate: (iso: string) => string;
|
|
72
|
+
labels?: Partial<FactColumnLabels>;
|
|
73
|
+
testIds?: Partial<FactColumnTestIds>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Date-filter params for a column whose value is an ISO string. AG Grid hands the comparator a JS
|
|
77
|
+
* `Date` from the picker and the raw cell value; this compares UTC day components so a filter
|
|
78
|
+
* never shifts a date by a day for viewers west of UTC.
|
|
79
|
+
*/
|
|
80
|
+
export declare const ISO_DATE_FILTER_PARAMS: {
|
|
81
|
+
browserDatePicker: boolean;
|
|
82
|
+
comparator: (filterDate: Date, cellValue: unknown) => number;
|
|
83
|
+
};
|
|
84
|
+
/** How many source documents a fact cites (the Sources column counts documents, not passages). */
|
|
85
|
+
export declare function sourceDocCount(fact: Pick<FactRowView, 'citations'> | undefined): number;
|
|
86
|
+
/** Default left-to-right order; default-hidden columns trail. Every colId must be listed. */
|
|
87
|
+
export declare const DEFAULT_FACT_COLUMN_ORDER: readonly ["pinned", "text", "sources", "tags", "date", "confirmed", "shared", "created_by", "created_at", "updated_at", "note_id"];
|
|
88
|
+
export declare function createFactColumns<T extends FactRowView>(slots: FactColumnSlots<T>): ColDef<T>[];
|