@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
package/dist/about-window.js
CHANGED
|
@@ -1 +1,271 @@
|
|
|
1
|
-
|
|
1
|
+
// src/lib/about-window.ts
|
|
2
|
+
function renderAboutWindowHtml({
|
|
3
|
+
version,
|
|
4
|
+
notes,
|
|
5
|
+
logoSvg,
|
|
6
|
+
logoDataUrl,
|
|
7
|
+
theme,
|
|
8
|
+
productName = "Orbitwork"
|
|
9
|
+
}) {
|
|
10
|
+
const versionText = escapeHtml(version.trim() || "\u672A\u77E5");
|
|
11
|
+
const notesText = escapeHtml(notes.trim() || "\u6682\u65E0\u7248\u672C\u8BF4\u660E");
|
|
12
|
+
const brandText = escapeHtml(productName.trim() || "Orbitwork");
|
|
13
|
+
const logoMarkup = logoDataUrl ? `<img src="${escapeHtml(logoDataUrl)}" alt="" aria-hidden="true" />` : logoSvg;
|
|
14
|
+
const light = resolvePalette(theme?.light, {
|
|
15
|
+
bg: "#F7F6F1",
|
|
16
|
+
surface: "#FDFDFC",
|
|
17
|
+
border: "#DCDCD7",
|
|
18
|
+
text: "#333B50",
|
|
19
|
+
text2: "#646B7A"
|
|
20
|
+
});
|
|
21
|
+
const dark = resolvePalette(theme?.dark, {
|
|
22
|
+
bg: "#16171B",
|
|
23
|
+
surface: "#1E2025",
|
|
24
|
+
border: "#2A2C33",
|
|
25
|
+
text: "#ECEBE5",
|
|
26
|
+
text2: "#82878F"
|
|
27
|
+
});
|
|
28
|
+
const brandPaletteCss = theme?.light || theme?.dark ? `
|
|
29
|
+
:root {
|
|
30
|
+
--about-bg: ${light.bg};
|
|
31
|
+
--about-surface: ${light.surface};
|
|
32
|
+
--about-border: ${light.border};
|
|
33
|
+
--about-text: ${light.text};
|
|
34
|
+
--about-text-2: ${light.text2};
|
|
35
|
+
}
|
|
36
|
+
@media (prefers-color-scheme: dark) {
|
|
37
|
+
:root:not([data-theme="light"]) {
|
|
38
|
+
--about-bg: ${dark.bg};
|
|
39
|
+
--about-surface: ${dark.surface};
|
|
40
|
+
--about-border: ${dark.border};
|
|
41
|
+
--about-text: ${dark.text};
|
|
42
|
+
--about-text-2: ${dark.text2};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
:root[data-theme="dark"] {
|
|
46
|
+
--about-bg: ${dark.bg};
|
|
47
|
+
--about-surface: ${dark.surface};
|
|
48
|
+
--about-border: ${dark.border};
|
|
49
|
+
--about-text: ${dark.text};
|
|
50
|
+
--about-text-2: ${dark.text2};
|
|
51
|
+
}` : "";
|
|
52
|
+
return `<!doctype html>
|
|
53
|
+
<html lang="zh-CN">
|
|
54
|
+
<head>
|
|
55
|
+
<meta charset="utf-8" />
|
|
56
|
+
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'unsafe-inline'; img-src data:;" />
|
|
57
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
58
|
+
<title>\u5173\u4E8E ${brandText}</title>
|
|
59
|
+
<style>
|
|
60
|
+
/*
|
|
61
|
+
* \u8FD9\u662F\u4E00\u4EFD\u72EC\u7ACB document\uFF08Electron \u81EA\u7ED8\u7A97\uFF0Cdata: URL \u8F7D\u5165\uFF09\uFF0C--ow-* \u4E3B token \u8868\u4E0D\u5728\u573A\uFF0C
|
|
62
|
+
* \u4E5F\u6CA1\u6709\u4EFB\u4F55\u5B57\u4F53\u6587\u4EF6\u53EF\u52A0\u8F7D\uFF08CSP \u65E0 font-src\uFF09\u3002\u6240\u4EE5\u914D\u8272\u4E00\u5F8B\u300C\u6284 DS 2.0 \u7EC8\u503C\u300D\u800C\u975E\u5F15\u7528\u53D8\u91CF\uFF0C
|
|
63
|
+
* \u6BCF\u7EC4\u503C\u65C1\u6CE8\u660E\u51FA\u5904\uFF1B\u5B57\u4F53\u53EA\u5199\u65CF\u540D\u6808\u5E76\u7ED9\u5230\u7CFB\u7EDF\u7EA7\u56DE\u9000\u3002
|
|
64
|
+
* \u9ED8\u8BA4\u503C\u51FA\u5904\uFF1Apackages/ui/src/tokens/light.ts \xB7 dark.ts \xB7 base.ts \xB7 metrics.ts\uFF1B
|
|
65
|
+
* \u767D\u6807\u5BBF\u4E3B\u53EF\u901A\u8FC7\u5DF2\u7ECF\u5BA1\u8BA1\u7684\u660E\u6697 palette \u8986\u76D6\u5BF9\u5E94\u8BED\u4E49\u8272\u3002
|
|
66
|
+
*/
|
|
67
|
+
:root {
|
|
68
|
+
/* ---- \u6D45\u6863\uFF1A\u6284\u81EA tokens light \u7EC8\u503C ---- */
|
|
69
|
+
--about-bg: #F7F6F1; /* light --ow-bg = gray-00 */
|
|
70
|
+
--about-surface: #FDFDFC; /* light --ow-surface */
|
|
71
|
+
--about-border: #DCDCD7; /* light --ow-border = gray-10 */
|
|
72
|
+
--about-text: #333B50; /* light --ow-text = gray-70 */
|
|
73
|
+
--about-text-2: #646B7A; /* light --ow-text-2 = gray-50\uFF08--ow-eyebrow \u540C\u503C\uFF09 */
|
|
74
|
+
--about-scrollbar: #C2C3C1; /* light --ow-scrollbar = gray-20 */
|
|
75
|
+
--about-scrollbar-hover: #A2A5A9; /* light --ow-scrollbar-hover = gray-30 */
|
|
76
|
+
--about-selection-bg: #0F1B3D; /* light --ow-selection-bg = navy */
|
|
77
|
+
--about-selection-fg: #F7F6F1; /* light --ow-selection-text = white */
|
|
78
|
+
|
|
79
|
+
/* ---- \u5F62\u72B6\u4E0E\u5EA6\u91CF\uFF1A\u6284\u81EA base.ts / metrics.ts\uFF08\u5F62\u72B6\u8868 \xA77\uFF09 ---- */
|
|
80
|
+
--about-space-2: 8px; /* --ow-space-2 */
|
|
81
|
+
--about-space-4: 16px; /* --ow-space-4 */
|
|
82
|
+
--about-space-5: 20px; /* --ow-space-5 */
|
|
83
|
+
--about-space-6: 24px; /* --ow-space-6 */
|
|
84
|
+
--about-space-8: 32px; /* --ow-space-8 */
|
|
85
|
+
--about-radius-lg: 12px; /* --ow-radius-lg\uFF08\u5361\u7247\u6863\uFF09 */
|
|
86
|
+
--about-radius-pill: 999px; /* --ow-radius-pill */
|
|
87
|
+
--about-border-w: 1px; /* --ow-border-width-default\uFF08\u8D34\u5730 1px \u8FB9\u6846\uFF09 */
|
|
88
|
+
--about-fs-body: 14px; /* --ow-fs-body */
|
|
89
|
+
--about-fs-ui: 13px; /* --ow-fs-ui */
|
|
90
|
+
--about-fs-eyebrow-cjk: 12px; /* --ow-fs-eyebrow-cjk */
|
|
91
|
+
--about-ls-eyebrow-cjk: 0.08em; /* --ow-ls-eyebrow-cjk */
|
|
92
|
+
--about-lh-ui: 1.5; /* --ow-lh-ui */
|
|
93
|
+
--about-lh-body: 1.75; /* --ow-lh-body */
|
|
94
|
+
--about-fw-medium: 500; /* --ow-font-weight-medium */
|
|
95
|
+
--about-fw-semibold: 600; /* --ow-font-weight-semibold */
|
|
96
|
+
--about-dur-2: 200ms; /* --ow-dur-2\uFF08\u4E3B\u9898\u5207\u6362\u8FC7\u6E21\uFF0C\xA79\uFF09 */
|
|
97
|
+
--about-ease: cubic-bezier(0.22, 1, 0.36, 1); /* --ow-ease-beacon\uFF08\u552F\u4E00\u7F13\u52A8\uFF09 */
|
|
98
|
+
|
|
99
|
+
/* ---- \u5B57\u65CF\u6808\uFF1A\u6284\u81EA base.ts \u7684\u65CF\u540D\uFF0C\u5C3E\u90E8\u8865\u72EC\u7ACB document \u53EF\u7528\u7684\u7CFB\u7EDF\u56DE\u9000\uFF1Bemoji \u65CF\u7F6E\u6808\u5C3E\uFF08\xA78\uFF09 ---- */
|
|
100
|
+
--about-font-sans: "HarmonyOS Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont,
|
|
101
|
+
"Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif, "Apple Color Emoji",
|
|
102
|
+
"Segoe UI Emoji", "Noto Color Emoji";
|
|
103
|
+
--about-font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas,
|
|
104
|
+
"HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", monospace,
|
|
105
|
+
"Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
|
|
106
|
+
|
|
107
|
+
color-scheme: light dark;
|
|
108
|
+
}
|
|
109
|
+
/* ---- \u6697\u6863\uFF1A\u6284\u81EA tokens dark \u7EC8\u503C\u3002\u5C5E\u6027\u4F18\u5148\uFF08\u5BBF\u4E3B\u53EF\u9489 data-theme\uFF09\uFF0C\u65E0\u5C5E\u6027\u65F6\u968F\u7CFB\u7EDF ---- */
|
|
110
|
+
@media (prefers-color-scheme: dark) {
|
|
111
|
+
:root:not([data-theme="light"]) {
|
|
112
|
+
--about-bg: #16171B; /* dark --ow-bg = graphite */
|
|
113
|
+
--about-surface: #1E2025; /* dark --ow-surface = graphite-raised */
|
|
114
|
+
--about-border: #2A2C33; /* dark --ow-border = graphite-border */
|
|
115
|
+
--about-text: #ECEBE5; /* dark --ow-text = gray-05 */
|
|
116
|
+
--about-text-2: #82878F; /* dark --ow-text-2 = gray-40 */
|
|
117
|
+
--about-scrollbar: #3A3D46; /* dark --ow-scrollbar */
|
|
118
|
+
--about-scrollbar-hover: #4A5164; /* dark --ow-scrollbar-hover */
|
|
119
|
+
--about-selection-bg: #F7F6F1; /* dark --ow-selection-bg */
|
|
120
|
+
--about-selection-fg: #0F1B3D; /* dark --ow-selection-text = navy */
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
:root[data-theme="dark"] {
|
|
124
|
+
/* \u4E0E\u4E0A\u65B9\u5A92\u4F53\u67E5\u8BE2\u5757\u9010\u503C\u4E00\u81F4 */
|
|
125
|
+
--about-bg: #16171B;
|
|
126
|
+
--about-surface: #1E2025;
|
|
127
|
+
--about-border: #2A2C33;
|
|
128
|
+
--about-text: #ECEBE5;
|
|
129
|
+
--about-text-2: #82878F;
|
|
130
|
+
--about-scrollbar: #3A3D46;
|
|
131
|
+
--about-scrollbar-hover: #4A5164;
|
|
132
|
+
--about-selection-bg: #F7F6F1;
|
|
133
|
+
--about-selection-fg: #0F1B3D;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
${brandPaletteCss}
|
|
137
|
+
* { box-sizing: border-box; }
|
|
138
|
+
html {
|
|
139
|
+
width: 100%;
|
|
140
|
+
height: 100%;
|
|
141
|
+
background: var(--about-bg);
|
|
142
|
+
}
|
|
143
|
+
body {
|
|
144
|
+
width: 100%;
|
|
145
|
+
height: 100%;
|
|
146
|
+
margin: 0;
|
|
147
|
+
overflow: hidden;
|
|
148
|
+
color: var(--about-text);
|
|
149
|
+
background: var(--about-bg);
|
|
150
|
+
font-family: var(--about-font-sans);
|
|
151
|
+
-webkit-font-smoothing: antialiased;
|
|
152
|
+
-webkit-user-select: none;
|
|
153
|
+
user-select: none;
|
|
154
|
+
transition: background-color var(--about-dur-2) var(--about-ease),
|
|
155
|
+
color var(--about-dur-2) var(--about-ease);
|
|
156
|
+
}
|
|
157
|
+
::selection {
|
|
158
|
+
background: var(--about-selection-bg);
|
|
159
|
+
color: var(--about-selection-fg);
|
|
160
|
+
}
|
|
161
|
+
/* \u62D6\u62FD\u6761 28px\uFF1D\u4E0E trafficLightPosition y:14 \u5BF9\u79F0\u7684\u529F\u80FD\u51E0\u4F55\uFF0C\u975E\u95F4\u8DDD\u9636\uFF0C\u4FDD\u6301\u4E0D\u52A8 */
|
|
162
|
+
[data-slot="about-window"] [data-ow-part="drag-region"] { height: 28px; -webkit-app-region: drag; }
|
|
163
|
+
[data-slot="about-window"] [data-ow-part="content"] {
|
|
164
|
+
height: calc(100% - 28px);
|
|
165
|
+
min-height: 0;
|
|
166
|
+
display: flex;
|
|
167
|
+
flex-direction: column;
|
|
168
|
+
align-items: center;
|
|
169
|
+
padding: var(--about-space-2) var(--about-space-8) var(--about-space-6);
|
|
170
|
+
}
|
|
171
|
+
/* \u5B57\u6807\u8D34\u5730\uFF1A\xA75\u300C\u5F71\u5B50\u53EA\u5C5E\u79BB\u5730\u4E4B\u7269\u300D\u2014\u2014\u539F\u6765\u7684\u88C5\u9970\u6295\u5F71\uFF08filter \u8F89\u5149\uFF092.0 \u4E00\u5F8B\u6E05\u9664 */
|
|
172
|
+
[data-slot="about-window"] [data-ow-part="logo"] {
|
|
173
|
+
width: 84px;
|
|
174
|
+
height: 84px;
|
|
175
|
+
flex: 0 0 auto;
|
|
176
|
+
display: grid;
|
|
177
|
+
place-items: center;
|
|
178
|
+
}
|
|
179
|
+
[data-slot="about-window"] [data-ow-part="logo"] svg,
|
|
180
|
+
[data-slot="about-window"] [data-ow-part="logo"] img {
|
|
181
|
+
width: 84px;
|
|
182
|
+
height: 84px;
|
|
183
|
+
display: block;
|
|
184
|
+
object-fit: contain;
|
|
185
|
+
}
|
|
186
|
+
[data-slot="about-window"] [data-ow-part="version"] {
|
|
187
|
+
margin-top: var(--about-space-4);
|
|
188
|
+
color: var(--about-text);
|
|
189
|
+
/* \u7248\u672C\u53F7\uFF1D\u8BFB\u6570\uFF0C\xA77 \u4E00\u5F8B mono\uFF0Btabular-nums */
|
|
190
|
+
font-family: var(--about-font-mono);
|
|
191
|
+
font-size: var(--about-fs-body);
|
|
192
|
+
font-weight: var(--about-fw-semibold);
|
|
193
|
+
line-height: var(--about-lh-ui);
|
|
194
|
+
font-variant-numeric: tabular-nums;
|
|
195
|
+
-webkit-user-select: text;
|
|
196
|
+
user-select: text;
|
|
197
|
+
}
|
|
198
|
+
[data-slot="about-window"] [data-ow-part="notes"] {
|
|
199
|
+
width: 100%;
|
|
200
|
+
min-height: 0;
|
|
201
|
+
flex: 1 1 auto;
|
|
202
|
+
margin-top: var(--about-space-5);
|
|
203
|
+
overflow-y: auto;
|
|
204
|
+
/* \u8D34\u5730\u4E4B\u7269\uFF1A0 \u5F71\uFF0B1px \u8FB9\u6846\uFF08\xA75\uFF09 */
|
|
205
|
+
border: var(--about-border-w) solid var(--about-border);
|
|
206
|
+
border-radius: var(--about-radius-lg);
|
|
207
|
+
padding: var(--about-space-4);
|
|
208
|
+
background: var(--about-surface);
|
|
209
|
+
-webkit-user-select: text;
|
|
210
|
+
user-select: text;
|
|
211
|
+
transition: background-color var(--about-dur-2) var(--about-ease),
|
|
212
|
+
border-color var(--about-dur-2) var(--about-ease);
|
|
213
|
+
}
|
|
214
|
+
/* \u300C\u7248\u672C\u8BF4\u660E\u300D\uFF1D\u4E2D\u6587\u7709\u6807\uFF1A500 / 12px / +0.08em / --ow-eyebrow\uFF08\xA78\uFF09 */
|
|
215
|
+
[data-slot="about-window"] [data-ow-part="notes-title"] {
|
|
216
|
+
margin: 0;
|
|
217
|
+
color: var(--about-text-2);
|
|
218
|
+
font-size: var(--about-fs-eyebrow-cjk);
|
|
219
|
+
font-weight: var(--about-fw-medium);
|
|
220
|
+
letter-spacing: var(--about-ls-eyebrow-cjk);
|
|
221
|
+
line-height: var(--about-lh-ui);
|
|
222
|
+
}
|
|
223
|
+
[data-slot="about-window"] [data-ow-part="notes-body"] {
|
|
224
|
+
margin: var(--about-space-2) 0 0;
|
|
225
|
+
color: var(--about-text);
|
|
226
|
+
font-size: var(--about-fs-ui);
|
|
227
|
+
line-height: var(--about-lh-body);
|
|
228
|
+
white-space: pre-wrap;
|
|
229
|
+
overflow-wrap: anywhere;
|
|
230
|
+
}
|
|
231
|
+
::-webkit-scrollbar { width: var(--about-space-2); }
|
|
232
|
+
::-webkit-scrollbar-thumb {
|
|
233
|
+
border-radius: var(--about-radius-pill);
|
|
234
|
+
background: var(--about-scrollbar);
|
|
235
|
+
}
|
|
236
|
+
::-webkit-scrollbar-thumb:hover { background: var(--about-scrollbar-hover); }
|
|
237
|
+
@media (prefers-reduced-motion: reduce) {
|
|
238
|
+
body, [data-slot="about-window"] [data-ow-part="notes"] { transition: none; }
|
|
239
|
+
}
|
|
240
|
+
</style>
|
|
241
|
+
</head>
|
|
242
|
+
<body data-slot="about-window">
|
|
243
|
+
<div data-ow-part="drag-region" aria-hidden="true"></div>
|
|
244
|
+
<main data-ow-part="content">
|
|
245
|
+
<div data-ow-part="logo" aria-label="${brandText} Logo" role="img">${logoMarkup}</div>
|
|
246
|
+
<div data-ow-part="version">\u7248\u672C ${versionText}</div>
|
|
247
|
+
<section data-ow-part="notes" aria-labelledby="about-notes-title">
|
|
248
|
+
<h1 data-ow-part="notes-title" id="about-notes-title">\u7248\u672C\u8BF4\u660E</h1>
|
|
249
|
+
<p data-ow-part="notes-body">${notesText}</p>
|
|
250
|
+
</section>
|
|
251
|
+
</main>
|
|
252
|
+
</body>
|
|
253
|
+
</html>`;
|
|
254
|
+
}
|
|
255
|
+
function escapeHtml(value) {
|
|
256
|
+
return value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'");
|
|
257
|
+
}
|
|
258
|
+
function resolvePalette(source, fallback) {
|
|
259
|
+
const color = (value, defaultValue) => value && /^#[0-9a-f]{6}$/i.test(value) ? value : defaultValue;
|
|
260
|
+
return {
|
|
261
|
+
bg: color(source?.bg, fallback.bg),
|
|
262
|
+
surface: color(source?.surface, fallback.surface),
|
|
263
|
+
border: color(source?.border, fallback.border),
|
|
264
|
+
text: color(source?.text, fallback.text),
|
|
265
|
+
text2: color(source?.text2, fallback.text2)
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
export {
|
|
269
|
+
renderAboutWindowHtml
|
|
270
|
+
};
|
|
271
|
+
//# sourceMappingURL=about-window.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/lib/about-window.ts"],"sourcesContent":["export type AboutWindowPalette = {\n bg?: string\n surface?: string\n border?: string\n text?: string\n text2?: string\n}\n\nexport interface AboutWindowContent {\n version: string\n notes: string\n logoSvg: string\n /** Audited build-time image for branded native hosts. Takes precedence over logoSvg. */\n logoDataUrl?: string\n theme?: { light?: AboutWindowPalette; dark?: AboutWindowPalette }\n /**\n * 品牌名:驱动文档标题与 logo 无障碍标签。缺省 \"Orbitwork\" 是 DS2 默认\n * 品牌值(非旧格式兼容)——白标宿主经桌面端 brand.json 注入。\n */\n productName?: string\n}\n\n/**\n * Renders the shared, self-contained content for Orbitwork's native About window.\n * Electron owns the window lifecycle; ow-ui owns its visual structure and CSS.\n */\nexport function renderAboutWindowHtml({\n version,\n notes,\n logoSvg,\n logoDataUrl,\n theme,\n productName = \"Orbitwork\",\n}: AboutWindowContent): string {\n const versionText = escapeHtml(version.trim() || \"未知\")\n const notesText = escapeHtml(notes.trim() || \"暂无版本说明\")\n const brandText = escapeHtml(productName.trim() || \"Orbitwork\")\n const logoMarkup = logoDataUrl ? `<img src=\"${escapeHtml(logoDataUrl)}\" alt=\"\" aria-hidden=\"true\" />` : logoSvg\n const light = resolvePalette(theme?.light, {\n bg: \"#F7F6F1\",\n surface: \"#FDFDFC\",\n border: \"#DCDCD7\",\n text: \"#333B50\",\n text2: \"#646B7A\",\n })\n const dark = resolvePalette(theme?.dark, {\n bg: \"#16171B\",\n surface: \"#1E2025\",\n border: \"#2A2C33\",\n text: \"#ECEBE5\",\n text2: \"#82878F\",\n })\n const brandPaletteCss =\n theme?.light || theme?.dark\n ? `\n :root {\n --about-bg: ${light.bg};\n --about-surface: ${light.surface};\n --about-border: ${light.border};\n --about-text: ${light.text};\n --about-text-2: ${light.text2};\n }\n @media (prefers-color-scheme: dark) {\n :root:not([data-theme=\"light\"]) {\n --about-bg: ${dark.bg};\n --about-surface: ${dark.surface};\n --about-border: ${dark.border};\n --about-text: ${dark.text};\n --about-text-2: ${dark.text2};\n }\n }\n :root[data-theme=\"dark\"] {\n --about-bg: ${dark.bg};\n --about-surface: ${dark.surface};\n --about-border: ${dark.border};\n --about-text: ${dark.text};\n --about-text-2: ${dark.text2};\n }`\n : \"\"\n\n return `<!doctype html>\n<html lang=\"zh-CN\">\n<head>\n<meta charset=\"utf-8\" />\n<meta http-equiv=\"Content-Security-Policy\" content=\"default-src 'none'; style-src 'unsafe-inline'; img-src data:;\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n<title>关于 ${brandText}</title>\n<style>\n /*\n * 这是一份独立 document(Electron 自绘窗,data: URL 载入),--ow-* 主 token 表不在场,\n * 也没有任何字体文件可加载(CSP 无 font-src)。所以配色一律「抄 DS 2.0 终值」而非引用变量,\n * 每组值旁注明出处;字体只写族名栈并给到系统级回退。\n * 默认值出处:packages/ui/src/tokens/light.ts · dark.ts · base.ts · metrics.ts;\n * 白标宿主可通过已经审计的明暗 palette 覆盖对应语义色。\n */\n :root {\n /* ---- 浅档:抄自 tokens light 终值 ---- */\n --about-bg: #F7F6F1; /* light --ow-bg = gray-00 */\n --about-surface: #FDFDFC; /* light --ow-surface */\n --about-border: #DCDCD7; /* light --ow-border = gray-10 */\n --about-text: #333B50; /* light --ow-text = gray-70 */\n --about-text-2: #646B7A; /* light --ow-text-2 = gray-50(--ow-eyebrow 同值) */\n --about-scrollbar: #C2C3C1; /* light --ow-scrollbar = gray-20 */\n --about-scrollbar-hover: #A2A5A9; /* light --ow-scrollbar-hover = gray-30 */\n --about-selection-bg: #0F1B3D; /* light --ow-selection-bg = navy */\n --about-selection-fg: #F7F6F1; /* light --ow-selection-text = white */\n\n /* ---- 形状与度量:抄自 base.ts / metrics.ts(形状表 §7) ---- */\n --about-space-2: 8px; /* --ow-space-2 */\n --about-space-4: 16px; /* --ow-space-4 */\n --about-space-5: 20px; /* --ow-space-5 */\n --about-space-6: 24px; /* --ow-space-6 */\n --about-space-8: 32px; /* --ow-space-8 */\n --about-radius-lg: 12px; /* --ow-radius-lg(卡片档) */\n --about-radius-pill: 999px; /* --ow-radius-pill */\n --about-border-w: 1px; /* --ow-border-width-default(贴地 1px 边框) */\n --about-fs-body: 14px; /* --ow-fs-body */\n --about-fs-ui: 13px; /* --ow-fs-ui */\n --about-fs-eyebrow-cjk: 12px; /* --ow-fs-eyebrow-cjk */\n --about-ls-eyebrow-cjk: 0.08em; /* --ow-ls-eyebrow-cjk */\n --about-lh-ui: 1.5; /* --ow-lh-ui */\n --about-lh-body: 1.75; /* --ow-lh-body */\n --about-fw-medium: 500; /* --ow-font-weight-medium */\n --about-fw-semibold: 600; /* --ow-font-weight-semibold */\n --about-dur-2: 200ms; /* --ow-dur-2(主题切换过渡,§9) */\n --about-ease: cubic-bezier(0.22, 1, 0.36, 1); /* --ow-ease-beacon(唯一缓动) */\n\n /* ---- 字族栈:抄自 base.ts 的族名,尾部补独立 document 可用的系统回退;emoji 族置栈尾(§8) ---- */\n --about-font-sans: \"HarmonyOS Sans SC\", \"Noto Sans SC\", -apple-system, BlinkMacSystemFont,\n \"Segoe UI\", \"PingFang SC\", \"Microsoft YaHei\", sans-serif, \"Apple Color Emoji\",\n \"Segoe UI Emoji\", \"Noto Color Emoji\";\n --about-font-mono: \"IBM Plex Mono\", ui-monospace, \"SF Mono\", Menlo, Consolas,\n \"HarmonyOS Sans SC\", \"Noto Sans SC\", \"PingFang SC\", \"Microsoft YaHei\", monospace,\n \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Noto Color Emoji\";\n\n color-scheme: light dark;\n }\n /* ---- 暗档:抄自 tokens dark 终值。属性优先(宿主可钉 data-theme),无属性时随系统 ---- */\n @media (prefers-color-scheme: dark) {\n :root:not([data-theme=\"light\"]) {\n --about-bg: #16171B; /* dark --ow-bg = graphite */\n --about-surface: #1E2025; /* dark --ow-surface = graphite-raised */\n --about-border: #2A2C33; /* dark --ow-border = graphite-border */\n --about-text: #ECEBE5; /* dark --ow-text = gray-05 */\n --about-text-2: #82878F; /* dark --ow-text-2 = gray-40 */\n --about-scrollbar: #3A3D46; /* dark --ow-scrollbar */\n --about-scrollbar-hover: #4A5164; /* dark --ow-scrollbar-hover */\n --about-selection-bg: #F7F6F1; /* dark --ow-selection-bg */\n --about-selection-fg: #0F1B3D; /* dark --ow-selection-text = navy */\n }\n }\n :root[data-theme=\"dark\"] {\n /* 与上方媒体查询块逐值一致 */\n --about-bg: #16171B;\n --about-surface: #1E2025;\n --about-border: #2A2C33;\n --about-text: #ECEBE5;\n --about-text-2: #82878F;\n --about-scrollbar: #3A3D46;\n --about-scrollbar-hover: #4A5164;\n --about-selection-bg: #F7F6F1;\n --about-selection-fg: #0F1B3D;\n }\n\n ${brandPaletteCss}\n * { box-sizing: border-box; }\n html {\n width: 100%;\n height: 100%;\n background: var(--about-bg);\n }\n body {\n width: 100%;\n height: 100%;\n margin: 0;\n overflow: hidden;\n color: var(--about-text);\n background: var(--about-bg);\n font-family: var(--about-font-sans);\n -webkit-font-smoothing: antialiased;\n -webkit-user-select: none;\n user-select: none;\n transition: background-color var(--about-dur-2) var(--about-ease),\n color var(--about-dur-2) var(--about-ease);\n }\n ::selection {\n background: var(--about-selection-bg);\n color: var(--about-selection-fg);\n }\n /* 拖拽条 28px=与 trafficLightPosition y:14 对称的功能几何,非间距阶,保持不动 */\n [data-slot=\"about-window\"] [data-ow-part=\"drag-region\"] { height: 28px; -webkit-app-region: drag; }\n [data-slot=\"about-window\"] [data-ow-part=\"content\"] {\n height: calc(100% - 28px);\n min-height: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: var(--about-space-2) var(--about-space-8) var(--about-space-6);\n }\n /* 字标贴地:§5「影子只属离地之物」——原来的装饰投影(filter 辉光)2.0 一律清除 */\n [data-slot=\"about-window\"] [data-ow-part=\"logo\"] {\n width: 84px;\n height: 84px;\n flex: 0 0 auto;\n display: grid;\n place-items: center;\n }\n [data-slot=\"about-window\"] [data-ow-part=\"logo\"] svg,\n [data-slot=\"about-window\"] [data-ow-part=\"logo\"] img {\n width: 84px;\n height: 84px;\n display: block;\n object-fit: contain;\n }\n [data-slot=\"about-window\"] [data-ow-part=\"version\"] {\n margin-top: var(--about-space-4);\n color: var(--about-text);\n /* 版本号=读数,§7 一律 mono+tabular-nums */\n font-family: var(--about-font-mono);\n font-size: var(--about-fs-body);\n font-weight: var(--about-fw-semibold);\n line-height: var(--about-lh-ui);\n font-variant-numeric: tabular-nums;\n -webkit-user-select: text;\n user-select: text;\n }\n [data-slot=\"about-window\"] [data-ow-part=\"notes\"] {\n width: 100%;\n min-height: 0;\n flex: 1 1 auto;\n margin-top: var(--about-space-5);\n overflow-y: auto;\n /* 贴地之物:0 影+1px 边框(§5) */\n border: var(--about-border-w) solid var(--about-border);\n border-radius: var(--about-radius-lg);\n padding: var(--about-space-4);\n background: var(--about-surface);\n -webkit-user-select: text;\n user-select: text;\n transition: background-color var(--about-dur-2) var(--about-ease),\n border-color var(--about-dur-2) var(--about-ease);\n }\n /* 「版本说明」=中文眉标:500 / 12px / +0.08em / --ow-eyebrow(§8) */\n [data-slot=\"about-window\"] [data-ow-part=\"notes-title\"] {\n margin: 0;\n color: var(--about-text-2);\n font-size: var(--about-fs-eyebrow-cjk);\n font-weight: var(--about-fw-medium);\n letter-spacing: var(--about-ls-eyebrow-cjk);\n line-height: var(--about-lh-ui);\n }\n [data-slot=\"about-window\"] [data-ow-part=\"notes-body\"] {\n margin: var(--about-space-2) 0 0;\n color: var(--about-text);\n font-size: var(--about-fs-ui);\n line-height: var(--about-lh-body);\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n }\n ::-webkit-scrollbar { width: var(--about-space-2); }\n ::-webkit-scrollbar-thumb {\n border-radius: var(--about-radius-pill);\n background: var(--about-scrollbar);\n }\n ::-webkit-scrollbar-thumb:hover { background: var(--about-scrollbar-hover); }\n @media (prefers-reduced-motion: reduce) {\n body, [data-slot=\"about-window\"] [data-ow-part=\"notes\"] { transition: none; }\n }\n</style>\n</head>\n<body data-slot=\"about-window\">\n <div data-ow-part=\"drag-region\" aria-hidden=\"true\"></div>\n <main data-ow-part=\"content\">\n <div data-ow-part=\"logo\" aria-label=\"${brandText} Logo\" role=\"img\">${logoMarkup}</div>\n <div data-ow-part=\"version\">版本 ${versionText}</div>\n <section data-ow-part=\"notes\" aria-labelledby=\"about-notes-title\">\n <h1 data-ow-part=\"notes-title\" id=\"about-notes-title\">版本说明</h1>\n <p data-ow-part=\"notes-body\">${notesText}</p>\n </section>\n </main>\n</body>\n</html>`\n}\n\nfunction escapeHtml(value: string): string {\n return value\n .replaceAll(\"&\", \"&\")\n .replaceAll(\"<\", \"<\")\n .replaceAll(\">\", \">\")\n .replaceAll('\"', \""\")\n .replaceAll(\"'\", \"'\")\n}\n\nfunction resolvePalette(source: AboutWindowPalette | undefined, fallback: Required<AboutWindowPalette>) {\n const color = (value: string | undefined, defaultValue: string) =>\n value && /^#[0-9a-f]{6}$/i.test(value) ? value : defaultValue\n return {\n bg: color(source?.bg, fallback.bg),\n surface: color(source?.surface, fallback.surface),\n border: color(source?.border, fallback.border),\n text: color(source?.text, fallback.text),\n text2: color(source?.text2, fallback.text2),\n }\n}\n"],"mappings":";AA0BO,SAAS,sBAAsB;AAAA,EACpC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,cAAc;AAChB,GAA+B;AAC7B,QAAM,cAAc,WAAW,QAAQ,KAAK,KAAK,cAAI;AACrD,QAAM,YAAY,WAAW,MAAM,KAAK,KAAK,sCAAQ;AACrD,QAAM,YAAY,WAAW,YAAY,KAAK,KAAK,WAAW;AAC9D,QAAM,aAAa,cAAc,aAAa,WAAW,WAAW,CAAC,mCAAmC;AACxG,QAAM,QAAQ,eAAe,OAAO,OAAO;AAAA,IACzC,IAAI;AAAA,IACJ,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,OAAO;AAAA,EACT,CAAC;AACD,QAAM,OAAO,eAAe,OAAO,MAAM;AAAA,IACvC,IAAI;AAAA,IACJ,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,OAAO;AAAA,EACT,CAAC;AACD,QAAM,kBACJ,OAAO,SAAS,OAAO,OACnB;AAAA;AAAA,kBAEU,MAAM,EAAE;AAAA,uBACH,MAAM,OAAO;AAAA,sBACd,MAAM,MAAM;AAAA,oBACd,MAAM,IAAI;AAAA,sBACR,MAAM,KAAK;AAAA;AAAA;AAAA;AAAA,oBAIb,KAAK,EAAE;AAAA,yBACF,KAAK,OAAO;AAAA,wBACb,KAAK,MAAM;AAAA,sBACb,KAAK,IAAI;AAAA,wBACP,KAAK,KAAK;AAAA;AAAA;AAAA;AAAA,kBAIhB,KAAK,EAAE;AAAA,uBACF,KAAK,OAAO;AAAA,sBACb,KAAK,MAAM;AAAA,oBACb,KAAK,IAAI;AAAA,sBACP,KAAK,KAAK;AAAA,OAExB;AAEN,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAMG,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IA8EjB,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2CA6GwB,SAAS,qBAAqB,UAAU;AAAA,+CAC9C,WAAW;AAAA;AAAA;AAAA,qCAGX,SAAS;AAAA;AAAA;AAAA;AAAA;AAK9C;AAEA,SAAS,WAAW,OAAuB;AACzC,SAAO,MACJ,WAAW,KAAK,OAAO,EACvB,WAAW,KAAK,MAAM,EACtB,WAAW,KAAK,MAAM,EACtB,WAAW,KAAK,QAAQ,EACxB,WAAW,KAAK,OAAO;AAC5B;AAEA,SAAS,eAAe,QAAwC,UAAwC;AACtG,QAAM,QAAQ,CAAC,OAA2B,iBACxC,SAAS,kBAAkB,KAAK,KAAK,IAAI,QAAQ;AACnD,SAAO;AAAA,IACL,IAAI,MAAM,QAAQ,IAAI,SAAS,EAAE;AAAA,IACjC,SAAS,MAAM,QAAQ,SAAS,SAAS,OAAO;AAAA,IAChD,QAAQ,MAAM,QAAQ,QAAQ,SAAS,MAAM;AAAA,IAC7C,MAAM,MAAM,QAAQ,MAAM,SAAS,IAAI;AAAA,IACvC,OAAO,MAAM,QAAQ,OAAO,SAAS,KAAK;AAAA,EAC5C;AACF;","names":[]}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
/** Supported text sizes, independent of the light/dark palette. */
|
|
2
|
+
declare const ORBITWORK_FONT_SCALES: readonly [0.9, 1, 1.1, 1.2];
|
|
3
|
+
type OrbitworkFontScale = (typeof ORBITWORK_FONT_SCALES)[number];
|
|
4
|
+
declare function isOrbitworkFontScale(value: unknown): value is OrbitworkFontScale;
|
|
5
|
+
/** Personal device preference wins over a skin preset; old settings resolve to 100%. */
|
|
6
|
+
declare function resolveOrbitworkFontScale(preference: unknown, skinScale?: unknown): OrbitworkFontScale;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Orbitwork skin protocol — aligned with Design project architecture.
|
|
10
|
+
* A skin is a validated JSON document that overrides --ow-* CSS variables
|
|
11
|
+
* at runtime. This module is framework-agnostic.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
type Theme = "light" | "dark" | "system";
|
|
15
|
+
type ResolvedTheme = "light" | "dark";
|
|
16
|
+
/**
|
|
17
|
+
* DS2 皮肤白名单(COMPONENT-RULES §15 · 2026-08-31 裁决):
|
|
18
|
+
* - 可覆盖:中性表面/边框/文字梯度、chat/composer/sidebar 背景类、
|
|
19
|
+
* btn-primary 族(唯一开放的租户品牌色位)。
|
|
20
|
+
* - 已移除(禁覆盖):primary 族(--ow-primary 暗档=荧黄行动极)、link、
|
|
21
|
+
* switchActive(--ow-control-on 无彩选中)、功能色四族、cardRadius/buttonRadius
|
|
22
|
+
* (圆角是品牌定稿)。
|
|
23
|
+
*/
|
|
24
|
+
type OrbitworkSkinTokens = {
|
|
25
|
+
backgroundPrimary?: string;
|
|
26
|
+
backgroundSecondary?: string;
|
|
27
|
+
backgroundTertiary?: string;
|
|
28
|
+
foregroundPrimary?: string;
|
|
29
|
+
foregroundSecondary?: string;
|
|
30
|
+
foregroundMuted?: string;
|
|
31
|
+
borderSubtle?: string;
|
|
32
|
+
borderStrong?: string;
|
|
33
|
+
buttonPrimaryBackground?: string;
|
|
34
|
+
buttonPrimaryForeground?: string;
|
|
35
|
+
chatBackground?: string;
|
|
36
|
+
chatBackgroundImage?: string;
|
|
37
|
+
/** 0–1 decimal string; kept under the legacy chatBackground namespace for skin.json compatibility. */
|
|
38
|
+
chatBackgroundImageOpacity?: string;
|
|
39
|
+
chatBackgroundOverlay?: string;
|
|
40
|
+
chatBackgroundMaskColor?: string;
|
|
41
|
+
chatBackgroundPosition?: "center" | "top" | "bottom" | "left" | "right" | "top left" | "top right" | "bottom left" | "bottom right";
|
|
42
|
+
chatBackgroundSize?: "cover" | "contain" | "auto";
|
|
43
|
+
userBubbleBackground?: string;
|
|
44
|
+
userBubbleForeground?: string;
|
|
45
|
+
userBubbleBorder?: string;
|
|
46
|
+
composerBackground?: string;
|
|
47
|
+
composerBorder?: string;
|
|
48
|
+
sidebarBackground?: string;
|
|
49
|
+
sidebarSelectedBackground?: string;
|
|
50
|
+
};
|
|
51
|
+
/** Maintenance record for each public-part precision selector. */
|
|
52
|
+
type OrbitworkSkinRegistryEntry = {
|
|
53
|
+
target: string;
|
|
54
|
+
reason: string;
|
|
55
|
+
};
|
|
56
|
+
type OrbitworkSkin = {
|
|
57
|
+
version: 1;
|
|
58
|
+
id: string;
|
|
59
|
+
name: string;
|
|
60
|
+
description?: string;
|
|
61
|
+
/** Uniform text size preset, shared by both color modes. */
|
|
62
|
+
fontScale?: OrbitworkFontScale;
|
|
63
|
+
modes: {
|
|
64
|
+
light?: OrbitworkSkinTokens;
|
|
65
|
+
dark?: OrbitworkSkinTokens;
|
|
66
|
+
};
|
|
67
|
+
contributes?: {
|
|
68
|
+
/** Registered CSS targeting component roots and their public parts. */
|
|
69
|
+
publicPartStyles?: string;
|
|
70
|
+
/** Every public-part selector must have a matching maintenance record. */
|
|
71
|
+
registry?: OrbitworkSkinRegistryEntry[];
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
type SkinValidationResult = {
|
|
75
|
+
ok: true;
|
|
76
|
+
skin: OrbitworkSkin;
|
|
77
|
+
} | {
|
|
78
|
+
ok: false;
|
|
79
|
+
error: string;
|
|
80
|
+
};
|
|
81
|
+
declare const MAX_ORBITWORK_SKIN_IMAGE_BYTES: number;
|
|
82
|
+
type OrbitworkSkinChatBackgroundMask = {
|
|
83
|
+
color: string;
|
|
84
|
+
strength: number;
|
|
85
|
+
startOpacity: number;
|
|
86
|
+
endOpacity: number;
|
|
87
|
+
};
|
|
88
|
+
/** Six-digit colors retain the original 80% → 50% mask; explicit alpha controls final strength. */
|
|
89
|
+
declare function resolveOrbitworkSkinChatBackgroundMask(value: string): OrbitworkSkinChatBackgroundMask;
|
|
90
|
+
declare function orbitworkSkinChatBackgroundMaskColor(color: string, strength: number): string;
|
|
91
|
+
declare const ORBITWORK_SKIN_CSS_VARIABLES: Readonly<Record<keyof OrbitworkSkinTokens, string>>;
|
|
92
|
+
/**
|
|
93
|
+
* Exact precision-style surface maintained by Orbitwork UI.
|
|
94
|
+
* A data-slot/data-ow-part attribute is not skin-public unless it appears here.
|
|
95
|
+
* Each target also owns its allowed visual properties so skins cannot turn a
|
|
96
|
+
* stable selector into an undocumented layout or behavior override.
|
|
97
|
+
*/
|
|
98
|
+
declare const ORBITWORK_SKIN_PUBLIC_PARTS: Readonly<{
|
|
99
|
+
readonly '[data-slot="artifact-preview-card"] [data-ow-part="meta"]': readonly string[];
|
|
100
|
+
}>;
|
|
101
|
+
/** WCAG 2.x 相对亮度 → 对比度实算(输入为 3/4/6/8 位 hex;alpha 忽略,按不透明计算)。 */
|
|
102
|
+
declare function ds2ContrastRatio(hexA: string, hexB: string): number;
|
|
103
|
+
declare function hasOrbitworkSkinChatBackground(skin: OrbitworkSkin | null | undefined, mode: ResolvedTheme): boolean;
|
|
104
|
+
declare function parseOrbitworkSkin(input: unknown): SkinValidationResult;
|
|
105
|
+
/** Convert a validated embedded image into a CSS value without accepting arbitrary CSS or URLs. */
|
|
106
|
+
declare function orbitworkSkinImageCssValue(value: string | undefined): string | undefined;
|
|
107
|
+
|
|
108
|
+
/** Runtime layers may override only this complete neutral group. */
|
|
109
|
+
declare const TENANT_THEME_COLOR_KEYS: readonly ["bg", "surface", "surface2", "text", "text2", "text3", "border", "borderStrong"];
|
|
110
|
+
type TenantThemeColors = Record<(typeof TENANT_THEME_COLOR_KEYS)[number], string>;
|
|
111
|
+
/** Localized brand copy. Assets stay outside locale buckets. */
|
|
112
|
+
type TenantBranding = {
|
|
113
|
+
productName: string;
|
|
114
|
+
companyName: string;
|
|
115
|
+
claim?: string;
|
|
116
|
+
claimNote?: string;
|
|
117
|
+
slogan?: string;
|
|
118
|
+
};
|
|
119
|
+
type LocalizedBranding = Record<string, TenantBranding>;
|
|
120
|
+
/**
|
|
121
|
+
* GET /api/v1/tenant/theme response.
|
|
122
|
+
*
|
|
123
|
+
* Every supplied mode is a complete neutral group. Keeping light and dark
|
|
124
|
+
* separate prevents a runtime :root override from leaking one palette into
|
|
125
|
+
* both DS2 modes.
|
|
126
|
+
*/
|
|
127
|
+
type TenantTheme = {
|
|
128
|
+
name: string;
|
|
129
|
+
/** Brand image. Empty string means fall through to the host/brand layer. */
|
|
130
|
+
logo: string;
|
|
131
|
+
favicon?: string;
|
|
132
|
+
modes: Partial<Record<ResolvedTheme, TenantThemeColors>>;
|
|
133
|
+
typography: {
|
|
134
|
+
fontSans: string;
|
|
135
|
+
fontMono: string;
|
|
136
|
+
};
|
|
137
|
+
/** en-US is the required baseline; other locale buckets are optional. */
|
|
138
|
+
branding: LocalizedBranding;
|
|
139
|
+
};
|
|
140
|
+
declare const UNIFIED_NEUTRAL_TOKENS: readonly ["--ow-bg", "--ow-surface", "--ow-surface-2", "--ow-text", "--ow-text-2", "--ow-text-3", "--ow-border", "--ow-border-strong"];
|
|
141
|
+
declare const BRAND_ACTION_TOKENS: readonly ["--ow-btn-primary-bg", "--ow-btn-primary-hover", "--ow-btn-primary-press", "--ow-btn-primary-fg", "--ow-beacon", "--ow-beacon-idle", "--ow-accent-dot", "--ow-data-today"];
|
|
142
|
+
declare const UNIFIED_TYPOGRAPHY_TOKENS: readonly ["--ow-font-sans", "--ow-font-mono"];
|
|
143
|
+
type UnifiedNeutralToken = (typeof UNIFIED_NEUTRAL_TOKENS)[number];
|
|
144
|
+
type BrandActionToken = (typeof BRAND_ACTION_TOKENS)[number];
|
|
145
|
+
type BrandThemeToken = UnifiedNeutralToken | BrandActionToken;
|
|
146
|
+
type UnifiedTypographyToken = (typeof UNIFIED_TYPOGRAPHY_TOKENS)[number];
|
|
147
|
+
type UnifiedThemeToken = BrandThemeToken | UnifiedTypographyToken;
|
|
148
|
+
/** Build-time validated OEM brand input consumed by the UI merge layer. */
|
|
149
|
+
type BrandTheme = {
|
|
150
|
+
id: string;
|
|
151
|
+
logo?: string;
|
|
152
|
+
favicon?: string;
|
|
153
|
+
modes: Partial<Record<ResolvedTheme, Partial<Record<BrandThemeToken, string>>>>;
|
|
154
|
+
typography?: {
|
|
155
|
+
fontSans: string;
|
|
156
|
+
fontMono: string;
|
|
157
|
+
};
|
|
158
|
+
branding?: LocalizedBranding;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
type UnifiedBranding = TenantBranding & {
|
|
162
|
+
logo?: string;
|
|
163
|
+
favicon?: string;
|
|
164
|
+
};
|
|
165
|
+
type UnifiedTheme = {
|
|
166
|
+
mode: ResolvedTheme;
|
|
167
|
+
/** Partial overrides only. DS2 CSS remains the sole source of defaults. */
|
|
168
|
+
tokens: Readonly<Partial<Record<AppliedThemeToken, string>>>;
|
|
169
|
+
branding: UnifiedBranding | null;
|
|
170
|
+
skin: {
|
|
171
|
+
id: string;
|
|
172
|
+
publicPartStyles?: string;
|
|
173
|
+
/** Validated embedded image retained outside CSSOM so the applier can use a short blob URL. */
|
|
174
|
+
chatBackgroundImage?: string;
|
|
175
|
+
hasChatBackgroundImage: boolean;
|
|
176
|
+
hasUserBubbleStyle: boolean;
|
|
177
|
+
} | null;
|
|
178
|
+
sources: {
|
|
179
|
+
brand: string | null;
|
|
180
|
+
tenant: string | null;
|
|
181
|
+
user: string | null;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
type SkinThemeToken = (typeof ORBITWORK_SKIN_CSS_VARIABLES)[keyof typeof ORBITWORK_SKIN_CSS_VARIABLES] | "--ow-chat-bg-mask-start-opacity" | "--ow-chat-bg-mask-end-opacity";
|
|
185
|
+
type AppliedThemeToken = UnifiedThemeToken | SkinThemeToken;
|
|
186
|
+
/** Pick the best localized copy for a locale: canonical, then language, then en-US. */
|
|
187
|
+
declare function localizedCopy(source: LocalizedBranding | undefined, locale: string): TenantBranding | undefined;
|
|
188
|
+
|
|
189
|
+
declare const DEFAULT_ORBITWORK_SKIN_ID: "codex";
|
|
190
|
+
declare const BUILTIN_ORBITWORK_SKINS: readonly [OrbitworkSkin, OrbitworkSkin, OrbitworkSkin, OrbitworkSkin, OrbitworkSkin, OrbitworkSkin, OrbitworkSkin, OrbitworkSkin, OrbitworkSkin, OrbitworkSkin];
|
|
191
|
+
|
|
192
|
+
export { ds2ContrastRatio as A, type BrandTheme as B, orbitworkSkinImageCssValue as C, DEFAULT_ORBITWORK_SKIN_ID as D, type LocalizedBranding as L, MAX_ORBITWORK_SKIN_IMAGE_BYTES as M, type OrbitworkSkin as O, type ResolvedTheme as R, type SkinValidationResult as S, type Theme as T, type UnifiedTheme as U, type OrbitworkFontScale as a, type TenantTheme as b, BUILTIN_ORBITWORK_SKINS as c, ORBITWORK_FONT_SCALES as d, type OrbitworkSkinChatBackgroundMask as e, type OrbitworkSkinTokens as f, type TenantBranding as g, type TenantThemeColors as h, hasOrbitworkSkinChatBackground as i, isOrbitworkFontScale as j, resolveOrbitworkSkinChatBackgroundMask as k, localizedCopy as l, BRAND_ACTION_TOKENS as m, type BrandActionToken as n, orbitworkSkinChatBackgroundMaskColor as o, parseOrbitworkSkin as p, type BrandThemeToken as q, resolveOrbitworkFontScale as r, ORBITWORK_SKIN_CSS_VARIABLES as s, ORBITWORK_SKIN_PUBLIC_PARTS as t, UNIFIED_NEUTRAL_TOKENS as u, UNIFIED_TYPOGRAPHY_TOKENS as v, type UnifiedBranding as w, type UnifiedNeutralToken as x, type UnifiedThemeToken as y, type UnifiedTypographyToken as z };
|