@orbit-work/ui 0.1.2-preview.0 → 0.1.3
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.cjs +41 -1
- package/dist/appearance.cjs.map +1 -0
- package/dist/appearance.d.cts +7 -1
- package/dist/appearance.d.ts +7 -1
- package/dist/appearance.js +41 -1
- package/dist/appearance.js.map +1 -0
- package/dist/brand-preview.cjs +14 -0
- package/dist/brand-preview.cjs.map +1 -0
- package/dist/brand-preview.d.cts +13 -0
- package/dist/brand-preview.d.ts +13 -0
- package/dist/brand-preview.js +14 -0
- package/dist/brand-preview.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-JC7BHKS4.cjs +734 -0
- package/dist/chunk-JC7BHKS4.cjs.map +1 -0
- package/dist/chunk-K7ONUTLA.cjs +240 -0
- package/dist/chunk-K7ONUTLA.cjs.map +1 -0
- package/dist/chunk-KTNWR3H5.js +399 -0
- package/dist/chunk-KTNWR3H5.js.map +1 -0
- package/dist/chunk-LSGO6AQR.js +734 -0
- package/dist/chunk-LSGO6AQR.js.map +1 -0
- package/dist/chunk-Q7B4M5GC.cjs +399 -0
- package/dist/chunk-Q7B4M5GC.cjs.map +1 -0
- package/dist/chunk-QS55W5Q5.cjs +111 -0
- package/dist/chunk-QS55W5Q5.cjs.map +1 -0
- package/dist/chunk-UT5LC6MR.js +38 -0
- package/dist/chunk-UT5LC6MR.js.map +1 -0
- package/dist/chunk-ZXMHCL6D.js +240 -0
- package/dist/chunk-ZXMHCL6D.js.map +1 -0
- package/dist/chunk-ZZTEY4YX.cjs +38 -0
- package/dist/chunk-ZZTEY4YX.cjs.map +1 -0
- package/dist/core.css +7895 -0
- package/dist/core.scoped.css +7888 -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 +38996 -26
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +3797 -3027
- package/dist/index.d.ts +3797 -3027
- package/dist/index.js +38996 -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/unifiedTheme-DQ-sETKO.d.cts +201 -0
- package/dist/unifiedTheme-DQ-sETKO.d.ts +201 -0
- package/dist/workbench.css +9023 -0
- package/package.json +126 -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 -22209
- 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 -1367
- 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 -167
- 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/DesktopLibraryAuthorizationDialogSource.test.mjs +0 -22
- package/src/components/domain/desktop/DesktopLibraryAuthorizationDialog/index.tsx +0 -171
- package/src/components/domain/desktop/DesktopLibraryPageView/DesktopLibraryPageView.stories.tsx +0 -49
- package/src/components/domain/desktop/DesktopLibraryPageView/index.tsx +0 -49
- 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 -156
- package/src/components/domain/desktop/DesktopLoginView/index.tsx +0 -432
- 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 -388
- package/src/components/domain/desktop/DesktopSidebarView/index.tsx +0 -1111
- 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 -219
- 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 -923
- 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 -406
- 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,591 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react"
|
|
4
|
-
import type { CSSProperties, PointerEvent as ReactPointerEvent } from "react"
|
|
5
|
-
import type {
|
|
6
|
-
DesktopPetHandle,
|
|
7
|
-
DesktopPetProps,
|
|
8
|
-
DesktopPetSessionBubble,
|
|
9
|
-
PetAnimation,
|
|
10
|
-
PetManifest,
|
|
11
|
-
PetPosition,
|
|
12
|
-
PetToolbarItem,
|
|
13
|
-
} from "../../../../types/desktop-pet"
|
|
14
|
-
import {
|
|
15
|
-
CheckCircle,
|
|
16
|
-
ClipboardList,
|
|
17
|
-
Clock,
|
|
18
|
-
Close,
|
|
19
|
-
CommentPlus,
|
|
20
|
-
ErrorCircle,
|
|
21
|
-
Hand,
|
|
22
|
-
Keyboard,
|
|
23
|
-
Stop,
|
|
24
|
-
} from "../../../composite/Icons"
|
|
25
|
-
import { Button, Field } from "../../../primitives"
|
|
26
|
-
|
|
27
|
-
const CELL = { width: 192, height: 208 }
|
|
28
|
-
/**
|
|
29
|
-
* 拼 petBaseUrl 前先看 path 是不是已经自成一条 URL——data: / blob: / http(s): / 以 `/` 开头
|
|
30
|
-
* 的绝对路径都原样返回。故事用内联 data-uri 图集时若照旧拼前缀,会拼出
|
|
31
|
-
* `/uidocs/pets/ow-pet/data:image/png;...` 这种必然 404 的路径。
|
|
32
|
-
*/
|
|
33
|
-
function resolvePetAsset(baseUrl: string, path: string): string {
|
|
34
|
-
return /^(?:[a-z][a-z\d+\-.]*:|\/)/i.test(path) ? path : `${baseUrl}/${path}`
|
|
35
|
-
}
|
|
36
|
-
const MAX_DESKTOP_PET_SCALE = 1.5
|
|
37
|
-
const VISIBLE_ALPHA_THRESHOLD = 8
|
|
38
|
-
|
|
39
|
-
type SpriteBounds = { x: number; y: number; width: number; height: number }
|
|
40
|
-
type SpriteLayout = NonNullable<PetManifest["spritesheetLayout"]>
|
|
41
|
-
|
|
42
|
-
const spriteBoundsCache = new Map<string, Promise<SpriteBounds>>()
|
|
43
|
-
|
|
44
|
-
function detectVisibleSpriteBounds(spriteUrl: string, layout: SpriteLayout): Promise<SpriteBounds> {
|
|
45
|
-
const cacheKey = `${spriteUrl}:${layout.columns}:${layout.rows}:${layout.cellWidth}:${layout.cellHeight}`
|
|
46
|
-
const cached = spriteBoundsCache.get(cacheKey)
|
|
47
|
-
if (cached) return cached
|
|
48
|
-
const detection = (async () => {
|
|
49
|
-
const response = await fetch(spriteUrl)
|
|
50
|
-
if (!response.ok) throw new Error(`Failed to load pet spritesheet: ${response.status}`)
|
|
51
|
-
const bitmap = await createImageBitmap(await response.blob())
|
|
52
|
-
const canvas = document.createElement("canvas")
|
|
53
|
-
canvas.width = layout.cellWidth
|
|
54
|
-
canvas.height = layout.cellHeight
|
|
55
|
-
const context = canvas.getContext("2d", { willReadFrequently: true })
|
|
56
|
-
if (!context) throw new Error("Unable to inspect pet spritesheet")
|
|
57
|
-
let minX = layout.cellWidth
|
|
58
|
-
let minY = layout.cellHeight
|
|
59
|
-
let maxX = -1
|
|
60
|
-
let maxY = -1
|
|
61
|
-
try {
|
|
62
|
-
for (let row = 0; row < layout.rows; row += 1) {
|
|
63
|
-
for (let column = 0; column < layout.columns; column += 1) {
|
|
64
|
-
context.clearRect(0, 0, layout.cellWidth, layout.cellHeight)
|
|
65
|
-
context.drawImage(
|
|
66
|
-
bitmap,
|
|
67
|
-
column * layout.cellWidth,
|
|
68
|
-
row * layout.cellHeight,
|
|
69
|
-
layout.cellWidth,
|
|
70
|
-
layout.cellHeight,
|
|
71
|
-
0,
|
|
72
|
-
0,
|
|
73
|
-
layout.cellWidth,
|
|
74
|
-
layout.cellHeight,
|
|
75
|
-
)
|
|
76
|
-
const pixels = context.getImageData(0, 0, layout.cellWidth, layout.cellHeight).data
|
|
77
|
-
for (let y = 0; y < layout.cellHeight; y += 1) {
|
|
78
|
-
for (let x = 0; x < layout.cellWidth; x += 1) {
|
|
79
|
-
if (pixels[(y * layout.cellWidth + x) * 4 + 3]! <= VISIBLE_ALPHA_THRESHOLD) continue
|
|
80
|
-
minX = Math.min(minX, x)
|
|
81
|
-
minY = Math.min(minY, y)
|
|
82
|
-
maxX = Math.max(maxX, x)
|
|
83
|
-
maxY = Math.max(maxY, y)
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
} finally {
|
|
89
|
-
bitmap.close()
|
|
90
|
-
}
|
|
91
|
-
return maxX >= minX && maxY >= minY
|
|
92
|
-
? { x: minX, y: minY, width: maxX - minX + 1, height: maxY - minY + 1 }
|
|
93
|
-
: { x: 0, y: 0, width: layout.cellWidth, height: layout.cellHeight }
|
|
94
|
-
})().catch((error) => {
|
|
95
|
-
spriteBoundsCache.delete(cacheKey)
|
|
96
|
-
throw error
|
|
97
|
-
})
|
|
98
|
-
spriteBoundsCache.set(cacheKey, detection)
|
|
99
|
-
return detection
|
|
100
|
-
}
|
|
101
|
-
const ROWS: Record<PetAnimation, { row: number; frames: number; durationMs: number }> = {
|
|
102
|
-
idle: { row: 0, frames: 6, durationMs: 1100 },
|
|
103
|
-
"running-right": { row: 1, frames: 8, durationMs: 1060 },
|
|
104
|
-
"running-left": { row: 2, frames: 8, durationMs: 1060 },
|
|
105
|
-
waving: { row: 3, frames: 4, durationMs: 700 },
|
|
106
|
-
jumping: { row: 4, frames: 5, durationMs: 840 },
|
|
107
|
-
failed: { row: 5, frames: 8, durationMs: 1220 },
|
|
108
|
-
waiting: { row: 6, frames: 6, durationMs: 1010 },
|
|
109
|
-
running: { row: 7, frames: 6, durationMs: 820 },
|
|
110
|
-
review: { row: 8, frames: 6, durationMs: 1030 },
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
function positionStyle(position: PetPosition): CSSProperties {
|
|
114
|
-
if (typeof position === "object") return { left: position.x, top: position.y }
|
|
115
|
-
return { [position.includes("bottom") ? "bottom" : "top"]: 24, [position.includes("right") ? "right" : "left"]: 24 }
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* R3:动作条要朝画布内侧展开,所以非 native 档也得知道自己贴在哪个角。
|
|
120
|
-
* 规则:贴边写法(right/bottom 有值)直接认边;坐标写法(拖拽后或 position={{x,y}})
|
|
121
|
-
* 按是否越过视口中线判断。结果写进 data-anchor-horizontal / data-anchor-vertical,
|
|
122
|
-
* 由 styles/desktop-pet.css 决定竖排挂宠物哪一侧、从哪条边起算,避免被视口裁半截。
|
|
123
|
-
*/
|
|
124
|
-
function resolveAnchor(pos: CSSProperties): { horizontal: "left" | "right"; vertical: "top" | "bottom" } {
|
|
125
|
-
const viewportWidth = typeof window === "undefined" ? 0 : window.innerWidth
|
|
126
|
-
const viewportHeight = typeof window === "undefined" ? 0 : window.innerHeight
|
|
127
|
-
return {
|
|
128
|
-
horizontal:
|
|
129
|
-
pos.right !== undefined || (typeof pos.left === "number" && pos.left * 2 > viewportWidth) ? "right" : "left",
|
|
130
|
-
vertical:
|
|
131
|
-
pos.bottom !== undefined || (typeof pos.top === "number" && pos.top * 2 > viewportHeight) ? "bottom" : "top",
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* 会话状态位。running 档**不出图标**:§9 里运行态=一颗 --ow-progress-fill 实点(禁自转),
|
|
137
|
-
* 那颗点由 desktop-pet.css 的 `[data-status="running"] … ::before` 画。
|
|
138
|
-
* 原先这里仍渲一枚 Loader、再由 CSS `svg { display: none }` 藏掉——V1 自转 spinner 退役时
|
|
139
|
-
* 只在 CSS 端遮住、没在 TSX 端摘干净,图标每次照进 DOM。R2 一并摘除。
|
|
140
|
-
*/
|
|
141
|
-
function SessionStatus({ status }: { status: DesktopPetSessionBubble["status"] }) {
|
|
142
|
-
const statusView = {
|
|
143
|
-
running: { label: "执行中", icon: null },
|
|
144
|
-
waiting: { label: "等待输入", icon: Clock },
|
|
145
|
-
review: { label: "待查看", icon: ClipboardList },
|
|
146
|
-
completed: { label: "已完成", icon: CheckCircle },
|
|
147
|
-
failed: { label: "失败", icon: ErrorCircle },
|
|
148
|
-
}[status]
|
|
149
|
-
const StatusIcon = statusView.icon
|
|
150
|
-
return (
|
|
151
|
-
<span data-ow-part="session-status" title={statusView.label} role="img" aria-label={statusView.label}>
|
|
152
|
-
{StatusIcon ? <StatusIcon aria-hidden="true" /> : null}
|
|
153
|
-
</span>
|
|
154
|
-
)
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export const DesktopPet = forwardRef<DesktopPetHandle, DesktopPetProps>(function DesktopPet(
|
|
158
|
-
{
|
|
159
|
-
petBaseUrl = "/uidocs/pets/ow-pet",
|
|
160
|
-
manifest: manifestProp,
|
|
161
|
-
animation = "idle",
|
|
162
|
-
position = "bottom-right",
|
|
163
|
-
scale = 1,
|
|
164
|
-
animationRate = 1,
|
|
165
|
-
draggable = true,
|
|
166
|
-
trackPointer = true,
|
|
167
|
-
toolbar = true,
|
|
168
|
-
defaultBubble,
|
|
169
|
-
persistKey,
|
|
170
|
-
nativeWindow = false,
|
|
171
|
-
nativeAnchor = { horizontal: "right", vertical: "bottom" },
|
|
172
|
-
onHideRequest,
|
|
173
|
-
onContextMenuRequest,
|
|
174
|
-
sessions = [],
|
|
175
|
-
onSessionFeedback,
|
|
176
|
-
onSessionStop,
|
|
177
|
-
onContentSizeChange,
|
|
178
|
-
onNativeDrag,
|
|
179
|
-
className = "",
|
|
180
|
-
style,
|
|
181
|
-
onReady,
|
|
182
|
-
onError,
|
|
183
|
-
onClick,
|
|
184
|
-
onDoubleClick,
|
|
185
|
-
},
|
|
186
|
-
ref,
|
|
187
|
-
) {
|
|
188
|
-
const [manifest, setManifest] = useState<PetManifest | null>(manifestProp ?? null)
|
|
189
|
-
const [state, setState] = useState<PetAnimation>(animation)
|
|
190
|
-
const [frame, setFrame] = useState(0)
|
|
191
|
-
const [lookCell, setLookCell] = useState<{ row: number; column: number } | null>(null)
|
|
192
|
-
const [bubble, setBubble] = useState(defaultBubble ?? "")
|
|
193
|
-
const [hidden, setHidden] = useState(false)
|
|
194
|
-
const initialPosition = useMemo(() => positionStyle(position), [position])
|
|
195
|
-
const [pos, setPos] = useState<CSSProperties>(() => {
|
|
196
|
-
if (!nativeWindow && typeof window !== "undefined" && persistKey) {
|
|
197
|
-
try {
|
|
198
|
-
const saved = localStorage.getItem(persistKey)
|
|
199
|
-
if (saved) return JSON.parse(saved)
|
|
200
|
-
} catch {}
|
|
201
|
-
}
|
|
202
|
-
return initialPosition
|
|
203
|
-
})
|
|
204
|
-
const rootRef = useRef<HTMLDivElement>(null)
|
|
205
|
-
const bubbleTimer = useRef<ReturnType<typeof setTimeout> | null>(null)
|
|
206
|
-
const [feedbackSessionId, setFeedbackSessionId] = useState<string | null>(null)
|
|
207
|
-
const [feedbackText, setFeedbackText] = useState("")
|
|
208
|
-
const [spriteBounds, setSpriteBounds] = useState<SpriteBounds | null>(null)
|
|
209
|
-
const [spriteFailed, setSpriteFailed] = useState(false)
|
|
210
|
-
|
|
211
|
-
useEffect(() => {
|
|
212
|
-
if (manifestProp) return
|
|
213
|
-
fetch(`${petBaseUrl}/pet.json`)
|
|
214
|
-
.then((response) => {
|
|
215
|
-
if (!response.ok) throw new Error(`Failed to load pet manifest: ${response.status}`)
|
|
216
|
-
return response.json()
|
|
217
|
-
})
|
|
218
|
-
.then(setManifest)
|
|
219
|
-
.catch((error) => onError?.(error instanceof Error ? error : new Error(String(error))))
|
|
220
|
-
}, [manifestProp, petBaseUrl, onError])
|
|
221
|
-
useEffect(() => setState(animation), [animation])
|
|
222
|
-
useEffect(() => {
|
|
223
|
-
setSpriteBounds(null)
|
|
224
|
-
setSpriteFailed(false)
|
|
225
|
-
if (!manifest) return
|
|
226
|
-
const layout = manifest.spritesheetLayout ?? {
|
|
227
|
-
columns: 8,
|
|
228
|
-
rows: 11,
|
|
229
|
-
cellWidth: CELL.width,
|
|
230
|
-
cellHeight: CELL.height,
|
|
231
|
-
}
|
|
232
|
-
let active = true
|
|
233
|
-
void detectVisibleSpriteBounds(resolvePetAsset(petBaseUrl, manifest.spritesheetPath), layout)
|
|
234
|
-
.then((bounds) => {
|
|
235
|
-
if (active) setSpriteBounds(bounds)
|
|
236
|
-
})
|
|
237
|
-
// 图集取不到(404 / 解码失败):落中性占位块,不留一块白台子
|
|
238
|
-
.catch(() => {
|
|
239
|
-
if (active) setSpriteFailed(true)
|
|
240
|
-
})
|
|
241
|
-
return () => {
|
|
242
|
-
active = false
|
|
243
|
-
}
|
|
244
|
-
}, [manifest, petBaseUrl])
|
|
245
|
-
useEffect(() => {
|
|
246
|
-
if (lookCell) return
|
|
247
|
-
const animation = ROWS[state]
|
|
248
|
-
const safeAnimationRate = Number.isFinite(animationRate) && animationRate > 0 ? animationRate : 1
|
|
249
|
-
const timer = setTimeout(
|
|
250
|
-
() => setFrame((value) => (value + 1) % animation.frames),
|
|
251
|
-
animation.durationMs / animation.frames / safeAnimationRate,
|
|
252
|
-
)
|
|
253
|
-
return () => clearTimeout(timer)
|
|
254
|
-
}, [state, frame, lookCell, animationRate])
|
|
255
|
-
|
|
256
|
-
const say = useCallback((text: string, durationMs = 3600) => {
|
|
257
|
-
setBubble(text)
|
|
258
|
-
if (bubbleTimer.current) clearTimeout(bubbleTimer.current)
|
|
259
|
-
if (durationMs > 0) bubbleTimer.current = setTimeout(() => setBubble(""), durationMs)
|
|
260
|
-
}, [])
|
|
261
|
-
const lookAt = useCallback(
|
|
262
|
-
(degrees: number | null) => {
|
|
263
|
-
if (degrees === null || !manifest?.lookDirections?.length) return setLookCell(null)
|
|
264
|
-
const normalized = ((degrees % 360) + 360) % 360
|
|
265
|
-
const distance = (degree: number) => Math.min(Math.abs(degree - normalized), 360 - Math.abs(degree - normalized))
|
|
266
|
-
const nearest = manifest.lookDirections.reduce((best, item) =>
|
|
267
|
-
distance(item.degrees) < distance(best.degrees) ? item : best,
|
|
268
|
-
)
|
|
269
|
-
setLookCell({ row: nearest.rowIndex, column: nearest.columnIndex })
|
|
270
|
-
},
|
|
271
|
-
[manifest],
|
|
272
|
-
)
|
|
273
|
-
const reset = useCallback(() => {
|
|
274
|
-
setPos(initialPosition)
|
|
275
|
-
if (persistKey) localStorage.removeItem(persistKey)
|
|
276
|
-
}, [initialPosition, persistKey])
|
|
277
|
-
const handle = useMemo<DesktopPetHandle>(
|
|
278
|
-
() => ({
|
|
279
|
-
playAnimation: (value) => {
|
|
280
|
-
setLookCell(null)
|
|
281
|
-
setFrame(0)
|
|
282
|
-
setState(value)
|
|
283
|
-
},
|
|
284
|
-
lookAt,
|
|
285
|
-
say,
|
|
286
|
-
hide: () => {
|
|
287
|
-
if (nativeWindow) onHideRequest?.()
|
|
288
|
-
else setHidden(true)
|
|
289
|
-
},
|
|
290
|
-
show: () => setHidden(false),
|
|
291
|
-
reset,
|
|
292
|
-
}),
|
|
293
|
-
[lookAt, say, reset, nativeWindow, onHideRequest],
|
|
294
|
-
)
|
|
295
|
-
useImperativeHandle(ref, () => handle, [handle])
|
|
296
|
-
useEffect(() => {
|
|
297
|
-
if (manifest) onReady?.(handle, manifest)
|
|
298
|
-
}, [manifest, handle, onReady])
|
|
299
|
-
useEffect(() => {
|
|
300
|
-
const root = rootRef.current
|
|
301
|
-
if (!root || !onContentSizeChange) return
|
|
302
|
-
const report = () => {
|
|
303
|
-
const bounds = root.getBoundingClientRect()
|
|
304
|
-
onContentSizeChange({ width: Math.ceil(bounds.width), height: Math.ceil(bounds.height) })
|
|
305
|
-
}
|
|
306
|
-
report()
|
|
307
|
-
if (typeof ResizeObserver === "undefined") return
|
|
308
|
-
const observer = new ResizeObserver(report)
|
|
309
|
-
observer.observe(root)
|
|
310
|
-
return () => observer.disconnect()
|
|
311
|
-
}, [manifest, onContentSizeChange])
|
|
312
|
-
|
|
313
|
-
const drag = useRef<{ x: number; y: number; left: number; top: number } | null>(null)
|
|
314
|
-
const nativeDrag = useRef<{ pointerId: number; startX: number; startY: number; started: boolean } | null>(null)
|
|
315
|
-
const suppressActivation = useRef(false)
|
|
316
|
-
const pointerDown = (event: ReactPointerEvent) => {
|
|
317
|
-
if (!draggable || event.button !== 0) return
|
|
318
|
-
suppressActivation.current = false
|
|
319
|
-
if (nativeWindow) {
|
|
320
|
-
nativeDrag.current = { pointerId: event.pointerId, startX: event.screenX, startY: event.screenY, started: false }
|
|
321
|
-
event.currentTarget.setPointerCapture(event.pointerId)
|
|
322
|
-
return
|
|
323
|
-
}
|
|
324
|
-
const root = rootRef.current
|
|
325
|
-
const rect = root?.getBoundingClientRect()
|
|
326
|
-
if (!root || !rect) return
|
|
327
|
-
const parent = root.offsetParent as HTMLElement | null
|
|
328
|
-
const parentRect = parent?.getBoundingClientRect()
|
|
329
|
-
const fixed = window.getComputedStyle(root).position === "fixed"
|
|
330
|
-
drag.current = {
|
|
331
|
-
x: event.clientX,
|
|
332
|
-
y: event.clientY,
|
|
333
|
-
left: fixed
|
|
334
|
-
? rect.left
|
|
335
|
-
: rect.left - (parentRect?.left ?? 0) - (parent?.clientLeft ?? 0) + (parent?.scrollLeft ?? 0),
|
|
336
|
-
top: fixed ? rect.top : rect.top - (parentRect?.top ?? 0) - (parent?.clientTop ?? 0) + (parent?.scrollTop ?? 0),
|
|
337
|
-
}
|
|
338
|
-
event.currentTarget.setPointerCapture(event.pointerId)
|
|
339
|
-
}
|
|
340
|
-
const pointerMove = (event: ReactPointerEvent) => {
|
|
341
|
-
const native = nativeDrag.current
|
|
342
|
-
if (native && native.pointerId === event.pointerId) {
|
|
343
|
-
if (!native.started && Math.hypot(event.screenX - native.startX, event.screenY - native.startY) >= 4) {
|
|
344
|
-
native.started = true
|
|
345
|
-
suppressActivation.current = true
|
|
346
|
-
onNativeDrag?.({ phase: "start", screenX: native.startX, screenY: native.startY })
|
|
347
|
-
}
|
|
348
|
-
if (native.started) onNativeDrag?.({ phase: "move", screenX: event.screenX, screenY: event.screenY })
|
|
349
|
-
return
|
|
350
|
-
}
|
|
351
|
-
if (drag.current) {
|
|
352
|
-
setPos({
|
|
353
|
-
left: Math.round(drag.current.left + event.clientX - drag.current.x),
|
|
354
|
-
top: Math.round(drag.current.top + event.clientY - drag.current.y),
|
|
355
|
-
})
|
|
356
|
-
return
|
|
357
|
-
}
|
|
358
|
-
if (trackPointer && rootRef.current) {
|
|
359
|
-
const rect = rootRef.current.getBoundingClientRect()
|
|
360
|
-
const dx = event.clientX - (rect.left + rect.width / 2)
|
|
361
|
-
const dy = event.clientY - (rect.top + rect.height / 2)
|
|
362
|
-
if (Math.hypot(dx, dy) > 28) lookAt(((Math.atan2(dx, -dy) * 180) / Math.PI + 360) % 360)
|
|
363
|
-
else lookAt(null)
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
const pointerUp = (event: ReactPointerEvent) => {
|
|
367
|
-
const native = nativeDrag.current
|
|
368
|
-
if (native && native.pointerId === event.pointerId) {
|
|
369
|
-
if (native.started) onNativeDrag?.({ phase: "end", screenX: event.screenX, screenY: event.screenY })
|
|
370
|
-
nativeDrag.current = null
|
|
371
|
-
return
|
|
372
|
-
}
|
|
373
|
-
if (drag.current && persistKey) localStorage.setItem(persistKey, JSON.stringify(pos))
|
|
374
|
-
drag.current = null
|
|
375
|
-
}
|
|
376
|
-
const activate = (callback?: () => void) => {
|
|
377
|
-
if (!suppressActivation.current) callback?.()
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
const rootPosition = nativeWindow ? {} : pos
|
|
381
|
-
const anchor = nativeWindow ? nativeAnchor : resolveAnchor(pos)
|
|
382
|
-
if (!manifest)
|
|
383
|
-
return (
|
|
384
|
-
<div
|
|
385
|
-
data-slot="desktop-pet"
|
|
386
|
-
data-ow-state="loading"
|
|
387
|
-
data-ow-variant={nativeWindow ? "native" : undefined}
|
|
388
|
-
className={className}
|
|
389
|
-
style={{ ...rootPosition, ...style }}
|
|
390
|
-
/>
|
|
391
|
-
)
|
|
392
|
-
const layout = manifest.spritesheetLayout ?? { columns: 8, rows: 11, cellWidth: CELL.width, cellHeight: CELL.height }
|
|
393
|
-
const visibleBounds = spriteBounds ?? { x: 0, y: 0, width: layout.cellWidth, height: layout.cellHeight }
|
|
394
|
-
const cell = lookCell ?? { row: ROWS[state].row, column: frame }
|
|
395
|
-
const spriteUrl = resolvePetAsset(petBaseUrl, manifest.spritesheetPath)
|
|
396
|
-
const stageStyle: CSSProperties = {
|
|
397
|
-
position: "relative",
|
|
398
|
-
width: Math.round(visibleBounds.width * scale),
|
|
399
|
-
height: Math.round(visibleBounds.height * scale),
|
|
400
|
-
}
|
|
401
|
-
const sessionsStyle: CSSProperties | undefined = nativeWindow
|
|
402
|
-
? { width: Math.round(visibleBounds.width * MAX_DESKTOP_PET_SCALE) }
|
|
403
|
-
: undefined
|
|
404
|
-
const spriteStyle: CSSProperties = {
|
|
405
|
-
position: "absolute",
|
|
406
|
-
left: -Math.round(visibleBounds.x * scale),
|
|
407
|
-
top: -Math.round(visibleBounds.y * scale),
|
|
408
|
-
width: layout.cellWidth,
|
|
409
|
-
height: layout.cellHeight,
|
|
410
|
-
backgroundImage: `url(${spriteUrl})`,
|
|
411
|
-
backgroundRepeat: "no-repeat",
|
|
412
|
-
backgroundSize: `${layout.columns * layout.cellWidth}px ${layout.rows * layout.cellHeight}px`,
|
|
413
|
-
backgroundPosition: `${-cell.column * layout.cellWidth}px ${-cell.row * layout.cellHeight}px`,
|
|
414
|
-
transform: `scale(${scale})`,
|
|
415
|
-
transformOrigin: "top left",
|
|
416
|
-
}
|
|
417
|
-
const items: PetToolbarItem[] =
|
|
418
|
-
toolbar === true
|
|
419
|
-
? [
|
|
420
|
-
// §7 图标族:默认工具条走 composite/Icons 单色字形,不用 emoji 字面量。
|
|
421
|
-
{
|
|
422
|
-
key: "wave",
|
|
423
|
-
label: "打招呼",
|
|
424
|
-
icon: <Hand aria-hidden="true" />,
|
|
425
|
-
onClick: (pet) => pet.playAnimation("waving"),
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
key: "work",
|
|
429
|
-
label: "工作",
|
|
430
|
-
icon: <Keyboard aria-hidden="true" />,
|
|
431
|
-
onClick: (pet) => pet.playAnimation("running"),
|
|
432
|
-
},
|
|
433
|
-
{ key: "hide", label: "隐藏", icon: <Close aria-hidden="true" />, onClick: (pet) => pet.hide() },
|
|
434
|
-
]
|
|
435
|
-
: Array.isArray(toolbar)
|
|
436
|
-
? toolbar
|
|
437
|
-
: []
|
|
438
|
-
const submitFeedback = (sessionId: string) => {
|
|
439
|
-
const text = feedbackText.trim()
|
|
440
|
-
if (!text) return
|
|
441
|
-
onSessionFeedback?.(sessionId, text)
|
|
442
|
-
setFeedbackText("")
|
|
443
|
-
setFeedbackSessionId(null)
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
return (
|
|
447
|
-
<div
|
|
448
|
-
ref={rootRef}
|
|
449
|
-
data-slot="desktop-pet"
|
|
450
|
-
data-ow-variant={nativeWindow ? "native" : undefined}
|
|
451
|
-
className={className}
|
|
452
|
-
data-hidden={hidden}
|
|
453
|
-
data-anchor-horizontal={anchor.horizontal}
|
|
454
|
-
data-anchor-vertical={anchor.vertical}
|
|
455
|
-
style={{ ...rootPosition, ...style }}
|
|
456
|
-
onPointerMove={pointerMove}
|
|
457
|
-
onPointerUp={pointerUp}
|
|
458
|
-
onPointerCancel={pointerUp}
|
|
459
|
-
onPointerLeave={() => !drag.current && lookAt(null)}
|
|
460
|
-
>
|
|
461
|
-
{sessions.length > 0 && (
|
|
462
|
-
<div data-ow-part="sessions" style={sessionsStyle} aria-label="正在执行的任务">
|
|
463
|
-
{sessions.map((session) => {
|
|
464
|
-
const terminal = session.status === "completed" || session.status === "failed"
|
|
465
|
-
const editing = feedbackSessionId === session.sessionId
|
|
466
|
-
return (
|
|
467
|
-
<section key={session.sessionId} data-ow-part="session" data-status={session.status}>
|
|
468
|
-
<div data-ow-part="session-main">
|
|
469
|
-
<div data-ow-part="session-content">
|
|
470
|
-
<div data-ow-part="session-heading">
|
|
471
|
-
<SessionStatus status={session.status} />
|
|
472
|
-
<strong title={session.title}>{session.title}</strong>
|
|
473
|
-
</div>
|
|
474
|
-
{session.text && <p title={session.text}>{session.text}</p>}
|
|
475
|
-
</div>
|
|
476
|
-
{!terminal && (
|
|
477
|
-
<div data-ow-part="session-actions">
|
|
478
|
-
{session.canFeedback !== false && (
|
|
479
|
-
<Button
|
|
480
|
-
variant="ghost"
|
|
481
|
-
size="sm"
|
|
482
|
-
type="button"
|
|
483
|
-
data-ow-part="session-action"
|
|
484
|
-
title="反馈"
|
|
485
|
-
aria-label="反馈"
|
|
486
|
-
aria-expanded={editing}
|
|
487
|
-
icon={<CommentPlus aria-hidden="true" />}
|
|
488
|
-
onClick={() => {
|
|
489
|
-
setFeedbackSessionId(editing ? null : session.sessionId)
|
|
490
|
-
setFeedbackText("")
|
|
491
|
-
}}
|
|
492
|
-
/>
|
|
493
|
-
)}
|
|
494
|
-
{session.canStop !== false && (
|
|
495
|
-
<Button
|
|
496
|
-
variant="ghost"
|
|
497
|
-
size="sm"
|
|
498
|
-
type="button"
|
|
499
|
-
data-ow-part="session-action"
|
|
500
|
-
data-ow-variant="stop"
|
|
501
|
-
title="停止"
|
|
502
|
-
aria-label="停止"
|
|
503
|
-
icon={<Stop aria-hidden="true" />}
|
|
504
|
-
onClick={() => onSessionStop?.(session.sessionId)}
|
|
505
|
-
/>
|
|
506
|
-
)}
|
|
507
|
-
</div>
|
|
508
|
-
)}
|
|
509
|
-
</div>
|
|
510
|
-
{editing && (
|
|
511
|
-
<div data-ow-part="feedback">
|
|
512
|
-
<Field
|
|
513
|
-
autoFocus
|
|
514
|
-
standalone={false}
|
|
515
|
-
value={feedbackText}
|
|
516
|
-
maxLength={500}
|
|
517
|
-
placeholder="向该任务发送反馈"
|
|
518
|
-
aria-label={`给 ${session.title} 的反馈`}
|
|
519
|
-
onChange={setFeedbackText}
|
|
520
|
-
onKeyDown={(event) => {
|
|
521
|
-
if (event.key === "Enter" && !event.nativeEvent.isComposing) submitFeedback(session.sessionId)
|
|
522
|
-
if (event.key === "Escape") setFeedbackSessionId(null)
|
|
523
|
-
}}
|
|
524
|
-
/>
|
|
525
|
-
<Button
|
|
526
|
-
variant="primary"
|
|
527
|
-
size="sm"
|
|
528
|
-
type="button"
|
|
529
|
-
disabled={!feedbackText.trim()}
|
|
530
|
-
onClick={() => submitFeedback(session.sessionId)}
|
|
531
|
-
>
|
|
532
|
-
发送
|
|
533
|
-
</Button>
|
|
534
|
-
</div>
|
|
535
|
-
)}
|
|
536
|
-
</section>
|
|
537
|
-
)
|
|
538
|
-
})}
|
|
539
|
-
</div>
|
|
540
|
-
)}
|
|
541
|
-
{items.length > 0 && (
|
|
542
|
-
<div data-ow-part="toolbar">
|
|
543
|
-
{items.map((item) => (
|
|
544
|
-
<Button
|
|
545
|
-
key={item.key}
|
|
546
|
-
variant="ghost"
|
|
547
|
-
size="sm"
|
|
548
|
-
type="button"
|
|
549
|
-
title={item.label}
|
|
550
|
-
icon={item.icon}
|
|
551
|
-
onClick={() => item.onClick(handle)}
|
|
552
|
-
/>
|
|
553
|
-
))}
|
|
554
|
-
</div>
|
|
555
|
-
)}
|
|
556
|
-
<div
|
|
557
|
-
data-ow-part="stage"
|
|
558
|
-
style={stageStyle}
|
|
559
|
-
onPointerDown={pointerDown}
|
|
560
|
-
onContextMenu={(event) => {
|
|
561
|
-
event.preventDefault()
|
|
562
|
-
onContextMenuRequest?.()
|
|
563
|
-
}}
|
|
564
|
-
onClick={() => activate(onClick)}
|
|
565
|
-
onDoubleClick={() => activate(onDoubleClick)}
|
|
566
|
-
role="img"
|
|
567
|
-
aria-label={manifest.displayName}
|
|
568
|
-
>
|
|
569
|
-
{spriteFailed ? (
|
|
570
|
-
/* 图集缺失/404:不留白台子,落一块中性占位——surface-2 面 + 1px 边 + r12 +
|
|
571
|
-
居中信标构型(几何取自 EmptyState 母题的静止收笔姿态,单色 text-3,不占任何极)。
|
|
572
|
-
度量与形由 desktop-pet.css 的 [data-ow-part="sprite-fallback"] 承担。 */
|
|
573
|
-
<div data-ow-part="sprite-fallback" title={manifest.displayName}>
|
|
574
|
-
<svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
575
|
-
<circle cx="12" cy="12" r="8" stroke="currentColor" strokeWidth="1.5" opacity="0.45" />
|
|
576
|
-
<circle cx="12" cy="4" r="2.25" fill="currentColor" />
|
|
577
|
-
<circle cx="17.6" cy="7.2" r="1.5" fill="currentColor" opacity="0.68" />
|
|
578
|
-
<circle cx="19.4" cy="13" r="1.1" fill="currentColor" opacity="0.45" />
|
|
579
|
-
<circle cx="15.8" cy="17.8" r="0.8" fill="currentColor" opacity="0.25" />
|
|
580
|
-
</svg>
|
|
581
|
-
</div>
|
|
582
|
-
) : (
|
|
583
|
-
<div data-ow-part="sprite" style={spriteStyle} />
|
|
584
|
-
)}
|
|
585
|
-
</div>
|
|
586
|
-
<div data-ow-part="bubble" data-visible={!!bubble}>
|
|
587
|
-
{bubble}
|
|
588
|
-
</div>
|
|
589
|
-
</div>
|
|
590
|
-
)
|
|
591
|
-
})
|