@orbit-work/ui 0.1.1 → 0.1.2
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 +59 -57
- package/dist/about-window.cjs +271 -1
- package/dist/about-window.cjs.map +1 -0
- package/dist/about-window.d.cts +20 -2
- package/dist/about-window.d.ts +20 -2
- package/dist/about-window.js +271 -1
- package/dist/about-window.js.map +1 -0
- package/dist/appearance-D7uh_ZTy.d.cts +192 -0
- package/dist/appearance-D7uh_ZTy.d.ts +192 -0
- package/dist/appearance.cjs +39 -1
- package/dist/appearance.cjs.map +1 -0
- package/dist/appearance.d.cts +1 -1
- package/dist/appearance.d.ts +1 -1
- package/dist/appearance.js +39 -1
- package/dist/appearance.js.map +1 -0
- package/dist/browser-annotation-popup.cjs +9 -1
- package/dist/browser-annotation-popup.cjs.map +1 -0
- package/dist/browser-annotation-popup.d.cts +6 -6
- package/dist/browser-annotation-popup.d.ts +6 -6
- package/dist/browser-annotation-popup.js +9 -1
- package/dist/browser-annotation-popup.js.map +1 -0
- package/dist/chunk-66VEV7G2.js +111 -0
- package/dist/chunk-66VEV7G2.js.map +1 -0
- package/dist/chunk-KRP43SUA.cjs +1130 -0
- package/dist/chunk-KRP43SUA.cjs.map +1 -0
- package/dist/chunk-QS55W5Q5.cjs +111 -0
- package/dist/chunk-QS55W5Q5.cjs.map +1 -0
- package/dist/chunk-S3R5QFO4.js +1130 -0
- package/dist/chunk-S3R5QFO4.js.map +1 -0
- package/dist/chunk-UT5LC6MR.js +38 -0
- package/dist/chunk-UT5LC6MR.js.map +1 -0
- package/dist/chunk-ZZTEY4YX.cjs +38 -0
- package/dist/chunk-ZZTEY4YX.cjs.map +1 -0
- package/dist/core.css +7886 -0
- package/dist/file-tree.css +85 -0
- package/dist/index-nLo7jMlP.d.cts +166 -0
- package/dist/index-nLo7jMlP.d.ts +166 -0
- package/dist/index.cjs +39161 -26
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +3785 -3031
- package/dist/index.d.ts +3785 -3031
- package/dist/index.js +39161 -26
- package/dist/index.js.map +1 -0
- package/dist/locale.cjs +15 -0
- package/dist/locale.cjs.map +1 -0
- package/dist/locale.d.cts +28 -0
- package/dist/locale.d.ts +28 -0
- package/dist/locale.js +15 -0
- package/dist/locale.js.map +1 -0
- package/dist/office.css +1146 -0
- package/dist/slot-core.cjs +200 -0
- package/dist/slot-core.cjs.map +1 -0
- package/dist/slot-core.d.cts +146 -0
- package/dist/slot-core.d.ts +146 -0
- package/dist/slot-core.js +200 -0
- package/dist/slot-core.js.map +1 -0
- package/dist/slot-react.cjs +153 -0
- package/dist/slot-react.cjs.map +1 -0
- package/dist/slot-react.d.cts +36 -0
- package/dist/slot-react.d.ts +36 -0
- package/dist/slot-react.js +153 -0
- package/dist/slot-react.js.map +1 -0
- package/dist/tailwind.css +137 -0
- package/dist/workbench.css +9014 -0
- package/package.json +112 -47
- package/dist/appearance-D5uQ53j3.d.cts +0 -210
- package/dist/appearance-D5uQ53j3.d.ts +0 -210
- package/dist/chunk-3KT7IU4X.js +0 -13
- package/dist/chunk-5VLBKOG7.cjs +0 -194
- package/dist/chunk-7YJY64LZ.js +0 -82
- package/dist/chunk-EF2BSN3K.cjs +0 -13
- package/dist/chunk-GMMYDILD.cjs +0 -82
- package/dist/chunk-VG7FQQ7K.js +0 -194
- package/dist/fonts/JetBrainsMono-Medium.ttf +0 -0
- package/dist/fonts/JetBrainsMono-Regular.ttf +0 -0
- package/dist/fonts/SpaceGrotesk-700-latin-ext.woff2 +0 -0
- package/dist/fonts/SpaceGrotesk-700-latin.woff2 +0 -0
- package/dist/index.css +0 -1
- package/dist/orbitwork.css +0 -22145
- package/src/components/Layout/AppLayout/AppLayout.stories.tsx +0 -246
- package/src/components/Layout/AppLayout/AppLayoutSource.test.mjs +0 -37
- package/src/components/Layout/AppLayout/index.tsx +0 -122
- package/src/components/Layout/Sidebar/index.tsx +0 -13
- package/src/components/Layout/SidebarShell/SidebarShell.stories.tsx +0 -676
- package/src/components/Layout/SidebarShell/SidebarShellSource.test.mjs +0 -161
- package/src/components/Layout/SidebarShell/index.tsx +0 -326
- package/src/components/Layout/index.ts +0 -10
- package/src/components/composite/ActionBar/ActionBar.stories.tsx +0 -26
- package/src/components/composite/ActionBar/index.tsx +0 -31
- package/src/components/composite/ActionStatus/ActionStatus.stories.tsx +0 -60
- package/src/components/composite/ActionStatus/index.tsx +0 -21
- package/src/components/composite/AskQuestionCardView/AskQuestionCardView.stories.tsx +0 -175
- package/src/components/composite/AskQuestionCardView/AskQuestionCardViewSource.test.mjs +0 -92
- package/src/components/composite/AskQuestionCardView/index.tsx +0 -119
- package/src/components/composite/AssistantChannelCard/AssistantChannelCard.stories.tsx +0 -265
- package/src/components/composite/AssistantChannelCard/AssistantChannelCardSource.test.mjs +0 -45
- package/src/components/composite/AssistantChannelCard/index.tsx +0 -102
- package/src/components/composite/AssistantToggleRow/AssistantToggleRow.stories.tsx +0 -197
- package/src/components/composite/AssistantToggleRow/index.tsx +0 -35
- package/src/components/composite/AttachmentCard/AttachmentCard.stories.tsx +0 -125
- package/src/components/composite/AttachmentCard/index.tsx +0 -80
- package/src/components/composite/BackButton/BackButton.stories.tsx +0 -93
- package/src/components/composite/BackButton/BackButtonSource.test.mjs +0 -29
- package/src/components/composite/BackButton/index.tsx +0 -48
- package/src/components/composite/Banner/Banner.stories.tsx +0 -180
- package/src/components/composite/Banner/BannerSource.test.mjs +0 -67
- package/src/components/composite/Banner/index.tsx +0 -125
- package/src/components/composite/BeaconIcons/BeaconIcons.stories.tsx +0 -153
- package/src/components/composite/BeaconIcons/index.tsx +0 -265
- package/src/components/composite/BeaconSpinner/BeaconSpinner.stories.tsx +0 -144
- package/src/components/composite/BeaconSpinner/index.tsx +0 -185
- package/src/components/composite/CatalogStates/CatalogEmptyState.stories.tsx +0 -108
- package/src/components/composite/CatalogStates/CatalogStates.stories.tsx +0 -53
- package/src/components/composite/CatalogStates/CatalogStatesSource.test.mjs +0 -149
- package/src/components/composite/CatalogStates/index.tsx +0 -113
- package/src/components/composite/Charts/Charts.stories.tsx +0 -174
- package/src/components/composite/Charts/ChartsSource.test.mjs +0 -111
- package/src/components/composite/Charts/index.tsx +0 -385
- package/src/components/composite/CodeBlock/CodeBlock.stories.tsx +0 -308
- package/src/components/composite/CodeBlock/CodeFaceSource.test.mjs +0 -89
- package/src/components/composite/CodeBlock/index.tsx +0 -300
- package/src/components/composite/CodeDiff/CodeDiff.stories.tsx +0 -169
- package/src/components/composite/CodeDiff/index.tsx +0 -373
- package/src/components/composite/CodePreview/CodePreview.stories.tsx +0 -127
- package/src/components/composite/CodePreview/CodePreviewSource.test.mjs +0 -43
- package/src/components/composite/CodePreview/index.tsx +0 -98
- package/src/components/composite/CommandPalette/CommandPalette.stories.tsx +0 -89
- package/src/components/composite/CommandPalette/CommandPaletteSource.test.mjs +0 -61
- package/src/components/composite/CommandPalette/index.tsx +0 -310
- package/src/components/composite/ContentRecommendation/ContentRecommendation.stories.tsx +0 -300
- package/src/components/composite/ContentRecommendation/ContentRecommendationSource.test.mjs +0 -48
- package/src/components/composite/ContentRecommendation/index.tsx +0 -116
- package/src/components/composite/ContextChip/ContextChip.stories.tsx +0 -123
- package/src/components/composite/ContextChip/ContextChipSource.test.mjs +0 -24
- package/src/components/composite/ContextChip/index.tsx +0 -25
- package/src/components/composite/ContextUsageIndicatorView/ContextUsageIndicatorSizeSource.test.mjs +0 -15
- package/src/components/composite/ContextUsageIndicatorView/ContextUsageIndicatorView.stories.tsx +0 -110
- package/src/components/composite/ContextUsageIndicatorView/ContextUsageLoadingSource.test.mjs +0 -23
- package/src/components/composite/ContextUsageIndicatorView/index.tsx +0 -139
- package/src/components/composite/Controls/Controls.stories.tsx +0 -227
- package/src/components/composite/Controls/index.tsx +0 -15
- package/src/components/composite/CreateProjectDialog/CreateProjectDialog.stories.tsx +0 -56
- package/src/components/composite/CreateProjectDialog/index.tsx +0 -70
- package/src/components/composite/DataManagementSectionView/DataManagementSectionView.stories.tsx +0 -123
- package/src/components/composite/DataManagementSectionView/DataManagementSectionViewSource.test.mjs +0 -45
- package/src/components/composite/DataManagementSectionView/index.tsx +0 -110
- package/src/components/composite/DataTable/DataTable.stories.tsx +0 -159
- package/src/components/composite/DataTable/DataTableSource.test.mjs +0 -96
- package/src/components/composite/DataTable/index.tsx +0 -373
- package/src/components/composite/DetailChrome/DetailChrome.stories.tsx +0 -61
- package/src/components/composite/DetailChrome/DetailChromeSource.test.mjs +0 -31
- package/src/components/composite/DetailChrome/index.tsx +0 -94
- package/src/components/composite/DetailPanel/DetailPanel.stories.tsx +0 -185
- package/src/components/composite/DetailPanel/DetailPanelSource.test.mjs +0 -49
- package/src/components/composite/DetailPanel/index.tsx +0 -120
- package/src/components/composite/DetailScaffold/DetailScaffold.stories.tsx +0 -203
- package/src/components/composite/DetailScaffold/DetailScaffoldSource.test.mjs +0 -38
- package/src/components/composite/DetailScaffold/index.tsx +0 -114
- package/src/components/composite/Dialog/Dialog.stories.tsx +0 -343
- package/src/components/composite/Dialog/DialogSource.test.mjs +0 -130
- package/src/components/composite/Dialog/index.tsx +0 -333
- package/src/components/composite/DropZone/DropZone.stories.tsx +0 -105
- package/src/components/composite/DropZone/DropZoneSource.test.mjs +0 -68
- package/src/components/composite/DropZone/index.tsx +0 -196
- package/src/components/composite/FSelect/FSelect.stories.tsx +0 -64
- package/src/components/composite/FSelect/index.tsx +0 -29
- package/src/components/composite/FeedbackContextMenuView/FeedbackContextMenuView.stories.tsx +0 -106
- package/src/components/composite/FeedbackContextMenuView/index.tsx +0 -51
- package/src/components/composite/FeedbackDialogView/FeedbackDialogView.stories.tsx +0 -291
- package/src/components/composite/FeedbackDialogView/index.tsx +0 -95
- package/src/components/composite/FileReferenceCard/FileReferenceCard.stories.tsx +0 -364
- package/src/components/composite/FileReferenceCard/FileReferenceCardSource.test.mjs +0 -48
- package/src/components/composite/FileReferenceCard/index.tsx +0 -122
- package/src/components/composite/FilterBar/FilterBar.stories.tsx +0 -167
- package/src/components/composite/FilterBar/FilterBarSource.test.mjs +0 -75
- package/src/components/composite/FilterBar/index.tsx +0 -206
- package/src/components/composite/FormField/FormField.stories.tsx +0 -158
- package/src/components/composite/FormField/FormFieldSource.test.mjs +0 -56
- package/src/components/composite/FormField/index.tsx +0 -219
- package/src/components/composite/HomeBackdrop/HomeBackdrop.stories.tsx +0 -54
- package/src/components/composite/HomeBackdrop/HomeBackdropSource.test.mjs +0 -50
- package/src/components/composite/HomeBackdrop/index.tsx +0 -53
- package/src/components/composite/Icons/Icons.stories.tsx +0 -153
- package/src/components/composite/Icons/IconsSource.test.mjs +0 -23
- package/src/components/composite/Icons/index.tsx +0 -1361
- package/src/components/composite/ImageCard/ImageCard.stories.tsx +0 -54
- package/src/components/composite/ImageCard/index.tsx +0 -33
- package/src/components/composite/ImagePreview/ImagePreview.stories.tsx +0 -172
- package/src/components/composite/ImagePreview/ImagePreviewSource.test.mjs +0 -95
- package/src/components/composite/ImagePreview/index.tsx +0 -339
- package/src/components/composite/ListRow/ListRow.stories.tsx +0 -257
- package/src/components/composite/ListRow/ListRowSource.test.mjs +0 -101
- package/src/components/composite/ListRow/index.tsx +0 -309
- package/src/components/composite/Markdown/Markdown.stories.tsx +0 -192
- package/src/components/composite/Markdown/MarkdownSource.test.mjs +0 -126
- package/src/components/composite/Markdown/MarkdownStyleSource.test.mjs +0 -152
- package/src/components/composite/Markdown/index.tsx +0 -702
- package/src/components/composite/MarkdownPreview/MarkdownPreview.stories.tsx +0 -174
- package/src/components/composite/MarkdownPreview/MarkdownPreviewTabsSource.test.mjs +0 -31
- package/src/components/composite/MarkdownPreview/MarkdownRenderedStyleSource.test.mjs +0 -84
- package/src/components/composite/MarkdownPreview/index.tsx +0 -140
- package/src/components/composite/MarkdownPreviewModalView/MarkdownPreviewModalView.stories.tsx +0 -104
- package/src/components/composite/MarkdownPreviewModalView/index.tsx +0 -85
- package/src/components/composite/MessageFeedbackDialog/MessageFeedbackDialog.stories.tsx +0 -66
- package/src/components/composite/MessageFeedbackDialog/index.tsx +0 -115
- package/src/components/composite/ModelCatalogErrorState/ModelCatalogErrorState.stories.tsx +0 -101
- package/src/components/composite/ModelCatalogErrorState/ModelCatalogRetrySource.test.mjs +0 -86
- package/src/components/composite/ModelCatalogErrorState/index.tsx +0 -59
- package/src/components/composite/ModelModalityFlow/ModelModalityFlow.stories.tsx +0 -224
- package/src/components/composite/ModelModalityFlow/ModelModalityFlowSource.test.mjs +0 -56
- package/src/components/composite/ModelModalityFlow/index.tsx +0 -113
- package/src/components/composite/ModelPickerList/ModelPickerList.stories.tsx +0 -313
- package/src/components/composite/ModelPickerList/index.tsx +0 -142
- package/src/components/composite/ModelSelect/ModelSelect.stories.tsx +0 -90
- package/src/components/composite/ModelSelect/index.tsx +0 -148
- package/src/components/composite/ModelsSettingsSectionView/ModelsSettingsSectionView.stories.tsx +0 -170
- package/src/components/composite/ModelsSettingsSectionView/index.tsx +0 -139
- package/src/components/composite/NativeControls/NativeControls.stories.tsx +0 -386
- package/src/components/composite/NativeControls/NativeControlsStyleSource.test.mjs +0 -63
- package/src/components/composite/NativeControls/index.tsx +0 -97
- package/src/components/composite/NavMenu/NavMenu.stories.tsx +0 -383
- package/src/components/composite/NavMenu/NavMenuSource.test.mjs +0 -56
- package/src/components/composite/NavMenu/index.tsx +0 -142
- package/src/components/composite/NoPlanPanelView/NoPlanPanelView.stories.tsx +0 -344
- package/src/components/composite/NoPlanPanelView/NoPlanPanelViewSource.test.mjs +0 -34
- package/src/components/composite/NoPlanPanelView/index.tsx +0 -97
- package/src/components/composite/OpenWithButton/OpenWithButton.stories.tsx +0 -78
- package/src/components/composite/OpenWithButton/index.tsx +0 -46
- package/src/components/composite/OrbitworkLogo/OrbitworkLogo.stories.tsx +0 -192
- package/src/components/composite/OrbitworkLogo/index.tsx +0 -207
- package/src/components/composite/OrbitworkModal/OrbitworkModal.stories.tsx +0 -58
- package/src/components/composite/OrbitworkModal/index.tsx +0 -31
- package/src/components/composite/PageHead/PageHead.stories.tsx +0 -235
- package/src/components/composite/PageHead/PageHeadSource.test.mjs +0 -76
- package/src/components/composite/PageHead/index.tsx +0 -128
- package/src/components/composite/PlanFeatureIcon/PlanFeatureIcon.stories.tsx +0 -205
- package/src/components/composite/PlanFeatureIcon/PlanFeatureIconSource.test.mjs +0 -38
- package/src/components/composite/PlanFeatureIcon/index.tsx +0 -48
- package/src/components/composite/PlanSettingsSectionView/PlanSettingsSectionView.stories.tsx +0 -231
- package/src/components/composite/PlanSettingsSectionView/PlanSettingsSectionViewSource.test.mjs +0 -85
- package/src/components/composite/PlanSettingsSectionView/index.tsx +0 -264
- package/src/components/composite/Popover/Popover.stories.tsx +0 -175
- package/src/components/composite/Popover/PopoverSource.test.mjs +0 -59
- package/src/components/composite/Popover/index.tsx +0 -176
- package/src/components/composite/PptxRenderer/ElementDispatcher/index.tsx +0 -70
- package/src/components/composite/PptxRenderer/PptxChromeStyleSource.test.mjs +0 -36
- package/src/components/composite/PptxRenderer/PptxRenderer.stories.tsx +0 -128
- package/src/components/composite/PptxRenderer/PptxSlide/index.tsx +0 -48
- package/src/components/composite/PptxRenderer/constants.ts +0 -2
- package/src/components/composite/PptxRenderer/elements/AudioElement/index.tsx +0 -48
- package/src/components/composite/PptxRenderer/elements/ChartElement/index.tsx +0 -172
- package/src/components/composite/PptxRenderer/elements/DiagramElement/index.tsx +0 -46
- package/src/components/composite/PptxRenderer/elements/GroupElement/index.tsx +0 -28
- package/src/components/composite/PptxRenderer/elements/ImageElement/index.tsx +0 -61
- package/src/components/composite/PptxRenderer/elements/MathElement/index.tsx +0 -57
- package/src/components/composite/PptxRenderer/elements/ShapeElement/index.tsx +0 -327
- package/src/components/composite/PptxRenderer/elements/TableElement/index.tsx +0 -90
- package/src/components/composite/PptxRenderer/elements/TextElement/index.tsx +0 -57
- package/src/components/composite/PptxRenderer/elements/VideoElement/index.tsx +0 -43
- package/src/components/composite/PptxRenderer/index.ts +0 -24
- package/src/components/composite/PptxRenderer/types.ts +0 -326
- package/src/components/composite/PptxRenderer/utils.ts +0 -129
- package/src/components/composite/ProjectSelect/ProjectSelect.stories.tsx +0 -112
- package/src/components/composite/ProjectSelect/ProjectSelectSource.test.mjs +0 -34
- package/src/components/composite/ProjectSelect/index.tsx +0 -155
- package/src/components/composite/RadioCard/RadioCard.stories.tsx +0 -130
- package/src/components/composite/RadioCard/RadioCardSource.test.mjs +0 -42
- package/src/components/composite/RadioCard/index.tsx +0 -171
- package/src/components/composite/RowOverflowMenu/RowOverflowMenu.stories.tsx +0 -113
- package/src/components/composite/RowOverflowMenu/RowOverflowMenuSource.test.mjs +0 -59
- package/src/components/composite/RowOverflowMenu/index.tsx +0 -101
- package/src/components/composite/SandboxPermissionPrompt/SandboxPermissionPrompt.stories.tsx +0 -159
- package/src/components/composite/SandboxPermissionPrompt/SandboxPermissionPromptSource.test.mjs +0 -71
- package/src/components/composite/SandboxPermissionPrompt/index.tsx +0 -157
- package/src/components/composite/SearchInput/SearchInput.stories.tsx +0 -127
- package/src/components/composite/SearchInput/index.tsx +0 -91
- package/src/components/composite/SearchResult/SearchResult.stories.tsx +0 -305
- package/src/components/composite/SearchResult/SearchResultSource.test.mjs +0 -45
- package/src/components/composite/SearchResult/index.tsx +0 -148
- package/src/components/composite/Section/Section.stories.tsx +0 -148
- package/src/components/composite/Section/SectionSource.test.mjs +0 -59
- package/src/components/composite/Section/index.tsx +0 -105
- package/src/components/composite/SelectionBulkBar/SelectionBulkBar.stories.tsx +0 -111
- package/src/components/composite/SelectionBulkBar/SelectionBulkBarSource.test.mjs +0 -44
- package/src/components/composite/SelectionBulkBar/index.tsx +0 -99
- package/src/components/composite/ShareStrip/ShareStrip.stories.tsx +0 -123
- package/src/components/composite/ShareStrip/index.tsx +0 -83
- package/src/components/composite/ShortcutSheet/ShortcutSheet.stories.tsx +0 -90
- package/src/components/composite/ShortcutSheet/ShortcutSheetSource.test.mjs +0 -49
- package/src/components/composite/ShortcutSheet/index.tsx +0 -163
- package/src/components/composite/SitesArtifactCardView/SitesArtifactCardView.stories.tsx +0 -328
- package/src/components/composite/SitesArtifactCardView/SitesArtifactCardViewSource.test.mjs +0 -45
- package/src/components/composite/SitesArtifactCardView/index.tsx +0 -100
- package/src/components/composite/Skeleton/Skeleton.stories.tsx +0 -188
- package/src/components/composite/Skeleton/SkeletonSource.test.mjs +0 -25
- package/src/components/composite/Skeleton/index.tsx +0 -152
- package/src/components/composite/Splash/Splash.stories.tsx +0 -150
- package/src/components/composite/Splash/index.tsx +0 -229
- package/src/components/composite/StatusTag/StatusTag.stories.tsx +0 -66
- package/src/components/composite/StatusTag/StatusTagSource.test.mjs +0 -64
- package/src/components/composite/StatusTag/index.tsx +0 -78
- package/src/components/composite/StepList/StepList.stories.tsx +0 -352
- package/src/components/composite/StepList/index.tsx +0 -23
- package/src/components/composite/Tag/Tag.stories.tsx +0 -279
- package/src/components/composite/Tag/TagSource.test.mjs +0 -67
- package/src/components/composite/Tag/index.tsx +0 -229
- package/src/components/composite/TimePicker/TimePicker.stories.tsx +0 -91
- package/src/components/composite/TimePicker/TimePickerSource.test.mjs +0 -98
- package/src/components/composite/TimePicker/index.tsx +0 -208
- package/src/components/composite/TitleBar/TitleBar.stories.tsx +0 -329
- package/src/components/composite/TitleBar/TitleBarSource.test.mjs +0 -140
- package/src/components/composite/TitleBar/index.tsx +0 -350
- package/src/components/composite/Toast/Toast.stories.tsx +0 -304
- package/src/components/composite/Toast/ToastSource.test.mjs +0 -63
- package/src/components/composite/Toast/index.tsx +0 -135
- package/src/components/composite/Tooltip/Tooltip.stories.tsx +0 -304
- package/src/components/composite/Tooltip/TooltipSource.test.mjs +0 -34
- package/src/components/composite/Tooltip/index.tsx +0 -204
- package/src/components/composite/TranscriptDividers/TranscriptDividers.stories.tsx +0 -160
- package/src/components/composite/TranscriptDividers/TranscriptDividersSource.test.mjs +0 -90
- package/src/components/composite/TranscriptDividers/index.tsx +0 -352
- package/src/components/composite/WCardShell/WCardShell.stories.tsx +0 -228
- package/src/components/composite/WCardShell/index.tsx +0 -101
- package/src/components/composite/index.ts +0 -81
- package/src/components/domain/artifacts/ArtifactPreviewSidebarView/ArtifactPreviewSidebarView.stories.tsx +0 -128
- package/src/components/domain/artifacts/ArtifactPreviewSidebarView/ArtifactPreviewSidebarViewSource.test.mjs +0 -69
- package/src/components/domain/artifacts/ArtifactPreviewSidebarView/index.tsx +0 -212
- package/src/components/domain/artifacts/index.ts +0 -1
- package/src/components/domain/browser/BrowserAnnotationPopupView/BrowserAnnotationPopupView.stories.tsx +0 -211
- package/src/components/domain/browser/BrowserAnnotationPopupView/BrowserAnnotationPopupViewSource.test.mjs +0 -82
- package/src/components/domain/browser/BrowserAnnotationPopupView/index.tsx +0 -235
- package/src/components/domain/browser/BrowserDeviceToolbarView/BrowserDeviceToolbarView.stories.tsx +0 -260
- package/src/components/domain/browser/BrowserDeviceToolbarView/BrowserDeviceToolbarViewSource.test.mjs +0 -12
- package/src/components/domain/browser/BrowserDeviceToolbarView/index.tsx +0 -154
- package/src/components/domain/browser/BrowserFindBarView/BrowserFindBarView.stories.tsx +0 -52
- package/src/components/domain/browser/BrowserFindBarView/index.tsx +0 -111
- package/src/components/domain/browser/BrowserImportDialogView/BrowserImportDialogView.stories.tsx +0 -89
- package/src/components/domain/browser/BrowserImportDialogView/index.tsx +0 -155
- package/src/components/domain/browser/BrowserLoadErrorView/BrowserLoadErrorView.stories.tsx +0 -197
- package/src/components/domain/browser/BrowserLoadErrorView/BrowserLoadErrorViewSource.test.mjs +0 -29
- package/src/components/domain/browser/BrowserLoadErrorView/index.tsx +0 -45
- package/src/components/domain/browser/BrowserMoreMenuView/BrowserMoreMenuView.stories.tsx +0 -66
- package/src/components/domain/browser/BrowserMoreMenuView/index.tsx +0 -268
- package/src/components/domain/browser/BrowserNavBarView/BrowserNavBarView.stories.tsx +0 -149
- package/src/components/domain/browser/BrowserNavBarView/index.tsx +0 -156
- package/src/components/domain/browser/BrowserTabBarView/index.tsx +0 -18
- package/src/components/domain/browser/SubAgentPane/SubAgentPane.stories.tsx +0 -96
- package/src/components/domain/browser/SubAgentPane/SubAgentPaneSource.test.mjs +0 -48
- package/src/components/domain/browser/SubAgentPane/index.tsx +0 -121
- package/src/components/domain/browser/TerminalPane/TerminalPane.stories.tsx +0 -95
- package/src/components/domain/browser/TerminalPane/TerminalPaneSource.test.mjs +0 -52
- package/src/components/domain/browser/TerminalPane/index.tsx +0 -75
- package/src/components/domain/browser/WebPreview/WebPreview.stories.tsx +0 -71
- package/src/components/domain/browser/WebPreview/index.tsx +0 -141
- package/src/components/domain/browser/WebPreviewConsole/WebPreviewConsole.stories.tsx +0 -61
- package/src/components/domain/browser/WebPreviewConsole/WebPreviewConsoleSource.test.mjs +0 -66
- package/src/components/domain/browser/WebPreviewConsole/index.tsx +0 -239
- package/src/components/domain/browser/WebPreviewDialog/WebPreviewDialog.stories.tsx +0 -288
- package/src/components/domain/browser/WebPreviewDialog/WebPreviewDialogSource.test.mjs +0 -62
- package/src/components/domain/browser/WebPreviewDialog/index.tsx +0 -82
- package/src/components/domain/browser/WebPreviewNav/WebPreviewNav.stories.tsx +0 -462
- package/src/components/domain/browser/WebPreviewNav/WebPreviewNavSource.test.mjs +0 -353
- package/src/components/domain/browser/WebPreviewNav/index.tsx +0 -351
- package/src/components/domain/browser/WebPreviewShell/WebPreviewShell.stories.tsx +0 -226
- package/src/components/domain/browser/WebPreviewShell/WebPreviewShellSource.test.mjs +0 -172
- package/src/components/domain/browser/WebPreviewShell/index.tsx +0 -324
- package/src/components/domain/browser/index.ts +0 -45
- package/src/components/domain/chat/AgentLoopSegment/AgentLoopSegment.stories.tsx +0 -107
- package/src/components/domain/chat/AgentLoopSegment/AgentLoopSegmentSource.test.mjs +0 -45
- package/src/components/domain/chat/AgentLoopSegment/index.tsx +0 -29
- package/src/components/domain/chat/AgentTurn/AgentTurn.stories.tsx +0 -162
- package/src/components/domain/chat/AgentTurn/AgentTurnSource.test.mjs +0 -98
- package/src/components/domain/chat/AgentTurn/beaconContext.ts +0 -37
- package/src/components/domain/chat/AgentTurn/index.tsx +0 -226
- package/src/components/domain/chat/ArtifactCard/ArtifactCard.stories.tsx +0 -127
- package/src/components/domain/chat/ArtifactCard/index.tsx +0 -249
- package/src/components/domain/chat/Attachment/Attachment.stories.tsx +0 -235
- package/src/components/domain/chat/Attachment/AttachmentSource.test.mjs +0 -160
- package/src/components/domain/chat/Attachment/index.tsx +0 -857
- package/src/components/domain/chat/AuthorizationCard/AuthorizationCard.stories.tsx +0 -53
- package/src/components/domain/chat/AuthorizationCard/AuthorizationCardSource.test.mjs +0 -80
- package/src/components/domain/chat/AuthorizationCard/index.tsx +0 -89
- package/src/components/domain/chat/ChatBubble/ChatBubble.stories.tsx +0 -32
- package/src/components/domain/chat/ChatBubble/index.tsx +0 -24
- package/src/components/domain/chat/ChatMessage/ChatMessage.stories.tsx +0 -31
- package/src/components/domain/chat/ChatMessage/index.tsx +0 -23
- package/src/components/domain/chat/ChatR2ReviewSource.test.mjs +0 -98
- package/src/components/domain/chat/ChatThinking/ChatThinking.stories.tsx +0 -125
- package/src/components/domain/chat/ChatThinking/index.tsx +0 -55
- package/src/components/domain/chat/Chatbot/Chatbot.stories.tsx +0 -49
- package/src/components/domain/chat/Chatbot/index.tsx +0 -37
- package/src/components/domain/chat/Composer/Composer.stories.tsx +0 -227
- package/src/components/domain/chat/Composer/ComposerSource.test.mjs +0 -175
- package/src/components/domain/chat/Composer/index.tsx +0 -450
- package/src/components/domain/chat/Composer/parts/ComposerAudioSpectrum.stories.tsx +0 -203
- package/src/components/domain/chat/Composer/parts/ComposerAudioSpectrum.tsx +0 -110
- package/src/components/domain/chat/Composer/parts/ComposerAudioSpectrumSource.test.mjs +0 -54
- package/src/components/domain/chat/Composer/parts/ComposerAuthorization.stories.tsx +0 -155
- package/src/components/domain/chat/Composer/parts/ComposerAuthorization.tsx +0 -108
- package/src/components/domain/chat/Composer/parts/ComposerMentions.stories.tsx +0 -76
- package/src/components/domain/chat/Composer/parts/ComposerMentions.tsx +0 -83
- package/src/components/domain/chat/Composer/parts/ComposerMentionsSource.test.mjs +0 -85
- package/src/components/domain/chat/Composer/parts/ComposerMenu.stories.tsx +0 -266
- package/src/components/domain/chat/Composer/parts/ComposerMenu.tsx +0 -232
- package/src/components/domain/chat/Composer/parts/ComposerMenuPopover.stories.tsx +0 -166
- package/src/components/domain/chat/Composer/parts/ComposerMenuPopover.tsx +0 -87
- package/src/components/domain/chat/Composer/parts/ComposerMenuPopoverSource.test.mjs +0 -56
- package/src/components/domain/chat/Composer/parts/ComposerPopover.stories.tsx +0 -257
- package/src/components/domain/chat/Composer/parts/ComposerPopover.tsx +0 -221
- package/src/components/domain/chat/Composer/parts/ComposerPopoverSource.test.mjs +0 -71
- package/src/components/domain/chat/Composer/parts/ComposerProjectPicker.stories.tsx +0 -260
- package/src/components/domain/chat/Composer/parts/ComposerProjectPicker.tsx +0 -246
- package/src/components/domain/chat/Composer/parts/ComposerProjectPickerSource.test.mjs +0 -46
- package/src/components/domain/chat/Composer/parts/ComposerQueue.stories.tsx +0 -275
- package/src/components/domain/chat/Composer/parts/ComposerQueue.tsx +0 -155
- package/src/components/domain/chat/Composer/parts/ComposerQueueSource.test.mjs +0 -95
- package/src/components/domain/chat/Composer/parts/ComposerVoiceInput.stories.tsx +0 -77
- package/src/components/domain/chat/Composer/parts/ComposerVoiceInput.tsx +0 -70
- package/src/components/domain/chat/Composer/parts/mountChip.ts +0 -21
- package/src/components/domain/chat/ContextUsage/ContextUsage.stories.tsx +0 -62
- package/src/components/domain/chat/ContextUsage/index.tsx +0 -69
- package/src/components/domain/chat/ExecutionSummary/ExecutionSummary.stories.tsx +0 -238
- package/src/components/domain/chat/ExecutionSummary/ExecutionSummarySource.test.mjs +0 -210
- package/src/components/domain/chat/ExecutionSummary/index.tsx +0 -487
- package/src/components/domain/chat/Message/Message.stories.tsx +0 -264
- package/src/components/domain/chat/Message/index.tsx +0 -44
- package/src/components/domain/chat/MessageActions/MessageActions.stories.tsx +0 -132
- package/src/components/domain/chat/MessageActions/MessageActionsSource.test.mjs +0 -79
- package/src/components/domain/chat/MessageActions/index.tsx +0 -186
- package/src/components/domain/chat/PlanCard/PlanCard.stories.tsx +0 -87
- package/src/components/domain/chat/PlanCard/index.tsx +0 -170
- package/src/components/domain/chat/RichContent/RichContent.stories.tsx +0 -102
- package/src/components/domain/chat/RichContent/RichContentSource.test.mjs +0 -82
- package/src/components/domain/chat/RichContent/index.tsx +0 -465
- package/src/components/domain/chat/SubAgentThread/SubAgentThread.stories.tsx +0 -119
- package/src/components/domain/chat/SubAgentThread/index.tsx +0 -104
- package/src/components/domain/chat/Thinking/Thinking.stories.tsx +0 -196
- package/src/components/domain/chat/Thinking/ThinkingInlineSource.test.mjs +0 -154
- package/src/components/domain/chat/Thinking/index.tsx +0 -237
- package/src/components/domain/chat/ToolCallRow/ToolCallRow.stories.tsx +0 -105
- package/src/components/domain/chat/ToolCallRow/ToolCallRowSource.test.mjs +0 -83
- package/src/components/domain/chat/ToolCallRow/index.tsx +0 -113
- package/src/components/domain/chat/Transcript/Transcript.stories.tsx +0 -296
- package/src/components/domain/chat/Transcript/TranscriptSource.test.mjs +0 -189
- package/src/components/domain/chat/Transcript/index.tsx +0 -187
- package/src/components/domain/chat/TranscriptSpine/TranscriptSpine.stories.tsx +0 -124
- package/src/components/domain/chat/TranscriptSpine/index.tsx +0 -245
- package/src/components/domain/chat/UserTurn/UserTurn.stories.tsx +0 -176
- package/src/components/domain/chat/UserTurn/UserTurnSource.test.mjs +0 -150
- package/src/components/domain/chat/UserTurn/index.tsx +0 -194
- package/src/components/domain/chat/index.ts +0 -22
- package/src/components/domain/desktop/DesktopAccountMenuView/DesktopAccountMenuView.stories.tsx +0 -116
- package/src/components/domain/desktop/DesktopAccountMenuView/DesktopAccountMenuViewSource.test.mjs +0 -80
- package/src/components/domain/desktop/DesktopAccountMenuView/index.tsx +0 -355
- package/src/components/domain/desktop/DesktopAppearanceSettings/DesktopAppearanceSettings.stories.tsx +0 -96
- package/src/components/domain/desktop/DesktopAppearanceSettings/DesktopAppearanceSettingsSource.test.mjs +0 -89
- package/src/components/domain/desktop/DesktopAppearanceSettings/index.tsx +0 -155
- package/src/components/domain/desktop/DesktopAssistantConfigView/DesktopAssistantConfigView.stories.tsx +0 -275
- package/src/components/domain/desktop/DesktopAssistantConfigView/DesktopAssistantConfigViewSource.test.mjs +0 -37
- package/src/components/domain/desktop/DesktopAssistantConfigView/index.tsx +0 -221
- package/src/components/domain/desktop/DesktopCatalogView/DesktopCatalogView.stories.tsx +0 -537
- package/src/components/domain/desktop/DesktopCatalogView/DesktopCatalogViewSource.test.mjs +0 -339
- package/src/components/domain/desktop/DesktopCatalogView/index.tsx +0 -1074
- package/src/components/domain/desktop/DesktopChatBranchDivider/DesktopChatBranchDivider.stories.tsx +0 -58
- package/src/components/domain/desktop/DesktopChatBranchDivider/index.tsx +0 -33
- package/src/components/domain/desktop/DesktopChatEmptyStateView/DesktopChatEmptyStateView.stories.tsx +0 -75
- package/src/components/domain/desktop/DesktopChatEmptyStateView/DesktopChatEmptyStateViewSource.test.mjs +0 -54
- package/src/components/domain/desktop/DesktopChatEmptyStateView/index.tsx +0 -64
- package/src/components/domain/desktop/DesktopChatHeaderView/DesktopChatHeaderView.stories.tsx +0 -83
- package/src/components/domain/desktop/DesktopChatHeaderView/DesktopChatHeaderViewSource.test.mjs +0 -126
- package/src/components/domain/desktop/DesktopChatHeaderView/index.tsx +0 -169
- package/src/components/domain/desktop/DesktopChatMessageView/DesktopChatMessageView.stories.tsx +0 -170
- package/src/components/domain/desktop/DesktopChatMessageView/DesktopChatMessageViewSource.test.mjs +0 -47
- package/src/components/domain/desktop/DesktopChatMessageView/index.tsx +0 -213
- package/src/components/domain/desktop/DesktopChatTurnView/DesktopChatTurnView.stories.tsx +0 -498
- package/src/components/domain/desktop/DesktopChatTurnView/DesktopChatTurnViewSource.test.mjs +0 -187
- package/src/components/domain/desktop/DesktopChatTurnView/index.tsx +0 -490
- package/src/components/domain/desktop/DesktopComposer/DesktopComposer.stories.tsx +0 -195
- package/src/components/domain/desktop/DesktopComposer/DesktopComposerModelPickerSource.test.mjs +0 -132
- package/src/components/domain/desktop/DesktopComposer/DesktopComposerMountChipSource.test.mjs +0 -43
- package/src/components/domain/desktop/DesktopComposer/DesktopComposerResponsiveSource.test.mjs +0 -44
- package/src/components/domain/desktop/DesktopComposer/DesktopMcpFormThemeSource.test.mjs +0 -30
- package/src/components/domain/desktop/DesktopComposer/index.tsx +0 -206
- package/src/components/domain/desktop/DesktopConnectorDetailView/DesktopConnectorDetailView.stories.tsx +0 -72
- package/src/components/domain/desktop/DesktopConnectorDetailView/DesktopConnectorDetailViewSource.test.mjs +0 -81
- package/src/components/domain/desktop/DesktopConnectorDetailView/index.tsx +0 -301
- package/src/components/domain/desktop/DesktopHomeView/DesktopHomeView.stories.tsx +0 -103
- package/src/components/domain/desktop/DesktopHomeView/DesktopHomeViewSource.test.mjs +0 -51
- package/src/components/domain/desktop/DesktopHomeView/index.tsx +0 -122
- package/src/components/domain/desktop/DesktopLibraryAuthorizationDialog/DesktopLibraryAuthorizationDialog.stories.tsx +0 -55
- package/src/components/domain/desktop/DesktopLibraryAuthorizationDialog/index.tsx +0 -156
- package/src/components/domain/desktop/DesktopLibraryPageView/DesktopLibraryPageView.stories.tsx +0 -42
- package/src/components/domain/desktop/DesktopLibraryPageView/index.tsx +0 -35
- package/src/components/domain/desktop/DesktopLoginView/DesktopLoginView.css +0 -75
- package/src/components/domain/desktop/DesktopLoginView/DesktopLoginView.stories.tsx +0 -230
- package/src/components/domain/desktop/DesktopLoginView/DesktopLoginViewSource.test.mjs +0 -149
- package/src/components/domain/desktop/DesktopLoginView/index.tsx +0 -418
- package/src/components/domain/desktop/DesktopOnboardingTourView/DesktopOnboardingTourView.stories.tsx +0 -103
- package/src/components/domain/desktop/DesktopOnboardingTourView/DesktopOnboardingTourViewSource.test.mjs +0 -57
- package/src/components/domain/desktop/DesktopOnboardingTourView/index.tsx +0 -189
- package/src/components/domain/desktop/DesktopPet/DesktopPet.fixture.ts +0 -243
- package/src/components/domain/desktop/DesktopPet/DesktopPet.stories.tsx +0 -337
- package/src/components/domain/desktop/DesktopPet/DesktopPetSource.test.mjs +0 -191
- package/src/components/domain/desktop/DesktopPet/index.tsx +0 -591
- package/src/components/domain/desktop/DesktopPetSettings/DesktopPetSettings.stories.tsx +0 -159
- package/src/components/domain/desktop/DesktopPetSettings/DesktopPetSettingsSource.test.mjs +0 -76
- package/src/components/domain/desktop/DesktopPetSettings/index.tsx +0 -140
- package/src/components/domain/desktop/DesktopRunStatusView/DesktopRunStatusView.stories.tsx +0 -166
- package/src/components/domain/desktop/DesktopRunStatusView/DesktopRunStatusViewSource.test.mjs +0 -51
- package/src/components/domain/desktop/DesktopRunStatusView/index.tsx +0 -34
- package/src/components/domain/desktop/DesktopSelectionCard/DesktopSelectionCard.stories.tsx +0 -122
- package/src/components/domain/desktop/DesktopSelectionCard/DesktopSelectionCardSource.test.mjs +0 -42
- package/src/components/domain/desktop/DesktopSelectionCard/index.tsx +0 -75
- package/src/components/domain/desktop/DesktopSettingsMemorySection/DesktopSettingsMemorySection.stories.tsx +0 -225
- package/src/components/domain/desktop/DesktopSettingsMemorySection/DesktopSettingsMemorySectionSource.test.mjs +0 -105
- package/src/components/domain/desktop/DesktopSettingsMemorySection/index.tsx +0 -340
- package/src/components/domain/desktop/DesktopSettingsView/DesktopSettingsView.stories.tsx +0 -177
- package/src/components/domain/desktop/DesktopSettingsView/DesktopSettingsViewSource.test.mjs +0 -195
- package/src/components/domain/desktop/DesktopSettingsView/index.tsx +0 -176
- package/src/components/domain/desktop/DesktopShareSelectionBarView/DesktopShareSelectionBarView.stories.tsx +0 -77
- package/src/components/domain/desktop/DesktopShareSelectionBarView/DesktopShareSelectionBarViewSource.test.mjs +0 -76
- package/src/components/domain/desktop/DesktopShareSelectionBarView/index.tsx +0 -55
- package/src/components/domain/desktop/DesktopSidebarView/DesktopSidebarView.stories.tsx +0 -454
- package/src/components/domain/desktop/DesktopSidebarView/DesktopSidebarViewSource.test.mjs +0 -386
- package/src/components/domain/desktop/DesktopSidebarView/index.tsx +0 -1075
- package/src/components/domain/desktop/DesktopSiteReleasesView/DesktopSiteReleasesView.stories.tsx +0 -369
- package/src/components/domain/desktop/DesktopSiteReleasesView/DesktopSiteReleasesViewSource.test.mjs +0 -123
- package/src/components/domain/desktop/DesktopSiteReleasesView/index.tsx +0 -392
- package/src/components/domain/desktop/DesktopSitesListView/DesktopSitesListView.stories.tsx +0 -244
- package/src/components/domain/desktop/DesktopSitesListView/DesktopSitesListViewSource.test.mjs +0 -198
- package/src/components/domain/desktop/DesktopSitesListView/index.tsx +0 -417
- package/src/components/domain/desktop/DesktopSkillsPageView/DesktopSkillsPageView.stories.tsx +0 -230
- package/src/components/domain/desktop/DesktopSkillsPageView/DesktopSkillsPageViewSource.test.mjs +0 -149
- package/src/components/domain/desktop/DesktopSkillsPageView/index.tsx +0 -235
- package/src/components/domain/desktop/DesktopTaskDetailView/index.tsx +0 -111
- package/src/components/domain/desktop/DesktopToolCallView/DesktopToolCallListViewSource.test.mjs +0 -302
- package/src/components/domain/desktop/DesktopToolCallView/DesktopToolCallView.stories.tsx +0 -409
- package/src/components/domain/desktop/DesktopToolCallView/index.tsx +0 -388
- package/src/components/domain/desktop/DesktopWorkbenchShell/DesktopWorkbenchShell.stories.tsx +0 -418
- package/src/components/domain/desktop/DesktopWorkbenchShell/DesktopWorkbenchShellSource.test.mjs +0 -151
- package/src/components/domain/desktop/DesktopWorkbenchShell/index.tsx +0 -167
- package/src/components/domain/desktop/DesktopWorkspacePageView/DesktopWorkspacePageView.stories.tsx +0 -135
- package/src/components/domain/desktop/DesktopWorkspacePageView/DesktopWorkspacePageViewSource.test.mjs +0 -57
- package/src/components/domain/desktop/DesktopWorkspacePageView/index.tsx +0 -114
- package/src/components/domain/desktop/DesktopWorkspaceView/DesktopWorkspaceView.stories.tsx +0 -227
- package/src/components/domain/desktop/DesktopWorkspaceView/DesktopWorkspaceViewSource.test.mjs +0 -175
- package/src/components/domain/desktop/DesktopWorkspaceView/index.tsx +0 -580
- package/src/components/domain/desktop/ResourceManagement/ResourceManagement.stories.tsx +0 -19
- package/src/components/domain/desktop/ResourceManagement/ResourceManagementSource.test.mjs +0 -54
- package/src/components/domain/desktop/ResourceManagement/SharesList.tsx +0 -323
- package/src/components/domain/desktop/ResourceManagement/SnapshotViews.tsx +0 -92
- package/src/components/domain/desktop/ResourceManagement/SnapshotViewsSource.test.mjs +0 -15
- package/src/components/domain/desktop/ResourceManagement/index.tsx +0 -246
- package/src/components/domain/desktop/ShareSettingsDialogView/index.tsx +0 -234
- package/src/components/domain/desktop/SidePanelEmpty/SidePanelEmpty.stories.tsx +0 -100
- package/src/components/domain/desktop/SidePanelEmpty/SidePanelEmptySource.test.mjs +0 -67
- package/src/components/domain/desktop/SidePanelEmpty/index.tsx +0 -113
- package/src/components/domain/desktop/StarterCapsules/StarterCapsules.stories.tsx +0 -65
- package/src/components/domain/desktop/StarterCapsules/StarterCapsulesSource.test.mjs +0 -43
- package/src/components/domain/desktop/StarterCapsules/index.tsx +0 -90
- package/src/components/domain/desktop/WorkbenchSidePanel/WorkbenchSidePanel.stories.tsx +0 -59
- package/src/components/domain/desktop/WorkbenchSidePanel/WorkbenchSidePanelSource.test.mjs +0 -51
- package/src/components/domain/desktop/WorkbenchSidePanel/index.tsx +0 -74
- package/src/components/domain/desktop/WorkspaceMigrateConfirm/WorkspaceMigrateConfirm.stories.tsx +0 -79
- package/src/components/domain/desktop/WorkspaceMigrateConfirm/WorkspaceMigrateConfirmSource.test.mjs +0 -34
- package/src/components/domain/desktop/WorkspaceMigrateConfirm/index.tsx +0 -92
- package/src/components/domain/desktop/index.ts +0 -64
- package/src/components/domain/files/FileBrowser/FileBrowser.stories.tsx +0 -397
- package/src/components/domain/files/FileBrowser/FileBrowserSource.test.mjs +0 -75
- package/src/components/domain/files/FileBrowser/index.tsx +0 -221
- package/src/components/domain/files/FileIcon/FileIcon.stories.tsx +0 -207
- package/src/components/domain/files/FileIcon/FileIconSource.test.mjs +0 -39
- package/src/components/domain/files/FileIcon/index.tsx +0 -133
- package/src/components/domain/files/FilePreviewContentView/FilePreviewContentView.stories.tsx +0 -242
- package/src/components/domain/files/FilePreviewContentView/FilePreviewContentViewSource.test.mjs +0 -44
- package/src/components/domain/files/FilePreviewContentView/index.tsx +0 -125
- package/src/components/domain/files/FileTree/FileTree.stories.tsx +0 -204
- package/src/components/domain/files/FileTree/FileTreeSource.test.mjs +0 -18
- package/src/components/domain/files/FileTree/index.tsx +0 -106
- package/src/components/domain/files/PreviewDialog/PreviewDialog.stories.tsx +0 -178
- package/src/components/domain/files/PreviewDialog/PreviewDialogSource.test.mjs +0 -92
- package/src/components/domain/files/PreviewDialog/index.tsx +0 -294
- package/src/components/domain/files/index.ts +0 -5
- package/src/components/domain/index.ts +0 -8
- package/src/components/domain/office/CsvPreview/CsvPreview.stories.tsx +0 -264
- package/src/components/domain/office/CsvPreview/CsvPreviewSource.test.mjs +0 -77
- package/src/components/domain/office/CsvPreview/index.tsx +0 -224
- package/src/components/domain/office/OfficePreview/OfficePreview.stories.tsx +0 -265
- package/src/components/domain/office/OfficePreview/OfficePreviewDialog.stories.tsx +0 -71
- package/src/components/domain/office/OfficePreview/OfficePreviewDialog.tsx +0 -43
- package/src/components/domain/office/OfficePreview/OfficePreviewSource.test.mjs +0 -126
- package/src/components/domain/office/OfficePreview/index.tsx +0 -782
- package/src/components/domain/office/PdfPreview/PdfPreview.stories.tsx +0 -280
- package/src/components/domain/office/PdfPreview/PdfPreviewDialog.stories.tsx +0 -61
- package/src/components/domain/office/PdfPreview/PdfPreviewDialog.tsx +0 -61
- package/src/components/domain/office/PdfPreview/PdfPreviewSource.test.mjs +0 -70
- package/src/components/domain/office/PdfPreview/index.tsx +0 -217
- package/src/components/domain/office/index.ts +0 -5
- package/src/components/domain/skills/McpServerListView/McpServerListView.stories.tsx +0 -510
- package/src/components/domain/skills/McpServerListView/McpServerListViewSource.test.mjs +0 -101
- package/src/components/domain/skills/McpServerListView/index.tsx +0 -250
- package/src/components/domain/skills/SkillAvatarView/SkillAvatarView.stories.tsx +0 -121
- package/src/components/domain/skills/SkillAvatarView/SkillAvatarViewSource.test.mjs +0 -67
- package/src/components/domain/skills/SkillAvatarView/index.tsx +0 -112
- package/src/components/domain/skills/SkillCardView/SkillCardView.stories.tsx +0 -374
- package/src/components/domain/skills/SkillCardView/SkillCardViewSource.test.mjs +0 -35
- package/src/components/domain/skills/SkillCardView/index.tsx +0 -88
- package/src/components/domain/skills/SkillDetailPanelView/SkillDetailPanelView.stories.tsx +0 -113
- package/src/components/domain/skills/SkillDetailPanelView/index.tsx +0 -115
- package/src/components/domain/skills/SkillDetailView/SkillDetailView.stories.tsx +0 -274
- package/src/components/domain/skills/SkillDetailView/index.tsx +0 -121
- package/src/components/domain/skills/SkillImportDialogView/SkillImportDialogView.stories.tsx +0 -128
- package/src/components/domain/skills/SkillImportDialogView/SkillImportDialogViewSource.test.mjs +0 -11
- package/src/components/domain/skills/SkillImportDialogView/index.tsx +0 -147
- package/src/components/domain/skills/ToolDetailModalView/ToolDetailModalView.stories.tsx +0 -160
- package/src/components/domain/skills/ToolDetailModalView/ToolDetailModalViewSource.test.mjs +0 -99
- package/src/components/domain/skills/ToolDetailModalView/index.tsx +0 -160
- package/src/components/domain/skills/index.ts +0 -7
- package/src/components/domain/tasks/ScheduledTaskCardView/ScheduledTaskCardView.stories.tsx +0 -120
- package/src/components/domain/tasks/ScheduledTaskCardView/ScheduledTaskCardViewSource.test.mjs +0 -40
- package/src/components/domain/tasks/ScheduledTaskCardView/index.tsx +0 -135
- package/src/components/domain/tasks/ScheduledTaskDeleteDialog/ScheduledTaskDeleteDialog.stories.tsx +0 -56
- package/src/components/domain/tasks/ScheduledTaskDeleteDialog/ScheduledTaskDeleteDialogSource.test.mjs +0 -35
- package/src/components/domain/tasks/ScheduledTaskDeleteDialog/index.tsx +0 -73
- package/src/components/domain/tasks/ScheduledTaskDetailView/ScheduledTaskDetailView.stories.tsx +0 -121
- package/src/components/domain/tasks/ScheduledTaskDetailView/ScheduledTaskDetailViewSource.test.mjs +0 -115
- package/src/components/domain/tasks/ScheduledTaskDetailView/index.tsx +0 -223
- package/src/components/domain/tasks/ScheduledTasksSpaceView/ScheduledTasksSpaceView.stories.tsx +0 -526
- package/src/components/domain/tasks/ScheduledTasksSpaceView/ScheduledTasksSpaceViewSource.test.mjs +0 -85
- package/src/components/domain/tasks/ScheduledTasksSpaceView/index.tsx +0 -118
- package/src/components/domain/tasks/index.ts +0 -4
- package/src/components/domain/theme/SkinManager.stories.tsx +0 -43
- package/src/components/domain/theme/SkinManagerUI.tsx +0 -382
- package/src/components/domain/theme/ThemeDemo.stories.tsx +0 -12
- package/src/components/domain/theme/ThemeDemo.tsx +0 -224
- package/src/components/index.ts +0 -11
- package/src/components/primitives/Avatar/Avatar.stories.tsx +0 -170
- package/src/components/primitives/Avatar/AvatarSource.test.mjs +0 -37
- package/src/components/primitives/Avatar/index.tsx +0 -180
- package/src/components/primitives/BackTop/BackTop.stories.tsx +0 -122
- package/src/components/primitives/BackTop/BackTopSource.test.mjs +0 -61
- package/src/components/primitives/BackTop/index.tsx +0 -93
- package/src/components/primitives/Badge/Badge.stories.tsx +0 -376
- package/src/components/primitives/Badge/BadgeSource.test.mjs +0 -27
- package/src/components/primitives/Badge/index.tsx +0 -65
- package/src/components/primitives/Button/Button.stories.tsx +0 -287
- package/src/components/primitives/Button/ButtonSource.test.mjs +0 -84
- package/src/components/primitives/Button/index.tsx +0 -216
- package/src/components/primitives/Card/Card.stories.tsx +0 -186
- package/src/components/primitives/Card/CardSource.test.mjs +0 -73
- package/src/components/primitives/Card/index.tsx +0 -137
- package/src/components/primitives/Checkbox/Checkbox.stories.tsx +0 -79
- package/src/components/primitives/Checkbox/CheckboxSource.test.mjs +0 -43
- package/src/components/primitives/Checkbox/index.tsx +0 -87
- package/src/components/primitives/Chip/Chip.stories.tsx +0 -149
- package/src/components/primitives/Chip/ChipSource.test.mjs +0 -73
- package/src/components/primitives/Chip/index.tsx +0 -252
- package/src/components/primitives/Divider/Divider.stories.tsx +0 -68
- package/src/components/primitives/Divider/DividerSource.test.mjs +0 -26
- package/src/components/primitives/Divider/index.tsx +0 -65
- package/src/components/primitives/Dropdown/Dropdown.stories.tsx +0 -38
- package/src/components/primitives/Dropdown/DropdownSource.test.mjs +0 -23
- package/src/components/primitives/Dropdown/index.tsx +0 -29
- package/src/components/primitives/EmptyState/EmptyState.stories.tsx +0 -159
- package/src/components/primitives/EmptyState/EmptyStateSource.test.mjs +0 -169
- package/src/components/primitives/EmptyState/index.tsx +0 -185
- package/src/components/primitives/ErrorCard/ErrorCard.stories.tsx +0 -50
- package/src/components/primitives/ErrorCard/index.tsx +0 -78
- package/src/components/primitives/Field/Field.stories.tsx +0 -208
- package/src/components/primitives/Field/FieldSource.test.mjs +0 -70
- package/src/components/primitives/Field/index.tsx +0 -297
- package/src/components/primitives/InlineMessage/InlineMessage.stories.tsx +0 -137
- package/src/components/primitives/InlineMessage/InlineMessageSource.test.mjs +0 -50
- package/src/components/primitives/InlineMessage/index.tsx +0 -141
- package/src/components/primitives/Input/Input.stories.tsx +0 -30
- package/src/components/primitives/Input/index.tsx +0 -12
- package/src/components/primitives/Keycap/Keycap.stories.tsx +0 -93
- package/src/components/primitives/Keycap/KeycapSource.test.mjs +0 -30
- package/src/components/primitives/Keycap/index.tsx +0 -67
- package/src/components/primitives/Menu/Menu.stories.tsx +0 -416
- package/src/components/primitives/Menu/MenuEmptySource.test.mjs +0 -23
- package/src/components/primitives/Menu/MenuSource.test.mjs +0 -207
- package/src/components/primitives/Menu/index.tsx +0 -922
- package/src/components/primitives/Pagination/Pagination.stories.tsx +0 -77
- package/src/components/primitives/Pagination/PaginationSource.test.mjs +0 -24
- package/src/components/primitives/Pagination/index.tsx +0 -85
- package/src/components/primitives/Pagination/pagination.ts +0 -25
- package/src/components/primitives/Pagination/paginationModel.test.mjs +0 -18
- package/src/components/primitives/ProgressBar/ProgressBar.stories.tsx +0 -103
- package/src/components/primitives/ProgressBar/ProgressBarSource.test.mjs +0 -44
- package/src/components/primitives/ProgressBar/index.tsx +0 -68
- package/src/components/primitives/Radio/Radio.stories.tsx +0 -84
- package/src/components/primitives/Radio/RadioSource.test.mjs +0 -38
- package/src/components/primitives/Radio/index.tsx +0 -161
- package/src/components/primitives/SegmentedControl/SegmentedControl.stories.tsx +0 -110
- package/src/components/primitives/SegmentedControl/SegmentedControlSource.test.mjs +0 -75
- package/src/components/primitives/SegmentedControl/index.tsx +0 -188
- package/src/components/primitives/Select/Select.stories.tsx +0 -158
- package/src/components/primitives/Select/SelectSource.test.mjs +0 -94
- package/src/components/primitives/Select/index.tsx +0 -364
- package/src/components/primitives/Spinner/index.tsx +0 -58
- package/src/components/primitives/Switch/Switch.stories.tsx +0 -64
- package/src/components/primitives/Switch/SwitchSource.test.mjs +0 -38
- package/src/components/primitives/Switch/index.tsx +0 -84
- package/src/components/primitives/Tabs/Tabs.stories.tsx +0 -230
- package/src/components/primitives/Tabs/TabsSource.test.mjs +0 -91
- package/src/components/primitives/Tabs/index.tsx +0 -183
- package/src/components/primitives/index.ts +0 -24
- package/src/examples/ResourceManagementExample.tsx +0 -119
- package/src/examples/SiteWorkbenchExample.tsx +0 -96
- package/src/hooks/index.ts +0 -7
- package/src/hooks/useClickOutside.ts +0 -20
- package/src/hooks/useDragReorder.ts +0 -29
- package/src/hooks/useImeAwareEnter.ts +0 -59
- package/src/hooks/useImeAwareEnterSource.test.mjs +0 -65
- package/src/hooks/useKeyboard.ts +0 -16
- package/src/hooks/usePopover.ts +0 -67
- package/src/hooks/useSelectedOptionLocator.ts +0 -33
- package/src/hooks/useSidebarResize.ts +0 -107
- package/src/hooks/useTenantTheme.ts +0 -53
- package/src/hooks/useUnifiedTheme.ts +0 -85
- package/src/index.ts +0 -6
- package/src/lib/InjectedStyleTokenMirrorSource.test.mjs +0 -67
- package/src/lib/about-window.test.mjs +0 -46
- package/src/lib/about-window.ts +0 -218
- package/src/lib/appearance.test.mjs +0 -283
- package/src/lib/appearance.ts +0 -46
- package/src/lib/browser-annotation-popup.ts +0 -151
- package/src/lib/focusTrap.ts +0 -51
- package/src/lib/index.ts +0 -5
- package/src/lib/shortcut.test.mjs +0 -100
- package/src/lib/shortcut.ts +0 -97
- package/src/lib/twMergeOw.ts +0 -18
- package/src/lib/utils.ts +0 -6
- package/src/screens/Browser.stories.tsx +0 -353
- package/src/screens/Chat.stories.tsx +0 -808
- package/src/screens/Home.stories.tsx +0 -253
- package/src/screens/Login.stories.tsx +0 -134
- package/src/screens/McpManager.stories.tsx +0 -159
- package/src/screens/Onboarding.stories.tsx +0 -155
- package/src/screens/ScheduledTasks.stories.tsx +0 -134
- package/src/screens/ScreenFrameSource.test.mjs +0 -77
- package/src/screens/SettingsAppearance.stories.tsx +0 -117
- package/src/screens/SettingsMemory.stories.tsx +0 -128
- package/src/screens/SettingsModels.stories.tsx +0 -228
- package/src/screens/SettingsSections.stories.tsx +0 -164
- package/src/screens/Share.stories.tsx +0 -202
- package/src/screens/SharePage.stories.tsx +0 -29
- package/src/screens/Sites.stories.tsx +0 -183
- package/src/screens/Skills.stories.tsx +0 -83
- package/src/screens/Workspace.stories.tsx +0 -191
- package/src/screens/_home.tsx +0 -46
- package/src/screens/_screen.tsx +0 -355
- package/src/screens/_settingsNav.ts +0 -27
- package/src/screens/_skillsCatalog.tsx +0 -372
- package/src/theme/SkinDenylistSyncSource.test.mjs +0 -124
- package/src/theme/__tests__/skins.test.mjs +0 -84
- package/src/theme/core/semanticAdapter.ts +0 -116
- package/src/theme/core/skin.ts +0 -605
- package/src/theme/core/skinScoped.ts +0 -289
- package/src/theme/core/tenantTheme.test.mjs +0 -127
- package/src/theme/core/tenantTheme.ts +0 -124
- package/src/theme/core/types.ts +0 -60
- package/src/theme/core/unifiedTheme.ts +0 -157
- package/src/theme/index.ts +0 -33
- package/src/theme/providers/BrandingProvider.tsx +0 -57
- package/src/theme/providers/ThemeProvider.tsx +0 -221
- package/src/theme/skinDs2PropertyGate.test.mjs +0 -109
- package/src/theme/skins/index.ts +0 -107
- package/src/theme/utils/cssSafety.ts +0 -92
- package/src/theme/utils/skinManager.ts +0 -159
- package/src/theme/utils/themeApplier.ts +0 -75
- package/src/tokens/DesktopSurfacesSweep15Source.test.mjs +0 -77
- package/src/tokens/SharedStyleSheetsSource.test.mjs +0 -90
- package/src/tokens/TailwindThemeSupplySource.test.mjs +0 -129
- package/src/tokens/base.ts +0 -199
- package/src/tokens/dark.ts +0 -288
- package/src/tokens/index.ts +0 -4
- package/src/tokens/light.ts +0 -320
- package/src/tokens/tailwind.ts +0 -216
- package/src/types/desktop-pet.ts +0 -100
- package/src/types/file-browser.ts +0 -51
- package/src/types/file-tree.ts +0 -34
- package/src/types/index.ts +0 -3
- package/src/types/xspreadsheet.d.ts +0 -4
- package/src/utils/cn.ts +0 -6
- package/src/utils/glyphColor.ts +0 -32
- package/src/utils/index.ts +0 -4
- package/src/utils/localPathInline.test.mjs +0 -45
- package/src/utils/localPathInline.ts +0 -49
- package/src/utils/markdownFileRefs.test.mjs +0 -88
- package/src/utils/markdownFileRefs.ts +0 -140
- package/src/utils/office-excel.ts +0 -452
- package/src/utils/shiki.ts +0 -156
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import { Fragment, type ReactNode } from "react"
|
|
4
|
-
import { Banner } from "../../../composite/Banner"
|
|
5
|
-
import { Switch } from "../../../composite/Controls"
|
|
6
|
-
import { Edit, Refresh, Terminal, Trash } from "../../../composite/Icons"
|
|
7
|
-
import { Button, Chip } from "../../../primitives"
|
|
8
|
-
import type { ChipDotTone } from "../../../primitives/Chip"
|
|
9
|
-
import { EmptyState } from "../../../primitives/EmptyState"
|
|
10
|
-
import { GlyphToneProvider } from "../../skills/SkillAvatarView"
|
|
11
|
-
import { DesktopCatalogDetailActions, DesktopCatalogDetailShell } from "../DesktopCatalogView"
|
|
12
|
-
|
|
13
|
-
/*
|
|
14
|
-
* 连接器详情接管页 —— A11-B4(裁决 16)从 `DesktopWorkspaceView` 整块搬来。
|
|
15
|
-
*
|
|
16
|
-
* 搬家理由:这件与「我的空间」毫无关系,只是历史上同住一个文件。宿主是
|
|
17
|
-
* `apps/desktop/src/renderer/features/skills/ConnectorModal.tsx:468`(插件中心 · 连接器),
|
|
18
|
-
* 「我的空间」整页退役时若跟着一起删就会误伤,所以先独立门户。
|
|
19
|
-
*
|
|
20
|
-
* 旧名(`DesktopWorkspaceConnector*`)在本文件尾部以 @deprecated 别名保留,
|
|
21
|
-
* 宿主与既有 import 不受影响;别名随下一次破坏性版本移除。
|
|
22
|
-
*/
|
|
23
|
-
export interface DesktopConnectorToolView {
|
|
24
|
-
id: string
|
|
25
|
-
name: ReactNode
|
|
26
|
-
description?: ReactNode
|
|
27
|
-
state?: ReactNode
|
|
28
|
-
}
|
|
29
|
-
export interface DesktopConnectorActionView {
|
|
30
|
-
id: string
|
|
31
|
-
label: ReactNode
|
|
32
|
-
icon?: ReactNode
|
|
33
|
-
variant?: "primary" | "secondary" | "danger"
|
|
34
|
-
disabled?: boolean
|
|
35
|
-
overflow?: boolean
|
|
36
|
-
onAction?: () => void
|
|
37
|
-
}
|
|
38
|
-
export interface DesktopConnectorMetaView {
|
|
39
|
-
id: string
|
|
40
|
-
label: ReactNode
|
|
41
|
-
value: ReactNode
|
|
42
|
-
}
|
|
43
|
-
export interface DesktopConnectorDetailViewProps {
|
|
44
|
-
logo: ReactNode
|
|
45
|
-
name: ReactNode
|
|
46
|
-
author?: ReactNode
|
|
47
|
-
version?: ReactNode
|
|
48
|
-
description: ReactNode
|
|
49
|
-
backLabel?: ReactNode
|
|
50
|
-
runtime?: ReactNode
|
|
51
|
-
status?: ReactNode
|
|
52
|
-
statusTone?: "ok" | "muted" | "warning" | "error"
|
|
53
|
-
command?: ReactNode
|
|
54
|
-
enabled?: boolean
|
|
55
|
-
error?: ReactNode
|
|
56
|
-
tools: DesktopConnectorToolView[]
|
|
57
|
-
toolSummary?: ReactNode
|
|
58
|
-
emptyToolsText?: ReactNode
|
|
59
|
-
toolAction?: DesktopConnectorActionView
|
|
60
|
-
actions?: DesktopConnectorActionView[]
|
|
61
|
-
metadata?: DesktopConnectorMetaView[]
|
|
62
|
-
authorization?: ReactNode
|
|
63
|
-
detailContent?: ReactNode
|
|
64
|
-
detailLoading?: boolean
|
|
65
|
-
detailError?: ReactNode
|
|
66
|
-
onBack: () => void
|
|
67
|
-
onToggle?: (enabled: boolean) => void
|
|
68
|
-
onRefresh?: () => void
|
|
69
|
-
onEdit?: () => void
|
|
70
|
-
onRemove?: () => void
|
|
71
|
-
onCopyDiagnostic?: () => void
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/** Desktop 发现连接器详情接管页;行为由宿主 adapter 注入。 */
|
|
75
|
-
export function DesktopConnectorDetailView({
|
|
76
|
-
logo,
|
|
77
|
-
name,
|
|
78
|
-
author = "Orbitwork 官方",
|
|
79
|
-
version,
|
|
80
|
-
description,
|
|
81
|
-
backLabel = "返回插件 · 连接器",
|
|
82
|
-
runtime = "stdio",
|
|
83
|
-
status,
|
|
84
|
-
statusTone = "muted",
|
|
85
|
-
command,
|
|
86
|
-
enabled,
|
|
87
|
-
error,
|
|
88
|
-
tools,
|
|
89
|
-
toolSummary,
|
|
90
|
-
emptyToolsText = "这个连接器暂未提供工具",
|
|
91
|
-
toolAction,
|
|
92
|
-
actions,
|
|
93
|
-
metadata = [],
|
|
94
|
-
authorization,
|
|
95
|
-
detailContent,
|
|
96
|
-
detailLoading,
|
|
97
|
-
detailError,
|
|
98
|
-
onBack,
|
|
99
|
-
onToggle,
|
|
100
|
-
onRefresh,
|
|
101
|
-
onEdit,
|
|
102
|
-
onRemove,
|
|
103
|
-
onCopyDiagnostic,
|
|
104
|
-
}: DesktopConnectorDetailViewProps) {
|
|
105
|
-
/*
|
|
106
|
-
* A4-B4 动作组收敛(原型 2174–2187 与 4729–4732):页头右侧只留一颗主钮 + 一颗 ⋯。
|
|
107
|
-
* 主钮=「编辑配置」(原型那颗随状态变文案的主钮,连接器域对应「重新配置」这条线),
|
|
108
|
-
* 「刷新状态」与破坏性的「断开连接」进 ⋯。两处改动:
|
|
109
|
-
* ① 顺序调头 —— 收敛规则是「第一颗上台面」,刷新在前会把一个轮询动作顶成行动极;
|
|
110
|
-
* ② 「卸载连接器」改叫「断开连接」并标 overflow —— 红色实底的破坏钮原来就杵在页头右上角
|
|
111
|
-
* 「编辑配置」旁边,形与主钮同级、色比主钮更响,是整页最抢眼的一颗。
|
|
112
|
-
*/
|
|
113
|
-
const resolvedActions: DesktopConnectorActionView[] = actions ?? [
|
|
114
|
-
...(onEdit
|
|
115
|
-
? [{ id: "edit", label: "编辑配置", icon: <Edit />, variant: "primary" as const, onAction: onEdit }]
|
|
116
|
-
: []),
|
|
117
|
-
...(onRefresh
|
|
118
|
-
? [{ id: "refresh", label: "刷新状态", icon: <Refresh />, overflow: true, onAction: onRefresh }]
|
|
119
|
-
: []),
|
|
120
|
-
...(onRemove
|
|
121
|
-
? [
|
|
122
|
-
{
|
|
123
|
-
id: "remove",
|
|
124
|
-
label: "断开连接",
|
|
125
|
-
icon: <Trash />,
|
|
126
|
-
variant: "danger" as const,
|
|
127
|
-
overflow: true,
|
|
128
|
-
onAction: onRemove,
|
|
129
|
-
},
|
|
130
|
-
]
|
|
131
|
-
: []),
|
|
132
|
-
]
|
|
133
|
-
const inlineActions = resolvedActions.filter((action) => !action.overflow)
|
|
134
|
-
const overflowActions = resolvedActions.filter((action) => action.overflow)
|
|
135
|
-
// R1 双编码(COMPONENT-RULES §4):连接状态由 Chip 的状态点色 + 文字同时承载,
|
|
136
|
-
// 颜色只作第二编码;R3 中性件,四档均取功能色 fill,不碰信标荧黄。
|
|
137
|
-
const statusDot: ChipDotTone =
|
|
138
|
-
statusTone === "ok"
|
|
139
|
-
? "success"
|
|
140
|
-
: statusTone === "warning"
|
|
141
|
-
? "warning"
|
|
142
|
-
: statusTone === "error"
|
|
143
|
-
? "error"
|
|
144
|
-
: "neutral"
|
|
145
|
-
return (
|
|
146
|
-
<DesktopCatalogDetailShell
|
|
147
|
-
/* R2·T2/Q10:详情壳的字形章与卡同源——连接器一律中性(原型 4688 的 `g` 与卡的
|
|
148
|
-
`glyphOf` 是同一份口径)。`logo` 可能是裸首字 span,也可能是 `SkillAvatarView`,
|
|
149
|
-
后者把色写在内联样式上、CSS 压不住,所以这里同样用上下文钉档。 */
|
|
150
|
-
avatar={
|
|
151
|
-
<GlyphToneProvider value="neutral">
|
|
152
|
-
<span className="g">{logo}</span>
|
|
153
|
-
</GlyphToneProvider>
|
|
154
|
-
}
|
|
155
|
-
name={name}
|
|
156
|
-
author={author}
|
|
157
|
-
version={version}
|
|
158
|
-
/* 状态签留在标题旁(原型 2169):Chip 带状态点,是这一族里唯一需要「运行中/已停止」
|
|
159
|
-
这种活体读数的地方,所以没并进 StatusTag 的三档静态词表。 */
|
|
160
|
-
status={<Chip dot={status ? statusDot : enabled ? "success" : "neutral"} label={status ?? runtime} />}
|
|
161
|
-
kind="连接器"
|
|
162
|
-
summary={description}
|
|
163
|
-
actions={
|
|
164
|
-
<DesktopCatalogDetailActions
|
|
165
|
-
leading={enabled !== undefined && onToggle ? <Switch checked={enabled} onChange={onToggle} /> : undefined}
|
|
166
|
-
actions={inlineActions.map((action) => ({
|
|
167
|
-
key: action.id,
|
|
168
|
-
label: action.label,
|
|
169
|
-
icon: action.icon,
|
|
170
|
-
variant: action.variant,
|
|
171
|
-
disabled: action.disabled,
|
|
172
|
-
onAction: action.onAction,
|
|
173
|
-
}))}
|
|
174
|
-
menuItems={overflowActions.map((action) => ({
|
|
175
|
-
key: action.id,
|
|
176
|
-
label: typeof action.label === "string" ? action.label : action.id,
|
|
177
|
-
icon: action.icon ?? <Edit />,
|
|
178
|
-
danger: action.variant === "danger",
|
|
179
|
-
disabled: action.disabled,
|
|
180
|
-
}))}
|
|
181
|
-
onMenuSelect={(key) => overflowActions.find((action) => action.id === key)?.onAction?.()}
|
|
182
|
-
/>
|
|
183
|
-
}
|
|
184
|
-
backLabel={backLabel}
|
|
185
|
-
onBack={onBack}
|
|
186
|
-
>
|
|
187
|
-
{error && (
|
|
188
|
-
<Banner
|
|
189
|
-
variant="error"
|
|
190
|
-
className="mt-3"
|
|
191
|
-
action={
|
|
192
|
-
onCopyDiagnostic && (
|
|
193
|
-
<Button variant="secondary" size="sm" onClick={onCopyDiagnostic}>
|
|
194
|
-
复制诊断
|
|
195
|
-
</Button>
|
|
196
|
-
)
|
|
197
|
-
}
|
|
198
|
-
>
|
|
199
|
-
{error}
|
|
200
|
-
</Banner>
|
|
201
|
-
)}
|
|
202
|
-
{/* 简介退出正文:同一句话已经在 hero 的标题下面(原型 2172)。 */}
|
|
203
|
-
{(metadata.length > 0 || command) && (
|
|
204
|
-
<section className="skd__section">
|
|
205
|
-
<div className="lbl">基本信息</div>
|
|
206
|
-
<div className="connector-kv">
|
|
207
|
-
{command && (
|
|
208
|
-
<>
|
|
209
|
-
<span>连接命令</span>
|
|
210
|
-
<b className="mono">{command}</b>
|
|
211
|
-
</>
|
|
212
|
-
)}
|
|
213
|
-
{metadata.map((item) => (
|
|
214
|
-
<Fragment key={item.id}>
|
|
215
|
-
<span>{item.label}</span>
|
|
216
|
-
<b>{item.value}</b>
|
|
217
|
-
</Fragment>
|
|
218
|
-
))}
|
|
219
|
-
</div>
|
|
220
|
-
</section>
|
|
221
|
-
)}
|
|
222
|
-
{authorization && (
|
|
223
|
-
<section className="skd__section">
|
|
224
|
-
<div className="lbl">授权</div>
|
|
225
|
-
{authorization}
|
|
226
|
-
</section>
|
|
227
|
-
)}
|
|
228
|
-
{(detailContent || detailLoading || detailError) && (
|
|
229
|
-
<section className="skd__section">
|
|
230
|
-
<div className="lbl">详细介绍</div>
|
|
231
|
-
{detailLoading && <div className="skd__empty">详细介绍加载中…</div>}
|
|
232
|
-
{detailError && <Banner variant="error">{detailError}</Banner>}
|
|
233
|
-
{detailContent && <div className="skd__doc">{detailContent}</div>}
|
|
234
|
-
</section>
|
|
235
|
-
)}
|
|
236
|
-
<section className="skd__section">
|
|
237
|
-
{/* 原型对齐 R5:计数只出一处。摘要(「3 个可见工具」「安装后可见」…)在时由摘要承担,
|
|
238
|
-
.cnt 圆章只在没有摘要时回落,避免「3」圆章与「3 个可见工具」同屏重复读数。 */}
|
|
239
|
-
<div className="lbl">
|
|
240
|
-
工具{" "}
|
|
241
|
-
{toolSummary ? (
|
|
242
|
-
<span className="skd__lbl-note">{toolSummary}</span>
|
|
243
|
-
) : (
|
|
244
|
-
<span className="cnt">{tools.length}</span>
|
|
245
|
-
)}
|
|
246
|
-
</div>
|
|
247
|
-
<div className="conn-tools">
|
|
248
|
-
{tools.length === 0 ? (
|
|
249
|
-
/* W3 终验 G5:工具列表空态走 EmptyState 紧凑档(母题+一句+动作槽),
|
|
250
|
-
.conn-tools__empty 灰字规则退役,类名保留作定位钩子。 */
|
|
251
|
-
<EmptyState
|
|
252
|
-
className="conn-tools__empty"
|
|
253
|
-
size="sm"
|
|
254
|
-
message={emptyToolsText}
|
|
255
|
-
action={
|
|
256
|
-
toolAction && (
|
|
257
|
-
<Button
|
|
258
|
-
size="sm"
|
|
259
|
-
variant={toolAction.variant ?? "secondary"}
|
|
260
|
-
icon={toolAction.icon}
|
|
261
|
-
disabled={toolAction.disabled}
|
|
262
|
-
onClick={toolAction.onAction}
|
|
263
|
-
>
|
|
264
|
-
{toolAction.label}
|
|
265
|
-
</Button>
|
|
266
|
-
)
|
|
267
|
-
}
|
|
268
|
-
/>
|
|
269
|
-
) : (
|
|
270
|
-
tools.map((tool) => (
|
|
271
|
-
<div className="mcp-tool" key={tool.id}>
|
|
272
|
-
<span className="tg">
|
|
273
|
-
<Terminal />
|
|
274
|
-
</span>
|
|
275
|
-
<div className="tmeta">
|
|
276
|
-
<div className="tn mono">{tool.name}</div>
|
|
277
|
-
{tool.description && <div className="td">{tool.description}</div>}
|
|
278
|
-
</div>
|
|
279
|
-
<span className="mcp-tool__state">{tool.state ?? "可用"}</span>
|
|
280
|
-
</div>
|
|
281
|
-
))
|
|
282
|
-
)}
|
|
283
|
-
</div>
|
|
284
|
-
</section>
|
|
285
|
-
</DesktopCatalogDetailShell>
|
|
286
|
-
)
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
/** @deprecated 改用 `DesktopConnectorToolView`;旧名只为兼容既有 import 保留(A11-B4)。 */
|
|
290
|
-
export type DesktopWorkspaceConnectorToolView = DesktopConnectorToolView
|
|
291
|
-
/** @deprecated 改用 `DesktopConnectorActionView`;旧名只为兼容既有 import 保留(A11-B4)。 */
|
|
292
|
-
export type DesktopWorkspaceConnectorActionView = DesktopConnectorActionView
|
|
293
|
-
/** @deprecated 改用 `DesktopConnectorMetaView`;旧名只为兼容既有 import 保留(A11-B4)。 */
|
|
294
|
-
export type DesktopWorkspaceConnectorMetaView = DesktopConnectorMetaView
|
|
295
|
-
/** @deprecated 改用 `DesktopConnectorDetailViewProps`;旧名只为兼容既有 import 保留(A11-B4)。 */
|
|
296
|
-
export type DesktopWorkspaceConnectorDetailViewProps = DesktopConnectorDetailViewProps
|
|
297
|
-
/**
|
|
298
|
-
* @deprecated 改用 `DesktopConnectorDetailView`。件本身没变,只是从
|
|
299
|
-
* `DesktopWorkspaceView` 搬了家(A11-B4);旧名是同一枚函数的别名,可以直接改导入名。
|
|
300
|
-
*/
|
|
301
|
-
export const DesktopWorkspaceConnectorDetailView = DesktopConnectorDetailView
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react"
|
|
2
|
-
import { useState } from "react"
|
|
3
|
-
import { HomeBackdrop } from "../../../composite/HomeBackdrop"
|
|
4
|
-
import { Composer } from "../../chat/Composer"
|
|
5
|
-
import { StarterCapsules } from "../StarterCapsules"
|
|
6
|
-
import { DesktopHomeView } from "./index"
|
|
7
|
-
|
|
8
|
-
const noop = () => {}
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* 主屏主视觉面(原型模板 835–861 · 裁决 18)。
|
|
12
|
-
*
|
|
13
|
-
* 层级:背景线纹 < 居中列(34 品牌标 + 32 展示字标题 / 起手胶囊 / [已挂载条] / composer 井)。
|
|
14
|
-
* 容器 `margin auto` 纵横居中、`max-width 800` + `px 24` → 内容实宽 752(与会话列同宽)、`gap 20`。
|
|
15
|
-
* 主屏**不再借空态原语**——`DesktopChatEmptyStateView` 仍守它的容器空态语义(§6)。
|
|
16
|
-
*/
|
|
17
|
-
const meta = {
|
|
18
|
-
title: "Desktop/DesktopHomeView",
|
|
19
|
-
component: DesktopHomeView,
|
|
20
|
-
parameters: { layout: "fullscreen" },
|
|
21
|
-
decorators: [
|
|
22
|
-
(Story) => (
|
|
23
|
-
/* 复刻宿主:内容面 = --ow-surface + position relative + overflow hidden(线纹靠它裁切)。 */
|
|
24
|
-
<div
|
|
25
|
-
style={{
|
|
26
|
-
position: "relative",
|
|
27
|
-
overflow: "hidden",
|
|
28
|
-
display: "flex",
|
|
29
|
-
flexDirection: "column",
|
|
30
|
-
height: "100vh",
|
|
31
|
-
width: "100%",
|
|
32
|
-
background: "var(--ow-surface)",
|
|
33
|
-
}}
|
|
34
|
-
>
|
|
35
|
-
<Story />
|
|
36
|
-
</div>
|
|
37
|
-
),
|
|
38
|
-
],
|
|
39
|
-
} satisfies Meta<typeof DesktopHomeView>
|
|
40
|
-
|
|
41
|
-
export default meta
|
|
42
|
-
type Story = StoryObj<typeof meta>
|
|
43
|
-
|
|
44
|
-
/** 冷启动:线纹 + 主视觉 + 五枚起手胶囊 + 空 composer(发送钮停在 disabled)。 */
|
|
45
|
-
export const Default: Story = {
|
|
46
|
-
render: () => (
|
|
47
|
-
<DesktopHomeView backdrop={<HomeBackdrop />} capsules={<StarterCapsules />}>
|
|
48
|
-
<Composer placeholder="今天帮你做些什么? / 调用技能与指令 @ 引用专家和连接器" onSend={noop} />
|
|
49
|
-
</DesktopHomeView>
|
|
50
|
-
),
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/** 起手胶囊接线(裁决 18):点一下把这枚的文字塞进输入框,同时按下态回写。 */
|
|
54
|
-
export const CapsuleFillsComposer: Story = {
|
|
55
|
-
render: () => {
|
|
56
|
-
const [draft, setDraft] = useState("")
|
|
57
|
-
const [picked, setPicked] = useState<string | null>(null)
|
|
58
|
-
return (
|
|
59
|
-
<DesktopHomeView
|
|
60
|
-
backdrop={<HomeBackdrop />}
|
|
61
|
-
capsules={
|
|
62
|
-
<StarterCapsules
|
|
63
|
-
value={picked}
|
|
64
|
-
onSelect={(option) => {
|
|
65
|
-
setPicked(option.id)
|
|
66
|
-
setDraft(option.label)
|
|
67
|
-
}}
|
|
68
|
-
/>
|
|
69
|
-
}
|
|
70
|
-
>
|
|
71
|
-
<Composer
|
|
72
|
-
value={draft}
|
|
73
|
-
onChange={setDraft}
|
|
74
|
-
placeholder="今天帮你做些什么? / 调用技能与指令 @ 引用专家和连接器"
|
|
75
|
-
onSend={() => setDraft("")}
|
|
76
|
-
/>
|
|
77
|
-
</DesktopHomeView>
|
|
78
|
-
)
|
|
79
|
-
},
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/** 带已挂载条:32 高的一条,眉标「已挂载」+ 读数 + 卸载全部。 */
|
|
83
|
-
export const WithMounts: Story = {
|
|
84
|
-
render: () => (
|
|
85
|
-
<DesktopHomeView
|
|
86
|
-
backdrop={<HomeBackdrop />}
|
|
87
|
-
capsules={<StarterCapsules value="doc-writing" />}
|
|
88
|
-
mounts="orbit-fe · 渠道复盘_终稿.docx"
|
|
89
|
-
onDismissMounts={noop}
|
|
90
|
-
>
|
|
91
|
-
<Composer placeholder="今天帮你做些什么? / 调用技能与指令 @ 引用专家和连接器" onSend={noop} />
|
|
92
|
-
</DesktopHomeView>
|
|
93
|
-
),
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/** 无线纹档:同一件搬到别的容器时(线纹只属主屏,不是全局水印)。 */
|
|
97
|
-
export const WithoutBackdrop: Story = {
|
|
98
|
-
render: () => (
|
|
99
|
-
<DesktopHomeView capsules={<StarterCapsules />}>
|
|
100
|
-
<Composer placeholder="今天帮你做些什么? / 调用技能与指令 @ 引用专家和连接器" onSend={noop} />
|
|
101
|
-
</DesktopHomeView>
|
|
102
|
-
),
|
|
103
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import assert from "node:assert/strict"
|
|
2
|
-
import { readFile } from "node:fs/promises"
|
|
3
|
-
import test from "node:test"
|
|
4
|
-
|
|
5
|
-
const source = await readFile(new URL("./index.tsx", import.meta.url), "utf8")
|
|
6
|
-
const emptyState = await readFile(new URL("../DesktopChatEmptyStateView/index.tsx", import.meta.url), "utf8")
|
|
7
|
-
|
|
8
|
-
test("主视觉行:34 品牌标(§12 锁定件 auto 档)+ 32 展示字标题,gap 14", () => {
|
|
9
|
-
assert.match(source, /<OrbitworkMark variant="auto" size=\{34\} \/>/)
|
|
10
|
-
assert.match(source, /gap-\[14px\]/)
|
|
11
|
-
assert.match(source, /ow-font-display text-ow-fs-headline font-medium/)
|
|
12
|
-
assert.match(source, /leading-\[var\(--ow-lh-headline\)\] tracking-\[0\.01em\] text-\[color:var\(--ow-text\)\]/)
|
|
13
|
-
assert.match(source, /title = "今天从哪件事开始\?"/)
|
|
14
|
-
})
|
|
15
|
-
|
|
16
|
-
test("容器几何:margin auto 纵横居中 / max-width 800 + px-24(内容 752,与会话列同宽)/ gap 20", () => {
|
|
17
|
-
assert.match(source, /m-auto w-full max-w-\[800px\] px-6/)
|
|
18
|
-
assert.match(source, /flex flex-col items-center gap-5/)
|
|
19
|
-
assert.match(source, /relative box-border/)
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
test("本件贴地:不画底色、不画边框、不画影(材质只在 children 那口 composer 井上)", () => {
|
|
23
|
-
const container = source.slice(
|
|
24
|
-
source.indexOf('data-slot="desktop-home"'),
|
|
25
|
-
source.indexOf('data-slot="desktop-home-hero"'),
|
|
26
|
-
)
|
|
27
|
-
assert.doesNotMatch(container, /bg-\[|bg-ow-|border-\[|border border/)
|
|
28
|
-
assert.doesNotMatch(source, /shadow/)
|
|
29
|
-
})
|
|
30
|
-
|
|
31
|
-
test("已挂载条(原型 853–861):32 高 / 0 4px 0 10px / 1px 边 / radius-sm / 眉标档文字", () => {
|
|
32
|
-
assert.match(source, /h-8 pl-\[10px\] pr-1 bg-transparent/)
|
|
33
|
-
assert.match(
|
|
34
|
-
source,
|
|
35
|
-
/text-\[length:var\(--ow-fs-eyebrow-cjk,12px\)\] tracking-\[var\(--ow-ls-eyebrow-cjk,0\.08em\)\]/,
|
|
36
|
-
)
|
|
37
|
-
assert.match(source, /已挂载/)
|
|
38
|
-
assert.match(source, /aria-label="卸载全部"/)
|
|
39
|
-
})
|
|
40
|
-
|
|
41
|
-
test("背景线纹只由主屏传入(槽),本件不写死,也不做成全局水印", () => {
|
|
42
|
-
assert.match(source, /backdrop\?: ReactNode/)
|
|
43
|
-
assert.match(source, /\{backdrop\}/)
|
|
44
|
-
assert.doesNotMatch(source, /from "[^"]*HomeBackdrop"/)
|
|
45
|
-
})
|
|
46
|
-
|
|
47
|
-
test("主屏与容器空态分家:本件不借空态原语,DesktopChatEmptyStateView 仍守 §6 语义", () => {
|
|
48
|
-
assert.doesNotMatch(source, /from "[^"]*primitives\/EmptyState"/)
|
|
49
|
-
assert.doesNotMatch(source, /<EmptyState|className="chat-empty/)
|
|
50
|
-
assert.match(emptyState, /from "\.\.\/\.\.\/\.\.\/primitives\/EmptyState"/)
|
|
51
|
-
})
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react"
|
|
2
|
-
import { cn } from "../../../../lib/utils"
|
|
3
|
-
import { Close } from "../../../composite/Icons"
|
|
4
|
-
import { OrbitworkMark } from "../../../composite/OrbitworkLogo"
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* DesktopHomeView — 主屏主视觉面(原型模板 835–861 · 裁决 18)
|
|
8
|
-
*
|
|
9
|
-
* 主屏不再借用容器空态:**空态是「这里本该有东西却没有」,主屏是「今天从哪件事开始」**,
|
|
10
|
-
* 两个概念分开——`DesktopChatEmptyStateView` 保留给真正的容器空态(§6 信标母题 + 一句
|
|
11
|
-
* text-2),主屏改走本件。这样裁决 6 调空态体量时,不会顺手把主屏的品牌视觉一起放大。
|
|
12
|
-
*
|
|
13
|
-
* 层级(自上而下):背景构造线纹(`composite/HomeBackdrop`,绝对定位挂在内容面上,只主屏出)
|
|
14
|
-
* < 居中列 = 主视觉行(34 品牌标 + 32 展示字标题)/ 起手胶囊行 / [已挂载条] / composer 井。
|
|
15
|
-
*
|
|
16
|
-
* 几何(§7):`margin: auto` 纵横居中;`max-width 800` + `padding 0 24` → 内容实宽 **752**,
|
|
17
|
-
* 与会话列同宽(原型那边是 752/704 一档,我们整仓统一到 752,主屏与会话之间列宽不跳)。
|
|
18
|
-
* 竖向节律 `gap 20` 一档到底。
|
|
19
|
-
*
|
|
20
|
-
* 立面:本件自身不画底色、不画边、不画影——它坐在内容面(`--ow-surface`)上,
|
|
21
|
-
* 唯一有材质的是 children 里那口 composer 井(`--ow-surface-2`)。
|
|
22
|
-
*
|
|
23
|
-
* 三极(§4):主视觉行的品牌标是**标志本体**(§12 锁定件,`variant="auto"` 随主题切
|
|
24
|
-
* 官方两档配色),不是状态极;本件不引信标动效、不亮荧黄,整面唯一的行动极是
|
|
25
|
-
* composer 的发送钮。
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
export interface DesktopHomeViewProps {
|
|
29
|
-
/** 主视觉句(裁决 18 定的品牌口吻)。 */
|
|
30
|
-
title?: string
|
|
31
|
-
/** 背景线纹槽:传 `<HomeBackdrop />`。**只有主屏传**,别的屏留空——它不是全局水印。 */
|
|
32
|
-
backdrop?: ReactNode
|
|
33
|
-
/** 起手胶囊槽:传 `<StarterCapsules />`。 */
|
|
34
|
-
capsules?: ReactNode
|
|
35
|
-
/** 已挂载条的读数(如「orbit-fe · 3 个文件」);不传即整条不出。 */
|
|
36
|
-
mounts?: ReactNode
|
|
37
|
-
/** 卸载全部;不传即不出那枚 ✕。 */
|
|
38
|
-
onDismissMounts?: () => void
|
|
39
|
-
/** composer 槽。 */
|
|
40
|
-
children?: ReactNode
|
|
41
|
-
className?: string
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function DesktopHomeView({
|
|
45
|
-
title = "今天从哪件事开始?",
|
|
46
|
-
backdrop,
|
|
47
|
-
capsules,
|
|
48
|
-
mounts,
|
|
49
|
-
onDismissMounts,
|
|
50
|
-
children,
|
|
51
|
-
className,
|
|
52
|
-
}: DesktopHomeViewProps) {
|
|
53
|
-
return (
|
|
54
|
-
<>
|
|
55
|
-
{backdrop}
|
|
56
|
-
<div
|
|
57
|
-
data-slot="desktop-home"
|
|
58
|
-
className={cn(
|
|
59
|
-
"relative box-border m-auto w-full max-w-[800px] px-6",
|
|
60
|
-
"flex flex-col items-center gap-5",
|
|
61
|
-
className,
|
|
62
|
-
)}
|
|
63
|
-
>
|
|
64
|
-
<div data-slot="desktop-home-hero" className="flex items-center gap-[14px]">
|
|
65
|
-
{/* §12 锁定件:几何/配色不改,auto 档随 data-theme 在官方 light/dark 两档之间切;
|
|
66
|
-
标志在这里是品牌本体(role=img + 默认 label),不是装饰件 */}
|
|
67
|
-
<OrbitworkMark variant="auto" size={34} />
|
|
68
|
-
<h1
|
|
69
|
-
data-slot="desktop-home-title"
|
|
70
|
-
className={cn(
|
|
71
|
-
"m-0 ow-font-display text-ow-fs-headline font-medium",
|
|
72
|
-
"leading-[var(--ow-lh-headline)] tracking-[0.01em] text-[color:var(--ow-text)]",
|
|
73
|
-
)}
|
|
74
|
-
>
|
|
75
|
-
{title}
|
|
76
|
-
</h1>
|
|
77
|
-
</div>
|
|
78
|
-
|
|
79
|
-
{capsules}
|
|
80
|
-
|
|
81
|
-
{mounts != null && (
|
|
82
|
-
<div
|
|
83
|
-
data-slot="desktop-home-mounts"
|
|
84
|
-
className={cn(
|
|
85
|
-
"flex items-center gap-2 h-8 pl-[10px] pr-1 bg-transparent",
|
|
86
|
-
"border border-[color:var(--ow-border)] [border-radius:var(--ow-radius-sm)]",
|
|
87
|
-
)}
|
|
88
|
-
>
|
|
89
|
-
<span
|
|
90
|
-
className={cn(
|
|
91
|
-
"flex-none font-medium text-[color:var(--ow-eyebrow)]",
|
|
92
|
-
"text-[length:var(--ow-fs-eyebrow-cjk,12px)] tracking-[var(--ow-ls-eyebrow-cjk,0.08em)]",
|
|
93
|
-
)}
|
|
94
|
-
>
|
|
95
|
-
已挂载
|
|
96
|
-
</span>
|
|
97
|
-
<span className="text-ow-fs-ui text-[color:var(--ow-text-2)] whitespace-nowrap">{mounts}</span>
|
|
98
|
-
{onDismissMounts && (
|
|
99
|
-
<button
|
|
100
|
-
type="button"
|
|
101
|
-
title="卸载全部"
|
|
102
|
-
aria-label="卸载全部"
|
|
103
|
-
onClick={onDismissMounts}
|
|
104
|
-
className={cn(
|
|
105
|
-
"flex-none grid place-items-center w-6 h-6 border-0 cursor-pointer",
|
|
106
|
-
"[border-radius:var(--ow-radius-2xs)] bg-transparent text-[color:var(--ow-text-3)]",
|
|
107
|
-
"transition-colors duration-[var(--ow-dur-1)] ease-[var(--ow-ease-beacon)]",
|
|
108
|
-
"hover:bg-[var(--ow-hover)] hover:text-[color:var(--ow-text)]",
|
|
109
|
-
"ow-focus-ring",
|
|
110
|
-
)}
|
|
111
|
-
>
|
|
112
|
-
<Close width={14} height={14} aria-hidden="true" />
|
|
113
|
-
</button>
|
|
114
|
-
)}
|
|
115
|
-
</div>
|
|
116
|
-
)}
|
|
117
|
-
|
|
118
|
-
{children}
|
|
119
|
-
</div>
|
|
120
|
-
</>
|
|
121
|
-
)
|
|
122
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react"
|
|
2
|
-
import { DesktopLibraryAuthorizationDialog } from "./index"
|
|
3
|
-
import type { DesktopLibraryAuthorizationScope } from "./index"
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* 合并记(origin/main 9.2 批次,2026-09-03):研发新增件进库时没带 story,check:stories
|
|
7
|
-
* 会拦 pre-commit。四态:默认(带权限清单)/ 检查登录中 / 授权提交中 / 出错。
|
|
8
|
-
* authorizationUrl 走的是 Electron <webview>,story 里不给。
|
|
9
|
-
*/
|
|
10
|
-
const meta = {
|
|
11
|
-
title: "Desktop/DesktopLibraryAuthorizationDialog",
|
|
12
|
-
component: DesktopLibraryAuthorizationDialog,
|
|
13
|
-
parameters: {
|
|
14
|
-
layout: "fullscreen",
|
|
15
|
-
},
|
|
16
|
-
} satisfies Meta<typeof DesktopLibraryAuthorizationDialog>
|
|
17
|
-
|
|
18
|
-
export default meta
|
|
19
|
-
type Story = StoryObj<typeof meta>
|
|
20
|
-
|
|
21
|
-
const scopes: DesktopLibraryAuthorizationScope[] = [
|
|
22
|
-
{
|
|
23
|
-
title: "读取资料库内容",
|
|
24
|
-
description: "浏览与检索你在资料库中的文件",
|
|
25
|
-
owner: "Orbitwork 资料库",
|
|
26
|
-
required: true,
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
title: "以你的身份发起会话",
|
|
30
|
-
description: "从资料库页面直接打开对话",
|
|
31
|
-
owner: "Orbitwork 资料库",
|
|
32
|
-
},
|
|
33
|
-
]
|
|
34
|
-
|
|
35
|
-
const handlers = {
|
|
36
|
-
onApprove: () => console.log("approve"),
|
|
37
|
-
onDeny: () => console.log("deny"),
|
|
38
|
-
onClose: () => console.log("close"),
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export const Default: Story = {
|
|
42
|
-
args: { open: true, scopes, ...handlers },
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export const Loading: Story = {
|
|
46
|
-
args: { open: true, loading: true, ...handlers },
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export const Submitting: Story = {
|
|
50
|
-
args: { open: true, scopes, submitting: "approve", ...handlers },
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export const WithError: Story = {
|
|
54
|
-
args: { open: true, scopes, error: "授权请求超时,请重试。", ...handlers },
|
|
55
|
-
}
|