@arbidocs/blocks 0.3.185 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +100 -0
- package/dist/agents/approvals/AuthorizeAgentParts.d.ts +79 -0
- package/dist/agents/approvals/ConsentPage.d.ts +76 -0
- package/dist/agents/approvals/ConsentParts.d.ts +37 -0
- package/dist/agents/approvals/index.d.ts +3 -0
- package/dist/agents/config/ConfigField.d.ts +43 -0
- package/dist/agents/config/ConfigForm.d.ts +35 -0
- package/dist/agents/config/TupleArrayField.d.ts +32 -0
- package/dist/agents/config/index.d.ts +4 -0
- package/dist/agents/config/schema-utils.d.ts +28 -0
- package/dist/agents/definitions/AgentCard.d.ts +63 -0
- package/dist/agents/definitions/AgentCreator.d.ts +118 -0
- package/dist/agents/definitions/AgentEditorParts.d.ts +63 -0
- package/dist/agents/definitions/AgentGallery.d.ts +29 -0
- package/dist/agents/definitions/index.d.ts +4 -0
- package/dist/agents/index.cjs +595 -0
- package/dist/agents/index.cjs.map +1 -0
- package/dist/agents/index.d.ts +7 -0
- package/dist/agents/index.js +14 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/runs/AgentBar.d.ts +103 -0
- package/dist/agents/runs/AgentSteps.d.ts +157 -0
- package/dist/agents/runs/SubagentRoster.d.ts +37 -0
- package/dist/agents/runs/index.d.ts +3 -0
- package/dist/agents/skills/SkillBrowserParts.d.ts +70 -0
- package/dist/agents/skills/SkillCard.d.ts +48 -0
- package/dist/agents/skills/SkillForms.d.ts +64 -0
- package/dist/agents/skills/SkillParts.d.ts +31 -0
- package/dist/agents/skills/SkillRow.d.ts +34 -0
- package/dist/agents/skills/index.d.ts +5 -0
- package/dist/agents/tasks/LiveRunsBanner.d.ts +26 -0
- package/dist/agents/tasks/RecurrenceBuilder.d.ts +36 -0
- package/dist/agents/tasks/TaskComposer.d.ts +108 -0
- package/dist/agents/tasks/TaskPlan.d.ts +78 -0
- package/dist/agents/tasks/TaskRowActions.d.ts +43 -0
- package/dist/agents/tasks/TaskRunsDialog.d.ts +45 -0
- package/dist/agents/tasks/TasksChrome.d.ts +36 -0
- package/dist/agents/tasks/UploadTaskItem.d.ts +39 -0
- package/dist/agents/tasks/UploadTaskList.d.ts +35 -0
- package/dist/agents/tasks/elapsed.d.ts +2 -0
- package/dist/agents/tasks/index.d.ts +13 -0
- package/dist/agents/tasks/rrule.d.ts +36 -0
- package/dist/agents/tasks/taskColumns.d.ts +68 -0
- package/dist/agents/tasks/taskLabels.d.ts +26 -0
- package/dist/agents/workflows/AgentSelect.d.ts +33 -0
- package/dist/agents/workflows/SchemaForm.d.ts +37 -0
- package/dist/agents/workflows/WorkflowConfigDialog.d.ts +73 -0
- package/dist/agents/workflows/WorkflowLauncher.d.ts +38 -0
- package/dist/agents/workflows/index.d.ts +6 -0
- package/dist/agents/workflows/types.d.ts +125 -0
- package/dist/agents/workflows/workflow.d.ts +62 -0
- package/dist/auth/AuthFooter.d.ts +56 -0
- package/dist/auth/AuthForm.d.ts +105 -0
- package/dist/auth/AuthLayout.d.ts +46 -0
- package/dist/auth/PasswordStrengthInput.d.ts +44 -0
- package/dist/auth/RecoveryDialogs.d.ts +90 -0
- package/dist/auth/SsoLoginButton.d.ts +19 -0
- package/dist/auth/index.cjs +123 -0
- package/dist/auth/index.cjs.map +1 -0
- package/dist/auth/index.d.ts +6 -0
- package/dist/auth/index.js +6 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/builder/AgentsPanel.d.ts +9 -0
- package/dist/builder/ModuleManager.d.ts +6 -0
- package/dist/builder/VerticalBuilder.d.ts +32 -0
- package/dist/builder/agents/store.d.ts +21 -0
- package/dist/builder/export.d.ts +30 -0
- package/dist/builder/modules/registry.d.ts +11 -0
- package/dist/builder/modules/store.d.ts +29 -0
- package/dist/builder/modules/types.d.ts +29 -0
- package/dist/builder/types.d.ts +28 -0
- package/dist/chat/BranchControls.d.ts +33 -0
- package/dist/chat/Composer.d.ts +156 -0
- package/dist/chat/ContextChip.d.ts +19 -0
- package/dist/chat/ContextPanel.d.ts +108 -0
- package/dist/chat/ConversationEmpty.d.ts +53 -0
- package/dist/chat/ConversationLayout.d.ts +40 -0
- package/dist/chat/ConversationParts.d.ts +62 -0
- package/dist/chat/ConversationSearchView.d.ts +57 -0
- package/dist/chat/LabelPinRow.d.ts +30 -0
- package/dist/chat/Message.d.ts +189 -0
- package/dist/chat/MessageAlert.d.ts +25 -0
- package/dist/chat/MessageList.d.ts +102 -0
- package/dist/chat/ModelPicker.d.ts +103 -0
- package/dist/chat/PendingAnswerBar.d.ts +36 -0
- package/dist/chat/PinnedDocChip.d.ts +22 -0
- package/dist/chat/SlashMenu.d.ts +57 -0
- package/dist/chat/ThreadMap.d.ts +45 -0
- package/dist/chat/index.cjs +423 -0
- package/dist/chat/index.cjs.map +1 -0
- package/dist/chat/index.d.ts +21 -0
- package/dist/chat/index.js +6 -0
- package/dist/chat/index.js.map +1 -0
- package/dist/chat/test-id.d.ts +16 -0
- package/dist/chat/useStreamAnnouncement.d.ts +19 -0
- package/dist/chunk-223D4727.cjs +50 -0
- package/dist/chunk-223D4727.cjs.map +1 -0
- package/dist/chunk-4EZVCGRL.js +803 -0
- package/dist/chunk-4EZVCGRL.js.map +1 -0
- package/dist/chunk-54Q3RNJU.cjs +516 -0
- package/dist/chunk-54Q3RNJU.cjs.map +1 -0
- package/dist/chunk-5B4PXAKI.cjs +287 -0
- package/dist/chunk-5B4PXAKI.cjs.map +1 -0
- package/dist/chunk-5TYEJOXY.js +1762 -0
- package/dist/chunk-5TYEJOXY.js.map +1 -0
- package/dist/chunk-6ALISABK.cjs +677 -0
- package/dist/chunk-6ALISABK.cjs.map +1 -0
- package/dist/chunk-6HIPFEID.cjs +574 -0
- package/dist/chunk-6HIPFEID.cjs.map +1 -0
- package/dist/chunk-76JDDMSP.js +31 -0
- package/dist/chunk-76JDDMSP.js.map +1 -0
- package/dist/chunk-7F6CBP3Z.js +12 -0
- package/dist/chunk-7F6CBP3Z.js.map +1 -0
- package/dist/chunk-7G2LJMUG.cjs +45 -0
- package/dist/chunk-7G2LJMUG.cjs.map +1 -0
- package/dist/chunk-7G3JNSJB.cjs +1809 -0
- package/dist/chunk-7G3JNSJB.cjs.map +1 -0
- package/dist/chunk-A2YAC22G.js +93 -0
- package/dist/chunk-A2YAC22G.js.map +1 -0
- package/dist/chunk-ADOKTJHV.cjs +262 -0
- package/dist/chunk-ADOKTJHV.cjs.map +1 -0
- package/dist/chunk-AXIZ2MDV.js +751 -0
- package/dist/chunk-AXIZ2MDV.js.map +1 -0
- package/dist/chunk-AZQDNYH4.js +2865 -0
- package/dist/chunk-AZQDNYH4.js.map +1 -0
- package/dist/chunk-C54XEN5T.cjs +34 -0
- package/dist/chunk-C54XEN5T.cjs.map +1 -0
- package/dist/chunk-CQCC7LE7.js +210 -0
- package/dist/chunk-CQCC7LE7.js.map +1 -0
- package/dist/chunk-CRIKTUEU.cjs +47 -0
- package/dist/chunk-CRIKTUEU.cjs.map +1 -0
- package/dist/chunk-CTZ5745I.js +564 -0
- package/dist/chunk-CTZ5745I.js.map +1 -0
- package/dist/chunk-DPLRHEJZ.js +78 -0
- package/dist/chunk-DPLRHEJZ.js.map +1 -0
- package/dist/chunk-DVLEQURC.js +672 -0
- package/dist/chunk-DVLEQURC.js.map +1 -0
- package/dist/chunk-ELR74ME6.cjs +68 -0
- package/dist/chunk-ELR74ME6.cjs.map +1 -0
- package/dist/{chunk-DBAUZD7A.cjs → chunk-FZQJ2S6P.cjs} +244 -1123
- package/dist/chunk-FZQJ2S6P.cjs.map +1 -0
- package/dist/chunk-G3G7LZPM.cjs +205 -0
- package/dist/chunk-G3G7LZPM.cjs.map +1 -0
- package/dist/chunk-GDFWJ73C.cjs +2973 -0
- package/dist/chunk-GDFWJ73C.cjs.map +1 -0
- package/dist/chunk-ITGHMJOM.js +5528 -0
- package/dist/chunk-ITGHMJOM.js.map +1 -0
- package/dist/chunk-K4BGOPGG.js +79 -0
- package/dist/chunk-K4BGOPGG.js.map +1 -0
- package/dist/chunk-KUA3BCT2.cjs +272 -0
- package/dist/chunk-KUA3BCT2.cjs.map +1 -0
- package/dist/chunk-LGBAZD37.js +341 -0
- package/dist/chunk-LGBAZD37.js.map +1 -0
- package/dist/chunk-MHVNT4J3.cjs +15 -0
- package/dist/chunk-MHVNT4J3.cjs.map +1 -0
- package/dist/chunk-MMYCZRKT.cjs +168 -0
- package/dist/chunk-MMYCZRKT.cjs.map +1 -0
- package/dist/chunk-NBV56SGU.js +42 -0
- package/dist/chunk-NBV56SGU.js.map +1 -0
- package/dist/chunk-NPLYHR2E.js +13 -0
- package/dist/chunk-NPLYHR2E.js.map +1 -0
- package/dist/chunk-NUNKSZKU.js +203 -0
- package/dist/chunk-NUNKSZKU.js.map +1 -0
- package/dist/chunk-OB5F4577.cjs +40 -0
- package/dist/chunk-OB5F4577.cjs.map +1 -0
- package/dist/chunk-OUW6G4O2.cjs +96 -0
- package/dist/chunk-OUW6G4O2.cjs.map +1 -0
- package/dist/chunk-OVEQERPO.js +66 -0
- package/dist/chunk-OVEQERPO.js.map +1 -0
- package/dist/chunk-P6GHJSLR.js +34 -0
- package/dist/chunk-P6GHJSLR.js.map +1 -0
- package/dist/chunk-PCB2BPN3.cjs +41 -0
- package/dist/chunk-PCB2BPN3.cjs.map +1 -0
- package/dist/chunk-PPCATBOY.cjs +15 -0
- package/dist/chunk-PPCATBOY.cjs.map +1 -0
- package/dist/chunk-QN42OA5J.js +887 -0
- package/dist/chunk-QN42OA5J.js.map +1 -0
- package/dist/{chunk-FZ2S6VAZ.js → chunk-RBXZYNVB.js} +223 -1102
- package/dist/chunk-RBXZYNVB.js.map +1 -0
- package/dist/chunk-RC6VTY2H.js +47 -0
- package/dist/chunk-RC6VTY2H.js.map +1 -0
- package/dist/chunk-RFIBUWLF.cjs +232 -0
- package/dist/chunk-RFIBUWLF.cjs.map +1 -0
- package/dist/chunk-S5T7ZTX2.js +266 -0
- package/dist/chunk-S5T7ZTX2.js.map +1 -0
- package/dist/chunk-S7PSMMRG.js +38 -0
- package/dist/chunk-S7PSMMRG.js.map +1 -0
- package/dist/chunk-SCFYPAG6.cjs +18 -0
- package/dist/chunk-SCFYPAG6.cjs.map +1 -0
- package/dist/chunk-SYDHKKRZ.cjs +818 -0
- package/dist/chunk-SYDHKKRZ.cjs.map +1 -0
- package/dist/chunk-TX2ZICS7.js +139 -0
- package/dist/chunk-TX2ZICS7.js.map +1 -0
- package/dist/chunk-TYZUCAT7.js +787 -0
- package/dist/chunk-TYZUCAT7.js.map +1 -0
- package/dist/chunk-U2E3WT3J.js +45 -0
- package/dist/chunk-U2E3WT3J.js.map +1 -0
- package/dist/chunk-UBNVIIBT.js +284 -0
- package/dist/chunk-UBNVIIBT.js.map +1 -0
- package/dist/chunk-UFHMLHIR.cjs +66 -0
- package/dist/chunk-UFHMLHIR.cjs.map +1 -0
- package/dist/chunk-UJE32SST.js +39 -0
- package/dist/chunk-UJE32SST.js.map +1 -0
- package/dist/chunk-ULWRNGGE.cjs +146 -0
- package/dist/chunk-ULWRNGGE.cjs.map +1 -0
- package/dist/chunk-UTWX2X2A.js +165 -0
- package/dist/chunk-UTWX2X2A.js.map +1 -0
- package/dist/chunk-UWGIB3VQ.js +64 -0
- package/dist/chunk-UWGIB3VQ.js.map +1 -0
- package/dist/chunk-V4ISCZJ7.cjs +207 -0
- package/dist/chunk-V4ISCZJ7.cjs.map +1 -0
- package/dist/chunk-VFUWWH52.cjs +83 -0
- package/dist/chunk-VFUWWH52.cjs.map +1 -0
- package/dist/chunk-VILAPTCB.js +259 -0
- package/dist/chunk-VILAPTCB.js.map +1 -0
- package/dist/chunk-VLCY46K6.cjs +82 -0
- package/dist/chunk-VLCY46K6.cjs.map +1 -0
- package/dist/chunk-VPPX5XUF.cjs +813 -0
- package/dist/chunk-VPPX5XUF.cjs.map +1 -0
- package/dist/chunk-WJMEXTVD.cjs +122 -0
- package/dist/chunk-WJMEXTVD.cjs.map +1 -0
- package/dist/chunk-WTNMWEBC.js +504 -0
- package/dist/chunk-WTNMWEBC.js.map +1 -0
- package/dist/chunk-WW6EOVZA.js +112 -0
- package/dist/chunk-WW6EOVZA.js.map +1 -0
- package/dist/chunk-XNBAXRY7.cjs +5673 -0
- package/dist/chunk-XNBAXRY7.cjs.map +1 -0
- package/dist/chunk-XQ7PKKDY.cjs +787 -0
- package/dist/chunk-XQ7PKKDY.cjs.map +1 -0
- package/dist/chunk-XZIYRKLW.cjs +347 -0
- package/dist/chunk-XZIYRKLW.cjs.map +1 -0
- package/dist/chunk-YBXCZEWS.js +187 -0
- package/dist/chunk-YBXCZEWS.js.map +1 -0
- package/dist/chunk-YDHO4AVL.js +16 -0
- package/dist/chunk-YDHO4AVL.js.map +1 -0
- package/dist/chunk-ZORQ5M3W.cjs +934 -0
- package/dist/chunk-ZORQ5M3W.cjs.map +1 -0
- package/dist/chunk-ZW6FPIFC.cjs +36 -0
- package/dist/chunk-ZW6FPIFC.cjs.map +1 -0
- package/dist/citations/CitationEditor.d.ts +58 -0
- package/dist/citations/PassagePill.d.ts +49 -0
- package/dist/citations/QuietMarks.d.ts +81 -0
- package/dist/citations/index.cjs +47 -0
- package/dist/citations/index.cjs.map +1 -0
- package/dist/citations/index.d.ts +3 -0
- package/dist/citations/index.js +6 -0
- package/dist/citations/index.js.map +1 -0
- package/dist/collaboration/contacts/AddContactsParts.d.ts +46 -0
- package/dist/collaboration/contacts/index.d.ts +1 -0
- package/dist/collaboration/direct-messages/DirectMessages.d.ts +33 -0
- package/dist/collaboration/direct-messages/DmParts.d.ts +139 -0
- package/dist/collaboration/direct-messages/index.d.ts +2 -0
- package/dist/collaboration/index.cjs +141 -0
- package/dist/collaboration/index.cjs.map +1 -0
- package/dist/collaboration/index.d.ts +5 -0
- package/dist/collaboration/index.js +8 -0
- package/dist/collaboration/index.js.map +1 -0
- package/dist/collaboration/mail/MailFolderTree.d.ts +34 -0
- package/dist/collaboration/mail/index.d.ts +2 -0
- package/dist/collaboration/mail/mailFolders.d.ts +25 -0
- package/dist/collaboration/members/WorkspaceMembers.d.ts +74 -0
- package/dist/collaboration/members/index.d.ts +1 -0
- package/dist/collaboration/sharing/ShareControl.d.ts +38 -0
- package/dist/collaboration/sharing/index.d.ts +1 -0
- package/dist/components/Accordion.d.ts +12 -0
- package/dist/components/ActionLink.d.ts +18 -0
- package/dist/components/AskBar.d.ts +48 -0
- package/dist/components/AvatarBlock.d.ts +9 -0
- package/dist/components/Banner.d.ts +12 -0
- package/dist/components/BlockImage.d.ts +18 -0
- package/dist/components/CTABanner.d.ts +17 -0
- package/dist/components/Callout.d.ts +9 -0
- package/dist/components/Chart.d.ts +27 -0
- package/dist/components/CollectionDetail.d.ts +23 -0
- package/dist/components/Columns.d.ts +11 -0
- package/dist/components/ContactForm.d.ts +42 -0
- package/dist/components/Container.d.ts +11 -0
- package/dist/components/DataTable.d.ts +47 -0
- package/dist/components/DataTableBlock.d.ts +26 -0
- package/dist/components/EmptyState.d.ts +11 -0
- package/dist/components/EntityChip.d.ts +24 -0
- package/dist/components/EntityIdentityBar.d.ts +90 -0
- package/dist/components/EntityTooltip.d.ts +43 -0
- package/dist/components/FAQ.d.ts +14 -0
- package/dist/components/FeatureGrid.d.ts +18 -0
- package/dist/components/Footer.d.ts +25 -0
- package/dist/components/Gallery.d.ts +15 -0
- package/dist/components/Hero.d.ts +35 -0
- package/dist/components/ListBlock.d.ts +10 -0
- package/dist/components/LogoCloud.d.ts +12 -0
- package/dist/components/MediaText.d.ts +15 -0
- package/dist/components/MemberAvatarStack.d.ts +36 -0
- package/dist/components/MetricCard.d.ts +28 -0
- package/dist/components/Navbar.d.ts +39 -0
- package/dist/components/PageHeader.d.ts +15 -0
- package/dist/components/PricingTable.d.ts +19 -0
- package/dist/components/RichTextBlock.d.ts +10 -0
- package/dist/components/SectionHeading.d.ts +11 -0
- package/dist/components/Spacer.d.ts +7 -0
- package/dist/components/StatGroup.d.ts +12 -0
- package/dist/components/Steps.d.ts +12 -0
- package/dist/components/Tabs.d.ts +15 -0
- package/dist/components/TeamGrid.d.ts +18 -0
- package/dist/components/Testimonial.d.ts +9 -0
- package/dist/components/TestimonialGrid.d.ts +13 -0
- package/dist/components/ToneBadge.d.ts +18 -0
- package/dist/components/Toolbar.d.ts +11 -0
- package/dist/components/UsageMeter.d.ts +21 -0
- package/dist/components/VideoEmbed.d.ts +16 -0
- package/dist/components/assetImage.d.ts +16 -0
- package/dist/components/assetResolver.d.ts +57 -0
- package/dist/components/blockLink.d.ts +26 -0
- package/dist/components/tones.d.ts +14 -0
- package/dist/connect/index.cjs +65 -0
- package/dist/connect/index.cjs.map +1 -0
- package/dist/connect/index.d.ts +8 -0
- package/dist/connect/index.js +28 -0
- package/dist/connect/index.js.map +1 -0
- package/dist/connection/ArbiAppProvider.d.ts +16 -0
- package/dist/connection/ConnectionProvider.d.ts +50 -0
- package/dist/connection/ai.d.ts +99 -0
- package/dist/connection/types.d.ts +54 -0
- package/dist/connection/useImageGen.d.ts +22 -0
- package/dist/facts/FactComposer.d.ts +75 -0
- package/dist/facts/FactDateInput.d.ts +34 -0
- package/dist/facts/FactLabelsCell.d.ts +35 -0
- package/dist/facts/FactPassages.d.ts +52 -0
- package/dist/facts/FactRowActions.d.ts +18 -0
- package/dist/facts/FactSearchParts.d.ts +80 -0
- package/dist/facts/FactSourceGroup.d.ts +26 -0
- package/dist/facts/FactTimelineViews.d.ts +37 -0
- package/dist/facts/FactsBulkBar.d.ts +53 -0
- package/dist/facts/FactsEmptyState.d.ts +38 -0
- package/dist/facts/FactsFieldsButton.d.ts +21 -0
- package/dist/facts/FactsFilterInput.d.ts +46 -0
- package/dist/facts/FactsTable.d.ts +28 -0
- package/dist/facts/FactsToolbar.d.ts +53 -0
- package/dist/facts/FactsViewToggle.d.ts +36 -0
- package/dist/facts/fact-date.d.ts +22 -0
- package/dist/facts/fact-text.d.ts +14 -0
- package/dist/facts/factColumns.d.ts +88 -0
- package/dist/facts/index.cjs +2372 -0
- package/dist/facts/index.cjs.map +1 -0
- package/dist/facts/index.d.ts +34 -0
- package/dist/facts/index.js +2316 -0
- package/dist/facts/index.js.map +1 -0
- package/dist/facts/timezone.d.ts +4 -0
- package/dist/files/AiReviewDialog.d.ts +77 -0
- package/dist/files/DocStatusIcon.d.ts +12 -0
- package/dist/files/DocumentGrid.d.ts +27 -0
- package/dist/files/Explorer.d.ts +10 -0
- package/dist/files/ExplorerSurface.d.ts +34 -0
- package/dist/files/ExplorerTile.d.ts +142 -0
- package/dist/files/ExportParts.d.ts +114 -0
- package/dist/files/FieldParts.d.ts +64 -0
- package/dist/files/FilesPage.d.ts +20 -0
- package/dist/files/FilesToolbar.d.ts +59 -0
- package/dist/files/FolderPicker.d.ts +82 -0
- package/dist/files/GridView.d.ts +59 -0
- package/dist/files/HtmlViewerParts.d.ts +183 -0
- package/dist/files/MoveToFolderDialog.d.ts +32 -0
- package/dist/files/RedlineParts.d.ts +72 -0
- package/dist/files/SelectionBar.d.ts +65 -0
- package/dist/files/StatusPill.d.ts +23 -0
- package/dist/files/TagPassagePanel.d.ts +60 -0
- package/dist/files/UploadDropzone.d.ts +33 -0
- package/dist/files/UploadFooter.d.ts +59 -0
- package/dist/files/UploadParts.d.ts +78 -0
- package/dist/files/UploadSources.d.ts +77 -0
- package/dist/files/VersionTimeline.d.ts +60 -0
- package/dist/files/ViewToggle.d.ts +49 -0
- package/dist/files/ViewerChrome.d.ts +155 -0
- package/dist/files/ViewerLayout.d.ts +32 -0
- package/dist/files/ViewerParts.d.ts +62 -0
- package/dist/files/bulk/BulkActionsBar.d.ts +76 -0
- package/dist/files/bulk/FolderFilterButton.d.ts +35 -0
- package/dist/files/bulk/index.d.ts +2 -0
- package/dist/files/cells/DocumentNameCell.d.ts +31 -0
- package/dist/files/cells/FolderCell.d.ts +25 -0
- package/dist/files/cells/HoverIconCell.d.ts +21 -0
- package/dist/files/cells/LabelMultiSelect.d.ts +50 -0
- package/dist/files/cells/RelatedDocsCell.d.ts +22 -0
- package/dist/files/cells/TagColumnParts.d.ts +29 -0
- package/dist/files/cells/index.d.ts +6 -0
- package/dist/files/documentGridLayout.d.ts +31 -0
- package/dist/files/grid-test-ids.d.ts +18 -0
- package/dist/files/import/CalendarImportRow.d.ts +26 -0
- package/dist/files/import/ImportParts.d.ts +114 -0
- package/dist/files/import/TaskSection.d.ts +51 -0
- package/dist/files/import/UrlInputDialogView.d.ts +63 -0
- package/dist/files/import/VendorLogo.d.ts +15 -0
- package/dist/files/import/index.d.ts +5 -0
- package/dist/files/index.cjs +7589 -0
- package/dist/files/index.cjs.map +1 -0
- package/dist/files/index.d.ts +34 -0
- package/dist/files/index.js +7374 -0
- package/dist/files/index.js.map +1 -0
- package/dist/files/page/FilesAddMenu.d.ts +30 -0
- package/dist/files/page/FilesPageParts.d.ts +24 -0
- package/dist/files/page/FilesPageTitle.d.ts +24 -0
- package/dist/files/page/index.d.ts +3 -0
- package/dist/files/tags/BulkTagEditor.d.ts +136 -0
- package/dist/files/tags/DocTagPopover.d.ts +113 -0
- package/dist/files/tags/TagManager.d.ts +54 -0
- package/dist/files/tags/index.d.ts +3 -0
- package/dist/files/views/FieldsEditorParts.d.ts +151 -0
- package/dist/files/views/FieldsManagerParts.d.ts +17 -0
- package/dist/files/views/TagFormParts.d.ts +109 -0
- package/dist/files/views/ViewSelectorMenu.d.ts +66 -0
- package/dist/files/views/fieldsEditorModel.d.ts +43 -0
- package/dist/files/views/index.d.ts +5 -0
- package/dist/home/ActionMenuDialog.d.ts +26 -0
- package/dist/home/AddFilesFirst.d.ts +22 -0
- package/dist/home/CardHeaderBar.d.ts +40 -0
- package/dist/home/CollapsibleSection.d.ts +43 -0
- package/dist/home/CreateTile.d.ts +17 -0
- package/dist/home/DashboardParts.d.ts +32 -0
- package/dist/home/FactsStrip.d.ts +41 -0
- package/dist/home/FoldSection.d.ts +19 -0
- package/dist/home/GettingStartedStrip.d.ts +49 -0
- package/dist/home/Greeting.d.ts +18 -0
- package/dist/home/HomeLayout.d.ts +28 -0
- package/dist/home/KeyValueRow.d.ts +43 -0
- package/dist/home/ProjectBandParts.d.ts +70 -0
- package/dist/home/QuickActionDialogHeader.d.ts +21 -0
- package/dist/home/RecentList.d.ts +48 -0
- package/dist/home/ScopePicker.d.ts +65 -0
- package/dist/home/StartTiles.d.ts +33 -0
- package/dist/home/index.cjs +854 -0
- package/dist/home/index.cjs.map +1 -0
- package/dist/home/index.d.ts +37 -0
- package/dist/home/index.js +763 -0
- package/dist/home/index.js.map +1 -0
- package/dist/home/sections.d.ts +33 -0
- package/dist/index.cjs +1932 -5547
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +71 -1716
- package/dist/index.js +142 -5316
- package/dist/index.js.map +1 -1
- package/dist/lib/balanced-columns.d.ts +8 -0
- package/dist/lib/format.d.ts +37 -0
- package/dist/lib/observe-resize.d.ts +6 -0
- package/dist/lib/password-strength.d.ts +24 -0
- package/dist/lib/sidebar-mode.d.ts +46 -0
- package/dist/lib/testid.d.ts +7 -0
- package/dist/lib/use-drawer.d.ts +11 -0
- package/dist/lib/useControllableState.d.ts +5 -0
- package/dist/lib/useDismissibleCard.d.ts +15 -0
- package/dist/lib/useListKeyNav.d.ts +42 -0
- package/dist/lib/useLongPaste.d.ts +15 -0
- package/dist/lib/useRestoreFocus.d.ts +11 -0
- package/dist/lib/useScopeSelection.d.ts +34 -0
- package/dist/nav/types.d.ts +19 -0
- package/dist/provider/BlocksProvider.d.ts +20 -0
- package/dist/provider/TooltipScope.d.ts +9 -0
- package/dist/record/index.cjs +2 -4
- package/dist/record/index.cjs.map +1 -1
- package/dist/record/index.d.ts +12 -16
- package/dist/record/index.js +2 -4
- package/dist/record/index.js.map +1 -1
- package/dist/retrieval/HighlightText.d.ts +21 -0
- package/dist/retrieval/SearchEmptyState.d.ts +39 -0
- package/dist/retrieval/SearchGroupHeader.d.ts +21 -0
- package/dist/retrieval/SearchHit.d.ts +36 -0
- package/dist/retrieval/SearchPage.d.ts +187 -0
- package/dist/retrieval/SearchPagination.d.ts +21 -0
- package/dist/retrieval/highlight.d.ts +21 -0
- package/dist/retrieval/index.cjs +160 -0
- package/dist/retrieval/index.cjs.map +1 -0
- package/dist/retrieval/index.d.ts +7 -0
- package/dist/retrieval/index.js +7 -0
- package/dist/retrieval/index.js.map +1 -0
- package/dist/settings/AccountDialogs.d.ts +89 -0
- package/dist/settings/AvatarPicker.d.ts +25 -0
- package/dist/settings/Billing.d.ts +113 -0
- package/dist/settings/ConfigSwitcherBar.d.ts +46 -0
- package/dist/settings/ConfirmDialog.d.ts +28 -0
- package/dist/settings/ConnectionCard.d.ts +58 -0
- package/dist/settings/ConversationSettingsParts.d.ts +53 -0
- package/dist/settings/DocumentPicker.d.ts +57 -0
- package/dist/settings/EmailWorkspaceDialogView.d.ts +60 -0
- package/dist/settings/ErrorDialog.d.ts +36 -0
- package/dist/settings/FloatingPanel.d.ts +32 -0
- package/dist/settings/JsonTree.d.ts +24 -0
- package/dist/settings/LogoutDialog.d.ts +51 -0
- package/dist/settings/ModalBreadcrumbHeader.d.ts +32 -0
- package/dist/settings/ModalScaffold.d.ts +60 -0
- package/dist/settings/MultiSelect.d.ts +111 -0
- package/dist/settings/NotificationCategoryList.d.ts +26 -0
- package/dist/settings/PanelFrame.d.ts +47 -0
- package/dist/settings/PasswordChangeDialog.d.ts +64 -0
- package/dist/settings/PlanBadge.d.ts +14 -0
- package/dist/settings/PlanCard.d.ts +97 -0
- package/dist/settings/PremiumModelsFrame.d.ts +17 -0
- package/dist/settings/ProfileCard.d.ts +67 -0
- package/dist/settings/Projects.d.ts +108 -0
- package/dist/settings/QuotaMeter.d.ts +31 -0
- package/dist/settings/ReferralCredit.d.ts +46 -0
- package/dist/settings/SegmentedControl.d.ts +20 -0
- package/dist/settings/ServerConnectionControls.d.ts +31 -0
- package/dist/settings/SettingsPanel.d.ts +61 -0
- package/dist/settings/SettingsSwitchRow.d.ts +21 -0
- package/dist/settings/SubscriptionParts.d.ts +215 -0
- package/dist/settings/SupportPanel.d.ts +32 -0
- package/dist/settings/SyncDialogParts.d.ts +155 -0
- package/dist/settings/ThreadPreviewDialog.d.ts +18 -0
- package/dist/settings/TipsEditorDialog.d.ts +94 -0
- package/dist/settings/TriStateFilterMenu.d.ts +66 -0
- package/dist/settings/Usage.d.ts +102 -0
- package/dist/settings/WelcomeDialog.d.ts +79 -0
- package/dist/settings/index.cjs +5131 -0
- package/dist/settings/index.cjs.map +1 -0
- package/dist/settings/index.d.ts +38 -0
- package/dist/settings/index.js +4922 -0
- package/dist/settings/index.js.map +1 -0
- package/dist/shell/ActionCluster.d.ts +28 -0
- package/dist/shell/AskField.d.ts +71 -0
- package/dist/shell/InfoBar.d.ts +20 -0
- package/dist/shell/MobileBars.d.ts +47 -0
- package/dist/shell/OfflinePill.d.ts +28 -0
- package/dist/shell/RemoteControlPill.d.ts +23 -0
- package/dist/shell/Shell.d.ts +123 -0
- package/dist/shell/Sidebar.d.ts +104 -0
- package/dist/shell/SidebarBadgeRow.d.ts +29 -0
- package/dist/shell/SidebarRowAction.d.ts +24 -0
- package/dist/shell/StatusRow.d.ts +20 -0
- package/dist/shell/TabHeader.d.ts +70 -0
- package/dist/shell/TipCard.d.ts +46 -0
- package/dist/shell/ToolButton.d.ts +12 -0
- package/dist/shell/Workspace.d.ts +90 -0
- package/dist/shell/index.cjs +187 -0
- package/dist/shell/index.cjs.map +1 -0
- package/dist/shell/index.d.ts +20 -0
- package/dist/shell/index.js +10 -0
- package/dist/shell/index.js.map +1 -0
- package/dist/shell/sidebar-context.d.ts +19 -0
- package/dist/shell/types.d.ts +48 -0
- package/dist/site/index.cjs +113 -90
- package/dist/site/index.d.ts +59 -4
- package/dist/site/index.js +8 -1
- package/dist/studio/PageRenderer.d.ts +35 -0
- package/dist/studio/Section.d.ts +24 -0
- package/dist/studio/StudioEditor.d.ts +32 -0
- package/dist/studio/aiFields.d.ts +17 -0
- package/dist/studio/blockKit.d.ts +36 -0
- package/dist/studio/blocksConfig.d.ts +42 -0
- package/dist/studio/imageFields.d.ts +14 -0
- package/dist/studio/index.cjs +3353 -0
- package/dist/studio/index.cjs.map +1 -0
- package/dist/studio/index.d.ts +32 -0
- package/dist/studio/index.js +3297 -0
- package/dist/studio/index.js.map +1 -0
- package/dist/studio/liveData.d.ts +4 -0
- package/dist/studio/liveWidgetRuntime.d.ts +41 -0
- package/dist/studio/persistence.d.ts +38 -0
- package/dist/studio/publish.d.ts +39 -0
- package/dist/studio/siteBlocks.d.ts +14 -0
- package/dist/studio/types.d.ts +46 -0
- package/dist/studio/websiteBlocks.d.ts +4 -0
- package/dist/studio/widgets.d.ts +20 -0
- package/dist/theme/ThemeEditor.d.ts +16 -0
- package/dist/theme/fontPairings.d.ts +48 -0
- package/dist/theme/store.d.ts +53 -0
- package/dist/theme/tokens.d.ts +105 -0
- package/dist/timeline/Timeline.d.ts +27 -0
- package/dist/timeline/TimelineCalendar.d.ts +54 -0
- package/dist/timeline/TimelineGantt.d.ts +71 -0
- package/dist/timeline/TimelineZoomControl.d.ts +17 -0
- package/dist/timeline/index.cjs +50 -0
- package/dist/timeline/index.cjs.map +1 -0
- package/dist/timeline/index.d.ts +13 -0
- package/dist/timeline/index.js +5 -0
- package/dist/timeline/index.js.map +1 -0
- package/dist/timeline/span.d.ts +29 -0
- package/dist/timeline/types.d.ts +30 -0
- package/dist/workspaces/WorkspaceBadges.d.ts +27 -0
- package/dist/workspaces/WorkspaceCard.d.ts +142 -0
- package/dist/workspaces/WorkspaceFormParts.d.ts +98 -0
- package/dist/workspaces/WorkspaceGroup.d.ts +31 -0
- package/dist/workspaces/WorkspaceSettingsParts.d.ts +70 -0
- package/dist/workspaces/index.cjs +690 -0
- package/dist/workspaces/index.cjs.map +1 -0
- package/dist/workspaces/index.d.ts +9 -0
- package/dist/workspaces/index.js +661 -0
- package/dist/workspaces/index.js.map +1 -0
- package/package.json +154 -9
- package/src/blocks.css +348 -0
- package/src/components/grid.css +60 -107
- package/src/source.css +20 -0
- package/src/studio/studio.css +3 -3
- package/src/tokens.css +226 -0
- package/dist/chunk-DBAUZD7A.cjs.map +0 -1
- package/dist/chunk-FZ2S6VAZ.js.map +0 -1
- package/dist/index-DduoEosi.d.cts +0 -846
- package/dist/index-DduoEosi.d.ts +0 -846
- package/dist/index.d.cts +0 -1717
- package/dist/record/index.d.cts +0 -96
- package/dist/site/index.d.cts +0 -4
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
/** Every fixed string of the active-sessions dialog. */
|
|
3
|
+
export interface ActiveSessionsDialogLabels {
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
noSessions: string;
|
|
7
|
+
thisDevice: string;
|
|
8
|
+
agent: string;
|
|
9
|
+
endSession: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const DEFAULT_ACTIVE_SESSIONS_DIALOG_LABELS: ActiveSessionsDialogLabels;
|
|
12
|
+
/** Every fixed string of the delete-account dialog. */
|
|
13
|
+
export interface DeleteAccountDialogLabels {
|
|
14
|
+
warningTitle: string;
|
|
15
|
+
/** Sentence start, before the emphasised part (keep the trailing space). */
|
|
16
|
+
warningBefore: string;
|
|
17
|
+
/** Emphasised (bold) part of the warning. */
|
|
18
|
+
warningEmphasis: string;
|
|
19
|
+
/** Sentence end, after the emphasised part. */
|
|
20
|
+
warningAfter: string;
|
|
21
|
+
blockersHeading: string;
|
|
22
|
+
cancel: string;
|
|
23
|
+
continue: string;
|
|
24
|
+
confirmTitle: string;
|
|
25
|
+
confirmDescription: string;
|
|
26
|
+
yourEmail: string;
|
|
27
|
+
back: string;
|
|
28
|
+
deleting: string;
|
|
29
|
+
deleteAccount: string;
|
|
30
|
+
}
|
|
31
|
+
export declare const DEFAULT_DELETE_ACCOUNT_DIALOG_LABELS: DeleteAccountDialogLabels;
|
|
32
|
+
export interface ActiveSessionView {
|
|
33
|
+
id: string;
|
|
34
|
+
/** Display name, e.g. "Browser session". */
|
|
35
|
+
name: string;
|
|
36
|
+
/** The session of this device: badged, and cannot be ended here. */
|
|
37
|
+
isCurrent: boolean;
|
|
38
|
+
isAgent: boolean;
|
|
39
|
+
/** Secondary line, e.g. "10.0.0.1 · expires in 2h · 3 workspaces". */
|
|
40
|
+
detail: string;
|
|
41
|
+
isTerminating: boolean;
|
|
42
|
+
/** Avatar glyph (monitor / bot). */
|
|
43
|
+
icon?: ReactNode;
|
|
44
|
+
}
|
|
45
|
+
export interface ActiveSessionsDialogProps {
|
|
46
|
+
open: boolean;
|
|
47
|
+
onOpenChange: (open: boolean) => void;
|
|
48
|
+
isLoading: boolean;
|
|
49
|
+
sessions: ActiveSessionView[];
|
|
50
|
+
onTerminate: (id: string) => void;
|
|
51
|
+
labels?: Partial<ActiveSessionsDialogLabels>;
|
|
52
|
+
/** Dialog test id (default `active-sessions-dialog`). */
|
|
53
|
+
testId?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Part ids; defaults are the current ids. `sessionItem` is a prefix (`<prefix>-<session id>`);
|
|
56
|
+
* `terminateSession` is a prefix (`<prefix>-<session id>-button`).
|
|
57
|
+
*/
|
|
58
|
+
testIds?: Partial<Record<'list' | 'sessionItem' | 'terminateSession', string>>;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Every session signed in to the account (this device, other devices, agents). Any but the current
|
|
62
|
+
* one can be ended; ending the current one belongs to the Logout flow.
|
|
63
|
+
*/
|
|
64
|
+
export declare function ActiveSessionsDialog({ open, onOpenChange, isLoading, sessions, onTerminate, labels, testId, testIds, }: ActiveSessionsDialogProps): import("react").JSX.Element;
|
|
65
|
+
export interface DeleteAccountBlocker {
|
|
66
|
+
key: string;
|
|
67
|
+
content: ReactNode;
|
|
68
|
+
}
|
|
69
|
+
export interface DeleteAccountDialogProps {
|
|
70
|
+
open: boolean;
|
|
71
|
+
onClose: () => void;
|
|
72
|
+
step: 'warning' | 'confirm';
|
|
73
|
+
/** Reasons the account cannot be deleted yet; Continue is disabled while any exist. */
|
|
74
|
+
blockers: DeleteAccountBlocker[];
|
|
75
|
+
onContinue: () => void;
|
|
76
|
+
onBack: () => void;
|
|
77
|
+
userEmail: string;
|
|
78
|
+
confirmEmail: string;
|
|
79
|
+
onConfirmEmailChange: (email: string) => void;
|
|
80
|
+
isDeleting: boolean;
|
|
81
|
+
onSubmit: () => void;
|
|
82
|
+
labels?: Partial<DeleteAccountDialogLabels>;
|
|
83
|
+
/** Dialog test id (default `delete-account-dialog`). */
|
|
84
|
+
testId?: string;
|
|
85
|
+
/** Part ids; defaults are the current ids. */
|
|
86
|
+
testIds?: Partial<Record<'cancel' | 'continue' | 'emailInput' | 'back' | 'submit', string>>;
|
|
87
|
+
}
|
|
88
|
+
/** Two-step account deletion: a warning (with blockers), then type-your-email to confirm. */
|
|
89
|
+
export declare function DeleteAccountDialog({ open, onClose, step, blockers, onContinue, onBack, userEmail, confirmEmail, onConfirmEmailChange, isDeleting, onSubmit, labels, testId, testIds, }: DeleteAccountDialogProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Every fixed string of the avatar picker. */
|
|
2
|
+
export interface AvatarPickerLabels {
|
|
3
|
+
uploadingPicture: string;
|
|
4
|
+
changeProfilePicture: string;
|
|
5
|
+
change: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const DEFAULT_AVATAR_PICKER_LABELS: AvatarPickerLabels;
|
|
8
|
+
export interface AvatarPickerProps {
|
|
9
|
+
labels?: Partial<AvatarPickerLabels>;
|
|
10
|
+
/** Image URL / data URL; the initials show when absent. */
|
|
11
|
+
pictureUrl?: string | null;
|
|
12
|
+
initials: string;
|
|
13
|
+
/** Background class of the initials fallback (a stable per-user colour). */
|
|
14
|
+
fallbackClassName?: string;
|
|
15
|
+
isUploading?: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** A file was chosen; the host validates, crops and uploads it. */
|
|
18
|
+
onFileChosen: (file: File) => void;
|
|
19
|
+
testId?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Profile picture with a change affordance. A permanent camera mark says the picture is tappable on
|
|
23
|
+
* touch screens; the overlay (revealed on hover/focus) is the actual control.
|
|
24
|
+
*/
|
|
25
|
+
export declare function AvatarPicker({ pictureUrl, initials, fallbackClassName, isUploading, disabled, onFileChosen, testId, labels, }: AvatarPickerProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { type ReactNode, type Ref } from 'react';
|
|
2
|
+
/** Every fixed string of the receipts dialog. */
|
|
3
|
+
export interface InvoicesDialogLabels {
|
|
4
|
+
title: (projectName: string) => string;
|
|
5
|
+
description: (projectName: string) => string;
|
|
6
|
+
noReceipts: string;
|
|
7
|
+
paid: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const DEFAULT_INVOICES_DIALOG_LABELS: InvoicesDialogLabels;
|
|
10
|
+
/** Every fixed string of the daily-cap field. */
|
|
11
|
+
export interface DailyCapFieldLabels {
|
|
12
|
+
noLimit: string;
|
|
13
|
+
ariaLabel: string;
|
|
14
|
+
unit: string;
|
|
15
|
+
save: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const DEFAULT_DAILY_CAP_FIELD_LABELS: DailyCapFieldLabels;
|
|
18
|
+
/** Every fixed string of the member project row. */
|
|
19
|
+
export interface MemberProjectRowLabels {
|
|
20
|
+
noDailyLimit: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const DEFAULT_MEMBER_PROJECT_ROW_LABELS: MemberProjectRowLabels;
|
|
23
|
+
/** Every fixed string of the inline name editor. */
|
|
24
|
+
export interface InlineNameEditorLabels {
|
|
25
|
+
saveName: string;
|
|
26
|
+
cancelRename: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const DEFAULT_INLINE_NAME_EDITOR_LABELS: InlineNameEditorLabels;
|
|
29
|
+
/** Every fixed string of the project card. */
|
|
30
|
+
export interface ProjectCardViewLabels {
|
|
31
|
+
collapseProject: string;
|
|
32
|
+
expandProject: string;
|
|
33
|
+
}
|
|
34
|
+
export declare const DEFAULT_PROJECT_CARD_VIEW_LABELS: ProjectCardViewLabels;
|
|
35
|
+
export interface InvoiceRowView {
|
|
36
|
+
key: string;
|
|
37
|
+
date: string;
|
|
38
|
+
/** Formatted amount, e.g. "$50.00". */
|
|
39
|
+
amount: string;
|
|
40
|
+
status: string;
|
|
41
|
+
isPaid: boolean;
|
|
42
|
+
/** Receipt (paid) or invoice (unpaid) link; omitted when none exists. */
|
|
43
|
+
href?: string;
|
|
44
|
+
linkLabel?: string;
|
|
45
|
+
}
|
|
46
|
+
export interface InvoicesDialogProps {
|
|
47
|
+
open: boolean;
|
|
48
|
+
onOpenChange: (open: boolean) => void;
|
|
49
|
+
projectName: string;
|
|
50
|
+
isLoading: boolean;
|
|
51
|
+
invoices: InvoiceRowView[];
|
|
52
|
+
labels?: Partial<InvoicesDialogLabels>;
|
|
53
|
+
}
|
|
54
|
+
/** Receipts of a project: date, amount, status and a link to each. */
|
|
55
|
+
export declare function InvoicesDialog({ open, onOpenChange, projectName, isLoading, invoices, labels, }: InvoicesDialogProps): import("react").JSX.Element;
|
|
56
|
+
export interface DailyCapFieldProps {
|
|
57
|
+
value: string;
|
|
58
|
+
onChange: (value: string) => void;
|
|
59
|
+
onSave: () => void;
|
|
60
|
+
canSave: boolean;
|
|
61
|
+
isSaving?: boolean;
|
|
62
|
+
labels?: Partial<DailyCapFieldLabels>;
|
|
63
|
+
}
|
|
64
|
+
/** Per-collaborator daily credit cap input; Enter or Save commits, empty means no limit. */
|
|
65
|
+
export declare function DailyCapField({ value, onChange, onSave, canSave, isSaving, labels, }: DailyCapFieldProps): import("react").JSX.Element;
|
|
66
|
+
export interface MemberProjectRowProps {
|
|
67
|
+
icon: ReactNode;
|
|
68
|
+
name: string;
|
|
69
|
+
/** Owner avatar. */
|
|
70
|
+
owner?: ReactNode;
|
|
71
|
+
/** The caller's daily allowance in this project; `null` means no limit. */
|
|
72
|
+
allowance: {
|
|
73
|
+
text: string;
|
|
74
|
+
pct: number;
|
|
75
|
+
} | null;
|
|
76
|
+
labels?: Partial<MemberProjectRowLabels>;
|
|
77
|
+
}
|
|
78
|
+
/** Slim row for a project the user belongs to but does not own. */
|
|
79
|
+
export declare function MemberProjectRow({ icon, name, owner, allowance, labels }: MemberProjectRowProps): import("react").JSX.Element;
|
|
80
|
+
export interface InlineNameEditorProps {
|
|
81
|
+
value: string;
|
|
82
|
+
onChange: (value: string) => void;
|
|
83
|
+
onSave: () => void;
|
|
84
|
+
onCancel: () => void;
|
|
85
|
+
labels?: Partial<InlineNameEditorLabels>;
|
|
86
|
+
}
|
|
87
|
+
/** In-row rename: input with confirm and cancel buttons (Enter saves, Escape cancels). */
|
|
88
|
+
export declare function InlineNameEditor({ value, onChange, onSave, onCancel, labels, }: InlineNameEditorProps): import("react").JSX.Element;
|
|
89
|
+
export interface ProjectCardViewProps {
|
|
90
|
+
expanded: boolean;
|
|
91
|
+
onToggleExpanded: () => void;
|
|
92
|
+
/** Ref to the header row (for scroll-into-view). */
|
|
93
|
+
rowRef?: Ref<HTMLDivElement>;
|
|
94
|
+
/** Project icon, tinted by billing state. */
|
|
95
|
+
icon: ReactNode;
|
|
96
|
+
/** Name + owner, or the inline editor. */
|
|
97
|
+
identity: ReactNode;
|
|
98
|
+
/** Rename / delete buttons. */
|
|
99
|
+
actions?: ReactNode;
|
|
100
|
+
/** Plan badge. */
|
|
101
|
+
badge?: ReactNode;
|
|
102
|
+
/** Upgrade / change plan / invoices buttons. */
|
|
103
|
+
buttons?: ReactNode;
|
|
104
|
+
/** Inline quota summary. */
|
|
105
|
+
summary?: ReactNode;
|
|
106
|
+
/** Shown when expanded. */
|
|
107
|
+
children?: ReactNode;
|
|
108
|
+
/** Dialogs owned by the card (rendered after the content). */
|
|
109
|
+
overlays?: ReactNode;
|
|
110
|
+
labels?: Partial<ProjectCardViewLabels>;
|
|
111
|
+
}
|
|
112
|
+
/** Collapsible project card: header row of slots, expandable detail underneath. */
|
|
113
|
+
export declare function ProjectCardView({ expanded, onToggleExpanded, rowRef, icon, identity, actions, badge, buttons, summary, children, overlays, labels, }: ProjectCardViewProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/** What a saved configuration is, relative to the conversation: its origin, last used, or factory. */
|
|
2
|
+
export type ConfigOptionMarker = 'default' | 'original' | 'last-used';
|
|
3
|
+
export interface ConfigOption {
|
|
4
|
+
value: string;
|
|
5
|
+
title: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
marker?: ConfigOptionMarker;
|
|
8
|
+
}
|
|
9
|
+
/** Every fixed string of the bar. */
|
|
10
|
+
export interface ConfigSwitcherBarLabels {
|
|
11
|
+
placeholder: string;
|
|
12
|
+
save: string;
|
|
13
|
+
saving: string;
|
|
14
|
+
delete: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const DEFAULT_CONFIG_SWITCHER_BAR_LABELS: ConfigSwitcherBarLabels;
|
|
17
|
+
export interface ConfigSwitcherBarProps {
|
|
18
|
+
options: ConfigOption[];
|
|
19
|
+
/** Value of the selected option (`unsaved` is added by the bar while `hasUnsavedChanges`). */
|
|
20
|
+
value: string;
|
|
21
|
+
onSelect: (value: string) => void;
|
|
22
|
+
/** Offers the transient "Unsaved Changes" entry on top. */
|
|
23
|
+
hasUnsavedChanges: boolean;
|
|
24
|
+
unsavedTitle?: string;
|
|
25
|
+
unsavedSubtitle?: string;
|
|
26
|
+
/** Show the name input and the save button. */
|
|
27
|
+
showNameField: boolean;
|
|
28
|
+
name: string;
|
|
29
|
+
onNameChange: (name: string) => void;
|
|
30
|
+
namePlaceholder: string;
|
|
31
|
+
/** `Save` for new, `Rename` for a loaded configuration. */
|
|
32
|
+
saveLabel: string;
|
|
33
|
+
onSave: () => void;
|
|
34
|
+
isSaving: boolean;
|
|
35
|
+
/** Show the delete button (an existing configuration is loaded). */
|
|
36
|
+
canDelete: boolean;
|
|
37
|
+
onDelete: () => void;
|
|
38
|
+
isDeleting: boolean;
|
|
39
|
+
nameTestId?: string;
|
|
40
|
+
saveTestId?: string;
|
|
41
|
+
deleteTestId?: string;
|
|
42
|
+
labels?: Partial<ConfigSwitcherBarLabels>;
|
|
43
|
+
className?: string;
|
|
44
|
+
}
|
|
45
|
+
/** Footer bar to pick, name, save and delete a saved configuration. */
|
|
46
|
+
export declare function ConfigSwitcherBar({ options, value, onSelect, hasUnsavedChanges, unsavedTitle, unsavedSubtitle, showNameField, name, onNameChange, namePlaceholder, saveLabel, onSave, isSaving, canDelete, onDelete, isDeleting, nameTestId, saveTestId, deleteTestId, labels, className, }: ConfigSwitcherBarProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Every fixed string of the confirm dialog. `confirmText` / `cancelText` props win. */
|
|
2
|
+
export interface ConfirmDialogLabels {
|
|
3
|
+
confirm: string;
|
|
4
|
+
cancel: string;
|
|
5
|
+
pleaseWait: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const DEFAULT_CONFIRM_DIALOG_LABELS: ConfirmDialogLabels;
|
|
8
|
+
export interface ConfirmDialogProps {
|
|
9
|
+
labels?: Partial<ConfirmDialogLabels>;
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
onConfirm: () => void;
|
|
13
|
+
title: string;
|
|
14
|
+
description: string;
|
|
15
|
+
confirmText?: string;
|
|
16
|
+
cancelText?: string;
|
|
17
|
+
variant?: 'destructive' | 'default';
|
|
18
|
+
isLoading?: boolean;
|
|
19
|
+
/** Dialog test id (default `confirmation-modal`). */
|
|
20
|
+
testId?: string;
|
|
21
|
+
/** Button ids; defaults are the current ids. */
|
|
22
|
+
testIds?: Partial<Record<'cancel' | 'confirm', string>>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Declarative yes/no confirmation with a loading state. An `alertdialog`: initial focus is on
|
|
26
|
+
* Cancel (the safe action) and clicking outside does not dismiss it; Escape and Cancel do.
|
|
27
|
+
*/
|
|
28
|
+
export declare function ConfirmDialog({ isOpen, onClose, onConfirm, title, description, confirmText, cancelText, variant, isLoading, labels, testId, testIds, }: ConfirmDialogProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* - `available`: not connected, the user can connect.
|
|
3
|
+
* - `connected`: connected.
|
|
4
|
+
* - `host`: provided by the host account, no personal login.
|
|
5
|
+
*/
|
|
6
|
+
export type ConnectionCardStatus = 'available' | 'connected' | 'organisation';
|
|
7
|
+
/** Every fixed string of a connection card. */
|
|
8
|
+
export interface ConnectionCardLabels {
|
|
9
|
+
connectedAs: (identity: string) => string;
|
|
10
|
+
justConnected: string;
|
|
11
|
+
connected: string;
|
|
12
|
+
disconnect: string;
|
|
13
|
+
connect: string;
|
|
14
|
+
organisationAccount: string;
|
|
15
|
+
readOnlyLead: string;
|
|
16
|
+
readOnlyBody: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const DEFAULT_CONNECTION_CARD_LABELS: ConnectionCardLabels;
|
|
19
|
+
export interface ConnectionCardView {
|
|
20
|
+
/** Stable key (vendor key); drives the test ids. */
|
|
21
|
+
id: string;
|
|
22
|
+
title: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
iconUrl?: string | null;
|
|
25
|
+
iconAlt?: string;
|
|
26
|
+
status: ConnectionCardStatus;
|
|
27
|
+
/** Right after the OAuth return: shows "Just connected" until the list catches up. */
|
|
28
|
+
justConnected?: boolean;
|
|
29
|
+
/** "Connected as {identity}". */
|
|
30
|
+
identity?: string | null;
|
|
31
|
+
/** Amber warning line, e.g. a stale token scheme. */
|
|
32
|
+
warning?: string;
|
|
33
|
+
/** Muted note line, e.g. "Enabled for your organisation". */
|
|
34
|
+
note?: string;
|
|
35
|
+
/** Show the read-only reassurance (mailbox / file connectors). */
|
|
36
|
+
showReadOnlyNotice?: boolean;
|
|
37
|
+
isDisconnecting?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface ConnectionCardProps {
|
|
40
|
+
connection: ConnectionCardView;
|
|
41
|
+
onConnect: (id: string) => void;
|
|
42
|
+
onDisconnect: (id: string) => void;
|
|
43
|
+
labels?: Partial<ConnectionCardLabels>;
|
|
44
|
+
}
|
|
45
|
+
/** One external app: icon, name, description, status and a Connect / Disconnect action. */
|
|
46
|
+
export declare function ConnectionCard({ connection, onConnect, onDisconnect, labels, }: ConnectionCardProps): import("react").JSX.Element;
|
|
47
|
+
/** Centred "nothing here yet" placeholder inside a settings card. */
|
|
48
|
+
export declare function ConnectionsEmpty({ message }: {
|
|
49
|
+
message: string;
|
|
50
|
+
}): import("react").JSX.Element;
|
|
51
|
+
/** Inline loading line. */
|
|
52
|
+
export declare function ConnectionsLoading({ message }: {
|
|
53
|
+
message: string;
|
|
54
|
+
}): import("react").JSX.Element;
|
|
55
|
+
/** Inline destructive error line. */
|
|
56
|
+
export declare function ConnectionsError({ message }: {
|
|
57
|
+
message: string;
|
|
58
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
/** Longest title that can be saved. */
|
|
3
|
+
export declare const CONVERSATION_TITLE_MAX = 50;
|
|
4
|
+
/** Every fixed string of the conversation title section. */
|
|
5
|
+
export interface ConversationTitleSectionLabels {
|
|
6
|
+
title: string;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
share: string;
|
|
9
|
+
shared: string;
|
|
10
|
+
/** Tooltip on the share button for non-owners. */
|
|
11
|
+
ownerOnlyShare: string;
|
|
12
|
+
characters: (count: number, max: number) => string;
|
|
13
|
+
saving: string;
|
|
14
|
+
ownerOnlyEdit: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const DEFAULT_CONVERSATION_TITLE_SECTION_LABELS: ConversationTitleSectionLabels;
|
|
17
|
+
export interface ConversationTitleSectionProps {
|
|
18
|
+
title: string;
|
|
19
|
+
onTitleChange: (title: string) => void;
|
|
20
|
+
/** Blur with a valid title: the host saves it. */
|
|
21
|
+
onTitleCommit: () => void;
|
|
22
|
+
isOwner: boolean;
|
|
23
|
+
isShared: boolean;
|
|
24
|
+
isSharing: boolean;
|
|
25
|
+
isSavingTitle: boolean;
|
|
26
|
+
/** The share button was pressed (the host confirms, then shares). */
|
|
27
|
+
onShare: () => void;
|
|
28
|
+
inputTestId?: string;
|
|
29
|
+
shareTestId?: string;
|
|
30
|
+
labels?: Partial<ConversationTitleSectionLabels>;
|
|
31
|
+
}
|
|
32
|
+
/** Title input with a share button and a character counter; read-only for non-owners. */
|
|
33
|
+
export declare function ConversationTitleSection({ title, onTitleChange, onTitleCommit, isOwner, isShared, isSharing, isSavingTitle, onShare, inputTestId, shareTestId, labels, }: ConversationTitleSectionProps): import("react").JSX.Element;
|
|
34
|
+
/** Every fixed string of the model selection section. */
|
|
35
|
+
export interface ModelSelectionSectionLabels {
|
|
36
|
+
title: string;
|
|
37
|
+
description: string;
|
|
38
|
+
useDefaults: string;
|
|
39
|
+
auto: string;
|
|
40
|
+
default: string;
|
|
41
|
+
lastUsed: string;
|
|
42
|
+
deepThinking: string;
|
|
43
|
+
}
|
|
44
|
+
export declare const DEFAULT_MODEL_SELECTION_SECTION_LABELS: ModelSelectionSectionLabels;
|
|
45
|
+
export interface ModelSelectionSectionProps {
|
|
46
|
+
/** The model picker (its logic stays in the host). */
|
|
47
|
+
selector: ReactNode;
|
|
48
|
+
onUseDefaults: () => void;
|
|
49
|
+
defaultsTestId?: string;
|
|
50
|
+
labels?: Partial<ModelSelectionSectionLabels>;
|
|
51
|
+
}
|
|
52
|
+
/** Model picker next to a "Use defaults" button, with the legend of the picker's icons. */
|
|
53
|
+
export declare function ModelSelectionSection({ selector, onUseDefaults, defaultsTestId, labels, }: ModelSelectionSectionProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/** A document the picker can offer. `pages`/`tokens` are null for images and unparsed files. */
|
|
2
|
+
export interface PickerDocument {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
fileName?: string | null;
|
|
6
|
+
pages?: number | null;
|
|
7
|
+
tokens?: number | null;
|
|
8
|
+
}
|
|
9
|
+
/** A heading with its documents, already sorted. A group without heading is unlabeled. */
|
|
10
|
+
export interface PickerGroup {
|
|
11
|
+
id: string;
|
|
12
|
+
heading?: string;
|
|
13
|
+
docs: PickerDocument[];
|
|
14
|
+
}
|
|
15
|
+
/** Every fixed string of the document picker. */
|
|
16
|
+
export interface DocumentPickerLabels {
|
|
17
|
+
placeholder: string;
|
|
18
|
+
searchDocuments: string;
|
|
19
|
+
noDocuments: string;
|
|
20
|
+
selectedAsSource: string;
|
|
21
|
+
selectAsSource: string;
|
|
22
|
+
largeDocument: string;
|
|
23
|
+
tooLong: string;
|
|
24
|
+
pages: (n: number) => string;
|
|
25
|
+
tokens: (n: number) => string;
|
|
26
|
+
}
|
|
27
|
+
export declare const DEFAULT_DOCUMENT_PICKER_LABELS: DocumentPickerLabels;
|
|
28
|
+
export interface DocumentPickerProps {
|
|
29
|
+
groups: PickerGroup[];
|
|
30
|
+
/** The picked document (single mode). */
|
|
31
|
+
value: string;
|
|
32
|
+
onValueChange: (id: string) => void;
|
|
33
|
+
/** The picked document's details, shown under the picker (pages, tokens, size warnings). */
|
|
34
|
+
selected?: PickerDocument;
|
|
35
|
+
/**
|
|
36
|
+
* Ids already chosen. Supplying this switches to MULTI mode: the search box is inline, the
|
|
37
|
+
* list stays open on select and ticks what is in.
|
|
38
|
+
*/
|
|
39
|
+
selectedIds?: string[];
|
|
40
|
+
/**
|
|
41
|
+
* Splits each row in two: a click OPENS the document (this callback) and a leading checkbox
|
|
42
|
+
* selects it as a source via `onValueChange`. Requires `selectedIds`.
|
|
43
|
+
*/
|
|
44
|
+
onOpenDocument?: (id: string) => void;
|
|
45
|
+
/** The document open in the viewer: its row is inverted (multi mode). */
|
|
46
|
+
viewingId?: string | null;
|
|
47
|
+
/** While true the list is shut (a neighbouring popup must not overlay it). */
|
|
48
|
+
forceClosed?: boolean;
|
|
49
|
+
/** Extra classes of the results list, e.g. a taller `max-h-*` when the picker is the surface. */
|
|
50
|
+
listClassName?: string;
|
|
51
|
+
labels?: Partial<DocumentPickerLabels>;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Searchable document picker. Single mode is a button that opens a searchable list; multi mode
|
|
55
|
+
* puts the search inline. After a pick it shows page/token counts with size warnings.
|
|
56
|
+
*/
|
|
57
|
+
export declare function DocumentPicker({ groups, value, onValueChange, selected, selectedIds, onOpenDocument, viewingId, forceClosed, listClassName, labels, }: DocumentPickerProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
/** Every fixed string of the email-this-workspace dialog. */
|
|
3
|
+
export interface EmailWorkspaceDialogLabels {
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
compose: string;
|
|
7
|
+
paHintBefore: string;
|
|
8
|
+
paHintAfter: string;
|
|
9
|
+
checking: string;
|
|
10
|
+
noAssistant: string;
|
|
11
|
+
authorizedExpires: (ttl: string) => string;
|
|
12
|
+
end: string;
|
|
13
|
+
authorizePrompt: (ttl?: string) => string;
|
|
14
|
+
authorize: string;
|
|
15
|
+
authorizing: string;
|
|
16
|
+
advanced: string;
|
|
17
|
+
alreadyGranted: string;
|
|
18
|
+
standingWarning: string;
|
|
19
|
+
grant: string;
|
|
20
|
+
granting: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const DEFAULT_EMAIL_WORKSPACE_DIALOG_LABELS: EmailWorkspaceDialogLabels;
|
|
23
|
+
/** Where the member's Assistant stands for this workspace. */
|
|
24
|
+
export type EmailAssistantAccess = {
|
|
25
|
+
kind: 'loading';
|
|
26
|
+
} | {
|
|
27
|
+
kind: 'none';
|
|
28
|
+
} | {
|
|
29
|
+
kind: 'session';
|
|
30
|
+
expiresIn: string;
|
|
31
|
+
isEnding: boolean;
|
|
32
|
+
onEnd: () => void;
|
|
33
|
+
} | {
|
|
34
|
+
kind: 'idle';
|
|
35
|
+
defaultTtl?: string;
|
|
36
|
+
isAuthorizing: boolean;
|
|
37
|
+
onAuthorize: () => void;
|
|
38
|
+
};
|
|
39
|
+
export interface EmailWorkspaceDialogViewProps {
|
|
40
|
+
open: boolean;
|
|
41
|
+
onOpenChange: (open: boolean) => void;
|
|
42
|
+
/** Reply address of the workspace. */
|
|
43
|
+
email: string;
|
|
44
|
+
mailtoHref: string;
|
|
45
|
+
/** Deployment domain shown in the general-questions hint. */
|
|
46
|
+
paDomain: string;
|
|
47
|
+
/** Copy-to-clipboard control, rendered beside the address. */
|
|
48
|
+
copyButton: ReactNode;
|
|
49
|
+
/** Members only: the Assistant authorize / standing-access panel. Omit for non-members. */
|
|
50
|
+
access?: EmailAssistantAccess;
|
|
51
|
+
/** Standing access (Advanced tier). Only offered once an Assistant exists. */
|
|
52
|
+
standing?: {
|
|
53
|
+
alreadyGranted: boolean;
|
|
54
|
+
isGranting: boolean;
|
|
55
|
+
onGrant: () => void;
|
|
56
|
+
};
|
|
57
|
+
labels?: Partial<EmailWorkspaceDialogLabels>;
|
|
58
|
+
}
|
|
59
|
+
/** Presentation of the "Email this workspace" dialog: address, compose, Assistant access. */
|
|
60
|
+
export declare function EmailWorkspaceDialogView({ open, onOpenChange, email, mailtoHref, paDomain, copyButton, access, standing, labels, }: EmailWorkspaceDialogViewProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/** Every fixed string of the crash dialog. */
|
|
3
|
+
export interface ErrorDialogLabels {
|
|
4
|
+
title: string;
|
|
5
|
+
srDescription: string;
|
|
6
|
+
reportHint: string;
|
|
7
|
+
refreshHint: string;
|
|
8
|
+
hideDetails: string;
|
|
9
|
+
viewDetails: string;
|
|
10
|
+
toggleDetailsAria: string;
|
|
11
|
+
copyAria: string;
|
|
12
|
+
copy: string;
|
|
13
|
+
copied: string;
|
|
14
|
+
refreshSession: string;
|
|
15
|
+
logout: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const DEFAULT_ERROR_DIALOG_LABELS: ErrorDialogLabels;
|
|
18
|
+
/** Developer-only error report: collapsible text and a copy button. */
|
|
19
|
+
export interface ErrorDialogDetails {
|
|
20
|
+
text: string;
|
|
21
|
+
isShown: boolean;
|
|
22
|
+
isCopied: boolean;
|
|
23
|
+
onToggle: () => void;
|
|
24
|
+
onCopy: () => void;
|
|
25
|
+
}
|
|
26
|
+
export interface ErrorDialogViewProps {
|
|
27
|
+
/** Present only for developers; hides the report entirely otherwise. */
|
|
28
|
+
details?: ErrorDialogDetails;
|
|
29
|
+
/** "Report error" control (it owns its own submit flow). */
|
|
30
|
+
report: ReactNode;
|
|
31
|
+
onRefresh: () => void;
|
|
32
|
+
onLogout: () => void;
|
|
33
|
+
labels?: Partial<ErrorDialogLabels>;
|
|
34
|
+
}
|
|
35
|
+
/** Non-dismissible crash dialog: explanation, optional report, report / refresh / logout. */
|
|
36
|
+
export declare function ErrorDialogView({ details, report, onRefresh, onLogout, labels, }: ErrorDialogViewProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { MouseEventHandler, ReactNode } from 'react';
|
|
2
|
+
/** Where a panel is placed: pinned beside the page, full width, floating, or its own window. */
|
|
3
|
+
export type FloatingPanelMode = 'docked' | 'main' | 'overlay' | 'popout';
|
|
4
|
+
export interface FloatingPanelControls {
|
|
5
|
+
/** The mode switcher + close button, for children that render their own header. */
|
|
6
|
+
modeSwitcher: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface FloatingPanelProps {
|
|
9
|
+
/** Stable id of the panel (also the id of its single header tab). */
|
|
10
|
+
panelId: string;
|
|
11
|
+
mode: FloatingPanelMode;
|
|
12
|
+
title: string;
|
|
13
|
+
subtitle?: string;
|
|
14
|
+
headerIcon?: ReactNode;
|
|
15
|
+
headerActions?: ReactNode;
|
|
16
|
+
/** Label of the docked/main header tab (defaults to the title). */
|
|
17
|
+
tabLabel?: ReactNode;
|
|
18
|
+
/** Mode switcher + close button, supplied by the host so it owns window management. */
|
|
19
|
+
modeSwitcher: ReactNode;
|
|
20
|
+
/** Content, or a render function for children that embed `modeSwitcher` in their own header. */
|
|
21
|
+
children: ReactNode | ((controls: FloatingPanelControls) => ReactNode);
|
|
22
|
+
/** Sticky footer (e.g. Cancel / Apply). */
|
|
23
|
+
footer?: ReactNode;
|
|
24
|
+
/** Click anywhere on the panel (the host tracks which panel is focused). */
|
|
25
|
+
onPanelClick?: MouseEventHandler<HTMLDivElement>;
|
|
26
|
+
className?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Presentational frame of a floating panel: header (title / tab + mode switcher), scrolling
|
|
30
|
+
* body and optional footer. Placement and window management live in the host.
|
|
31
|
+
*/
|
|
32
|
+
export declare function FloatingPanel({ panelId, mode, title, subtitle, headerIcon, headerActions, tabLabel, modeSwitcher, children, footer, onPanelClick, className, }: FloatingPanelProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** Display hint for one field (the host derives it from its schema). */
|
|
2
|
+
export interface JsonTreeHint {
|
|
3
|
+
displayName?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
/** `id` hints show the full value next to a long id. */
|
|
6
|
+
formatType?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface JsonTreeProps<H extends JsonTreeHint = JsonTreeHint> {
|
|
9
|
+
data: unknown;
|
|
10
|
+
name?: string;
|
|
11
|
+
defaultExpanded?: boolean;
|
|
12
|
+
level?: number;
|
|
13
|
+
/** Names of the ancestors, passed to `resolveHint`. */
|
|
14
|
+
path?: string[];
|
|
15
|
+
/** Schema-aware hint for a field; omit for a plain tree. */
|
|
16
|
+
resolveHint?: (path: string[], name: string) => H | null;
|
|
17
|
+
/** Formats a primitive according to its hint. */
|
|
18
|
+
formatValue?: (value: unknown, hint: H | null) => string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Recursive JSON tree with collapse/expand, copy buttons (hover, keyboard focus and touch) and
|
|
22
|
+
* optional schema-aware names/formatting. Like a console object inspector.
|
|
23
|
+
*/
|
|
24
|
+
export declare function JsonTree<H extends JsonTreeHint = JsonTreeHint>({ data, name, defaultExpanded, level, path, resolveHint, formatValue, }: JsonTreeProps<H>): import("react").JSX.Element;
|