@jingyi0605/codingns4dsh 0.2.1-beta.11 → 0.2.1-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +7 -5
- package/README.md +9 -5
- package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts +1 -1
- package/data/build/dist/bootstrap/index.d.ts +1 -1
- package/data/build/dist/client/account-bar.d.ts.map +1 -1
- package/data/build/dist/client/account-bar.js +24 -70
- package/data/build/dist/client/account-bar.js.map +1 -1
- package/data/build/dist/client/adapter-catalog-watch.d.ts +1 -1
- package/data/build/dist/client/adapter-catalog-watch.d.ts.map +1 -1
- package/data/build/dist/client/adapter-catalog-watch.js +2 -2
- package/data/build/dist/client/adapter-catalog-watch.js.map +1 -1
- package/data/build/dist/client/bundle.js +35978 -21117
- package/data/build/dist/client/bundle.js.map +1 -1
- package/data/build/dist/client/cli-management-dialog.d.ts +21 -0
- package/data/build/dist/client/cli-management-dialog.d.ts.map +1 -0
- package/data/build/dist/client/cli-management-dialog.js +215 -0
- package/data/build/dist/client/cli-management-dialog.js.map +1 -0
- package/data/build/dist/client/cli-management-terminal.d.ts +9 -0
- package/data/build/dist/client/cli-management-terminal.d.ts.map +1 -0
- package/data/build/dist/client/cli-management-terminal.js +30 -0
- package/data/build/dist/client/cli-management-terminal.js.map +1 -0
- package/data/build/dist/client/cli-settings-dialog.d.ts +9 -0
- package/data/build/dist/client/cli-settings-dialog.d.ts.map +1 -0
- package/data/build/dist/client/cli-settings-dialog.js +45 -0
- package/data/build/dist/client/cli-settings-dialog.js.map +1 -0
- package/data/build/dist/client/cli-settings-rpc.js +1 -1
- package/data/build/dist/client/cli-settings-rpc.js.map +1 -1
- package/data/build/dist/client/cli-slots.d.ts +7 -2
- package/data/build/dist/client/cli-slots.d.ts.map +1 -1
- package/data/build/dist/client/cli-slots.js +44 -12
- package/data/build/dist/client/cli-slots.js.map +1 -1
- package/data/build/dist/client/client.assistant-configuration-view.js +5 -5
- package/data/build/dist/client/client.assistant-configuration-view.js.map +1 -1
- package/data/build/dist/client/client.editor-engine.js +4 -1
- package/data/build/dist/client/client.editor-engine.js.map +1 -1
- package/data/build/dist/client/client.moss-voice-output.js +0 -166
- package/data/build/dist/client/client.moss-voice-output.js.map +1 -1
- package/data/build/dist/client/client.native-workspace-store.js +4 -4
- package/data/build/dist/client/client.native-workspace-store.js.map +1 -1
- package/data/build/dist/client/client.primitives-adapter.js +53 -0
- package/data/build/dist/client/client.primitives-adapter.js.map +1 -1
- package/data/build/dist/client/client.react-dom.js +166 -0
- package/data/build/dist/client/client.react-dom.js.map +1 -1
- package/data/build/dist/client/client.session-translation.js +25 -1
- package/data/build/dist/client/client.session-translation.js.map +1 -1
- package/data/build/dist/client/client.transport.js +503 -42
- package/data/build/dist/client/client.transport.js.map +1 -1
- package/data/build/dist/client/conversation-translation-settings.d.ts +11 -0
- package/data/build/dist/client/conversation-translation-settings.d.ts.map +1 -0
- package/data/build/dist/client/conversation-translation-settings.js +54 -0
- package/data/build/dist/client/conversation-translation-settings.js.map +1 -0
- package/data/build/dist/client/desktop-assistant.js +967 -479
- package/data/build/dist/client/editor-engine.d.ts +1 -1
- package/data/build/dist/client/editor-engine.d.ts.map +1 -1
- package/data/build/dist/client/editor-engine.js +4 -1
- package/data/build/dist/client/editor-engine.js.map +1 -1
- package/data/build/dist/client/features/cli-adapters.d.ts +3 -1
- package/data/build/dist/client/features/cli-adapters.d.ts.map +1 -1
- package/data/build/dist/client/features/cli-adapters.js +182 -106
- package/data/build/dist/client/features/cli-adapters.js.map +1 -1
- package/data/build/dist/client/features/file-management.d.ts.map +1 -1
- package/data/build/dist/client/features/file-management.js +2 -0
- package/data/build/dist/client/features/file-management.js.map +1 -1
- package/data/build/dist/client/features/index.d.ts.map +1 -1
- package/data/build/dist/client/features/index.js +2 -0
- package/data/build/dist/client/features/index.js.map +1 -1
- package/data/build/dist/client/features/peer-host.d.ts.map +1 -1
- package/data/build/dist/client/features/peer-host.js +3 -0
- package/data/build/dist/client/features/peer-host.js.map +1 -1
- package/data/build/dist/client/features/quick-apps.d.ts +3 -0
- package/data/build/dist/client/features/quick-apps.d.ts.map +1 -0
- package/data/build/dist/client/features/quick-apps.js +14 -0
- package/data/build/dist/client/features/quick-apps.js.map +1 -0
- package/data/build/dist/client/features/session-translation.d.ts.map +1 -1
- package/data/build/dist/client/features/session-translation.js +7 -1
- package/data/build/dist/client/features/session-translation.js.map +1 -1
- package/data/build/dist/client/html-workspace-files.d.ts +4 -0
- package/data/build/dist/client/html-workspace-files.d.ts.map +1 -0
- package/data/build/dist/client/html-workspace-files.js +114 -0
- package/data/build/dist/client/html-workspace-files.js.map +1 -0
- package/data/build/dist/client/locale.d.ts.map +1 -1
- package/data/build/dist/client/locale.js +6 -0
- package/data/build/dist/client/locale.js.map +1 -1
- package/data/build/dist/client/locales/cliManagement.d.ts +3 -0
- package/data/build/dist/client/locales/cliManagement.d.ts.map +1 -0
- package/data/build/dist/client/locales/cliManagement.js +139 -0
- package/data/build/dist/client/locales/cliManagement.js.map +1 -0
- package/data/build/dist/client/locales/fileWorkspace.d.ts.map +1 -1
- package/data/build/dist/client/locales/fileWorkspace.js +4 -0
- package/data/build/dist/client/locales/fileWorkspace.js.map +1 -1
- package/data/build/dist/client/locales/panels.d.ts.map +1 -1
- package/data/build/dist/client/locales/panels.js +46 -0
- package/data/build/dist/client/locales/panels.js.map +1 -1
- package/data/build/dist/client/locales/quickApps.d.ts +130 -0
- package/data/build/dist/client/locales/quickApps.d.ts.map +1 -0
- package/data/build/dist/client/locales/quickApps.js +150 -0
- package/data/build/dist/client/locales/quickApps.js.map +1 -0
- package/data/build/dist/client/native-model-translation-menu.d.ts.map +1 -1
- package/data/build/dist/client/native-model-translation-menu.js +3 -1
- package/data/build/dist/client/native-model-translation-menu.js.map +1 -1
- package/data/build/dist/client/quick-apps/client.d.ts +29 -0
- package/data/build/dist/client/quick-apps/client.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/client.js +68 -0
- package/data/build/dist/client/quick-apps/client.js.map +1 -0
- package/data/build/dist/client/quick-apps/document.d.ts +26 -0
- package/data/build/dist/client/quick-apps/document.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/document.js +110 -0
- package/data/build/dist/client/quick-apps/document.js.map +1 -0
- package/data/build/dist/client/quick-apps/file-picker.d.ts +14 -0
- package/data/build/dist/client/quick-apps/file-picker.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/file-picker.js +51 -0
- package/data/build/dist/client/quick-apps/file-picker.js.map +1 -0
- package/data/build/dist/client/quick-apps/launcher.d.ts +7 -0
- package/data/build/dist/client/quick-apps/launcher.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/launcher.js +252 -0
- package/data/build/dist/client/quick-apps/launcher.js.map +1 -0
- package/data/build/dist/client/quick-apps/presentation.d.ts +16 -0
- package/data/build/dist/client/quick-apps/presentation.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/presentation.js +31 -0
- package/data/build/dist/client/quick-apps/presentation.js.map +1 -0
- package/data/build/dist/client/quick-apps/reorder-animation.d.ts +6 -0
- package/data/build/dist/client/quick-apps/reorder-animation.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/reorder-animation.js +50 -0
- package/data/build/dist/client/quick-apps/reorder-animation.js.map +1 -0
- package/data/build/dist/client/quick-apps/reorder.d.ts +26 -0
- package/data/build/dist/client/quick-apps/reorder.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/reorder.js +128 -0
- package/data/build/dist/client/quick-apps/reorder.js.map +1 -0
- package/data/build/dist/client/quick-apps/styles.d.ts +3 -0
- package/data/build/dist/client/quick-apps/styles.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/styles.js +143 -0
- package/data/build/dist/client/quick-apps/styles.js.map +1 -0
- package/data/build/dist/client/quick-apps/ui.d.ts +20 -0
- package/data/build/dist/client/quick-apps/ui.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/ui.js +21 -0
- package/data/build/dist/client/quick-apps/ui.js.map +1 -0
- package/data/build/dist/client/quick-apps/viewer.d.ts +16 -0
- package/data/build/dist/client/quick-apps/viewer.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/viewer.js +155 -0
- package/data/build/dist/client/quick-apps/viewer.js.map +1 -0
- package/data/build/dist/client/quick-apps/workspace-picker.d.ts +19 -0
- package/data/build/dist/client/quick-apps/workspace-picker.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/workspace-picker.js +30 -0
- package/data/build/dist/client/quick-apps/workspace-picker.js.map +1 -0
- package/data/build/dist/client/session-translation-chat.d.ts +10 -4
- package/data/build/dist/client/session-translation-chat.d.ts.map +1 -1
- package/data/build/dist/client/session-translation-chat.js +154 -52
- package/data/build/dist/client/session-translation-chat.js.map +1 -1
- package/data/build/dist/client/session-translation-pending-dom.d.ts +1 -1
- package/data/build/dist/client/session-translation-pending-dom.d.ts.map +1 -1
- package/data/build/dist/client/session-translation-pending-dom.js +4 -4
- package/data/build/dist/client/session-translation-pending-dom.js.map +1 -1
- package/data/build/dist/client/session-translation-retry.d.ts +16 -0
- package/data/build/dist/client/session-translation-retry.d.ts.map +1 -0
- package/data/build/dist/client/session-translation-retry.js +66 -0
- package/data/build/dist/client/session-translation-retry.js.map +1 -0
- package/data/build/dist/client/session-translation-rules.d.ts +13 -0
- package/data/build/dist/client/session-translation-rules.d.ts.map +1 -0
- package/data/build/dist/client/session-translation-rules.js +58 -0
- package/data/build/dist/client/session-translation-rules.js.map +1 -0
- package/data/build/dist/client/sidebar-footer-style.d.ts +13 -0
- package/data/build/dist/client/sidebar-footer-style.d.ts.map +1 -0
- package/data/build/dist/client/sidebar-footer-style.js +54 -0
- package/data/build/dist/client/sidebar-footer-style.js.map +1 -0
- package/data/build/dist/client/style.css +276 -276
- package/data/build/dist/client/terminal/model.d.ts.map +1 -1
- package/data/build/dist/client/terminal/model.js +2 -1
- package/data/build/dist/client/terminal/model.js.map +1 -1
- package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.d.ts +4 -0
- package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.js +8 -0
- package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.d.ts.map +1 -1
- package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.js +4 -13
- package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.js.map +1 -1
- package/data/build/dist/dsh-capabilities/client/interaction-text-dom.js +1 -1
- package/data/build/dist/dsh-capabilities/client/interaction-text-dom.js.map +1 -1
- package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.d.ts +19 -0
- package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.js +39 -0
- package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts +18 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts.map +1 -1
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.js +21 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.js.map +1 -1
- package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.d.ts +18 -0
- package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.js +11 -0
- package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/session-performance-adapter.d.ts +8 -0
- package/data/build/dist/dsh-capabilities/client/session-performance-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/session-performance-adapter.js +100 -0
- package/data/build/dist/dsh-capabilities/client/session-performance-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.d.ts +3 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.js +22 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.d.ts +2 -0
- package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.d.ts.map +1 -1
- package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.js +28 -0
- package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.js.map +1 -1
- package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.d.ts +10 -0
- package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.js +34 -0
- package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/native-dispatch-adapter.d.ts +21 -0
- package/data/build/dist/dsh-capabilities/host/native-dispatch-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/native-dispatch-adapter.js +11 -0
- package/data/build/dist/dsh-capabilities/host/native-dispatch-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-credentials.d.ts +11 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-credentials.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-credentials.js +97 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-credentials.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.d.ts +36 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.js +164 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.d.ts +44 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.js +240 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.d.ts +37 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.js +35 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.d.ts +13 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.js +30 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.d.ts +21 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.js +132 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-transport.d.ts +10 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-transport.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-transport.js +33 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-transport.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-activation-adapter.d.ts +17 -0
- package/data/build/dist/dsh-capabilities/host/session-activation-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-activation-adapter.js +37 -0
- package/data/build/dist/dsh-capabilities/host/session-activation-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.d.ts +17 -0
- package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.js +45 -0
- package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-performance-adapter.d.ts +7 -0
- package/data/build/dist/dsh-capabilities/host/session-performance-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-performance-adapter.js +18 -0
- package/data/build/dist/dsh-capabilities/host/session-performance-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.d.ts +28 -0
- package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.js +31 -0
- package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.d.ts +13 -0
- package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.js +24 -0
- package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/matrix.d.ts.map +1 -1
- package/data/build/dist/dsh-capabilities/matrix.js +19 -5
- package/data/build/dist/dsh-capabilities/matrix.js.map +1 -1
- package/data/build/dist/dsh-capabilities/routes.d.ts +1 -0
- package/data/build/dist/dsh-capabilities/routes.d.ts.map +1 -1
- package/data/build/dist/dsh-capabilities/routes.js +41 -5
- package/data/build/dist/dsh-capabilities/routes.js.map +1 -1
- package/data/build/dist/dsh-capabilities/types.d.ts +1 -1
- package/data/build/dist/dsh-capabilities/types.d.ts.map +1 -1
- package/data/build/dist/dsh-capabilities/types.js.map +1 -1
- package/data/build/dist/host/cli-adapters/antigravity-driver.js +1 -1
- package/data/build/dist/host/cli-adapters/antigravity-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/attachment-utils.d.ts +4 -3
- package/data/build/dist/host/cli-adapters/attachment-utils.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/attachment-utils.js +9 -8
- package/data/build/dist/host/cli-adapters/attachment-utils.js.map +1 -1
- package/data/build/dist/host/cli-adapters/binary-detection.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/binary-detection.js +7 -3
- package/data/build/dist/host/cli-adapters/binary-detection.js.map +1 -1
- package/data/build/dist/host/cli-adapters/claude-driver.d.ts +1 -0
- package/data/build/dist/host/cli-adapters/claude-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/claude-driver.js +180 -21
- package/data/build/dist/host/cli-adapters/claude-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/codex-driver.d.ts +18 -0
- package/data/build/dist/host/cli-adapters/codex-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/codex-driver.js +97 -5
- package/data/build/dist/host/cli-adapters/codex-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/codex-performance-projection.d.ts +91 -0
- package/data/build/dist/host/cli-adapters/codex-performance-projection.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-performance-projection.js +8 -0
- package/data/build/dist/host/cli-adapters/codex-performance-projection.js.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-performance.d.ts +16 -0
- package/data/build/dist/host/cli-adapters/codex-performance.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-performance.js +81 -0
- package/data/build/dist/host/cli-adapters/codex-performance.js.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-driver.js +1 -1
- package/data/build/dist/host/cli-adapters/command-code-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/driver.d.ts +2 -0
- package/data/build/dist/host/cli-adapters/driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts +2 -0
- package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/dsh-message-projector.js +28 -7
- package/data/build/dist/host/cli-adapters/dsh-message-projector.js.map +1 -1
- package/data/build/dist/host/cli-adapters/feature.d.ts +2 -0
- package/data/build/dist/host/cli-adapters/feature.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/feature.js +186 -71
- package/data/build/dist/host/cli-adapters/feature.js.map +1 -1
- package/data/build/dist/host/cli-adapters/gemini-driver.js +1 -1
- package/data/build/dist/host/cli-adapters/gemini-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/grok-driver.d.ts +3 -0
- package/data/build/dist/host/cli-adapters/grok-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/grok-driver.js +277 -53
- package/data/build/dist/host/cli-adapters/grok-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/grok-performance-projection.d.ts +123 -0
- package/data/build/dist/host/cli-adapters/grok-performance-projection.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/grok-performance-projection.js +47 -0
- package/data/build/dist/host/cli-adapters/grok-performance-projection.js.map +1 -0
- package/data/build/dist/host/cli-adapters/grok-usage.d.ts +45 -0
- package/data/build/dist/host/cli-adapters/grok-usage.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/grok-usage.js +197 -0
- package/data/build/dist/host/cli-adapters/grok-usage.js.map +1 -0
- package/data/build/dist/host/cli-adapters/kimi-driver.js +2 -2
- package/data/build/dist/host/cli-adapters/kimi-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/management-installation.d.ts +5 -0
- package/data/build/dist/host/cli-adapters/management-installation.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/management-installation.js +131 -0
- package/data/build/dist/host/cli-adapters/management-installation.js.map +1 -0
- package/data/build/dist/host/cli-adapters/management-methods.d.ts +32 -0
- package/data/build/dist/host/cli-adapters/management-methods.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/management-methods.js +135 -0
- package/data/build/dist/host/cli-adapters/management-methods.js.map +1 -0
- package/data/build/dist/host/cli-adapters/management-process.d.ts +7 -0
- package/data/build/dist/host/cli-adapters/management-process.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/management-process.js +51 -0
- package/data/build/dist/host/cli-adapters/management-process.js.map +1 -0
- package/data/build/dist/host/cli-adapters/management.d.ts +32 -0
- package/data/build/dist/host/cli-adapters/management.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/management.js +172 -0
- package/data/build/dist/host/cli-adapters/management.js.map +1 -0
- package/data/build/dist/host/cli-adapters/mcode-driver.js +1 -1
- package/data/build/dist/host/cli-adapters/mcode-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/model-catalog.d.ts +1 -0
- package/data/build/dist/host/cli-adapters/model-catalog.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/model-catalog.js +62 -0
- package/data/build/dist/host/cli-adapters/model-catalog.js.map +1 -1
- package/data/build/dist/host/cli-adapters/native-team-subagent.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/native-team-subagent.js +2 -1
- package/data/build/dist/host/cli-adapters/native-team-subagent.js.map +1 -1
- package/data/build/dist/host/cli-adapters/opencode-driver.d.ts +22 -0
- package/data/build/dist/host/cli-adapters/opencode-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/opencode-driver.js +105 -17
- package/data/build/dist/host/cli-adapters/opencode-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/pi-driver.js +1 -1
- package/data/build/dist/host/cli-adapters/pi-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/process-utils.d.ts +2 -0
- package/data/build/dist/host/cli-adapters/process-utils.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/process-utils.js +16 -11
- package/data/build/dist/host/cli-adapters/process-utils.js.map +1 -1
- package/data/build/dist/host/cli-adapters/registry.d.ts +3 -0
- package/data/build/dist/host/cli-adapters/registry.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/registry.js +56 -21
- package/data/build/dist/host/cli-adapters/registry.js.map +1 -1
- package/data/build/dist/host/cli-adapters/session-performance-projection.d.ts +74 -0
- package/data/build/dist/host/cli-adapters/session-performance-projection.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/session-performance-projection.js +83 -0
- package/data/build/dist/host/cli-adapters/session-performance-projection.js.map +1 -0
- package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts +3 -1
- package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/stream-normalizer.js +2 -0
- package/data/build/dist/host/cli-adapters/stream-normalizer.js.map +1 -1
- package/data/build/dist/host/cli-adapters/update-check.d.ts +34 -0
- package/data/build/dist/host/cli-adapters/update-check.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/update-check.js +263 -0
- package/data/build/dist/host/cli-adapters/update-check.js.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-driver.js +1 -1
- package/data/build/dist/host/cli-adapters/zcode-driver.js.map +1 -1
- package/data/build/dist/host/features/file-management.d.ts.map +1 -1
- package/data/build/dist/host/features/file-management.js +8 -0
- package/data/build/dist/host/features/file-management.js.map +1 -1
- package/data/build/dist/host/features/global-voice-rpc.d.ts.map +1 -1
- package/data/build/dist/host/features/global-voice-rpc.js +2 -3
- package/data/build/dist/host/features/global-voice-rpc.js.map +1 -1
- package/data/build/dist/host/features/index.d.ts.map +1 -1
- package/data/build/dist/host/features/index.js +2 -0
- package/data/build/dist/host/features/index.js.map +1 -1
- package/data/build/dist/host/features/lan-access-dsh.js +1 -1
- package/data/build/dist/host/features/lan-access-dsh.js.map +1 -1
- package/data/build/dist/host/features/peer-host.d.ts.map +1 -1
- package/data/build/dist/host/features/peer-host.js +13 -6
- package/data/build/dist/host/features/peer-host.js.map +1 -1
- package/data/build/dist/host/features/quick-apps.d.ts +4 -0
- package/data/build/dist/host/features/quick-apps.d.ts.map +1 -0
- package/data/build/dist/host/features/quick-apps.js +158 -0
- package/data/build/dist/host/features/quick-apps.js.map +1 -0
- package/data/build/dist/host/features/session-prompt-translation.d.ts +10 -0
- package/data/build/dist/host/features/session-prompt-translation.d.ts.map +1 -0
- package/data/build/dist/host/features/session-prompt-translation.js +198 -0
- package/data/build/dist/host/features/session-prompt-translation.js.map +1 -0
- package/data/build/dist/host/features/session-translation-protection.d.ts +12 -1
- package/data/build/dist/host/features/session-translation-protection.d.ts.map +1 -1
- package/data/build/dist/host/features/session-translation-protection.js +44 -5
- package/data/build/dist/host/features/session-translation-protection.js.map +1 -1
- package/data/build/dist/host/features/session-translation-recovery.d.ts +21 -0
- package/data/build/dist/host/features/session-translation-recovery.d.ts.map +1 -0
- package/data/build/dist/host/features/session-translation-recovery.js +125 -0
- package/data/build/dist/host/features/session-translation-recovery.js.map +1 -0
- package/data/build/dist/host/features/session-translation-service.d.ts +8 -2
- package/data/build/dist/host/features/session-translation-service.d.ts.map +1 -1
- package/data/build/dist/host/features/session-translation-service.js +69 -19
- package/data/build/dist/host/features/session-translation-service.js.map +1 -1
- package/data/build/dist/host/features/session-translation.d.ts.map +1 -1
- package/data/build/dist/host/features/session-translation.js +4 -1
- package/data/build/dist/host/features/session-translation.js.map +1 -1
- package/data/build/dist/host/features/types.d.ts +10 -0
- package/data/build/dist/host/features/types.d.ts.map +1 -1
- package/data/build/dist/host/html-workspace-files.d.ts +3 -0
- package/data/build/dist/host/html-workspace-files.d.ts.map +1 -0
- package/data/build/dist/host/html-workspace-files.js +135 -0
- package/data/build/dist/host/html-workspace-files.js.map +1 -0
- package/data/build/dist/host/index.d.ts.map +1 -1
- package/data/build/dist/host/index.js +27 -2
- package/data/build/dist/host/index.js.map +1 -1
- package/data/build/dist/host/lan-access-dsh.d.ts +5 -1
- package/data/build/dist/host/lan-access-dsh.d.ts.map +1 -1
- package/data/build/dist/host/lan-access-dsh.js +43 -2
- package/data/build/dist/host/lan-access-dsh.js.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.d.ts +2 -2
- package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.d.ts.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.js +10 -9
- package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.js.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-native-streams.d.ts +3 -3
- package/data/build/dist/host/modules/peer-host/peer-host-native-streams.d.ts.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-native-streams.js +26 -14
- package/data/build/dist/host/modules/peer-host/peer-host-native-streams.js.map +1 -1
- package/data/build/dist/host/modules/peer-host/quick-app-gateway.d.ts +5 -0
- package/data/build/dist/host/modules/peer-host/quick-app-gateway.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/quick-app-gateway.js +27 -0
- package/data/build/dist/host/modules/peer-host/quick-app-gateway.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/browse.d.ts +5 -0
- package/data/build/dist/host/modules/quick-apps/browse.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/browse.js +37 -0
- package/data/build/dist/host/modules/quick-apps/browse.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/code-revision.d.ts +4 -0
- package/data/build/dist/host/modules/quick-apps/code-revision.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/code-revision.js +39 -0
- package/data/build/dist/host/modules/quick-apps/code-revision.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/documents.d.ts +14 -0
- package/data/build/dist/host/modules/quick-apps/documents.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/documents.js +87 -0
- package/data/build/dist/host/modules/quick-apps/documents.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/errors.d.ts +8 -0
- package/data/build/dist/host/modules/quick-apps/errors.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/errors.js +15 -0
- package/data/build/dist/host/modules/quick-apps/errors.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/file-api.d.ts +30 -0
- package/data/build/dist/host/modules/quick-apps/file-api.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/file-api.js +149 -0
- package/data/build/dist/host/modules/quick-apps/file-api.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/launches.d.ts +35 -0
- package/data/build/dist/host/modules/quick-apps/launches.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/launches.js +80 -0
- package/data/build/dist/host/modules/quick-apps/launches.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/paths.d.ts +14 -0
- package/data/build/dist/host/modules/quick-apps/paths.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/paths.js +72 -0
- package/data/build/dist/host/modules/quick-apps/paths.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/registry.d.ts +30 -0
- package/data/build/dist/host/modules/quick-apps/registry.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/registry.js +186 -0
- package/data/build/dist/host/modules/quick-apps/registry.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/remote.d.ts +38 -0
- package/data/build/dist/host/modules/quick-apps/remote.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/remote.js +237 -0
- package/data/build/dist/host/modules/quick-apps/remote.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/service.d.ts +27 -0
- package/data/build/dist/host/modules/quick-apps/service.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/service.js +170 -0
- package/data/build/dist/host/modules/quick-apps/service.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/static-handler.d.ts +8 -0
- package/data/build/dist/host/modules/quick-apps/static-handler.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/static-handler.js +181 -0
- package/data/build/dist/host/modules/quick-apps/static-handler.js.map +1 -0
- package/data/build/dist/host/native-session-bridge.d.ts +7 -1
- package/data/build/dist/host/native-session-bridge.d.ts.map +1 -1
- package/data/build/dist/host/native-session-bridge.js +8 -13
- package/data/build/dist/host/native-session-bridge.js.map +1 -1
- package/data/build/dist/host/rpc.d.ts.map +1 -1
- package/data/build/dist/host/rpc.js +21 -10
- package/data/build/dist/host/rpc.js.map +1 -1
- package/data/build/dist/host/settings.d.ts.map +1 -1
- package/data/build/dist/host/settings.js +18 -1
- package/data/build/dist/host/settings.js.map +1 -1
- package/data/build/dist/host/workspace-file-mutations.d.ts +2 -0
- package/data/build/dist/host/workspace-file-mutations.d.ts.map +1 -0
- package/data/build/dist/host/workspace-file-mutations.js +15 -0
- package/data/build/dist/host/workspace-file-mutations.js.map +1 -0
- package/data/build/dist/shared/attachment-prompts.d.ts +11 -0
- package/data/build/dist/shared/attachment-prompts.d.ts.map +1 -0
- package/data/build/dist/shared/attachment-prompts.js +17 -0
- package/data/build/dist/shared/attachment-prompts.js.map +1 -0
- package/data/build/dist/shared/codex-performance.d.ts +3 -0
- package/data/build/dist/shared/codex-performance.d.ts.map +1 -0
- package/data/build/dist/shared/codex-performance.js +2 -0
- package/data/build/dist/shared/codex-performance.js.map +1 -0
- package/data/build/dist/shared/contracts/cli-adapter.d.ts +33 -1
- package/data/build/dist/shared/contracts/cli-adapter.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/cli-management.d.ts +29 -0
- package/data/build/dist/shared/contracts/cli-management.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/cli-management.js +2 -0
- package/data/build/dist/shared/contracts/cli-management.js.map +1 -0
- package/data/build/dist/shared/contracts/config.d.ts +2 -0
- package/data/build/dist/shared/contracts/config.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/config.js.map +1 -1
- package/data/build/dist/shared/contracts/errors.d.ts +2 -2
- package/data/build/dist/shared/contracts/quick-apps.d.ts +68 -0
- package/data/build/dist/shared/contracts/quick-apps.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/quick-apps.js +4 -0
- package/data/build/dist/shared/contracts/quick-apps.js.map +1 -0
- package/data/build/dist/shared/contracts/session-translation.d.ts +20 -2
- package/data/build/dist/shared/contracts/session-translation.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/session-translation.js +24 -0
- package/data/build/dist/shared/contracts/session-translation.js.map +1 -1
- package/data/build/dist/shared/contracts/version.d.ts +4 -4
- package/data/build/dist/shared/contracts/version.js +3 -3
- package/data/build/dist/shared/peer-host-http-routes.d.ts +4 -0
- package/data/build/dist/shared/peer-host-http-routes.d.ts.map +1 -1
- package/data/build/dist/shared/peer-host-http-routes.js +4 -0
- package/data/build/dist/shared/peer-host-http-routes.js.map +1 -1
- package/data/build/dist/shared/quick-app-proxy-path.d.ts +6 -0
- package/data/build/dist/shared/quick-app-proxy-path.d.ts.map +1 -0
- package/data/build/dist/shared/quick-app-proxy-path.js +18 -0
- package/data/build/dist/shared/quick-app-proxy-path.js.map +1 -0
- package/data/build/dist/shared/quick-apps-bootstrap-locale.d.ts +7 -0
- package/data/build/dist/shared/quick-apps-bootstrap-locale.d.ts.map +1 -0
- package/data/build/dist/shared/quick-apps-bootstrap-locale.js +10 -0
- package/data/build/dist/shared/quick-apps-bootstrap-locale.js.map +1 -0
- package/data/build/dist/shared/request-performance.d.ts +15 -0
- package/data/build/dist/shared/request-performance.d.ts.map +1 -0
- package/data/build/dist/shared/request-performance.js +3 -0
- package/data/build/dist/shared/request-performance.js.map +1 -0
- package/package.json +35 -34
- package/profile/README.md +2 -2
- package/profile/package.json +3 -3
- package/profile/version.json +3 -3
- package/version.json +3 -3
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/** Animate grid moves on the outer shortcut, independently of the tile's jiggle. */
|
|
2
|
+
export function createQuickAppReorderAnimation() {
|
|
3
|
+
let positions = new Map();
|
|
4
|
+
const animations = new Map();
|
|
5
|
+
const dispose = () => {
|
|
6
|
+
for (const animation of animations.values())
|
|
7
|
+
animation.cancel();
|
|
8
|
+
animations.clear();
|
|
9
|
+
positions.clear();
|
|
10
|
+
};
|
|
11
|
+
return {
|
|
12
|
+
dispose,
|
|
13
|
+
update(root) {
|
|
14
|
+
const reducedMotion = root.ownerDocument.defaultView?.matchMedia('(prefers-reduced-motion: reduce)').matches === true;
|
|
15
|
+
const next = new Map();
|
|
16
|
+
for (const node of root.querySelectorAll(':scope > [data-quick-app-id]')) {
|
|
17
|
+
const position = { left: node.offsetLeft, top: node.offsetTop };
|
|
18
|
+
next.set(node, position);
|
|
19
|
+
const previous = positions.get(node);
|
|
20
|
+
if (reducedMotion) {
|
|
21
|
+
animations.get(node)?.cancel();
|
|
22
|
+
animations.delete(node);
|
|
23
|
+
continue;
|
|
24
|
+
}
|
|
25
|
+
if (!previous || typeof node.animate !== 'function' || previous.left === position.left && previous.top === position.top)
|
|
26
|
+
continue;
|
|
27
|
+
const visual = node.getBoundingClientRect();
|
|
28
|
+
animations.get(node)?.cancel();
|
|
29
|
+
const layout = node.getBoundingClientRect();
|
|
30
|
+
const x = previous.left - position.left + visual.left - layout.left;
|
|
31
|
+
const y = previous.top - position.top + visual.top - layout.top;
|
|
32
|
+
if (x === 0 && y === 0) {
|
|
33
|
+
animations.delete(node);
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
const animation = node.animate([{ transform: `translate(${x}px, ${y}px)` }, { transform: 'translate(0, 0)' }], { duration: 220, easing: 'cubic-bezier(0.2, 0.8, 0.2, 1)' });
|
|
37
|
+
animations.set(node, animation);
|
|
38
|
+
void animation.finished.then(() => { if (animations.get(node) === animation)
|
|
39
|
+
animations.delete(node); }, () => undefined);
|
|
40
|
+
}
|
|
41
|
+
for (const [node, animation] of animations)
|
|
42
|
+
if (!next.has(node)) {
|
|
43
|
+
animation.cancel();
|
|
44
|
+
animations.delete(node);
|
|
45
|
+
}
|
|
46
|
+
positions = next;
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=reorder-animation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reorder-animation.js","sourceRoot":"","sources":["../../../../../src/client/quick-apps/reorder-animation.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,MAAM,UAAU,8BAA8B;IAC5C,IAAI,SAAS,GAAG,IAAI,GAAG,EAA8C,CAAA;IACrE,MAAM,UAAU,GAAG,IAAI,GAAG,EAA0B,CAAA;IACpD,MAAM,OAAO,GAAG,GAAG,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AAC;KACF,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { KeyboardEvent, MouseEvent, PointerEvent } from 'react';
|
|
2
|
+
/** Keep pointer previews local; only a completed drop persists the new order. */
|
|
3
|
+
export declare function useQuickAppReorder<T extends {
|
|
4
|
+
id: string;
|
|
5
|
+
}>({ apps, enabled, onReorder }: {
|
|
6
|
+
apps: readonly T[];
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
onReorder: (apps: readonly T[]) => void;
|
|
9
|
+
}): {
|
|
10
|
+
apps: readonly T[];
|
|
11
|
+
gridProps: {
|
|
12
|
+
ref: import("react").RefObject<HTMLDivElement>;
|
|
13
|
+
onPointerMove: (event: PointerEvent<HTMLDivElement>) => void;
|
|
14
|
+
onPointerUp: (event: PointerEvent<HTMLDivElement>) => void;
|
|
15
|
+
onPointerCancel: (event: PointerEvent<HTMLDivElement>) => void;
|
|
16
|
+
onLostPointerCapture: (event: PointerEvent<HTMLDivElement>) => void;
|
|
17
|
+
onKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
18
|
+
onClickCapture: (event: MouseEvent<HTMLDivElement>) => void;
|
|
19
|
+
};
|
|
20
|
+
tileProps: (id: string) => {
|
|
21
|
+
'data-dragging': boolean;
|
|
22
|
+
onPointerDown: (event: PointerEvent<HTMLButtonElement>) => void;
|
|
23
|
+
onKeyDown: (event: KeyboardEvent<HTMLButtonElement>) => void;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=reorder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reorder.d.ts","sourceRoot":"","sources":["../../../../../src/client/quick-apps/reorder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAmBpE,iFAAiF;AACjF,wBAAgB,kBAAkB,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE;IACzF,IAAI,EAAE,SAAS,CAAC,EAAE,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,KAAK,IAAI,CAAA;CAC9E;;;;+BAqC6B,YAAY,CAAC,cAAc,CAAC;6BAsBjC,YAAY,CAAC,cAAc,CAAC;iCAoBtB,YAAY,CAAC,cAAc,CAAC;sCACvB,YAAY,CAAC,cAAc,CAAC;2BAGvC,aAAa,CAAC,cAAc,CAAC;gCAGxB,UAAU,CAAC,cAAc,CAAC;;oBAIpC,MAAM;;+BAEG,YAAY,CAAC,iBAAiB,CAAC;2BACnC,aAAa,CAAC,iBAAiB,CAAC;;EAGxD"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
2
|
+
import { createQuickAppReorderAnimation } from './reorder-animation.js';
|
|
3
|
+
function move(items, from, to) {
|
|
4
|
+
const next = [...items];
|
|
5
|
+
next.splice(to, 0, next.splice(from, 1)[0]);
|
|
6
|
+
return next;
|
|
7
|
+
}
|
|
8
|
+
/** Keep pointer previews local; only a completed drop persists the new order. */
|
|
9
|
+
export function useQuickAppReorder({ apps, enabled, onReorder }) {
|
|
10
|
+
const grid = useRef(null);
|
|
11
|
+
const drag = useRef(null);
|
|
12
|
+
const suppressClick = useRef(false);
|
|
13
|
+
const [preview, setPreview] = useState(null);
|
|
14
|
+
const [animation] = useState(createQuickAppReorderAnimation);
|
|
15
|
+
const displayed = preview?.order ?? apps;
|
|
16
|
+
const orderKey = JSON.stringify(displayed.map(app => app.id));
|
|
17
|
+
useLayoutEffect(() => { if (grid.current)
|
|
18
|
+
animation.update(grid.current); }, [animation, orderKey, enabled]);
|
|
19
|
+
useEffect(() => () => animation.dispose(), [animation]);
|
|
20
|
+
const release = () => {
|
|
21
|
+
const current = drag.current;
|
|
22
|
+
drag.current = null;
|
|
23
|
+
if (current?.capture.hasPointerCapture(current.pointerId))
|
|
24
|
+
current.capture.releasePointerCapture(current.pointerId);
|
|
25
|
+
};
|
|
26
|
+
const cancel = () => { release(); setPreview(null); };
|
|
27
|
+
useEffect(() => { cancel(); return release; }, [apps, enabled]);
|
|
28
|
+
const targetAt = (event) => {
|
|
29
|
+
const root = grid.current;
|
|
30
|
+
if (!root)
|
|
31
|
+
return undefined;
|
|
32
|
+
const bounds = root.getBoundingClientRect();
|
|
33
|
+
if (event.clientX < bounds.left || event.clientX > bounds.right || event.clientY < bounds.top || event.clientY > bounds.bottom)
|
|
34
|
+
return undefined;
|
|
35
|
+
const x = event.clientX - bounds.left + root.scrollLeft;
|
|
36
|
+
const y = event.clientY - bounds.top + root.scrollTop;
|
|
37
|
+
// Hit-test layout slots, not animated tiles passing under a stationary pointer.
|
|
38
|
+
return [...root.querySelectorAll(':scope > [data-quick-app-id]')].find(node => x >= node.offsetLeft && x <= node.offsetLeft + node.offsetWidth && y >= node.offsetTop && y <= node.offsetTop + node.offsetHeight)?.dataset.quickAppId;
|
|
39
|
+
};
|
|
40
|
+
const start = (event, id) => {
|
|
41
|
+
suppressClick.current = false;
|
|
42
|
+
if (!enabled || apps.length < 2 || event.button !== 0 || !event.isPrimary || drag.current)
|
|
43
|
+
return;
|
|
44
|
+
// Capture on the tile first so an ordinary tap still produces its normal click.
|
|
45
|
+
event.currentTarget.setPointerCapture(event.pointerId);
|
|
46
|
+
drag.current = { pointerId: event.pointerId, id, startX: event.clientX, startY: event.clientY,
|
|
47
|
+
active: false, capture: event.currentTarget, order: apps };
|
|
48
|
+
};
|
|
49
|
+
const movePointer = (event) => {
|
|
50
|
+
const current = drag.current;
|
|
51
|
+
const root = grid.current;
|
|
52
|
+
if (!enabled || !current || current.pointerId !== event.pointerId || !root)
|
|
53
|
+
return;
|
|
54
|
+
if (!current.active) {
|
|
55
|
+
if (Math.hypot(event.clientX - current.startX, event.clientY - current.startY) < 6)
|
|
56
|
+
return;
|
|
57
|
+
current.active = true;
|
|
58
|
+
suppressClick.current = true;
|
|
59
|
+
// The grid stays mounted when the dragged tile changes position.
|
|
60
|
+
root.setPointerCapture(event.pointerId);
|
|
61
|
+
current.capture = root;
|
|
62
|
+
}
|
|
63
|
+
event.preventDefault();
|
|
64
|
+
const bounds = root.getBoundingClientRect();
|
|
65
|
+
if (event.clientY < bounds.top + 24)
|
|
66
|
+
root.scrollTop -= 12;
|
|
67
|
+
else if (event.clientY > bounds.bottom - 24)
|
|
68
|
+
root.scrollTop += 12;
|
|
69
|
+
const target = targetAt(event);
|
|
70
|
+
const from = current.order.findIndex(app => app.id === current.id);
|
|
71
|
+
const to = current.order.findIndex(app => app.id === target);
|
|
72
|
+
if (from >= 0 && to >= 0 && from !== to)
|
|
73
|
+
current.order = move(current.order, from, to);
|
|
74
|
+
setPreview({ id: current.id, order: current.order });
|
|
75
|
+
};
|
|
76
|
+
const finish = (event) => {
|
|
77
|
+
const current = drag.current;
|
|
78
|
+
if (!current || current.pointerId !== event.pointerId)
|
|
79
|
+
return;
|
|
80
|
+
const droppedInside = targetAt(event) !== undefined;
|
|
81
|
+
cancel();
|
|
82
|
+
if (enabled && current.active && droppedInside && current.order.some((app, index) => app.id !== apps[index]?.id))
|
|
83
|
+
onReorder(current.order);
|
|
84
|
+
};
|
|
85
|
+
const keyboardMove = (event, id) => {
|
|
86
|
+
if (!enabled || drag.current || !event.altKey || !['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown'].includes(event.key))
|
|
87
|
+
return;
|
|
88
|
+
event.preventDefault();
|
|
89
|
+
const from = apps.findIndex(app => app.id === id);
|
|
90
|
+
const to = from + (event.key === 'ArrowLeft' || event.key === 'ArrowUp' ? -1 : 1);
|
|
91
|
+
if (from >= 0 && to >= 0 && to < apps.length)
|
|
92
|
+
onReorder(move(apps, from, to));
|
|
93
|
+
};
|
|
94
|
+
return {
|
|
95
|
+
apps: displayed,
|
|
96
|
+
gridProps: {
|
|
97
|
+
ref: grid,
|
|
98
|
+
onPointerMove: movePointer,
|
|
99
|
+
onPointerUp: finish,
|
|
100
|
+
onPointerCancel: (event) => { if (drag.current?.pointerId === event.pointerId)
|
|
101
|
+
cancel(); },
|
|
102
|
+
onLostPointerCapture: (event) => {
|
|
103
|
+
if (drag.current?.pointerId === event.pointerId && event.target === drag.current.capture)
|
|
104
|
+
cancel();
|
|
105
|
+
},
|
|
106
|
+
onKeyDown: (event) => {
|
|
107
|
+
if (event.key === 'Escape' && drag.current) {
|
|
108
|
+
event.preventDefault();
|
|
109
|
+
event.stopPropagation();
|
|
110
|
+
cancel();
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
onClickCapture: (event) => {
|
|
114
|
+
if (suppressClick.current && event.detail !== 0) {
|
|
115
|
+
event.preventDefault();
|
|
116
|
+
event.stopPropagation();
|
|
117
|
+
suppressClick.current = false;
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
tileProps: (id) => ({
|
|
122
|
+
'data-dragging': preview?.id === id,
|
|
123
|
+
onPointerDown: (event) => start(event, id),
|
|
124
|
+
onKeyDown: (event) => keyboardMove(event, id),
|
|
125
|
+
}),
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=reorder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reorder.js","sourceRoot":"","sources":["../../../../../src/client/quick-apps/reorder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEpE,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAA;AAYvE,SAAS,IAAI,CAAI,KAAmB,EAAE,IAAY,EAAE,EAAU;IAC5D,MAAM,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC,CAAA;IACvB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,C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K,EAAE,EAAE,CAAC;SAChF,CAAC;KACH,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/client/quick-apps/styles.ts"],"names":[],"mappings":"AAGA,oGAAoG;AACpG,eAAO,MAAM,YAAY,QA0IxB,CAAA"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { dshThemeColor as color } from '../theme.js';
|
|
2
|
+
import { uiFontSize } from '../font-scale.js';
|
|
3
|
+
/** Parent ModalAtoms/shortcut-rail layout, scoped to this plugin and mapped to DSH theme tokens. */
|
|
4
|
+
export const quickAppsCss = `
|
|
5
|
+
.codingns-quick-app-rail{width:100%;min-width:0;margin:0 0 6px;color:${color.labelPrimary};font-size:${uiFontSize(12)}}
|
|
6
|
+
.codingns-quick-app-rail .qa-rail-header{display:flex;align-items:center;gap:6px;min-height:32px;margin-bottom:4px}
|
|
7
|
+
.codingns-quick-app-rail[data-collapsed=true] .qa-rail-header{margin-bottom:0}
|
|
8
|
+
.codingns-quick-app-rail h2{margin:0;font-size:${uiFontSize(12)};font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
9
|
+
.codingns-quick-app-rail .qa-count{color:${color.labelSecondary};font-size:${uiFontSize(11)}}
|
|
10
|
+
.codingns-quick-app-rail .qa-controls{display:flex;gap:2px;margin-left:auto;margin-right:var(--codingns-quick-app-controls-end,0px)}
|
|
11
|
+
.codingns-quick-app-rail .qa-control{display:inline-flex;align-items:center;justify-content:center;background:transparent;color:${color.labelSecondary};cursor:pointer;box-shadow:none;transition:background 140ms ease,color 140ms ease}
|
|
12
|
+
.codingns-quick-app-rail .qa-control svg{width:16px;height:16px;flex:none}
|
|
13
|
+
.codingns-quick-app-rail .qa-control:hover:not(:disabled),.codingns-quick-app-rail .qa-tile:hover:not(:disabled){background:${color.hoverBackground}}
|
|
14
|
+
.codingns-quick-app-rail .qa-control:hover:not(:disabled){color:${color.labelPrimary}}
|
|
15
|
+
.codingns-quick-app-rail button:disabled{opacity:.5;cursor:not-allowed}
|
|
16
|
+
.codingns-quick-app-rail button:focus-visible{outline:2px solid ${color.accent};outline-offset:-2px}
|
|
17
|
+
.codingns-quick-app-rail .qa-grid{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding-top:4px;max-height:min(35dvh,240px);overflow:auto;overscroll-behavior:contain}
|
|
18
|
+
.codingns-quick-app-rail .qa-shortcut{position:relative;min-width:0}
|
|
19
|
+
.codingns-quick-app-rail .qa-tile{display:flex;flex-direction:column;align-items:center;gap:3px;width:100%;min-width:0;min-height:54px;padding:2px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;cursor:pointer}
|
|
20
|
+
.codingns-quick-app-rail .qa-tile[data-editing=true]{outline:1px dashed ${color.border};outline-offset:-1px;cursor:grab;touch-action:none;user-select:none;-webkit-touch-callout:none}
|
|
21
|
+
.codingns-quick-app-rail .qa-tile[data-dragging=true]{cursor:grabbing;background:${color.hoverBackground};outline:2px solid ${color.accent};opacity:.7}
|
|
22
|
+
.codingns-quick-app-rail .qa-tile[data-editing=true]{animation:qa-tile-shake .28s ease-in-out infinite alternate;transform-origin:50% 60%}
|
|
23
|
+
.codingns-quick-app-rail .qa-tile[data-dragging=true]{animation-play-state:paused}
|
|
24
|
+
.codingns-quick-app-rail .qa-shortcut:nth-child(even) .qa-tile[data-editing=true]{animation-delay:-.14s}
|
|
25
|
+
.codingns-quick-app-rail .qa-remove{position:absolute;top:0;right:max(0px,calc(50% - 24px));display:flex;align-items:center;justify-content:center;width:18px;height:18px;padding:2px;border:1px solid ${color.cardBackground};border-radius:50%;background:${color.error};color:#fff;cursor:pointer}
|
|
26
|
+
.codingns-quick-app-rail .qa-remove svg{width:12px;height:12px;flex:none}
|
|
27
|
+
.codingns-quick-app-rail .qa-remove:hover:not(:disabled){filter:brightness(1.15)}
|
|
28
|
+
@keyframes qa-tile-shake{from{transform:rotate(-2deg)}to{transform:rotate(2deg)}}
|
|
29
|
+
@media(prefers-reduced-motion:reduce){.codingns-quick-app-rail .qa-tile[data-editing=true]{animation:none}}
|
|
30
|
+
.codingns-quick-app-rail .qa-tile[data-unavailable=true]:not([data-editing=true]){opacity:.6}
|
|
31
|
+
.codingns-quick-app-rail .qa-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;border-radius:9px;font-size:${uiFontSize(12)};font-weight:700}
|
|
32
|
+
.codingns-quick-app-rail .qa-tile strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:${uiFontSize(10)};font-weight:600;line-height:1.4;max-width:100%}
|
|
33
|
+
.codingns-quick-app-rail .qa-unavailable{position:absolute;right:-2px;bottom:-2px;border-radius:50%;width:12px;height:12px;line-height:12px;font-size:10px;background:${color.pageBackground};color:${color.error}}
|
|
34
|
+
.codingns-quick-app-rail .qa-rail-notice{margin:4px 0 8px;font-size:${uiFontSize(11)};line-height:1.5;color:${color.labelSecondary};overflow-wrap:anywhere;max-height:72px;overflow:auto}
|
|
35
|
+
.codingns-quick-app-rail .qa-rail-notice[role=alert]{color:${color.error}}
|
|
36
|
+
.codingns-quick-app-rail[data-wide=false]{width:36px}
|
|
37
|
+
.codingns-quick-app-rail[data-wide=false] .qa-controls{flex-direction:column;margin:0 var(--codingns-quick-app-controls-end,2px) 0 auto}
|
|
38
|
+
.codingns-quick-app-rail[data-wide=false] .qa-grid{grid-template-columns:minmax(0,1fr)}
|
|
39
|
+
.codingns-quick-app-rail[data-wide=false] .qa-tile{min-height:36px;justify-content:center}
|
|
40
|
+
.codingns-quick-app-rail[data-wide=false] .qa-tile strong{display:none}
|
|
41
|
+
.codingns-quick-app-rail[data-wide=false] .qa-rail-notice{text-align:center}
|
|
42
|
+
.codingns-quick-app-dialog{width:520px;max-width:100%;max-height:100%;color:${color.labelPrimary};font-size:${uiFontSize(14)};border-radius:var(--dsw-radius-panel,12px);background:${color.menuBackground}}
|
|
43
|
+
.codingns-quick-app-dialog .qa-content{min-height:0;flex:1}
|
|
44
|
+
.codingns-quick-app-dialog .qa-content>div:has(>.qa-body){min-height:0;flex:1;overflow:hidden;margin-top:8px}
|
|
45
|
+
.codingns-quick-app-dialog .qa-body{display:flex;flex-direction:column;gap:16px;min-height:0;overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere;padding:2px}
|
|
46
|
+
.codingns-quick-app-dialog .qa-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;width:100%}
|
|
47
|
+
.codingns-quick-app-dialog .qa-button{min-height:34px;height:auto;padding:7px 12px;border:0;border-radius:8px;background:transparent;color:${color.labelPrimary};font-size:${uiFontSize(13)};font-weight:500;line-height:1.4;box-shadow:none}
|
|
48
|
+
.codingns-quick-app-dialog .qa-button:hover:not(:disabled){background:${color.hoverBackground}}
|
|
49
|
+
.codingns-quick-app-dialog .qa-button.qa-danger{color:${color.error}}
|
|
50
|
+
.codingns-quick-app-dialog .qa-button.qa-primary{background:${color.primaryBackground};color:${color.primaryForeground}}
|
|
51
|
+
.codingns-quick-app-dialog .qa-button.qa-primary:hover:not(:disabled){background:${color.primaryHoverBackground}}
|
|
52
|
+
.codingns-quick-app-dialog button:disabled{opacity:.5;cursor:not-allowed}
|
|
53
|
+
.codingns-quick-app-dialog :is(button,select):focus-visible{outline:2px solid ${color.accent};outline-offset:-2px}
|
|
54
|
+
.codingns-quick-app-dialog .qa-help{margin:0;color:${color.labelSecondary};font-size:${uiFontSize(12)};line-height:1.6}
|
|
55
|
+
.codingns-quick-app-dialog .qa-notice{margin:0;color:${color.success};font-size:${uiFontSize(13)};line-height:1.5}
|
|
56
|
+
.codingns-quick-app-dialog .qa-notice[role=alert]{color:${color.error}}
|
|
57
|
+
.codingns-quick-app-dialog .qa-form{display:flex;flex-direction:column;gap:18px;min-width:0}
|
|
58
|
+
.codingns-quick-app-dialog .qa-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:${uiFontSize(12)};font-weight:500}
|
|
59
|
+
/* DSH Input paints its wrapper; the inner input must remain undecorated. */
|
|
60
|
+
.codingns-quick-app-dialog :is(.qa-input,.qa-select,.qa-file-input){box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:40px;border:0;border-radius:8px;background:${color.surfaceSubtle};color:${color.labelPrimary};font:inherit;font-size:${uiFontSize(13)};font-weight:400}
|
|
61
|
+
.codingns-quick-app-dialog :is(.qa-input,.qa-select){padding:0 11px}
|
|
62
|
+
.codingns-quick-app-dialog .qa-input input{width:100%;min-width:0;padding:0;border:0;border-radius:0;outline:none;background:transparent;color:inherit;font:inherit;box-shadow:none}
|
|
63
|
+
.codingns-quick-app-dialog :is(.qa-input,.qa-file-input):focus-within{outline:2px solid ${color.accent};outline-offset:-2px}
|
|
64
|
+
.codingns-quick-app-dialog :is(.qa-input,.qa-file-input):has(input:disabled){opacity:.5}
|
|
65
|
+
.codingns-quick-app-dialog .qa-field .qa-help{font-weight:400}
|
|
66
|
+
.codingns-quick-app-dialog .qa-file-input{display:flex;align-items:center;gap:4px;padding-right:4px}
|
|
67
|
+
.codingns-quick-app-dialog .qa-file-input .qa-input{flex:1;width:0;background:transparent;outline:none;opacity:1}
|
|
68
|
+
.codingns-quick-app-dialog .qa-file-input .qa-browse{flex:none;min-height:32px;padding:6px 9px;white-space:nowrap;color:${color.accent}}
|
|
69
|
+
.codingns-quick-app-dialog .qa-workspace-picker{display:block;width:100%;min-width:0}
|
|
70
|
+
.codingns-quick-app-dialog .qa-workspace-trigger{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:9px 11px;text-align:left;border:0;border-radius:8px;background:${color.surfaceSubtle};color:${color.labelPrimary};font:inherit;cursor:pointer}
|
|
71
|
+
.codingns-quick-app-dialog .qa-workspace-trigger:hover:not(:disabled){background:${color.hoverBackground}}
|
|
72
|
+
.codingns-quick-app-dialog .qa-workspace-trigger>svg{flex:none}
|
|
73
|
+
:is(.codingns-quick-app-dialog,.codingns-quick-app-workspaces) .qa-workspace-label{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0;overflow:hidden}
|
|
74
|
+
:is(.codingns-quick-app-dialog,.codingns-quick-app-workspaces) .qa-workspace-name{font-size:${uiFontSize(13)};font-weight:500}
|
|
75
|
+
:is(.codingns-quick-app-dialog,.codingns-quick-app-workspaces) .qa-workspace-label small{color:${color.labelSecondary};font-size:${uiFontSize(11)};font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
76
|
+
.codingns-quick-app-workspaces{z-index:10002;width:min(440px,calc(100vw - 24px));max-width:calc(100vw - 24px);background:${color.menuBackground};color:${color.labelPrimary};border:1px solid ${color.menuBorder};border-radius:var(--dsw-radius-lg,12px);box-shadow:${color.prominentShadow}}
|
|
77
|
+
.codingns-quick-app-dialog.qa-file-picker{width:600px;height:min(560px,85dvh)}
|
|
78
|
+
.codingns-quick-app-dialog.qa-file-picker .qa-body{flex:1;gap:12px}
|
|
79
|
+
.codingns-quick-app-dialog .qa-file-location{display:flex;align-items:center;gap:10px}
|
|
80
|
+
.codingns-quick-app-dialog .qa-file-location>svg{flex:none;color:${color.labelSecondary}}
|
|
81
|
+
.codingns-quick-app-dialog .qa-file-toolbar{display:flex;align-items:center;gap:4px;min-width:0;padding:3px;border-radius:8px;background:${color.surfaceSubtle}}
|
|
82
|
+
.codingns-quick-app-dialog .qa-file-tool{display:flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;padding:0;border:0;border-radius:6px;background:transparent;color:${color.labelSecondary};cursor:pointer}
|
|
83
|
+
.codingns-quick-app-dialog .qa-file-breadcrumbs{display:flex;flex:1;min-width:0;overflow:auto;align-items:center;gap:2px}
|
|
84
|
+
.codingns-quick-app-dialog .qa-file-crumb{display:flex;align-items:center;gap:2px;flex:none;color:${color.labelSecondary}}
|
|
85
|
+
.codingns-quick-app-dialog .qa-file-breadcrumbs button{flex:none;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;border-radius:5px;background:transparent;color:${color.labelSecondary};padding:6px;font:inherit;font-size:${uiFontSize(12)};cursor:pointer}
|
|
86
|
+
.codingns-quick-app-dialog .qa-file-breadcrumbs button[aria-current]{color:${color.labelPrimary};font-weight:500}
|
|
87
|
+
.codingns-quick-app-dialog :is(.qa-file-tool,.qa-file-breadcrumbs button):hover:not(:disabled){background:${color.hoverBackground}}
|
|
88
|
+
.codingns-quick-app-dialog .qa-file-list{flex:1;min-height:100px;overflow:auto;padding:2px}
|
|
89
|
+
.codingns-quick-app-dialog .qa-file-empty{padding:32px 16px;text-align:center}
|
|
90
|
+
.codingns-quick-app-dialog .qa-file-row{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:8px 10px;border:0;border-radius:7px;background:transparent;color:inherit;text-align:left;font:inherit;font-size:${uiFontSize(13)};cursor:pointer}
|
|
91
|
+
.codingns-quick-app-dialog .qa-file-row svg{flex:none}
|
|
92
|
+
.codingns-quick-app-dialog .qa-file-row span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
93
|
+
.codingns-quick-app-dialog .qa-file-row:hover{background:${color.hoverBackground}}
|
|
94
|
+
.codingns-quick-app-dialog .qa-file-row[aria-pressed=true]{background:color-mix(in srgb,${color.accent} 12%,transparent);color:${color.accent}}
|
|
95
|
+
.codingns-quick-app-dialog .qa-selected-file{margin:0;min-height:20px;font-size:${uiFontSize(12)};color:${color.labelSecondary};overflow-wrap:anywhere}
|
|
96
|
+
.codingns-quick-app-dialog .qa-field-error{font-size:${uiFontSize(12)};font-weight:400;color:${color.error}}
|
|
97
|
+
.codingns-quick-app-dialog .qa-management{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;border:0;min-width:0}
|
|
98
|
+
.codingns-quick-app-dialog .qa-management .qa-actions{justify-content:flex-start}
|
|
99
|
+
.codingns-quick-app-dialog .qa-management:disabled{opacity:.5}
|
|
100
|
+
/* Native TextPreview/Browser panel geometry; public PathLabel, Tooltip and glyphs retain their own styles. */
|
|
101
|
+
.codingns-quick-app-dialog.qa-viewer{width:80vw;height:85dvh;max-height:100%;gap:0;padding:0;border-radius:var(--dsw-radius-panel,12px)}
|
|
102
|
+
.codingns-quick-app-dialog.qa-viewer.qa-maximized{width:100%;height:100%;border-radius:0}
|
|
103
|
+
[role=presentation]:has(>.qa-viewer.qa-maximized){padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
|
|
104
|
+
.codingns-quick-app-dialog.qa-view-confirm{height:auto;max-height:75dvh}
|
|
105
|
+
.codingns-quick-app-dialog .qa-view-surface{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;color:${color.labelPrimary};background:${color.pageBackground}}
|
|
106
|
+
.codingns-quick-app-dialog :is(.qa-view-titlebar,.qa-view-toolbar){display:flex;flex:none;align-items:center;gap:4px;box-sizing:border-box;height:38px;padding:0 6px 0 16px;border-bottom:.5px solid ${color.menuBorder}}
|
|
107
|
+
.codingns-quick-app-dialog .qa-view-titlebar{gap:8px}
|
|
108
|
+
.codingns-quick-app-dialog .qa-view-titlebar h2{flex:1;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:${uiFontSize(13)};font-weight:500}
|
|
109
|
+
.codingns-quick-app-dialog .qa-view-titlebar>svg{flex:none}
|
|
110
|
+
.codingns-quick-app-dialog .qa-view-tool{display:inline-flex;flex:none;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;border-radius:var(--dsw-radius-sm,6px);background:transparent;color:${color.labelSecondary};cursor:pointer}
|
|
111
|
+
.codingns-quick-app-dialog .qa-view-tool svg{width:15px;height:15px}
|
|
112
|
+
.codingns-quick-app-dialog .qa-view-tool:hover:not(:disabled){color:${color.labelPrimary};background:${color.hoverBackground}}
|
|
113
|
+
.codingns-quick-app-dialog .qa-view-tool:disabled{color:var(--dsw-alias-label-quaternary,GrayText);cursor:default}
|
|
114
|
+
.codingns-quick-app-dialog .qa-view-path{margin-right:12px;font-size:${uiFontSize(12)}}
|
|
115
|
+
.codingns-quick-app-dialog .qa-view-mode{flex:none;border:0;border-radius:var(--dsw-radius-sm,6px);padding:5px 8px;color:${color.labelSecondary};background:transparent;font:inherit;font-size:${uiFontSize(12)};cursor:pointer}
|
|
116
|
+
.codingns-quick-app-dialog .qa-view-mode:hover{background:${color.hoverBackground}}
|
|
117
|
+
.codingns-quick-app-dialog .qa-document-dirty{color:${color.labelSecondary};font-size:9px}
|
|
118
|
+
.codingns-quick-app-dialog .qa-document-markdown{flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;padding:12px 18px;overflow-wrap:anywhere}
|
|
119
|
+
.codingns-quick-app-dialog .qa-document-markdown img{max-width:100%}
|
|
120
|
+
.codingns-quick-app-dialog .qa-document-editor{flex:1;display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}
|
|
121
|
+
.codingns-quick-app-dialog .qa-editor-host{flex:1;min-height:0;overflow:hidden}
|
|
122
|
+
.codingns-quick-app-dialog .qa-editor-host .cm-editor{min-height:0;font-size:var(--dsh-content-font-size-secondary,${uiFontSize(13)})}
|
|
123
|
+
.codingns-quick-app-dialog .qa-view-progress{flex:none;height:2px;background:${color.accent};opacity:.7}
|
|
124
|
+
.codingns-quick-app-dialog .qa-view-status{flex:none;margin:0;padding:6px 12px;color:${color.labelSecondary};font-size:${uiFontSize(12)}}
|
|
125
|
+
.codingns-quick-app-dialog .qa-view-html .qa-view-toolbar{padding:5px 6px}
|
|
126
|
+
.codingns-quick-app-dialog .qa-view-address{flex:1;min-width:0;height:28px;box-sizing:border-box;padding:0 9px;border:.5px solid ${color.border};border-radius:var(--dsw-radius-sm,6px);background:${color.cardBackground};color:${color.labelPrimary};font:inherit;font-size:${uiFontSize(12)}}
|
|
127
|
+
.codingns-quick-app-dialog .qa-view-text-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;white-space:pre;--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2)}
|
|
128
|
+
.codingns-quick-app-dialog .qa-view-text-body[data-wrap=true]{white-space:pre-wrap;overflow-wrap:anywhere}
|
|
129
|
+
.codingns-quick-app-dialog .qa-view-text-body pre{box-sizing:border-box;min-width:100%;min-height:100%;margin:0;padding:8px 18px;font-family:var(--dsw-font-mono,${color.codeFont});font-size:var(--dsh-content-font-size-secondary,${uiFontSize(13)});line-height:1.6;white-space:inherit}
|
|
130
|
+
.codingns-quick-app-dialog .qa-view-frame{flex:1;min-height:0;width:100%;border:0;background:${color.pageBackground}}
|
|
131
|
+
.codingns-quick-app-dialog .qa-view-error{flex:none;margin:0;padding:6px 12px;color:${color.error};background:color-mix(in srgb,${color.error} 8%,transparent);font-size:${uiFontSize(12)};line-height:1.5;overflow-wrap:anywhere}
|
|
132
|
+
@media(pointer:coarse){.codingns-quick-app-dialog :is(.qa-view-titlebar,.qa-view-toolbar){height:44px}.codingns-quick-app-dialog .qa-view-tool{width:40px;height:40px}}
|
|
133
|
+
@media(max-width:640px){
|
|
134
|
+
[role=presentation]:has(>.codingns-quick-app-dialog){align-items:flex-end;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) 0 env(safe-area-inset-left,0px)}
|
|
135
|
+
.codingns-quick-app-dialog{width:100%;height:auto;max-height:100%;border-radius:16px 16px 0 0;padding-bottom:max(16px,env(safe-area-inset-bottom,0px))}
|
|
136
|
+
.codingns-quick-app-dialog.qa-file-picker{width:100%;height:75dvh}
|
|
137
|
+
.codingns-quick-app-dialog.qa-viewer{width:100%;height:100%;border-radius:0;padding-bottom:env(safe-area-inset-bottom,0px)}
|
|
138
|
+
.codingns-quick-app-dialog .qa-button{min-height:40px}
|
|
139
|
+
.codingns-quick-app-dialog .qa-actions>button{flex:1}
|
|
140
|
+
.codingns-quick-app-dialog .qa-file-input .qa-browse{min-height:36px}
|
|
141
|
+
}
|
|
142
|
+
`;
|
|
143
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|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4DACnJ,KAAK,CAAC,eAAe;sDAC3B,KAAK,CAAC,cAAc;;;;;qHAK2C,UAAU,CAAC,EAAE,CAAC;+EACpD,KAAK,CAAC,MAAM;uFACJ,KAAK,CAAC,cAAc,cAAc,UAAU,CAAC,EAAE,CAAC;;mIAEJ,KAAK,CAAC,MAAM,sDAAsD,KAAK,CAAC,cAAc,UAAU,KAAK,CAAC,YAAY,2BAA2B,UAAU,CAAC,EAAE,CAAC;;;mKAG3H,KAAK,CAAC,QAAQ,qDAAqD,UAAU,CAAC,EAAE,CAAC;+FACrJ,KAAK,CAAC,cAAc;sFAC7B,KAAK,CAAC,KAAK,iCAAiC,KAAK,CAAC,KAAK,8BAA8B,UAAU,CAAC,EAAE,CAAC;;;;;;;;;;;CAWxL,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ComponentProps, type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
import { DshButton } from '../../dsh-capabilities/client/primitives-adapter.js';
|
|
3
|
+
/** Content atoms follow CodingNS ModalAtoms; DSH retains the portal and focus lifecycle. */
|
|
4
|
+
export declare function QuickAppField({ id, label, help, error, children }: {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
help?: string | undefined;
|
|
8
|
+
error?: string | undefined;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
}): ReactElement;
|
|
11
|
+
export declare function QuickAppActions({ children }: {
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
}): ReactElement;
|
|
14
|
+
export declare function QuickAppButton({ children, danger, variant, className, ...props }: ComponentProps<typeof DshButton> & {
|
|
15
|
+
danger?: boolean;
|
|
16
|
+
}): ReactElement;
|
|
17
|
+
export declare function QuickAppControlIcon({ icon }: {
|
|
18
|
+
icon: 'add' | 'edit' | 'done' | 'retry' | 'collapse' | 'expand' | 'remove';
|
|
19
|
+
}): ReactElement;
|
|
20
|
+
//# sourceMappingURL=ui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../../../../src/client/quick-apps/ui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAClG,OAAO,EAAE,SAAS,EAA4B,MAAM,qDAAqD,CAAA;AAEzG,4FAA4F;AAC5F,wBAAgB,aAAa,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,GAAG,YAAY,CAG5L;AAED,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,GAAG,YAAY,CAEpF;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,MAAc,EAAE,OAAiB,EAAE,SAAc,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,SAAS,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,YAAY,CAG/K;AAED,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAA;CAAE,GAAG,YAAY,CAK1I"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createElement as h } from 'react';
|
|
2
|
+
import { DshButton, resolveTerminalArrowIcon } from '../../dsh-capabilities/client/primitives-adapter.js';
|
|
3
|
+
/** Content atoms follow CodingNS ModalAtoms; DSH retains the portal and focus lifecycle. */
|
|
4
|
+
export function QuickAppField({ id, label, help, error, children }) {
|
|
5
|
+
return h('div', { className: 'qa-field' }, h('label', { htmlFor: id }, label), children, error ? h('span', { id: `${id}-help`, className: 'qa-field-error', role: 'alert' }, error) : help ? h('span', { id: `${id}-help`, className: 'qa-help' }, help) : null);
|
|
6
|
+
}
|
|
7
|
+
export function QuickAppActions({ children }) {
|
|
8
|
+
return h('div', { className: 'qa-actions' }, children);
|
|
9
|
+
}
|
|
10
|
+
export function QuickAppButton({ children, danger = false, variant = 'ghost', className = '', ...props }) {
|
|
11
|
+
return h(DshButton, { ...props, type: props.type ?? 'button', variant,
|
|
12
|
+
className: `qa-button${danger ? ' qa-danger' : ''}${variant === 'primary' ? ' qa-primary' : ''} ${className}`.trim() }, children);
|
|
13
|
+
}
|
|
14
|
+
export function QuickAppControlIcon({ icon }) {
|
|
15
|
+
if (icon === 'collapse' || icon === 'expand')
|
|
16
|
+
return h(resolveTerminalArrowIcon(icon === 'collapse' ? 'down' : 'up'), { size: 16 });
|
|
17
|
+
const path = { add: 'M12 5v14M5 12h14', edit: 'm16 3 5 5-12 12H4v-5L16 3ZM13 6l5 5', done: 'm5 12 4 4L19 6', retry: 'M20 7v5h-5M20 12a8 8 0 1 0-2 5',
|
|
18
|
+
collapse: 'm6 9 6 6 6-6', expand: 'm6 15 6-6 6 6', remove: 'm7 7 10 10M7 17 17 7' }[icon];
|
|
19
|
+
return h('svg', { viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 1.6, strokeLinecap: 'round', strokeLinejoin: 'round', 'aria-hidden': true }, h('path', { d: path }));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=ui.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.js","sourceRoot":"","sources":["../../../../../src/client/quick-apps/ui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,CAAC,EAA0D,MAAM,OAAO,CAAA;AAClG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a,CAAC,CAAC,CAAC,EAAE,IAAI,SAAS,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AACrI,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,EAAE,IAAI,EAAkF;IAC1H,IAAI,IAAI,KAAK,UAAU,IAAI,IAAI,KAAK,QAAQ;QAAE,OAAO,CAAC,CAAC,wBAAwB,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAA;IACnI,MAAM,IAAI,GAAG,EAAE,GAAG,EAAE,kBAAkB,EAAE,IAAI,EAAE,qCAAqC,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,gCAAgC;QAClJ,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,sBAAsB,EAAE,CAAC,IAAI,CAAC,CAAA;IAC3F,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,GAAG,EAAE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;AACjM,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import type { QuickApp } from '../../shared/contracts/quick-apps.js';
|
|
3
|
+
import type { CodingNsTranslator } from '../locale.js';
|
|
4
|
+
import type { QuickAppsClient, QuickAppView } from './client.js';
|
|
5
|
+
/** Native renderers and editor with Quick Apps ownership, save preconditions and lifetime. */
|
|
6
|
+
export declare function QuickAppViewer({ app, view, client, busy, error, t, onClose, onReload }: {
|
|
7
|
+
app: QuickApp;
|
|
8
|
+
view: QuickAppView;
|
|
9
|
+
client?: QuickAppsClient;
|
|
10
|
+
busy: boolean;
|
|
11
|
+
error?: string | undefined;
|
|
12
|
+
t: CodingNsTranslator;
|
|
13
|
+
onClose(): void;
|
|
14
|
+
onReload(): void;
|
|
15
|
+
}): ReactElement;
|
|
16
|
+
//# sourceMappingURL=viewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewer.d.ts","sourceRoot":"","sources":["../../../../../src/client/quick-apps/viewer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmD,KAAK,YAAY,EAAE,MAAM,OAAO,CAAA;AAC1F,OAAO,KAAK,EAAE,QAAQ,EAAoB,MAAM,sCAAsC,CAAA;AACtF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAEtD,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAOhE,8FAA8F;AAC9F,wBAAgB,cAAc,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE;IACvF,GAAG,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,YAAY,CAAC;IAAC,MAAM,CAAC,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,CAAC,EAAE,kBAAkB,CAAA;IAC7H,OAAO,IAAI,IAAI,CAAC;IAAC,QAAQ,IAAI,IAAI,CAAA;CAClC,GAAG,YAAY,CAqHf"}
|