@celljs/ta-web 4.9.0 → 4.10.0
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 +4 -3
- package/README.md +4 -3
- package/esm/browser/assistant/assistant-chat-list.js +8 -2
- package/esm/browser/assistant/assistant-extension.d.ts +8 -1
- package/esm/browser/assistant/assistant-extension.js +33 -5
- package/esm/browser/assistant/assistant-protocol.d.ts +3 -1
- package/esm/browser/assistant/assistant-task-source.d.ts +2 -0
- package/esm/browser/assistant/assistant-task-source.js +2 -0
- package/esm/browser/assistant/assistant-task-util.d.ts +8 -0
- package/esm/browser/assistant/assistant-task-util.js +13 -3
- package/esm/browser/assistant/assistant-tasks.js +3 -2
- package/esm/browser/assistant/assistant-view.js +81 -56
- package/esm/browser/assistant/assistant.d.ts +30 -1
- package/esm/browser/assistant/assistant.js +89 -6
- package/esm/browser/assistant/task-views.d.ts +40 -6
- package/esm/browser/assistant/task-views.js +73 -21
- package/esm/browser/avatar/dino-avatar.d.ts +3 -4
- package/esm/browser/avatar/dino-avatar.js +4 -178
- package/esm/browser/avatar/dino-face.d.ts +19 -0
- package/esm/browser/avatar/dino-face.js +142 -0
- package/esm/browser/avatar/dino-geometry.d.ts +11 -0
- package/esm/browser/avatar/dino-geometry.js +38 -0
- package/esm/browser/avatar/dino-kinds.d.ts +15 -0
- package/esm/browser/avatar/dino-kinds.js +544 -0
- package/esm/browser/avatar/dino-motion.js +1 -1
- package/esm/browser/avatar/dino-shape.d.ts +80 -0
- package/esm/browser/avatar/dino-shape.js +113 -0
- package/esm/browser/avatar/dino-species.d.ts +1 -61
- package/esm/browser/avatar/dino-species.js +2 -653
- package/esm/browser/chat/chat-packages.d.ts +39 -0
- package/esm/browser/chat/chat-packages.js +70 -0
- package/esm/browser/chat/chat-protocol.d.ts +23 -1
- package/esm/browser/chat/chat-stores.d.ts +59 -0
- package/esm/browser/chat/chat-stores.js +121 -0
- package/esm/browser/chat/chat-util.d.ts +17 -0
- package/esm/browser/chat/chat-util.js +61 -0
- package/esm/browser/chat/chat-view.js +33 -12
- package/esm/browser/chat/chat.d.ts +31 -39
- package/esm/browser/chat/chat.js +226 -175
- package/esm/browser/components/access-view.js +1 -1
- package/esm/browser/components/account-menu.js +1 -1
- package/esm/browser/components/app-nav.d.ts +6 -3
- package/esm/browser/components/app-nav.js +19 -10
- package/esm/browser/components/app-shell-hooks.d.ts +47 -0
- package/esm/browser/components/app-shell-hooks.js +169 -0
- package/esm/browser/components/app-view.js +81 -172
- package/esm/browser/components/auth-view.js +1 -1
- package/esm/browser/components/chat-list.d.ts +20 -2
- package/esm/browser/components/chat-list.js +138 -22
- package/esm/browser/components/composer-box.d.ts +5 -5
- package/esm/browser/components/composer-box.js +111 -4
- package/esm/browser/components/composer.d.ts +7 -0
- package/esm/browser/components/composer.js +22 -14
- package/esm/browser/components/connection-bar.js +50 -17
- package/esm/browser/components/context-menu.d.ts +30 -4
- package/esm/browser/components/context-menu.js +199 -37
- package/esm/browser/components/conversation-scroll.d.ts +129 -6
- package/esm/browser/components/conversation-scroll.js +429 -109
- package/esm/browser/components/dino.js +1 -1
- package/esm/browser/components/earlier-messages.d.ts +2 -1
- package/esm/browser/components/earlier-messages.js +2 -17
- package/esm/browser/components/editor-area.d.ts +3 -1
- package/esm/browser/components/editor-area.js +6 -5
- package/esm/browser/components/empty-pictures.d.ts +0 -2
- package/esm/browser/components/empty-pictures.js +0 -16
- package/esm/browser/components/folder-picker.d.ts +5 -2
- package/esm/browser/components/folder-picker.js +30 -9
- package/esm/browser/components/held-talk.d.ts +28 -0
- package/esm/browser/components/held-talk.js +76 -0
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/host-view.js +1 -1
- package/esm/browser/components/icon.d.ts +2 -2
- package/esm/browser/components/icon.js +5 -6
- package/esm/browser/components/image-viewer.d.ts +124 -0
- package/esm/browser/components/image-viewer.js +397 -0
- package/esm/browser/components/lightbox.d.ts +11 -0
- package/esm/browser/components/lightbox.js +24 -0
- package/esm/browser/components/markdown.d.ts +6 -2
- package/esm/browser/components/markdown.js +24 -10
- package/esm/browser/components/media.js +1 -10
- package/esm/browser/components/message-footer.d.ts +16 -2
- package/esm/browser/components/message-footer.js +29 -12
- package/esm/browser/components/message-list.d.ts +24 -3
- package/esm/browser/components/message-list.js +149 -20
- package/esm/browser/components/message-menu.d.ts +3 -1
- package/esm/browser/components/message-menu.js +18 -3
- package/esm/browser/components/nav-places.d.ts +16 -1
- package/esm/browser/components/nav-places.js +12 -3
- package/esm/browser/components/phone-shell.d.ts +4 -1
- package/esm/browser/components/phone-shell.js +3 -1
- package/esm/browser/components/run-status.js +3 -3
- package/esm/browser/components/select-bar.d.ts +9 -0
- package/esm/browser/components/select-bar.js +24 -0
- package/esm/browser/components/session-settings.d.ts +6 -0
- package/esm/browser/components/session-settings.js +14 -1
- package/esm/browser/components/session-view.js +8 -4
- package/esm/browser/components/settings-choices.d.ts +35 -0
- package/esm/browser/components/settings-choices.js +117 -0
- package/esm/browser/components/settings-parts.d.ts +21 -0
- package/esm/browser/components/settings-parts.js +323 -0
- package/esm/browser/components/settings-view.d.ts +0 -6
- package/esm/browser/components/settings-view.js +4 -406
- package/esm/browser/components/swipe-row.d.ts +2 -2
- package/esm/browser/components/swipe-row.js +7 -3
- package/esm/browser/components/tool-view.js +14 -12
- package/esm/browser/components/voice-button.d.ts +1 -1
- package/esm/browser/components/voice-button.js +1 -1
- package/esm/browser/components/voice-talk.d.ts +43 -0
- package/esm/browser/components/voice-talk.js +222 -0
- package/esm/browser/components/workbench-view.js +1 -1
- package/esm/browser/device/device.d.ts +3 -0
- package/esm/browser/device/device.js +11 -1
- package/esm/browser/device/hold.d.ts +42 -0
- package/esm/browser/device/hold.js +136 -0
- package/esm/browser/device/launch-screen.d.ts +1 -1
- package/esm/browser/device/launch-screen.js +1 -1
- package/esm/browser/device/long-press.d.ts +2 -0
- package/esm/browser/device/long-press.js +16 -1
- package/esm/browser/device/pull-down.d.ts +4 -2
- package/esm/browser/device/pull-down.js +64 -76
- package/esm/browser/device/row-swipe.d.ts +35 -10
- package/esm/browser/device/row-swipe.js +149 -71
- package/esm/browser/device/shake-undo.d.ts +16 -0
- package/esm/browser/device/shake-undo.js +59 -0
- package/esm/browser/device/sheet-swipe.d.ts +118 -18
- package/esm/browser/device/sheet-swipe.js +406 -107
- package/esm/browser/extension/icons.js +2 -1
- package/esm/browser/extension/web-extension-api.d.ts +135 -2
- package/esm/browser/extension/web-extension-code.d.ts +6 -0
- package/esm/browser/extension/web-extension-code.js +24 -0
- package/esm/browser/extension/web-extension-protocol.d.ts +23 -1
- package/esm/browser/extension/web-extension-protocol.js +8 -0
- package/esm/browser/extension/web-extensions.d.ts +14 -1
- package/esm/browser/extension/web-extensions.js +128 -24
- package/esm/browser/extension/web-tasks.d.ts +9 -1
- package/esm/browser/extension/web-tasks.js +24 -0
- package/esm/browser/files/files-protocol.d.ts +25 -0
- package/esm/browser/files/files-protocol.js +2 -0
- package/esm/browser/files/files.d.ts +35 -0
- package/esm/browser/files/files.js +119 -0
- package/esm/browser/hooks.d.ts +3 -1
- package/esm/browser/hooks.js +8 -0
- package/esm/browser/i18n/locales.d.ts +29 -2
- package/esm/browser/i18n/messages.d.ts +28 -1
- package/esm/browser/i18n/messages.js +58 -4
- package/esm/browser/index.d.ts +6 -0
- package/esm/browser/index.js +6 -0
- package/esm/browser/notices/notices-protocol.d.ts +9 -1
- package/esm/browser/notices/notices.d.ts +2 -0
- package/esm/browser/notices/notices.js +20 -10
- package/esm/browser/offline/device-values.d.ts +55 -0
- package/esm/browser/offline/device-values.js +142 -0
- package/esm/browser/offline/kept-chats-protocol.d.ts +17 -0
- package/esm/browser/offline/kept-chats-protocol.js +2 -0
- package/esm/browser/offline/kept-chats.d.ts +47 -0
- package/esm/browser/offline/kept-chats.js +146 -0
- package/esm/browser/offline/offline-reads.d.ts +44 -0
- package/esm/browser/offline/offline-reads.js +107 -0
- package/esm/browser/settings/settings-protocol.d.ts +2 -0
- package/esm/browser/settings/settings-protocol.js +2 -0
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +57 -17
- package/esm/browser/style/device.js +43 -4
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/layout.js +67 -15
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +2 -1
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +47 -3
- package/esm/browser/style/tasks.d.ts +1 -1
- package/esm/browser/style/tasks.js +2 -0
- package/esm/browser/util/frame.d.ts +5 -4
- package/esm/browser/util/frame.js +5 -4
- package/esm/browser/util/markdown.d.ts +18 -1
- package/esm/browser/util/markdown.js +119 -5
- package/esm/browser/util/process.d.ts +21 -0
- package/esm/browser/util/process.js +45 -1
- package/esm/browser/util/voice.d.ts +5 -2
- package/esm/browser/util/voice.js +6 -3
- package/esm/browser/util/zoom.d.ts +46 -0
- package/esm/browser/util/zoom.js +96 -0
- package/esm/browser/workbench-calls.d.ts +59 -0
- package/esm/browser/workbench-calls.js +141 -0
- package/esm/browser/workbench-protocol.d.ts +5 -1
- package/esm/browser/workbench-util.d.ts +68 -0
- package/esm/browser/workbench-util.js +145 -0
- package/esm/browser/workbench.d.ts +15 -42
- package/esm/browser/workbench.js +53 -167
- package/lib/browser/assistant/assistant-chat-list.js +8 -2
- package/lib/browser/assistant/assistant-extension.d.ts +8 -1
- package/lib/browser/assistant/assistant-extension.js +33 -5
- package/lib/browser/assistant/assistant-protocol.d.ts +3 -1
- package/lib/browser/assistant/assistant-task-source.d.ts +2 -0
- package/lib/browser/assistant/assistant-task-source.js +2 -0
- package/lib/browser/assistant/assistant-task-util.d.ts +8 -0
- package/lib/browser/assistant/assistant-task-util.js +13 -3
- package/lib/browser/assistant/assistant-tasks.js +2 -1
- package/lib/browser/assistant/assistant-view.js +78 -53
- package/lib/browser/assistant/assistant.d.ts +30 -1
- package/lib/browser/assistant/assistant.js +89 -6
- package/lib/browser/assistant/task-views.d.ts +40 -6
- package/lib/browser/assistant/task-views.js +74 -21
- package/lib/browser/avatar/dino-avatar.d.ts +3 -4
- package/lib/browser/avatar/dino-avatar.js +27 -202
- package/lib/browser/avatar/dino-face.d.ts +20 -0
- package/lib/browser/avatar/dino-face.js +148 -0
- package/lib/browser/avatar/dino-geometry.d.ts +12 -0
- package/lib/browser/avatar/dino-geometry.js +47 -0
- package/lib/browser/avatar/dino-kinds.d.ts +16 -0
- package/lib/browser/avatar/dino-kinds.js +547 -0
- package/lib/browser/avatar/dino-motion.js +2 -2
- package/lib/browser/avatar/dino-shape.d.ts +81 -0
- package/lib/browser/avatar/dino-shape.js +126 -0
- package/lib/browser/avatar/dino-species.d.ts +1 -61
- package/lib/browser/avatar/dino-species.js +34 -687
- package/lib/browser/chat/chat-packages.d.ts +40 -0
- package/lib/browser/chat/chat-packages.js +74 -0
- package/lib/browser/chat/chat-protocol.d.ts +23 -1
- package/lib/browser/chat/chat-stores.d.ts +60 -0
- package/lib/browser/chat/chat-stores.js +125 -0
- package/lib/browser/chat/chat-util.d.ts +18 -0
- package/lib/browser/chat/chat-util.js +64 -0
- package/lib/browser/chat/chat-view.js +33 -12
- package/lib/browser/chat/chat.d.ts +31 -39
- package/lib/browser/chat/chat.js +227 -176
- package/lib/browser/components/access-view.js +2 -2
- package/lib/browser/components/account-menu.js +2 -2
- package/lib/browser/components/app-nav.d.ts +6 -3
- package/lib/browser/components/app-nav.js +17 -8
- package/lib/browser/components/app-shell-hooks.d.ts +48 -0
- package/lib/browser/components/app-shell-hooks.js +211 -0
- package/lib/browser/components/app-view.js +89 -180
- package/lib/browser/components/auth-view.js +3 -3
- package/lib/browser/components/chat-list.d.ts +20 -2
- package/lib/browser/components/chat-list.js +137 -21
- package/lib/browser/components/composer-box.d.ts +5 -5
- package/lib/browser/components/composer-box.js +111 -4
- package/lib/browser/components/composer.d.ts +7 -0
- package/lib/browser/components/composer.js +22 -14
- package/lib/browser/components/connection-bar.js +48 -15
- package/lib/browser/components/context-menu.d.ts +30 -4
- package/lib/browser/components/context-menu.js +198 -36
- package/lib/browser/components/conversation-scroll.d.ts +129 -6
- package/lib/browser/components/conversation-scroll.js +431 -110
- package/lib/browser/components/dino.js +3 -3
- package/lib/browser/components/earlier-messages.d.ts +2 -1
- package/lib/browser/components/earlier-messages.js +2 -17
- package/lib/browser/components/editor-area.d.ts +3 -1
- package/lib/browser/components/editor-area.js +5 -4
- package/lib/browser/components/empty-pictures.d.ts +0 -2
- package/lib/browser/components/empty-pictures.js +0 -17
- package/lib/browser/components/folder-picker.d.ts +5 -2
- package/lib/browser/components/folder-picker.js +30 -9
- package/lib/browser/components/held-talk.d.ts +29 -0
- package/lib/browser/components/held-talk.js +79 -0
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/host-view.js +5 -5
- package/lib/browser/components/icon.d.ts +2 -2
- package/lib/browser/components/icon.js +7 -6
- package/lib/browser/components/image-viewer.d.ts +125 -0
- package/lib/browser/components/image-viewer.js +435 -0
- package/lib/browser/components/lightbox.d.ts +12 -0
- package/lib/browser/components/lightbox.js +60 -0
- package/lib/browser/components/markdown.d.ts +6 -2
- package/lib/browser/components/markdown.js +24 -10
- package/lib/browser/components/media.js +2 -11
- package/lib/browser/components/message-footer.d.ts +16 -2
- package/lib/browser/components/message-footer.js +31 -12
- package/lib/browser/components/message-list.d.ts +24 -3
- package/lib/browser/components/message-list.js +146 -16
- package/lib/browser/components/message-menu.d.ts +3 -1
- package/lib/browser/components/message-menu.js +17 -2
- package/lib/browser/components/nav-places.d.ts +16 -1
- package/lib/browser/components/nav-places.js +13 -3
- package/lib/browser/components/phone-shell.d.ts +4 -1
- package/lib/browser/components/phone-shell.js +3 -1
- package/lib/browser/components/run-status.js +3 -3
- package/lib/browser/components/select-bar.d.ts +10 -0
- package/lib/browser/components/select-bar.js +61 -0
- package/lib/browser/components/session-settings.d.ts +6 -0
- package/lib/browser/components/session-settings.js +14 -1
- package/lib/browser/components/session-view.js +7 -3
- package/lib/browser/components/settings-choices.d.ts +36 -0
- package/lib/browser/components/settings-choices.js +156 -0
- package/lib/browser/components/settings-parts.d.ts +22 -0
- package/lib/browser/components/settings-parts.js +359 -0
- package/lib/browser/components/settings-view.d.ts +0 -6
- package/lib/browser/components/settings-view.js +2 -405
- package/lib/browser/components/swipe-row.d.ts +2 -2
- package/lib/browser/components/swipe-row.js +7 -3
- package/lib/browser/components/tool-view.js +14 -12
- package/lib/browser/components/voice-button.d.ts +1 -1
- package/lib/browser/components/voice-button.js +1 -1
- package/lib/browser/components/voice-talk.d.ts +44 -0
- package/lib/browser/components/voice-talk.js +260 -0
- package/lib/browser/components/workbench-view.js +3 -3
- package/lib/browser/device/device.d.ts +3 -0
- package/lib/browser/device/device.js +11 -1
- package/lib/browser/device/hold.d.ts +43 -0
- package/lib/browser/device/hold.js +173 -0
- package/lib/browser/device/launch-screen.d.ts +1 -1
- package/lib/browser/device/launch-screen.js +1 -1
- package/lib/browser/device/long-press.d.ts +2 -0
- package/lib/browser/device/long-press.js +16 -1
- package/lib/browser/device/pull-down.d.ts +4 -2
- package/lib/browser/device/pull-down.js +63 -75
- package/lib/browser/device/row-swipe.d.ts +35 -10
- package/lib/browser/device/row-swipe.js +148 -70
- package/lib/browser/device/shake-undo.d.ts +17 -0
- package/lib/browser/device/shake-undo.js +63 -0
- package/lib/browser/device/sheet-swipe.d.ts +118 -18
- package/lib/browser/device/sheet-swipe.js +410 -108
- package/lib/browser/extension/icons.js +1 -0
- package/lib/browser/extension/web-extension-api.d.ts +135 -2
- package/lib/browser/extension/web-extension-code.d.ts +6 -0
- package/lib/browser/extension/web-extension-code.js +24 -0
- package/lib/browser/extension/web-extension-protocol.d.ts +23 -1
- package/lib/browser/extension/web-extension-protocol.js +9 -1
- package/lib/browser/extension/web-extensions.d.ts +14 -1
- package/lib/browser/extension/web-extensions.js +125 -21
- package/lib/browser/extension/web-tasks.d.ts +9 -1
- package/lib/browser/extension/web-tasks.js +24 -0
- package/lib/browser/files/files-protocol.d.ts +26 -0
- package/lib/browser/files/files-protocol.js +5 -0
- package/lib/browser/files/files.d.ts +36 -0
- package/lib/browser/files/files.js +122 -0
- package/lib/browser/hooks.d.ts +3 -1
- package/lib/browser/hooks.js +9 -0
- package/lib/browser/i18n/locales.d.ts +29 -2
- package/lib/browser/i18n/messages.d.ts +28 -1
- package/lib/browser/i18n/messages.js +58 -4
- package/lib/browser/index.d.ts +6 -0
- package/lib/browser/index.js +6 -0
- package/lib/browser/notices/notices-protocol.d.ts +9 -1
- package/lib/browser/notices/notices.d.ts +2 -0
- package/lib/browser/notices/notices.js +20 -10
- package/lib/browser/offline/device-values.d.ts +56 -0
- package/lib/browser/offline/device-values.js +148 -0
- package/lib/browser/offline/kept-chats-protocol.d.ts +18 -0
- package/lib/browser/offline/kept-chats-protocol.js +5 -0
- package/lib/browser/offline/kept-chats.d.ts +48 -0
- package/lib/browser/offline/kept-chats.js +149 -0
- package/lib/browser/offline/offline-reads.d.ts +45 -0
- package/lib/browser/offline/offline-reads.js +111 -0
- package/lib/browser/settings/settings-protocol.d.ts +2 -0
- package/lib/browser/settings/settings-protocol.js +2 -0
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +57 -17
- package/lib/browser/style/device.js +43 -4
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/layout.js +67 -15
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +2 -1
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +47 -3
- package/lib/browser/style/tasks.d.ts +1 -1
- package/lib/browser/style/tasks.js +2 -0
- package/lib/browser/util/frame.d.ts +5 -4
- package/lib/browser/util/frame.js +5 -4
- package/lib/browser/util/markdown.d.ts +18 -1
- package/lib/browser/util/markdown.js +119 -5
- package/lib/browser/util/process.d.ts +21 -0
- package/lib/browser/util/process.js +46 -2
- package/lib/browser/util/voice.d.ts +5 -2
- package/lib/browser/util/voice.js +6 -3
- package/lib/browser/util/zoom.d.ts +47 -0
- package/lib/browser/util/zoom.js +99 -0
- package/lib/browser/workbench-calls.d.ts +60 -0
- package/lib/browser/workbench-calls.js +145 -0
- package/lib/browser/workbench-protocol.d.ts +5 -1
- package/lib/browser/workbench-util.d.ts +69 -0
- package/lib/browser/workbench-util.js +151 -0
- package/lib/browser/workbench.d.ts +15 -42
- package/lib/browser/workbench.js +74 -189
- package/package.json +10 -10
- package/public/launch.svg +46 -42
|
@@ -12,6 +12,8 @@ export interface EditorAreaProps {
|
|
|
12
12
|
onPin(id: string): void;
|
|
13
13
|
onOpenView(id: string): void;
|
|
14
14
|
onHide(): void;
|
|
15
|
+
/** Where its tools are (`ui.useCwd`): that of the conversation in front, else the default directory. */
|
|
16
|
+
cwd?: string;
|
|
15
17
|
/** Whether the workbench takes the place of the conversation too; none on narrow screens, where it always does. */
|
|
16
18
|
maximized?: boolean;
|
|
17
19
|
onMaximize?(): void;
|
|
@@ -23,7 +25,7 @@ export interface EditorAreaProps {
|
|
|
23
25
|
* open, hidden when not shown, so that what it holds (a scroll position, a page in a frame) survives
|
|
24
26
|
* switching.
|
|
25
27
|
*/
|
|
26
|
-
export declare function EditorArea({ editors, active, views, onShow, onClose, onPin, onOpenView, onHide, maximized, onMaximize, style }: EditorAreaProps): React.JSX.Element;
|
|
28
|
+
export declare function EditorArea({ editors, active, views, onShow, onClose, onPin, onOpenView, onHide, cwd, maximized, onMaximize, style }: EditorAreaProps): React.JSX.Element;
|
|
27
29
|
/** The cards of web extensions (`setWidget` with `placement: 'panel'`): a tab of the workbench. */
|
|
28
30
|
export declare function WorkbenchCards(): React.JSX.Element;
|
|
29
31
|
//# sourceMappingURL=editor-area.d.ts.map
|
|
@@ -42,9 +42,9 @@ const extension_view_1 = require("../extension/extension-view");
|
|
|
42
42
|
const web_extension_protocol_1 = require("../extension/web-extension-protocol");
|
|
43
43
|
const hooks_1 = require("../hooks");
|
|
44
44
|
const use_t_1 = require("../i18n/use-t");
|
|
45
|
+
const message_1 = require("../util/message");
|
|
45
46
|
const account_menu_1 = require("./account-menu");
|
|
46
47
|
const context_menu_1 = require("./context-menu");
|
|
47
|
-
const empty_pictures_1 = require("./empty-pictures");
|
|
48
48
|
const empty_state_1 = require("./empty-state");
|
|
49
49
|
const hero_cards_1 = require("./hero-cards");
|
|
50
50
|
const icon_1 = require("./icon");
|
|
@@ -95,8 +95,6 @@ function Launcher({ views, onOpenView }) {
|
|
|
95
95
|
const t = (0, use_t_1.useT)();
|
|
96
96
|
return (React.createElement("div", { className: "ta-workbench-launcher" },
|
|
97
97
|
React.createElement("div", { className: "ta-workbench-launcher-head" },
|
|
98
|
-
React.createElement("div", { className: "ta-empty-picture" },
|
|
99
|
-
React.createElement(empty_pictures_1.WorkbenchPicture, null)),
|
|
100
98
|
React.createElement("span", { className: "ta-workbench-launcher-title" }, t('ta.workbench.empty')),
|
|
101
99
|
React.createElement("span", { className: "ta-workbench-launcher-hint" }, t('ta.workbench.emptyHint'))),
|
|
102
100
|
views.map(view => (React.createElement("button", { key: view.id, type: "button", className: "ta-workbench-launch", onClick: () => onOpenView(view.id) },
|
|
@@ -109,7 +107,7 @@ function Launcher({ views, onOpenView }) {
|
|
|
109
107
|
* open, hidden when not shown, so that what it holds (a scroll position, a page in a frame) survives
|
|
110
108
|
* switching.
|
|
111
109
|
*/
|
|
112
|
-
function EditorArea({ editors, active, views, onShow, onClose, onPin, onOpenView, onHide, maximized, onMaximize, style }) {
|
|
110
|
+
function EditorArea({ editors, active, views, onShow, onClose, onPin, onOpenView, onHide, cwd, maximized, onMaximize, style }) {
|
|
113
111
|
const t = (0, use_t_1.useT)();
|
|
114
112
|
const [menu, openMenu] = (0, context_menu_1.useContextMenu)();
|
|
115
113
|
const menuFor = (editor) => {
|
|
@@ -151,6 +149,9 @@ function EditorArea({ editors, active, views, onShow, onClose, onPin, onOpenView
|
|
|
151
149
|
})),
|
|
152
150
|
menu,
|
|
153
151
|
React.createElement("div", { className: "ta-workbench-actions" },
|
|
152
|
+
cwd && (React.createElement("span", { className: "ta-workbench-cwd", title: t('ta.workbench.cwd', { path: cwd }) },
|
|
153
|
+
React.createElement(lucide_react_1.Folder, { size: 13, strokeWidth: 1.7, "aria-hidden": "true" }),
|
|
154
|
+
React.createElement("span", { className: "ta-ellipsis" }, message_1.MessageUtil.basename(cwd)))),
|
|
154
155
|
views.length > 0 && React.createElement(OpenMenu, { views: views, onOpenView: onOpenView }),
|
|
155
156
|
onMaximize && (React.createElement(icon_1.IconButton, { icon: maximized ? lucide_react_1.Minimize2 : lucide_react_1.Maximize2, label: t(maximized ? 'ta.workbench.restore' : 'ta.workbench.maximize'), className: "ta-wide-only", "aria-pressed": maximized, onClick: onMaximize })),
|
|
156
157
|
React.createElement(icon_1.IconButton, { icon: icon_1.SidebarRight, label: t('ta.panel.hide'), onClick: onHide }))),
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
/** The workbench: tabs of tools, the files of a directory and a terminal. */
|
|
3
|
-
export declare function WorkbenchPicture(): React.JSX.Element;
|
|
4
2
|
/** This computer, and over ssh a server where conversations can work. */
|
|
5
3
|
export declare function RemotePicture(): React.JSX.Element;
|
|
6
4
|
/** What the double was asked, and the tasks it runs for it: one done, one running, one waiting. */
|
|
@@ -33,7 +33,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.WorkbenchPicture = WorkbenchPicture;
|
|
37
36
|
exports.RemotePicture = RemotePicture;
|
|
38
37
|
exports.TasksPicture = TasksPicture;
|
|
39
38
|
const React = __importStar(require("react"));
|
|
@@ -41,22 +40,6 @@ const picture_1 = require("./picture");
|
|
|
41
40
|
/*
|
|
42
41
|
* The pictures of what is empty for now (EmptyState's `picture`): what will be there, at a glance.
|
|
43
42
|
*/
|
|
44
|
-
/** The workbench: tabs of tools, the files of a directory and a terminal. */
|
|
45
|
-
function WorkbenchPicture() {
|
|
46
|
-
return (React.createElement(picture_1.Picture, null,
|
|
47
|
-
React.createElement("rect", { className: "ta-pic-pane", x: "1", y: "1", width: "158", height: "17", rx: "9" }),
|
|
48
|
-
React.createElement("rect", { className: "ta-pic-accent", x: "8", y: "5", width: "36", height: "10", rx: "3" }),
|
|
49
|
-
React.createElement("rect", { className: "ta-pic-line", x: "49", y: "7.5", width: "26", height: "5", rx: "2.5" }),
|
|
50
|
-
React.createElement("rect", { className: "ta-pic-line", x: "81", y: "7.5", width: "26", height: "5", rx: "2.5" }),
|
|
51
|
-
[28, 39, 50, 61, 72].map((y, index) => (React.createElement(React.Fragment, { key: y },
|
|
52
|
-
React.createElement("rect", { className: index === 1 ? 'ta-pic-mark' : 'ta-pic-dot', x: index > 1 && index < 4 ? 18 : 10, y: y, width: "5", height: "5", rx: "1.5" }),
|
|
53
|
-
React.createElement(picture_1.PictureLine, { x: index > 1 && index < 4 ? 27 : 19, y: y, w: [24, 20, 16, 22, 18][index] })))),
|
|
54
|
-
React.createElement("rect", { className: "ta-pic-pane", x: "58", y: "25", width: "92", height: "61", rx: "5" }),
|
|
55
|
-
React.createElement("text", { className: "ta-pic-text", x: "65", y: "38" }, "$ bun test"),
|
|
56
|
-
React.createElement("rect", { className: "ta-pic-mark ta-pic-soft", x: "65", y: "45", width: "58", height: "5", rx: "2.5" }),
|
|
57
|
-
React.createElement(picture_1.PictureLine, { x: 65, y: 55, w: 44 }),
|
|
58
|
-
React.createElement("rect", { className: "ta-pic-mark", x: "65", y: "65", width: "4", height: "7", rx: "1" })));
|
|
59
|
-
}
|
|
60
43
|
/** This computer, and over ssh a server where conversations can work. */
|
|
61
44
|
function RemotePicture() {
|
|
62
45
|
return (React.createElement(picture_1.Picture, { width: 240, height: 72, frame: false, className: "ta-strip-pic" },
|
|
@@ -25,8 +25,11 @@ export declare namespace FolderPickerUtil {
|
|
|
25
25
|
function folders(entries: TaDirEntry[]): TaDirEntry[];
|
|
26
26
|
/** Where the tab of this computer starts: `initial` when it is a path of it, else the server's, else the root. */
|
|
27
27
|
function localStart(initial: string, serverCwd: string | undefined): string;
|
|
28
|
-
/**
|
|
29
|
-
|
|
28
|
+
/**
|
|
29
|
+
* What the user typed, as a location of the machine shown: a whole location, a path there, `~` and
|
|
30
|
+
* what is under it there, or a path relative to `current`, the directory shown.
|
|
31
|
+
*/
|
|
32
|
+
function typed(input: string, host: string | undefined, current: string): string;
|
|
30
33
|
}
|
|
31
34
|
export interface FolderPickerProps {
|
|
32
35
|
/** The entries of a directory of the server. */
|
|
@@ -41,6 +41,7 @@ const ta_protocol_1 = require("@celljs/ta-protocol");
|
|
|
41
41
|
const lucide_react_1 = require("lucide-react");
|
|
42
42
|
const React = __importStar(require("react"));
|
|
43
43
|
const react_dom_1 = require("react-dom");
|
|
44
|
+
const device_1 = require("../device/device");
|
|
44
45
|
const use_t_1 = require("../i18n/use-t");
|
|
45
46
|
const message_1 = require("../util/message");
|
|
46
47
|
const empty_state_1 = require("./empty-state");
|
|
@@ -78,10 +79,29 @@ var FolderPickerUtil;
|
|
|
78
79
|
return serverCwd && !ta_protocol_1.TaLocation.isRemote(serverCwd) ? serverCwd : '/';
|
|
79
80
|
}
|
|
80
81
|
FolderPickerUtil.localStart = localStart;
|
|
81
|
-
/**
|
|
82
|
-
|
|
82
|
+
/**
|
|
83
|
+
* What the user typed, as a location of the machine shown: a whole location, a path there, `~` and
|
|
84
|
+
* what is under it there, or a path relative to `current`, the directory shown.
|
|
85
|
+
*/
|
|
86
|
+
function typed(input, host, current) {
|
|
87
|
+
var _a;
|
|
83
88
|
const text = input.trim();
|
|
84
|
-
|
|
89
|
+
if (ta_protocol_1.TaLocation.isRemote(text)) {
|
|
90
|
+
return text;
|
|
91
|
+
}
|
|
92
|
+
if (ta_protocol_1.TaLocation.isAbsolute(text) || ta_protocol_1.TaLocation.homeRelative(text) !== undefined || ta_protocol_1.TaLocation.host(current) !== host) {
|
|
93
|
+
return host ? ta_protocol_1.TaLocation.ssh(host, `/${text}`) : text;
|
|
94
|
+
}
|
|
95
|
+
let at = current;
|
|
96
|
+
for (const name of text.split(/[\\/]+/)) {
|
|
97
|
+
if (name === '..') {
|
|
98
|
+
at = (_a = ta_protocol_1.TaLocation.parent(at)) !== null && _a !== void 0 ? _a : at;
|
|
99
|
+
}
|
|
100
|
+
else if (name && name !== '.') {
|
|
101
|
+
at = ta_protocol_1.TaLocation.child(at, name);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return at;
|
|
85
105
|
}
|
|
86
106
|
FolderPickerUtil.typed = typed;
|
|
87
107
|
})(FolderPickerUtil || (exports.FolderPickerUtil = FolderPickerUtil = {}));
|
|
@@ -152,6 +172,8 @@ function Machines({ host, hosts, onPick }) {
|
|
|
152
172
|
function FolderPicker({ list, initial, onPick, onClose, remote: bench }) {
|
|
153
173
|
var _a;
|
|
154
174
|
const t = (0, use_t_1.useT)();
|
|
175
|
+
// On a touch screen the keyboard would cover the folders: the user goes folder by folder there.
|
|
176
|
+
const touch = (0, device_1.useDevice)(device => device.touch);
|
|
155
177
|
const [path, setPath] = React.useState(initial);
|
|
156
178
|
const [input, setInput] = React.useState(ta_protocol_1.TaLocation.path(initial));
|
|
157
179
|
const [folders, setFolders] = React.useState();
|
|
@@ -169,15 +191,14 @@ function FolderPicker({ list, initial, onPick, onClose, remote: bench }) {
|
|
|
169
191
|
/** Where `This computer` goes: the directory of this machine shown last. */
|
|
170
192
|
const local = React.useRef(FolderPickerUtil.localStart(initial, (_a = bench === null || bench === void 0 ? void 0 : bench.state.server) === null || _a === void 0 ? void 0 : _a.cwd));
|
|
171
193
|
const go = React.useCallback((next) => {
|
|
172
|
-
var _a;
|
|
173
194
|
const request = ++latest.current;
|
|
174
195
|
setFailed(undefined);
|
|
175
196
|
setLoading(true);
|
|
176
197
|
setHost(ta_protocol_1.TaLocation.host(next));
|
|
177
198
|
setInput(ta_protocol_1.TaLocation.path(next));
|
|
178
|
-
//
|
|
179
|
-
|
|
180
|
-
|
|
199
|
+
// `~` and a relative path are known on the server; a host's home directory once connected.
|
|
200
|
+
Promise.resolve()
|
|
201
|
+
.then(() => (bench && !ta_protocol_1.TaLocation.isAbsolute(next) ? bench.remote.resolveLocation(next) : next))
|
|
181
202
|
.then(async (location) => ({ location, entries: await list(location) }))
|
|
182
203
|
.then(({ location, entries }) => {
|
|
183
204
|
if (request === latest.current) {
|
|
@@ -220,12 +241,12 @@ function FolderPicker({ list, initial, onPick, onClose, remote: bench }) {
|
|
|
220
241
|
React.createElement("form", { className: "ta-folder-bar", onSubmit: event => {
|
|
221
242
|
event.preventDefault();
|
|
222
243
|
if (input.trim()) {
|
|
223
|
-
go(FolderPickerUtil.typed(input, host));
|
|
244
|
+
go(FolderPickerUtil.typed(input, host, path));
|
|
224
245
|
}
|
|
225
246
|
} },
|
|
226
247
|
React.createElement(icon_1.IconButton, { icon: lucide_react_1.CornerLeftUp, label: t('ta.folder.up'), disabled: !up, onClick: () => up && go(up) }),
|
|
227
248
|
React.createElement("label", { className: "ta-field ta-field-small" },
|
|
228
|
-
React.createElement("input", { autoFocus:
|
|
249
|
+
React.createElement("input", { autoFocus: !touch, spellCheck: false, value: input, "aria-label": t('ta.folder.path'), title: t('ta.folder.path'), onChange: event => setInput(event.target.value) }))),
|
|
229
250
|
React.createElement("ul", { className: "ta-folder-list" },
|
|
230
251
|
(folders === undefined || (loading && connecting)) && !failed && (React.createElement("li", { className: "ta-folder-note" },
|
|
231
252
|
React.createElement("span", { className: "ta-spinner" }),
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** A message box that talks for a hold of the navigation: the double's, or that of a new conversation. */
|
|
2
|
+
export type TalkPlace = 'double' | 'draft';
|
|
3
|
+
/** What a message box does for a hold that talks through it (useVoiceTalk). */
|
|
4
|
+
export interface TalkTarget {
|
|
5
|
+
start(): void;
|
|
6
|
+
/** Where the finger is: over 取消, over 编辑, or not. */
|
|
7
|
+
point(x: number, y: number): void;
|
|
8
|
+
/** The finger let go: what was said is given as the place under it says. */
|
|
9
|
+
release(): void;
|
|
10
|
+
cancel(): void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A conversation by voice begun from an entry of the navigation: the double, held, opens and its box listens;
|
|
14
|
+
* the chats, held, open a new conversation whose box listens. The box may not be there yet as the hold begins
|
|
15
|
+
* (its page comes as the finger is held), so the hold waits for it, with where the finger is.
|
|
16
|
+
*/
|
|
17
|
+
export declare namespace HeldTalk {
|
|
18
|
+
/** An entry is held: the box of its place listens, now or as it comes. */
|
|
19
|
+
function hold(place: TalkPlace): void;
|
|
20
|
+
function point(x: number, y: number): void;
|
|
21
|
+
/** The finger let go; a box that never came hears nothing, and the hold is not kept for the next one. */
|
|
22
|
+
function release(): void;
|
|
23
|
+
function cancel(): void;
|
|
24
|
+
/** The box of a place: it takes the hold waiting for it. Returns how to take it back. */
|
|
25
|
+
function attach(place: TalkPlace, box: TalkTarget): () => void;
|
|
26
|
+
/** The place a hold waits for the box of. */
|
|
27
|
+
function pending(): TalkPlace | undefined;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=held-talk.d.ts.map
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HeldTalk = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* A conversation by voice begun from an entry of the navigation: the double, held, opens and its box listens;
|
|
6
|
+
* the chats, held, open a new conversation whose box listens. The box may not be there yet as the hold begins
|
|
7
|
+
* (its page comes as the finger is held), so the hold waits for it, with where the finger is.
|
|
8
|
+
*/
|
|
9
|
+
var HeldTalk;
|
|
10
|
+
(function (HeldTalk) {
|
|
11
|
+
let waiting;
|
|
12
|
+
let talking;
|
|
13
|
+
const boxes = new Map();
|
|
14
|
+
/** An entry is held: the box of its place listens, now or as it comes. */
|
|
15
|
+
function hold(place) {
|
|
16
|
+
cancel();
|
|
17
|
+
const box = boxes.get(place);
|
|
18
|
+
if (box) {
|
|
19
|
+
talking = box;
|
|
20
|
+
box.start();
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
waiting = { place };
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
HeldTalk.hold = hold;
|
|
27
|
+
function point(x, y) {
|
|
28
|
+
if (talking) {
|
|
29
|
+
talking.point(x, y);
|
|
30
|
+
}
|
|
31
|
+
else if (waiting) {
|
|
32
|
+
waiting.at = { x, y };
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
HeldTalk.point = point;
|
|
36
|
+
/** The finger let go; a box that never came hears nothing, and the hold is not kept for the next one. */
|
|
37
|
+
function release() {
|
|
38
|
+
const box = talking;
|
|
39
|
+
waiting = undefined;
|
|
40
|
+
talking = undefined;
|
|
41
|
+
box === null || box === void 0 ? void 0 : box.release();
|
|
42
|
+
}
|
|
43
|
+
HeldTalk.release = release;
|
|
44
|
+
function cancel() {
|
|
45
|
+
const box = talking;
|
|
46
|
+
waiting = undefined;
|
|
47
|
+
talking = undefined;
|
|
48
|
+
box === null || box === void 0 ? void 0 : box.cancel();
|
|
49
|
+
}
|
|
50
|
+
HeldTalk.cancel = cancel;
|
|
51
|
+
/** The box of a place: it takes the hold waiting for it. Returns how to take it back. */
|
|
52
|
+
function attach(place, box) {
|
|
53
|
+
boxes.set(place, box);
|
|
54
|
+
if ((waiting === null || waiting === void 0 ? void 0 : waiting.place) === place) {
|
|
55
|
+
const { at } = waiting;
|
|
56
|
+
waiting = undefined;
|
|
57
|
+
talking = box;
|
|
58
|
+
box.start();
|
|
59
|
+
if (at) {
|
|
60
|
+
box.point(at.x, at.y);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return () => {
|
|
64
|
+
if (boxes.get(place) === box) {
|
|
65
|
+
boxes.delete(place);
|
|
66
|
+
}
|
|
67
|
+
if (talking === box) {
|
|
68
|
+
talking = undefined;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
HeldTalk.attach = attach;
|
|
73
|
+
/** The place a hold waits for the box of. */
|
|
74
|
+
function pending() {
|
|
75
|
+
return waiting === null || waiting === void 0 ? void 0 : waiting.place;
|
|
76
|
+
}
|
|
77
|
+
HeldTalk.pending = pending;
|
|
78
|
+
})(HeldTalk || (exports.HeldTalk = HeldTalk = {}));
|
|
79
|
+
//# sourceMappingURL=held-talk.js.map
|
|
@@ -4,7 +4,7 @@ import type { SavedHost } from '../workbench-protocol';
|
|
|
4
4
|
/** Adding a computer by its code or link: what the sign-in and the sheet of the computers share. */
|
|
5
5
|
export declare function useAddHost(): {
|
|
6
6
|
busy: boolean;
|
|
7
|
-
error: "ta.access.add" | "ta.access.addHint" | "ta.access.added" | "ta.access.allow" | "ta.access.bind" | "ta.access.bindHint" | "ta.access.browser" | "ta.access.dismiss" | "ta.access.fromEnv" | "ta.access.lastUsed" | "ta.access.none" | "ta.access.noneHint" | "ta.access.remove" | "ta.access.removeAccount" | "ta.access.removeConfirm" | "ta.access.removeDetail" | "ta.access.requested" | "ta.access.signOut" | "ta.access.thisBrowser" | "ta.access.title" | "ta.account" | "ta.account.menu" | "ta.account.service" | "ta.ask.no" | "ta.ask.start" | "ta.ask.title" | "ta.ask.waiting" | "ta.assistant.attention" | "ta.assistant.busy" | "ta.assistant.confirmOn" | "ta.assistant.copied" | "ta.assistant.copyCwd" | "ta.assistant.cwdTitle" | "ta.assistant.endedTasks" | "ta.assistant.export" | "ta.assistant.hello" | "ta.assistant.look" | "ta.assistant.me" | "ta.assistant.noTasks" | "ta.assistant.noTasksHint" | "ta.assistant.nothingToExport" | "ta.assistant.placeholder" | "ta.assistant.poke" | "ta.assistant.prompt" | "ta.assistant.promptTitle" | "ta.assistant.rename" | "ta.assistant.restart" | "ta.assistant.restartHint" | "ta.assistant.restartTitle" | "ta.assistant.runningTasks" | "ta.assistant.showTasks" | "ta.assistant.speakOff" | "ta.assistant.speakOn" | "ta.assistant.step.run" | "ta.assistant.step.say" | "ta.assistant.step.tell" | "ta.assistant.stop" | "ta.assistant.taskEnded" | "ta.assistant.tasks" | "ta.assistant.tasksTool" | "ta.assistant.waking" | "ta.assistant.working" | "ta.assistant.you" | "ta.auth.account" | "ta.auth.accounts" | "ta.auth.accountsExample" | "ta.auth.accountsTitle" | "ta.auth.apiKey" | "ta.auth.back" | "ta.auth.continue" | "ta.auth.copyAndOpen" | "ta.auth.copyCode" | "ta.auth.copyLink" | "ta.auth.deviceHint" | "ta.auth.done" | "ta.auth.enterKey" | "ta.auth.failed" | "ta.auth.hint" | "ta.auth.hintRemote" | "ta.auth.keys" | "ta.auth.keysExample" | "ta.auth.later" | "ta.auth.manualCode" | "ta.auth.manualCodeRemote" | "ta.auth.none" | "ta.auth.openHint" | "ta.auth.openPage" | "ta.auth.search" | "ta.auth.signOut" | "ta.auth.signOutConfirm" | "ta.auth.signedIn" | "ta.auth.subscription" | "ta.auth.title" | "ta.auth.waiting" | "ta.back" | "ta.board" | "ta.board.add" | "ta.board.done" | "ta.board.edit" | "ta.board.empty" | "ta.board.emptyHint" | "ta.board.moreTasks" | "ta.board.move" | "ta.board.noTasks" | "ta.board.none" | "ta.board.noneHint" | "ta.board.put" | "ta.board.remove" | "ta.board.tasks" | "ta.builtin.assistant" | "ta.builtin.assistantHint" | "ta.cancel" | "ta.chat" | "ta.chat.byDirectory" | "ta.chat.cwdTitle" | "ta.chat.doubleTag" | "ta.chat.doubleTagTitle" | "ta.chat.handToDouble" | "ta.chat.hint" | "ta.chat.new" | "ta.chat.newIn" | "ta.chat.noMatch" | "ta.chat.none" | "ta.chat.noneHint" | "ta.chat.open" | "ta.chat.opening" | "ta.chat.remove" | "ta.chat.removeShort" | "ta.chat.removed" | "ta.chat.restore" | "ta.chat.restoreShort" | "ta.chat.search" | "ta.chat.suggest.1" | "ta.chat.suggest.1.label" | "ta.chat.suggest.2" | "ta.chat.suggest.2.label" | "ta.chat.suggest.3" | "ta.chat.suggest.3.label" | "ta.chat.title" | "ta.close" | "ta.composer.addImage" | "ta.composer.commands" | "ta.composer.filesUnavailable" | "ta.composer.filter" | "ta.composer.image.count" | "ta.composer.image.size" | "ta.composer.image.type" | "ta.composer.imageLoading" | "ta.composer.label" | "ta.composer.listening" | "ta.composer.mentionFile" | "ta.composer.more" | "ta.composer.noFiles" | "ta.composer.noMatch" | "ta.composer.placeholder" | "ta.composer.placeholderTouch" | "ta.composer.queue.count" | "ta.composer.queue.editTitle" | "ta.composer.queue.followUp" | "ta.composer.queue.remove" | "ta.composer.queue.steering" | "ta.composer.queue.takeBackAll" | "ta.composer.queue.takeBackTitle" | "ta.composer.removeImage" | "ta.composer.steerPlaceholder" | "ta.composer.steerPlaceholderTouch" | "ta.composer.steerTitle" | "ta.composer.stopTitle" | "ta.composer.voice" | "ta.composer.voiceDenied" | "ta.composer.voiceFailed" | "ta.composer.voiceStop" | "ta.connection.away" | "ta.connection.back" | "ta.connection.lost" | "ta.connection.notDone" | "ta.connection.notDoneHint" | "ta.connection.retry" | "ta.connection.retryIn" | "ta.connection.retryNow" | "ta.connection.retrying" | "ta.copied" | "ta.copy" | "ta.discover" | "ta.discover.empty" | "ta.discover.emptyHint" | "ta.discover.hint" | "ta.dismiss" | "ta.editor" | "ta.editor.close" | "ta.editor.discardClose" | "ta.editor.failed" | "ta.editor.loading" | "ta.editor.unsavedManyTitle" | "ta.editor.unsavedMessage" | "ta.editor.unsavedTitle" | "ta.environment.connect" | "ta.environment.connections" | "ta.environment.failed" | "ta.environment.failedTitle" | "ta.environment.none" | "ta.environment.own" | "ta.environment.ownDetail" | "ta.environment.ownHint" | "ta.environment.restart" | "ta.environment.restartConfirm" | "ta.environment.restartDetail" | "ta.environment.retry" | "ta.environment.running" | "ta.environment.sandbox" | "ta.environment.starting" | "ta.environment.stop" | "ta.environment.stopConfirm" | "ta.environment.stopDetail" | "ta.environment.stopped" | "ta.environment.switch" | "ta.environment.switchConfirm" | "ta.environment.switchDetail" | "ta.environment.title" | "ta.environment.token" | "ta.environment.url" | "ta.environment.where" | "ta.environment.whereHint" | "ta.error.messageConflict" | "ta.error.modelNotFound" | "ta.error.sessionLocked" | "ta.error.sessionNotFound" | "ta.error.tooManySessions" | "ta.folder.empty" | "ta.folder.failed" | "ta.folder.open" | "ta.folder.path" | "ta.folder.title" | "ta.folder.up" | "ta.gait.bounce" | "ta.gait.sneak" | "ta.gait.strut" | "ta.gait.waddle" | "ta.gait.walk" | "ta.home" | "ta.host.title" | "ta.hosts.cameraDenied" | "ta.hosts.connecting" | "ta.hosts.notPairing" | "ta.hosts.paste" | "ta.hosts.refused" | "ta.hosts.remove" | "ta.hosts.removeConfirm" | "ta.hosts.rename" | "ta.hosts.saved" | "ta.hosts.scan" | "ta.hosts.scanFailed" | "ta.hosts.scanHint" | "ta.hosts.scanInstructions" | "ta.hosts.scanShort" | "ta.hosts.switching" | "ta.hosts.thisServer" | "ta.hosts.title" | "ta.hosts.unreachable" | "ta.launch.failed" | "ta.launch.open" | "ta.launch.ready" | "ta.launcher" | "ta.launcher.back" | "ta.launcher.clear" | "ta.launcher.noResults" | "ta.launcher.place.discover" | "ta.launcher.place.launcher" | "ta.launcher.place.list" | "ta.launcher.place.navigation" | "ta.launcher.search" | "ta.launcher.searchHint" | "ta.launcher.searchPlaceholder" | "ta.layout.editor" | "ta.layout.panel" | "ta.layout.resize" | "ta.layout.sidebar" | "ta.link.ask" | "ta.link.copied" | "ta.link.external" | "ta.link.externalMac" | "ta.link.noOpener" | "ta.link.notFound" | "ta.link.open" | "ta.link.openFile" | "ta.link.openFolder" | "ta.link.trust" | "ta.link.trustHint" | "ta.look.gait" | "ta.look.premium" | "ta.look.species" | "ta.look.title" | "ta.manage.about" | "ta.manage.accounts" | "ta.manage.packages" | "ta.manage.relay" | "ta.manage.shortcuts" | "ta.manage.workingDirectory" | "ta.markdown.diagram" | "ta.markdown.download" | "ta.markdown.enlarge" | "ta.markdown.exitFullscreen" | "ta.markdown.fullscreen" | "ta.markdown.missing" | "ta.markdown.source" | "ta.me" | "ta.menu" | "ta.message.branch" | "ta.message.compacted" | "ta.message.debug" | "ta.message.debugCopied" | "ta.message.forkAt" | "ta.message.forkBefore" | "ta.message.forked" | "ta.message.images" | "ta.message.notSaved" | "ta.message.rewind" | "ta.message.rewindConfirm" | "ta.message.rewindDetail" | "ta.message.selectText" | "ta.message.skill" | "ta.message.stopped" | "ta.message.thinking" | "ta.message.usageTitle" | "ta.message.used" | "ta.model.default" | "ta.model.defaultNone" | "ta.model.search" | "ta.mood.attention" | "ta.mood.done" | "ta.mood.idle" | "ta.mood.listening" | "ta.mood.sleeping" | "ta.mood.speaking" | "ta.mood.thinking" | "ta.mood.working" | "ta.more" | "ta.nav.fold" | "ta.nav.open" | "ta.nav.pin" | "ta.nav.settings" | "ta.no" | "ta.notice.picture" | "ta.notices" | "ta.off" | "ta.ok" | "ta.on" | "ta.online" | "ta.open.failed" | "ta.open.notALink" | "ta.open.open" | "ta.open.published" | "ta.open.relayed" | "ta.open.title" | "ta.packages" | "ta.packages.builtin" | "ta.packages.builtinTitle" | "ta.packages.failed" | "ta.packages.hint" | "ta.packages.installed" | "ta.packages.none" | "ta.packages.noneHint" | "ta.packages.reload" | "ta.packages.reloaded" | "ta.packages.remove" | "ta.packages.removeConfirm" | "ta.packages.removeDetail" | "ta.packages.removed" | "ta.packages.scope.project" | "ta.packages.scope.user" | "ta.panel.hide" | "ta.panel.show" | "ta.process.done" | "ta.process.earlier" | "ta.process.failed" | "ta.process.running" | "ta.process.thinking" | "ta.process.thought" | "ta.progress.calling" | "ta.progress.compacting" | "ta.progress.input" | "ta.progress.output" | "ta.progress.retrying" | "ta.progress.waiting" | "ta.pwa.install" | "ta.reconnecting" | "ta.relay.devices" | "ta.relay.done" | "ta.relay.hint" | "ta.relay.offline" | "ta.relay.online" | "ta.relay.pair" | "ta.relay.phone" | "ta.relay.scan" | "ta.relay.title" | "ta.relay.unpair" | "ta.relay.unpairConfirm" | "ta.remote.add" | "ta.remote.addHint" | "ta.remote.added" | "ta.remote.closePort" | "ta.remote.connect" | "ta.remote.connected" | "ta.remote.connectedTo" | "ta.remote.connecting" | "ta.remote.description" | "ta.remote.disconnect" | "ta.remote.disconnected" | "ta.remote.failed" | "ta.remote.forwarded" | "ta.remote.fromConfig" | "ta.remote.invalid" | "ta.remote.local" | "ta.remote.lost" | "ta.remote.none" | "ta.remote.noneHint" | "ta.remote.options" | "ta.remote.port" | "ta.remote.prompt.continue" | "ta.remote.prompt.title" | "ta.remote.prompt.trust" | "ta.remote.remove" | "ta.remote.step.checking" | "ta.remote.step.connecting" | "ta.remote.step.copying-server" | "ta.remote.step.installing-node" | "ta.remote.step.starting" | "ta.remote.title" | "ta.search.all" | "ta.search.failed" | "ta.search.loading" | "ta.search.more" | "ta.search.pages" | "ta.send" | "ta.session.compact" | "ta.session.compactTitle" | "ta.session.earlier" | "ta.session.empty" | "ta.session.model" | "ta.session.noModel" | "ta.session.phase.thinking" | "ta.session.phase.working" | "ta.session.phase.writing" | "ta.session.thinking" | "ta.session.title" | "ta.session.toBottom" | "ta.session.waitingClientTool" | "ta.session.working" | "ta.setting.codemode.mode" | "ta.setting.codemode.mode.hint" | "ta.setting.codemode.mode.on" | "ta.setting.codemode.mode.only" | "ta.setting.compaction.enabled" | "ta.setting.compaction.enabled.hint" | "ta.setting.compaction.keepRecentTokens" | "ta.setting.compaction.keepRecentTokens.hint" | "ta.setting.compaction.reserveTokens" | "ta.setting.compaction.reserveTokens.hint" | "ta.setting.defaultThinkingLevel" | "ta.setting.defaultThinkingLevel.high" | "ta.setting.defaultThinkingLevel.hint" | "ta.setting.defaultThinkingLevel.low" | "ta.setting.defaultThinkingLevel.max" | "ta.setting.defaultThinkingLevel.medium" | "ta.setting.defaultThinkingLevel.minimal" | "ta.setting.defaultThinkingLevel.off" | "ta.setting.defaultThinkingLevel.xhigh" | "ta.setting.enableSkillCommands" | "ta.setting.enableSkillCommands.hint" | "ta.setting.followUpMode" | "ta.setting.followUpMode.all" | "ta.setting.followUpMode.hint" | "ta.setting.followUpMode.one-at-a-time" | "ta.setting.images.autoResize" | "ta.setting.images.autoResize.hint" | "ta.setting.images.blockImages" | "ta.setting.images.blockImages.hint" | "ta.setting.model" | "ta.setting.model.hint" | "ta.setting.retry.enabled" | "ta.setting.retry.enabled.hint" | "ta.setting.retry.maxRetries" | "ta.setting.shellCommandPrefix" | "ta.setting.shellCommandPrefix.hint" | "ta.setting.shellPath" | "ta.setting.shellPath.hint" | "ta.setting.steeringMode" | "ta.setting.steeringMode.all" | "ta.setting.steeringMode.hint" | "ta.setting.steeringMode.one-at-a-time" | "ta.setting.transport" | "ta.setting.transport.auto" | "ta.setting.transport.hint" | "ta.settings" | "ta.settings.about" | "ta.settings.accounts" | "ta.settings.accountsDescription" | "ta.settings.agent" | "ta.settings.appearance" | "ta.settings.assistant" | "ta.settings.assistantModel" | "ta.settings.assistantModelHint" | "ta.settings.chatFontSize" | "ta.settings.chatFontSizeHint" | "ta.settings.confirmTasks" | "ta.settings.confirmTasksHint" | "ta.settings.cwd" | "ta.settings.cwdChange" | "ta.settings.cwdDescription" | "ta.settings.days" | "ta.settings.decides" | "ta.settings.default" | "ta.settings.displayLanguage" | "ta.settings.failed" | "ta.settings.fontSize" | "ta.settings.fontSize.large" | "ta.settings.fontSize.small" | "ta.settings.fontSize.standard" | "ta.settings.fontSize.xlarge" | "ta.settings.fontSizeHint" | "ta.settings.fromUser" | "ta.settings.group.context" | "ta.settings.group.conversation" | "ta.settings.group.model" | "ta.settings.group.tools" | "ta.settings.keepAlive" | "ta.settings.keepAliveDescription" | "ta.settings.language" | "ta.settings.language.system" | "ta.settings.links" | "ta.settings.loading" | "ta.settings.manageAccounts" | "ta.settings.maxTasks" | "ta.settings.maxTasksAny" | "ta.settings.maxTasksHint" | "ta.settings.minutes" | "ta.settings.modified" | "ta.settings.more" | "ta.settings.motion" | "ta.settings.motionHint" | "ta.settings.navigation" | "ta.settings.navigation.folded" | "ta.settings.navigation.inNav" | "ta.settings.navigation.none" | "ta.settings.navigation.overflow" | "ta.settings.navigation.pinned" | "ta.settings.navigation.reset" | "ta.settings.navigation.resetButton" | "ta.settings.navigation.resetHint" | "ta.settings.navigation.show" | "ta.settings.navigation.slots" | "ta.settings.navigation.slotsHint" | "ta.settings.never" | "ta.settings.noMatch" | "ta.settings.off" | "ta.settings.offline" | "ta.settings.on" | "ta.settings.relay" | "ta.settings.relayDescription" | "ta.settings.reset" | "ta.settings.retention" | "ta.settings.retentionDescription" | "ta.settings.scope.project" | "ta.settings.scope.user" | "ta.settings.scopeHint.project" | "ta.settings.scopeHint.user" | "ta.settings.search" | "ta.settings.server" | "ta.settings.shortcuts" | "ta.settings.signOut" | "ta.settings.speak" | "ta.settings.speakHint" | "ta.settings.taskModel" | "ta.settings.taskModelHint" | "ta.settings.theme" | "ta.settings.theme.dark" | "ta.settings.theme.light" | "ta.settings.theme.system" | "ta.settings.trustedDomains" | "ta.settings.trustedDomainsAdd" | "ta.settings.trustedDomainsEmpty" | "ta.settings.trustedDomainsEmptyHint" | "ta.settings.trustedDomainsHint" | "ta.settings.trustedDomainsRemove" | "ta.settings.untrusted" | "ta.settings.version" | "ta.settings.voice" | "ta.settings.web" | "ta.settings.webHint" | "ta.share.cannot" | "ta.share.copied" | "ta.share.copy" | "ta.share.making" | "ta.share.published" | "ta.share.qr" | "ta.share.relayed" | "ta.share.send" | "ta.share.stop" | "ta.share.stopHint" | "ta.share.stopTitle" | "ta.share.title" | "ta.shortcut.commands" | "ta.shortcut.files" | "ta.shortcut.followUp" | "ta.shortcut.newline" | "ta.shortcut.save" | "ta.shortcut.send" | "ta.shortcut.settings" | "ta.shortcut.sidebar" | "ta.shortcut.stop" | "ta.sidebar" | "ta.sidebar.closeTitle" | "ta.signin.accountsHint" | "ta.signin.connect" | "ta.signin.denied" | "ta.signin.failed" | "ta.signin.hint" | "ta.signin.hintRemote" | "ta.signin.orToken" | "ta.signin.pairHint" | "ta.signin.pairRefused" | "ta.signin.pairing" | "ta.signin.refused" | "ta.signin.title" | "ta.signin.token" | "ta.signin.wechat" | "ta.signin.with" | "ta.species.ankylosaurus" | "ta.species.brachiosaurus" | "ta.species.dragon" | "ta.species.parasaurolophus" | "ta.species.pteranodon" | "ta.species.stegosaurus" | "ta.species.trex" | "ta.species.triceratops" | "ta.species.velociraptor" | "ta.stop" | "ta.suggest.1" | "ta.suggest.1.label" | "ta.suggest.2" | "ta.suggest.2.label" | "ta.suggest.3" | "ta.suggest.3.label" | "ta.tab.close" | "ta.tab.closeAll" | "ta.tab.closeLeft" | "ta.tab.closeOthers" | "ta.tab.closeRight" | "ta.tab.closeSaved" | "ta.tab.keepOpen" | "ta.task.allTasks" | "ta.task.done" | "ta.task.ended" | "ta.task.failed" | "ta.task.remove" | "ta.task.removeHint" | "ta.task.removeTitle" | "ta.task.running" | "ta.task.stopped" | "ta.task.takeOver" | "ta.task.takeOverHint" | "ta.task.takenOver" | "ta.task.waiting" | "ta.tasks.all" | "ta.tasks.ended" | "ta.tasks.fewer" | "ta.tasks.running" | "ta.tasks.runningCount" | "ta.tasks.waiting" | "ta.tasks.waitingCount" | "ta.terminal.openLink" | "ta.terminal.openLinkMac" | "ta.terminal.openUrl" | "ta.terminal.openUrlMac" | "ta.time.dayBefore" | "ta.time.earlier" | "ta.time.today" | "ta.time.week" | "ta.time.yesterday" | "ta.tool.earlier" | "ta.tool.hideScript" | "ta.tool.showScript" | "ta.tool.verb.bash" | "ta.tool.verb.codemode" | "ta.tool.verb.edit" | "ta.tool.verb.find" | "ta.tool.verb.getTask" | "ta.tool.verb.grep" | "ta.tool.verb.listTasks" | "ta.tool.verb.ls" | "ta.tool.verb.messageTask" | "ta.tool.verb.read" | "ta.tool.verb.startTask" | "ta.tool.verb.stopTask" | "ta.tool.verb.write" | "ta.unreachable" | "ta.widget.failed" | "ta.workbench" | "ta.workbench.cards" | "ta.workbench.empty" | "ta.workbench.emptyHint" | "ta.workbench.maximize" | "ta.workbench.noCards" | "ta.workbench.noCardsHint" | "ta.workbench.open" | "ta.workbench.restore" | "ta.workbench.tabs" | "ta.workingDirectory.changed" | "ta.yes" | undefined;
|
|
7
|
+
error: "ta.access.add" | "ta.access.addHint" | "ta.access.added" | "ta.access.allow" | "ta.access.bind" | "ta.access.bindHint" | "ta.access.browser" | "ta.access.dismiss" | "ta.access.fromEnv" | "ta.access.lastUsed" | "ta.access.none" | "ta.access.noneHint" | "ta.access.remove" | "ta.access.removeAccount" | "ta.access.removeConfirm" | "ta.access.removeDetail" | "ta.access.requested" | "ta.access.signOut" | "ta.access.thisBrowser" | "ta.access.title" | "ta.account" | "ta.account.menu" | "ta.account.service" | "ta.ask.no" | "ta.ask.start" | "ta.ask.title" | "ta.ask.waiting" | "ta.assistant.attention" | "ta.assistant.busy" | "ta.assistant.confirmOn" | "ta.assistant.copied" | "ta.assistant.copyCwd" | "ta.assistant.cwdTitle" | "ta.assistant.endedTasks" | "ta.assistant.export" | "ta.assistant.hello" | "ta.assistant.look" | "ta.assistant.me" | "ta.assistant.noTasks" | "ta.assistant.noTasksHint" | "ta.assistant.nothingToExport" | "ta.assistant.offline" | "ta.assistant.placeholder" | "ta.assistant.poke" | "ta.assistant.prompt" | "ta.assistant.promptTitle" | "ta.assistant.rename" | "ta.assistant.restart" | "ta.assistant.restartHint" | "ta.assistant.restartTitle" | "ta.assistant.runningTasks" | "ta.assistant.showTasks" | "ta.assistant.speakOff" | "ta.assistant.speakOn" | "ta.assistant.step.run" | "ta.assistant.step.say" | "ta.assistant.step.tell" | "ta.assistant.stop" | "ta.assistant.taskEnded" | "ta.assistant.tasks" | "ta.assistant.tasksTool" | "ta.assistant.waking" | "ta.assistant.working" | "ta.assistant.you" | "ta.auth.account" | "ta.auth.accounts" | "ta.auth.accountsExample" | "ta.auth.accountsTitle" | "ta.auth.apiKey" | "ta.auth.back" | "ta.auth.continue" | "ta.auth.copyAndOpen" | "ta.auth.copyCode" | "ta.auth.copyLink" | "ta.auth.deviceHint" | "ta.auth.done" | "ta.auth.enterKey" | "ta.auth.failed" | "ta.auth.hint" | "ta.auth.hintRemote" | "ta.auth.keys" | "ta.auth.keysExample" | "ta.auth.later" | "ta.auth.manualCode" | "ta.auth.manualCodeRemote" | "ta.auth.none" | "ta.auth.openHint" | "ta.auth.openPage" | "ta.auth.search" | "ta.auth.signOut" | "ta.auth.signOutConfirm" | "ta.auth.signedIn" | "ta.auth.subscription" | "ta.auth.title" | "ta.auth.waiting" | "ta.back" | "ta.board" | "ta.board.add" | "ta.board.done" | "ta.board.edit" | "ta.board.empty" | "ta.board.emptyHint" | "ta.board.moreTasks" | "ta.board.move" | "ta.board.noTasks" | "ta.board.none" | "ta.board.noneHint" | "ta.board.put" | "ta.board.remove" | "ta.board.tasks" | "ta.builtin.assistant" | "ta.builtin.assistantHint" | "ta.cancel" | "ta.chat" | "ta.chat.byDirectory" | "ta.chat.cwdTitle" | "ta.chat.doubleTag" | "ta.chat.doubleTagTitle" | "ta.chat.handToDouble" | "ta.chat.hint" | "ta.chat.new" | "ta.chat.newIn" | "ta.chat.noMatch" | "ta.chat.none" | "ta.chat.noneHint" | "ta.chat.open" | "ta.chat.opening" | "ta.chat.openingOffline" | "ta.chat.remove" | "ta.chat.removeShort" | "ta.chat.removed" | "ta.chat.restore" | "ta.chat.restoreShort" | "ta.chat.search" | "ta.chat.suggest.1" | "ta.chat.suggest.1.label" | "ta.chat.suggest.2" | "ta.chat.suggest.2.label" | "ta.chat.suggest.3" | "ta.chat.suggest.3.label" | "ta.chat.title" | "ta.close" | "ta.composer.addImage" | "ta.composer.commands" | "ta.composer.filesUnavailable" | "ta.composer.filter" | "ta.composer.image.count" | "ta.composer.image.size" | "ta.composer.image.type" | "ta.composer.imageLoading" | "ta.composer.label" | "ta.composer.listening" | "ta.composer.mentionFile" | "ta.composer.more" | "ta.composer.noFiles" | "ta.composer.noMatch" | "ta.composer.placeholder" | "ta.composer.placeholderTouch" | "ta.composer.queue.count" | "ta.composer.queue.editTitle" | "ta.composer.queue.followUp" | "ta.composer.queue.remove" | "ta.composer.queue.steering" | "ta.composer.queue.takeBackAll" | "ta.composer.queue.takeBackTitle" | "ta.composer.removeImage" | "ta.composer.steerPlaceholder" | "ta.composer.steerPlaceholderTouch" | "ta.composer.steerTitle" | "ta.composer.stopTitle" | "ta.composer.voice" | "ta.composer.voiceDenied" | "ta.composer.voiceFailed" | "ta.composer.voiceStop" | "ta.connection.away" | "ta.connection.awayBrief" | "ta.connection.back" | "ta.connection.lost" | "ta.connection.notDone" | "ta.connection.retry" | "ta.connection.retryIn" | "ta.connection.retryNow" | "ta.connection.retrying" | "ta.connection.unreachableBrief" | "ta.copied" | "ta.copy" | "ta.discover" | "ta.discover.empty" | "ta.discover.emptyHint" | "ta.discover.hint" | "ta.dismiss" | "ta.editor" | "ta.editor.close" | "ta.editor.discardClose" | "ta.editor.failed" | "ta.editor.loading" | "ta.editor.unsavedManyTitle" | "ta.editor.unsavedMessage" | "ta.editor.unsavedTitle" | "ta.environment.connect" | "ta.environment.connections" | "ta.environment.failed" | "ta.environment.failedTitle" | "ta.environment.none" | "ta.environment.own" | "ta.environment.ownDetail" | "ta.environment.ownHint" | "ta.environment.restart" | "ta.environment.restartConfirm" | "ta.environment.restartDetail" | "ta.environment.retry" | "ta.environment.running" | "ta.environment.sandbox" | "ta.environment.starting" | "ta.environment.stop" | "ta.environment.stopConfirm" | "ta.environment.stopDetail" | "ta.environment.stopped" | "ta.environment.switch" | "ta.environment.switchConfirm" | "ta.environment.switchDetail" | "ta.environment.title" | "ta.environment.token" | "ta.environment.url" | "ta.environment.where" | "ta.environment.whereHint" | "ta.error.alreadyCompacted" | "ta.error.messageConflict" | "ta.error.modelNotFound" | "ta.error.nothingToCompact" | "ta.error.sessionBusy" | "ta.error.sessionLocked" | "ta.error.sessionNotFound" | "ta.error.tooManySessions" | "ta.folder.empty" | "ta.folder.failed" | "ta.folder.open" | "ta.folder.path" | "ta.folder.title" | "ta.folder.up" | "ta.gait.bounce" | "ta.gait.sneak" | "ta.gait.strut" | "ta.gait.waddle" | "ta.gait.walk" | "ta.home" | "ta.host.title" | "ta.hosts.cameraDenied" | "ta.hosts.connecting" | "ta.hosts.notPairing" | "ta.hosts.paste" | "ta.hosts.refused" | "ta.hosts.remove" | "ta.hosts.removeConfirm" | "ta.hosts.rename" | "ta.hosts.saved" | "ta.hosts.scan" | "ta.hosts.scanFailed" | "ta.hosts.scanHint" | "ta.hosts.scanInstructions" | "ta.hosts.scanShort" | "ta.hosts.switching" | "ta.hosts.thisServer" | "ta.hosts.title" | "ta.hosts.unreachable" | "ta.launch.failed" | "ta.launch.open" | "ta.launch.ready" | "ta.launcher" | "ta.launcher.back" | "ta.launcher.clear" | "ta.launcher.noResults" | "ta.launcher.place.discover" | "ta.launcher.place.launcher" | "ta.launcher.place.list" | "ta.launcher.place.navigation" | "ta.launcher.search" | "ta.launcher.searchHint" | "ta.launcher.searchPlaceholder" | "ta.layout.editor" | "ta.layout.panel" | "ta.layout.resize" | "ta.layout.sidebar" | "ta.link.ask" | "ta.link.copied" | "ta.link.external" | "ta.link.externalMac" | "ta.link.noOpener" | "ta.link.notFound" | "ta.link.open" | "ta.link.openFile" | "ta.link.openFolder" | "ta.link.trust" | "ta.link.trustHint" | "ta.look.gait" | "ta.look.premium" | "ta.look.species" | "ta.look.title" | "ta.manage.about" | "ta.manage.accounts" | "ta.manage.packages" | "ta.manage.relay" | "ta.manage.shortcuts" | "ta.manage.workingDirectory" | "ta.markdown.diagram" | "ta.markdown.download" | "ta.markdown.enlarge" | "ta.markdown.exitFullscreen" | "ta.markdown.fullscreen" | "ta.markdown.missing" | "ta.markdown.source" | "ta.me" | "ta.menu" | "ta.message.branch" | "ta.message.compacted" | "ta.message.debug" | "ta.message.debugCopied" | "ta.message.discard" | "ta.message.forkAt" | "ta.message.forkBefore" | "ta.message.forked" | "ta.message.images" | "ta.message.notSaved" | "ta.message.resend" | "ta.message.rewind" | "ta.message.rewindConfirm" | "ta.message.rewindDetail" | "ta.message.selectText" | "ta.message.sendFailed" | "ta.message.skill" | "ta.message.stopped" | "ta.message.thinking" | "ta.message.usageTitle" | "ta.message.used" | "ta.model.default" | "ta.model.defaultNone" | "ta.model.search" | "ta.mood.attention" | "ta.mood.done" | "ta.mood.idle" | "ta.mood.listening" | "ta.mood.sleeping" | "ta.mood.speaking" | "ta.mood.thinking" | "ta.mood.working" | "ta.more" | "ta.nav.fold" | "ta.nav.open" | "ta.nav.pin" | "ta.nav.settings" | "ta.no" | "ta.notice.picture" | "ta.notices" | "ta.off" | "ta.ok" | "ta.on" | "ta.online" | "ta.open.failed" | "ta.open.notALink" | "ta.open.open" | "ta.open.published" | "ta.open.relayed" | "ta.open.title" | "ta.packages" | "ta.packages.builtin" | "ta.packages.builtinTitle" | "ta.packages.failed" | "ta.packages.hint" | "ta.packages.installed" | "ta.packages.none" | "ta.packages.noneHint" | "ta.packages.reload" | "ta.packages.reloaded" | "ta.packages.remove" | "ta.packages.removeConfirm" | "ta.packages.removeDetail" | "ta.packages.removed" | "ta.packages.scope.project" | "ta.packages.scope.user" | "ta.panel.hide" | "ta.panel.show" | "ta.process.done" | "ta.process.earlier" | "ta.process.failed" | "ta.process.running" | "ta.process.thinking" | "ta.process.thought" | "ta.progress.calling" | "ta.progress.compacting" | "ta.progress.input" | "ta.progress.output" | "ta.progress.retrying" | "ta.progress.waiting" | "ta.pwa.install" | "ta.reconnecting" | "ta.relay.devices" | "ta.relay.done" | "ta.relay.hint" | "ta.relay.offline" | "ta.relay.online" | "ta.relay.pair" | "ta.relay.phone" | "ta.relay.scan" | "ta.relay.title" | "ta.relay.unpair" | "ta.relay.unpairConfirm" | "ta.remote.add" | "ta.remote.addHint" | "ta.remote.added" | "ta.remote.closePort" | "ta.remote.connect" | "ta.remote.connected" | "ta.remote.connectedTo" | "ta.remote.connecting" | "ta.remote.description" | "ta.remote.disconnect" | "ta.remote.disconnected" | "ta.remote.failed" | "ta.remote.forwarded" | "ta.remote.fromConfig" | "ta.remote.invalid" | "ta.remote.local" | "ta.remote.lost" | "ta.remote.none" | "ta.remote.noneHint" | "ta.remote.options" | "ta.remote.port" | "ta.remote.prompt.continue" | "ta.remote.prompt.title" | "ta.remote.prompt.trust" | "ta.remote.remove" | "ta.remote.step.checking" | "ta.remote.step.connecting" | "ta.remote.step.copying-server" | "ta.remote.step.installing-node" | "ta.remote.step.starting" | "ta.remote.title" | "ta.search.all" | "ta.search.failed" | "ta.search.loading" | "ta.search.more" | "ta.search.pages" | "ta.select.all" | "ta.select.count" | "ta.select.done" | "ta.send" | "ta.session.compact" | "ta.session.compactTitle" | "ta.session.earlier" | "ta.session.empty" | "ta.session.model" | "ta.session.noModel" | "ta.session.phase.thinking" | "ta.session.phase.working" | "ta.session.phase.writing" | "ta.session.thinking" | "ta.session.title" | "ta.session.toBottom" | "ta.session.waitingClientTool" | "ta.session.working" | "ta.setting.codemode.mode" | "ta.setting.codemode.mode.hint" | "ta.setting.codemode.mode.on" | "ta.setting.codemode.mode.only" | "ta.setting.compaction.enabled" | "ta.setting.compaction.enabled.hint" | "ta.setting.compaction.keepRecentTokens" | "ta.setting.compaction.keepRecentTokens.hint" | "ta.setting.compaction.reserveTokens" | "ta.setting.compaction.reserveTokens.hint" | "ta.setting.defaultThinkingLevel" | "ta.setting.defaultThinkingLevel.high" | "ta.setting.defaultThinkingLevel.hint" | "ta.setting.defaultThinkingLevel.low" | "ta.setting.defaultThinkingLevel.max" | "ta.setting.defaultThinkingLevel.medium" | "ta.setting.defaultThinkingLevel.minimal" | "ta.setting.defaultThinkingLevel.off" | "ta.setting.defaultThinkingLevel.xhigh" | "ta.setting.enableSkillCommands" | "ta.setting.enableSkillCommands.hint" | "ta.setting.followUpMode" | "ta.setting.followUpMode.all" | "ta.setting.followUpMode.hint" | "ta.setting.followUpMode.one-at-a-time" | "ta.setting.images.autoResize" | "ta.setting.images.autoResize.hint" | "ta.setting.images.blockImages" | "ta.setting.images.blockImages.hint" | "ta.setting.model" | "ta.setting.model.hint" | "ta.setting.retry.enabled" | "ta.setting.retry.enabled.hint" | "ta.setting.retry.maxRetries" | "ta.setting.shellCommandPrefix" | "ta.setting.shellCommandPrefix.hint" | "ta.setting.shellPath" | "ta.setting.shellPath.hint" | "ta.setting.steeringMode" | "ta.setting.steeringMode.all" | "ta.setting.steeringMode.hint" | "ta.setting.steeringMode.one-at-a-time" | "ta.setting.transport" | "ta.setting.transport.auto" | "ta.setting.transport.hint" | "ta.settings" | "ta.settings.about" | "ta.settings.accounts" | "ta.settings.accountsDescription" | "ta.settings.agent" | "ta.settings.appearance" | "ta.settings.assistant" | "ta.settings.assistantModel" | "ta.settings.assistantModelHint" | "ta.settings.chatFontSize" | "ta.settings.chatFontSizeHint" | "ta.settings.confirmTasks" | "ta.settings.confirmTasksHint" | "ta.settings.cwd" | "ta.settings.cwdChange" | "ta.settings.cwdDescription" | "ta.settings.days" | "ta.settings.decides" | "ta.settings.default" | "ta.settings.displayLanguage" | "ta.settings.failed" | "ta.settings.fontSize" | "ta.settings.fontSize.large" | "ta.settings.fontSize.small" | "ta.settings.fontSize.standard" | "ta.settings.fontSize.xlarge" | "ta.settings.fontSizeHint" | "ta.settings.fromUser" | "ta.settings.group.context" | "ta.settings.group.conversation" | "ta.settings.group.model" | "ta.settings.group.tools" | "ta.settings.keepAlive" | "ta.settings.keepAliveDescription" | "ta.settings.language" | "ta.settings.language.system" | "ta.settings.links" | "ta.settings.loading" | "ta.settings.manageAccounts" | "ta.settings.maxTasks" | "ta.settings.maxTasksAny" | "ta.settings.maxTasksHint" | "ta.settings.minutes" | "ta.settings.modified" | "ta.settings.more" | "ta.settings.motion" | "ta.settings.motionHint" | "ta.settings.navigation" | "ta.settings.navigation.folded" | "ta.settings.navigation.inNav" | "ta.settings.navigation.none" | "ta.settings.navigation.overflow" | "ta.settings.navigation.pinned" | "ta.settings.navigation.reset" | "ta.settings.navigation.resetButton" | "ta.settings.navigation.resetHint" | "ta.settings.navigation.show" | "ta.settings.navigation.slots" | "ta.settings.navigation.slotsHint" | "ta.settings.never" | "ta.settings.noMatch" | "ta.settings.off" | "ta.settings.offline" | "ta.settings.on" | "ta.settings.relay" | "ta.settings.relayDescription" | "ta.settings.reset" | "ta.settings.retention" | "ta.settings.retentionDescription" | "ta.settings.scope.project" | "ta.settings.scope.user" | "ta.settings.scopeHint.project" | "ta.settings.scopeHint.user" | "ta.settings.search" | "ta.settings.server" | "ta.settings.shortcuts" | "ta.settings.signOut" | "ta.settings.speak" | "ta.settings.speakHint" | "ta.settings.speakTalk" | "ta.settings.speakTalkHint" | "ta.settings.taskModel" | "ta.settings.taskModelHint" | "ta.settings.theme" | "ta.settings.theme.dark" | "ta.settings.theme.light" | "ta.settings.theme.system" | "ta.settings.trustedDomains" | "ta.settings.trustedDomainsAdd" | "ta.settings.trustedDomainsEmpty" | "ta.settings.trustedDomainsEmptyHint" | "ta.settings.trustedDomainsHint" | "ta.settings.trustedDomainsRemove" | "ta.settings.untrusted" | "ta.settings.version" | "ta.settings.voice" | "ta.settings.web" | "ta.settings.webHint" | "ta.share.cannot" | "ta.share.copied" | "ta.share.copy" | "ta.share.making" | "ta.share.published" | "ta.share.qr" | "ta.share.relayed" | "ta.share.send" | "ta.share.stop" | "ta.share.stopHint" | "ta.share.stopTitle" | "ta.share.title" | "ta.shortcut.commands" | "ta.shortcut.files" | "ta.shortcut.followUp" | "ta.shortcut.newline" | "ta.shortcut.save" | "ta.shortcut.send" | "ta.shortcut.settings" | "ta.shortcut.sidebar" | "ta.shortcut.stop" | "ta.sidebar" | "ta.sidebar.closeTitle" | "ta.signin.accountsHint" | "ta.signin.connect" | "ta.signin.denied" | "ta.signin.failed" | "ta.signin.hint" | "ta.signin.hintRemote" | "ta.signin.orToken" | "ta.signin.pairHint" | "ta.signin.pairRefused" | "ta.signin.pairing" | "ta.signin.refused" | "ta.signin.title" | "ta.signin.token" | "ta.signin.wechat" | "ta.signin.with" | "ta.species.ankylosaurus" | "ta.species.brachiosaurus" | "ta.species.dragon" | "ta.species.parasaurolophus" | "ta.species.pteranodon" | "ta.species.stegosaurus" | "ta.species.trex" | "ta.species.triceratops" | "ta.species.velociraptor" | "ta.stop" | "ta.suggest.1" | "ta.suggest.1.label" | "ta.suggest.2" | "ta.suggest.2.label" | "ta.suggest.3" | "ta.suggest.3.label" | "ta.tab.close" | "ta.tab.closeAll" | "ta.tab.closeLeft" | "ta.tab.closeOthers" | "ta.tab.closeRight" | "ta.tab.closeSaved" | "ta.tab.keepOpen" | "ta.talk.edit" | "ta.talk.listening" | "ta.talk.releaseCancel" | "ta.talk.releaseEdit" | "ta.talk.releaseSend" | "ta.talk.tooShort" | "ta.task.allTasks" | "ta.task.done" | "ta.task.ended" | "ta.task.failed" | "ta.task.remove" | "ta.task.removeHint" | "ta.task.removeTitle" | "ta.task.running" | "ta.task.stopped" | "ta.task.takeOver" | "ta.task.takeOverHint" | "ta.task.takenOver" | "ta.task.waiting" | "ta.tasks.all" | "ta.tasks.ended" | "ta.tasks.fewer" | "ta.tasks.removeTitle" | "ta.tasks.running" | "ta.tasks.runningCount" | "ta.tasks.select" | "ta.tasks.waiting" | "ta.tasks.waitingCount" | "ta.terminal.openLink" | "ta.terminal.openLinkMac" | "ta.terminal.openUrl" | "ta.terminal.openUrlMac" | "ta.time.dayBefore" | "ta.time.earlier" | "ta.time.today" | "ta.time.week" | "ta.time.yesterday" | "ta.tool.earlier" | "ta.tool.hideScript" | "ta.tool.showScript" | "ta.tool.verb.bash" | "ta.tool.verb.codemode" | "ta.tool.verb.edit" | "ta.tool.verb.find" | "ta.tool.verb.getTask" | "ta.tool.verb.grep" | "ta.tool.verb.listTasks" | "ta.tool.verb.ls" | "ta.tool.verb.messageTask" | "ta.tool.verb.read" | "ta.tool.verb.startTask" | "ta.tool.verb.stopTask" | "ta.tool.verb.write" | "ta.unreachable" | "ta.widget.failed" | "ta.workbench" | "ta.workbench.cards" | "ta.workbench.cwd" | "ta.workbench.empty" | "ta.workbench.emptyHint" | "ta.workbench.maximize" | "ta.workbench.noCards" | "ta.workbench.noCardsHint" | "ta.workbench.open" | "ta.workbench.restore" | "ta.workbench.tabs" | "ta.workingDirectory.changed" | "ta.yes" | "ta.zoom.actual" | "ta.zoom.fit" | "ta.zoom.in" | "ta.zoom.out" | undefined;
|
|
8
8
|
add: (text: string, scanned?: boolean) => Promise<void>;
|
|
9
9
|
scan: () => Promise<void>;
|
|
10
10
|
canScan: boolean;
|
|
@@ -45,7 +45,7 @@ const scanner_1 = require("../device/scanner");
|
|
|
45
45
|
const hooks_1 = require("../hooks");
|
|
46
46
|
const hosts_1 = require("../hosts");
|
|
47
47
|
const use_t_1 = require("../i18n/use-t");
|
|
48
|
-
const
|
|
48
|
+
const workbench_util_1 = require("../workbench-util");
|
|
49
49
|
const callout_1 = require("./callout");
|
|
50
50
|
const chat_list_1 = require("./chat-list");
|
|
51
51
|
const context_menu_1 = require("./context-menu");
|
|
@@ -63,9 +63,9 @@ function useAddHost() {
|
|
|
63
63
|
const [busy, setBusy] = React.useState(false);
|
|
64
64
|
const [error, setError] = React.useState();
|
|
65
65
|
const add = React.useCallback(async (text, scanned = false) => {
|
|
66
|
-
const credential =
|
|
66
|
+
const credential = workbench_util_1.WorkbenchUtil.credential(text);
|
|
67
67
|
// The app has no ta serve of its page to give a token to; a code is always a pairing.
|
|
68
|
-
if (!('pairing' in credential) && (scanned ||
|
|
68
|
+
if (!('pairing' in credential) && (scanned || workbench_util_1.WorkbenchUtil.isApp())) {
|
|
69
69
|
setError('ta.hosts.notPairing');
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
@@ -75,7 +75,7 @@ function useAddHost() {
|
|
|
75
75
|
await bench.signIn(text);
|
|
76
76
|
}
|
|
77
77
|
catch (failure) {
|
|
78
|
-
setError(failure instanceof
|
|
78
|
+
setError(failure instanceof workbench_util_1.WorkbenchError && failure.reason === 'refused' ? 'ta.hosts.refused' : 'ta.hosts.unreachable');
|
|
79
79
|
}
|
|
80
80
|
finally {
|
|
81
81
|
setBusy(false);
|
|
@@ -199,7 +199,7 @@ function AddHostPanel({ error }) {
|
|
|
199
199
|
adding.busy ? React.createElement("span", { className: "ta-spinner" }) : React.createElement(icon_1.Icon, { icon: lucide_react_1.ScanLine, size: 18 }),
|
|
200
200
|
" ",
|
|
201
201
|
t('ta.hosts.scan'))),
|
|
202
|
-
pasting ? (React.createElement(LinkForm, { busy: adding.busy, autoFocus: !adding.canScan, placeholder: t(
|
|
202
|
+
pasting ? (React.createElement(LinkForm, { busy: adding.busy, autoFocus: !adding.canScan, placeholder: t(workbench_util_1.WorkbenchUtil.isApp() ? 'ta.signin.pairing' : 'ta.signin.token'), onSubmit: text => void adding.add(text) })) : (React.createElement("button", { type: "button", className: "ta-link-button", onClick: () => setPasting(true) }, t('ta.hosts.paste'))),
|
|
203
203
|
shown && React.createElement(callout_1.Callout, { level: "error" }, t(shown)),
|
|
204
204
|
hosts.length > 0 && (React.createElement("section", { className: "ta-host-saved" },
|
|
205
205
|
React.createElement("h2", null, t('ta.hosts.saved')),
|
|
@@ -16,9 +16,9 @@ export declare function Icon({ icon: Glyph, className, label, size }: {
|
|
|
16
16
|
size?: number;
|
|
17
17
|
}): React.JSX.Element;
|
|
18
18
|
/** Shows or hides the sidebar on the left. */
|
|
19
|
-
export declare const SidebarLeft: (
|
|
19
|
+
export declare const SidebarLeft: (props: GlyphProps) => React.JSX.Element;
|
|
20
20
|
/** Shows or hides the workbench on the right. */
|
|
21
|
-
export declare const SidebarRight: (
|
|
21
|
+
export declare const SidebarRight: (props: GlyphProps) => React.JSX.Element;
|
|
22
22
|
export interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
23
23
|
icon: Glyph;
|
|
24
24
|
label: string;
|
|
@@ -40,18 +40,19 @@ const React = __importStar(require("react"));
|
|
|
40
40
|
function Icon({ icon: Glyph, className = '', label, size = 18 }) {
|
|
41
41
|
return React.createElement(Glyph, { className: `ta-icon ${className}`, size: size, strokeWidth: 1.75, "aria-hidden": label ? undefined : true, "aria-label": label });
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
// One shape for both sides and both states, drawn on Lucide's grid: the right one is the left mirrored.
|
|
44
|
+
function SidebarGlyph({ side, size = 18, strokeWidth = 1.75, ...props }) {
|
|
45
|
+
return (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: size, height: size, fill: "none", stroke: "currentColor", strokeWidth: strokeWidth, strokeLinecap: "round", "aria-hidden": "true", ...props },
|
|
46
46
|
React.createElement("g", { transform: side === 'right' ? 'matrix(-1 0 0 1 24 0)' : undefined },
|
|
47
47
|
React.createElement("rect", { x: "2.5", y: "4", width: "19", height: "16", rx: "4.5" }),
|
|
48
48
|
React.createElement("path", { d: "M7 8.5v7" }))));
|
|
49
|
-
return SidebarGlyph;
|
|
50
49
|
}
|
|
51
50
|
/** Shows or hides the sidebar on the left. */
|
|
52
|
-
|
|
51
|
+
const SidebarLeft = (props) => React.createElement(SidebarGlyph, { side: "left", ...props });
|
|
52
|
+
exports.SidebarLeft = SidebarLeft;
|
|
53
53
|
/** Shows or hides the workbench on the right. */
|
|
54
|
-
|
|
54
|
+
const SidebarRight = (props) => React.createElement(SidebarGlyph, { side: "right", ...props });
|
|
55
|
+
exports.SidebarRight = SidebarRight;
|
|
55
56
|
/** A round button with an icon; its label is the tooltip and what screen readers say. */
|
|
56
57
|
function IconButton({ icon, label, badge, className = '', ...props }) {
|
|
57
58
|
return (React.createElement("button", { type: "button", className: `ta-icon-button ${className}`, title: label, "aria-label": label, ...props },
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type ZoomLimits, type ZoomSize } from '../util/zoom';
|
|
3
|
+
interface Point {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
}
|
|
7
|
+
/** Where a pinch started: its scale, how far apart the fingers were, and the spot of the picture between them. */
|
|
8
|
+
interface Pinch {
|
|
9
|
+
scale: number;
|
|
10
|
+
distance: number;
|
|
11
|
+
spot: Point;
|
|
12
|
+
}
|
|
13
|
+
/** What the viewer shows of its state: how far it is zoomed and its limits. */
|
|
14
|
+
export interface ZoomState extends ZoomLimits {
|
|
15
|
+
scale: number;
|
|
16
|
+
}
|
|
17
|
+
interface ImageZoomHandlers {
|
|
18
|
+
changed(state: ZoomState): void;
|
|
19
|
+
loaded(size: ZoomSize): void;
|
|
20
|
+
/** A click or tap beside the picture. */
|
|
21
|
+
background(): void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Zooms a picture in a box that scrolls, as the viewers of pictures do: all of it at first, never larger than
|
|
25
|
+
* its own pixels; two fingers pinch it, a trackpad pinches it (a wheel with Ctrl, or Safari's gestures), a
|
|
26
|
+
* wheel with Ctrl or ⌘ zooms it at the pointer, a double tap or click zooms in there and back out; zoomed,
|
|
27
|
+
* a finger or the wheel scrolls it and the mouse drags it. A pinch past the limits goes on a little and comes
|
|
28
|
+
* back. What scrolls is the box itself: a finger scrolls it on the compositor, and the sheets of the phone
|
|
29
|
+
* leave a picture that scrolls sideways alone (sheet-swipe.ts).
|
|
30
|
+
*/
|
|
31
|
+
export declare class ImageZoom {
|
|
32
|
+
protected readonly viewport: HTMLElement;
|
|
33
|
+
protected readonly stage: HTMLElement;
|
|
34
|
+
protected readonly image: HTMLImageElement;
|
|
35
|
+
protected readonly on: ImageZoomHandlers;
|
|
36
|
+
protected natural?: ZoomSize;
|
|
37
|
+
protected scale: number;
|
|
38
|
+
protected limits: ZoomLimits;
|
|
39
|
+
/** Whether it shows as at first: then it fits again when the box changes size. */
|
|
40
|
+
protected fitted: boolean;
|
|
41
|
+
protected pinch?: Pinch;
|
|
42
|
+
protected gesture?: {
|
|
43
|
+
scale: number;
|
|
44
|
+
};
|
|
45
|
+
/** The spot a pinch of the trackpad (wheels one after another) zooms about: kept, so that rounded scrolls never add up. */
|
|
46
|
+
protected wheelAnchor?: {
|
|
47
|
+
point: Point;
|
|
48
|
+
spot: Point;
|
|
49
|
+
t: number;
|
|
50
|
+
};
|
|
51
|
+
protected tap?: {
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
54
|
+
t: number;
|
|
55
|
+
moved: boolean;
|
|
56
|
+
};
|
|
57
|
+
protected lastTap?: {
|
|
58
|
+
x: number;
|
|
59
|
+
y: number;
|
|
60
|
+
t: number;
|
|
61
|
+
};
|
|
62
|
+
protected lastTouch: number;
|
|
63
|
+
protected drag?: {
|
|
64
|
+
id: number;
|
|
65
|
+
x: number;
|
|
66
|
+
y: number;
|
|
67
|
+
left: number;
|
|
68
|
+
top: number;
|
|
69
|
+
moved: boolean;
|
|
70
|
+
};
|
|
71
|
+
protected dragged: boolean;
|
|
72
|
+
protected frame: number;
|
|
73
|
+
protected backgroundTimer?: ReturnType<typeof setTimeout>;
|
|
74
|
+
protected announced: number;
|
|
75
|
+
constructor(viewport: HTMLElement, stage: HTMLElement, image: HTMLImageElement, on: ImageZoomHandlers);
|
|
76
|
+
attach(): () => void;
|
|
77
|
+
/** Zooms to `scale` at `point` of the box (its middle by default), sliding there. */
|
|
78
|
+
zoomTo(scale: number, point?: Point, animate?: boolean): void;
|
|
79
|
+
step(way: 1 | -1): void;
|
|
80
|
+
fit(): void;
|
|
81
|
+
actual(): void;
|
|
82
|
+
protected box(): ZoomSize;
|
|
83
|
+
protected middle(): Point;
|
|
84
|
+
/** A point of the page in the box. */
|
|
85
|
+
protected local(clientX: number, clientY: number): Point;
|
|
86
|
+
/** The spot of the picture (its own pixels) under `point` of the box. */
|
|
87
|
+
protected spotAt(point: Point): Point;
|
|
88
|
+
/** Draws it at `scale` with `spot` of the picture under `point` of the box. */
|
|
89
|
+
protected place(scale: number, spot: Point, point: Point): void;
|
|
90
|
+
/** Tells what shows the scale, once a frame. */
|
|
91
|
+
protected announce(): void;
|
|
92
|
+
/** Fits it again in a box of another size, or keeps the middle where it is when zoomed. */
|
|
93
|
+
protected layout(): void;
|
|
94
|
+
protected readonly onLoad: () => void;
|
|
95
|
+
protected readonly onWheel: (event: WheelEvent) => void;
|
|
96
|
+
/** Safari's pinch of a trackpad (and of a finger, which the touches have already). */
|
|
97
|
+
protected readonly onGesture: (event: Event) => void;
|
|
98
|
+
protected pinchOf(touches: TouchList): {
|
|
99
|
+
point: Point;
|
|
100
|
+
distance: number;
|
|
101
|
+
};
|
|
102
|
+
protected readonly onTouchStart: (event: TouchEvent) => void;
|
|
103
|
+
protected readonly onTouchMove: (event: TouchEvent) => void;
|
|
104
|
+
protected readonly onTouchEnd: (event: TouchEvent) => void;
|
|
105
|
+
protected readonly onPointerDown: (event: PointerEvent) => void;
|
|
106
|
+
protected readonly onPointerMove: (event: PointerEvent) => void;
|
|
107
|
+
protected readonly onPointerUp: (event: PointerEvent) => void;
|
|
108
|
+
/** A click beside the picture; after a touch, once it is clear that no second tap follows. */
|
|
109
|
+
protected readonly onClick: (event: MouseEvent) => void;
|
|
110
|
+
protected readonly onDoubleClick: (event: MouseEvent) => void;
|
|
111
|
+
protected readonly onKey: (event: KeyboardEvent) => void;
|
|
112
|
+
}
|
|
113
|
+
export interface ImageViewerProps {
|
|
114
|
+
src: string;
|
|
115
|
+
alt?: string;
|
|
116
|
+
className?: string;
|
|
117
|
+
/** Once it loaded: its size in pixels. */
|
|
118
|
+
onLoad?(size: ZoomSize): void;
|
|
119
|
+
/** A click or tap beside the picture (the lightbox closes). */
|
|
120
|
+
onBackground?(): void;
|
|
121
|
+
}
|
|
122
|
+
/** A picture that zooms and scrolls (ImageZoom), with its buttons: −, the scale (back to fit), + and 1:1. */
|
|
123
|
+
export declare function ImageViewer({ src, alt, className, onLoad, onBackground }: ImageViewerProps): React.JSX.Element;
|
|
124
|
+
export {};
|
|
125
|
+
//# sourceMappingURL=image-viewer.d.ts.map
|