@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,12 @@
|
|
|
1
|
+
export { Eyebrow, type EyebrowProps } from './Eyebrow';
|
|
2
|
+
export { EditorialHeading, type EditorialHeadingProps } from './EditorialHeading';
|
|
3
|
+
export { EditorialHero, type EditorialHeroProps, type EditorialHeroTestIds, type EditorialSurface, } from './EditorialHero';
|
|
4
|
+
export { EditorialSection, EditorialProse, type EditorialSectionProps, type EditorialProseProps, } from './EditorialSection';
|
|
5
|
+
export { PanelGrid, type PanelGridProps, type PanelItem } from './PanelGrid';
|
|
6
|
+
export { DefinitionList, CheckList, TagList, type DefinitionListProps, type DefinitionItem, type CheckListProps, type TagListProps, } from './lists';
|
|
7
|
+
export { PullQuote, type PullQuoteProps } from './PullQuote';
|
|
8
|
+
export { ArticleList, type ArticleListProps, type ArticleItem } from './ArticleList';
|
|
9
|
+
export { ProfileCard, type ProfileCardProps } from './ProfileCard';
|
|
10
|
+
export { ProofStrip, CtaBand, type ProofStripProps, type CtaBandProps } from './Bands';
|
|
11
|
+
export { Reveal, type RevealProps } from './Reveal';
|
|
12
|
+
export { type EditorialTone } from './tone';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface DefinitionItem {
|
|
3
|
+
term: ReactNode;
|
|
4
|
+
description: ReactNode;
|
|
5
|
+
/** A leading icon; without one the `dot` marker is used when `marker="dot"`. */
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
testId?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface DefinitionListProps {
|
|
10
|
+
items: DefinitionItem[];
|
|
11
|
+
/**
|
|
12
|
+
* `rows`: each entry is a lifted row with a marker. `ruled`: a spec sheet, term and description
|
|
13
|
+
* side by side between hairlines.
|
|
14
|
+
*/
|
|
15
|
+
layout?: 'rows' | 'ruled';
|
|
16
|
+
/** Marker of an entry with no `icon` in the `rows` layout. */
|
|
17
|
+
marker?: 'dot' | 'none';
|
|
18
|
+
className?: string;
|
|
19
|
+
testId?: string;
|
|
20
|
+
}
|
|
21
|
+
/** Term and description pairs (`<dl>`): feature rows, a spec sheet, a definition list. */
|
|
22
|
+
export declare function DefinitionList({ items, layout, marker, className, testId, }: DefinitionListProps): import("react").JSX.Element;
|
|
23
|
+
export interface CheckListProps {
|
|
24
|
+
items: ReactNode[];
|
|
25
|
+
/** Two columns from `sm` up. */
|
|
26
|
+
columns?: 1 | 2;
|
|
27
|
+
/** Replaces the check mark. */
|
|
28
|
+
icon?: ReactNode;
|
|
29
|
+
className?: string;
|
|
30
|
+
testId?: string;
|
|
31
|
+
}
|
|
32
|
+
/** A list of points, each with a ringed check mark. */
|
|
33
|
+
export declare function CheckList({ items, columns, icon, className, testId }: CheckListProps): import("react").JSX.Element;
|
|
34
|
+
export interface TagListProps {
|
|
35
|
+
items: string[];
|
|
36
|
+
/** Accessible name of the list. */
|
|
37
|
+
label?: string;
|
|
38
|
+
className?: string;
|
|
39
|
+
testId?: string;
|
|
40
|
+
}
|
|
41
|
+
/** Small bordered chips: sectors, focus areas, topics. */
|
|
42
|
+
export declare function TagList({ items, label, className, testId }: TagListProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Editorial parts read their colours from the theme tokens only. `inverse` flips the page
|
|
3
|
+
* tokens (`bg-foreground text-background`) for dark bands on a light theme; on a theme that is
|
|
4
|
+
* already dark, leave `default` and let the host tokens do the work.
|
|
5
|
+
*/
|
|
6
|
+
export type EditorialTone = 'default' | 'inverse';
|
|
7
|
+
export interface EditorialToneClasses {
|
|
8
|
+
/** Body text colour of the band. */
|
|
9
|
+
text: string;
|
|
10
|
+
/** Secondary copy (lede, descriptions). */
|
|
11
|
+
muted: string;
|
|
12
|
+
/** Tertiary copy (meta lines, small print). */
|
|
13
|
+
subtle: string;
|
|
14
|
+
/** Accent text (links, kickers, markers). */
|
|
15
|
+
accent: string;
|
|
16
|
+
/** Hairline between rows and around bands. */
|
|
17
|
+
hairline: string;
|
|
18
|
+
/** A lifted surface (panel, row, chip). */
|
|
19
|
+
panel: string;
|
|
20
|
+
/** Hover state of an interactive panel. */
|
|
21
|
+
panelHover: string;
|
|
22
|
+
/** Small bordered chip. */
|
|
23
|
+
chip: string;
|
|
24
|
+
/** Icon tile. */
|
|
25
|
+
tile: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const EditorialToneContext: import("react").Context<EditorialTone>;
|
|
28
|
+
/** The tone of the enclosing band, unless a part overrides it. */
|
|
29
|
+
export declare function useEditorialTone(override?: EditorialTone): EditorialToneClasses & {
|
|
30
|
+
tone: EditorialTone;
|
|
31
|
+
};
|
|
32
|
+
/** `01`, `02`, ... for a numbered label; strings pass through. */
|
|
33
|
+
export declare function formatIndex(index: number | string): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ONE status/tone vocabulary of the blocks. `StatusPill`, `ToneBadge`, `Dot` and the plan,
|
|
3
|
+
* connection and tag chips all read these maps, so a tone looks the same wherever it appears and
|
|
4
|
+
* a new tone is added in one place. Every pair is a token pair checked by
|
|
5
|
+
* `tokens.contrast.test.ts` (`--{hue}-text` on `--{hue}-bg`).
|
|
6
|
+
*/
|
|
7
|
+
/** Semantic tones, mapped to the token palette (`--{hue}-bg|text|border`, `--ai-*`). */
|
|
8
|
+
export type Tone = 'neutral' | 'info' | 'success' | 'warning' | 'danger' | 'accent' | 'ai';
|
|
9
|
+
/** Background + text of a tinted chip. */
|
|
10
|
+
export declare const TONE_SURFACE: Record<Tone, string>;
|
|
11
|
+
/** Border of a tinted chip (the AI tint has none). */
|
|
12
|
+
export declare const TONE_BORDER: Record<Tone, string>;
|
|
13
|
+
/** Solid fill of a status dot. */
|
|
14
|
+
export declare const TONE_DOT: Record<Tone, string>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var chunkG3G7LZPM_cjs = require('../chunk-G3G7LZPM.cjs');
|
|
5
|
+
var react = require('react');
|
|
6
|
+
var reactQuery = require('@tanstack/react-query');
|
|
7
|
+
var react$1 = require('@arbidocs/react');
|
|
8
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
9
|
+
|
|
10
|
+
function ConnectionBoundWebSocket({ children }) {
|
|
11
|
+
const { status } = chunkG3G7LZPM_cjs.useConnection();
|
|
12
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react$1.ArbiWebSocketProvider, { enabled: status === "authenticated", children });
|
|
13
|
+
}
|
|
14
|
+
function ArbiAppProvider({
|
|
15
|
+
config,
|
|
16
|
+
children
|
|
17
|
+
}) {
|
|
18
|
+
const [queryClient] = react.useState(
|
|
19
|
+
() => new reactQuery.QueryClient({
|
|
20
|
+
defaultOptions: { queries: { staleTime: 3e4, retry: 1, refetchOnWindowFocus: false } }
|
|
21
|
+
})
|
|
22
|
+
);
|
|
23
|
+
const providerUrl = config.apiUrl || config.demoApiUrl || "https://demo.arbi.local";
|
|
24
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactQuery.QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsxRuntime.jsx(react$1.ArbiProvider, { url: providerUrl, children: /* @__PURE__ */ jsxRuntime.jsx(chunkG3G7LZPM_cjs.ConnectionProvider, { config, children: /* @__PURE__ */ jsxRuntime.jsx(ConnectionBoundWebSocket, { children }) }) }) });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
Object.defineProperty(exports, "ConnectionProvider", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkG3G7LZPM_cjs.ConnectionProvider; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "isAuthenticated", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkG3G7LZPM_cjs.isAuthenticated; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "redlineStats", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkG3G7LZPM_cjs.redlineStats; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "textToArtifact", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunkG3G7LZPM_cjs.textToArtifact; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "toRedlineMarkdown", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunkG3G7LZPM_cjs.toRedlineMarkdown; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "useConnectedAiTask", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return chunkG3G7LZPM_cjs.useConnectedAiTask; }
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, "useConnection", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () { return chunkG3G7LZPM_cjs.useConnection; }
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(exports, "useSemanticSearch", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () { return chunkG3G7LZPM_cjs.useSemanticSearch; }
|
|
58
|
+
});
|
|
59
|
+
Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function () { return chunkG3G7LZPM_cjs.useWorkspaceDocs; }
|
|
62
|
+
});
|
|
63
|
+
exports.ArbiAppProvider = ArbiAppProvider;
|
|
64
|
+
//# sourceMappingURL=index.cjs.map
|
|
65
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/connection/ArbiAppProvider.tsx"],"names":["useConnection","jsx","ArbiWebSocketProvider","useState","QueryClient","QueryClientProvider","ArbiProvider","ConnectionProvider"],"mappings":";;;;;;;;AAqBA,SAAS,wBAAA,CAAyB,EAAE,QAAA,EAAS,EAA4B;AACvE,EAAA,MAAM,EAAE,MAAA,EAAO,GAAIA,+BAAA,EAAc;AACjC,EAAA,uBACEC,cAAA,CAACC,6BAAA,EAAA,EAAsB,OAAA,EAAS,MAAA,KAAW,iBAAkB,QAAA,EAAS,CAAA;AAE1E;AAEO,SAAS,eAAA,CAAgB;AAAA,EAC9B,MAAA;AAAA,EACA;AACF,CAAA,EAGG;AACD,EAAA,MAAM,CAAC,WAAW,CAAA,GAAIC,cAAA;AAAA,IACpB,MACE,IAAIC,sBAAA,CAAY;AAAA,MACd,cAAA,EAAgB,EAAE,OAAA,EAAS,EAAE,SAAA,EAAW,KAAQ,KAAA,EAAO,CAAA,EAAG,oBAAA,EAAsB,KAAA,EAAM;AAAE,KACzF;AAAA,GACL;AAEA,EAAA,MAAM,WAAA,GAAc,MAAA,CAAO,MAAA,IAAU,MAAA,CAAO,UAAA,IAAc,yBAAA;AAE1D,EAAA,sCACGC,8BAAA,EAAA,EAAoB,MAAA,EAAQ,WAAA,EAC3B,QAAA,kBAAAJ,cAAA,CAACK,wBAAa,GAAA,EAAK,WAAA,EACjB,QAAA,kBAAAL,cAAA,CAACM,oCAAA,EAAA,EAAmB,QAClB,QAAA,kBAAAN,cAAA,CAAC,wBAAA,EAAA,EAA0B,QAAA,EAAS,CAAA,EACtC,GACF,CAAA,EACF,CAAA;AAEJ","file":"index.cjs","sourcesContent":["/**\n * Composition root for a host app on the ARBI React SDK.\n *\n * QueryClientProvider → react-query cache shared with the SDK\n * ArbiProvider → the SDK's Arbi instance (no network until login)\n * ConnectionProvider → demo/live auth + workspace layer\n *\n * With no live `apiUrl`, ArbiProvider is still mounted (cheap, inert) against\n * `demoApiUrl` and the app runs entirely in seeded demo mode.\n */\nimport { useState, type ReactNode } from 'react'\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query'\nimport { ArbiProvider, ArbiWebSocketProvider } from '@arbidocs/react'\nimport { ConnectionProvider, useConnection } from './ConnectionProvider'\nimport type { ArbiConnectionConfig } from './types'\n\n/**\n * Opens the shared SDK WebSocket once the app is live-authenticated (demo /\n * logged-out sessions have no backend, so they stay disconnected). Lives inside\n * ConnectionProvider so it can read the live status.\n */\nfunction ConnectionBoundWebSocket({ children }: { children: ReactNode }) {\n const { status } = useConnection()\n return (\n <ArbiWebSocketProvider enabled={status === 'authenticated'}>{children}</ArbiWebSocketProvider>\n )\n}\n\nexport function ArbiAppProvider({\n config,\n children,\n}: {\n config: ArbiConnectionConfig\n children: ReactNode\n}) {\n const [queryClient] = useState(\n () =>\n new QueryClient({\n defaultOptions: { queries: { staleTime: 30_000, retry: 1, refetchOnWindowFocus: false } },\n })\n )\n\n const providerUrl = config.apiUrl || config.demoApiUrl || 'https://demo.arbi.local'\n\n return (\n <QueryClientProvider client={queryClient}>\n <ArbiProvider url={providerUrl}>\n <ConnectionProvider config={config}>\n <ConnectionBoundWebSocket>{children}</ConnectionBoundWebSocket>\n </ConnectionProvider>\n </ArbiProvider>\n </QueryClientProvider>\n )\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @arbidocs/blocks/connect: the demo/live connection layer (auth, workspace selection, agent
|
|
3
|
+
* hooks, React Query + ARBI provider). Kept off the root barrel because it needs React Query.
|
|
4
|
+
*/
|
|
5
|
+
export { type ArbiMode, type ConnectionStatus, type ArbiUser, type AssistantStep, type AssistantCitation, type AssistantMessage, type ArbiConnectionConfig, } from '../connection/types';
|
|
6
|
+
export { ConnectionProvider, useConnection, isAuthenticated, } from '../connection/ConnectionProvider';
|
|
7
|
+
export { ArbiAppProvider } from '../connection/ArbiAppProvider';
|
|
8
|
+
export { useConnectedAiTask, useWorkspaceDocs, useSemanticSearch, toRedlineMarkdown, redlineStats, textToArtifact, type AiTaskStatus, type AiRunOptions, type SearchChunk, type ArtifactEvent, } from '../connection/ai';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { ConnectionProvider, useConnection } from '../chunk-YBXCZEWS.js';
|
|
3
|
+
export { ConnectionProvider, isAuthenticated, redlineStats, textToArtifact, toRedlineMarkdown, useConnectedAiTask, useConnection, useSemanticSearch, useWorkspaceDocs } from '../chunk-YBXCZEWS.js';
|
|
4
|
+
import { useState } from 'react';
|
|
5
|
+
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
6
|
+
import { ArbiProvider, ArbiWebSocketProvider } from '@arbidocs/react';
|
|
7
|
+
import { jsx } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
function ConnectionBoundWebSocket({ children }) {
|
|
10
|
+
const { status } = useConnection();
|
|
11
|
+
return /* @__PURE__ */ jsx(ArbiWebSocketProvider, { enabled: status === "authenticated", children });
|
|
12
|
+
}
|
|
13
|
+
function ArbiAppProvider({
|
|
14
|
+
config,
|
|
15
|
+
children
|
|
16
|
+
}) {
|
|
17
|
+
const [queryClient] = useState(
|
|
18
|
+
() => new QueryClient({
|
|
19
|
+
defaultOptions: { queries: { staleTime: 3e4, retry: 1, refetchOnWindowFocus: false } }
|
|
20
|
+
})
|
|
21
|
+
);
|
|
22
|
+
const providerUrl = config.apiUrl || config.demoApiUrl || "https://demo.arbi.local";
|
|
23
|
+
return /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx(ArbiProvider, { url: providerUrl, children: /* @__PURE__ */ jsx(ConnectionProvider, { config, children: /* @__PURE__ */ jsx(ConnectionBoundWebSocket, { children }) }) }) });
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { ArbiAppProvider };
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/connection/ArbiAppProvider.tsx"],"names":[],"mappings":";;;;;;;AAqBA,SAAS,wBAAA,CAAyB,EAAE,QAAA,EAAS,EAA4B;AACvE,EAAA,MAAM,EAAE,MAAA,EAAO,GAAI,aAAA,EAAc;AACjC,EAAA,uBACE,GAAA,CAAC,qBAAA,EAAA,EAAsB,OAAA,EAAS,MAAA,KAAW,iBAAkB,QAAA,EAAS,CAAA;AAE1E;AAEO,SAAS,eAAA,CAAgB;AAAA,EAC9B,MAAA;AAAA,EACA;AACF,CAAA,EAGG;AACD,EAAA,MAAM,CAAC,WAAW,CAAA,GAAI,QAAA;AAAA,IACpB,MACE,IAAI,WAAA,CAAY;AAAA,MACd,cAAA,EAAgB,EAAE,OAAA,EAAS,EAAE,SAAA,EAAW,KAAQ,KAAA,EAAO,CAAA,EAAG,oBAAA,EAAsB,KAAA,EAAM;AAAE,KACzF;AAAA,GACL;AAEA,EAAA,MAAM,WAAA,GAAc,MAAA,CAAO,MAAA,IAAU,MAAA,CAAO,UAAA,IAAc,yBAAA;AAE1D,EAAA,2BACG,mBAAA,EAAA,EAAoB,MAAA,EAAQ,WAAA,EAC3B,QAAA,kBAAA,GAAA,CAAC,gBAAa,GAAA,EAAK,WAAA,EACjB,QAAA,kBAAA,GAAA,CAAC,kBAAA,EAAA,EAAmB,QAClB,QAAA,kBAAA,GAAA,CAAC,wBAAA,EAAA,EAA0B,QAAA,EAAS,CAAA,EACtC,GACF,CAAA,EACF,CAAA;AAEJ","file":"index.js","sourcesContent":["/**\n * Composition root for a host app on the ARBI React SDK.\n *\n * QueryClientProvider → react-query cache shared with the SDK\n * ArbiProvider → the SDK's Arbi instance (no network until login)\n * ConnectionProvider → demo/live auth + workspace layer\n *\n * With no live `apiUrl`, ArbiProvider is still mounted (cheap, inert) against\n * `demoApiUrl` and the app runs entirely in seeded demo mode.\n */\nimport { useState, type ReactNode } from 'react'\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query'\nimport { ArbiProvider, ArbiWebSocketProvider } from '@arbidocs/react'\nimport { ConnectionProvider, useConnection } from './ConnectionProvider'\nimport type { ArbiConnectionConfig } from './types'\n\n/**\n * Opens the shared SDK WebSocket once the app is live-authenticated (demo /\n * logged-out sessions have no backend, so they stay disconnected). Lives inside\n * ConnectionProvider so it can read the live status.\n */\nfunction ConnectionBoundWebSocket({ children }: { children: ReactNode }) {\n const { status } = useConnection()\n return (\n <ArbiWebSocketProvider enabled={status === 'authenticated'}>{children}</ArbiWebSocketProvider>\n )\n}\n\nexport function ArbiAppProvider({\n config,\n children,\n}: {\n config: ArbiConnectionConfig\n children: ReactNode\n}) {\n const [queryClient] = useState(\n () =>\n new QueryClient({\n defaultOptions: { queries: { staleTime: 30_000, retry: 1, refetchOnWindowFocus: false } },\n })\n )\n\n const providerUrl = config.apiUrl || config.demoApiUrl || 'https://demo.arbi.local'\n\n return (\n <QueryClientProvider client={queryClient}>\n <ArbiProvider url={providerUrl}>\n <ConnectionProvider config={config}>\n <ConnectionBoundWebSocket>{children}</ConnectionBoundWebSocket>\n </ConnectionProvider>\n </ArbiProvider>\n </QueryClientProvider>\n )\n}\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Composition root for a host app on the ARBI React SDK.
|
|
3
|
+
*
|
|
4
|
+
* QueryClientProvider → react-query cache shared with the SDK
|
|
5
|
+
* ArbiProvider → the SDK's Arbi instance (no network until login)
|
|
6
|
+
* ConnectionProvider → demo/live auth + workspace layer
|
|
7
|
+
*
|
|
8
|
+
* With no live `apiUrl`, ArbiProvider is still mounted (cheap, inert) against
|
|
9
|
+
* `demoApiUrl` and the app runs entirely in seeded demo mode.
|
|
10
|
+
*/
|
|
11
|
+
import { type ReactNode } from 'react';
|
|
12
|
+
import type { ArbiConnectionConfig } from './types';
|
|
13
|
+
export declare function ArbiAppProvider({ config, children, }: {
|
|
14
|
+
config: ArbiConnectionConfig;
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The demo/live connection layer for a host app. Holds auth + workspace
|
|
3
|
+
* selection state and exposes it via {@link useConnection}, so every surface
|
|
4
|
+
* works identically whether it's talking to a live ARBI backend or the seeded
|
|
5
|
+
* demo workspace. Host-specific values (backend URL, demo identity, default
|
|
6
|
+
* workspace/assistant ids) arrive once through {@link ArbiConnectionConfig}.
|
|
7
|
+
*/
|
|
8
|
+
import { type ReactNode } from 'react';
|
|
9
|
+
import type { ArbiMode, ArbiUser, ConnectionStatus, ArbiConnectionConfig } from './types';
|
|
10
|
+
interface ConnectionValue {
|
|
11
|
+
mode: ArbiMode;
|
|
12
|
+
status: ConnectionStatus;
|
|
13
|
+
user: ArbiUser | null;
|
|
14
|
+
workspaceId: string | null;
|
|
15
|
+
apiConfigured: boolean;
|
|
16
|
+
apiUrl: string;
|
|
17
|
+
error: string | null;
|
|
18
|
+
/** Default assistant config ext_id (for the AI hooks). */
|
|
19
|
+
assistantConfig?: string;
|
|
20
|
+
/** Fallback workspace ext_id when none is actively selected. */
|
|
21
|
+
fallbackWorkspaceId?: string;
|
|
22
|
+
/** Authenticate. Live login when a backend is configured, otherwise the demo workspace. */
|
|
23
|
+
login: (email: string, password: string) => Promise<void>;
|
|
24
|
+
/** One-click demo entry (no backend required). */
|
|
25
|
+
enterDemo: () => void;
|
|
26
|
+
logout: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* Affirmatively select a workspace: opens it on the server (via the SDK),
|
|
29
|
+
* updates the app-wide state, and persists the choice so it survives future
|
|
30
|
+
* logins. This is the single entry point for "the user is now in workspace X".
|
|
31
|
+
*/
|
|
32
|
+
setWorkspace: (id: string) => Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Re-assert the selected workspace on the server session (idempotent `/open`).
|
|
35
|
+
* Call before a workspace-scoped write when the session may have lost its open
|
|
36
|
+
* workspace (token re-login, backend restart, session expiry) — the server
|
|
37
|
+
* resolves the workspace from the session, so a dropped `/open` yields
|
|
38
|
+
* "No active workspace" until it's re-opened.
|
|
39
|
+
*/
|
|
40
|
+
ensureWorkspaceOpen: () => Promise<void>;
|
|
41
|
+
}
|
|
42
|
+
/** Exported for tests. */
|
|
43
|
+
export declare const workspaceStorageKey: (apiUrl: string, userKey: string) => string;
|
|
44
|
+
export declare function ConnectionProvider({ config, children, }: {
|
|
45
|
+
config: ArbiConnectionConfig;
|
|
46
|
+
children: ReactNode;
|
|
47
|
+
}): import("react").JSX.Element;
|
|
48
|
+
export declare function useConnection(): ConnectionValue;
|
|
49
|
+
export declare const isAuthenticated: (s: ConnectionStatus) => s is "demo" | "authenticated";
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { type AiRunOptions } from '@arbidocs/react';
|
|
2
|
+
export type { AiTaskStatus, AiRunOptions, SearchChunk, ArtifactEvent } from '@arbidocs/react';
|
|
3
|
+
/** Client-side redlining, re-exported so a host app has one import surface. */
|
|
4
|
+
export { toRedlineMarkdown, redlineStats, textToArtifact } from '@arbidocs/react';
|
|
5
|
+
/**
|
|
6
|
+
* The kit's `useAiTask` with the host's default assistant configuration
|
|
7
|
+
* injected, so call sites needn't know the config ext_id.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useConnectedAiTask(): {
|
|
10
|
+
run: (question: string, docIds: string[], opts?: AiRunOptions) => Promise<import("@arbidocs/react").SSEStreamResult | null>;
|
|
11
|
+
status: import("@arbidocs/react").AiTaskStatus;
|
|
12
|
+
text: string;
|
|
13
|
+
stepCount: number;
|
|
14
|
+
error: string | null;
|
|
15
|
+
responseId: string | null;
|
|
16
|
+
artifacts: {
|
|
17
|
+
t?: number | null;
|
|
18
|
+
type: "arbi.artifact";
|
|
19
|
+
doc_ext_id: string;
|
|
20
|
+
title: string;
|
|
21
|
+
mode: "markdown" | "html" | "text" | "image";
|
|
22
|
+
content: string;
|
|
23
|
+
file_type: string;
|
|
24
|
+
is_complete: boolean;
|
|
25
|
+
version: number;
|
|
26
|
+
message_ext_id?: string | null;
|
|
27
|
+
}[];
|
|
28
|
+
reset: () => void;
|
|
29
|
+
isRunning: boolean;
|
|
30
|
+
isDone: boolean;
|
|
31
|
+
};
|
|
32
|
+
/** Resolve the active workspace + its document ids (what we ground the agent on). */
|
|
33
|
+
export declare function useWorkspaceDocs(): {
|
|
34
|
+
wsId: string | undefined;
|
|
35
|
+
docs: {
|
|
36
|
+
external_id: string;
|
|
37
|
+
workspace_ext_id: string;
|
|
38
|
+
file_name?: string | null | undefined;
|
|
39
|
+
status?: string | null | undefined;
|
|
40
|
+
error_message?: string | null | undefined;
|
|
41
|
+
failed_stage?: string | null | undefined;
|
|
42
|
+
n_pages?: number | null | undefined;
|
|
43
|
+
n_chunks?: number | null | undefined;
|
|
44
|
+
tokens?: number | null | undefined;
|
|
45
|
+
file_type?: string | null | undefined;
|
|
46
|
+
file_size?: number | null | undefined;
|
|
47
|
+
storage_type?: string | null | undefined;
|
|
48
|
+
storage_uri?: string | null | undefined;
|
|
49
|
+
content_hash?: string | null | undefined;
|
|
50
|
+
shared?: boolean | null | undefined;
|
|
51
|
+
re_ocred?: boolean | null | undefined;
|
|
52
|
+
config_ext_id?: string | null | undefined;
|
|
53
|
+
parent_ext_id?: string | null | undefined;
|
|
54
|
+
created_by_ext_id: string;
|
|
55
|
+
updated_by_ext_id?: string | null | undefined;
|
|
56
|
+
created_at: string;
|
|
57
|
+
updated_at: string;
|
|
58
|
+
wp_type?: string | null | undefined;
|
|
59
|
+
folder?: string | null | undefined;
|
|
60
|
+
sender?: string | null | undefined;
|
|
61
|
+
doctags: {
|
|
62
|
+
note?: string | null | undefined;
|
|
63
|
+
citations?: {
|
|
64
|
+
doc_ext_id: string;
|
|
65
|
+
chunks?: {
|
|
66
|
+
chunk_id: string;
|
|
67
|
+
page?: number | null | undefined;
|
|
68
|
+
}[] | undefined;
|
|
69
|
+
}[] | null | undefined;
|
|
70
|
+
external_id: string;
|
|
71
|
+
doc_ext_id: string;
|
|
72
|
+
tag_ext_id: string;
|
|
73
|
+
created_by_ext_id: string;
|
|
74
|
+
updated_by_ext_id?: string | null | undefined;
|
|
75
|
+
created_at: string;
|
|
76
|
+
updated_at: string;
|
|
77
|
+
}[];
|
|
78
|
+
doc_metadata?: {
|
|
79
|
+
doc_nature?: string | null | undefined;
|
|
80
|
+
doc_author?: string | null | undefined;
|
|
81
|
+
doc_subject?: string | null | undefined;
|
|
82
|
+
doc_date?: string | null | undefined;
|
|
83
|
+
title?: string | null | undefined;
|
|
84
|
+
} | null | undefined;
|
|
85
|
+
}[];
|
|
86
|
+
docIds: string[];
|
|
87
|
+
isLoading: boolean;
|
|
88
|
+
isError: boolean;
|
|
89
|
+
ready: boolean;
|
|
90
|
+
};
|
|
91
|
+
/** Search the active workspace's documents and return the top matching passages. */
|
|
92
|
+
export declare function useSemanticSearch(): {
|
|
93
|
+
query: string;
|
|
94
|
+
results: import("@arbidocs/react").SearchChunk[];
|
|
95
|
+
status: import("@arbidocs/react").AiTaskStatus;
|
|
96
|
+
error: string | null;
|
|
97
|
+
search: (q: string, mode?: "semantic" | "keyword" | "hybrid") => Promise<void>;
|
|
98
|
+
isRunning: boolean;
|
|
99
|
+
};
|
|
@@ -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>;
|