@forgeax/interface 0.4.1
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/LICENSE +202 -0
- package/NOTICE +9 -0
- package/README.md +111 -0
- package/dist/package/browser/App.css +192 -0
- package/dist/package/browser/App.d.ts +11 -0
- package/dist/package/browser/App.js +11 -0
- package/dist/package/browser/ApplicationDetachedShell.d.ts +13 -0
- package/dist/package/browser/ApplicationDetachedShell.js +10 -0
- package/dist/package/browser/ApplicationShell.d.ts +19 -0
- package/dist/package/browser/ApplicationShell.js +62 -0
- package/dist/package/browser/app-kit.d.ts +1 -0
- package/dist/package/browser/app-kit.js +4 -0
- package/dist/package/browser/appHostBootstrap.d.ts +16 -0
- package/dist/package/browser/appHostBootstrap.js +145 -0
- package/dist/package/browser/application.d.ts +35 -0
- package/dist/package/browser/application.js +64 -0
- package/dist/package/browser/assets/icons/agent-icon.png +0 -0
- package/dist/package/browser/assets/icons/at.svg +3 -0
- package/dist/package/browser/assets/icons/chevron-collapse.svg +3 -0
- package/dist/package/browser/assets/icons/chevron-expand.svg +3 -0
- package/dist/package/browser/assets/icons/chevron-up.svg +3 -0
- package/dist/package/browser/assets/icons/close-x.svg +3 -0
- package/dist/package/browser/assets/icons/close.svg +3 -0
- package/dist/package/browser/assets/icons/copy.svg +4 -0
- package/dist/package/browser/assets/icons/edit.svg +3 -0
- package/dist/package/browser/assets/icons/fullscreen.svg +3 -0
- package/dist/package/browser/assets/icons/pause.svg +4 -0
- package/dist/package/browser/assets/icons/play.svg +3 -0
- package/dist/package/browser/assets/icons/select.svg +3 -0
- package/dist/package/browser/assets/icons/sendMessage-enable.svg +4 -0
- package/dist/package/browser/assets/icons/sendMessage.svg +4 -0
- package/dist/package/browser/assets/icons/status-done.svg +11 -0
- package/dist/package/browser/assets/icons/status-running.svg +10 -0
- package/dist/package/browser/assets/icons/status-waiting.svg +10 -0
- package/dist/package/browser/assets/icons/tool-execute-script.svg +3 -0
- package/dist/package/browser/assets/icons/tool-other.svg +10 -0
- package/dist/package/browser/assets/icons/tool-read-file.svg +3 -0
- package/dist/package/browser/assets/icons/tool-resource-search.svg +3 -0
- package/dist/package/browser/assets/icons/tool-task-todo.svg +4 -0
- package/dist/package/browser/assets/icons/tool-write-file.svg +3 -0
- package/dist/package/browser/boot/SettingsSection.d.ts +14 -0
- package/dist/package/browser/boot/SettingsSection.js +82 -0
- package/dist/package/browser/boot/broadcast.d.ts +2 -0
- package/dist/package/browser/boot/broadcast.js +32 -0
- package/dist/package/browser/boot/driver.d.ts +22 -0
- package/dist/package/browser/boot/driver.js +47 -0
- package/dist/package/browser/boot/store.d.ts +29 -0
- package/dist/package/browser/boot/store.js +114 -0
- package/dist/package/browser/boot/themes.d.ts +19 -0
- package/dist/package/browser/boot/themes.js +21 -0
- package/dist/package/browser/boot/types.d.ts +22 -0
- package/dist/package/browser/boot/types.js +30 -0
- package/dist/package/browser/brand/BrandProvider.d.ts +19 -0
- package/dist/package/browser/brand/BrandProvider.js +35 -0
- package/dist/package/browser/brand/index.d.ts +4 -0
- package/dist/package/browser/brand/index.js +3 -0
- package/dist/package/browser/brand/runtime.d.ts +17 -0
- package/dist/package/browser/brand/runtime.js +71 -0
- package/dist/package/browser/brand/types.d.ts +77 -0
- package/dist/package/browser/brand/types.js +9 -0
- package/dist/package/browser/components/ActivityRail/ActivityRail.css +294 -0
- package/dist/package/browser/components/ActivityRail/ActivityRail.d.ts +2 -0
- package/dist/package/browser/components/ActivityRail/ActivityRail.js +164 -0
- package/dist/package/browser/components/ActivityRail/activity-rail-model.d.ts +18 -0
- package/dist/package/browser/components/ActivityRail/activity-rail-model.js +144 -0
- package/dist/package/browser/components/AgentAvatar/AgentAvatar.d.ts +17 -0
- package/dist/package/browser/components/AgentAvatar/AgentAvatar.js +50 -0
- package/dist/package/browser/components/BuildBadge/BuildBadge.d.ts +1 -0
- package/dist/package/browser/components/BuildBadge/BuildBadge.js +279 -0
- package/dist/package/browser/components/Bus/BusAdminPanel.css +2425 -0
- package/dist/package/browser/components/Bus/BusAdminPanel.d.ts +2 -0
- package/dist/package/browser/components/Bus/BusAdminPanel.js +1385 -0
- package/dist/package/browser/components/Bus/CapabilityOverview.d.ts +3 -0
- package/dist/package/browser/components/Bus/CapabilityOverview.js +50 -0
- package/dist/package/browser/components/ChatColumn/ChatColumn.d.ts +2 -0
- package/dist/package/browser/components/ChatColumn/ChatColumn.js +18 -0
- package/dist/package/browser/components/ChatColumn/SessionTabStrip.d.ts +1 -0
- package/dist/package/browser/components/ChatColumn/SessionTabStrip.js +103 -0
- package/dist/package/browser/components/ChatColumn/useChatWidth.d.ts +5 -0
- package/dist/package/browser/components/ChatColumn/useChatWidth.js +13 -0
- package/dist/package/browser/components/CommandPalette/CommandPalette.css +199 -0
- package/dist/package/browser/components/CommandPalette/CommandPalette.d.ts +2 -0
- package/dist/package/browser/components/CommandPalette/CommandPalette.js +242 -0
- package/dist/package/browser/components/Confirm/ConfirmDialog.d.ts +2 -0
- package/dist/package/browser/components/Confirm/ConfirmDialog.js +113 -0
- package/dist/package/browser/components/ContextMenu/ContextMenu.d.ts +10 -0
- package/dist/package/browser/components/ContextMenu/ContextMenu.js +218 -0
- package/dist/package/browser/components/ContextMenu/menuRegistry.d.ts +18 -0
- package/dist/package/browser/components/ContextMenu/menuRegistry.js +152 -0
- package/dist/package/browser/components/DetachedSurface.d.ts +20 -0
- package/dist/package/browser/components/DetachedSurface.js +102 -0
- package/dist/package/browser/components/DockShell/DockPanelHost.d.ts +4 -0
- package/dist/package/browser/components/DockShell/DockPanelHost.js +7 -0
- package/dist/package/browser/components/DockShell/DockRegion.d.ts +7 -0
- package/dist/package/browser/components/DockShell/DockRegion.js +315 -0
- package/dist/package/browser/components/DockShell/DockShell.css +1018 -0
- package/dist/package/browser/components/DockShell/DockTab.d.ts +3 -0
- package/dist/package/browser/components/DockShell/DockTab.js +139 -0
- package/dist/package/browser/components/DockShell/ExtensionHostPanel.d.ts +9 -0
- package/dist/package/browser/components/DockShell/ExtensionHostPanel.js +68 -0
- package/dist/package/browser/components/DockShell/ExtensionRuntimeFrame.d.ts +14 -0
- package/dist/package/browser/components/DockShell/ExtensionRuntimeFrame.js +56 -0
- package/dist/package/browser/components/DockShell/PanelWindowingBoundary.d.ts +6 -0
- package/dist/package/browser/components/DockShell/PanelWindowingBoundary.js +9 -0
- package/dist/package/browser/components/DockShell/chatDockAnimation.d.ts +45 -0
- package/dist/package/browser/components/DockShell/chatDockAnimation.js +101 -0
- package/dist/package/browser/components/DockShell/chatDockFullscreen.d.ts +17 -0
- package/dist/package/browser/components/DockShell/chatDockFullscreen.js +22 -0
- package/dist/package/browser/components/DockShell/chatDockLayout.d.ts +10 -0
- package/dist/package/browser/components/DockShell/chatDockLayout.js +11 -0
- package/dist/package/browser/components/DockShell/compact-empty-dock-groups.d.ts +16 -0
- package/dist/package/browser/components/DockShell/compact-empty-dock-groups.js +28 -0
- package/dist/package/browser/components/DockShell/crossInstanceDrop.d.ts +1 -0
- package/dist/package/browser/components/DockShell/crossInstanceDrop.js +1 -0
- package/dist/package/browser/components/DockShell/dockResetEpoch.d.ts +2 -0
- package/dist/package/browser/components/DockShell/dockResetEpoch.js +13 -0
- package/dist/package/browser/components/DockShell/dockTitle.d.ts +12 -0
- package/dist/package/browser/components/DockShell/dockTitle.js +36 -0
- package/dist/package/browser/components/DockShell/dockviewRegistry.d.ts +1 -0
- package/dist/package/browser/components/DockShell/dockviewRegistry.js +1 -0
- package/dist/package/browser/components/DockShell/edgeDrawer.d.ts +24 -0
- package/dist/package/browser/components/DockShell/edgeDrawer.js +1144 -0
- package/dist/package/browser/components/DockShell/edgePinStore.d.ts +12 -0
- package/dist/package/browser/components/DockShell/edgePinStore.js +37 -0
- package/dist/package/browser/components/DockShell/extension-editor-bridge.d.ts +13 -0
- package/dist/package/browser/components/DockShell/extension-editor-bridge.js +100 -0
- package/dist/package/browser/components/DockShell/extension-runtime-selection.d.ts +8 -0
- package/dist/package/browser/components/DockShell/extension-runtime-selection.js +6 -0
- package/dist/package/browser/components/DockShell/extensionRuntime.d.ts +17 -0
- package/dist/package/browser/components/DockShell/extensionRuntime.js +84 -0
- package/dist/package/browser/components/DockShell/footer-panel-visibility.d.ts +7 -0
- package/dist/package/browser/components/DockShell/footer-panel-visibility.js +43 -0
- package/dist/package/browser/components/DockShell/footer-panels.d.ts +2 -0
- package/dist/package/browser/components/DockShell/footer-panels.js +7 -0
- package/dist/package/browser/components/DockShell/panelRegistry.d.ts +37 -0
- package/dist/package/browser/components/DockShell/panelRegistry.js +126 -0
- package/dist/package/browser/components/DockShell/panelRenderers.d.ts +325 -0
- package/dist/package/browser/components/DockShell/panelRenderers.js +25 -0
- package/dist/package/browser/components/DockShell/panelTabCommands.d.ts +18 -0
- package/dist/package/browser/components/DockShell/panelTabCommands.js +133 -0
- package/dist/package/browser/components/DockShell/panelWindowing.d.ts +32 -0
- package/dist/package/browser/components/DockShell/panelWindowing.js +42 -0
- package/dist/package/browser/components/DockShell/regions.d.ts +1 -0
- package/dist/package/browser/components/DockShell/regions.js +1 -0
- package/dist/package/browser/components/DockShell/resolveRegion.d.ts +1 -0
- package/dist/package/browser/components/DockShell/resolveRegion.js +1 -0
- package/dist/package/browser/components/DockShell/sanitizeDockLayout.d.ts +3 -0
- package/dist/package/browser/components/DockShell/sanitizeDockLayout.js +46 -0
- package/dist/package/browser/components/DockShell/sideEdgeMove.d.ts +1 -0
- package/dist/package/browser/components/DockShell/sideEdgeMove.js +1 -0
- package/dist/package/browser/components/DockShell/studioTabMenuProvider.d.ts +13 -0
- package/dist/package/browser/components/DockShell/studioTabMenuProvider.js +39 -0
- package/dist/package/browser/components/DockShell/tabContextMenu.d.ts +29 -0
- package/dist/package/browser/components/DockShell/tabContextMenu.js +68 -0
- package/dist/package/browser/components/DockShell/ueDrag/controller.d.ts +80 -0
- package/dist/package/browser/components/DockShell/ueDrag/controller.js +785 -0
- package/dist/package/browser/components/DockShell/ueDrag/geometry.d.ts +94 -0
- package/dist/package/browser/components/DockShell/ueDrag/geometry.js +217 -0
- package/dist/package/browser/components/DockShell/ueDrag/overlay.d.ts +32 -0
- package/dist/package/browser/components/DockShell/ueDrag/overlay.js +206 -0
- package/dist/package/browser/components/DockShell/ueDrag/ueDrag.css +199 -0
- package/dist/package/browser/components/DockShell/useAuxBarWidth.d.ts +5 -0
- package/dist/package/browser/components/DockShell/useAuxBarWidth.js +13 -0
- package/dist/package/browser/components/Drawer/DrawerHostView.css +143 -0
- package/dist/package/browser/components/Drawer/DrawerHostView.d.ts +19 -0
- package/dist/package/browser/components/Drawer/DrawerHostView.js +93 -0
- package/dist/package/browser/components/Drawer/DrawerLauncher.d.ts +12 -0
- package/dist/package/browser/components/Drawer/DrawerLauncher.js +22 -0
- package/dist/package/browser/components/Drawer/useDrawerStore.d.ts +15 -0
- package/dist/package/browser/components/Drawer/useDrawerStore.js +80 -0
- package/dist/package/browser/components/ErrorBoundary.d.ts +55 -0
- package/dist/package/browser/components/ErrorBoundary.js +131 -0
- package/dist/package/browser/components/ExtensionHost/ExtensionIframeHost.d.ts +28 -0
- package/dist/package/browser/components/ExtensionHost/ExtensionIframeHost.js +179 -0
- package/dist/package/browser/components/ExtensionHost/NativeExtensionHost.d.ts +14 -0
- package/dist/package/browser/components/ExtensionHost/NativeExtensionHost.js +152 -0
- package/dist/package/browser/components/Feedback/FeedbackPanel.css +640 -0
- package/dist/package/browser/components/Feedback/FeedbackPanel.d.ts +8 -0
- package/dist/package/browser/components/Feedback/FeedbackPanel.js +118 -0
- package/dist/package/browser/components/Feedback/PassiveFeedback.css +179 -0
- package/dist/package/browser/components/Feedback/PassiveFeedback.d.ts +2 -0
- package/dist/package/browser/components/Feedback/PassiveFeedback.js +218 -0
- package/dist/package/browser/components/Feedback/collect.d.ts +15 -0
- package/dist/package/browser/components/Feedback/collect.js +80 -0
- package/dist/package/browser/components/Feedback/store.d.ts +61 -0
- package/dist/package/browser/components/Feedback/store.js +174 -0
- package/dist/package/browser/components/LangSwitcher/LangSwitcher.css +78 -0
- package/dist/package/browser/components/LangSwitcher/LangSwitcher.d.ts +14 -0
- package/dist/package/browser/components/LangSwitcher/LangSwitcher.js +44 -0
- package/dist/package/browser/components/MainArea/ConsolePanel.d.ts +1 -0
- package/dist/package/browser/components/MainArea/ConsolePanel.js +16 -0
- package/dist/package/browser/components/MainArea/MainArea.css +2130 -0
- package/dist/package/browser/components/MainArea/MainArea.d.ts +2 -0
- package/dist/package/browser/components/MainArea/MainArea.js +20 -0
- package/dist/package/browser/components/MainArea/StandaloneExtensionIframe.d.ts +25 -0
- package/dist/package/browser/components/MainArea/StandaloneExtensionIframe.js +155 -0
- package/dist/package/browser/components/MainArea/SurfacePanels.d.ts +3 -0
- package/dist/package/browser/components/MainArea/SurfacePanels.js +27 -0
- package/dist/package/browser/components/MainArea/TelemetryViewer.css +122 -0
- package/dist/package/browser/components/MainArea/TelemetryViewer.d.ts +36 -0
- package/dist/package/browser/components/MainArea/TelemetryViewer.js +116 -0
- package/dist/package/browser/components/MenuBar/MenuBar.css +186 -0
- package/dist/package/browser/components/MenuBar/MenuBar.d.ts +27 -0
- package/dist/package/browser/components/MenuBar/MenuBar.js +286 -0
- package/dist/package/browser/components/MenuBar/index.d.ts +1 -0
- package/dist/package/browser/components/MenuBar/index.js +1 -0
- package/dist/package/browser/components/MenuBar/menubar-open-state.d.ts +8 -0
- package/dist/package/browser/components/MenuBar/menubar-open-state.js +11 -0
- package/dist/package/browser/components/MenuBar/menubar-surface.d.ts +30 -0
- package/dist/package/browser/components/MenuBar/menubar-surface.js +201 -0
- package/dist/package/browser/components/ModelPicker/index.d.ts +1 -0
- package/dist/package/browser/components/ModelPicker/index.js +1 -0
- package/dist/package/browser/components/ModelPicker/useModelCatalog.d.ts +22 -0
- package/dist/package/browser/components/ModelPicker/useModelCatalog.js +100 -0
- package/dist/package/browser/components/Onboarding/ConnectModelPrompt.d.ts +2 -0
- package/dist/package/browser/components/Onboarding/ConnectModelPrompt.js +40 -0
- package/dist/package/browser/components/Onboarding/Onboarding.css +232 -0
- package/dist/package/browser/components/Onboarding/OnboardingController.d.ts +10 -0
- package/dist/package/browser/components/Onboarding/OnboardingController.js +549 -0
- package/dist/package/browser/components/Onboarding/connect-selection.d.ts +17 -0
- package/dist/package/browser/components/Onboarding/connect-selection.js +18 -0
- package/dist/package/browser/components/Onboarding/home-transition.d.ts +9 -0
- package/dist/package/browser/components/Onboarding/home-transition.js +20 -0
- package/dist/package/browser/components/Onboarding/index.d.ts +4 -0
- package/dist/package/browser/components/Onboarding/index.js +3 -0
- package/dist/package/browser/components/Onboarding/prepareTourShell.d.ts +5 -0
- package/dist/package/browser/components/Onboarding/prepareTourShell.js +11 -0
- package/dist/package/browser/components/Onboarding/project-name.d.ts +17 -0
- package/dist/package/browser/components/Onboarding/project-name.js +29 -0
- package/dist/package/browser/components/Onboarding/types.d.ts +31 -0
- package/dist/package/browser/components/Onboarding/types.js +77 -0
- package/dist/package/browser/components/PageTabs/PageTabStrip.css +221 -0
- package/dist/package/browser/components/PageTabs/PageTabStrip.d.ts +3 -0
- package/dist/package/browser/components/PageTabs/PageTabStrip.js +214 -0
- package/dist/package/browser/components/PageTabs/openablePageTypes.d.ts +9 -0
- package/dist/package/browser/components/PageTabs/openablePageTypes.js +13 -0
- package/dist/package/browser/components/PanelShell/PanelShell.css +517 -0
- package/dist/package/browser/components/PanelShell/PanelShell.d.ts +7 -0
- package/dist/package/browser/components/PanelShell/PanelShell.js +459 -0
- package/dist/package/browser/components/Resize/ResizeHandle.d.ts +1 -0
- package/dist/package/browser/components/Resize/ResizeHandle.js +1 -0
- package/dist/package/browser/components/SceneBackground/SceneBackground.d.ts +2 -0
- package/dist/package/browser/components/SceneBackground/SceneBackground.js +5 -0
- package/dist/package/browser/components/SchemaForm/SchemaForm.css +138 -0
- package/dist/package/browser/components/SchemaForm/SchemaForm.d.ts +17 -0
- package/dist/package/browser/components/SchemaForm/SchemaForm.js +86 -0
- package/dist/package/browser/components/SchemaForm/schema-form-utils.d.ts +30 -0
- package/dist/package/browser/components/SchemaForm/schema-form-utils.js +51 -0
- package/dist/package/browser/components/SettingsPrimitives.d.ts +24 -0
- package/dist/package/browser/components/SettingsPrimitives.js +145 -0
- package/dist/package/browser/components/Sidebar/BusHealthLamp.d.ts +1 -0
- package/dist/package/browser/components/Sidebar/BusHealthLamp.js +72 -0
- package/dist/package/browser/components/Sidebar/FilesPanel.d.ts +1 -0
- package/dist/package/browser/components/Sidebar/FilesPanel.js +234 -0
- package/dist/package/browser/components/Sidebar/Sidebar.css +1393 -0
- package/dist/package/browser/components/Sidebar/Sidebar.d.ts +3 -0
- package/dist/package/browser/components/Sidebar/Sidebar.js +8 -0
- package/dist/package/browser/components/Sidebar/sidebar-types.d.ts +18 -0
- package/dist/package/browser/components/Sidebar/sidebar-types.js +1 -0
- package/dist/package/browser/components/SlotDebugOverlay/SlotDebugOverlay.d.ts +1 -0
- package/dist/package/browser/components/SlotDebugOverlay/SlotDebugOverlay.js +1 -0
- package/dist/package/browser/components/SlotDebugOverlay/hashHue.d.ts +1 -0
- package/dist/package/browser/components/SlotDebugOverlay/hashHue.js +1 -0
- package/dist/package/browser/components/SlotDebugOverlay/index.d.ts +1 -0
- package/dist/package/browser/components/SlotDebugOverlay/index.js +1 -0
- package/dist/package/browser/components/SlotDebugOverlay/isSlotDebugEnabled.d.ts +1 -0
- package/dist/package/browser/components/SlotDebugOverlay/isSlotDebugEnabled.js +1 -0
- package/dist/package/browser/components/StatusBar/FatalBanner.d.ts +25 -0
- package/dist/package/browser/components/StatusBar/FatalBanner.js +52 -0
- package/dist/package/browser/components/StatusBar/GlobalStatusBar.css +304 -0
- package/dist/package/browser/components/StatusBar/InfoPanel.css +174 -0
- package/dist/package/browser/components/StatusBar/InfoPanel.d.ts +19 -0
- package/dist/package/browser/components/StatusBar/InfoPanel.js +128 -0
- package/dist/package/browser/components/StatusBar/StatusChip.css +52 -0
- package/dist/package/browser/components/StatusBar/StatusChip.d.ts +40 -0
- package/dist/package/browser/components/StatusBar/StatusChip.js +13 -0
- package/dist/package/browser/components/StatusBar/StripHostView.d.ts +2 -0
- package/dist/package/browser/components/StatusBar/StripHostView.js +91 -0
- package/dist/package/browser/components/StatusBar/StripPopover.css +58 -0
- package/dist/package/browser/components/StatusBar/StripPopover.d.ts +16 -0
- package/dist/package/browser/components/StatusBar/StripPopover.js +15 -0
- package/dist/package/browser/components/StatusBar/feeds/PulseFeeds.d.ts +16 -0
- package/dist/package/browser/components/StatusBar/feeds/PulseFeeds.js +88 -0
- package/dist/package/browser/components/StatusBar/footer/CheckpointsDrawer.d.ts +4 -0
- package/dist/package/browser/components/StatusBar/footer/CheckpointsDrawer.js +77 -0
- package/dist/package/browser/components/StatusBar/footer/DiagnosticsPopover.d.ts +4 -0
- package/dist/package/browser/components/StatusBar/footer/DiagnosticsPopover.js +108 -0
- package/dist/package/browser/components/StatusBar/footer/EventsDrawer.d.ts +14 -0
- package/dist/package/browser/components/StatusBar/footer/EventsDrawer.js +25 -0
- package/dist/package/browser/components/StatusBar/footer/ForgeaxBuildPopover.d.ts +4 -0
- package/dist/package/browser/components/StatusBar/footer/ForgeaxBuildPopover.js +62 -0
- package/dist/package/browser/components/StatusBar/footer/footer.css +178 -0
- package/dist/package/browser/components/StatusBar/healthBridge.d.ts +38 -0
- package/dist/package/browser/components/StatusBar/healthBridge.js +245 -0
- package/dist/package/browser/components/StatusBar/healthStore.d.ts +80 -0
- package/dist/package/browser/components/StatusBar/healthStore.js +129 -0
- package/dist/package/browser/components/StatusBar/useStatusItem.d.ts +10 -0
- package/dist/package/browser/components/StatusBar/useStatusItem.js +35 -0
- package/dist/package/browser/components/Surfaces/SurfaceKeepAlive.css +34 -0
- package/dist/package/browser/components/Surfaces/SurfaceKeepAliveLayer.d.ts +3 -0
- package/dist/package/browser/components/Surfaces/SurfaceKeepAliveLayer.js +218 -0
- package/dist/package/browser/components/Surfaces/SurfaceOverlay.css +160 -0
- package/dist/package/browser/components/Surfaces/SurfaceOverlay.d.ts +9 -0
- package/dist/package/browser/components/Surfaces/SurfaceOverlay.js +144 -0
- package/dist/package/browser/components/TopBar/AndroidPackageDialog.d.ts +23 -0
- package/dist/package/browser/components/TopBar/AndroidPackageDialog.js +115 -0
- package/dist/package/browser/components/TopBar/FsBrowser.css +156 -0
- package/dist/package/browser/components/TopBar/FsBrowser.d.ts +8 -0
- package/dist/package/browser/components/TopBar/FsBrowser.js +93 -0
- package/dist/package/browser/components/TopBar/GameSwitcher.d.ts +29 -0
- package/dist/package/browser/components/TopBar/GameSwitcher.js +157 -0
- package/dist/package/browser/components/TopBar/IosPackageDialog.d.ts +23 -0
- package/dist/package/browser/components/TopBar/IosPackageDialog.js +115 -0
- package/dist/package/browser/components/TopBar/ProjectSwitcher.d.ts +3 -0
- package/dist/package/browser/components/TopBar/ProjectSwitcher.js +41 -0
- package/dist/package/browser/components/TopBar/PublishOnboarding.css +133 -0
- package/dist/package/browser/components/TopBar/PublishOnboarding.d.ts +10 -0
- package/dist/package/browser/components/TopBar/PublishOnboarding.js +144 -0
- package/dist/package/browser/components/TopBar/SessionSwitcher.d.ts +2 -0
- package/dist/package/browser/components/TopBar/SessionSwitcher.js +124 -0
- package/dist/package/browser/components/TopBar/TopBar.css +1672 -0
- package/dist/package/browser/components/TopBar/TopBar.d.ts +2 -0
- package/dist/package/browser/components/TopBar/TopBar.js +606 -0
- package/dist/package/browser/components/TopBar/publish-options.d.ts +20 -0
- package/dist/package/browser/components/TopBar/publish-options.js +28 -0
- package/dist/package/browser/components/TourOverlay/TourOverlay.css +122 -0
- package/dist/package/browser/components/TourOverlay/TourOverlay.d.ts +26 -0
- package/dist/package/browser/components/TourOverlay/TourOverlay.js +233 -0
- package/dist/package/browser/components/TourOverlay/index.d.ts +2 -0
- package/dist/package/browser/components/TourOverlay/index.js +1 -0
- package/dist/package/browser/components/ownership.d.ts +7 -0
- package/dist/package/browser/components/ownership.js +7 -0
- package/dist/package/browser/components/ui/SearchableMenu.css +143 -0
- package/dist/package/browser/components/ui/SearchableMenu.d.ts +30 -0
- package/dist/package/browser/components/ui/SearchableMenu.js +40 -0
- package/dist/package/browser/components/ui/alert-dialog.d.ts +20 -0
- package/dist/package/browser/components/ui/alert-dialog.js +38 -0
- package/dist/package/browser/components/ui/button.d.ts +11 -0
- package/dist/package/browser/components/ui/button.js +33 -0
- package/dist/package/browser/components/ui/checkbox.d.ts +4 -0
- package/dist/package/browser/components/ui/checkbox.js +8 -0
- package/dist/package/browser/components/ui/command.d.ts +74 -0
- package/dist/package/browser/components/ui/command.js +20 -0
- package/dist/package/browser/components/ui/dialog.d.ts +21 -0
- package/dist/package/browser/components/ui/dialog.js +34 -0
- package/dist/package/browser/components/ui/dropdown-menu.d.ts +18 -0
- package/dist/package/browser/components/ui/dropdown-menu.js +30 -0
- package/dist/package/browser/components/ui/input.d.ts +3 -0
- package/dist/package/browser/components/ui/input.js +8 -0
- package/dist/package/browser/components/ui/label.d.ts +4 -0
- package/dist/package/browser/components/ui/label.js +7 -0
- package/dist/package/browser/components/ui/popover.d.ts +7 -0
- package/dist/package/browser/components/ui/popover.js +10 -0
- package/dist/package/browser/components/ui/select.d.ts +11 -0
- package/dist/package/browser/components/ui/select.js +31 -0
- package/dist/package/browser/components/ui/tabs.d.ts +7 -0
- package/dist/package/browser/components/ui/tabs.js +12 -0
- package/dist/package/browser/components/ui/textarea.d.ts +3 -0
- package/dist/package/browser/components/ui/textarea.js +8 -0
- package/dist/package/browser/components/ui/tooltip.d.ts +7 -0
- package/dist/package/browser/components/ui/tooltip.js +10 -0
- package/dist/package/browser/core/app-shell/catalog-page-extensions.d.ts +28 -0
- package/dist/package/browser/core/app-shell/catalog-page-extensions.js +234 -0
- package/dist/package/browser/core/app-shell/derive-panel-renderers.d.ts +2 -0
- package/dist/package/browser/core/app-shell/derive-panel-renderers.js +17 -0
- package/dist/package/browser/core/app-shell/host.d.ts +31 -0
- package/dist/package/browser/core/app-shell/host.js +188 -0
- package/dist/package/browser/core/app-shell/index.d.ts +7 -0
- package/dist/package/browser/core/app-shell/index.js +8 -0
- package/dist/package/browser/core/app-shell/logger.d.ts +2 -0
- package/dist/package/browser/core/app-shell/logger.js +6 -0
- package/dist/package/browser/core/app-shell/ownership.d.ts +7 -0
- package/dist/package/browser/core/app-shell/ownership.js +7 -0
- package/dist/package/browser/core/app-shell/react/HostProvider.d.ts +10 -0
- package/dist/package/browser/core/app-shell/react/HostProvider.js +35 -0
- package/dist/package/browser/core/app-shell/surface-extension.d.ts +17 -0
- package/dist/package/browser/core/app-shell/surface-extension.js +33 -0
- package/dist/package/browser/core/app-shell/types.d.ts +176 -0
- package/dist/package/browser/core/app-shell/types.js +1 -0
- package/dist/package/browser/core/contextual-keybindings.d.ts +71 -0
- package/dist/package/browser/core/contextual-keybindings.js +198 -0
- package/dist/package/browser/core/extension-foundation/bus.d.ts +2 -0
- package/dist/package/browser/core/extension-foundation/bus.js +3 -0
- package/dist/package/browser/core/extension-foundation/capabilities.d.ts +2 -0
- package/dist/package/browser/core/extension-foundation/capabilities.js +3 -0
- package/dist/package/browser/core/extension-foundation/commands.d.ts +2 -0
- package/dist/package/browser/core/extension-foundation/commands.js +3 -0
- package/dist/package/browser/core/extension-foundation/context-keys.d.ts +2 -0
- package/dist/package/browser/core/extension-foundation/context-keys.js +3 -0
- package/dist/package/browser/core/extension-foundation/contribution-registry.d.ts +2 -0
- package/dist/package/browser/core/extension-foundation/contribution-registry.js +3 -0
- package/dist/package/browser/core/extension-foundation/errors.d.ts +2 -0
- package/dist/package/browser/core/extension-foundation/errors.js +3 -0
- package/dist/package/browser/core/extension-foundation/index.d.ts +8 -0
- package/dist/package/browser/core/extension-foundation/index.js +9 -0
- package/dist/package/browser/core/extension-foundation/loader.d.ts +2 -0
- package/dist/package/browser/core/extension-foundation/loader.js +3 -0
- package/dist/package/browser/core/extension-foundation/storage.d.ts +2 -0
- package/dist/package/browser/core/extension-foundation/storage.js +3 -0
- package/dist/package/browser/core/extension-foundation/types.d.ts +2 -0
- package/dist/package/browser/core/extension-foundation/types.js +1 -0
- package/dist/package/browser/core/extensions/builtin-commands.d.ts +2 -0
- package/dist/package/browser/core/extensions/builtin-commands.js +256 -0
- package/dist/package/browser/core/extensions/builtin-menus.d.ts +2 -0
- package/dist/package/browser/core/extensions/builtin-menus.js +252 -0
- package/dist/package/browser/core/extensions/chrome-drawer.d.ts +3 -0
- package/dist/package/browser/core/extensions/chrome-drawer.js +45 -0
- package/dist/package/browser/core/extensions/chrome-statusbar.d.ts +6 -0
- package/dist/package/browser/core/extensions/chrome-statusbar.js +26 -0
- package/dist/package/browser/core/extensions/detached-agents-browser.d.ts +3 -0
- package/dist/package/browser/core/extensions/detached-agents-browser.js +9 -0
- package/dist/package/browser/core/extensions/detached-files-browser.d.ts +3 -0
- package/dist/package/browser/core/extensions/detached-files-browser.js +6 -0
- package/dist/package/browser/core/extensions/editor-commands.d.ts +2 -0
- package/dist/package/browser/core/extensions/editor-commands.js +182 -0
- package/dist/package/browser/core/extensions/foundation-bus.d.ts +2 -0
- package/dist/package/browser/core/extensions/foundation-bus.js +3 -0
- package/dist/package/browser/core/extensions/foundation-commands.d.ts +2 -0
- package/dist/package/browser/core/extensions/foundation-commands.js +6 -0
- package/dist/package/browser/core/extensions/foundation-storage.d.ts +2 -0
- package/dist/package/browser/core/extensions/foundation-storage.js +3 -0
- package/dist/package/browser/core/extensions/host-commands.d.ts +18 -0
- package/dist/package/browser/core/extensions/host-commands.js +52 -0
- package/dist/package/browser/core/extensions/observability.d.ts +14 -0
- package/dist/package/browser/core/extensions/observability.js +18 -0
- package/dist/package/browser/core/extensions/panels-chat.d.ts +2 -0
- package/dist/package/browser/core/extensions/panels-chat.js +41 -0
- package/dist/package/browser/core/extensions/panels-editor.d.ts +8 -0
- package/dist/package/browser/core/extensions/panels-editor.js +26 -0
- package/dist/package/browser/core/extensions/panels-viewport.d.ts +2 -0
- package/dist/package/browser/core/extensions/panels-viewport.js +20 -0
- package/dist/package/browser/core/extensions/session-client.d.ts +29 -0
- package/dist/package/browser/core/extensions/session-client.js +42 -0
- package/dist/package/browser/core/extensions/slots-corner-agent-picker.d.ts +5 -0
- package/dist/package/browser/core/extensions/slots-corner-agent-picker.js +6 -0
- package/dist/package/browser/core/extensions/slots-main-area-body.d.ts +3 -0
- package/dist/package/browser/core/extensions/slots-main-area-body.js +6 -0
- package/dist/package/browser/core/extensions/slots-sidebar-agents.d.ts +3 -0
- package/dist/package/browser/core/extensions/slots-sidebar-agents.js +6 -0
- package/dist/package/browser/core/extensions/studio-domain-clients.d.ts +12 -0
- package/dist/package/browser/core/extensions/studio-domain-clients.js +15 -0
- package/dist/package/browser/core/extensions/surfaces-scene-editor.d.ts +3 -0
- package/dist/package/browser/core/extensions/surfaces-scene-editor.js +6 -0
- package/dist/package/browser/core/extensions/trajectory.d.ts +2 -0
- package/dist/package/browser/core/extensions/trajectory.js +50 -0
- package/dist/package/browser/core/page-navigation.d.ts +1 -0
- package/dist/package/browser/core/page-navigation.js +1 -0
- package/dist/package/browser/core/page-platform/activity.d.ts +4 -0
- package/dist/package/browser/core/page-platform/activity.js +46 -0
- package/dist/package/browser/core/page-platform/dockview-layout.d.ts +7 -0
- package/dist/package/browser/core/page-platform/dockview-layout.js +63 -0
- package/dist/package/browser/core/page-platform/index.d.ts +8 -0
- package/dist/package/browser/core/page-platform/index.js +8 -0
- package/dist/package/browser/core/page-platform/layout-store.d.ts +18 -0
- package/dist/package/browser/core/page-platform/layout-store.js +54 -0
- package/dist/package/browser/core/page-platform/page-dirty-probe.d.ts +1 -0
- package/dist/package/browser/core/page-platform/page-dirty-probe.js +4 -0
- package/dist/package/browser/core/page-platform/registry.d.ts +3 -0
- package/dist/package/browser/core/page-platform/registry.js +194 -0
- package/dist/package/browser/core/page-platform/resource-editor.d.ts +3 -0
- package/dist/package/browser/core/page-platform/resource-editor.js +74 -0
- package/dist/package/browser/core/page-platform/session.d.ts +10 -0
- package/dist/package/browser/core/page-platform/session.js +327 -0
- package/dist/package/browser/core/page-platform/types.d.ts +242 -0
- package/dist/package/browser/core/page-platform/types.js +10 -0
- package/dist/package/browser/core/panels/context-expression.d.ts +1 -0
- package/dist/package/browser/core/panels/context-expression.js +1 -0
- package/dist/package/browser/core/panels/drawer.d.ts +23 -0
- package/dist/package/browser/core/panels/drawer.js +1 -0
- package/dist/package/browser/core/panels/index.d.ts +7 -0
- package/dist/package/browser/core/panels/index.js +7 -0
- package/dist/package/browser/core/panels/panel-action-registry.d.ts +6 -0
- package/dist/package/browser/core/panels/panel-action-registry.js +62 -0
- package/dist/package/browser/core/panels/panel-control-registry.d.ts +6 -0
- package/dist/package/browser/core/panels/panel-control-registry.js +54 -0
- package/dist/package/browser/core/panels/resolve-panel-action-state.d.ts +10 -0
- package/dist/package/browser/core/panels/resolve-panel-action-state.js +9 -0
- package/dist/package/browser/core/panels/strip.d.ts +40 -0
- package/dist/package/browser/core/panels/strip.js +1 -0
- package/dist/package/browser/core/panels/types.d.ts +143 -0
- package/dist/package/browser/core/panels/types.js +1 -0
- package/dist/package/browser/i18n/index.d.ts +50 -0
- package/dist/package/browser/i18n/index.js +207 -0
- package/dist/package/browser/i18n/locales/en.json +1959 -0
- package/dist/package/browser/i18n/locales/zh.json +1959 -0
- package/dist/package/browser/index.d.ts +2 -0
- package/dist/package/browser/index.js +2 -0
- package/dist/package/browser/lib/a11y-summary.d.ts +17 -0
- package/dist/package/browser/lib/a11y-summary.js +66 -0
- package/dist/package/browser/lib/action-dom-discovery.d.ts +2 -0
- package/dist/package/browser/lib/action-dom-discovery.js +84 -0
- package/dist/package/browser/lib/action-registry.d.ts +94 -0
- package/dist/package/browser/lib/action-registry.js +210 -0
- package/dist/package/browser/lib/aegis.d.ts +40 -0
- package/dist/package/browser/lib/aegis.js +230 -0
- package/dist/package/browser/lib/agent-catalog-url.d.ts +9 -0
- package/dist/package/browser/lib/agent-catalog-url.js +24 -0
- package/dist/package/browser/lib/agent-cli-provider.d.ts +10 -0
- package/dist/package/browser/lib/agent-cli-provider.js +81 -0
- package/dist/package/browser/lib/ai-intents.d.ts +30 -0
- package/dist/package/browser/lib/ai-intents.js +52 -0
- package/dist/package/browser/lib/broadcast-stream.d.ts +17 -0
- package/dist/package/browser/lib/broadcast-stream.js +163 -0
- package/dist/package/browser/lib/browser-prefs-sync.d.ts +16 -0
- package/dist/package/browser/lib/browser-prefs-sync.js +151 -0
- package/dist/package/browser/lib/builtin-actions.d.ts +2 -0
- package/dist/package/browser/lib/builtin-actions.js +558 -0
- package/dist/package/browser/lib/bus.d.ts +25 -0
- package/dist/package/browser/lib/bus.js +71 -0
- package/dist/package/browser/lib/checkpoint-api.d.ts +54 -0
- package/dist/package/browser/lib/checkpoint-api.js +41 -0
- package/dist/package/browser/lib/cli-providers.d.ts +33 -0
- package/dist/package/browser/lib/cli-providers.js +61 -0
- package/dist/package/browser/lib/command-palette-store.d.ts +5 -0
- package/dist/package/browser/lib/command-palette-store.js +22 -0
- package/dist/package/browser/lib/composer-bridge.d.ts +103 -0
- package/dist/package/browser/lib/composer-bridge.js +448 -0
- package/dist/package/browser/lib/dashboard-api.d.ts +104 -0
- package/dist/package/browser/lib/dashboard-api.js +125 -0
- package/dist/package/browser/lib/deep-link-bus.d.ts +10 -0
- package/dist/package/browser/lib/deep-link-bus.js +35 -0
- package/dist/package/browser/lib/dialog.d.ts +40 -0
- package/dist/package/browser/lib/dialog.js +103 -0
- package/dist/package/browser/lib/editor-facts-bus.d.ts +27 -0
- package/dist/package/browser/lib/editor-facts-bus.js +25 -0
- package/dist/package/browser/lib/extension-api.d.ts +140 -0
- package/dist/package/browser/lib/extension-api.js +90 -0
- package/dist/package/browser/lib/file-activity-stream.d.ts +54 -0
- package/dist/package/browser/lib/file-activity-stream.js +123 -0
- package/dist/package/browser/lib/file-family.d.ts +15 -0
- package/dist/package/browser/lib/file-family.js +25 -0
- package/dist/package/browser/lib/game-templates.d.ts +7 -0
- package/dist/package/browser/lib/game-templates.js +15 -0
- package/dist/package/browser/lib/global-shortcuts.d.ts +121 -0
- package/dist/package/browser/lib/global-shortcuts.js +551 -0
- package/dist/package/browser/lib/logSink.d.ts +16 -0
- package/dist/package/browser/lib/logSink.js +128 -0
- package/dist/package/browser/lib/lucide-icon.d.ts +5 -0
- package/dist/package/browser/lib/lucide-icon.js +20 -0
- package/dist/package/browser/lib/menu-registry.d.ts +113 -0
- package/dist/package/browser/lib/menu-registry.js +197 -0
- package/dist/package/browser/lib/model-config.d.ts +89 -0
- package/dist/package/browser/lib/model-config.js +72 -0
- package/dist/package/browser/lib/model-prefs.d.ts +5 -0
- package/dist/package/browser/lib/model-prefs.js +53 -0
- package/dist/package/browser/lib/model-route/index.d.ts +81 -0
- package/dist/package/browser/lib/model-route/index.js +175 -0
- package/dist/package/browser/lib/narrative-copilot.d.ts +20 -0
- package/dist/package/browser/lib/narrative-copilot.js +105 -0
- package/dist/package/browser/lib/native-menu-bridge.d.ts +37 -0
- package/dist/package/browser/lib/native-menu-bridge.js +151 -0
- package/dist/package/browser/lib/page-tab-icons.d.ts +21 -0
- package/dist/package/browser/lib/page-tab-icons.js +64 -0
- package/dist/package/browser/lib/panel-tab-icons.d.ts +21 -0
- package/dist/package/browser/lib/panel-tab-icons.js +49 -0
- package/dist/package/browser/lib/passive-feedback.d.ts +50 -0
- package/dist/package/browser/lib/passive-feedback.js +171 -0
- package/dist/package/browser/lib/perception-stream.d.ts +27 -0
- package/dist/package/browser/lib/perception-stream.js +42 -0
- package/dist/package/browser/lib/platform/index.d.ts +14 -0
- package/dist/package/browser/lib/platform/index.js +13 -0
- package/dist/package/browser/lib/platform/runtime.d.ts +22 -0
- package/dist/package/browser/lib/platform/runtime.js +42 -0
- package/dist/package/browser/lib/platform/shell-adapter.d.ts +24 -0
- package/dist/package/browser/lib/platform/shell-adapter.js +74 -0
- package/dist/package/browser/lib/platform/surface-windowing.d.ts +4 -0
- package/dist/package/browser/lib/platform/surface-windowing.js +16 -0
- package/dist/package/browser/lib/platform/surface.d.ts +13 -0
- package/dist/package/browser/lib/platform/surface.js +27 -0
- package/dist/package/browser/lib/platform/use-surface-windowing.d.ts +1 -0
- package/dist/package/browser/lib/platform/use-surface-windowing.js +6 -0
- package/dist/package/browser/lib/platform/window-manager.d.ts +2 -0
- package/dist/package/browser/lib/platform/window-manager.js +82 -0
- package/dist/package/browser/lib/project-context.d.ts +4 -0
- package/dist/package/browser/lib/project-context.js +42 -0
- package/dist/package/browser/lib/project.d.ts +5 -0
- package/dist/package/browser/lib/project.js +8 -0
- package/dist/package/browser/lib/recent-games.d.ts +24 -0
- package/dist/package/browser/lib/recent-games.js +50 -0
- package/dist/package/browser/lib/repair-builtin-menus.d.ts +6 -0
- package/dist/package/browser/lib/repair-builtin-menus.js +18 -0
- package/dist/package/browser/lib/reply-language.d.ts +9 -0
- package/dist/package/browser/lib/reply-language.js +11 -0
- package/dist/package/browser/lib/resilient-polling.d.ts +9 -0
- package/dist/package/browser/lib/resilient-polling.js +16 -0
- package/dist/package/browser/lib/session-time.d.ts +8 -0
- package/dist/package/browser/lib/session-time.js +40 -0
- package/dist/package/browser/lib/shell-live-data.d.ts +12 -0
- package/dist/package/browser/lib/shell-live-data.js +66 -0
- package/dist/package/browser/lib/sse.d.ts +5 -0
- package/dist/package/browser/lib/sse.js +42 -0
- package/dist/package/browser/lib/storageKeys.d.ts +70 -0
- package/dist/package/browser/lib/storageKeys.js +89 -0
- package/dist/package/browser/lib/surface-store.d.ts +38 -0
- package/dist/package/browser/lib/surface-store.js +62 -0
- package/dist/package/browser/lib/surface.d.ts +56 -0
- package/dist/package/browser/lib/surface.js +225 -0
- package/dist/package/browser/lib/surfaceAnchors.d.ts +16 -0
- package/dist/package/browser/lib/surfaceAnchors.js +76 -0
- package/dist/package/browser/lib/surfaceKeepAliveLayout.d.ts +7 -0
- package/dist/package/browser/lib/surfaceKeepAliveLayout.js +12 -0
- package/dist/package/browser/lib/telemetry-test-prelude.d.ts +0 -0
- package/dist/package/browser/lib/telemetry-test-prelude.js +14 -0
- package/dist/package/browser/lib/text-edit-actions.d.ts +14 -0
- package/dist/package/browser/lib/text-edit-actions.js +184 -0
- package/dist/package/browser/lib/trace.d.ts +34 -0
- package/dist/package/browser/lib/trace.js +273 -0
- package/dist/package/browser/lib/trustedOrigins.d.ts +4 -0
- package/dist/package/browser/lib/trustedOrigins.js +36 -0
- package/dist/package/browser/lib/ui-action-highlight.d.ts +2 -0
- package/dist/package/browser/lib/ui-action-highlight.js +93 -0
- package/dist/package/browser/lib/ui-bridge.d.ts +2 -0
- package/dist/package/browser/lib/ui-bridge.js +224 -0
- package/dist/package/browser/lib/ui-screenshot.d.ts +31 -0
- package/dist/package/browser/lib/ui-screenshot.js +155 -0
- package/dist/package/browser/lib/ui-trajectory.d.ts +47 -0
- package/dist/package/browser/lib/ui-trajectory.js +99 -0
- package/dist/package/browser/lib/use-bus-snapshot.d.ts +3 -0
- package/dist/package/browser/lib/use-bus-snapshot.js +13 -0
- package/dist/package/browser/lib/use-extension-manifest.d.ts +19 -0
- package/dist/package/browser/lib/use-extension-manifest.js +67 -0
- package/dist/package/browser/lib/useConfirmToast.d.ts +26 -0
- package/dist/package/browser/lib/useConfirmToast.js +120 -0
- package/dist/package/browser/lib/utils.d.ts +2 -0
- package/dist/package/browser/lib/utils.js +5 -0
- package/dist/package/browser/lib/vag-action-bridge.d.ts +2 -0
- package/dist/package/browser/lib/vag-action-bridge.js +130 -0
- package/dist/package/browser/main.d.ts +1 -0
- package/dist/package/browser/main.js +157 -0
- package/dist/package/browser/store-parts/domain-clients.d.ts +149 -0
- package/dist/package/browser/store-parts/domain-clients.js +17 -0
- package/dist/package/browser/store-parts/observability.d.ts +4 -0
- package/dist/package/browser/store-parts/observability.js +35 -0
- package/dist/package/browser/store-parts/persistence.d.ts +40 -0
- package/dist/package/browser/store-parts/persistence.js +245 -0
- package/dist/package/browser/store-parts/session-client.d.ts +73 -0
- package/dist/package/browser/store-parts/session-client.js +17 -0
- package/dist/package/browser/store-parts/session-pick.d.ts +8 -0
- package/dist/package/browser/store-parts/session-pick.js +21 -0
- package/dist/package/browser/store-parts/shell.d.ts +5 -0
- package/dist/package/browser/store-parts/shell.js +37 -0
- package/dist/package/browser/store.d.ts +455 -0
- package/dist/package/browser/store.js +890 -0
- package/dist/package/browser/styles/forgeax-preview/agent-avatar.css +69 -0
- package/dist/package/browser/styles/forgeax-preview/aliases.css +21 -0
- package/dist/package/browser/styles/forgeax-preview/chat-popover.css +141 -0
- package/dist/package/browser/styles/forgeax-preview/chat-session.css +896 -0
- package/dist/package/browser/styles/forgeax-preview/composer-port.css +531 -0
- package/dist/package/browser/styles/forgeax-preview/design-tokens.css +25 -0
- package/dist/package/browser/styles/forgeax-preview/index.css +9 -0
- package/dist/package/browser/styles/forgeax-preview/scene-fx.css +117 -0
- package/dist/package/browser/styles/forgeax-preview/shell-layout.css +280 -0
- package/dist/package/browser/styles/forgeax-preview/shell-skin.css +128 -0
- package/dist/package/browser/styles/foundation.tokens.json +2755 -0
- package/dist/package/browser/styles/global.css +196 -0
- package/dist/package/browser/styles/motion.css +558 -0
- package/dist/package/browser/styles/plugin-token-bridge.css +19 -0
- package/dist/package/browser/styles/primitive.css +197 -0
- package/dist/package/browser/styles/semantic.tokens.json +1524 -0
- package/dist/package/browser/styles/tokens.css +304 -0
- package/dist/package/node/App.js +11 -0
- package/dist/package/node/ApplicationDetachedShell.js +10 -0
- package/dist/package/node/ApplicationShell.js +62 -0
- package/dist/package/node/app-kit.js +4 -0
- package/dist/package/node/appHostBootstrap.js +145 -0
- package/dist/package/node/application.js +64 -0
- package/dist/package/node/boot/SettingsSection.js +82 -0
- package/dist/package/node/boot/broadcast.js +32 -0
- package/dist/package/node/boot/driver.js +47 -0
- package/dist/package/node/boot/store.js +114 -0
- package/dist/package/node/boot/themes.js +21 -0
- package/dist/package/node/boot/types.js +30 -0
- package/dist/package/node/brand/BrandProvider.js +35 -0
- package/dist/package/node/brand/index.js +3 -0
- package/dist/package/node/brand/runtime.js +71 -0
- package/dist/package/node/brand/types.js +9 -0
- package/dist/package/node/components/ActivityRail/ActivityRail.js +164 -0
- package/dist/package/node/components/ActivityRail/activity-rail-model.js +144 -0
- package/dist/package/node/components/AgentAvatar/AgentAvatar.js +50 -0
- package/dist/package/node/components/BuildBadge/BuildBadge.js +279 -0
- package/dist/package/node/components/Bus/BusAdminPanel.js +1385 -0
- package/dist/package/node/components/Bus/CapabilityOverview.js +50 -0
- package/dist/package/node/components/ChatColumn/ChatColumn.js +18 -0
- package/dist/package/node/components/ChatColumn/SessionTabStrip.js +103 -0
- package/dist/package/node/components/ChatColumn/useChatWidth.js +13 -0
- package/dist/package/node/components/CommandPalette/CommandPalette.js +242 -0
- package/dist/package/node/components/Confirm/ConfirmDialog.js +113 -0
- package/dist/package/node/components/ContextMenu/ContextMenu.js +218 -0
- package/dist/package/node/components/ContextMenu/menuRegistry.js +152 -0
- package/dist/package/node/components/DetachedSurface.js +102 -0
- package/dist/package/node/components/DockShell/DockPanelHost.js +7 -0
- package/dist/package/node/components/DockShell/DockRegion.js +315 -0
- package/dist/package/node/components/DockShell/DockTab.js +139 -0
- package/dist/package/node/components/DockShell/ExtensionHostPanel.js +68 -0
- package/dist/package/node/components/DockShell/ExtensionRuntimeFrame.js +56 -0
- package/dist/package/node/components/DockShell/PanelWindowingBoundary.js +9 -0
- package/dist/package/node/components/DockShell/chatDockAnimation.js +101 -0
- package/dist/package/node/components/DockShell/chatDockFullscreen.js +22 -0
- package/dist/package/node/components/DockShell/chatDockLayout.js +11 -0
- package/dist/package/node/components/DockShell/compact-empty-dock-groups.js +28 -0
- package/dist/package/node/components/DockShell/crossInstanceDrop.js +1 -0
- package/dist/package/node/components/DockShell/dockResetEpoch.js +13 -0
- package/dist/package/node/components/DockShell/dockTitle.js +36 -0
- package/dist/package/node/components/DockShell/dockviewRegistry.js +1 -0
- package/dist/package/node/components/DockShell/edgeDrawer.js +1144 -0
- package/dist/package/node/components/DockShell/edgePinStore.js +37 -0
- package/dist/package/node/components/DockShell/extension-editor-bridge.js +100 -0
- package/dist/package/node/components/DockShell/extension-runtime-selection.js +6 -0
- package/dist/package/node/components/DockShell/extensionRuntime.js +84 -0
- package/dist/package/node/components/DockShell/footer-panel-visibility.js +43 -0
- package/dist/package/node/components/DockShell/footer-panels.js +7 -0
- package/dist/package/node/components/DockShell/panelRegistry.js +126 -0
- package/dist/package/node/components/DockShell/panelRenderers.js +25 -0
- package/dist/package/node/components/DockShell/panelTabCommands.js +133 -0
- package/dist/package/node/components/DockShell/panelWindowing.js +42 -0
- package/dist/package/node/components/DockShell/regions.js +1 -0
- package/dist/package/node/components/DockShell/resolveRegion.js +1 -0
- package/dist/package/node/components/DockShell/sanitizeDockLayout.js +46 -0
- package/dist/package/node/components/DockShell/sideEdgeMove.js +1 -0
- package/dist/package/node/components/DockShell/studioTabMenuProvider.js +39 -0
- package/dist/package/node/components/DockShell/tabContextMenu.js +68 -0
- package/dist/package/node/components/DockShell/ueDrag/controller.js +785 -0
- package/dist/package/node/components/DockShell/ueDrag/geometry.js +217 -0
- package/dist/package/node/components/DockShell/ueDrag/overlay.js +206 -0
- package/dist/package/node/components/DockShell/useAuxBarWidth.js +13 -0
- package/dist/package/node/components/Drawer/DrawerHostView.js +93 -0
- package/dist/package/node/components/Drawer/DrawerLauncher.js +22 -0
- package/dist/package/node/components/Drawer/useDrawerStore.js +80 -0
- package/dist/package/node/components/ErrorBoundary.js +131 -0
- package/dist/package/node/components/ExtensionHost/ExtensionIframeHost.js +179 -0
- package/dist/package/node/components/ExtensionHost/NativeExtensionHost.js +152 -0
- package/dist/package/node/components/Feedback/FeedbackPanel.js +118 -0
- package/dist/package/node/components/Feedback/PassiveFeedback.js +218 -0
- package/dist/package/node/components/Feedback/collect.js +80 -0
- package/dist/package/node/components/Feedback/store.js +174 -0
- package/dist/package/node/components/LangSwitcher/LangSwitcher.js +44 -0
- package/dist/package/node/components/MainArea/ConsolePanel.js +16 -0
- package/dist/package/node/components/MainArea/MainArea.js +20 -0
- package/dist/package/node/components/MainArea/StandaloneExtensionIframe.js +155 -0
- package/dist/package/node/components/MainArea/SurfacePanels.js +27 -0
- package/dist/package/node/components/MainArea/TelemetryViewer.js +116 -0
- package/dist/package/node/components/MenuBar/MenuBar.js +286 -0
- package/dist/package/node/components/MenuBar/index.js +1 -0
- package/dist/package/node/components/MenuBar/menubar-open-state.js +11 -0
- package/dist/package/node/components/MenuBar/menubar-surface.js +201 -0
- package/dist/package/node/components/ModelPicker/index.js +1 -0
- package/dist/package/node/components/ModelPicker/useModelCatalog.js +100 -0
- package/dist/package/node/components/Onboarding/ConnectModelPrompt.js +40 -0
- package/dist/package/node/components/Onboarding/OnboardingController.js +549 -0
- package/dist/package/node/components/Onboarding/connect-selection.js +18 -0
- package/dist/package/node/components/Onboarding/home-transition.js +20 -0
- package/dist/package/node/components/Onboarding/index.js +3 -0
- package/dist/package/node/components/Onboarding/prepareTourShell.js +11 -0
- package/dist/package/node/components/Onboarding/project-name.js +29 -0
- package/dist/package/node/components/Onboarding/types.js +77 -0
- package/dist/package/node/components/PageTabs/PageTabStrip.js +214 -0
- package/dist/package/node/components/PageTabs/openablePageTypes.js +13 -0
- package/dist/package/node/components/PanelShell/PanelShell.js +459 -0
- package/dist/package/node/components/Resize/ResizeHandle.js +1 -0
- package/dist/package/node/components/SceneBackground/SceneBackground.js +5 -0
- package/dist/package/node/components/SchemaForm/SchemaForm.js +86 -0
- package/dist/package/node/components/SchemaForm/schema-form-utils.js +51 -0
- package/dist/package/node/components/SettingsPrimitives.js +145 -0
- package/dist/package/node/components/Sidebar/BusHealthLamp.js +72 -0
- package/dist/package/node/components/Sidebar/FilesPanel.js +234 -0
- package/dist/package/node/components/Sidebar/Sidebar.js +8 -0
- package/dist/package/node/components/Sidebar/sidebar-types.js +1 -0
- package/dist/package/node/components/SlotDebugOverlay/SlotDebugOverlay.js +1 -0
- package/dist/package/node/components/SlotDebugOverlay/hashHue.js +1 -0
- package/dist/package/node/components/SlotDebugOverlay/index.js +1 -0
- package/dist/package/node/components/SlotDebugOverlay/isSlotDebugEnabled.js +1 -0
- package/dist/package/node/components/StatusBar/FatalBanner.js +52 -0
- package/dist/package/node/components/StatusBar/InfoPanel.js +128 -0
- package/dist/package/node/components/StatusBar/StatusChip.js +13 -0
- package/dist/package/node/components/StatusBar/StripHostView.js +91 -0
- package/dist/package/node/components/StatusBar/StripPopover.js +15 -0
- package/dist/package/node/components/StatusBar/feeds/PulseFeeds.js +88 -0
- package/dist/package/node/components/StatusBar/footer/CheckpointsDrawer.js +77 -0
- package/dist/package/node/components/StatusBar/footer/DiagnosticsPopover.js +108 -0
- package/dist/package/node/components/StatusBar/footer/EventsDrawer.js +25 -0
- package/dist/package/node/components/StatusBar/footer/ForgeaxBuildPopover.js +62 -0
- package/dist/package/node/components/StatusBar/healthBridge.js +245 -0
- package/dist/package/node/components/StatusBar/healthStore.js +129 -0
- package/dist/package/node/components/StatusBar/useStatusItem.js +35 -0
- package/dist/package/node/components/Surfaces/SurfaceKeepAliveLayer.js +218 -0
- package/dist/package/node/components/Surfaces/SurfaceOverlay.js +144 -0
- package/dist/package/node/components/TopBar/AndroidPackageDialog.js +115 -0
- package/dist/package/node/components/TopBar/FsBrowser.js +93 -0
- package/dist/package/node/components/TopBar/GameSwitcher.js +157 -0
- package/dist/package/node/components/TopBar/IosPackageDialog.js +115 -0
- package/dist/package/node/components/TopBar/ProjectSwitcher.js +41 -0
- package/dist/package/node/components/TopBar/PublishOnboarding.js +144 -0
- package/dist/package/node/components/TopBar/SessionSwitcher.js +124 -0
- package/dist/package/node/components/TopBar/TopBar.js +606 -0
- package/dist/package/node/components/TopBar/publish-options.js +28 -0
- package/dist/package/node/components/TourOverlay/TourOverlay.js +233 -0
- package/dist/package/node/components/TourOverlay/index.js +1 -0
- package/dist/package/node/components/ownership.js +7 -0
- package/dist/package/node/components/ui/SearchableMenu.js +40 -0
- package/dist/package/node/components/ui/alert-dialog.js +38 -0
- package/dist/package/node/components/ui/button.js +33 -0
- package/dist/package/node/components/ui/checkbox.js +8 -0
- package/dist/package/node/components/ui/command.js +20 -0
- package/dist/package/node/components/ui/dialog.js +34 -0
- package/dist/package/node/components/ui/dropdown-menu.js +30 -0
- package/dist/package/node/components/ui/input.js +8 -0
- package/dist/package/node/components/ui/label.js +7 -0
- package/dist/package/node/components/ui/popover.js +10 -0
- package/dist/package/node/components/ui/select.js +31 -0
- package/dist/package/node/components/ui/tabs.js +12 -0
- package/dist/package/node/components/ui/textarea.js +8 -0
- package/dist/package/node/components/ui/tooltip.js +10 -0
- package/dist/package/node/core/app-shell/catalog-page-extensions.js +234 -0
- package/dist/package/node/core/app-shell/derive-panel-renderers.js +17 -0
- package/dist/package/node/core/app-shell/host.js +188 -0
- package/dist/package/node/core/app-shell/index.js +8 -0
- package/dist/package/node/core/app-shell/logger.js +6 -0
- package/dist/package/node/core/app-shell/ownership.js +7 -0
- package/dist/package/node/core/app-shell/react/HostProvider.js +35 -0
- package/dist/package/node/core/app-shell/surface-extension.js +33 -0
- package/dist/package/node/core/app-shell/types.js +1 -0
- package/dist/package/node/core/contextual-keybindings.js +198 -0
- package/dist/package/node/core/extension-foundation/bus.js +3 -0
- package/dist/package/node/core/extension-foundation/capabilities.js +3 -0
- package/dist/package/node/core/extension-foundation/commands.js +3 -0
- package/dist/package/node/core/extension-foundation/context-keys.js +3 -0
- package/dist/package/node/core/extension-foundation/contribution-registry.js +3 -0
- package/dist/package/node/core/extension-foundation/errors.js +3 -0
- package/dist/package/node/core/extension-foundation/index.js +9 -0
- package/dist/package/node/core/extension-foundation/loader.js +3 -0
- package/dist/package/node/core/extension-foundation/storage.js +3 -0
- package/dist/package/node/core/extension-foundation/types.js +1 -0
- package/dist/package/node/core/extensions/builtin-commands.js +256 -0
- package/dist/package/node/core/extensions/builtin-menus.js +252 -0
- package/dist/package/node/core/extensions/chrome-drawer.js +45 -0
- package/dist/package/node/core/extensions/chrome-statusbar.js +26 -0
- package/dist/package/node/core/extensions/detached-agents-browser.js +9 -0
- package/dist/package/node/core/extensions/detached-files-browser.js +6 -0
- package/dist/package/node/core/extensions/editor-commands.js +182 -0
- package/dist/package/node/core/extensions/foundation-bus.js +3 -0
- package/dist/package/node/core/extensions/foundation-commands.js +6 -0
- package/dist/package/node/core/extensions/foundation-storage.js +3 -0
- package/dist/package/node/core/extensions/host-commands.js +52 -0
- package/dist/package/node/core/extensions/observability.js +18 -0
- package/dist/package/node/core/extensions/panels-chat.js +41 -0
- package/dist/package/node/core/extensions/panels-editor.js +26 -0
- package/dist/package/node/core/extensions/panels-viewport.js +20 -0
- package/dist/package/node/core/extensions/session-client.js +42 -0
- package/dist/package/node/core/extensions/slots-corner-agent-picker.js +6 -0
- package/dist/package/node/core/extensions/slots-main-area-body.js +6 -0
- package/dist/package/node/core/extensions/slots-sidebar-agents.js +6 -0
- package/dist/package/node/core/extensions/studio-domain-clients.js +15 -0
- package/dist/package/node/core/extensions/surfaces-scene-editor.js +6 -0
- package/dist/package/node/core/extensions/trajectory.js +50 -0
- package/dist/package/node/core/page-navigation.js +1 -0
- package/dist/package/node/core/page-platform/activity.js +46 -0
- package/dist/package/node/core/page-platform/dockview-layout.js +63 -0
- package/dist/package/node/core/page-platform/index.js +8 -0
- package/dist/package/node/core/page-platform/layout-store.js +54 -0
- package/dist/package/node/core/page-platform/page-dirty-probe.js +4 -0
- package/dist/package/node/core/page-platform/registry.js +194 -0
- package/dist/package/node/core/page-platform/resource-editor.js +74 -0
- package/dist/package/node/core/page-platform/session.js +327 -0
- package/dist/package/node/core/page-platform/types.js +10 -0
- package/dist/package/node/core/panels/context-expression.js +1 -0
- package/dist/package/node/core/panels/drawer.js +1 -0
- package/dist/package/node/core/panels/index.js +7 -0
- package/dist/package/node/core/panels/panel-action-registry.js +62 -0
- package/dist/package/node/core/panels/panel-control-registry.js +54 -0
- package/dist/package/node/core/panels/resolve-panel-action-state.js +9 -0
- package/dist/package/node/core/panels/strip.js +1 -0
- package/dist/package/node/core/panels/types.js +1 -0
- package/dist/package/node/i18n/index.js +207 -0
- package/dist/package/node/i18n/locales/en.json +1959 -0
- package/dist/package/node/i18n/locales/zh.json +1959 -0
- package/dist/package/node/index.js +2 -0
- package/dist/package/node/lib/a11y-summary.js +66 -0
- package/dist/package/node/lib/action-dom-discovery.js +84 -0
- package/dist/package/node/lib/action-registry.js +210 -0
- package/dist/package/node/lib/aegis.js +230 -0
- package/dist/package/node/lib/agent-catalog-url.js +24 -0
- package/dist/package/node/lib/agent-cli-provider.js +81 -0
- package/dist/package/node/lib/ai-intents.js +52 -0
- package/dist/package/node/lib/broadcast-stream.js +163 -0
- package/dist/package/node/lib/browser-prefs-sync.js +151 -0
- package/dist/package/node/lib/builtin-actions.js +558 -0
- package/dist/package/node/lib/bus.js +71 -0
- package/dist/package/node/lib/checkpoint-api.js +41 -0
- package/dist/package/node/lib/cli-providers.js +61 -0
- package/dist/package/node/lib/command-palette-store.js +22 -0
- package/dist/package/node/lib/composer-bridge.js +448 -0
- package/dist/package/node/lib/dashboard-api.js +125 -0
- package/dist/package/node/lib/deep-link-bus.js +35 -0
- package/dist/package/node/lib/dialog.js +103 -0
- package/dist/package/node/lib/editor-facts-bus.js +25 -0
- package/dist/package/node/lib/extension-api.js +90 -0
- package/dist/package/node/lib/file-activity-stream.js +123 -0
- package/dist/package/node/lib/file-family.js +25 -0
- package/dist/package/node/lib/game-templates.js +15 -0
- package/dist/package/node/lib/global-shortcuts.js +551 -0
- package/dist/package/node/lib/logSink.js +128 -0
- package/dist/package/node/lib/lucide-icon.js +20 -0
- package/dist/package/node/lib/menu-registry.js +197 -0
- package/dist/package/node/lib/model-config.js +72 -0
- package/dist/package/node/lib/model-prefs.js +53 -0
- package/dist/package/node/lib/model-route/index.js +175 -0
- package/dist/package/node/lib/narrative-copilot.js +105 -0
- package/dist/package/node/lib/native-menu-bridge.js +151 -0
- package/dist/package/node/lib/page-tab-icons.js +64 -0
- package/dist/package/node/lib/panel-tab-icons.js +49 -0
- package/dist/package/node/lib/passive-feedback.js +171 -0
- package/dist/package/node/lib/perception-stream.js +42 -0
- package/dist/package/node/lib/platform/index.js +13 -0
- package/dist/package/node/lib/platform/runtime.js +42 -0
- package/dist/package/node/lib/platform/shell-adapter.js +74 -0
- package/dist/package/node/lib/platform/surface-windowing.js +16 -0
- package/dist/package/node/lib/platform/surface.js +27 -0
- package/dist/package/node/lib/platform/use-surface-windowing.js +6 -0
- package/dist/package/node/lib/platform/window-manager.js +82 -0
- package/dist/package/node/lib/project-context.js +42 -0
- package/dist/package/node/lib/project.js +8 -0
- package/dist/package/node/lib/recent-games.js +50 -0
- package/dist/package/node/lib/repair-builtin-menus.js +18 -0
- package/dist/package/node/lib/reply-language.js +11 -0
- package/dist/package/node/lib/resilient-polling.js +16 -0
- package/dist/package/node/lib/session-time.js +40 -0
- package/dist/package/node/lib/shell-live-data.js +66 -0
- package/dist/package/node/lib/sse.js +42 -0
- package/dist/package/node/lib/storageKeys.js +89 -0
- package/dist/package/node/lib/surface-store.js +62 -0
- package/dist/package/node/lib/surface.js +225 -0
- package/dist/package/node/lib/surfaceAnchors.js +76 -0
- package/dist/package/node/lib/surfaceKeepAliveLayout.js +12 -0
- package/dist/package/node/lib/telemetry-test-prelude.js +14 -0
- package/dist/package/node/lib/text-edit-actions.js +184 -0
- package/dist/package/node/lib/trace.js +273 -0
- package/dist/package/node/lib/trustedOrigins.js +36 -0
- package/dist/package/node/lib/ui-action-highlight.js +93 -0
- package/dist/package/node/lib/ui-bridge.js +224 -0
- package/dist/package/node/lib/ui-screenshot.js +155 -0
- package/dist/package/node/lib/ui-trajectory.js +99 -0
- package/dist/package/node/lib/use-bus-snapshot.js +13 -0
- package/dist/package/node/lib/use-extension-manifest.js +67 -0
- package/dist/package/node/lib/useConfirmToast.js +120 -0
- package/dist/package/node/lib/utils.js +5 -0
- package/dist/package/node/lib/vag-action-bridge.js +130 -0
- package/dist/package/node/main.js +157 -0
- package/dist/package/node/store-parts/domain-clients.js +17 -0
- package/dist/package/node/store-parts/observability.js +35 -0
- package/dist/package/node/store-parts/persistence.js +245 -0
- package/dist/package/node/store-parts/session-client.js +17 -0
- package/dist/package/node/store-parts/session-pick.js +21 -0
- package/dist/package/node/store-parts/shell.js +37 -0
- package/dist/package/node/store.js +890 -0
- package/dist/package/node/styles/foundation.tokens.json +2755 -0
- package/dist/package/node/styles/semantic.tokens.json +1524 -0
- package/dist/package/packages/design/styles/fx-bridge.css +25 -0
- package/dist/package/packages/design/styles/primitive.css +199 -0
- package/dist/package/packages/design/styles/semantic.css +262 -0
- package/dist/package/packages/design/theme.d.ts +15 -0
- package/dist/package/packages/design/theme.js +31 -0
- package/dist/package/packages/design/tokens.css +14 -0
- package/package.json +145 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Single source of truth for the Publish dropdown's option metadata.
|
|
2
|
+
//
|
|
3
|
+
// The same list drives three surfaces so their wording can never drift:
|
|
4
|
+
// 1. dropdown item `title` tooltip → doc.what
|
|
5
|
+
// 2. dropdown item subtitle (mi-sub) → doc.when
|
|
6
|
+
// 3. first-run coach-mark onboarding → doc.what + doc.when + hint
|
|
7
|
+
//
|
|
8
|
+
// Copy lives in i18n under `topbar.package.doc.<id>.*`; this file only owns the
|
|
9
|
+
// structural metadata (order, DOM anchor id, gray/coming-soon flag).
|
|
10
|
+
/** Ordered as they appear in the dropdown. `gray` items render but the tour skips them. */
|
|
11
|
+
export const PUBLISH_OPTIONS = [
|
|
12
|
+
{ id: 'web', kind: 'target', place: 'left' },
|
|
13
|
+
{ id: 'windows', kind: 'target', place: 'left' },
|
|
14
|
+
{ id: 'macos', kind: 'target', place: 'left' },
|
|
15
|
+
{ id: 'android', kind: 'target', place: 'left' },
|
|
16
|
+
{ id: 'ios', kind: 'target', place: 'left' },
|
|
17
|
+
{ id: 'cloud', kind: 'target', place: 'left', gray: true },
|
|
18
|
+
{ id: 'engine', kind: 'option', place: 'left' },
|
|
19
|
+
{ id: 'history', kind: 'tool', place: 'left' },
|
|
20
|
+
{ id: 'clean', kind: 'tool', place: 'left' },
|
|
21
|
+
];
|
|
22
|
+
/** Resolve the what/when copy for an option from i18n (falls back to empty). */
|
|
23
|
+
export function publishDoc(t, id) {
|
|
24
|
+
return {
|
|
25
|
+
what: t(`topbar.package.doc.${id}.what`),
|
|
26
|
+
when: t(`topbar.package.doc.${id}.when`),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/* TourOverlay — coach-mark guided tour over the live shell. The scrim is a
|
|
2
|
+
single full-viewport layer with a bright outline ring tracking the current
|
|
3
|
+
anchor; the coach card floats next to it. Tokens mirror the onboarding
|
|
4
|
+
prototype (accent = brand lime). */
|
|
5
|
+
|
|
6
|
+
.tour-root {
|
|
7
|
+
position: fixed;
|
|
8
|
+
inset: 0;
|
|
9
|
+
z-index: var(--z-toplevel, 99999);
|
|
10
|
+
pointer-events: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* Dim scrim with an optional rectangular hole punched out over the anchor
|
|
14
|
+
(clip-path). The ring is only the bright outline — it must not paint another
|
|
15
|
+
full-viewport dim, or the hole would look black again. */
|
|
16
|
+
.tour-scrim {
|
|
17
|
+
position: absolute;
|
|
18
|
+
inset: 0;
|
|
19
|
+
background: rgba(0, 0, 0, 0.55);
|
|
20
|
+
pointer-events: auto;
|
|
21
|
+
animation: tour-fade-in 0.15s ease-out;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Bright outline only — no box-shadow dim (scrim owns the dim + hole). */
|
|
25
|
+
.tour-ring {
|
|
26
|
+
position: absolute;
|
|
27
|
+
border-radius: 8px;
|
|
28
|
+
outline: 2px solid var(--primary, #d4ff48);
|
|
29
|
+
pointer-events: none;
|
|
30
|
+
transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Invisible click catcher over the spotlight hole (scrim is clipped away there). */
|
|
34
|
+
.tour-hole-sink {
|
|
35
|
+
position: absolute;
|
|
36
|
+
border-radius: 8px;
|
|
37
|
+
pointer-events: auto;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.tour-coach {
|
|
41
|
+
position: absolute;
|
|
42
|
+
z-index: 1;
|
|
43
|
+
max-width: 260px;
|
|
44
|
+
background: var(--bg-1, #191919);
|
|
45
|
+
border: 1px solid var(--primary, #d4ff48);
|
|
46
|
+
border-radius: 10px;
|
|
47
|
+
padding: 12px;
|
|
48
|
+
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
|
|
49
|
+
pointer-events: auto;
|
|
50
|
+
animation: tour-fade-in 0.15s ease-out;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.tour-coach-head {
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
gap: 8px;
|
|
57
|
+
margin-bottom: 8px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.tour-coach-count {
|
|
61
|
+
flex-shrink: 0;
|
|
62
|
+
font-size: 11px;
|
|
63
|
+
padding: 1px 7px;
|
|
64
|
+
border-radius: 999px;
|
|
65
|
+
background: rgba(212, 255, 72, 0.14);
|
|
66
|
+
color: var(--primary, #d4ff48);
|
|
67
|
+
border: 1px solid rgba(212, 255, 72, 0.35);
|
|
68
|
+
font-variant-numeric: tabular-nums;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.tour-coach-anchor {
|
|
72
|
+
font-size: 13px;
|
|
73
|
+
font-weight: 600;
|
|
74
|
+
color: var(--text-primary, #fff);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.tour-coach-body {
|
|
78
|
+
font-size: 12.5px;
|
|
79
|
+
line-height: 1.5;
|
|
80
|
+
color: var(--text-secondary, rgba(255, 255, 255, 0.62));
|
|
81
|
+
margin-bottom: 10px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.tour-coach-actions {
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
gap: 6px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.tour-btn {
|
|
91
|
+
display: inline-flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
padding: 5px 10px;
|
|
95
|
+
border-radius: 7px;
|
|
96
|
+
font-size: 12.5px;
|
|
97
|
+
font-weight: 500;
|
|
98
|
+
border: 1px solid var(--border, #404040);
|
|
99
|
+
background: transparent;
|
|
100
|
+
color: var(--text-primary, #fff);
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
}
|
|
103
|
+
.tour-btn:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
104
|
+
.tour-btn-ghost { border-color: transparent; color: var(--text-mute, rgba(255, 255, 255, 0.4)); }
|
|
105
|
+
.tour-btn-ghost:hover:not(:disabled) { color: var(--text-secondary, rgba(255, 255, 255, 0.62)); }
|
|
106
|
+
.tour-btn-primary {
|
|
107
|
+
background: var(--primary, #d4ff48);
|
|
108
|
+
color: var(--color-text-on-bright-primary, #000000);
|
|
109
|
+
border: none;
|
|
110
|
+
font-weight: 500;
|
|
111
|
+
}
|
|
112
|
+
.tour-btn-primary:hover:not(:disabled),
|
|
113
|
+
.tour-btn-primary:active:not(:disabled),
|
|
114
|
+
.tour-btn-primary:focus-visible:not(:disabled) {
|
|
115
|
+
background: var(--color-brand-primary-hover, var(--primary, #d4ff48));
|
|
116
|
+
color: var(--color-text-on-bright-primary, #000000);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@keyframes tour-fade-in {
|
|
120
|
+
from { opacity: 0; }
|
|
121
|
+
to { opacity: 1; }
|
|
122
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import './TourOverlay.css';
|
|
2
|
+
export interface TourStep {
|
|
3
|
+
/** Matches a `data-tour-id="<id>"` attribute somewhere in the shell. An array
|
|
4
|
+
* highlights the UNION of several anchors' rects — e.g. a multi-panel region
|
|
5
|
+
* like the left column (hierarchy + inspector) reads as one box. */
|
|
6
|
+
anchorId: string | string[];
|
|
7
|
+
/** Bold heading of the coach card. */
|
|
8
|
+
anchor: string;
|
|
9
|
+
/** Body copy. */
|
|
10
|
+
body: string;
|
|
11
|
+
}
|
|
12
|
+
export interface TourOverlayProps {
|
|
13
|
+
steps: TourStep[];
|
|
14
|
+
stepIndex: number;
|
|
15
|
+
onStepChange: (next: number) => void;
|
|
16
|
+
/** Called when the user finishes the last step or skips. `completed` is true
|
|
17
|
+
* only when advancing past the final step. */
|
|
18
|
+
onClose: (completed: boolean) => void;
|
|
19
|
+
labels: {
|
|
20
|
+
prev: string;
|
|
21
|
+
skip: string;
|
|
22
|
+
next: string;
|
|
23
|
+
done: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export declare function TourOverlay({ steps, stepIndex, onStepChange, onClose, labels }: TourOverlayProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// TourOverlay — a reusable coach-mark tour that highlights live shell elements
|
|
3
|
+
// by their `data-tour-id` attribute. Business-agnostic: the caller supplies the
|
|
4
|
+
// step list + copy; this component owns geometry, keyboard a11y, and focus.
|
|
5
|
+
//
|
|
6
|
+
// Anchor registry: elements opt in by rendering `data-tour-id="<id>"`. The
|
|
7
|
+
// overlay resolves each step's anchor with `querySelector`, tracks its
|
|
8
|
+
// bounding rect (recomputed on resize/scroll), paints a highlight ring, and
|
|
9
|
+
// floats the coach card on the side with the most room. Missing anchor →
|
|
10
|
+
// the card centers and the ring hides (tour still advances).
|
|
11
|
+
import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
12
|
+
import { createRestartableTimeoutTaskLifecycle, installViewportResizeObservation, installViewportScrollObservation, } from '@forgeax/app-shell/react';
|
|
13
|
+
import './TourOverlay.css';
|
|
14
|
+
const RING_PAD = 4;
|
|
15
|
+
const RING_OUTLINE = 2;
|
|
16
|
+
const COACH_GAP = 12;
|
|
17
|
+
const COACH_W = 260;
|
|
18
|
+
const COACH_H_EST = 150;
|
|
19
|
+
const VIEWPORT_PAD = 12;
|
|
20
|
+
function readOneRect(anchorId) {
|
|
21
|
+
const el = document.querySelector(`[data-tour-id="${CSS.escape(anchorId)}"]`);
|
|
22
|
+
if (!el)
|
|
23
|
+
return null;
|
|
24
|
+
// Panel anchors are out-of-flow zero-size markers (see panelRegistry.tourWrap):
|
|
25
|
+
// their own rect is empty, so measure the parent — the dockview content box
|
|
26
|
+
// that IS the panel's area. Other anchors (topbar regions, composer) are real
|
|
27
|
+
// elements measured directly.
|
|
28
|
+
const target = el.hasAttribute('data-tour-anchor-parent') ? el.parentElement : el;
|
|
29
|
+
if (!target)
|
|
30
|
+
return null;
|
|
31
|
+
const r = target.getBoundingClientRect();
|
|
32
|
+
if (r.width === 0 && r.height === 0)
|
|
33
|
+
return null;
|
|
34
|
+
return { top: r.top, left: r.left, width: r.width, height: r.height };
|
|
35
|
+
}
|
|
36
|
+
/** Bounding union of one or more anchors' rects. Missing / zero-size anchors are
|
|
37
|
+
* skipped, so a region spans whatever anchors are present (the left column =
|
|
38
|
+
* hierarchy + inspector highlights as a single box even if one is momentarily
|
|
39
|
+
* unlaid-out). Returns null only when NONE resolve — the coach then centers. */
|
|
40
|
+
function readAnchorRect(anchorIds) {
|
|
41
|
+
let top = Infinity;
|
|
42
|
+
let left = Infinity;
|
|
43
|
+
let right = -Infinity;
|
|
44
|
+
let bottom = -Infinity;
|
|
45
|
+
let found = false;
|
|
46
|
+
for (const id of anchorIds) {
|
|
47
|
+
const r = readOneRect(id);
|
|
48
|
+
if (!r)
|
|
49
|
+
continue;
|
|
50
|
+
found = true;
|
|
51
|
+
top = Math.min(top, r.top);
|
|
52
|
+
left = Math.min(left, r.left);
|
|
53
|
+
right = Math.max(right, r.left + r.width);
|
|
54
|
+
bottom = Math.max(bottom, r.top + r.height);
|
|
55
|
+
}
|
|
56
|
+
if (!found)
|
|
57
|
+
return null;
|
|
58
|
+
return { top, left, width: right - left, height: bottom - top };
|
|
59
|
+
}
|
|
60
|
+
/** Ring box = anchor grown by RING_PAD, then clamped inside the viewport. The
|
|
61
|
+
* 2px outline is painted OUTSIDE the box, so when an anchor hugs a viewport edge
|
|
62
|
+
* the raw ring (anchor - RING_PAD) spills off-screen and that side of the
|
|
63
|
+
* highlight disappears. Clamp each edge to keep the whole ring (incl. outline)
|
|
64
|
+
* visible. */
|
|
65
|
+
function ringBox(anchor) {
|
|
66
|
+
const vw = window.innerWidth;
|
|
67
|
+
const vh = window.innerHeight;
|
|
68
|
+
const min = RING_OUTLINE;
|
|
69
|
+
const top = Math.max(min, anchor.top - RING_PAD);
|
|
70
|
+
const left = Math.max(min, anchor.left - RING_PAD);
|
|
71
|
+
const bottom = Math.min(vh - min, anchor.top + anchor.height + RING_PAD);
|
|
72
|
+
const right = Math.min(vw - min, anchor.left + anchor.width + RING_PAD);
|
|
73
|
+
return { top, left, width: Math.max(0, right - left), height: Math.max(0, bottom - top) };
|
|
74
|
+
}
|
|
75
|
+
/** Choose a coach position (below → above → right → left → centered) that fits
|
|
76
|
+
* the viewport, then clamp inside it. `coachH` is the MEASURED card height (see
|
|
77
|
+
* the caller's layout effect) — using the real height, not a fixed estimate, is
|
|
78
|
+
* what makes a tall card flip cleanly ABOVE a bottom-edge anchor (e.g. the
|
|
79
|
+
* footer) instead of overflowing off-screen. */
|
|
80
|
+
function coachPosition(anchor, coachH) {
|
|
81
|
+
const vw = window.innerWidth;
|
|
82
|
+
const vh = window.innerHeight;
|
|
83
|
+
if (!anchor) {
|
|
84
|
+
return { top: Math.max(VIEWPORT_PAD, vh / 2 - coachH / 2), left: vw / 2 - COACH_W / 2 };
|
|
85
|
+
}
|
|
86
|
+
const belowTop = anchor.top + anchor.height + COACH_GAP;
|
|
87
|
+
const aboveTop = anchor.top - coachH - COACH_GAP;
|
|
88
|
+
let top;
|
|
89
|
+
let left;
|
|
90
|
+
if (belowTop + coachH <= vh - VIEWPORT_PAD) {
|
|
91
|
+
top = belowTop;
|
|
92
|
+
left = anchor.left + anchor.width / 2 - COACH_W / 2;
|
|
93
|
+
}
|
|
94
|
+
else if (aboveTop >= VIEWPORT_PAD) {
|
|
95
|
+
top = aboveTop;
|
|
96
|
+
left = anchor.left + anchor.width / 2 - COACH_W / 2;
|
|
97
|
+
}
|
|
98
|
+
else if (anchor.left + anchor.width + COACH_GAP + COACH_W <= vw - VIEWPORT_PAD) {
|
|
99
|
+
top = anchor.top;
|
|
100
|
+
left = anchor.left + anchor.width + COACH_GAP;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
top = anchor.top;
|
|
104
|
+
left = anchor.left - COACH_W - COACH_GAP;
|
|
105
|
+
}
|
|
106
|
+
top = Math.min(Math.max(VIEWPORT_PAD, top), vh - coachH - VIEWPORT_PAD);
|
|
107
|
+
left = Math.min(Math.max(VIEWPORT_PAD, left), vw - COACH_W - VIEWPORT_PAD);
|
|
108
|
+
return { top, left };
|
|
109
|
+
}
|
|
110
|
+
export function TourOverlay({ steps, stepIndex, onStepChange, onClose, labels }) {
|
|
111
|
+
const step = steps[stepIndex];
|
|
112
|
+
// Anchor id is the ONLY stable identity of a step: `steps`/`step` are rebuilt
|
|
113
|
+
// (new object refs) on every parent render because their copy comes from the
|
|
114
|
+
// i18n `t()` closure. Keying effects on the object would re-run them every
|
|
115
|
+
// render and reset the retry timer before it can fire — so key on this string.
|
|
116
|
+
// Stable string identity for effects: `steps`/`step` get new object refs on
|
|
117
|
+
// every parent render (i18n t() closure), and an array anchorId would be a new
|
|
118
|
+
// ref too — so key on the joined id string and rebuild the id list from it.
|
|
119
|
+
const anchorKey = Array.isArray(step?.anchorId)
|
|
120
|
+
? step.anchorId.join('|')
|
|
121
|
+
: (step?.anchorId ?? '');
|
|
122
|
+
const [anchorRect, setAnchorRect] = useState(null);
|
|
123
|
+
// Measured coach-card height. Body copy varies per step (short "chat" vs long
|
|
124
|
+
// "footer"), so a fixed estimate mis-clamps a tall card at a bottom-edge
|
|
125
|
+
// anchor. Seed with the estimate, then correct to the real height below.
|
|
126
|
+
const [coachH, setCoachH] = useState(COACH_H_EST);
|
|
127
|
+
const coachRef = useRef(null);
|
|
128
|
+
const isLast = stepIndex >= steps.length - 1;
|
|
129
|
+
const isFirst = stepIndex <= 0;
|
|
130
|
+
const recompute = useCallback(() => {
|
|
131
|
+
if (!anchorKey)
|
|
132
|
+
return;
|
|
133
|
+
setAnchorRect(readAnchorRect(anchorKey.split('|')));
|
|
134
|
+
}, [anchorKey]);
|
|
135
|
+
// Measure the current step's anchor, RETRYING until it has a real rect. The
|
|
136
|
+
// dockview panels (sidebar/preview/chat) lay out asynchronously after mount,
|
|
137
|
+
// so a one-shot measure on step 0 lands before the panel has a size → null →
|
|
138
|
+
// no ring (the classic "first step doesn't highlight" bug). Poll briefly until
|
|
139
|
+
// a non-zero rect appears, then stop; give up after ~1.2s (anchor genuinely
|
|
140
|
+
// absent → coach just centers).
|
|
141
|
+
useLayoutEffect(() => {
|
|
142
|
+
if (!anchorKey)
|
|
143
|
+
return;
|
|
144
|
+
let attempts = 0;
|
|
145
|
+
const retry = createRestartableTimeoutTaskLifecycle({ delayMs: 60, task: tick });
|
|
146
|
+
function tick() {
|
|
147
|
+
const rect = readAnchorRect(anchorKey.split('|'));
|
|
148
|
+
setAnchorRect(rect);
|
|
149
|
+
attempts += 1;
|
|
150
|
+
if (rect || attempts >= 20)
|
|
151
|
+
return;
|
|
152
|
+
retry.schedule();
|
|
153
|
+
}
|
|
154
|
+
tick();
|
|
155
|
+
return () => retry.dispose();
|
|
156
|
+
}, [anchorKey]);
|
|
157
|
+
// Measure the card's real height after it renders (before paint), so the next
|
|
158
|
+
// layout pass positions/clamps it with the true height. Only sets on change →
|
|
159
|
+
// converges in one extra pass (position doesn't affect the card's height).
|
|
160
|
+
useLayoutEffect(() => {
|
|
161
|
+
const h = coachRef.current?.offsetHeight ?? 0;
|
|
162
|
+
if (h > 0 && h !== coachH)
|
|
163
|
+
setCoachH(h);
|
|
164
|
+
}, [stepIndex, anchorRect, step?.body, coachH]);
|
|
165
|
+
useEffect(() => {
|
|
166
|
+
const onWin = () => recompute();
|
|
167
|
+
const disposeViewportResizeObservation = installViewportResizeObservation({
|
|
168
|
+
target: window,
|
|
169
|
+
onResize: onWin,
|
|
170
|
+
});
|
|
171
|
+
const disposeViewportScrollObservation = installViewportScrollObservation({
|
|
172
|
+
target: window,
|
|
173
|
+
onScroll: onWin,
|
|
174
|
+
});
|
|
175
|
+
return () => {
|
|
176
|
+
disposeViewportScrollObservation();
|
|
177
|
+
disposeViewportResizeObservation();
|
|
178
|
+
};
|
|
179
|
+
}, [recompute]);
|
|
180
|
+
const goNext = useCallback(() => {
|
|
181
|
+
if (isLast)
|
|
182
|
+
onClose(true);
|
|
183
|
+
else
|
|
184
|
+
onStepChange(stepIndex + 1);
|
|
185
|
+
}, [isLast, onClose, onStepChange, stepIndex]);
|
|
186
|
+
const goPrev = useCallback(() => {
|
|
187
|
+
if (!isFirst)
|
|
188
|
+
onStepChange(stepIndex - 1);
|
|
189
|
+
}, [isFirst, onStepChange, stepIndex]);
|
|
190
|
+
// Keyboard a11y: Esc skips, arrows/Enter navigate. Focus the coach on mount /
|
|
191
|
+
// step change so screen readers announce the new content and Tab is trapped.
|
|
192
|
+
useEffect(() => {
|
|
193
|
+
coachRef.current?.focus();
|
|
194
|
+
}, [stepIndex]);
|
|
195
|
+
if (!step)
|
|
196
|
+
return null;
|
|
197
|
+
const coach = coachPosition(anchorRect, coachH);
|
|
198
|
+
const ring = anchorRect ? ringBox(anchorRect) : null;
|
|
199
|
+
// evenodd polygon: full viewport minus the ring rect → dim everywhere except
|
|
200
|
+
// the highlighted panel (which stays undimmed).
|
|
201
|
+
const scrimClip = ring
|
|
202
|
+
? `polygon(evenodd, 0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%, ${ring.left}px ${ring.top}px, ${ring.left}px ${ring.top + ring.height}px, ${ring.left + ring.width}px ${ring.top + ring.height}px, ${ring.left + ring.width}px ${ring.top}px, ${ring.left}px ${ring.top}px)`
|
|
203
|
+
: undefined;
|
|
204
|
+
return (_jsxs("div", { className: "tour-root", role: "dialog", "aria-modal": "true", "aria-label": step.anchor, children: [_jsx("div", { className: "tour-scrim", style: scrimClip ? { clipPath: scrimClip } : undefined, onClick: (e) => e.stopPropagation() }), ring && (_jsxs(_Fragment, { children: [_jsx("div", { className: "tour-hole-sink", style: { top: ring.top, left: ring.left, width: ring.width, height: ring.height }, onClick: (e) => e.stopPropagation() }), _jsx("div", { className: "tour-ring", style: { top: ring.top, left: ring.left, width: ring.width, height: ring.height } })] })), _jsxs("div", { className: "tour-coach", ref: coachRef, tabIndex: -1, onKeyDown: (e) => {
|
|
205
|
+
if (e.key === 'Escape') {
|
|
206
|
+
e.preventDefault();
|
|
207
|
+
onClose(false);
|
|
208
|
+
}
|
|
209
|
+
else if (e.key === 'ArrowRight' || e.key === 'Enter') {
|
|
210
|
+
e.preventDefault();
|
|
211
|
+
goNext();
|
|
212
|
+
}
|
|
213
|
+
else if (e.key === 'ArrowLeft') {
|
|
214
|
+
e.preventDefault();
|
|
215
|
+
goPrev();
|
|
216
|
+
}
|
|
217
|
+
else if (e.key === 'Tab') {
|
|
218
|
+
const focusables = coachRef.current?.querySelectorAll('button:not(:disabled)');
|
|
219
|
+
if (!focusables || focusables.length === 0)
|
|
220
|
+
return;
|
|
221
|
+
const first = focusables[0];
|
|
222
|
+
const last = focusables[focusables.length - 1];
|
|
223
|
+
if (e.shiftKey && document.activeElement === first) {
|
|
224
|
+
e.preventDefault();
|
|
225
|
+
last.focus();
|
|
226
|
+
}
|
|
227
|
+
else if (!e.shiftKey && document.activeElement === last) {
|
|
228
|
+
e.preventDefault();
|
|
229
|
+
first.focus();
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}, style: { top: coach.top, left: coach.left, width: COACH_W }, children: [_jsxs("div", { className: "tour-coach-head", children: [_jsxs("span", { className: "tour-coach-count", children: [stepIndex + 1, " / ", steps.length] }), _jsx("span", { className: "tour-coach-anchor", children: step.anchor })] }), _jsx("div", { className: "tour-coach-body", children: step.body }), _jsxs("div", { className: "tour-coach-actions", children: [_jsx("button", { type: "button", className: "tour-btn tour-btn-ghost", onClick: goPrev, disabled: isFirst, children: labels.prev }), _jsx("div", { style: { flex: 1 } }), _jsx("button", { type: "button", className: "tour-btn tour-btn-ghost", onClick: () => onClose(false), children: labels.skip }), _jsx("button", { type: "button", className: "tour-btn tour-btn-primary", onClick: goNext, children: isLast ? labels.done : labels.next })] })] })] }));
|
|
233
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TourOverlay } from './TourOverlay';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const COMPONENT_OWNERSHIP: {
|
|
2
|
+
readonly source: "forgeax-interface";
|
|
3
|
+
readonly genericDestination: "@forgeax/app-shell";
|
|
4
|
+
readonly productOwner: "forgeax-ide";
|
|
5
|
+
readonly status: "migration-inventory";
|
|
6
|
+
readonly rule: "generic shell primitives migrate; domain UI stays with its product owner";
|
|
7
|
+
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/* UE-style searchable tool menu: dense rows, dark raised panel, search first. */
|
|
2
|
+
.fx-searchable-menu {
|
|
3
|
+
width: 360px;
|
|
4
|
+
max-width: calc(100vw - 16px);
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
padding: 6px 0 6px 6px !important;
|
|
7
|
+
border: 1px solid var(--color-border-default) !important;
|
|
8
|
+
border-radius: 6px !important;
|
|
9
|
+
background: var(--color-background-floating) !important;
|
|
10
|
+
color: var(--color-text-primary);
|
|
11
|
+
box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55) !important;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.fx-searchable-menu__command {
|
|
15
|
+
gap: 0;
|
|
16
|
+
background: transparent !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.fx-searchable-menu__command [cmdk-input-wrapper] {
|
|
20
|
+
height: 30px;
|
|
21
|
+
gap: 7px;
|
|
22
|
+
margin: 0 6px 5px 0;
|
|
23
|
+
padding: 0 9px;
|
|
24
|
+
border: 1px solid var(--color-border-subtle);
|
|
25
|
+
border-radius: 15px;
|
|
26
|
+
background: var(--color-background-canvas);
|
|
27
|
+
color: var(--color-text-tertiary);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.fx-searchable-menu__command [cmdk-input-wrapper]:focus-within {
|
|
31
|
+
border-color: var(--color-border-strong);
|
|
32
|
+
box-shadow: inset 0 0 0 1px var(--color-divider-default);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.fx-searchable-menu__command [cmdk-input-wrapper] > svg {
|
|
36
|
+
width: 14px;
|
|
37
|
+
height: 14px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.fx-searchable-menu__input {
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
height: 28px !important;
|
|
43
|
+
padding: 0 !important;
|
|
44
|
+
border: 0 !important;
|
|
45
|
+
border-radius: 0 !important;
|
|
46
|
+
outline: none !important;
|
|
47
|
+
box-shadow: none !important;
|
|
48
|
+
font-family: var(--font-sans);
|
|
49
|
+
font-size: 12px !important;
|
|
50
|
+
color: var(--color-text-primary) !important;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.fx-searchable-menu__list {
|
|
54
|
+
width: auto;
|
|
55
|
+
max-height: min(520px, calc(100vh - 100px)) !important;
|
|
56
|
+
margin-right: 0;
|
|
57
|
+
padding: 0 !important;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.fx-searchable-menu__group {
|
|
61
|
+
padding: 0 6px 0 0 !important;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.fx-searchable-menu__group [cmdk-group-heading] {
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
gap: 8px;
|
|
68
|
+
height: 20px;
|
|
69
|
+
padding: 0 3px !important;
|
|
70
|
+
color: var(--color-text-tertiary) !important;
|
|
71
|
+
font-family: var(--font-sans);
|
|
72
|
+
font-size: 9px !important;
|
|
73
|
+
font-weight: 500 !important;
|
|
74
|
+
letter-spacing: 0.08em !important;
|
|
75
|
+
text-transform: uppercase;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.fx-searchable-menu__group [cmdk-group-heading]::after {
|
|
79
|
+
content: '';
|
|
80
|
+
flex: 1 1 auto;
|
|
81
|
+
height: 1px;
|
|
82
|
+
background: var(--color-divider-default);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.fx-searchable-menu__item {
|
|
86
|
+
min-height: 28px;
|
|
87
|
+
gap: 8px !important;
|
|
88
|
+
padding: 4px 7px !important;
|
|
89
|
+
border-radius: 3px !important;
|
|
90
|
+
color: var(--color-text-primary);
|
|
91
|
+
font-family: var(--font-sans);
|
|
92
|
+
font-size: 12px !important;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.fx-searchable-menu__item[data-selected='true'] {
|
|
96
|
+
background: var(--color-interaction-selected-neutral) !important;
|
|
97
|
+
color: var(--color-text-primary) !important;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.fx-searchable-menu__icon {
|
|
101
|
+
width: 15px;
|
|
102
|
+
height: 15px;
|
|
103
|
+
flex: 0 0 auto;
|
|
104
|
+
color: var(--color-text-secondary);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.fx-searchable-menu__content {
|
|
108
|
+
display: flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
min-width: 0;
|
|
111
|
+
flex: 1 1 auto;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.fx-searchable-menu__label {
|
|
115
|
+
min-width: 0;
|
|
116
|
+
overflow: hidden;
|
|
117
|
+
flex: 1 1 auto;
|
|
118
|
+
text-overflow: ellipsis;
|
|
119
|
+
white-space: nowrap;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.fx-searchable-menu__description {
|
|
123
|
+
display: none;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.fx-searchable-menu__empty {
|
|
127
|
+
padding: 24px 8px !important;
|
|
128
|
+
color: var(--color-text-tertiary) !important;
|
|
129
|
+
font-size: 11px !important;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.fx-searchable-menu__separator {
|
|
133
|
+
margin: 3px 2px !important;
|
|
134
|
+
background: var(--color-divider-default) !important;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.fx-searchable-menu__footer {
|
|
138
|
+
margin: 5px 0 -6px -6px;
|
|
139
|
+
padding: 6px 9px;
|
|
140
|
+
border-top: 1px solid var(--color-divider-default);
|
|
141
|
+
color: var(--color-text-tertiary);
|
|
142
|
+
font-size: 9px;
|
|
143
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type ComponentType, type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
import './SearchableMenu.css';
|
|
3
|
+
export interface SearchableMenuItem {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
keywords?: readonly string[];
|
|
8
|
+
group?: string;
|
|
9
|
+
icon?: ComponentType<{
|
|
10
|
+
className?: string;
|
|
11
|
+
'aria-hidden'?: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
interface SearchableMenuProps {
|
|
16
|
+
trigger: ReactElement;
|
|
17
|
+
items: readonly SearchableMenuItem[];
|
|
18
|
+
onSelect: (item: SearchableMenuItem) => void;
|
|
19
|
+
searchPlaceholder: string;
|
|
20
|
+
emptyText: string;
|
|
21
|
+
ariaLabel: string;
|
|
22
|
+
className?: string;
|
|
23
|
+
footer?: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Shared UE-style searchable anchored menu. Popover owns focus/escape/collision;
|
|
27
|
+
* cmdk owns filtering and keyboard selection. Domain callers only provide data.
|
|
28
|
+
*/
|
|
29
|
+
export declare function SearchableMenu({ trigger, items, onSelect, searchPlaceholder, emptyText, ariaLabel, className, footer, }: SearchableMenuProps): ReactElement;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useState } from 'react';
|
|
3
|
+
import { cn } from '../../lib/utils';
|
|
4
|
+
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, } from './command';
|
|
5
|
+
import { Popover, PopoverContent, PopoverTrigger } from './popover';
|
|
6
|
+
// Component-owned UE menu skin; kept beside the reusable interaction primitive.
|
|
7
|
+
import './SearchableMenu.css';
|
|
8
|
+
/**
|
|
9
|
+
* Shared UE-style searchable anchored menu. Popover owns focus/escape/collision;
|
|
10
|
+
* cmdk owns filtering and keyboard selection. Domain callers only provide data.
|
|
11
|
+
*/
|
|
12
|
+
export function SearchableMenu({ trigger, items, onSelect, searchPlaceholder, emptyText, ariaLabel, className, footer, }) {
|
|
13
|
+
const [open, setOpen] = useState(false);
|
|
14
|
+
const [query, setQuery] = useState('');
|
|
15
|
+
const groups = useMemo(() => {
|
|
16
|
+
const grouped = new Map();
|
|
17
|
+
for (const item of items) {
|
|
18
|
+
const key = item.group ?? '';
|
|
19
|
+
const group = grouped.get(key);
|
|
20
|
+
if (group)
|
|
21
|
+
group.push(item);
|
|
22
|
+
else
|
|
23
|
+
grouped.set(key, [item]);
|
|
24
|
+
}
|
|
25
|
+
return [...grouped.entries()];
|
|
26
|
+
}, [items]);
|
|
27
|
+
const changeOpen = (next) => {
|
|
28
|
+
setOpen(next);
|
|
29
|
+
if (!next)
|
|
30
|
+
setQuery('');
|
|
31
|
+
};
|
|
32
|
+
return (_jsxs(Popover, { open: open, onOpenChange: changeOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: trigger }), _jsx(PopoverContent, { align: "start", sideOffset: 4, className: cn('fx-searchable-menu', className), children: _jsxs(Command, { className: "fx-searchable-menu__command", label: ariaLabel, children: [_jsx(CommandInput, { autoFocus: true, className: "fx-searchable-menu__input", value: query, onValueChange: setQuery, placeholder: searchPlaceholder }), _jsxs(CommandList, { className: "fx-searchable-menu__list", children: [_jsx(CommandEmpty, { className: "fx-searchable-menu__empty", children: emptyText }), groups.map(([group, groupItems], groupIndex) => (_jsxs("div", { children: [groupIndex > 0 && _jsx(CommandSeparator, { className: "fx-searchable-menu__separator" }), _jsx(CommandGroup, { className: "fx-searchable-menu__group", heading: group || undefined, children: groupItems.map((item) => {
|
|
33
|
+
const Icon = item.icon;
|
|
34
|
+
const value = [item.label, item.id, ...(item.keywords ?? [])].join(' ');
|
|
35
|
+
return (_jsxs(CommandItem, { className: "fx-searchable-menu__item", value: value, disabled: item.disabled, onSelect: () => {
|
|
36
|
+
onSelect(item);
|
|
37
|
+
changeOpen(false);
|
|
38
|
+
}, children: [Icon && _jsx(Icon, { className: "fx-searchable-menu__icon", "aria-hidden": true }), _jsxs("span", { className: "fx-searchable-menu__content", children: [_jsx("span", { className: "fx-searchable-menu__label", children: item.label }), item.description && (_jsx("span", { className: "fx-searchable-menu__description", children: item.description }))] })] }, item.id));
|
|
39
|
+
}) })] }, group || '__default')))] }), footer && _jsx("div", { className: "fx-searchable-menu__footer", children: footer })] }) })] }));
|
|
40
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
3
|
+
declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
4
|
+
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
6
|
+
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const AlertDialogHeader: {
|
|
9
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
declare const AlertDialogFooter: {
|
|
13
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
17
|
+
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
18
|
+
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|