@arbidocs/blocks 0.3.184 → 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 +164 -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,27 @@
|
|
|
1
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import { type GridViewProps } from './GridView';
|
|
3
|
+
import { type DocumentGridLayout, type DocumentGridPresets } from './documentGridLayout';
|
|
4
|
+
export interface DocumentGridProps<T> extends Omit<GridViewProps<T>, 'gridId' | 'initialVisibleColumns' | 'rowHeight' | 'height' | 'persistState'> {
|
|
5
|
+
/** Table, phone list or modal: each keeps its own saved state, default columns and sizing. */
|
|
6
|
+
layout: DocumentGridLayout;
|
|
7
|
+
/** Saved-state ids, default columns and row heights per layout (ids and `colId`s stay with the host). */
|
|
8
|
+
presets: DocumentGridPresets;
|
|
9
|
+
/**
|
|
10
|
+
* The grid implementation to render. Defaults to the core `GridView`; a host passes its own
|
|
11
|
+
* wrapper to add persistence of column state (the core has no store).
|
|
12
|
+
*/
|
|
13
|
+
GridComponent?: ComponentType<GridViewProps<T>>;
|
|
14
|
+
/**
|
|
15
|
+
* Shown instead of the grid when the workspace has no documents at all (first-run upload
|
|
16
|
+
* prompt). The host decides when via `showEmptyWorkspace`.
|
|
17
|
+
*/
|
|
18
|
+
emptyWorkspace?: ReactNode;
|
|
19
|
+
showEmptyWorkspace?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The documents table: a GridView preset with the saved-state id, default columns and sizing
|
|
23
|
+
* for the current layout, remounted when the layout flips between table and phone list so state
|
|
24
|
+
* from one never leaks into the other. The host passes rows, column defs (explicit `colId`s) and
|
|
25
|
+
* handlers.
|
|
26
|
+
*/
|
|
27
|
+
export declare function DocumentGrid<T>({ layout, presets, GridComponent, emptyWorkspace, showEmptyWorkspace, testId, className, ...grid }: DocumentGridProps<T>): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export interface ExplorerLoadingTilesProps extends ComponentProps<'div'> {
|
|
3
|
+
count?: number;
|
|
4
|
+
/** Accessible name (default "Loading files"). */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Overrides the root test id (default `explorer-loading-skeleton`). */
|
|
7
|
+
testId?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Skeleton tile grid shown while the first page loads: the gallery reads as "filling in". */
|
|
10
|
+
export declare function ExplorerLoadingTiles({ count, label, testId, className, ...rest }: ExplorerLoadingTilesProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type ComponentProps, type ReactNode } from 'react';
|
|
2
|
+
/** Chrome around the explorer's tile grid: frame, scroller, empty state, marquee, drop overlay. */
|
|
3
|
+
export declare function ExplorerFrame({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
4
|
+
/** Positioning context of the scroller: the marquee and the drop overlay sit over it. */
|
|
5
|
+
export declare function ExplorerStage({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
6
|
+
/**
|
|
7
|
+
* The scrolling tile area. `scrollbar-gutter: stable` reserves the scrollbar's space whether or
|
|
8
|
+
* not it shows, so the measured width never flips when the vertical scrollbar toggles (narrow
|
|
9
|
+
* split-screen widths would otherwise thrash column count, tile height, scrollbar, width).
|
|
10
|
+
*/
|
|
11
|
+
export declare const ExplorerScroller: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export interface ExplorerEmptyProps {
|
|
13
|
+
title: string;
|
|
14
|
+
description: string;
|
|
15
|
+
}
|
|
16
|
+
/** Nothing to show in this folder / search. */
|
|
17
|
+
export declare function ExplorerEmpty({ title, description }: ExplorerEmptyProps): import("react").JSX.Element;
|
|
18
|
+
/**
|
|
19
|
+
* Marquee (rubber-band) rectangle. Always mounted and positioned by mutating its style directly
|
|
20
|
+
* during a drag, so selecting does not re-render the grid.
|
|
21
|
+
*/
|
|
22
|
+
export declare const ExplorerMarquee: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
23
|
+
/** Shown over the grid while files are dragged in from outside. */
|
|
24
|
+
export declare function ExplorerDropOverlay({ label }: {
|
|
25
|
+
label: string;
|
|
26
|
+
}): import("react").JSX.Element;
|
|
27
|
+
export interface ExplorerDragPreviewProps {
|
|
28
|
+
icon: ReactNode;
|
|
29
|
+
title: string;
|
|
30
|
+
/** Number of documents dragged; shown as a badge above 1. */
|
|
31
|
+
count: number;
|
|
32
|
+
}
|
|
33
|
+
/** Floating preview under the cursor while dragging documents. */
|
|
34
|
+
export declare function ExplorerDragPreview({ icon, title, count }: ExplorerDragPreviewProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import type { HTMLAttributes, MouseEvent, ReactNode, Ref } from 'react';
|
|
2
|
+
import type { LucideIcon } from 'lucide-react';
|
|
3
|
+
/** Every fixed string of the explorer tiles. Pass a partial `labels` to translate or reword. */
|
|
4
|
+
export interface ExplorerLabels {
|
|
5
|
+
moreActions: string;
|
|
6
|
+
name: string;
|
|
7
|
+
select: string;
|
|
8
|
+
deselect: string;
|
|
9
|
+
empty: string;
|
|
10
|
+
itemCount: (count: number) => string;
|
|
11
|
+
processing: (count: number) => string;
|
|
12
|
+
aiSummary: string;
|
|
13
|
+
noSummary: string;
|
|
14
|
+
lastModifiedBy: string;
|
|
15
|
+
shared: string;
|
|
16
|
+
private: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const DEFAULT_EXPLORER_LABELS: ExplorerLabels;
|
|
19
|
+
export interface ExplorerFileTestIds {
|
|
20
|
+
root: string;
|
|
21
|
+
menu: string;
|
|
22
|
+
renameInput: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ExplorerFolderTestIds {
|
|
25
|
+
root: string;
|
|
26
|
+
menu: string;
|
|
27
|
+
renameInput: string;
|
|
28
|
+
/** Replaces the whole `explorer-folder-processing-<path>` id. */
|
|
29
|
+
processing: string;
|
|
30
|
+
}
|
|
31
|
+
export type ExplorerDensity = 'grid' | 'list';
|
|
32
|
+
export interface ExplorerMenuItem {
|
|
33
|
+
id: string;
|
|
34
|
+
label: string;
|
|
35
|
+
icon: LucideIcon;
|
|
36
|
+
onSelect: () => void;
|
|
37
|
+
/** Red styling, for Delete. */
|
|
38
|
+
destructive?: boolean;
|
|
39
|
+
/** Draw a separator above this item. */
|
|
40
|
+
separatorBefore?: boolean;
|
|
41
|
+
/** A nested menu: the item opens it instead of acting (`onSelect` is then ignored). */
|
|
42
|
+
submenu?: ExplorerMenuItem[];
|
|
43
|
+
testId?: string;
|
|
44
|
+
}
|
|
45
|
+
export interface ExplorerFileTileProps {
|
|
46
|
+
/** Document id (`data-doc-id`). */
|
|
47
|
+
id: string;
|
|
48
|
+
/** Rename seed: the display title. */
|
|
49
|
+
title: string;
|
|
50
|
+
density: ExplorerDensity;
|
|
51
|
+
selected: boolean;
|
|
52
|
+
/** Part of an in-flight drag: dimmed. */
|
|
53
|
+
dragging?: boolean;
|
|
54
|
+
renaming?: boolean;
|
|
55
|
+
/** First-page thumbnail (data URI/URL). Without one the file-type icon shows. */
|
|
56
|
+
thumbnailUrl?: string;
|
|
57
|
+
/** Renders the file-type glyph at a pixel size. */
|
|
58
|
+
renderFileIcon: (size: number) => ReactNode;
|
|
59
|
+
/** In-flight processing: shows a centred progress overlay with this label. */
|
|
60
|
+
progress?: {
|
|
61
|
+
label: string;
|
|
62
|
+
queued: boolean;
|
|
63
|
+
};
|
|
64
|
+
/** Terminal status marker (bottom-right), usually a `StatusPill`. */
|
|
65
|
+
statusMarker?: ReactNode;
|
|
66
|
+
/** "Available offline" marker (bottom-left). */
|
|
67
|
+
offlineMarker?: ReactNode;
|
|
68
|
+
/** The canonical entity pill at the bottom (click opens). */
|
|
69
|
+
entity: ReactNode;
|
|
70
|
+
/** Hover card content. Omit to disable the tooltip (renaming, or while dragging). */
|
|
71
|
+
tooltip?: ReactNode;
|
|
72
|
+
menuItems: ExplorerMenuItem[];
|
|
73
|
+
/** Drag-and-drop hook-up: ref + listener/aria props from the host's DnD library. */
|
|
74
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
75
|
+
rootProps?: HTMLAttributes<HTMLDivElement>;
|
|
76
|
+
/** Plain click / double click / menu "Open". With `href`, a plain click still calls this. */
|
|
77
|
+
onOpen: () => void;
|
|
78
|
+
/** Route of the document: the tile gets a real link (modified clicks go to the browser). */
|
|
79
|
+
href?: string;
|
|
80
|
+
labels?: Partial<ExplorerLabels>;
|
|
81
|
+
/** Overrides for the test ids (defaults keep the current ids). */
|
|
82
|
+
testIds?: Partial<ExplorerFileTestIds>;
|
|
83
|
+
/** Modifier (shift/meta/ctrl) click: range / toggle selection. */
|
|
84
|
+
onSelect: (e: MouseEvent) => void;
|
|
85
|
+
onToggle: (e: MouseEvent) => void;
|
|
86
|
+
onCommitRename: (name: string) => void;
|
|
87
|
+
onCancelRename: () => void;
|
|
88
|
+
}
|
|
89
|
+
/** One document tile: thumbnail (or icon) filling the tile with checkbox, menu, status and pill. */
|
|
90
|
+
export declare function ExplorerFileTile({ id, title, density, selected, dragging, renaming, thumbnailUrl, renderFileIcon, progress, statusMarker, offlineMarker, entity, tooltip, menuItems, rootRef, rootProps, onOpen, href, labels, testIds, onSelect, onToggle, onCommitRename, onCancelRename, }: ExplorerFileTileProps): import("react").JSX.Element;
|
|
91
|
+
export interface ExplorerFolderTileProps {
|
|
92
|
+
/** Stored folder name (rename seed, native tooltip). */
|
|
93
|
+
name: string;
|
|
94
|
+
/** Label shown on the tile; `''`/null renders no label (provider roots shorten to nothing). */
|
|
95
|
+
displayName: string | null;
|
|
96
|
+
/** Folder path segments (ids and `data-folder-path`). */
|
|
97
|
+
path: string[];
|
|
98
|
+
/** Number of items beneath this folder; 0 renders it faded as "Empty". */
|
|
99
|
+
count: number;
|
|
100
|
+
density: ExplorerDensity;
|
|
101
|
+
editing?: boolean;
|
|
102
|
+
/** Every document beneath is selected. */
|
|
103
|
+
selected?: boolean;
|
|
104
|
+
/** Some (not all) documents beneath are selected. */
|
|
105
|
+
partiallySelected?: boolean;
|
|
106
|
+
processingCount?: number;
|
|
107
|
+
/** A dragged item is over this folder. */
|
|
108
|
+
isOver?: boolean;
|
|
109
|
+
/** Replace the folder glyph (e.g. a provider's brand mark). */
|
|
110
|
+
icon?: ReactNode;
|
|
111
|
+
menuItems?: ExplorerMenuItem[];
|
|
112
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
113
|
+
rootProps?: HTMLAttributes<HTMLDivElement>;
|
|
114
|
+
onOpen: () => void;
|
|
115
|
+
/** Route of the folder: the tile gets a real link (modified clicks go to the browser). */
|
|
116
|
+
href?: string;
|
|
117
|
+
labels?: Partial<ExplorerLabels>;
|
|
118
|
+
/** Overrides for the test ids (defaults keep the current ids). */
|
|
119
|
+
testIds?: Partial<ExplorerFolderTestIds>;
|
|
120
|
+
onToggleSelect?: (e: MouseEvent) => void;
|
|
121
|
+
onCommitName?: (name: string) => void;
|
|
122
|
+
onCancelName?: () => void;
|
|
123
|
+
}
|
|
124
|
+
/** One folder tile: glyph, name, item count, optional processing count and actions menu. */
|
|
125
|
+
export declare function ExplorerFolderTile({ name, displayName, path, count, density, editing, selected, partiallySelected, processingCount, isOver, icon, menuItems, rootRef, rootProps, onOpen, href, labels, testIds, onToggleSelect, onCommitName, onCancelName, }: ExplorerFolderTileProps): import("react").JSX.Element;
|
|
126
|
+
export interface ExplorerFileTooltipProps {
|
|
127
|
+
title: string;
|
|
128
|
+
/** AI summary; a placeholder is shown when empty. */
|
|
129
|
+
summary?: string | null;
|
|
130
|
+
/** Pre-formatted "last modified" date; omit to hide the meta rows. */
|
|
131
|
+
modifiedLabel?: string | null;
|
|
132
|
+
/** Small avatar of whoever last modified it. */
|
|
133
|
+
modifiedByAvatar?: ReactNode;
|
|
134
|
+
shared: boolean;
|
|
135
|
+
/** Glyph for the shared/private state. */
|
|
136
|
+
visibilityIcon?: ReactNode;
|
|
137
|
+
labels: string[];
|
|
138
|
+
/** Fixed strings of the card (not the document labels above). */
|
|
139
|
+
uiLabels?: Partial<ExplorerLabels>;
|
|
140
|
+
}
|
|
141
|
+
/** The explorer hover card: leads with the AI summary, then who/when and the labels. */
|
|
142
|
+
export declare function ExplorerFileTooltip({ title, summary, modifiedLabel, modifiedByAvatar, shared, visibilityIcon, labels, uiLabels, }: ExplorerFileTooltipProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/** Every fixed string of the export parts. Pass a partial `labels` to translate or reword. */
|
|
3
|
+
export interface ExportLabels {
|
|
4
|
+
export: string;
|
|
5
|
+
selected: (count: number) => string;
|
|
6
|
+
exportMethod: string;
|
|
7
|
+
downloadToComputer: string;
|
|
8
|
+
downloadDescription: string;
|
|
9
|
+
exportColumns: string;
|
|
10
|
+
columnsVisible: string;
|
|
11
|
+
columnsAll: string;
|
|
12
|
+
columnsFiles: string;
|
|
13
|
+
columnsHelp: string;
|
|
14
|
+
exportToWorkspace: string;
|
|
15
|
+
exportToWorkspaceDescription: string;
|
|
16
|
+
selectTargetWorkspace: string;
|
|
17
|
+
noOtherWorkspaces: string;
|
|
18
|
+
member: string;
|
|
19
|
+
members: string;
|
|
20
|
+
result: string;
|
|
21
|
+
noItemDetail: string;
|
|
22
|
+
done: string;
|
|
23
|
+
cancel: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const DEFAULT_EXPORT_LABELS: ExportLabels;
|
|
26
|
+
export interface ExportModalTitleProps {
|
|
27
|
+
/** Workspace crumb (icon + name); omit when there is no current workspace. */
|
|
28
|
+
workspace?: {
|
|
29
|
+
icon: ReactNode;
|
|
30
|
+
name: string;
|
|
31
|
+
};
|
|
32
|
+
/** Icon and plural noun of what is exported. */
|
|
33
|
+
entityIcon: ReactNode;
|
|
34
|
+
entityPlural: string;
|
|
35
|
+
selectedCount: number;
|
|
36
|
+
labels?: Partial<ExportLabels>;
|
|
37
|
+
}
|
|
38
|
+
/** `Workspace / Chats / Export [3 selected]` for the Export dialog title. */
|
|
39
|
+
export declare function ExportModalTitle({ workspace, entityIcon, entityPlural, selectedCount, labels, }: ExportModalTitleProps): import("react").JSX.Element;
|
|
40
|
+
export type ExportMode = 'workspace' | 'download';
|
|
41
|
+
export type ExportColumnsMode = 'visible' | 'all' | 'files';
|
|
42
|
+
export interface ExportMethodChooserProps {
|
|
43
|
+
mode: ExportMode;
|
|
44
|
+
onModeChange: (mode: ExportMode) => void;
|
|
45
|
+
columnsMode: ExportColumnsMode;
|
|
46
|
+
onColumnsModeChange: (mode: ExportColumnsMode) => void;
|
|
47
|
+
labels?: Partial<ExportLabels>;
|
|
48
|
+
/** Overrides the columns select test id (default `export-columns-selector`). */
|
|
49
|
+
columnsTestId?: string;
|
|
50
|
+
}
|
|
51
|
+
/** "Download to computer" vs "Export to another workspace", with the CSV columns picker. */
|
|
52
|
+
export declare function ExportMethodChooser({ mode, onModeChange, columnsMode, onColumnsModeChange, labels, columnsTestId, }: ExportMethodChooserProps): import("react").JSX.Element;
|
|
53
|
+
export interface ExportWorkspaceOption {
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
description?: string | null;
|
|
57
|
+
memberCount: number;
|
|
58
|
+
/** Workspace icon (32px). */
|
|
59
|
+
icon: ReactNode;
|
|
60
|
+
/** Member avatars (the host decides which and how many). */
|
|
61
|
+
members?: ReactNode;
|
|
62
|
+
}
|
|
63
|
+
export interface ExportWorkspacePickerProps {
|
|
64
|
+
workspaces: ExportWorkspaceOption[];
|
|
65
|
+
selectedId: string | null;
|
|
66
|
+
onSelect: (id: string) => void;
|
|
67
|
+
labels?: Partial<ExportLabels>;
|
|
68
|
+
/** Replaces the whole `export-workspace-<id>` id. */
|
|
69
|
+
testId?: (id: string) => string;
|
|
70
|
+
}
|
|
71
|
+
/** Pick the workspace to export into. */
|
|
72
|
+
export declare function ExportWorkspacePicker({ workspaces, selectedId, onSelect, labels, testId, }: ExportWorkspacePickerProps): import("react").JSX.Element;
|
|
73
|
+
export interface ExportResultRowView {
|
|
74
|
+
id: string;
|
|
75
|
+
tone: 'success' | 'warning' | 'error';
|
|
76
|
+
name: string;
|
|
77
|
+
/** User-facing kind, e.g. "Document". */
|
|
78
|
+
kind: string;
|
|
79
|
+
detail?: string;
|
|
80
|
+
}
|
|
81
|
+
export interface ExportResultsReportProps {
|
|
82
|
+
/** One-line outcome, e.g. "Exported 3 documents. 1 failed." */
|
|
83
|
+
summary: string;
|
|
84
|
+
/** Failures first, then warnings, then clean rows (the host orders them). */
|
|
85
|
+
rows: ExportResultRowView[];
|
|
86
|
+
onDone: () => void;
|
|
87
|
+
labels?: Partial<ExportLabels>;
|
|
88
|
+
testIds?: Partial<ExportResultsTestIds>;
|
|
89
|
+
}
|
|
90
|
+
export interface ExportResultsTestIds {
|
|
91
|
+
root: string;
|
|
92
|
+
summary: string;
|
|
93
|
+
done: string;
|
|
94
|
+
/** Replaces the whole `export-result-<id>` id. */
|
|
95
|
+
row: (id: string) => string;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Per-item outcome list. A batch can come back part-succeeded, with warnings that are not
|
|
99
|
+
* failures, so every item that did not cleanly succeed is named with its reason.
|
|
100
|
+
*/
|
|
101
|
+
export declare function ExportResultsReport({ summary, rows, onDone, labels, testIds, }: ExportResultsReportProps): import("react").JSX.Element;
|
|
102
|
+
export interface ExportFooterProps {
|
|
103
|
+
onCancel?: () => void;
|
|
104
|
+
onSubmit: () => void;
|
|
105
|
+
submitLabel: string;
|
|
106
|
+
submitDisabled: boolean;
|
|
107
|
+
labels?: Partial<ExportLabels>;
|
|
108
|
+
testIds?: Partial<{
|
|
109
|
+
cancel: string;
|
|
110
|
+
submit: string;
|
|
111
|
+
}>;
|
|
112
|
+
}
|
|
113
|
+
/** Sticky Cancel + the ONE primary Export button. */
|
|
114
|
+
export declare function ExportFooter({ onCancel, onSubmit, submitLabel, submitDisabled, labels, testIds, }: ExportFooterProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type LabelMultiSelectLabels, type LabelOption } from './cells/LabelMultiSelect';
|
|
3
|
+
export interface FieldValueProps {
|
|
4
|
+
tone?: 'default' | 'strong' | 'muted';
|
|
5
|
+
isMono?: boolean;
|
|
6
|
+
isTruncated?: boolean;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
/** A read-only value of a field. */
|
|
10
|
+
export declare function FieldValue({ tone, isMono, isTruncated, children }: FieldValueProps): import("react").JSX.Element;
|
|
11
|
+
export interface FieldFolderSelectProps {
|
|
12
|
+
/** Current folder path, if any. */
|
|
13
|
+
folder: string | null | undefined;
|
|
14
|
+
/** Searchable folder list (host-bound `FolderCommandList`). */
|
|
15
|
+
picker: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
/** Folder field: a trigger showing the breadcrumb, opening the folder picker in a popover. */
|
|
18
|
+
export declare function FieldFolderSelect({ folder, picker }: FieldFolderSelectProps): import("react").JSX.Element;
|
|
19
|
+
/** Read-only folder. */
|
|
20
|
+
export declare function FieldFolderValue({ folder }: {
|
|
21
|
+
folder: string | null | undefined;
|
|
22
|
+
}): import("react").JSX.Element;
|
|
23
|
+
export interface FieldLabelsSelectProps {
|
|
24
|
+
options: LabelOption[];
|
|
25
|
+
appliedIds: ReadonlySet<string>;
|
|
26
|
+
/** Labels shown as check marks in the field (defaults to the applied ones). Pass fewer to list
|
|
27
|
+
* the selection elsewhere, e.g. in a dialog that renders it beside the field. */
|
|
28
|
+
displayedIds?: ReadonlySet<string>;
|
|
29
|
+
onToggle: (id: string) => void;
|
|
30
|
+
/** Create a label and apply it; omit to make the picker toggle-only. */
|
|
31
|
+
onCreate?: (name: string) => void;
|
|
32
|
+
emptyText?: string;
|
|
33
|
+
labels?: Partial<LabelMultiSelectLabels>;
|
|
34
|
+
}
|
|
35
|
+
/** Labels field: the applied labels as check marks; click to open the label picker. */
|
|
36
|
+
export declare function FieldLabelsSelect({ options, appliedIds, displayedIds, onToggle, onCreate, emptyText, labels, }: FieldLabelsSelectProps): import("react").JSX.Element;
|
|
37
|
+
export interface FieldNativeSelectProps {
|
|
38
|
+
value: string;
|
|
39
|
+
options: string[];
|
|
40
|
+
onChange: (value: string) => void;
|
|
41
|
+
/** Text of the empty option. */
|
|
42
|
+
emptyLabel?: string;
|
|
43
|
+
ariaLabel?: string;
|
|
44
|
+
}
|
|
45
|
+
/** A single-choice field (a native `select`: reliable on touch and with assistive tech). */
|
|
46
|
+
export declare function FieldNativeSelect({ value, options, onChange, emptyLabel, ariaLabel, }: FieldNativeSelectProps): import("react").JSX.Element;
|
|
47
|
+
export interface FieldAttributionProps {
|
|
48
|
+
/** Avatar of whoever last changed the value. */
|
|
49
|
+
avatar: ReactNode;
|
|
50
|
+
/** Formatted date of that change. */
|
|
51
|
+
date: string;
|
|
52
|
+
/** Tooltip lines ("Created ... by ...", "Updated ... by ..."). */
|
|
53
|
+
lines: string[];
|
|
54
|
+
}
|
|
55
|
+
/** Subtle "who changed this and when". */
|
|
56
|
+
export declare function FieldAttribution({ avatar, date, lines }: FieldAttributionProps): import("react").JSX.Element;
|
|
57
|
+
/**
|
|
58
|
+
* Wraps an editable value and reveals `attribution` at its top-right on hover or keyboard focus
|
|
59
|
+
* inside, and always on touch devices (there is no hover there).
|
|
60
|
+
*/
|
|
61
|
+
export declare function FieldWithAttribution({ attribution, children, }: {
|
|
62
|
+
attribution: ReactNode;
|
|
63
|
+
children: ReactNode;
|
|
64
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export interface FilesPageProps extends ComponentProps<'div'> {
|
|
3
|
+
/** Inside a modal the page keeps its own height instead of filling the page scroll zone. */
|
|
4
|
+
isModal?: boolean;
|
|
5
|
+
/** Overrides the root test id (default `documents-page`). */
|
|
6
|
+
testId?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Files page column. `h-full` fills the bounded page scroll zone (not 100vh), so when a tip bar
|
|
10
|
+
* shrinks the shell this column shrinks with it and the sticky selection bar stays pinned to the
|
|
11
|
+
* visible bottom.
|
|
12
|
+
*/
|
|
13
|
+
export declare function FilesPage({ isModal, testId, className, ...props }: FilesPageProps): import("react").JSX.Element;
|
|
14
|
+
/**
|
|
15
|
+
* Sticky region on top: the title row (title, view switch, Add) and the calm filter row. 16px
|
|
16
|
+
* gutters on phones, 24px from `sm`, the same as the other pages.
|
|
17
|
+
*/
|
|
18
|
+
export declare function FilesPageHeader({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
19
|
+
/** The scrolling content area (grid, gallery, review, smart search). */
|
|
20
|
+
export declare function FilesPageMain({ className, ...props }: ComponentProps<'main'>): import("react").JSX.Element;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
export interface FilesToolbarProps extends Omit<ComponentProps<'div'>, 'children'> {
|
|
3
|
+
/** Leading controls: the filter field and the pickers that narrow the list. */
|
|
4
|
+
leftActions?: ReactNode;
|
|
5
|
+
/** Trailing controls (row navigator, views, density...). Always visible; nothing is hover-revealed. */
|
|
6
|
+
rightActions?: ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
/** Overrides the root test id (default `documents-filter-bar`). */
|
|
9
|
+
testId?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The calm secondary row under the page title: filters on the left, view controls on the right.
|
|
13
|
+
* No border or fill: the page header already separates it. It wraps by GROUP, never mid-group:
|
|
14
|
+
* the left group (filter field + pickers) keeps one line, and when the view controls no longer
|
|
15
|
+
* fit beside it they drop together onto their own right-aligned line, so a docked tablet sidebar
|
|
16
|
+
* or a phone never orphans a single button.
|
|
17
|
+
*/
|
|
18
|
+
export declare function FilesToolbar({ leftActions, rightActions, className, testId, ...rest }: FilesToolbarProps): import("react").JSX.Element;
|
|
19
|
+
export interface FilesSearchField {
|
|
20
|
+
value: string;
|
|
21
|
+
label: string;
|
|
22
|
+
}
|
|
23
|
+
/** Every fixed string of the search input. Pass a partial `labels` to translate or reword. */
|
|
24
|
+
export interface FilesSearchLabels {
|
|
25
|
+
placeholder: string;
|
|
26
|
+
clearFilter: string;
|
|
27
|
+
chooseFields: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const DEFAULT_FILES_SEARCH_LABELS: FilesSearchLabels;
|
|
30
|
+
export interface FilesSearchTestIds {
|
|
31
|
+
root: string;
|
|
32
|
+
filterSlot: string;
|
|
33
|
+
input: string;
|
|
34
|
+
fieldsButton: string;
|
|
35
|
+
}
|
|
36
|
+
export interface FilesSearchInputProps {
|
|
37
|
+
value: string;
|
|
38
|
+
onChange: (value: string) => void;
|
|
39
|
+
/** Fields the text can match against. */
|
|
40
|
+
fields: FilesSearchField[];
|
|
41
|
+
/** Currently searched field values. */
|
|
42
|
+
selectedFields: string[];
|
|
43
|
+
onSelectedFieldsChange: (fields: string[]) => void;
|
|
44
|
+
/** Wins over `labels.placeholder`. */
|
|
45
|
+
placeholder?: string;
|
|
46
|
+
labels?: Partial<FilesSearchLabels>;
|
|
47
|
+
/** Overrides for the control test ids (defaults keep the current ids). */
|
|
48
|
+
testIds?: Partial<FilesSearchTestIds>;
|
|
49
|
+
/** Width/layout classes for the outer wrapper. */
|
|
50
|
+
className?: string;
|
|
51
|
+
/** Leading control inside the input (e.g. the filter dropdown trigger). */
|
|
52
|
+
filterSlot?: ReactNode;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Inline "Filter..." box. The filter slot sits INSIDE the input on the left; on the right a muted
|
|
56
|
+
* field picker chooses which fields the text matches, and a clear control shows while there is
|
|
57
|
+
* text. Both inline controls stay visible and are 32px+ on touch.
|
|
58
|
+
*/
|
|
59
|
+
export declare function FilesSearchInput({ value, onChange, fields, selectedFields, onSelectedFieldsChange, placeholder, labels, testIds, className, filterSlot, }: FilesSearchInputProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/** Every fixed string of the folder pickers. Pass a partial `labels` to translate or reword. */
|
|
3
|
+
export interface FolderPickerLabels {
|
|
4
|
+
none: string;
|
|
5
|
+
removeFromFolder: string;
|
|
6
|
+
searchOrCreate: string;
|
|
7
|
+
noFolders: string;
|
|
8
|
+
create: (name: string) => string;
|
|
9
|
+
}
|
|
10
|
+
export declare const DEFAULT_FOLDER_PICKER_LABELS: FolderPickerLabels;
|
|
11
|
+
export interface FolderCommandListTestIds {
|
|
12
|
+
create: string;
|
|
13
|
+
createOption: string;
|
|
14
|
+
remove: string;
|
|
15
|
+
/** Replaces the whole `folder-picker-option-<folder>` id. */
|
|
16
|
+
option: (folder: string) => string;
|
|
17
|
+
}
|
|
18
|
+
export interface FolderPickerRowProps {
|
|
19
|
+
label: string;
|
|
20
|
+
/** Optional leading glyph (e.g. a connector brand mark for provider roots). */
|
|
21
|
+
icon?: ReactNode;
|
|
22
|
+
count: number;
|
|
23
|
+
depth: number;
|
|
24
|
+
isActive: boolean;
|
|
25
|
+
muted?: boolean;
|
|
26
|
+
/** Test id of the row button (none by default). */
|
|
27
|
+
testId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Draw a checkbox in the leading slot instead of the single-select tick. A list you can pick
|
|
30
|
+
* SEVERAL rows from should look like one: a lone tick reads "this is the current one", a box
|
|
31
|
+
* reads "tick the ones you want".
|
|
32
|
+
*/
|
|
33
|
+
checkbox?: boolean;
|
|
34
|
+
/** Checkbox only: some descendants are selected, so show a dash, not a tick. */
|
|
35
|
+
indeterminate?: boolean;
|
|
36
|
+
onClick: () => void;
|
|
37
|
+
}
|
|
38
|
+
/** One folder row: indented by depth, with a count. Whole row is the target (44px on touch). */
|
|
39
|
+
export declare function FolderPickerRow({ label, icon, count, depth, isActive, muted, checkbox, indeterminate, testId, onClick, }: FolderPickerRowProps): import("react").JSX.Element;
|
|
40
|
+
export interface FolderTreeNode {
|
|
41
|
+
path: string;
|
|
42
|
+
label: string;
|
|
43
|
+
depth: number;
|
|
44
|
+
count: number;
|
|
45
|
+
/** Replaces the label's default look (provider roots show a brand mark). */
|
|
46
|
+
icon?: ReactNode;
|
|
47
|
+
}
|
|
48
|
+
export interface FolderTreeProps {
|
|
49
|
+
nodes: FolderTreeNode[];
|
|
50
|
+
unfiledCount: number;
|
|
51
|
+
/** string = folder path selected, null = Unfiled selected, undefined = nothing selected. */
|
|
52
|
+
value: string | null | undefined;
|
|
53
|
+
onChange: (folder: string | null) => void;
|
|
54
|
+
/** Show the Unfiled ("None") row even when it is empty. */
|
|
55
|
+
showUnfiledAlways?: boolean;
|
|
56
|
+
labels?: Partial<FolderPickerLabels>;
|
|
57
|
+
}
|
|
58
|
+
/** Folder hierarchy with an Unfiled option at the bottom. No "All" row: callers add their own. */
|
|
59
|
+
export declare function FolderTree({ nodes, unfiledCount, value, onChange, showUnfiledAlways, labels, }: FolderTreeProps): import("react").JSX.Element;
|
|
60
|
+
export interface FolderCommandListProps {
|
|
61
|
+
/** Existing folder paths (the host derives them from its documents). */
|
|
62
|
+
folders: string[];
|
|
63
|
+
/** Selected folder (null = unfiled, undefined = no selection). */
|
|
64
|
+
value?: string | null;
|
|
65
|
+
/** A folder was picked or a new one created. */
|
|
66
|
+
onSelect: (folder: string | null) => void;
|
|
67
|
+
/** Show the remove / move-to-root option. */
|
|
68
|
+
showRemove?: boolean;
|
|
69
|
+
/** Wins over `labels.removeFromFolder`. */
|
|
70
|
+
removeLabel?: string;
|
|
71
|
+
/** Wins over `labels.searchOrCreate`. */
|
|
72
|
+
placeholder?: string;
|
|
73
|
+
autoFocus?: boolean;
|
|
74
|
+
labels?: Partial<FolderPickerLabels>;
|
|
75
|
+
/** Overrides for the test ids (defaults keep the current ids). */
|
|
76
|
+
testIds?: Partial<FolderCommandListTestIds>;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Searchable folder picker: filter existing folders, create one by typing a new name, optional
|
|
80
|
+
* "Remove from folder". Shows hierarchy as breadcrumbs.
|
|
81
|
+
*/
|
|
82
|
+
export declare function FolderCommandList({ folders, value, onSelect, showRemove, removeLabel, placeholder, autoFocus, labels, testIds, }: FolderCommandListProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GridView — a flexible AG Grid presentational core.
|
|
3
|
+
*
|
|
4
|
+
* Pure and app-agnostic: it owns no global state and pulls in no store. Column
|
|
5
|
+
* state persistence (order / width / visibility / sort / filter) is exposed as a
|
|
6
|
+
* controlled/uncontrolled prop pair — `gridState` (initial state, read once at
|
|
7
|
+
* mount) and `onGridStateChange` (called whenever AG Grid's state changes). An
|
|
8
|
+
* app wires those to wherever it keeps the state (Zustand, localStorage, a URL,
|
|
9
|
+
* a server) via a thin adapter; the core stays decoupled.
|
|
10
|
+
*
|
|
11
|
+
* Themed here (colours/fonts/borders via the host CSS variables, so it inherits the host's
|
|
12
|
+
* light/dark theme). The structural helper classes (cell-numeric, multiline clamp, scrollbars,
|
|
13
|
+
* row kebabs) live in `@arbidocs/blocks/grid.css`, which the consuming app imports globally.
|
|
14
|
+
*/
|
|
15
|
+
import React from 'react';
|
|
16
|
+
import { ColDef, GridOptions, GridApi, GridState, CellValueChangedEvent } from 'ag-grid-community';
|
|
17
|
+
export interface GridViewSelection<T> {
|
|
18
|
+
mode: 'single' | 'multiple';
|
|
19
|
+
selected: T[];
|
|
20
|
+
onSelectionChange: (items: T[]) => void;
|
|
21
|
+
}
|
|
22
|
+
export interface GridViewEmptyState {
|
|
23
|
+
icon?: React.ReactNode;
|
|
24
|
+
title?: string;
|
|
25
|
+
message?: string;
|
|
26
|
+
action?: React.ReactNode;
|
|
27
|
+
}
|
|
28
|
+
export interface GridViewProps<T> {
|
|
29
|
+
items: T[];
|
|
30
|
+
columnDefs: ColDef<T>[];
|
|
31
|
+
getItemId: (item: T) => string;
|
|
32
|
+
selection?: GridViewSelection<T>;
|
|
33
|
+
emptyState?: GridViewEmptyState;
|
|
34
|
+
isLoading?: boolean;
|
|
35
|
+
loadingMessage?: string;
|
|
36
|
+
gridOptions?: Partial<GridOptions<T>>;
|
|
37
|
+
onGridReady?: (params: {
|
|
38
|
+
api: GridApi<T>;
|
|
39
|
+
}) => void;
|
|
40
|
+
onCellValueChanged?: (event: CellValueChangedEvent<T>) => void;
|
|
41
|
+
onRowClick?: (item: T) => void;
|
|
42
|
+
persistState?: boolean;
|
|
43
|
+
gridId?: string;
|
|
44
|
+
gridState?: GridState;
|
|
45
|
+
onGridStateChange?: (state: GridState) => void;
|
|
46
|
+
initialVisibleColumns?: string[];
|
|
47
|
+
className?: string;
|
|
48
|
+
height?: string | number;
|
|
49
|
+
rowHeight?: number;
|
|
50
|
+
testId?: string;
|
|
51
|
+
pinnedBottomRowData?: T[];
|
|
52
|
+
pinnedTopRowData?: T[];
|
|
53
|
+
pagination?: boolean;
|
|
54
|
+
paginationPageSizeSelector?: number[];
|
|
55
|
+
getRowTestId?: (item: T) => string;
|
|
56
|
+
getCellTestId?: (colId: string, item: T) => string;
|
|
57
|
+
showEmpty?: boolean;
|
|
58
|
+
}
|
|
59
|
+
export declare function GridView<T>({ items, columnDefs, getItemId, selection, emptyState, isLoading, loadingMessage, gridOptions, onGridReady, onCellValueChanged, onRowClick, persistState, gridState, onGridStateChange, initialVisibleColumns, className, height, rowHeight: rowHeightProp, testId, pinnedBottomRowData, pinnedTopRowData, pagination, paginationPageSizeSelector, getRowTestId, getCellTestId, showEmpty, }: GridViewProps<T>): React.JSX.Element;
|