@celljs/ta-web 4.17.0 → 4.19.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 +2 -1
- package/README.md +2 -1
- package/esm/browser/account/account-side.d.ts +13 -0
- package/esm/browser/account/account-side.js +74 -0
- package/esm/browser/account/device-account.d.ts +69 -0
- package/esm/browser/account/device-account.js +215 -0
- package/esm/browser/assistant/assistant-chat-list.d.ts +4 -4
- package/esm/browser/assistant/assistant-chat-list.js +74 -4
- package/esm/browser/assistant/assistant-export.js +6 -2
- package/esm/browser/assistant/assistant-extension.js +70 -15
- package/esm/browser/assistant/assistant-role.d.ts +2 -2
- package/esm/browser/assistant/assistant-role.js +7 -4
- package/esm/browser/assistant/assistant-task-source.d.ts +4 -0
- package/esm/browser/assistant/assistant-task-source.js +18 -4
- package/esm/browser/assistant/assistant-task-util.d.ts +8 -0
- package/esm/browser/assistant/assistant-task-util.js +14 -3
- package/esm/browser/assistant/assistant-tasks.js +2 -2
- package/esm/browser/assistant/assistant-thread.js +5 -1
- package/esm/browser/assistant/assistant-view.js +3 -5
- package/esm/browser/assistant/assistant.js +2 -1
- package/esm/browser/assistant/call-keeper.d.ts +142 -0
- package/esm/browser/assistant/call-keeper.js +292 -0
- package/esm/browser/assistant/call-screen.d.ts +39 -0
- package/esm/browser/assistant/call-screen.js +75 -0
- package/esm/browser/assistant/chat-task-source.d.ts +16 -18
- package/esm/browser/assistant/chat-task-source.js +27 -52
- package/esm/browser/assistant/realtime-voice.d.ts +62 -1
- package/esm/browser/assistant/realtime-voice.js +188 -29
- package/esm/browser/assistant/task-views.d.ts +9 -6
- package/esm/browser/assistant/task-views.js +28 -10
- package/esm/browser/assistant/voice-call-bar.d.ts +11 -4
- package/esm/browser/assistant/voice-call-bar.js +102 -46
- package/esm/browser/assistant/voice-call.d.ts +33 -1
- package/esm/browser/assistant/voice-call.js +131 -28
- package/esm/browser/assistant/voice-reopen.d.ts +18 -0
- package/esm/browser/assistant/voice-reopen.js +54 -0
- package/esm/browser/chat/chat-view.js +5 -8
- package/esm/browser/cloud/cloud-sign-in.d.ts +100 -0
- package/esm/browser/cloud/cloud-sign-in.js +239 -0
- package/esm/browser/cloud/device-page.d.ts +15 -0
- package/esm/browser/cloud/device-page.js +39 -0
- package/esm/browser/components/access-view.js +25 -1
- package/esm/browser/components/account-menu.d.ts +1 -1
- package/esm/browser/components/account-menu.js +7 -2
- package/esm/browser/components/account-view.d.ts +17 -0
- package/esm/browser/components/account-view.js +216 -0
- package/esm/browser/components/app-contexts.d.ts +12 -0
- package/esm/browser/components/app-contexts.js +28 -0
- package/esm/browser/components/app-nav.d.ts +5 -3
- package/esm/browser/components/app-nav.js +11 -8
- package/esm/browser/components/app-shell-state.d.ts +2 -2
- package/esm/browser/components/app-shell-state.js +33 -28
- package/esm/browser/components/app-view.js +113 -82
- package/esm/browser/components/auth-view.js +3 -5
- package/esm/browser/components/call-pill.d.ts +11 -0
- package/esm/browser/components/call-pill.js +19 -0
- package/esm/browser/components/chat-home-util.d.ts +112 -0
- package/esm/browser/components/chat-home-util.js +123 -0
- package/esm/browser/components/chat-home.d.ts +54 -0
- package/esm/browser/components/chat-home.js +125 -0
- package/esm/browser/components/chat-icon.d.ts +4 -2
- package/esm/browser/components/chat-icon.js +15 -5
- package/esm/browser/components/chat-list-hooks.d.ts +30 -0
- package/esm/browser/components/chat-list-hooks.js +81 -0
- package/esm/browser/components/chat-list-props.d.ts +54 -0
- package/esm/browser/components/chat-list-props.js +2 -0
- package/esm/browser/components/chat-list-row.d.ts +14 -2
- package/esm/browser/components/chat-list-row.js +27 -17
- package/esm/browser/components/chat-list-util.d.ts +40 -9
- package/esm/browser/components/chat-list-util.js +72 -9
- package/esm/browser/components/chat-list.d.ts +4 -49
- package/esm/browser/components/chat-list.js +118 -87
- package/esm/browser/components/cloud-sign-in-view.d.ts +65 -0
- package/esm/browser/components/cloud-sign-in-view.js +351 -0
- package/esm/browser/components/code-editor.js +2 -1
- package/esm/browser/components/composer-box.js +7 -0
- package/esm/browser/components/connection-bar.js +22 -3
- package/esm/browser/components/context-menu.d.ts +11 -2
- package/esm/browser/components/context-menu.js +14 -3
- package/esm/browser/components/conversation-scroll.d.ts +2 -0
- package/esm/browser/components/conversation-scroll.js +14 -0
- package/esm/browser/components/device-sign-in-page.d.ts +12 -0
- package/esm/browser/components/device-sign-in-page.js +74 -0
- package/esm/browser/components/diff-editor.js +2 -1
- package/esm/browser/components/entry-holds.d.ts +22 -0
- package/esm/browser/components/entry-holds.js +49 -0
- package/esm/browser/components/environment-view.js +8 -8
- package/esm/browser/components/face.d.ts +1 -1
- package/esm/browser/components/fold-text.js +3 -1
- package/esm/browser/components/fork-view.js +2 -4
- package/esm/browser/components/gallery.js +2 -1
- package/esm/browser/components/held-talk.d.ts +6 -2
- package/esm/browser/components/held-talk.js +20 -2
- package/esm/browser/components/host-view.d.ts +11 -4
- package/esm/browser/components/host-view.js +60 -14
- package/esm/browser/components/image-swipe.d.ts +50 -0
- package/esm/browser/components/image-swipe.js +139 -0
- package/esm/browser/components/image-viewer.d.ts +10 -114
- package/esm/browser/components/image-viewer.js +46 -365
- package/esm/browser/components/image-zoom.d.ts +112 -0
- package/esm/browser/components/image-zoom.js +355 -0
- package/esm/browser/components/kept-call-bar.d.ts +12 -0
- package/esm/browser/components/kept-call-bar.js +99 -0
- package/esm/browser/components/lightbox.d.ts +6 -2
- package/esm/browser/components/lightbox.js +4 -3
- package/esm/browser/components/link-dialog.d.ts +2 -1
- package/esm/browser/components/link-dialog.js +5 -1
- package/esm/browser/components/link.d.ts +4 -0
- package/esm/browser/components/link.js +11 -0
- package/esm/browser/components/loading.d.ts +12 -0
- package/esm/browser/components/loading.js +18 -0
- package/esm/browser/components/markdown.js +2 -1
- package/esm/browser/components/mermaid-view.js +14 -7
- package/esm/browser/components/message-images.js +1 -1
- package/esm/browser/components/message-list.js +12 -7
- package/esm/browser/components/message-steps.js +31 -23
- package/esm/browser/components/message-user.d.ts +10 -1
- package/esm/browser/components/message-user.js +48 -13
- package/esm/browser/components/model-picker.d.ts +3 -1
- package/esm/browser/components/model-picker.js +14 -3
- package/esm/browser/components/nav-places.d.ts +7 -12
- package/esm/browser/components/nav-places.js +10 -13
- package/esm/browser/components/phone-shell.d.ts +1 -1
- package/esm/browser/components/scan-screen.d.ts +4 -2
- package/esm/browser/components/scan-screen.js +46 -20
- package/esm/browser/components/search-page.js +3 -2
- package/esm/browser/components/secret-peek.d.ts +3 -0
- package/esm/browser/components/secret-peek.js +19 -0
- package/esm/browser/components/secret-text.d.ts +41 -0
- package/esm/browser/components/secret-text.js +80 -0
- package/esm/browser/components/session-view.js +44 -13
- package/esm/browser/components/settings-choices.d.ts +3 -3
- package/esm/browser/components/settings-choices.js +9 -29
- package/esm/browser/components/settings-parts.js +5 -2
- package/esm/browser/components/settings-view.js +2 -2
- package/esm/browser/components/share-dialog.d.ts +2 -3
- package/esm/browser/components/share-dialog.js +6 -41
- package/esm/browser/components/share-friends.d.ts +18 -0
- package/esm/browser/components/share-friends.js +56 -0
- package/esm/browser/components/share-sheet.d.ts +15 -0
- package/esm/browser/components/share-sheet.js +79 -0
- package/esm/browser/components/side-lists.d.ts +16 -4
- package/esm/browser/components/side-lists.js +28 -12
- package/esm/browser/components/sign-in-accounts.d.ts +2 -1
- package/esm/browser/components/sign-in-accounts.js +59 -5
- package/esm/browser/components/sign-in-label.d.ts +5 -0
- package/esm/browser/components/sign-in-label.js +10 -0
- package/esm/browser/components/system-link-host.d.ts +2 -0
- package/esm/browser/components/system-link-host.js +17 -0
- package/esm/browser/components/tool-result.d.ts +3 -2
- package/esm/browser/components/tool-result.js +5 -3
- package/esm/browser/components/tool-view.d.ts +21 -3
- package/esm/browser/components/tool-view.js +103 -35
- package/esm/browser/components/unseen-drop.d.ts +2 -1
- package/esm/browser/components/unseen-drop.js +1 -1
- package/esm/browser/components/voice-services.js +26 -3
- package/esm/browser/components/workbench-view.d.ts +1 -1
- package/esm/browser/components/workbench-view.js +42 -5
- package/esm/browser/device/code-scan.d.ts +23 -10
- package/esm/browser/device/code-scan.js +48 -43
- package/esm/browser/device/edge-back.d.ts +17 -0
- package/esm/browser/device/edge-back.js +52 -0
- package/esm/browser/device/launch-screen.d.ts +1 -1
- package/esm/browser/device/launch-screen.js +2 -2
- package/esm/browser/device/screen-awake.d.ts +24 -0
- package/esm/browser/device/screen-awake.js +59 -0
- package/esm/browser/extension/icons.js +13 -2
- package/esm/browser/extension/share-sheet-compat.d.ts +11 -0
- package/esm/browser/extension/share-sheet-compat.js +27 -0
- package/esm/browser/extension/web-api-chats.d.ts +49 -0
- package/esm/browser/extension/web-api-chats.js +2 -0
- package/esm/browser/extension/web-api-components.d.ts +61 -6
- package/esm/browser/extension/web-api-contributions.d.ts +28 -53
- package/esm/browser/extension/web-api-screen-share.d.ts +10 -0
- package/esm/browser/extension/web-api-screen-share.js +3 -0
- package/esm/browser/extension/web-api-services.d.ts +50 -0
- package/esm/browser/extension/web-api-services.js +2 -0
- package/esm/browser/extension/web-extension-api.d.ts +45 -65
- package/esm/browser/extension/web-extension-context.d.ts +5 -10
- package/esm/browser/extension/web-extension-context.js +33 -21
- package/esm/browser/extension/web-extension-protocol.d.ts +8 -3
- package/esm/browser/extension/web-extension-run.js +0 -1
- package/esm/browser/extension/web-extensions.d.ts +4 -1
- package/esm/browser/extension/web-extensions.js +12 -0
- package/esm/browser/extension/web-tasks.d.ts +6 -1
- package/esm/browser/extension/web-tasks.js +11 -3
- package/esm/browser/extension/web-view-util.d.ts +0 -1
- package/esm/browser/extension/web-view-util.js +4 -5
- package/esm/browser/files/files.d.ts +1 -0
- package/esm/browser/files/files.js +14 -3
- package/esm/browser/game/game-control.d.ts +118 -0
- package/esm/browser/game/game-control.js +341 -0
- package/esm/browser/game/game-host.d.ts +14 -2
- package/esm/browser/game/game-host.js +22 -5
- package/esm/browser/game/game-protocol.d.ts +15 -0
- package/esm/browser/game/game-runner.d.ts +3 -1
- package/esm/browser/game/game-runner.js +6 -0
- package/esm/browser/game/game-util.d.ts +3 -0
- package/esm/browser/game/game-util.js +3 -0
- package/esm/browser/game/game-view.d.ts +5 -2
- package/esm/browser/game/game-view.js +4 -4
- package/esm/browser/game/game3d-protocol.d.ts +5 -1
- package/esm/browser/game/game3d-runner.d.ts +3 -1
- package/esm/browser/game/game3d-runner.js +14 -0
- package/esm/browser/gateway/console-agents.d.ts +11 -0
- package/esm/browser/gateway/console-agents.js +128 -0
- package/esm/browser/gateway/console-extension.js +0 -1
- package/esm/browser/gateway/console-limits.d.ts +19 -0
- package/esm/browser/gateway/console-limits.js +164 -0
- package/esm/browser/gateway/console-parts.d.ts +29 -22
- package/esm/browser/gateway/console-parts.js +67 -137
- package/esm/browser/gateway/console-tenant.d.ts +2 -4
- package/esm/browser/gateway/console-tenant.js +117 -209
- package/esm/browser/gateway/console-trend.js +6 -4
- package/esm/browser/gateway/console-view.js +136 -109
- package/esm/browser/hooks.js +1 -3
- package/esm/browser/hosts.d.ts +7 -0
- package/esm/browser/hosts.js +23 -2
- package/esm/browser/i18n/locales.d.ts +169 -14
- package/esm/browser/i18n/messages-ja.js +178 -23
- package/esm/browser/i18n/messages-zh-tw.js +178 -23
- package/esm/browser/i18n/messages.d.ts +166 -11
- package/esm/browser/i18n/messages.js +357 -47
- package/esm/browser/index.d.ts +1 -0
- package/esm/browser/index.js +1 -0
- package/esm/browser/links/links-protocol.d.ts +10 -1
- package/esm/browser/links/links.d.ts +11 -2
- package/esm/browser/links/links.js +65 -7
- package/esm/browser/links/system-links.d.ts +21 -0
- package/esm/browser/links/system-links.js +54 -0
- package/esm/browser/markdown/hooks.d.ts +3 -1
- package/esm/browser/markdown/hooks.js +11 -3
- package/esm/browser/markdown/mermaid.d.ts +18 -4
- package/esm/browser/markdown/mermaid.js +117 -17
- package/esm/browser/screen/screen-protocol.d.ts +74 -1
- package/esm/browser/screen/screen-protocol.js +15 -0
- package/esm/browser/screen/screen-scroll.d.ts +55 -0
- package/esm/browser/screen/screen-scroll.js +182 -0
- package/esm/browser/screen/screen.d.ts +34 -1
- package/esm/browser/screen/screen.js +172 -2
- package/esm/browser/settings/navigation.d.ts +9 -21
- package/esm/browser/settings/navigation.js +11 -31
- package/esm/browser/settings/settings-protocol.d.ts +9 -0
- package/esm/browser/settings/settings-protocol.js +18 -0
- package/esm/browser/settings/settings.d.ts +7 -1
- package/esm/browser/settings/settings.js +31 -7
- package/esm/browser/share/shared-extensions.js +4 -3
- package/esm/browser/share/shared-page.js +2 -2
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +8 -1
- package/esm/browser/style/chat-list.d.ts +1 -1
- package/esm/browser/style/chat-list.js +0 -3
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +42 -4
- package/esm/browser/style/dialogs.d.ts +1 -1
- package/esm/browser/style/dialogs.js +31 -1
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/layout.js +7 -15
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +168 -112
- package/esm/browser/style/phone.d.ts +1 -1
- package/esm/browser/style/phone.js +10 -3
- package/esm/browser/style/shared.d.ts +1 -1
- package/esm/browser/style/shared.js +1 -0
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +12 -0
- package/esm/browser/style/surfaces.d.ts +1 -1
- package/esm/browser/style/surfaces.js +38 -13
- package/esm/browser/style/tasks.d.ts +1 -1
- package/esm/browser/style/tasks.js +16 -2
- package/esm/browser/style/tints.d.ts +5 -4
- package/esm/browser/style/tints.js +9 -9
- package/esm/browser/util/desktop.d.ts +7 -1
- package/esm/browser/util/desktop.js +17 -0
- package/esm/browser/util/image-swipe.d.ts +42 -0
- package/esm/browser/util/image-swipe.js +66 -0
- package/esm/browser/util/process.d.ts +31 -3
- package/esm/browser/util/process.js +75 -8
- package/esm/browser/util/share-link.d.ts +5 -0
- package/esm/browser/util/share-link.js +10 -0
- package/esm/browser/util/shell-words.d.ts +18 -0
- package/esm/browser/util/shell-words.js +397 -0
- package/esm/browser/util/spoken.d.ts +5 -0
- package/esm/browser/util/spoken.js +11 -2
- package/esm/browser/util/tool.d.ts +9 -0
- package/esm/browser/util/tool.js +71 -6
- package/esm/browser/util/transcript.js +3 -1
- package/esm/browser/util/turn-end.d.ts +17 -0
- package/esm/browser/util/turn-end.js +164 -0
- package/esm/browser/workbench-hosts.d.ts +8 -1
- package/esm/browser/workbench-hosts.js +22 -2
- package/esm/browser/workbench-protocol.d.ts +25 -3
- package/esm/browser/workbench-services.d.ts +10 -1
- package/esm/browser/workbench-services.js +41 -0
- package/esm/browser/workbench-util.d.ts +9 -3
- package/esm/browser/workbench-util.js +24 -4
- package/esm/browser/workbench.d.ts +3 -0
- package/esm/browser/workbench.js +36 -9
- package/lib/browser/account/account-side.d.ts +14 -0
- package/lib/browser/account/account-side.js +111 -0
- package/lib/browser/account/device-account.d.ts +70 -0
- package/lib/browser/account/device-account.js +219 -0
- package/lib/browser/assistant/assistant-chat-list.d.ts +4 -4
- package/lib/browser/assistant/assistant-chat-list.js +73 -3
- package/lib/browser/assistant/assistant-export.js +5 -1
- package/lib/browser/assistant/assistant-extension.js +69 -14
- package/lib/browser/assistant/assistant-role.d.ts +2 -2
- package/lib/browser/assistant/assistant-role.js +7 -4
- package/lib/browser/assistant/assistant-task-source.d.ts +4 -0
- package/lib/browser/assistant/assistant-task-source.js +19 -4
- package/lib/browser/assistant/assistant-task-util.d.ts +8 -0
- package/lib/browser/assistant/assistant-task-util.js +14 -3
- package/lib/browser/assistant/assistant-tasks.js +2 -2
- package/lib/browser/assistant/assistant-thread.js +4 -0
- package/lib/browser/assistant/assistant-view.js +3 -5
- package/lib/browser/assistant/assistant.js +2 -1
- package/lib/browser/assistant/call-keeper.d.ts +143 -0
- package/lib/browser/assistant/call-keeper.js +295 -0
- package/lib/browser/assistant/call-screen.d.ts +40 -0
- package/lib/browser/assistant/call-screen.js +78 -0
- package/lib/browser/assistant/chat-task-source.d.ts +16 -18
- package/lib/browser/assistant/chat-task-source.js +28 -53
- package/lib/browser/assistant/realtime-voice.d.ts +62 -1
- package/lib/browser/assistant/realtime-voice.js +188 -29
- package/lib/browser/assistant/task-views.d.ts +9 -6
- package/lib/browser/assistant/task-views.js +29 -10
- package/lib/browser/assistant/voice-call-bar.d.ts +11 -4
- package/lib/browser/assistant/voice-call-bar.js +102 -46
- package/lib/browser/assistant/voice-call.d.ts +33 -1
- package/lib/browser/assistant/voice-call.js +132 -29
- package/lib/browser/assistant/voice-reopen.d.ts +19 -0
- package/lib/browser/assistant/voice-reopen.js +58 -0
- package/lib/browser/chat/chat-view.js +5 -8
- package/lib/browser/cloud/cloud-sign-in.d.ts +101 -0
- package/lib/browser/cloud/cloud-sign-in.js +244 -0
- package/lib/browser/cloud/device-page.d.ts +16 -0
- package/lib/browser/cloud/device-page.js +42 -0
- package/lib/browser/components/access-view.js +24 -0
- package/lib/browser/components/account-menu.d.ts +1 -1
- package/lib/browser/components/account-menu.js +6 -1
- package/lib/browser/components/account-view.d.ts +18 -0
- package/lib/browser/components/account-view.js +255 -0
- package/lib/browser/components/app-contexts.d.ts +13 -0
- package/lib/browser/components/app-contexts.js +64 -0
- package/lib/browser/components/app-nav.d.ts +5 -3
- package/lib/browser/components/app-nav.js +11 -8
- package/lib/browser/components/app-shell-state.d.ts +2 -2
- package/lib/browser/components/app-shell-state.js +33 -28
- package/lib/browser/components/app-view.js +109 -78
- package/lib/browser/components/auth-view.js +3 -5
- package/lib/browser/components/call-pill.d.ts +12 -0
- package/lib/browser/components/call-pill.js +55 -0
- package/lib/browser/components/chat-home-util.d.ts +113 -0
- package/lib/browser/components/chat-home-util.js +126 -0
- package/lib/browser/components/chat-home.d.ts +55 -0
- package/lib/browser/components/chat-home.js +164 -0
- package/lib/browser/components/chat-icon.d.ts +4 -2
- package/lib/browser/components/chat-icon.js +15 -5
- package/lib/browser/components/chat-list-hooks.d.ts +31 -0
- package/lib/browser/components/chat-list-hooks.js +120 -0
- package/lib/browser/components/chat-list-props.d.ts +55 -0
- package/lib/browser/components/chat-list-props.js +3 -0
- package/lib/browser/components/chat-list-row.d.ts +14 -2
- package/lib/browser/components/chat-list-row.js +27 -16
- package/lib/browser/components/chat-list-util.d.ts +40 -9
- package/lib/browser/components/chat-list-util.js +73 -10
- package/lib/browser/components/chat-list.d.ts +4 -49
- package/lib/browser/components/chat-list.js +121 -90
- package/lib/browser/components/cloud-sign-in-view.d.ts +66 -0
- package/lib/browser/components/cloud-sign-in-view.js +394 -0
- package/lib/browser/components/code-editor.js +2 -1
- package/lib/browser/components/composer-box.js +7 -0
- package/lib/browser/components/connection-bar.js +22 -3
- package/lib/browser/components/context-menu.d.ts +11 -2
- package/lib/browser/components/context-menu.js +14 -3
- package/lib/browser/components/conversation-scroll.d.ts +2 -0
- package/lib/browser/components/conversation-scroll.js +14 -0
- package/lib/browser/components/device-sign-in-page.d.ts +13 -0
- package/lib/browser/components/device-sign-in-page.js +110 -0
- package/lib/browser/components/diff-editor.js +2 -1
- package/lib/browser/components/entry-holds.d.ts +23 -0
- package/lib/browser/components/entry-holds.js +86 -0
- package/lib/browser/components/environment-view.js +8 -8
- package/lib/browser/components/face.d.ts +1 -1
- package/lib/browser/components/fold-text.js +3 -1
- package/lib/browser/components/fork-view.js +2 -4
- package/lib/browser/components/gallery.js +2 -1
- package/lib/browser/components/held-talk.d.ts +6 -2
- package/lib/browser/components/held-talk.js +20 -2
- package/lib/browser/components/host-view.d.ts +11 -4
- package/lib/browser/components/host-view.js +60 -13
- package/lib/browser/components/image-swipe.d.ts +51 -0
- package/lib/browser/components/image-swipe.js +143 -0
- package/lib/browser/components/image-viewer.d.ts +10 -114
- package/lib/browser/components/image-viewer.js +47 -368
- package/lib/browser/components/image-zoom.d.ts +113 -0
- package/lib/browser/components/image-zoom.js +359 -0
- package/lib/browser/components/kept-call-bar.d.ts +13 -0
- package/lib/browser/components/kept-call-bar.js +135 -0
- package/lib/browser/components/lightbox.d.ts +6 -2
- package/lib/browser/components/lightbox.js +4 -3
- package/lib/browser/components/link-dialog.d.ts +2 -1
- package/lib/browser/components/link-dialog.js +5 -1
- package/lib/browser/components/link.d.ts +4 -0
- package/lib/browser/components/link.js +12 -0
- package/lib/browser/components/loading.d.ts +13 -0
- package/lib/browser/components/loading.js +55 -0
- package/lib/browser/components/markdown.js +2 -1
- package/lib/browser/components/mermaid-view.js +13 -6
- package/lib/browser/components/message-images.js +1 -1
- package/lib/browser/components/message-list.js +12 -7
- package/lib/browser/components/message-steps.js +31 -23
- package/lib/browser/components/message-user.d.ts +10 -1
- package/lib/browser/components/message-user.js +48 -12
- package/lib/browser/components/model-picker.d.ts +3 -1
- package/lib/browser/components/model-picker.js +14 -3
- package/lib/browser/components/nav-places.d.ts +7 -12
- package/lib/browser/components/nav-places.js +10 -13
- package/lib/browser/components/phone-shell.d.ts +1 -1
- package/lib/browser/components/scan-screen.d.ts +4 -2
- package/lib/browser/components/scan-screen.js +47 -20
- package/lib/browser/components/search-page.js +3 -2
- package/lib/browser/components/secret-peek.d.ts +4 -0
- package/lib/browser/components/secret-peek.js +55 -0
- package/lib/browser/components/secret-text.d.ts +42 -0
- package/lib/browser/components/secret-text.js +118 -0
- package/lib/browser/components/session-view.js +43 -12
- package/lib/browser/components/settings-choices.d.ts +3 -3
- package/lib/browser/components/settings-choices.js +8 -28
- package/lib/browser/components/settings-parts.js +4 -1
- package/lib/browser/components/settings-view.js +2 -2
- package/lib/browser/components/share-dialog.d.ts +2 -3
- package/lib/browser/components/share-dialog.js +5 -40
- package/lib/browser/components/share-friends.d.ts +19 -0
- package/lib/browser/components/share-friends.js +93 -0
- package/lib/browser/components/share-sheet.d.ts +16 -0
- package/lib/browser/components/share-sheet.js +115 -0
- package/lib/browser/components/side-lists.d.ts +16 -4
- package/lib/browser/components/side-lists.js +28 -12
- package/lib/browser/components/sign-in-accounts.d.ts +2 -1
- package/lib/browser/components/sign-in-accounts.js +59 -5
- package/lib/browser/components/sign-in-label.d.ts +6 -0
- package/lib/browser/components/sign-in-label.js +13 -0
- package/lib/browser/components/system-link-host.d.ts +3 -0
- package/lib/browser/components/system-link-host.js +53 -0
- package/lib/browser/components/tool-result.d.ts +3 -2
- package/lib/browser/components/tool-result.js +5 -3
- package/lib/browser/components/tool-view.d.ts +21 -3
- package/lib/browser/components/tool-view.js +104 -36
- package/lib/browser/components/unseen-drop.d.ts +2 -1
- package/lib/browser/components/unseen-drop.js +1 -1
- package/lib/browser/components/voice-services.js +23 -0
- package/lib/browser/components/workbench-view.d.ts +1 -1
- package/lib/browser/components/workbench-view.js +42 -5
- package/lib/browser/device/code-scan.d.ts +23 -10
- package/lib/browser/device/code-scan.js +47 -42
- package/lib/browser/device/edge-back.d.ts +18 -0
- package/lib/browser/device/edge-back.js +89 -0
- package/lib/browser/device/launch-screen.d.ts +1 -1
- package/lib/browser/device/launch-screen.js +2 -2
- package/lib/browser/device/screen-awake.d.ts +25 -0
- package/lib/browser/device/screen-awake.js +63 -0
- package/lib/browser/extension/icons.js +12 -1
- package/lib/browser/extension/share-sheet-compat.d.ts +12 -0
- package/lib/browser/extension/share-sheet-compat.js +30 -0
- package/lib/browser/extension/web-api-chats.d.ts +50 -0
- package/lib/browser/extension/web-api-chats.js +3 -0
- package/lib/browser/extension/web-api-components.d.ts +61 -6
- package/lib/browser/extension/web-api-contributions.d.ts +28 -53
- package/lib/browser/extension/web-api-screen-share.d.ts +11 -0
- package/lib/browser/extension/web-api-screen-share.js +6 -0
- package/lib/browser/extension/web-api-services.d.ts +51 -0
- package/lib/browser/extension/web-api-services.js +3 -0
- package/lib/browser/extension/web-extension-api.d.ts +45 -65
- package/lib/browser/extension/web-extension-context.d.ts +5 -10
- package/lib/browser/extension/web-extension-context.js +33 -21
- package/lib/browser/extension/web-extension-protocol.d.ts +8 -3
- package/lib/browser/extension/web-extension-run.js +0 -1
- package/lib/browser/extension/web-extensions.d.ts +4 -1
- package/lib/browser/extension/web-extensions.js +12 -0
- package/lib/browser/extension/web-tasks.d.ts +6 -1
- package/lib/browser/extension/web-tasks.js +11 -3
- package/lib/browser/extension/web-view-util.d.ts +0 -1
- package/lib/browser/extension/web-view-util.js +4 -5
- package/lib/browser/files/files.d.ts +1 -0
- package/lib/browser/files/files.js +14 -3
- package/lib/browser/game/game-control.d.ts +119 -0
- package/lib/browser/game/game-control.js +345 -0
- package/lib/browser/game/game-host.d.ts +14 -2
- package/lib/browser/game/game-host.js +22 -5
- package/lib/browser/game/game-protocol.d.ts +15 -0
- package/lib/browser/game/game-runner.d.ts +3 -1
- package/lib/browser/game/game-runner.js +6 -0
- package/lib/browser/game/game-util.d.ts +3 -0
- package/lib/browser/game/game-util.js +3 -0
- package/lib/browser/game/game-view.d.ts +5 -2
- package/lib/browser/game/game-view.js +4 -4
- package/lib/browser/game/game3d-protocol.d.ts +5 -1
- package/lib/browser/game/game3d-runner.d.ts +3 -1
- package/lib/browser/game/game3d-runner.js +14 -0
- package/lib/browser/gateway/console-agents.d.ts +12 -0
- package/lib/browser/gateway/console-agents.js +165 -0
- package/lib/browser/gateway/console-extension.js +0 -1
- package/lib/browser/gateway/console-limits.d.ts +20 -0
- package/lib/browser/gateway/console-limits.js +200 -0
- package/lib/browser/gateway/console-parts.d.ts +29 -22
- package/lib/browser/gateway/console-parts.js +72 -141
- package/lib/browser/gateway/console-tenant.d.ts +2 -4
- package/lib/browser/gateway/console-tenant.js +115 -208
- package/lib/browser/gateway/console-trend.js +6 -4
- package/lib/browser/gateway/console-view.js +134 -107
- package/lib/browser/hooks.js +1 -3
- package/lib/browser/hosts.d.ts +7 -0
- package/lib/browser/hosts.js +23 -2
- package/lib/browser/i18n/locales.d.ts +169 -14
- package/lib/browser/i18n/messages-ja.js +178 -23
- package/lib/browser/i18n/messages-zh-tw.js +178 -23
- package/lib/browser/i18n/messages.d.ts +166 -11
- package/lib/browser/i18n/messages.js +357 -47
- package/lib/browser/index.d.ts +1 -0
- package/lib/browser/index.js +1 -0
- package/lib/browser/links/links-protocol.d.ts +10 -1
- package/lib/browser/links/links.d.ts +11 -2
- package/lib/browser/links/links.js +65 -7
- package/lib/browser/links/system-links.d.ts +22 -0
- package/lib/browser/links/system-links.js +58 -0
- package/lib/browser/markdown/hooks.d.ts +3 -1
- package/lib/browser/markdown/hooks.js +12 -3
- package/lib/browser/markdown/mermaid.d.ts +18 -4
- package/lib/browser/markdown/mermaid.js +117 -17
- package/lib/browser/screen/screen-protocol.d.ts +74 -1
- package/lib/browser/screen/screen-protocol.js +15 -0
- package/lib/browser/screen/screen-scroll.d.ts +56 -0
- package/lib/browser/screen/screen-scroll.js +185 -0
- package/lib/browser/screen/screen.d.ts +34 -1
- package/lib/browser/screen/screen.js +172 -2
- package/lib/browser/settings/navigation.d.ts +9 -21
- package/lib/browser/settings/navigation.js +11 -31
- package/lib/browser/settings/settings-protocol.d.ts +9 -0
- package/lib/browser/settings/settings-protocol.js +19 -1
- package/lib/browser/settings/settings.d.ts +7 -1
- package/lib/browser/settings/settings.js +31 -7
- package/lib/browser/share/shared-extensions.js +4 -3
- package/lib/browser/share/shared-page.js +2 -2
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +8 -1
- package/lib/browser/style/chat-list.d.ts +1 -1
- package/lib/browser/style/chat-list.js +0 -3
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +42 -4
- package/lib/browser/style/dialogs.d.ts +1 -1
- package/lib/browser/style/dialogs.js +31 -1
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/layout.js +7 -15
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +168 -112
- package/lib/browser/style/phone.d.ts +1 -1
- package/lib/browser/style/phone.js +10 -3
- package/lib/browser/style/shared.d.ts +1 -1
- package/lib/browser/style/shared.js +1 -0
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +12 -0
- package/lib/browser/style/surfaces.d.ts +1 -1
- package/lib/browser/style/surfaces.js +38 -13
- package/lib/browser/style/tasks.d.ts +1 -1
- package/lib/browser/style/tasks.js +16 -2
- package/lib/browser/style/tints.d.ts +5 -4
- package/lib/browser/style/tints.js +9 -9
- package/lib/browser/util/desktop.d.ts +7 -1
- package/lib/browser/util/desktop.js +17 -0
- package/lib/browser/util/image-swipe.d.ts +43 -0
- package/lib/browser/util/image-swipe.js +69 -0
- package/lib/browser/util/process.d.ts +31 -3
- package/lib/browser/util/process.js +74 -7
- package/lib/browser/util/share-link.d.ts +5 -0
- package/lib/browser/util/share-link.js +10 -0
- package/lib/browser/util/shell-words.d.ts +19 -0
- package/lib/browser/util/shell-words.js +400 -0
- package/lib/browser/util/spoken.d.ts +5 -0
- package/lib/browser/util/spoken.js +10 -1
- package/lib/browser/util/tool.d.ts +9 -0
- package/lib/browser/util/tool.js +71 -6
- package/lib/browser/util/transcript.js +3 -1
- package/lib/browser/util/turn-end.d.ts +18 -0
- package/lib/browser/util/turn-end.js +167 -0
- package/lib/browser/workbench-hosts.d.ts +8 -1
- package/lib/browser/workbench-hosts.js +22 -2
- package/lib/browser/workbench-protocol.d.ts +25 -3
- package/lib/browser/workbench-services.d.ts +10 -1
- package/lib/browser/workbench-services.js +41 -0
- package/lib/browser/workbench-util.d.ts +9 -3
- package/lib/browser/workbench-util.js +24 -4
- package/lib/browser/workbench.d.ts +3 -0
- package/lib/browser/workbench.js +35 -8
- package/package.json +7 -7
- package/esm/browser/components/list-skeleton.d.ts +0 -10
- package/esm/browser/components/list-skeleton.js +0 -31
- package/lib/browser/components/list-skeleton.d.ts +0 -11
- package/lib/browser/components/list-skeleton.js +0 -68
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { Globe, Laptop, LogOut, Smartphone, Trash2, X } from 'lucide-react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { createPortal } from 'react-dom';
|
|
4
|
+
import { useAccountInfo, useAccountSide } from '../account/account-side.js';
|
|
5
|
+
import { useBackLayer } from '../device/back-stack.js';
|
|
6
|
+
import { ConsoleUtil } from '../gateway/console-util.js';
|
|
7
|
+
import { useNotices, useWorkbench } from '../hooks.js';
|
|
8
|
+
import { useLanguage, useT } from '../i18n/use-t.js';
|
|
9
|
+
import { WorkbenchUtil } from '../workbench-util.js';
|
|
10
|
+
import { BusyMark, useBusy } from './busy.js';
|
|
11
|
+
import { Callout } from './callout.js';
|
|
12
|
+
import { CodeBox } from './cloud-sign-in-view.js';
|
|
13
|
+
import { Icon, IconButton } from './icon.js';
|
|
14
|
+
import { Loading } from './loading.js';
|
|
15
|
+
import { SignInMark } from './sign-in-marks.js';
|
|
16
|
+
/*
|
|
17
|
+
* The user's account and its devices (docs/design/ta-account.md): signing in, waiting to be let in, letting a new
|
|
18
|
+
* device in after comparing its code, and the devices with whether they are online. The same on a computer (its ta
|
|
19
|
+
* serve's account) and in the app (the phone's own).
|
|
20
|
+
*/
|
|
21
|
+
const KIND_ICONS = { computer: Laptop, phone: Smartphone, browser: Globe };
|
|
22
|
+
/** The code of six digits, split in two for the eye: 482 913. */
|
|
23
|
+
function codeText(code) {
|
|
24
|
+
return `${code.slice(0, 3)} ${code.slice(3)}`;
|
|
25
|
+
}
|
|
26
|
+
function providerName(info, id) {
|
|
27
|
+
var _a;
|
|
28
|
+
var _b;
|
|
29
|
+
return (_b = (_a = info.providers.find(one => one.id === id)) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : (id === 'github' ? 'GitHub' : id);
|
|
30
|
+
}
|
|
31
|
+
/** Signing in: the ways of the service, then the code to enter on the provider's page. */
|
|
32
|
+
function SignInPart({ info, act }) {
|
|
33
|
+
const t = useT();
|
|
34
|
+
const [busy, run] = useBusy();
|
|
35
|
+
const [, notices] = useNotices();
|
|
36
|
+
const go = (action) => void run(() => act(action).catch((error) => notices.error(error)));
|
|
37
|
+
const signing = info.signingIn;
|
|
38
|
+
if (signing) {
|
|
39
|
+
const name = providerName(info, signing.provider);
|
|
40
|
+
return (React.createElement("div", { className: "ta-account-signing" },
|
|
41
|
+
React.createElement("p", null, t('ta.myDevices.enterCode', { name })),
|
|
42
|
+
React.createElement(CodeBox, { code: signing.code }),
|
|
43
|
+
React.createElement("button", { type: "button", className: "ta-button ta-primary ta-wide", onClick: () => window.open(signing.url, '_blank', 'noopener,noreferrer') },
|
|
44
|
+
React.createElement(SignInMark, { provider: signing.provider, size: 16 }),
|
|
45
|
+
" ",
|
|
46
|
+
t('ta.myDevices.openProvider', { name })),
|
|
47
|
+
React.createElement("button", { type: "button", className: "ta-link-button", onClick: () => go(side => side.cancelSignIn()) }, t('ta.cancel'))));
|
|
48
|
+
}
|
|
49
|
+
if (info.providers.length === 0) {
|
|
50
|
+
return React.createElement(Loading, { compact: true });
|
|
51
|
+
}
|
|
52
|
+
return (React.createElement("div", { className: "ta-account-ways" }, info.providers.map(provider => (React.createElement("button", { key: `${provider.service} ${provider.id}`, type: "button", className: busy ? 'ta-button ta-primary ta-wide ta-busy' : 'ta-button ta-primary ta-wide', "aria-busy": busy || undefined, onClick: () => go(async (side) => {
|
|
53
|
+
const next = await side.signIn(provider.id, provider.service);
|
|
54
|
+
if (next.signingIn) {
|
|
55
|
+
window.open(next.signingIn.url, '_blank', 'noopener,noreferrer');
|
|
56
|
+
}
|
|
57
|
+
return next;
|
|
58
|
+
}) },
|
|
59
|
+
React.createElement(SignInMark, { provider: provider.id, size: 16 }),
|
|
60
|
+
" ",
|
|
61
|
+
t('ta.myDevices.signInWith', { name: provider.name }),
|
|
62
|
+
React.createElement(BusyMark, { busy: busy }))))));
|
|
63
|
+
}
|
|
64
|
+
/** This device waits to be let in by another of the account: the code both show. */
|
|
65
|
+
function WaitingPart({ code }) {
|
|
66
|
+
const t = useT();
|
|
67
|
+
return (React.createElement("div", { className: "ta-account-waiting" },
|
|
68
|
+
React.createElement("strong", null, t('ta.myDevices.waitingTitle')),
|
|
69
|
+
React.createElement("div", { className: "ta-account-code", role: "img", "aria-label": code }, codeText(code)),
|
|
70
|
+
React.createElement("p", null, t('ta.myDevices.waitingHint'))));
|
|
71
|
+
}
|
|
72
|
+
function DeviceRow({ device, onApprove, onRemove, onOpen }) {
|
|
73
|
+
var _a;
|
|
74
|
+
const t = useT();
|
|
75
|
+
const language = useLanguage();
|
|
76
|
+
const detail = device.waiting
|
|
77
|
+
? `${t('ta.myDevices.waiting')} · ${t('ta.myDevices.code', { code: codeText((_a = device.code) !== null && _a !== void 0 ? _a : '') })}`
|
|
78
|
+
: device.self
|
|
79
|
+
? t('ta.myDevices.thisDevice')
|
|
80
|
+
: device.online
|
|
81
|
+
? t('ta.myDevices.online')
|
|
82
|
+
: t('ta.myDevices.seen', { time: ConsoleUtil.ago(device.seenAt, language) });
|
|
83
|
+
return (React.createElement("li", { className: `ta-account-device${device.waiting ? ' ta-waiting' : ''}` },
|
|
84
|
+
React.createElement("span", { className: "ta-account-device-icon", "aria-hidden": "true" },
|
|
85
|
+
React.createElement(Icon, { icon: KIND_ICONS[device.kind], size: 18 }),
|
|
86
|
+
!device.waiting && React.createElement("span", { className: `ta-account-dot${device.online ? ' ta-on' : ''}` })),
|
|
87
|
+
React.createElement("span", { className: "ta-account-device-text" },
|
|
88
|
+
React.createElement("span", { className: "ta-ellipsis" }, device.name),
|
|
89
|
+
React.createElement("span", { className: "ta-account-device-detail ta-ellipsis" }, detail)),
|
|
90
|
+
device.waiting ? (React.createElement("span", { className: "ta-account-device-actions" },
|
|
91
|
+
React.createElement("button", { type: "button", className: "ta-button", onClick: onRemove }, t('ta.myDevices.notMe')),
|
|
92
|
+
React.createElement("button", { type: "button", className: "ta-button ta-primary", onClick: onApprove }, t('ta.myDevices.allow')))) : (React.createElement("span", { className: "ta-account-device-actions" },
|
|
93
|
+
onOpen && (React.createElement("button", { type: "button", className: "ta-button", onClick: onOpen }, t('ta.myDevices.open'))),
|
|
94
|
+
!device.self && React.createElement(IconButton, { icon: Trash2, label: t('ta.myDevices.remove'), onClick: onRemove })))));
|
|
95
|
+
}
|
|
96
|
+
/** What the account panel shows: signing in, waiting, or the devices. */
|
|
97
|
+
export function AccountPanel({ side }) {
|
|
98
|
+
var _a;
|
|
99
|
+
const t = useT();
|
|
100
|
+
const [{ hosts, host }, bench] = useWorkbench();
|
|
101
|
+
const [, notices] = useNotices();
|
|
102
|
+
const { info, failed, act } = useAccountInfo(side);
|
|
103
|
+
const app = WorkbenchUtil.isApp();
|
|
104
|
+
const go = (action) => void act(action).catch((error) => notices.error(error));
|
|
105
|
+
if (!info) {
|
|
106
|
+
return failed ? React.createElement(Callout, { level: "error" }, String((_a = failed.message) !== null && _a !== void 0 ? _a : failed)) : React.createElement(Loading, { compact: true });
|
|
107
|
+
}
|
|
108
|
+
if (!info.account) {
|
|
109
|
+
return (React.createElement(React.Fragment, null,
|
|
110
|
+
React.createElement("p", { className: "ta-account-hint" }, t('ta.myDevices.hint')),
|
|
111
|
+
info.error && React.createElement(Callout, { level: "error" }, info.error),
|
|
112
|
+
React.createElement(SignInPart, { info: info, act: act })));
|
|
113
|
+
}
|
|
114
|
+
const remove = async (device) => {
|
|
115
|
+
if (device.waiting ||
|
|
116
|
+
(await notices.confirm({ title: t('ta.myDevices.removeConfirm', { name: device.name }), confirmLabel: t('ta.myDevices.remove'), danger: true }))) {
|
|
117
|
+
go(one => one.remove(device.id));
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
const signOut = async () => {
|
|
121
|
+
if (await notices.confirm({
|
|
122
|
+
title: t(app ? 'ta.myDevices.signOutConfirm' : 'ta.myDevices.signOutConfirmComputer'),
|
|
123
|
+
confirmLabel: t('ta.myDevices.signOut'),
|
|
124
|
+
danger: true,
|
|
125
|
+
})) {
|
|
126
|
+
go(one => one.signOut());
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
/** In the app, a computer of the account is one of the list: a tap switches to it. */
|
|
130
|
+
const openOf = (device) => {
|
|
131
|
+
if (device.self || device.kind !== 'computer') {
|
|
132
|
+
return undefined;
|
|
133
|
+
}
|
|
134
|
+
const saved = app ? hosts.find(one => one.account === device.id) : undefined;
|
|
135
|
+
if (saved) {
|
|
136
|
+
return saved.id === host ? undefined : () => bench.switchTo(saved.id);
|
|
137
|
+
}
|
|
138
|
+
return undefined;
|
|
139
|
+
};
|
|
140
|
+
const devices = [...info.devices].sort((a, b) => Number(b.waiting) - Number(a.waiting) || Number(b.self) - Number(a.self) || a.addedAt - b.addedAt);
|
|
141
|
+
return (React.createElement(React.Fragment, null,
|
|
142
|
+
info.waiting && info.code ? React.createElement(WaitingPart, { code: info.code }) : null,
|
|
143
|
+
info.error && React.createElement(Callout, { level: "error" }, info.error),
|
|
144
|
+
!info.waiting && (React.createElement("ul", { className: "ta-account-devices" }, devices.map(device => (React.createElement(DeviceRow, { key: device.id, device: device, onApprove: () => go(one => one.approve(device.id)), onRemove: () => void remove(device), onOpen: openOf(device) }))))),
|
|
145
|
+
!info.waiting && devices.length < 2 && React.createElement("p", { className: "ta-account-hint" }, t('ta.myDevices.none')),
|
|
146
|
+
React.createElement("div", { className: "ta-account-foot" },
|
|
147
|
+
React.createElement("span", { className: "ta-account-who" },
|
|
148
|
+
React.createElement(SignInMark, { provider: info.account.id.split(':')[0], size: 14 }),
|
|
149
|
+
React.createElement("span", { className: "ta-ellipsis" }, info.account.name)),
|
|
150
|
+
React.createElement("button", { type: "button", className: "ta-button", onClick: () => void signOut() },
|
|
151
|
+
React.createElement(Icon, { icon: LogOut, size: 14 }),
|
|
152
|
+
" ",
|
|
153
|
+
t('ta.myDevices.signOut')))));
|
|
154
|
+
}
|
|
155
|
+
/** The account and its devices, over the page: from Me, the menu of the account, the settings. */
|
|
156
|
+
export function DevicesDialog({ onClose }) {
|
|
157
|
+
const t = useT();
|
|
158
|
+
const side = useAccountSide();
|
|
159
|
+
useBackLayer(true, onClose);
|
|
160
|
+
React.useEffect(() => {
|
|
161
|
+
const onKey = (event) => event.key === 'Escape' && onClose();
|
|
162
|
+
document.addEventListener('keydown', onKey);
|
|
163
|
+
return () => document.removeEventListener('keydown', onKey);
|
|
164
|
+
}, [onClose]);
|
|
165
|
+
return createPortal(React.createElement("div", { className: "ta-modal-scrim" },
|
|
166
|
+
React.createElement("button", { type: "button", className: "ta-overlay-close", "aria-label": t('ta.close'), tabIndex: -1, onClick: onClose }),
|
|
167
|
+
React.createElement("div", { className: "ta-modal ta-account-dialog", role: "dialog", "aria-modal": "true", "aria-label": t('ta.myDevices.title') },
|
|
168
|
+
React.createElement("div", { className: "ta-modal-head" },
|
|
169
|
+
React.createElement("span", { className: "ta-modal-title" }, t('ta.myDevices.title')),
|
|
170
|
+
React.createElement(IconButton, { icon: X, label: t('ta.close'), onClick: onClose })),
|
|
171
|
+
side ? React.createElement(AccountPanel, { side: side }) : React.createElement(Loading, { compact: true }))), document.body);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* A device asks to join the account: whichever device of it the user has at hand says so, with the code to compare,
|
|
175
|
+
* until it is let in, refused, or put off for now.
|
|
176
|
+
*/
|
|
177
|
+
export function AccountAsk() {
|
|
178
|
+
var _a;
|
|
179
|
+
const t = useT();
|
|
180
|
+
const side = useAccountSide();
|
|
181
|
+
const [, notices] = useNotices();
|
|
182
|
+
const { info, act } = useAccountInfo(side, 5000);
|
|
183
|
+
const [later, setLater] = React.useState([]);
|
|
184
|
+
const asking = (info === null || info === void 0 ? void 0 : info.account) && !info.waiting ? info.devices.find(one => one.waiting && !later.includes(one.id)) : undefined;
|
|
185
|
+
if (!asking) {
|
|
186
|
+
return null;
|
|
187
|
+
}
|
|
188
|
+
const go = (action) => void act(action).catch((error) => notices.error(error));
|
|
189
|
+
return createPortal(React.createElement("div", { className: "ta-account-ask", role: "alertdialog", "aria-label": t('ta.myDevices.askTitle', { name: asking.name }) },
|
|
190
|
+
React.createElement("span", { className: "ta-account-device-icon", "aria-hidden": "true" },
|
|
191
|
+
React.createElement(Icon, { icon: KIND_ICONS[asking.kind], size: 20 })),
|
|
192
|
+
React.createElement("div", { className: "ta-account-ask-text" },
|
|
193
|
+
React.createElement("strong", { className: "ta-ellipsis" }, t('ta.myDevices.askTitle', { name: asking.name })),
|
|
194
|
+
React.createElement("span", { className: "ta-account-code" }, codeText((_a = asking.code) !== null && _a !== void 0 ? _a : '')),
|
|
195
|
+
React.createElement("span", { className: "ta-account-hint" }, t('ta.myDevices.askHint'))),
|
|
196
|
+
React.createElement("div", { className: "ta-account-ask-actions" },
|
|
197
|
+
React.createElement("button", { type: "button", className: "ta-link-button", onClick: () => setLater(before => [...before, asking.id]) }, t('ta.myDevices.later')),
|
|
198
|
+
React.createElement("button", { type: "button", className: "ta-button", onClick: () => go(one => one.remove(asking.id)) }, t('ta.myDevices.notMe')),
|
|
199
|
+
React.createElement("button", { type: "button", className: "ta-button ta-primary", onClick: () => go(one => one.approve(asking.id)) }, t('ta.myDevices.allow')))), document.body);
|
|
200
|
+
}
|
|
201
|
+
/** On the sign-in of the app: sign in to the account, and the computers of it come by themselves. */
|
|
202
|
+
export function AccountSignInEntry() {
|
|
203
|
+
const t = useT();
|
|
204
|
+
const side = useAccountSide();
|
|
205
|
+
const [open, setOpen] = React.useState(false);
|
|
206
|
+
const { info } = useAccountInfo(side);
|
|
207
|
+
if (!side || !info || (!info.account && info.providers.length === 0 && !info.signingIn)) {
|
|
208
|
+
return null;
|
|
209
|
+
}
|
|
210
|
+
if (open || info.account || info.signingIn) {
|
|
211
|
+
return (React.createElement("section", { className: "ta-account-sign-in" },
|
|
212
|
+
React.createElement(AccountPanel, { side: side })));
|
|
213
|
+
}
|
|
214
|
+
return (React.createElement("button", { type: "button", className: "ta-button ta-wide", onClick: () => setOpen(true) }, t('ta.myDevices.signInAccount')));
|
|
215
|
+
}
|
|
216
|
+
//# sourceMappingURL=account-view.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { OpenLink } from './link.js';
|
|
3
|
+
import { FileUrls } from './media.js';
|
|
4
|
+
/**
|
|
5
|
+
* What every part of the page reads of the shell and of web extensions: the files and links it opens, how extensions
|
|
6
|
+
* draw messages, code, tools, avatars and icons, their menus, and what a tap on a name of the vault shows.
|
|
7
|
+
*/
|
|
8
|
+
export declare function AppContexts({ fileUrl, openLink, children, }: {
|
|
9
|
+
fileUrl: React.ContextType<typeof FileUrls>;
|
|
10
|
+
openLink: React.ContextType<typeof OpenLink>;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { LoadedExtensions, MessageRenderers, SessionAvatars, SessionMenus, ToolRenderers } from '../extension/extension-view.js';
|
|
3
|
+
import { useWebExtensions } from '../hooks.js';
|
|
4
|
+
import { CodeRenderers } from '../markdown/code-renderers.js';
|
|
5
|
+
import { ChatIconsProvider } from './chat-icon.js';
|
|
6
|
+
import { OpenLink } from './link.js';
|
|
7
|
+
import { FileUrls } from './media.js';
|
|
8
|
+
import { useSecretPeek } from './secret-peek.js';
|
|
9
|
+
import { SecretPeeks } from './secret-text.js';
|
|
10
|
+
/**
|
|
11
|
+
* What every part of the page reads of the shell and of web extensions: the files and links it opens, how extensions
|
|
12
|
+
* draw messages, code, tools, avatars and icons, their menus, and what a tap on a name of the vault shows.
|
|
13
|
+
*/
|
|
14
|
+
export function AppContexts({ fileUrl, openLink, children, }) {
|
|
15
|
+
const [extensions] = useWebExtensions();
|
|
16
|
+
const secretPeek = useSecretPeek();
|
|
17
|
+
return (React.createElement(FileUrls.Provider, { value: fileUrl },
|
|
18
|
+
React.createElement(OpenLink.Provider, { value: openLink },
|
|
19
|
+
React.createElement(MessageRenderers.Provider, { value: extensions.renderers },
|
|
20
|
+
React.createElement(CodeRenderers.Provider, { value: extensions.codeRenderers },
|
|
21
|
+
React.createElement(ToolRenderers.Provider, { value: extensions.toolRenderers },
|
|
22
|
+
React.createElement(SessionAvatars.Provider, { value: extensions.avatars },
|
|
23
|
+
React.createElement(ChatIconsProvider, { entries: extensions.chatIcons },
|
|
24
|
+
React.createElement(SessionMenus.Provider, { value: extensions.sessionMenus },
|
|
25
|
+
React.createElement(LoadedExtensions.Provider, { value: extensions.extensions },
|
|
26
|
+
React.createElement(SecretPeeks.Provider, { value: secretPeek }, children)))))))))));
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=app-contexts.js.map
|
|
@@ -29,17 +29,19 @@ export interface RailProps {
|
|
|
29
29
|
onSurface(surface: PhoneSurface | undefined): void;
|
|
30
30
|
/** What a held entry does: the double listens, the chats open a new one (entryHold). */
|
|
31
31
|
holds: EntryHolds;
|
|
32
|
-
/**
|
|
32
|
+
/** What waits for the user to decide (WebTaskUtil.deciding): a count on the entry of the double, whose home lists it. */
|
|
33
33
|
asks?: number;
|
|
34
|
-
/** Lets
|
|
34
|
+
/** Lets go what the conversations ask, as the user drags the count away. */
|
|
35
35
|
onDismissAsks?(): void;
|
|
36
|
+
/** A chat said something unseen: the amber dot on the double's entry, as on a phone's first tab; dragged away, all seen. */
|
|
37
|
+
onSeeAll?(): void;
|
|
36
38
|
}
|
|
37
39
|
/**
|
|
38
40
|
* The navigation on the left, as the tabs of a phone: the logo; the lists of the sidebar; the pages, and Discover
|
|
39
41
|
* once some are under it; the account with the settings at the bottom. A page's menu (a right click) puts it under
|
|
40
42
|
* Discover; that of the double talks to it, and that of the chats opens a new one (entryMenu).
|
|
41
43
|
*/
|
|
42
|
-
export declare function Rail({ lists, list, onList, navigation, current, onPage, onDiscover, onSettings, settingsShown, surfaces, surface, onSurface, holds, asks, onDismissAsks, }: RailProps): React.JSX.Element;
|
|
44
|
+
export declare function Rail({ lists, list, onList, navigation, current, onPage, onDiscover, onSettings, settingsShown, surfaces, surface, onSurface, holds, asks, onDismissAsks, onSeeAll, }: RailProps): React.JSX.Element;
|
|
43
45
|
/** A sidebar view of a web extension, under its title or its own top bar. */
|
|
44
46
|
export declare function SidebarView({ view }: {
|
|
45
47
|
view: WebViewEntry;
|
|
@@ -17,6 +17,7 @@ import { IconButton, SidebarRight } from './icon.js';
|
|
|
17
17
|
import { DISCOVER, entryHold, hasDiscover, places } from './nav-places.js';
|
|
18
18
|
import { PageStackContext } from './phone-shell.js';
|
|
19
19
|
import { DinoFace } from './ta-avatar.js';
|
|
20
|
+
import { UnseenDrop } from './unseen-drop.js';
|
|
20
21
|
import { WorkbenchToggle, WorkbenchToggleContext } from './workbench-toggle.js';
|
|
21
22
|
/* The navigation of the app: the rail, a sidebar view, a page of the main area. */
|
|
22
23
|
/** Where the pages of the rail go on this device: a phone has the room its tabs leave. */
|
|
@@ -48,17 +49,18 @@ function RailItem({ label, place, active, onClick, onContextMenu, onPointerDown,
|
|
|
48
49
|
* once some are under it; the account with the settings at the bottom. A page's menu (a right click) puts it under
|
|
49
50
|
* Discover; that of the double talks to it, and that of the chats opens a new one (entryMenu).
|
|
50
51
|
*/
|
|
51
|
-
export function Rail({ lists, list, onList, navigation, current, onPage, onDiscover, onSettings, settingsShown, surfaces, surface, onSurface, holds, asks, onDismissAsks, }) {
|
|
52
|
+
export function Rail({ lists, list, onList, navigation, current, onPage, onDiscover, onSettings, settingsShown, surfaces, surface, onSurface, holds, asks, onDismissAsks, onSeeAll, }) {
|
|
52
53
|
const t = useT();
|
|
53
54
|
const [{ server }] = useWorkbench();
|
|
54
55
|
const [menu, openMenu] = useContextMenu();
|
|
55
56
|
const held = useHeld();
|
|
56
57
|
const settingsItem = { label: t('ta.nav.settings'), run: () => onSettings('navigation') };
|
|
57
|
-
/** A page of the rail
|
|
58
|
-
const item = (view
|
|
58
|
+
/** A page of the rail: its menu puts it under Discover. */
|
|
59
|
+
const item = (view) => {
|
|
59
60
|
var _a;
|
|
60
61
|
const Glyph = (_a = view.icon) !== null && _a !== void 0 ? _a : PanelTop;
|
|
61
|
-
return (React.createElement(RailItem, { key: view.id, label: WebLabelUtil.text(view.title), place: `page:${view.id}`, active: !settingsShown && current === view.id, onClick: () => onPage(view.id), onContextMenu:
|
|
62
|
+
return (React.createElement(RailItem, { key: view.id, label: WebLabelUtil.text(view.title), place: `page:${view.id}`, active: !settingsShown && current === view.id, onClick: () => onPage(view.id), onContextMenu: event => openMenu(event, [{ label: t('ta.nav.fold'), run: () => navigation.fold(view.id) }, '-', settingsItem]) },
|
|
63
|
+
React.createElement(Glyph, { size: 20, strokeWidth: 1.6 })));
|
|
62
64
|
};
|
|
63
65
|
const discover = hasDiscover(navigation) || current === DISCOVER;
|
|
64
66
|
// The workbench from anywhere, a page or the settings too, as the launcher and the board.
|
|
@@ -67,10 +69,10 @@ export function Rail({ lists, list, onList, navigation, current, onPage, onDisco
|
|
|
67
69
|
React.createElement("div", { className: "ta-rail-logo", title: server ? `Ta v${server.version}` : 'Ta' },
|
|
68
70
|
React.createElement(Dino, { size: 26 })),
|
|
69
71
|
React.createElement("div", { className: "ta-rail-items" },
|
|
70
|
-
navigation.home && item(navigation.home, false, true),
|
|
71
72
|
lists.map(entry => (React.createElement(RailItem, { key: entry.id, label: entry.label, place: `list:${entry.id}`, active: list === entry.id, onClick: () => onList(entry.id), ...held(entryHold(entry.id, entry.double, holds)) },
|
|
72
73
|
entry.double ? React.createElement(DinoFace, { size: 24, className: "ta-nav-face" }) : React.createElement(entry.icon, { size: 20, strokeWidth: 1.6 }),
|
|
73
|
-
entry.
|
|
74
|
+
entry.double &&
|
|
75
|
+
(asks ? (React.createElement(AsksBadge, { count: asks, onDismiss: onDismissAsks })) : (onSeeAll && React.createElement(UnseenDrop, { label: t('ta.chat.unseen'), onDismiss: onSeeAll, className: "ta-tabbar-dot ta-rail-dot" })))))),
|
|
74
76
|
(navigation.nav.length > 0 || discover) && React.createElement("hr", { className: "ta-rail-divider" }),
|
|
75
77
|
navigation.nav.map(view => item(view)),
|
|
76
78
|
discover && (React.createElement(RailItem, { label: t('ta.discover'), place: "discover", active: !settingsShown && current === DISCOVER, onClick: onDiscover, onContextMenu: event => openMenu(event, [settingsItem]) },
|
|
@@ -129,7 +131,8 @@ export function PageView({ view, leading }) {
|
|
|
129
131
|
React.createElement(view.head, null)))) : (React.createElement("div", { className: "ta-main-title" },
|
|
130
132
|
React.createElement("span", null, title))),
|
|
131
133
|
React.createElement(WorkbenchToggle, null)),
|
|
132
|
-
React.createElement(
|
|
133
|
-
React.createElement(View,
|
|
134
|
+
React.createElement("div", { className: "ta-page-body" },
|
|
135
|
+
React.createElement(ExtensionBoundary, { key: view.id, name: title, resetKey: View },
|
|
136
|
+
React.createElement(View, null)))));
|
|
134
137
|
}
|
|
135
138
|
//# sourceMappingURL=app-nav.js.map
|
|
@@ -54,7 +54,6 @@ export declare function useAppShell(): {
|
|
|
54
54
|
activeEditor: string | undefined;
|
|
55
55
|
view: import("../index.js").WebViewEntry | undefined;
|
|
56
56
|
sideView: import("../index.js").WebViewEntry | undefined;
|
|
57
|
-
sideComing: boolean;
|
|
58
57
|
side: string;
|
|
59
58
|
showPage: (id: string) => void;
|
|
60
59
|
lists: import("./side-lists.js").SideList[];
|
|
@@ -65,7 +64,7 @@ export declare function useAppShell(): {
|
|
|
65
64
|
navigation: import("./nav-places.js").Navigation;
|
|
66
65
|
codeScan: import("../device/code-scan.js").CodeScan | undefined;
|
|
67
66
|
notices: import("../index.js").TaNotices;
|
|
68
|
-
|
|
67
|
+
railCurrent: string;
|
|
69
68
|
tabView: import("../index.js").WebViewEntry | undefined;
|
|
70
69
|
screenPage: import("../index.js").WebViewEntry | undefined;
|
|
71
70
|
seenChats: import("./chat-seen.js").ChatSeen;
|
|
@@ -76,5 +75,6 @@ export declare function useAppShell(): {
|
|
|
76
75
|
toggleWorkbench: () => void;
|
|
77
76
|
picking: React.RefObject<() => void>;
|
|
78
77
|
chatsBusy: boolean;
|
|
78
|
+
deciding: number;
|
|
79
79
|
setChatsBusy: React.Dispatch<React.SetStateAction<boolean>>;
|
|
80
80
|
};
|
|
@@ -6,6 +6,7 @@ import { REMOVED_CHATS } from '../chat/chat-protocol.js';
|
|
|
6
6
|
import { useChat } from '../chat/chat-view.js';
|
|
7
7
|
import { useBackLayer, useNoBackLayer } from '../device/back-stack.js';
|
|
8
8
|
import { useDevice } from '../device/device.js';
|
|
9
|
+
import { WebTaskUtil } from '../extension/web-tasks.js';
|
|
9
10
|
import { TaFiles } from '../files/files-protocol.js';
|
|
10
11
|
import { useCodeScan, useNotices, useOpenLink, usePersisted, useSettings, useWebExtensions, useWorkbench } from '../hooks.js';
|
|
11
12
|
import { useT } from '../i18n/use-t.js';
|
|
@@ -16,6 +17,7 @@ import { CARDS_ID, EDITOR, FIRST_SIDE, SETTINGS_SHOWN, SIDE, SIDEBAR, TAB_PAGE,
|
|
|
16
17
|
import { useSurfaces } from './board.js';
|
|
17
18
|
import { LET_GO_ASKS } from './chat-asks.js';
|
|
18
19
|
import { BY_DIRECTORY, FOLDED, PINNED } from './chat-list-util.js';
|
|
20
|
+
import { DISCOVER } from './nav-places.js';
|
|
19
21
|
import { DOUBLE_PAGE, SideListUtil } from './side-lists.js';
|
|
20
22
|
import { usePane } from './split-pane.js';
|
|
21
23
|
import { usePageVisible } from './use-seen-chats.js';
|
|
@@ -188,17 +190,16 @@ export function useAppShell() {
|
|
|
188
190
|
const { hasCards, openCards, cardsTool } = useWorkbenchCards(rightOpen && !editor.collapsed);
|
|
189
191
|
const view = extensions.views.find(candidate => candidate.id === page && candidate.location === 'page');
|
|
190
192
|
const sideViews = SideListUtil.sidebarViews(extensions.views);
|
|
191
|
-
const
|
|
192
|
-
// The first
|
|
193
|
-
const
|
|
194
|
-
const side = sideView ? sideView.id :
|
|
193
|
+
const lists = SideListUtil.of(sideViews, { chats: t('ta.chat'), double: t('ta.nav.double') });
|
|
194
|
+
// The first list is the double's: the chats, else (a sidebar view of before that lists the double) that view.
|
|
195
|
+
const sideView = sideViews.find(candidate => candidate.id === (sideId === FIRST_SIDE ? lists[0].id : sideId));
|
|
196
|
+
const side = sideView ? sideView.id : '';
|
|
195
197
|
const showPage = (id) => {
|
|
196
198
|
host.showPage(id);
|
|
197
199
|
setNavOpen(false);
|
|
198
200
|
setSettings(undefined);
|
|
199
201
|
setTabPage(undefined);
|
|
200
202
|
};
|
|
201
|
-
const lists = SideListUtil.of(sideViews, t('ta.chat'));
|
|
202
203
|
const tools = [...(hasCards ? [cardsTool] : []), ...extensions.views.filter(candidate => candidate.location === 'panel')];
|
|
203
204
|
const openTool = (id) => (id === CARDS_ID ? openCards() : host.openView(id));
|
|
204
205
|
// The workbench: the tabs open, or the tools that open there.
|
|
@@ -224,22 +225,16 @@ export function useAppShell() {
|
|
|
224
225
|
const navigation = useNavigation(extensions.views);
|
|
225
226
|
const codeScan = useCodeScan();
|
|
226
227
|
const [, notices] = useNotices();
|
|
227
|
-
//
|
|
228
|
-
|
|
229
|
-
const
|
|
230
|
-
React.useEffect(() => {
|
|
231
|
-
if (homeId && !homeOpened.current) {
|
|
232
|
-
homeOpened.current = true;
|
|
233
|
-
if (!host.state.page) {
|
|
234
|
-
host.showPage(homeId);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}, [homeId, host]);
|
|
228
|
+
// A page a row of the double's home opened (TaWebExtensions.openHome) shows as a conversation of the list does:
|
|
229
|
+
// beside the list, with the list on the rail, wherever else the page is (Discover, the navigation).
|
|
230
|
+
const fromHome = !!view && !!extensions.pageFrom;
|
|
238
231
|
// A page of an extension started on open that Discover lists: shown as those of Discover are.
|
|
239
|
-
const discoveredOnOpen = !!(view === null || view === void 0 ? void 0 : view.onOpen) && navigation.onOpen.some(entry => entry.state === 'shown');
|
|
240
|
-
const railView = view &&
|
|
232
|
+
const discoveredOnOpen = !fromHome && !!(view === null || view === void 0 ? void 0 : view.onOpen) && navigation.onOpen.some(entry => entry.state === 'shown');
|
|
233
|
+
const railView = view && !fromHome && (navigation.pages.includes(view) || discoveredOnOpen) ? view : undefined;
|
|
241
234
|
// On a phone a page of a list (a channel, the double) or of Discover comes in front of the tabs; one of the navigation is a tab.
|
|
242
|
-
const tabView = view &&
|
|
235
|
+
const tabView = view && !fromHome && navigation.nav.includes(view) ? view : undefined;
|
|
236
|
+
// What the rail lights: Discover for a page of it, the page for one of the navigation, nothing for a page of the list.
|
|
237
|
+
const railCurrent = tabPage === 'discover' || discoveredOnOpen || (view && !fromHome && navigation.discover.includes(view)) ? DISCOVER : fromHome ? '' : ((_a = view === null || view === void 0 ? void 0 : view.id) !== null && _a !== void 0 ? _a : '');
|
|
243
238
|
// A page of the screen, and those in the background beside it, kept as they were.
|
|
244
239
|
const screenPage = settings === undefined && view && !tabView ? view : undefined;
|
|
245
240
|
// The conversation in front, where the tools of the workbench follow its directory; else they are in the default one.
|
|
@@ -332,8 +327,13 @@ export function useAppShell() {
|
|
|
332
327
|
}
|
|
333
328
|
};
|
|
334
329
|
// The list of chats asked for (ui.showChats): in the sidebar, or the tab of a phone; `busy` keeps only those going
|
|
335
|
-
// on, until the user clears it or another list is shown.
|
|
330
|
+
// on, until the user clears it or another list is shown. On a phone those going on are a page pushed over the tab
|
|
331
|
+
// they were asked from (PhoneStack, AppShell), back with its button, a swipe from the left edge or the back of the
|
|
332
|
+
// system, as the folder of the chats is: the tab stays.
|
|
336
333
|
const [chatsBusy, setChatsBusy] = React.useState(false);
|
|
334
|
+
// What waits for the user to decide, as the double's home lists it: counted on the double's entry, not the chats'.
|
|
335
|
+
const tasks = React.useSyncExternalStore(host.tasks.subscribe, host.tasks.tasks, host.tasks.tasks);
|
|
336
|
+
const deciding = WebTaskUtil.deciding(tasks);
|
|
337
337
|
const chatsAsked = extensions.chatsShown;
|
|
338
338
|
// biome-ignore lint/correctness/useExhaustiveDependencies: each time it is asked, the same again too
|
|
339
339
|
React.useEffect(() => {
|
|
@@ -341,21 +341,26 @@ export function useAppShell() {
|
|
|
341
341
|
return;
|
|
342
342
|
}
|
|
343
343
|
setChatsBusy(chatsAsked.busy);
|
|
344
|
-
setSideId('');
|
|
345
344
|
setSurface(undefined);
|
|
346
345
|
setSettings(undefined);
|
|
347
|
-
setTabPage(undefined);
|
|
348
346
|
setNavOpen(false);
|
|
349
347
|
if (phone) {
|
|
350
348
|
setScreenOpen(false);
|
|
351
349
|
if (showEditors) {
|
|
352
350
|
toggleRight();
|
|
353
351
|
}
|
|
354
|
-
|
|
355
|
-
|
|
352
|
+
// Pushed over the tab, unless it is a page of an extension's own (SideListUtil.pushesOver): then over the chats.
|
|
353
|
+
if (!chatsAsked.busy || !SideListUtil.pushesOver(tabView)) {
|
|
354
|
+
setSideId('');
|
|
355
|
+
setTabPage(undefined);
|
|
356
|
+
if (tabView) {
|
|
357
|
+
host.showPage('');
|
|
358
|
+
}
|
|
356
359
|
}
|
|
357
360
|
}
|
|
358
361
|
else {
|
|
362
|
+
setSideId('');
|
|
363
|
+
setTabPage(undefined);
|
|
359
364
|
if (view && full) {
|
|
360
365
|
host.showPage('');
|
|
361
366
|
}
|
|
@@ -363,10 +368,10 @@ export function useAppShell() {
|
|
|
363
368
|
}
|
|
364
369
|
}, [chatsAsked.count]);
|
|
365
370
|
React.useEffect(() => {
|
|
366
|
-
if (side !== '') {
|
|
371
|
+
if (side !== '' && !phone) {
|
|
367
372
|
setChatsBusy(false);
|
|
368
373
|
}
|
|
369
|
-
}, [side]);
|
|
374
|
+
}, [side, phone]);
|
|
370
375
|
const toggleWorkbench = () => {
|
|
371
376
|
if (showEditors) {
|
|
372
377
|
toggleRight();
|
|
@@ -438,7 +443,6 @@ export function useAppShell() {
|
|
|
438
443
|
activeEditor,
|
|
439
444
|
view,
|
|
440
445
|
sideView,
|
|
441
|
-
sideComing,
|
|
442
446
|
side,
|
|
443
447
|
showPage,
|
|
444
448
|
lists,
|
|
@@ -449,7 +453,7 @@ export function useAppShell() {
|
|
|
449
453
|
navigation,
|
|
450
454
|
codeScan,
|
|
451
455
|
notices,
|
|
452
|
-
|
|
456
|
+
railCurrent,
|
|
453
457
|
tabView,
|
|
454
458
|
screenPage,
|
|
455
459
|
seenChats,
|
|
@@ -460,6 +464,7 @@ export function useAppShell() {
|
|
|
460
464
|
toggleWorkbench,
|
|
461
465
|
picking,
|
|
462
466
|
chatsBusy,
|
|
467
|
+
deciding,
|
|
463
468
|
setChatsBusy,
|
|
464
469
|
};
|
|
465
470
|
}
|