@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
|
@@ -38,16 +38,16 @@ const lucide_react_1 = require("lucide-react");
|
|
|
38
38
|
const React = __importStar(require("react"));
|
|
39
39
|
const assistant_chat_list_1 = require("../assistant/assistant-chat-list");
|
|
40
40
|
const chat_view_1 = require("../chat/chat-view");
|
|
41
|
+
const device_page_1 = require("../cloud/device-page");
|
|
42
|
+
const device_protocol_1 = require("../device/device-protocol");
|
|
41
43
|
const launch_screen_1 = require("../device/launch-screen");
|
|
42
|
-
const extension_view_1 = require("../extension/extension-view");
|
|
43
44
|
const web_extension_protocol_1 = require("../extension/web-extension-protocol");
|
|
44
45
|
const hooks_1 = require("../hooks");
|
|
45
|
-
const code_renderers_1 = require("../markdown/code-renderers");
|
|
46
46
|
const notices_1 = require("../notices/notices");
|
|
47
47
|
const shared_link_1 = require("../share/shared-link");
|
|
48
48
|
const shared_page_1 = require("../share/shared-page");
|
|
49
|
-
const voice_1 = require("../util/voice");
|
|
50
49
|
const workbench_util_1 = require("../workbench-util");
|
|
50
|
+
const app_contexts_1 = require("./app-contexts");
|
|
51
51
|
const app_nav_1 = require("./app-nav");
|
|
52
52
|
const app_shell_hooks_1 = require("./app-shell-hooks");
|
|
53
53
|
const app_shell_state_1 = require("./app-shell-state");
|
|
@@ -59,20 +59,19 @@ const chat_list_util_1 = require("./chat-list-util");
|
|
|
59
59
|
const chat_seen_1 = require("./chat-seen");
|
|
60
60
|
const connection_bar_1 = require("./connection-bar");
|
|
61
61
|
const custom_host_1 = require("./custom-host");
|
|
62
|
+
const device_sign_in_page_1 = require("./device-sign-in-page");
|
|
62
63
|
const dino_look_1 = require("./dino-look");
|
|
63
64
|
const discover_view_1 = require("./discover-view");
|
|
64
65
|
const editor_area_1 = require("./editor-area");
|
|
66
|
+
const entry_holds_1 = require("./entry-holds");
|
|
65
67
|
const environment_view_1 = require("./environment-view");
|
|
66
|
-
const held_talk_1 = require("./held-talk");
|
|
67
68
|
const host_view_1 = require("./host-view");
|
|
68
69
|
const icon_1 = require("./icon");
|
|
70
|
+
const kept_call_bar_1 = require("./kept-call-bar");
|
|
69
71
|
const kept_pages_1 = require("./kept-pages");
|
|
70
72
|
const launcher_surface_1 = require("./launcher-surface");
|
|
71
|
-
const link_1 = require("./link");
|
|
72
73
|
const link_dialog_1 = require("./link-dialog");
|
|
73
|
-
const list_skeleton_1 = require("./list-skeleton");
|
|
74
74
|
const me_view_1 = require("./me-view");
|
|
75
|
-
const media_1 = require("./media");
|
|
76
75
|
const nav_places_1 = require("./nav-places");
|
|
77
76
|
const notice_center_1 = require("./notice-center");
|
|
78
77
|
const phone_shell_1 = require("./phone-shell");
|
|
@@ -96,9 +95,9 @@ const workbench_view_1 = require("./workbench-view");
|
|
|
96
95
|
* the conversation instead.
|
|
97
96
|
*/
|
|
98
97
|
function AppShell() {
|
|
99
|
-
var _a, _b, _c
|
|
100
|
-
var
|
|
101
|
-
const { t, workbench, extensions, host, store, pending, chat, setSideId, removedChats, chatsByDirectory, setChatsByDirectory, foldedChats, setFoldedChats, pinnedChats, setPinnedChats, letGoAsks, setLetGoAsks, navOpen, setNavOpen, phone, screenOpen, setScreenOpen, surface, setSurface, surfaces, settings, setSettings, settingsOpened, tabPage, setTabPage, openSettings, closeSettings, settingsShown, toggleRight, maximized, setMaximized, chatSettings, readArchived, sidebar, editor, online, fileUrl, openLink, activeEditor, view, sideView,
|
|
98
|
+
var _a, _b, _c;
|
|
99
|
+
var _d, _e;
|
|
100
|
+
const { t, workbench, extensions, host, store, pending, chat, setSideId, removedChats, chatsByDirectory, setChatsByDirectory, foldedChats, setFoldedChats, pinnedChats, setPinnedChats, letGoAsks, setLetGoAsks, navOpen, setNavOpen, phone, screenOpen, setScreenOpen, surface, setSurface, surfaces, settings, setSettings, settingsOpened, tabPage, setTabPage, openSettings, closeSettings, settingsShown, toggleRight, maximized, setMaximized, chatSettings, readArchived, sidebar, editor, online, fileUrl, openLink, activeEditor, view, sideView, side, showPage, lists, tools, openTool, editors, showEditors, navigation, codeScan, notices, railCurrent, tabView, screenPage, seenChats, looking, state, sideShown, showList, toggleWorkbench, picking, chatsBusy, setChatsBusy, deciding, } = (0, app_shell_state_1.useAppShell)();
|
|
102
101
|
const [providers, reloadProviders] = (0, auth_view_1.useAuthProviders)(online);
|
|
103
102
|
const [later, setLater] = (0, hooks_1.usePersisted)(app_shell_hooks_1.LOGIN_LATER);
|
|
104
103
|
/** A call failed for want of a sign-in (SIGN_IN_EVENT): the page of sign-in, even if the user put it off. */
|
|
@@ -111,12 +110,12 @@ function AppShell() {
|
|
|
111
110
|
window.addEventListener(notices_1.SIGN_IN_EVENT, ask);
|
|
112
111
|
return () => window.removeEventListener(notices_1.SIGN_IN_EVENT, ask);
|
|
113
112
|
}, [reloadProviders]);
|
|
114
|
-
|
|
115
|
-
const doubleId = (_e = (_a = navigation.home) === null || _a === void 0 ? void 0 : _a.id) !== null && _e !== void 0 ? _e : side_lists_1.DOUBLE_PAGE;
|
|
113
|
+
const doubleId = side_lists_1.DOUBLE_PAGE;
|
|
116
114
|
// Where Ta's agents read the page to be, and go (docs/design/ta-app-use.md 3): set below as it renders.
|
|
117
115
|
const screenShell = (0, screen_navigator_1.useScreenNavigator)();
|
|
116
|
+
const inCall = (0, entry_holds_1.useCallGoingOn)();
|
|
118
117
|
if (workbench.status === 'signed-out') {
|
|
119
|
-
return React.createElement(workbench_view_1.SignIn, { error: workbench.error });
|
|
118
|
+
return workbench.leaving ? React.createElement("div", { className: "ta-signin" }) : React.createElement(workbench_view_1.SignIn, { error: workbench.error });
|
|
120
119
|
}
|
|
121
120
|
if (workbench.error === 'environment') {
|
|
122
121
|
return React.createElement(environment_view_1.EnvironmentPage, null);
|
|
@@ -149,7 +148,7 @@ function AppShell() {
|
|
|
149
148
|
}
|
|
150
149
|
};
|
|
151
150
|
picking.current = picked;
|
|
152
|
-
const
|
|
151
|
+
const chatList = (busy) => (React.createElement(assistant_chat_list_1.AssistantChatList, { sessions: workbench.sessions, saved: workbench.saved, removed: removedChats, archived: workbench.archived, onArchive: readArchived, foldDays: chatSettings.chatFoldDays, archiveDays: chatSettings.chatArchiveDays, selected: view || phone ? undefined : (pending !== null && pending !== void 0 ? pending : store === null || store === void 0 ? void 0 : store.sessionId), chat: chat, byDirectory: chatsByDirectory, onByDirectory: setChatsByDirectory, folded: foldedChats, onFolded: setFoldedChats, pinned: pinnedChats, onPinned: setPinnedChats, looking: looking, seen: seenChats, onUnseen: (entry, unseen) => {
|
|
153
152
|
var _a;
|
|
154
153
|
const file = chat_list_util_1.ChatListUtil.file(entry);
|
|
155
154
|
const before = state.get(chat_seen_1.SEEN_CHATS);
|
|
@@ -161,9 +160,10 @@ function AppShell() {
|
|
|
161
160
|
if (at !== undefined) {
|
|
162
161
|
setLetGoAsks(before => chat_asks_1.ChatAskUtil.letGo(before, chat_list_util_1.ChatListUtil.file(entry), at));
|
|
163
162
|
}
|
|
164
|
-
}, onPicked: picked, busy:
|
|
165
|
-
|
|
166
|
-
const
|
|
163
|
+
}, onPicked: picked, busy: busy, onBusy: setChatsBusy }));
|
|
164
|
+
// On a phone the conversations going on are pushed over the tab (below); elsewhere they are the chats, filtered.
|
|
165
|
+
const sideList = sideView ? React.createElement(app_nav_1.SidebarView, { view: sideView }) : chatList(!phone && chatsBusy);
|
|
166
|
+
const editorArea = (React.createElement(editor_area_1.EditorArea, { editors: extensions.editors, active: activeEditor, views: tools, onShow: id => host.showEditor(id), onClose: ids => void host.closeEditors(ids), onPin: id => host.pinEditor(id), onOpenView: openTool, onHide: editor.toggle, cwd: (_d = web_extension_protocol_1.WebCwdUtil.shown(extensions)) !== null && _d !== void 0 ? _d : (_a = workbench.server) === null || _a === void 0 ? void 0 : _a.cwd, maximized: maximized, onMaximize: () => setMaximized(!maximized) }));
|
|
167
167
|
// A photo of the scan screen to the double: its conversation shows, the photo goes with what to do with it.
|
|
168
168
|
const askDouble = async (text, image) => {
|
|
169
169
|
const double = extensions.views.find(candidate => candidate.id === side_lists_1.DOUBLE_PAGE);
|
|
@@ -184,10 +184,22 @@ function AppShell() {
|
|
|
184
184
|
React.createElement(link_dialog_1.LinkDialog, null),
|
|
185
185
|
React.createElement(remote_prompts_1.RemotePrompts, null),
|
|
186
186
|
React.createElement(serve_restart_1.ServeRestartNotices, null),
|
|
187
|
-
React.createElement(host_view_1.
|
|
187
|
+
React.createElement(host_view_1.DeviceOverlays, null),
|
|
188
188
|
codeScan && React.createElement(scan_screen_1.ScanHost, { onCode: text => void codeScan.open(text), onAsk: askDouble }),
|
|
189
189
|
React.createElement(share_dialog_1.ShareHost, null),
|
|
190
|
-
React.createElement(custom_host_1.CustomHost, null)
|
|
190
|
+
React.createElement(custom_host_1.CustomHost, null),
|
|
191
|
+
React.createElement(kept_call_bar_1.KeptCallBar, { looking: looking, onBack: (sessionId, double) => {
|
|
192
|
+
var _a;
|
|
193
|
+
if (double) {
|
|
194
|
+
showPage(doubleId);
|
|
195
|
+
if (phone) {
|
|
196
|
+
setScreenOpen(true);
|
|
197
|
+
}
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
void ((_a = host.sessionSwitcher()) === null || _a === void 0 ? void 0 : _a(sessionId));
|
|
201
|
+
picked();
|
|
202
|
+
} })));
|
|
191
203
|
// The screen of a phone slides away: a page it showed is out of sight, and its extension may go to the background.
|
|
192
204
|
const closeScreen = () => {
|
|
193
205
|
setScreenOpen(false);
|
|
@@ -217,46 +229,38 @@ function AppShell() {
|
|
|
217
229
|
}
|
|
218
230
|
};
|
|
219
231
|
const discoverView = (leading) => (React.createElement(discover_view_1.DiscoverView, { pages: navigation.discover, onOpenPages: navigation.onOpen, onOpen: openDiscovered, onPin: pinDiscovered, onSettings: () => openSettings('navigation'), onScan: codeScan && (() => void codeScan.scan()), leading: leading }));
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
232
|
+
const keptPages = entry_holds_1.EntryHoldUtil.kept(extensions.kept, inCall, tabView);
|
|
233
|
+
const holds = entry_holds_1.EntryHoldUtil.holds({
|
|
234
|
+
double: () => {
|
|
235
|
+
const before = { view: view === null || view === void 0 ? void 0 : view.id, settings, tabPage, screenOpen };
|
|
236
|
+
showPage(doubleId);
|
|
237
|
+
return given => {
|
|
238
|
+
var _a;
|
|
239
|
+
if (given === 'call') {
|
|
240
|
+
host.showPage((_a = before.view) !== null && _a !== void 0 ? _a : '');
|
|
241
|
+
setSettings(before.settings);
|
|
242
|
+
setTabPage(before.tabPage);
|
|
243
|
+
setScreenOpen(before.screenOpen);
|
|
244
|
+
}
|
|
245
|
+
else if (phone) {
|
|
246
|
+
setScreenOpen(true);
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
},
|
|
250
|
+
chats: () => {
|
|
251
|
+
void chat.draft();
|
|
252
|
+
picked();
|
|
226
253
|
},
|
|
227
|
-
move: held_talk_1.HeldTalk.point,
|
|
228
|
-
end: held_talk_1.HeldTalk.release,
|
|
229
|
-
cancel: held_talk_1.HeldTalk.cancel,
|
|
230
254
|
});
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
double: talkHold('double', () => {
|
|
234
|
-
showPage(doubleId);
|
|
235
|
-
// Over the tabs when a sidebar view lists the double; as a tab of its own elsewhere.
|
|
236
|
-
if (phone) {
|
|
237
|
-
setScreenOpen(!navigation.home);
|
|
238
|
-
}
|
|
239
|
-
}),
|
|
240
|
-
chats: talkHold('draft', () => {
|
|
241
|
-
void chat.draft();
|
|
242
|
-
picked();
|
|
243
|
-
}),
|
|
244
|
-
}
|
|
245
|
-
: {};
|
|
246
|
-
// The chats' tab has the amber dot of their rows while one of them said something unseen, as a messenger's: of
|
|
247
|
-
// those the list shows, so that each dot of the tab has a row to find. Those that
|
|
248
|
-
// wait for the user to decide are counted on it, on the rail too, until answered.
|
|
255
|
+
// The chats' tab, and the double's on the rail, have the amber dot of the rows listed while one said something unseen,
|
|
256
|
+
// as a messenger's, but those quiet (a call); what waits for the user to decide is counted there until answered.
|
|
249
257
|
const listedChats = chat_list_util_1.ChatListUtil.entries(workbench.sessions, workbench.saved, removedChats, undefined, workbench_util_1.WorkbenchUtil.daysAgo(Date.now(), chatSettings.chatArchiveDays), chat_list_util_1.ChatListUtil.keptFiles(workbench.saved, pinnedChats, letGoAsks), chat_icon_1.ChatIconUtil.archiveSince(extensions.chatIcons, Date.now())).listed;
|
|
250
|
-
const chatsAsking = chat_asks_1.ChatAskUtil.count(listedChats, letGoAsks);
|
|
251
258
|
const inFront = looking ? workbench.sessions.find(session => session.sessionId === looking) : undefined;
|
|
252
|
-
const chatsUnseen = chat_seen_1.ChatSeenUtil.anyUnseen(listedChats, seenChats, inFront && chat_list_util_1.ChatListUtil.file(inFront));
|
|
253
|
-
// Dragged away, the dot
|
|
254
|
-
const seeAllChats = () =>
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
setLetGoAsks(before => chat_asks_1.ChatAskUtil.letGoAll(before, listedChats));
|
|
258
|
-
}
|
|
259
|
-
};
|
|
259
|
+
const chatsUnseen = chat_seen_1.ChatSeenUtil.anyUnseen(chat_icon_1.ChatIconUtil.loud(extensions.chatIcons, listedChats), seenChats, inFront && chat_list_util_1.ChatListUtil.file(inFront));
|
|
260
|
+
// Dragged away, the dot of the chats: all seen.
|
|
261
|
+
const seeAllChats = () => state.set(chat_seen_1.SEEN_CHATS, chat_seen_1.ChatSeenUtil.seeAll(state.get(chat_seen_1.SEEN_CHATS), listedChats, Date.now()));
|
|
262
|
+
// Dragged away, the count of the double: what the conversations ask let go; the double's own tasks wait on.
|
|
263
|
+
const letGoAllAsks = () => setLetGoAsks(before => chat_asks_1.ChatAskUtil.letGoAll(before, listedChats));
|
|
260
264
|
const tabs = phone
|
|
261
265
|
? (0, nav_places_1.phoneTabs)(lists, navigation, {
|
|
262
266
|
discover: t('ta.discover'),
|
|
@@ -264,13 +268,17 @@ function AppShell() {
|
|
|
264
268
|
fold: t('ta.nav.fold'),
|
|
265
269
|
settings: { label: t('ta.nav.settings'), run: () => openSettings('navigation') },
|
|
266
270
|
holds,
|
|
267
|
-
}).map(item =>
|
|
271
|
+
}).map(item => item.id === '' && chatsUnseen
|
|
272
|
+
? { ...item, unseen: true, onSeeAll: seeAllChats }
|
|
273
|
+
: item.double && deciding
|
|
274
|
+
? { ...item, asks: deciding, onSeeAll: letGoAllAsks }
|
|
275
|
+
: item)
|
|
268
276
|
: [];
|
|
269
|
-
const tab = tabPage === 'me' ? nav_places_1.ME_TAB : tabPage === 'discover' ? nav_places_1.DISCOVER : ((
|
|
277
|
+
const tab = tabPage === 'me' ? nav_places_1.ME_TAB : tabPage === 'discover' ? nav_places_1.DISCOVER : ((_e = tabView === null || tabView === void 0 ? void 0 : tabView.id) !== null && _e !== void 0 ? _e : side);
|
|
270
278
|
const pickTab = (id) => {
|
|
271
|
-
var _a;
|
|
272
279
|
setSurface(undefined);
|
|
273
|
-
|
|
280
|
+
setChatsBusy(false);
|
|
281
|
+
if (navigation.nav.some(candidate => candidate.id === id)) {
|
|
274
282
|
showPage(id);
|
|
275
283
|
return;
|
|
276
284
|
}
|
|
@@ -291,7 +299,7 @@ function AppShell() {
|
|
|
291
299
|
page: phone ? (screenOpen ? screenPage : tabView) : tabPage === 'discover' ? undefined : view,
|
|
292
300
|
discover: tabPage === 'discover',
|
|
293
301
|
me: phone && !screenOpen && tabPage === 'me',
|
|
294
|
-
list: (phone ? !screenOpen && !tabView && !tabPage : sideShown) ? (
|
|
302
|
+
list: (phone ? !screenOpen && !tabView && !tabPage : sideShown) ? (_b = lists.find(entry => entry.id === side)) === null || _b === void 0 ? void 0 : _b.label : undefined,
|
|
295
303
|
chat: (phone ? screenOpen && !screenPage && settings === undefined : settings === undefined && tabPage !== 'discover' && !view)
|
|
296
304
|
? shownChat
|
|
297
305
|
? chatName(shownChat)
|
|
@@ -301,7 +309,7 @@ function AppShell() {
|
|
|
301
309
|
}),
|
|
302
310
|
places: [
|
|
303
311
|
...lists.map(entry => ({ id: `list:${entry.id}`, title: entry.label })),
|
|
304
|
-
...
|
|
312
|
+
...navigation.pages.map(page => ({
|
|
305
313
|
id: `page:${page.id}`,
|
|
306
314
|
title: web_extension_protocol_1.WebLabelUtil.text(page.title),
|
|
307
315
|
})),
|
|
@@ -319,6 +327,10 @@ function AppShell() {
|
|
|
319
327
|
return host.showView(id);
|
|
320
328
|
}
|
|
321
329
|
if (phone) {
|
|
330
|
+
// The tabs are under the screen of a phone: what is over them slides away, as the back does.
|
|
331
|
+
if (screenOpen) {
|
|
332
|
+
closeScreen();
|
|
333
|
+
}
|
|
322
334
|
return pickTab(kind === 'list' ? id : kind === 'me' ? nav_places_1.ME_TAB : nav_places_1.DISCOVER);
|
|
323
335
|
}
|
|
324
336
|
setSettings(undefined);
|
|
@@ -352,51 +364,70 @@ function AppShell() {
|
|
|
352
364
|
openSettings,
|
|
353
365
|
};
|
|
354
366
|
// The launcher and the board are over the first tab only, as WeChat's over its chats.
|
|
355
|
-
const firstTab = ((
|
|
356
|
-
const content = phone ? (React.createElement(phone_shell_1.PhoneShell, { tabs: tabs, tab: tab, launcher: firstTab && surfaces.launcher ? React.createElement(launcher_surface_1.LauncherSurface, { active: surface === 'launcher' }) : undefined, board: firstTab && surfaces.board ? (React.createElement(board_1.BoardSurface, { leading: React.createElement(icon_1.IconButton, { icon: lucide_react_1.ChevronLeft, label: t('ta.back'), onClick: () => setSurface(undefined) }) })) : undefined, surface: surface, onSurface: setSurface, onTab: pickTab, home: tabPage === 'me' ? (React.createElement("div", { className: "ta-main" },
|
|
367
|
+
const firstTab = ((_c = tabs[0]) === null || _c === void 0 ? void 0 : _c.id) === tab;
|
|
368
|
+
const content = phone ? (React.createElement(phone_shell_1.PhoneShell, { tabs: tabs, tab: tab, launcher: firstTab && surfaces.launcher ? React.createElement(launcher_surface_1.LauncherSurface, { active: surface === 'launcher' }) : undefined, board: firstTab && surfaces.board ? (React.createElement(board_1.BoardSurface, { leading: React.createElement(icon_1.IconButton, { icon: lucide_react_1.ChevronLeft, label: t('ta.back'), onClick: () => setSurface(undefined) }) })) : undefined, surface: surface, onSurface: setSurface, onTab: pickTab, home: React.createElement(PhoneHome, { pushable: side_lists_1.SideListUtil.pushesOver(tabView), busy: chatsBusy, onBusy: setChatsBusy, busyList: () => React.createElement("div", { className: "ta-sidebar" }, chatList(true)) }, tabPage === 'me' ? (React.createElement("div", { className: "ta-main" },
|
|
357
369
|
React.createElement(me_view_1.MeView, { onSettings: openSettings }))) : tabPage === 'discover' ? (React.createElement("div", { className: "ta-main" }, discoverView())) : tabView ? (React.createElement("div", { className: "ta-main" },
|
|
358
|
-
React.createElement(app_nav_1.PageView, { view: tabView }))) : (React.createElement("div", { className: "ta-sidebar" }, sideList)), screen: React.createElement(React.Fragment, null,
|
|
359
|
-
React.createElement(kept_pages_1.KeptPages, { views: extensions.views, kept:
|
|
370
|
+
React.createElement(app_nav_1.PageView, { view: tabView }))) : (React.createElement("div", { className: "ta-sidebar" }, sideList))), screen: React.createElement(React.Fragment, null,
|
|
371
|
+
React.createElement(kept_pages_1.KeptPages, { views: extensions.views, kept: keptPages, shown: screenPage, render: page => (React.createElement(app_nav_1.PageView, { view: page, leading: React.createElement(icon_1.IconButton, { icon: lucide_react_1.ChevronLeft, label: t('ta.back'), className: "ta-narrow-only", onClick: closeScreen }) })) }),
|
|
360
372
|
settings !== undefined ? (React.createElement(settings_view_1.SettingsView, { key: settingsOpened, section: settings || undefined, onClose: closeSettings, onBack: closeSettings })) : screenPage ? null : (React.createElement(chat_view_1.ChatView, { widgets: extensions.widgets, onMenu: closeScreen, back: true }))), screenOpen: screenOpen, onBack: closeScreen, workbench: editors && !settingsShown ? (React.createElement("div", { className: "ta-editors-pane", inert: !showEditors }, editorArea)) : undefined, workbenchOpen: showEditors, onWorkbench: open => (open ? toggleWorkbench() : showEditors && toggleRight()) }, overlays)) : (React.createElement("div", { className: classes.filter(Boolean).join(' '), style: sideWidths },
|
|
361
373
|
navOpen && React.createElement("button", { type: "button", className: "ta-scrim", "aria-label": t('ta.close'), onClick: () => setNavOpen(false) }),
|
|
362
374
|
React.createElement("div", { className: "ta-nav" },
|
|
363
|
-
React.createElement(app_nav_1.Rail, { lists: lists, list: sideShown ? side : undefined, onList: showList, navigation: navigation, current:
|
|
375
|
+
React.createElement(app_nav_1.Rail, { lists: lists, list: sideShown ? side : undefined, onList: showList, navigation: navigation, current: railCurrent, onPage: showPage, onDiscover: () => {
|
|
364
376
|
setSettings(undefined);
|
|
365
377
|
setNavOpen(false);
|
|
366
378
|
setTabPage('discover');
|
|
367
|
-
}, onSettings: openSettings, settingsShown: settings !== undefined, surfaces: surfaces, surface: surface, onSurface: setSurface, holds: holds, asks:
|
|
379
|
+
}, onSettings: openSettings, settingsShown: settings !== undefined, surfaces: surfaces, surface: surface, onSurface: setSurface, holds: holds, asks: deciding, onDismissAsks: letGoAllAsks, onSeeAll: chatsUnseen ? seeAllChats : undefined }),
|
|
368
380
|
sideShown && (React.createElement("div", { className: "ta-sidebar", style: (0, split_pane_1.paneStyle)(sidebar) },
|
|
369
381
|
sideList,
|
|
370
382
|
React.createElement(split_pane_1.Sash, { pane: sidebar, side: "start", label: t('ta.layout.sidebar') })))),
|
|
371
383
|
React.createElement("main", { className: "ta-main" },
|
|
372
384
|
React.createElement(connection_bar_1.ConnectionBar, null),
|
|
373
|
-
React.createElement(kept_pages_1.KeptPages, { views: extensions.views, kept:
|
|
385
|
+
React.createElement(kept_pages_1.KeptPages, { views: extensions.views, kept: keptPages, shown: settings === undefined && tabPage !== 'discover' ? view : undefined, render: page => (React.createElement(app_nav_1.PageView, { view: page, leading: React.createElement(icon_1.IconButton, { icon: icon_1.SidebarLeft, label: t('ta.sidebar'), className: "ta-narrow-only", onClick: () => setNavOpen(true) }) })) }),
|
|
374
386
|
settings !== undefined ? (React.createElement(settings_view_1.SettingsView, { section: settings || undefined, onClose: closeSettings, onMenu: () => setNavOpen(true) })) : tabPage === 'discover' ? (discoverView(React.createElement(icon_1.IconButton, { icon: icon_1.SidebarLeft, label: t('ta.sidebar'), className: "ta-narrow-only", onClick: () => setNavOpen(true) }))) : view ? null : (React.createElement(chat_view_1.ChatView, { widgets: extensions.widgets, onMenu: () => setNavOpen(true) }))),
|
|
375
387
|
showEditors && (React.createElement("div", { className: "ta-editors-pane", style: (0, split_pane_1.paneStyle)(editor) },
|
|
376
388
|
React.createElement(split_pane_1.Sash, { pane: editor, side: "end", label: t('ta.layout.editor') }),
|
|
377
389
|
editorArea)),
|
|
378
390
|
surface && React.createElement(surface_flyout_1.SurfaceFlyout, { surface: surface, onClose: () => setSurface(undefined) }),
|
|
379
391
|
overlays));
|
|
380
|
-
return (React.createElement(
|
|
381
|
-
React.createElement(
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
392
|
+
return (React.createElement(app_contexts_1.AppContexts, { fileUrl: fileUrl, openLink: openLink },
|
|
393
|
+
React.createElement(workbench_toggle_1.WorkbenchToggleContext.Provider, { value: toggle }, content)));
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* What a tab of a phone shows, and the conversations going on (ui.showChats with `busy`) pushed over it while
|
|
397
|
+
* `busy`, as the folder of the chats is pushed over their list: back with its button, a swipe from the left edge or the
|
|
398
|
+
* back of the system (PhoneStack, a layer of BackLayers), to the tab as it was; a conversation picked in it comes over
|
|
399
|
+
* it, and goes back to it. Drawn while open and while it slides away. Not over a page of an extension's own in the
|
|
400
|
+
* tabs (`pushable`, SideListUtil.pushesOver): the page is drawn as it is, the shell shows those going on over the chats.
|
|
401
|
+
*/
|
|
402
|
+
function PhoneHome({ pushable, busy, onBusy, busyList, children, }) {
|
|
403
|
+
const [drawn, setDrawn] = React.useState(busy);
|
|
404
|
+
React.useEffect(() => {
|
|
405
|
+
if (busy) {
|
|
406
|
+
setDrawn(true);
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
409
|
+
const timer = setTimeout(() => setDrawn(false), device_protocol_1.DeviceMotion.SHEET_MS);
|
|
410
|
+
return () => clearTimeout(timer);
|
|
411
|
+
}, [busy]);
|
|
412
|
+
if (!pushable) {
|
|
413
|
+
return children;
|
|
414
|
+
}
|
|
415
|
+
return React.createElement(phone_shell_1.PhoneStack, { base: children, top: (busy || drawn) && busyList(), open: busy, onClose: () => onBusy(false) });
|
|
390
416
|
}
|
|
391
417
|
/** The app, with the look the user picked for the double (every ta below draws it) and the picker of that look. */
|
|
392
418
|
function AppView() {
|
|
393
419
|
// A conversation shared by a link, opened in a browser: drawn as Ta does, with nothing signed in behind it.
|
|
394
420
|
const [shared] = React.useState(() => shared_link_1.SharedPageUtil.link());
|
|
421
|
+
// A device asked to sign in here (TA_DEVICE_SIGN_IN_PATH): the page where the user lets it in, whoever this browser is.
|
|
422
|
+
const [device] = React.useState(() => (shared ? undefined : device_page_1.DevicePageUtil.take()));
|
|
395
423
|
// The launch picture of the app of a phone goes once the page is whole.
|
|
396
424
|
React.useEffect(() => launch_screen_1.LaunchScreenUtil.start(), []);
|
|
397
425
|
if (shared) {
|
|
398
426
|
return React.createElement(shared_page_1.SharedPage, { link: shared });
|
|
399
427
|
}
|
|
428
|
+
if (device) {
|
|
429
|
+
return React.createElement(device_sign_in_page_1.DeviceSignInPage, { code: device.code, outcome: device.outcome, from: device.from });
|
|
430
|
+
}
|
|
400
431
|
return (React.createElement(dino_look_1.DinoLookProvider, null,
|
|
401
432
|
React.createElement(AppShell, null),
|
|
402
433
|
React.createElement(dino_look_1.DinoLookHost, null)));
|
|
@@ -52,6 +52,7 @@ const callout_1 = require("./callout");
|
|
|
52
52
|
const custom_provider_view_1 = require("./custom-provider-view");
|
|
53
53
|
const empty_state_1 = require("./empty-state");
|
|
54
54
|
const icon_1 = require("./icon");
|
|
55
|
+
const loading_1 = require("./loading");
|
|
55
56
|
const picture_1 = require("./picture");
|
|
56
57
|
const ta_avatar_1 = require("./ta-avatar");
|
|
57
58
|
var AuthUtil;
|
|
@@ -237,9 +238,7 @@ function AuthFlow({ provider, onDone, onBack }) {
|
|
|
237
238
|
React.createElement(lucide_react_1.KeyRound, { size: 16, strokeWidth: 1.75, "aria-hidden": "true" }),
|
|
238
239
|
React.createElement("input", { type: prompt.prompt.type === 'secret' ? 'password' : 'text', autoFocus: true, autoComplete: "off", spellCheck: false, placeholder: (_a = prompt.prompt.placeholder) !== null && _a !== void 0 ? _a : (prompt.prompt.type === 'secret' ? t('ta.auth.apiKey') : ''), value: answer, onChange: event => setAnswer(event.target.value) })),
|
|
239
240
|
React.createElement("button", { type: "submit", className: "ta-button ta-primary ta-wide", disabled: !answer.trim() }, t('ta.auth.continue'))))),
|
|
240
|
-
!state.result && !prompt &&
|
|
241
|
-
React.createElement("span", { className: "ta-spinner" }),
|
|
242
|
-
" ", (_b = state.progress) !== null && _b !== void 0 ? _b : t('ta.auth.waiting'))),
|
|
241
|
+
!state.result && !prompt && React.createElement(loading_1.Loading, { compact: true, label: (_b = state.progress) !== null && _b !== void 0 ? _b : t('ta.auth.waiting') }),
|
|
243
242
|
state.result === 'failed' && (React.createElement(callout_1.Callout, { level: "error", action: React.createElement("button", { type: "button", className: "ta-button", onClick: onBack }, t('ta.auth.back')) }, t('ta.auth.failed', { message: (_c = state.error) !== null && _c !== void 0 ? _c : '' })))));
|
|
244
243
|
}
|
|
245
244
|
function ProviderRow({ provider, onPick, onSignOut, plain }) {
|
|
@@ -328,8 +327,7 @@ function AuthPanel({ onSignedIn, onProviders, kinds }) {
|
|
|
328
327
|
return React.createElement(AuthFlow, { provider: picked, onDone: done, onBack: back });
|
|
329
328
|
}
|
|
330
329
|
if (!providers) {
|
|
331
|
-
return
|
|
332
|
-
React.createElement("span", { className: "ta-spinner" })));
|
|
330
|
+
return React.createElement(loading_1.Loading, null);
|
|
333
331
|
}
|
|
334
332
|
const signOut = async (provider) => {
|
|
335
333
|
if (await notices.confirm({ title: t('ta.auth.signOutConfirm', { name: provider.name }), confirmLabel: t('ta.auth.signOut'), danger: true })) {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface CallPillProps {
|
|
3
|
+
title: string;
|
|
4
|
+
/** What the call is at, a few words. */
|
|
5
|
+
phase: string;
|
|
6
|
+
connecting?: boolean;
|
|
7
|
+
onBack(): void;
|
|
8
|
+
onHangUp(): void;
|
|
9
|
+
}
|
|
10
|
+
/** The small window of a call at the top of the page, marked as the part of the call (CallScreen). */
|
|
11
|
+
export declare function CallPill({ title, phase, connecting, onBack, onHangUp }: CallPillProps): React.JSX.Element;
|
|
12
|
+
//# sourceMappingURL=call-pill.d.ts.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.CallPill = CallPill;
|
|
37
|
+
const lucide_react_1 = require("lucide-react");
|
|
38
|
+
const React = __importStar(require("react"));
|
|
39
|
+
const call_screen_1 = require("../assistant/call-screen");
|
|
40
|
+
const use_t_1 = require("../i18n/use-t");
|
|
41
|
+
const screen_protocol_1 = require("../screen/screen-protocol");
|
|
42
|
+
const icon_1 = require("./icon");
|
|
43
|
+
/** The small window of a call at the top of the page, marked as the part of the call (CallScreen). */
|
|
44
|
+
function CallPill({ title, phase, connecting, onBack, onHangUp }) {
|
|
45
|
+
const t = (0, use_t_1.useT)();
|
|
46
|
+
return (React.createElement("div", { className: "ta-kept-call", ...screen_protocol_1.ScreenUtil.part(call_screen_1.CallScreen.PART), "data-phase": connecting ? 'connecting' : 'on' },
|
|
47
|
+
React.createElement("button", { type: "button", className: "ta-kept-call-back", onClick: onBack, "aria-label": `${title} · ${phase}`, ...screen_protocol_1.ScreenUtil.action('open') },
|
|
48
|
+
React.createElement("span", { className: "ta-kept-call-icon" },
|
|
49
|
+
React.createElement(icon_1.Icon, { icon: lucide_react_1.Phone, size: 13 })),
|
|
50
|
+
React.createElement("span", { className: "ta-kept-call-title" }, title),
|
|
51
|
+
React.createElement("span", { className: "ta-kept-call-phase" }, phase)),
|
|
52
|
+
React.createElement("button", { type: "button", className: "ta-kept-call-end", "aria-label": t('ta.call.hangUp'), title: t('ta.call.hangUp'), onClick: onHangUp, ...screen_protocol_1.ScreenUtil.action('hangUp') },
|
|
53
|
+
React.createElement(icon_1.Icon, { icon: lucide_react_1.PhoneOff, size: 14 }))));
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=call-pill.js.map
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import type { WebHomeEntry, WebMenuItem, WebTaskEntry, WebViewPreview } from '../extension/web-extension-api';
|
|
2
|
+
import type { Translate } from '../i18n/use-t';
|
|
3
|
+
import type { ChatSeen } from './chat-seen';
|
|
4
|
+
import type { ContextMenuItem } from './context-menu';
|
|
5
|
+
/**
|
|
6
|
+
* The double's home at the top of the chats, which are the double's list (docs/design/ta-partners.md): its card, the
|
|
7
|
+
* rows extensions add under it, what waits for the user to decide; its tasks that are no conversation (a team) are
|
|
8
|
+
* rows of the list by their time, those that are one (WebTask.session) that conversation's row.
|
|
9
|
+
*/
|
|
10
|
+
export interface ChatHome {
|
|
11
|
+
double: ChatHomeDouble;
|
|
12
|
+
/** The rows extensions add to the double's list (ChatHomeUtil.items), pinned at first. */
|
|
13
|
+
items: readonly WebHomeEntry[];
|
|
14
|
+
/** The key of the row whose page is in front, as a conversation of the list is (WebExtensionsState.pageFrom). */
|
|
15
|
+
shownItem?: string;
|
|
16
|
+
/** Opens a row: a page it shows is shown beside the list (TaWebExtensions.openHome). */
|
|
17
|
+
openItem(entry: WebHomeEntry): Promise<void>;
|
|
18
|
+
/** Every task (ui.useTasks). */
|
|
19
|
+
tasks: readonly WebTaskEntry[];
|
|
20
|
+
/** A task row opened, ended at `at`: seen, as a conversation is (SEEN_CHATS, ChatHomeUtil.seenKey). */
|
|
21
|
+
look(key: string, at: number): void;
|
|
22
|
+
/** Deletes those that can be, once the user agreed (WebTaskUtil.remove). */
|
|
23
|
+
remove(tasks: readonly WebTaskEntry[]): void;
|
|
24
|
+
}
|
|
25
|
+
/** The double, as its card draws it. */
|
|
26
|
+
export interface ChatHomeDouble {
|
|
27
|
+
name: string;
|
|
28
|
+
/** Its page is in front. */
|
|
29
|
+
shown: boolean;
|
|
30
|
+
/** It answers now. */
|
|
31
|
+
busy: boolean;
|
|
32
|
+
/** What it said last (WebView.preview). */
|
|
33
|
+
preview?: WebViewPreview;
|
|
34
|
+
menu?(): WebMenuItem[][];
|
|
35
|
+
open(): void;
|
|
36
|
+
}
|
|
37
|
+
/** What the double's tasks are at, on its card. */
|
|
38
|
+
export interface ChatHomeCounts {
|
|
39
|
+
waiting: number;
|
|
40
|
+
running: number;
|
|
41
|
+
/** Ended, and not seen since. */
|
|
42
|
+
fresh: number;
|
|
43
|
+
}
|
|
44
|
+
/** The tasks as the home and the list show them. */
|
|
45
|
+
export interface ChatHomeTasks {
|
|
46
|
+
/** What waits for the user to decide, the latest first: above the rest. */
|
|
47
|
+
waiting: WebTaskEntry[];
|
|
48
|
+
/** Those that are no conversation, and wait for nothing: rows of the list by their time. */
|
|
49
|
+
rows: WebTaskEntry[];
|
|
50
|
+
/** The conversations of those that wait: their rows are those of `waiting`, not again below. */
|
|
51
|
+
hidden: ReadonlySet<string>;
|
|
52
|
+
}
|
|
53
|
+
/** A row of the list for a task that is no conversation (ChatHomeTasks.rows), where its time is. */
|
|
54
|
+
export interface ChatTaskRow {
|
|
55
|
+
/** `task:<key>`, as SEEN_CHATS keeps it (ChatHomeUtil.seenKey). */
|
|
56
|
+
key: string;
|
|
57
|
+
task: WebTaskEntry;
|
|
58
|
+
updatedAt: number;
|
|
59
|
+
}
|
|
60
|
+
/** A row an extension adds to the double's list (registerHomeItems): pinned, or where its time is. */
|
|
61
|
+
export interface ChatHomeRow {
|
|
62
|
+
/** `home:<extension>/<id>`, as PINNED keeps it. */
|
|
63
|
+
key: string;
|
|
64
|
+
item: WebHomeEntry;
|
|
65
|
+
updatedAt: number;
|
|
66
|
+
}
|
|
67
|
+
export declare namespace ChatHomeUtil {
|
|
68
|
+
/** Those of the double's home: under it (`double`), or without a place nor a section. */
|
|
69
|
+
function items(items: readonly WebHomeEntry[]): WebHomeEntry[];
|
|
70
|
+
function tasks(tasks: readonly WebTaskEntry[]): ChatHomeTasks;
|
|
71
|
+
function seenKey(task: Pick<WebTaskEntry, 'key'>): string;
|
|
72
|
+
/** When it last changed, as the list orders it: its end, else its start. */
|
|
73
|
+
function at(task: Pick<WebTaskEntry, 'startedAt' | 'endedAt'>): number;
|
|
74
|
+
function row(task: WebTaskEntry): ChatTaskRow;
|
|
75
|
+
function homeRow(item: WebHomeEntry): ChatHomeRow;
|
|
76
|
+
/** The conversations rows of the home stand for (WebHomeItem.sessionFile): not listed again. */
|
|
77
|
+
function standIns(items: readonly WebHomeEntry[]): ReadonlySet<string>;
|
|
78
|
+
/**
|
|
79
|
+
* The rows of the list for tasks: those that are no conversation, and those whose conversation the list does not
|
|
80
|
+
* have (gone, or not read yet), not lost; split as `archive` does.
|
|
81
|
+
*/
|
|
82
|
+
function rows(home: ChatHomeTasks | undefined, all: readonly WebTaskEntry[] | undefined, listed: (file: string) => boolean, query: string, since: number | undefined, archived: readonly string[]): {
|
|
83
|
+
listed: ChatTaskRow[];
|
|
84
|
+
archived: ChatTaskRow[];
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* The rows of tasks the list keeps, and those it archives as a conversation is (ChatListUtil.entries): ended
|
|
88
|
+
* before `since`. One whose conversation is archived is that conversation's row in the archive, not one of its own.
|
|
89
|
+
*/
|
|
90
|
+
function archive(rows: readonly ChatTaskRow[], since: number | undefined, archived: ReadonlySet<string>): {
|
|
91
|
+
listed: ChatTaskRow[];
|
|
92
|
+
archived: ChatTaskRow[];
|
|
93
|
+
};
|
|
94
|
+
/** It ended after the user last opened it (once the seen were kept): an amber dot, as a conversation's unread. */
|
|
95
|
+
function unseen(task: WebTaskEntry, seen: ChatSeen): boolean;
|
|
96
|
+
/** Whether one of `texts` has the query (any case); all match an empty one. */
|
|
97
|
+
function matches(query: string, ...texts: (string | undefined)[]): boolean;
|
|
98
|
+
/**
|
|
99
|
+
* What the double's tasks are at: those that wait, run, and ended unseen (`fresh`, which reads the list: a task
|
|
100
|
+
* that is a conversation is unseen as that conversation is).
|
|
101
|
+
*/
|
|
102
|
+
function counts(tasks: readonly WebTaskEntry[], fresh: (task: WebTaskEntry) => boolean): ChatHomeCounts;
|
|
103
|
+
/** The line of the card: what needs the user and goes on; empty when nothing does. */
|
|
104
|
+
function line({ waiting, running, fresh }: ChatHomeCounts, t: Translate): string;
|
|
105
|
+
/** A menu of an extension (sections of items) as the menus of the page take it: a line between the sections. */
|
|
106
|
+
function menu(sections: readonly WebMenuItem[][]): ContextMenuItem[];
|
|
107
|
+
/**
|
|
108
|
+
* The menu of a row of a task: open, then its own menu; a delete only when it has no menu of its own, which has
|
|
109
|
+
* its delete already (WebTask.remove), not to show it twice.
|
|
110
|
+
*/
|
|
111
|
+
function taskMenu(task: Pick<WebTaskEntry, 'menu'>, open: ContextMenuItem, remove?: ContextMenuItem): ContextMenuItem[];
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=chat-home-util.d.ts.map
|