@celljs/ta-web 4.16.0 → 4.18.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/assistant/assistant-ask-book.d.ts +35 -0
- package/esm/browser/assistant/assistant-ask-book.js +96 -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-conversation.d.ts +110 -0
- package/esm/browser/assistant/assistant-conversation.js +351 -0
- package/esm/browser/assistant/assistant-export.js +11 -8
- package/esm/browser/assistant/assistant-extension.d.ts +3 -2
- package/esm/browser/assistant/assistant-extension.js +119 -11
- package/esm/browser/assistant/assistant-protocol.d.ts +17 -2
- package/esm/browser/assistant/assistant-role.d.ts +22 -4
- package/esm/browser/assistant/assistant-role.js +33 -8
- package/esm/browser/assistant/assistant-state.d.ts +5 -1
- package/esm/browser/assistant/assistant-state.js +11 -0
- package/esm/browser/assistant/assistant-task-source.d.ts +4 -0
- package/esm/browser/assistant/assistant-task-source.js +24 -4
- package/esm/browser/assistant/assistant-task-util.d.ts +27 -7
- package/esm/browser/assistant/assistant-task-util.js +84 -20
- package/esm/browser/assistant/assistant-tasks.d.ts +0 -7
- package/esm/browser/assistant/assistant-tasks.js +2 -4
- package/esm/browser/assistant/assistant-thread.d.ts +22 -0
- package/esm/browser/assistant/assistant-thread.js +112 -0
- package/esm/browser/assistant/assistant-view.js +79 -130
- package/esm/browser/assistant/assistant.d.ts +33 -105
- package/esm/browser/assistant/assistant.js +105 -357
- 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 +56 -0
- package/esm/browser/assistant/chat-task-source.js +82 -0
- package/esm/browser/assistant/read-aloud.d.ts +34 -0
- package/esm/browser/assistant/read-aloud.js +98 -0
- package/esm/browser/assistant/realtime-voice.d.ts +138 -0
- package/esm/browser/assistant/realtime-voice.js +479 -0
- package/esm/browser/assistant/task-views.d.ts +11 -9
- package/esm/browser/assistant/task-views.js +47 -25
- package/esm/browser/assistant/voice-call-bar.d.ts +67 -0
- package/esm/browser/assistant/voice-call-bar.js +316 -0
- package/esm/browser/assistant/voice-call.d.ts +207 -0
- package/esm/browser/assistant/voice-call.js +469 -0
- package/esm/browser/assistant/voice-reopen.d.ts +18 -0
- package/esm/browser/assistant/voice-reopen.js +54 -0
- package/esm/browser/chat/chat-shown.d.ts +78 -0
- package/esm/browser/chat/chat-shown.js +262 -0
- package/esm/browser/chat/chat-view.js +7 -9
- package/esm/browser/chat/chat.d.ts +4 -68
- package/esm/browser/chat/chat.js +5 -253
- package/esm/browser/chat/draft-model.d.ts +1 -1
- 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 +26 -2
- package/esm/browser/components/account-menu.js +4 -2
- 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 +6 -2
- package/esm/browser/components/app-nav.js +15 -12
- package/esm/browser/components/app-shell-hooks.d.ts +11 -2
- package/esm/browser/components/app-shell-hooks.js +25 -4
- package/esm/browser/components/app-shell-state.d.ts +80 -0
- package/esm/browser/components/app-shell-state.js +471 -0
- package/esm/browser/components/app-view.js +212 -393
- package/esm/browser/components/asks-badge.d.ts +6 -2
- package/esm/browser/components/asks-badge.js +7 -3
- package/esm/browser/components/auth-pictures.d.ts +2 -2
- package/esm/browser/components/auth-pictures.js +13 -1
- package/esm/browser/components/auth-view.d.ts +4 -3
- package/esm/browser/components/auth-view.js +57 -10
- package/esm/browser/components/call-pill.d.ts +11 -0
- package/esm/browser/components/call-pill.js +19 -0
- package/esm/browser/components/chat-asks.d.ts +2 -0
- package/esm/browser/components/chat-asks.js +8 -0
- package/esm/browser/components/chat-busy.d.ts +32 -0
- package/esm/browser/components/chat-busy.js +49 -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 +10 -2
- package/esm/browser/components/chat-icon.js +32 -6
- 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 +96 -0
- package/esm/browser/components/chat-list-row.js +208 -0
- package/esm/browser/components/chat-list-util.d.ts +197 -0
- package/esm/browser/components/chat-list-util.js +398 -0
- package/esm/browser/components/chat-list.d.ts +6 -190
- package/esm/browser/components/chat-list.js +340 -545
- package/esm/browser/components/chat-seen.js +1 -0
- package/esm/browser/components/cloud-sign-in-view.d.ts +61 -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-addon-util.d.ts +1 -1
- package/esm/browser/components/composer-addons.d.ts +1 -1
- package/esm/browser/components/composer-attachments.d.ts +11 -0
- package/esm/browser/components/composer-attachments.js +27 -0
- package/esm/browser/components/composer-box-hooks.d.ts +9 -0
- package/esm/browser/components/composer-box-hooks.js +138 -0
- package/esm/browser/components/composer-box-protocol.d.ts +108 -0
- package/esm/browser/components/composer-box-protocol.js +2 -0
- package/esm/browser/components/composer-box.d.ts +1 -95
- package/esm/browser/components/composer-box.js +54 -154
- package/esm/browser/components/composer-target.d.ts +21 -0
- package/esm/browser/components/composer-target.js +43 -0
- package/esm/browser/components/composer.d.ts +7 -1
- package/esm/browser/components/composer.js +13 -9
- 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 +18 -3
- package/esm/browser/components/conversation-find.d.ts +27 -0
- package/esm/browser/components/conversation-find.js +151 -0
- package/esm/browser/components/conversation-scroll-hooks.js +2 -1
- package/esm/browser/components/conversation-scroll-util.d.ts +73 -0
- package/esm/browser/components/conversation-scroll-util.js +80 -0
- package/esm/browser/components/conversation-scroll.d.ts +3 -35
- package/esm/browser/components/conversation-scroll.js +16 -81
- package/esm/browser/components/conversation-view.d.ts +8 -0
- package/esm/browser/components/conversation-view.js +41 -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/discover-view.d.ts +3 -2
- package/esm/browser/components/discover-view.js +31 -26
- package/esm/browser/components/dismiss.js +2 -0
- package/esm/browser/components/earlier-messages.d.ts +2 -0
- package/esm/browser/components/earlier-messages.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/folder-picker.d.ts +7 -0
- package/esm/browser/components/folder-picker.js +89 -19
- package/esm/browser/components/fork-view.js +2 -4
- package/esm/browser/components/gallery.d.ts +1 -1
- package/esm/browser/components/gallery.js +59 -15
- 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 +9 -4
- package/esm/browser/components/host-view.js +56 -15
- package/esm/browser/components/image-menu.d.ts +11 -0
- package/esm/browser/components/image-menu.js +29 -0
- 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 +12 -115
- package/esm/browser/components/image-viewer.js +74 -368
- 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 +6 -3
- package/esm/browser/components/link-dialog.d.ts +2 -1
- package/esm/browser/components/link-dialog.js +7 -1
- package/esm/browser/components/link.d.ts +4 -0
- package/esm/browser/components/link.js +11 -0
- package/esm/browser/components/list-rows.d.ts +3 -1
- package/esm/browser/components/list-rows.js +2 -1
- package/esm/browser/components/loading.d.ts +12 -0
- package/esm/browser/components/loading.js +18 -0
- package/esm/browser/components/markdown.js +7 -1
- package/esm/browser/components/media.d.ts +2 -0
- package/esm/browser/components/media.js +16 -1
- package/esm/browser/components/mermaid-view.js +14 -7
- package/esm/browser/components/message-actions.d.ts +1 -1
- package/esm/browser/components/message-actions.js +9 -0
- package/esm/browser/components/message-footer.d.ts +3 -1
- package/esm/browser/components/message-footer.js +3 -2
- package/esm/browser/components/message-images.d.ts +41 -0
- package/esm/browser/components/message-images.js +120 -0
- package/esm/browser/components/message-list.d.ts +4 -100
- package/esm/browser/components/message-list.js +22 -454
- package/esm/browser/components/message-menu.js +4 -0
- package/esm/browser/components/message-steps.d.ts +21 -0
- package/esm/browser/components/message-steps.js +190 -0
- package/esm/browser/components/message-user.d.ts +63 -0
- package/esm/browser/components/message-user.js +204 -0
- package/esm/browser/components/model-picker.d.ts +4 -2
- package/esm/browser/components/model-picker.js +16 -3
- package/esm/browser/components/moved-notice.d.ts +14 -0
- package/esm/browser/components/moved-notice.js +60 -0
- package/esm/browser/components/nav-places.d.ts +17 -11
- package/esm/browser/components/nav-places.js +18 -13
- package/esm/browser/components/notice-center.js +36 -1
- package/esm/browser/components/notice-face.js +2 -1
- package/esm/browser/components/phone-shell.d.ts +5 -4
- package/esm/browser/components/phone-shell.js +60 -68
- package/esm/browser/components/plus-menu.d.ts +1 -1
- package/esm/browser/components/relay-services.d.ts +6 -1
- package/esm/browser/components/relay-services.js +109 -2
- package/esm/browser/components/relay-view.js +2 -0
- package/esm/browser/components/remote-hosts.d.ts +10 -0
- package/esm/browser/components/remote-hosts.js +7 -6
- package/esm/browser/components/remote-prompts.js +2 -0
- package/esm/browser/components/scan-screen.d.ts +4 -2
- package/esm/browser/components/scan-screen.js +53 -20
- package/esm/browser/components/screen-navigator-util.d.ts +28 -0
- package/esm/browser/components/screen-navigator-util.js +33 -0
- package/esm/browser/components/screen-navigator.d.ts +30 -0
- package/esm/browser/components/screen-navigator.js +47 -0
- 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-settings.d.ts +1 -1
- package/esm/browser/components/session-view.js +188 -7
- package/esm/browser/components/settings-choices.d.ts +9 -3
- package/esm/browser/components/settings-choices.js +17 -29
- package/esm/browser/components/settings-more.d.ts +7 -0
- package/esm/browser/components/settings-more.js +263 -0
- package/esm/browser/components/settings-parts.d.ts +8 -3
- package/esm/browser/components/settings-parts.js +35 -250
- package/esm/browser/components/settings-view.js +44 -16
- 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/stop-times.js +1 -0
- package/esm/browser/components/surface-flyout.js +2 -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 +12 -5
- package/esm/browser/components/unseen-drop.js +9 -8
- package/esm/browser/components/use-seen-chats.js +1 -1
- package/esm/browser/components/voice-services.d.ts +6 -0
- package/esm/browser/components/voice-services.js +160 -0
- package/esm/browser/components/voice-talk.d.ts +23 -6
- package/esm/browser/components/voice-talk.js +46 -11
- package/esm/browser/components/web-composer.d.ts +1 -1
- package/esm/browser/components/web-composer.js +2 -2
- package/esm/browser/components/web-dialog.js +2 -0
- package/esm/browser/components/workbench-view.d.ts +1 -1
- package/esm/browser/components/workbench-view.js +38 -5
- package/esm/browser/device/back-stack.d.ts +89 -11
- package/esm/browser/device/back-stack.js +200 -29
- package/esm/browser/device/code-scan.d.ts +23 -10
- package/esm/browser/device/code-scan.js +48 -43
- package/esm/browser/device/device-protocol.d.ts +1 -1
- package/esm/browser/device/device-protocol.js +1 -1
- 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/own-gestures.d.ts +1 -1
- package/esm/browser/device/pull-down.js +3 -1
- package/esm/browser/device/row-swipe.js +3 -1
- package/esm/browser/device/screen-awake.d.ts +24 -0
- package/esm/browser/device/screen-awake.js +59 -0
- package/esm/browser/device/sheet-swipe.d.ts +1 -179
- package/esm/browser/device/sheet-swipe.js +3 -433
- package/esm/browser/device/swipe-finger.d.ts +31 -0
- package/esm/browser/device/swipe-finger.js +83 -0
- package/esm/browser/device/swipe-settle.d.ts +52 -0
- package/esm/browser/device/swipe-settle.js +170 -0
- package/esm/browser/device/swipe-util.d.ts +97 -0
- package/esm/browser/device/swipe-util.js +183 -0
- package/esm/browser/drafts/drafts-protocol.d.ts +58 -0
- package/esm/browser/drafts/drafts-protocol.js +75 -0
- package/esm/browser/drafts/drafts.d.ts +21 -0
- package/esm/browser/drafts/drafts.js +91 -0
- package/esm/browser/drafts/use-composer-draft.d.ts +20 -0
- package/esm/browser/drafts/use-composer-draft.js +108 -0
- package/esm/browser/extension/icons.js +14 -1
- 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 +74 -6
- package/esm/browser/extension/web-api-contributions.d.ts +139 -39
- 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 +126 -63
- package/esm/browser/extension/web-extension-context.d.ts +9 -9
- package/esm/browser/extension/web-extension-context.js +84 -19
- package/esm/browser/extension/web-extension-protocol.d.ts +26 -3
- package/esm/browser/extension/web-extension-protocol.js +3 -0
- package/esm/browser/extension/web-extension-run.d.ts +5 -2
- package/esm/browser/extension/web-extension-run.js +13 -2
- package/esm/browser/extension/web-extensions-running.d.ts +93 -0
- package/esm/browser/extension/web-extensions-running.js +339 -0
- package/esm/browser/extension/web-extensions.d.ts +9 -82
- package/esm/browser/extension/web-extensions.js +22 -319
- package/esm/browser/extension/web-pages.js +1 -0
- package/esm/browser/extension/web-session-notices.js +6 -1
- package/esm/browser/extension/web-tasks.d.ts +8 -1
- package/esm/browser/extension/web-tasks.js +17 -3
- package/esm/browser/extension/web-view-util.d.ts +2 -2
- package/esm/browser/extension/web-view-util.js +7 -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 -32
- package/esm/browser/gateway/console-parts.js +58 -218
- package/esm/browser/gateway/console-tenant.d.ts +2 -4
- package/esm/browser/gateway/console-tenant.js +118 -209
- package/esm/browser/gateway/console-trend.d.ts +11 -0
- package/esm/browser/gateway/console-trend.js +117 -0
- package/esm/browser/gateway/console-view.js +153 -88
- package/esm/browser/hooks.js +1 -3
- package/esm/browser/hosts.d.ts +2 -0
- package/esm/browser/hosts.js +12 -2
- package/esm/browser/i18n/locales.d.ts +280 -13
- package/esm/browser/i18n/messages-ja.js +292 -25
- package/esm/browser/i18n/messages-zh-tw.js +292 -25
- package/esm/browser/i18n/messages.d.ts +277 -10
- package/esm/browser/i18n/messages.js +585 -51
- package/esm/browser/index.d.ts +18 -0
- package/esm/browser/index.js +18 -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/notices/notices-protocol.d.ts +12 -0
- package/esm/browser/notices/notices.js +7 -4
- package/esm/browser/offline/device-values.d.ts +2 -0
- package/esm/browser/offline/device-values.js +6 -1
- package/esm/browser/screen/page-answers.d.ts +42 -0
- package/esm/browser/screen/page-answers.js +89 -0
- package/esm/browser/screen/screen-protocol.d.ts +185 -0
- package/esm/browser/screen/screen-protocol.js +60 -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 +53 -0
- package/esm/browser/screen/screen.js +292 -0
- package/esm/browser/screen/use-screen-part.d.ts +6 -0
- package/esm/browser/screen/use-screen-part.js +14 -0
- 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 +14 -1
- package/esm/browser/settings/settings-protocol.js +24 -2
- package/esm/browser/settings/settings.d.ts +7 -1
- package/esm/browser/settings/settings.js +31 -7
- package/esm/browser/share/shared-extensions.d.ts +29 -0
- package/esm/browser/share/shared-extensions.js +146 -0
- package/esm/browser/share/shared-link.d.ts +11 -0
- package/esm/browser/share/shared-link.js +38 -0
- package/esm/browser/share/shared-page.d.ts +5 -0
- package/esm/browser/share/shared-page.js +137 -0
- package/esm/browser/state/state-protocol.d.ts +14 -0
- package/esm/browser/state/state-protocol.js +18 -0
- package/esm/browser/state/state.d.ts +10 -2
- package/esm/browser/state/state.js +19 -3
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +12 -1
- package/esm/browser/style/chat-list.d.ts +2 -0
- package/esm/browser/style/chat-list.js +150 -0
- package/esm/browser/style/conversation-column.d.ts +2 -0
- package/esm/browser/style/conversation-column.js +250 -0
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +66 -12
- package/esm/browser/style/dialogs.d.ts +2 -0
- package/esm/browser/style/dialogs.js +162 -0
- package/esm/browser/style/layout.d.ts +2 -2
- package/esm/browser/style/layout.js +8 -540
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +172 -110
- package/esm/browser/style/phone.d.ts +1 -1
- package/esm/browser/style/phone.js +13 -3
- package/esm/browser/style/shared.d.ts +2 -0
- package/esm/browser/style/shared.js +24 -0
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +59 -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 +29 -10
- package/esm/browser/style/tints.d.ts +5 -4
- package/esm/browser/style/tints.js +9 -9
- package/esm/browser/style.js +8 -0
- package/esm/browser/util/desktop.d.ts +7 -1
- package/esm/browser/util/desktop.js +17 -0
- package/esm/browser/util/gallery.d.ts +24 -2
- package/esm/browser/util/gallery.js +82 -2
- package/esm/browser/util/image-copy.d.ts +16 -0
- package/esm/browser/util/image-copy.js +57 -0
- package/esm/browser/util/image-swipe.d.ts +42 -0
- package/esm/browser/util/image-swipe.js +66 -0
- package/esm/browser/util/message.d.ts +5 -0
- package/esm/browser/util/message.js +14 -0
- package/esm/browser/util/process.d.ts +37 -5
- package/esm/browser/util/process.js +81 -10
- 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 +29 -0
- package/esm/browser/util/spoken.js +92 -0
- package/esm/browser/util/tool.d.ts +9 -0
- package/esm/browser/util/tool.js +71 -6
- package/esm/browser/util/transcript.d.ts +22 -0
- package/esm/browser/util/transcript.js +48 -0
- package/esm/browser/util/turn-end.d.ts +17 -0
- package/esm/browser/util/turn-end.js +164 -0
- package/esm/browser/util/voice.d.ts +5 -1
- package/esm/browser/util/voice.js +6 -1
- package/esm/browser/workbench-hosts.d.ts +36 -0
- package/esm/browser/workbench-hosts.js +120 -0
- package/esm/browser/workbench-lists.d.ts +33 -0
- package/esm/browser/workbench-lists.js +128 -0
- package/esm/browser/workbench-protocol.d.ts +31 -3
- package/esm/browser/workbench-services.d.ts +57 -0
- package/esm/browser/workbench-services.js +158 -0
- package/esm/browser/workbench-util.d.ts +9 -3
- package/esm/browser/workbench-util.js +24 -4
- package/esm/browser/workbench.d.ts +9 -89
- package/esm/browser/workbench.js +61 -344
- package/lib/browser/assistant/assistant-ask-book.d.ts +36 -0
- package/lib/browser/assistant/assistant-ask-book.js +100 -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-conversation.d.ts +111 -0
- package/lib/browser/assistant/assistant-conversation.js +355 -0
- package/lib/browser/assistant/assistant-export.js +11 -8
- package/lib/browser/assistant/assistant-extension.d.ts +3 -2
- package/lib/browser/assistant/assistant-extension.js +117 -9
- package/lib/browser/assistant/assistant-protocol.d.ts +17 -2
- package/lib/browser/assistant/assistant-role.d.ts +22 -4
- package/lib/browser/assistant/assistant-role.js +34 -9
- package/lib/browser/assistant/assistant-state.d.ts +5 -1
- package/lib/browser/assistant/assistant-state.js +11 -0
- package/lib/browser/assistant/assistant-task-source.d.ts +4 -0
- package/lib/browser/assistant/assistant-task-source.js +25 -4
- package/lib/browser/assistant/assistant-task-util.d.ts +27 -7
- package/lib/browser/assistant/assistant-task-util.js +84 -20
- package/lib/browser/assistant/assistant-tasks.d.ts +0 -7
- package/lib/browser/assistant/assistant-tasks.js +3 -5
- package/lib/browser/assistant/assistant-thread.d.ts +23 -0
- package/lib/browser/assistant/assistant-thread.js +148 -0
- package/lib/browser/assistant/assistant-view.js +76 -127
- package/lib/browser/assistant/assistant.d.ts +33 -105
- package/lib/browser/assistant/assistant.js +102 -354
- 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 +57 -0
- package/lib/browser/assistant/chat-task-source.js +86 -0
- package/lib/browser/assistant/read-aloud.d.ts +35 -0
- package/lib/browser/assistant/read-aloud.js +102 -0
- package/lib/browser/assistant/realtime-voice.d.ts +139 -0
- package/lib/browser/assistant/realtime-voice.js +483 -0
- package/lib/browser/assistant/task-views.d.ts +11 -9
- package/lib/browser/assistant/task-views.js +47 -24
- package/lib/browser/assistant/voice-call-bar.d.ts +68 -0
- package/lib/browser/assistant/voice-call-bar.js +362 -0
- package/lib/browser/assistant/voice-call.d.ts +208 -0
- package/lib/browser/assistant/voice-call.js +473 -0
- package/lib/browser/assistant/voice-reopen.d.ts +19 -0
- package/lib/browser/assistant/voice-reopen.js +58 -0
- package/lib/browser/chat/chat-shown.d.ts +79 -0
- package/lib/browser/chat/chat-shown.js +266 -0
- package/lib/browser/chat/chat-view.js +7 -9
- package/lib/browser/chat/chat.d.ts +4 -68
- package/lib/browser/chat/chat.js +3 -251
- package/lib/browser/chat/draft-model.d.ts +1 -1
- 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 +26 -2
- package/lib/browser/components/account-menu.js +3 -1
- 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 +6 -2
- package/lib/browser/components/app-nav.js +15 -12
- package/lib/browser/components/app-shell-hooks.d.ts +11 -2
- package/lib/browser/components/app-shell-hooks.js +26 -5
- package/lib/browser/components/app-shell-state.d.ts +81 -0
- package/lib/browser/components/app-shell-state.js +507 -0
- package/lib/browser/components/app-view.js +202 -383
- package/lib/browser/components/asks-badge.d.ts +6 -2
- package/lib/browser/components/asks-badge.js +7 -3
- package/lib/browser/components/auth-pictures.d.ts +2 -2
- package/lib/browser/components/auth-pictures.js +13 -1
- package/lib/browser/components/auth-view.d.ts +4 -3
- package/lib/browser/components/auth-view.js +56 -9
- package/lib/browser/components/call-pill.d.ts +12 -0
- package/lib/browser/components/call-pill.js +55 -0
- package/lib/browser/components/chat-asks.d.ts +2 -0
- package/lib/browser/components/chat-asks.js +8 -0
- package/lib/browser/components/chat-busy.d.ts +33 -0
- package/lib/browser/components/chat-busy.js +52 -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 +10 -2
- package/lib/browser/components/chat-icon.js +32 -6
- 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 +97 -0
- package/lib/browser/components/chat-list-row.js +247 -0
- package/lib/browser/components/chat-list-util.d.ts +198 -0
- package/lib/browser/components/chat-list-util.js +401 -0
- package/lib/browser/components/chat-list.d.ts +6 -190
- package/lib/browser/components/chat-list.js +354 -561
- package/lib/browser/components/chat-seen.js +1 -0
- package/lib/browser/components/cloud-sign-in-view.d.ts +62 -0
- package/lib/browser/components/cloud-sign-in-view.js +393 -0
- package/lib/browser/components/code-editor.js +2 -1
- package/lib/browser/components/composer-addon-util.d.ts +1 -1
- package/lib/browser/components/composer-addons.d.ts +1 -1
- package/lib/browser/components/composer-attachments.d.ts +12 -0
- package/lib/browser/components/composer-attachments.js +64 -0
- package/lib/browser/components/composer-box-hooks.d.ts +10 -0
- package/lib/browser/components/composer-box-hooks.js +178 -0
- package/lib/browser/components/composer-box-protocol.d.ts +109 -0
- package/lib/browser/components/composer-box-protocol.js +3 -0
- package/lib/browser/components/composer-box.d.ts +1 -95
- package/lib/browser/components/composer-box.js +56 -157
- package/lib/browser/components/composer-target.d.ts +22 -0
- package/lib/browser/components/composer-target.js +46 -0
- package/lib/browser/components/composer.d.ts +7 -1
- package/lib/browser/components/composer.js +15 -11
- 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 +18 -3
- package/lib/browser/components/conversation-find.d.ts +28 -0
- package/lib/browser/components/conversation-find.js +188 -0
- package/lib/browser/components/conversation-scroll-hooks.js +3 -2
- package/lib/browser/components/conversation-scroll-util.d.ts +73 -0
- package/lib/browser/components/conversation-scroll-util.js +85 -1
- package/lib/browser/components/conversation-scroll.d.ts +3 -35
- package/lib/browser/components/conversation-scroll.js +34 -100
- package/lib/browser/components/conversation-view.d.ts +9 -0
- package/lib/browser/components/conversation-view.js +77 -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/discover-view.d.ts +3 -2
- package/lib/browser/components/discover-view.js +30 -25
- package/lib/browser/components/dismiss.js +2 -0
- package/lib/browser/components/earlier-messages.d.ts +2 -0
- package/lib/browser/components/earlier-messages.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/folder-picker.d.ts +7 -0
- package/lib/browser/components/folder-picker.js +88 -18
- package/lib/browser/components/fork-view.js +2 -4
- package/lib/browser/components/gallery.d.ts +1 -1
- package/lib/browser/components/gallery.js +58 -14
- 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 +9 -4
- package/lib/browser/components/host-view.js +56 -15
- package/lib/browser/components/image-menu.d.ts +12 -0
- package/lib/browser/components/image-menu.js +65 -0
- 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 +12 -115
- package/lib/browser/components/image-viewer.js +74 -370
- 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 +6 -3
- package/lib/browser/components/link-dialog.d.ts +2 -1
- package/lib/browser/components/link-dialog.js +7 -1
- package/lib/browser/components/link.d.ts +4 -0
- package/lib/browser/components/link.js +12 -0
- package/lib/browser/components/list-rows.d.ts +3 -1
- package/lib/browser/components/list-rows.js +2 -1
- package/lib/browser/components/loading.d.ts +13 -0
- package/lib/browser/components/loading.js +55 -0
- package/lib/browser/components/markdown.js +7 -1
- package/lib/browser/components/media.d.ts +2 -0
- package/lib/browser/components/media.js +17 -1
- package/lib/browser/components/mermaid-view.js +13 -6
- package/lib/browser/components/message-actions.d.ts +1 -1
- package/lib/browser/components/message-actions.js +9 -0
- package/lib/browser/components/message-footer.d.ts +3 -1
- package/lib/browser/components/message-footer.js +2 -1
- package/lib/browser/components/message-images.d.ts +42 -0
- package/lib/browser/components/message-images.js +157 -0
- package/lib/browser/components/message-list.d.ts +4 -100
- package/lib/browser/components/message-list.js +23 -462
- package/lib/browser/components/message-menu.js +4 -0
- package/lib/browser/components/message-steps.d.ts +22 -0
- package/lib/browser/components/message-steps.js +226 -0
- package/lib/browser/components/message-user.d.ts +64 -0
- package/lib/browser/components/message-user.js +247 -0
- package/lib/browser/components/model-picker.d.ts +4 -2
- package/lib/browser/components/model-picker.js +16 -3
- package/lib/browser/components/moved-notice.d.ts +15 -0
- package/lib/browser/components/moved-notice.js +96 -0
- package/lib/browser/components/nav-places.d.ts +17 -11
- package/lib/browser/components/nav-places.js +20 -14
- package/lib/browser/components/notice-center.js +35 -0
- package/lib/browser/components/notice-face.js +7 -6
- package/lib/browser/components/phone-shell.d.ts +5 -4
- package/lib/browser/components/phone-shell.js +59 -67
- package/lib/browser/components/plus-menu.d.ts +1 -1
- package/lib/browser/components/relay-services.d.ts +6 -1
- package/lib/browser/components/relay-services.js +107 -0
- package/lib/browser/components/relay-view.js +2 -0
- package/lib/browser/components/remote-hosts.d.ts +10 -0
- package/lib/browser/components/remote-hosts.js +8 -6
- package/lib/browser/components/remote-prompts.js +2 -0
- package/lib/browser/components/scan-screen.d.ts +4 -2
- package/lib/browser/components/scan-screen.js +54 -20
- package/lib/browser/components/screen-navigator-util.d.ts +29 -0
- package/lib/browser/components/screen-navigator-util.js +36 -0
- package/lib/browser/components/screen-navigator.d.ts +31 -0
- package/lib/browser/components/screen-navigator.js +83 -0
- 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-settings.d.ts +1 -1
- package/lib/browser/components/session-view.js +188 -7
- package/lib/browser/components/settings-choices.d.ts +10 -4
- package/lib/browser/components/settings-choices.js +16 -28
- package/lib/browser/components/settings-more.d.ts +8 -0
- package/lib/browser/components/settings-more.js +299 -0
- package/lib/browser/components/settings-parts.d.ts +8 -3
- package/lib/browser/components/settings-parts.js +31 -246
- package/lib/browser/components/settings-view.js +44 -16
- 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/stop-times.js +1 -0
- package/lib/browser/components/surface-flyout.js +2 -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 +12 -5
- package/lib/browser/components/unseen-drop.js +9 -8
- package/lib/browser/components/use-seen-chats.js +2 -2
- package/lib/browser/components/voice-services.d.ts +7 -0
- package/lib/browser/components/voice-services.js +196 -0
- package/lib/browser/components/voice-talk.d.ts +23 -6
- package/lib/browser/components/voice-talk.js +45 -10
- package/lib/browser/components/web-composer.d.ts +1 -1
- package/lib/browser/components/web-composer.js +2 -2
- package/lib/browser/components/web-dialog.js +2 -0
- package/lib/browser/components/workbench-view.d.ts +1 -1
- package/lib/browser/components/workbench-view.js +38 -5
- package/lib/browser/device/back-stack.d.ts +89 -11
- package/lib/browser/device/back-stack.js +205 -31
- package/lib/browser/device/code-scan.d.ts +23 -10
- package/lib/browser/device/code-scan.js +47 -42
- package/lib/browser/device/device-protocol.d.ts +1 -1
- package/lib/browser/device/device-protocol.js +1 -1
- 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/own-gestures.d.ts +1 -1
- package/lib/browser/device/pull-down.js +8 -6
- package/lib/browser/device/row-swipe.js +11 -9
- package/lib/browser/device/screen-awake.d.ts +25 -0
- package/lib/browser/device/screen-awake.js +63 -0
- package/lib/browser/device/sheet-swipe.d.ts +1 -179
- package/lib/browser/device/sheet-swipe.js +16 -452
- package/lib/browser/device/swipe-finger.d.ts +32 -0
- package/lib/browser/device/swipe-finger.js +87 -0
- package/lib/browser/device/swipe-settle.d.ts +53 -0
- package/lib/browser/device/swipe-settle.js +176 -0
- package/lib/browser/device/swipe-util.d.ts +98 -0
- package/lib/browser/device/swipe-util.js +187 -0
- package/lib/browser/drafts/drafts-protocol.d.ts +59 -0
- package/lib/browser/drafts/drafts-protocol.js +78 -0
- package/lib/browser/drafts/drafts.d.ts +22 -0
- package/lib/browser/drafts/drafts.js +94 -0
- package/lib/browser/drafts/use-composer-draft.d.ts +21 -0
- package/lib/browser/drafts/use-composer-draft.js +146 -0
- package/lib/browser/extension/icons.js +13 -0
- 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 +74 -6
- package/lib/browser/extension/web-api-contributions.d.ts +139 -39
- 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 +126 -63
- package/lib/browser/extension/web-extension-context.d.ts +9 -9
- package/lib/browser/extension/web-extension-context.js +86 -21
- package/lib/browser/extension/web-extension-protocol.d.ts +26 -3
- package/lib/browser/extension/web-extension-protocol.js +3 -0
- package/lib/browser/extension/web-extension-run.d.ts +5 -2
- package/lib/browser/extension/web-extension-run.js +13 -2
- package/lib/browser/extension/web-extensions-running.d.ts +94 -0
- package/lib/browser/extension/web-extensions-running.js +343 -0
- package/lib/browser/extension/web-extensions.d.ts +9 -82
- package/lib/browser/extension/web-extensions.js +19 -316
- package/lib/browser/extension/web-pages.js +1 -0
- package/lib/browser/extension/web-session-notices.js +8 -3
- package/lib/browser/extension/web-tasks.d.ts +8 -1
- package/lib/browser/extension/web-tasks.js +17 -3
- package/lib/browser/extension/web-view-util.d.ts +2 -2
- package/lib/browser/extension/web-view-util.js +7 -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 -32
- package/lib/browser/gateway/console-parts.js +63 -223
- package/lib/browser/gateway/console-tenant.d.ts +2 -4
- package/lib/browser/gateway/console-tenant.js +116 -208
- package/lib/browser/gateway/console-trend.d.ts +12 -0
- package/lib/browser/gateway/console-trend.js +153 -0
- package/lib/browser/gateway/console-view.js +151 -86
- package/lib/browser/hooks.js +1 -3
- package/lib/browser/hosts.d.ts +2 -0
- package/lib/browser/hosts.js +12 -2
- package/lib/browser/i18n/locales.d.ts +280 -13
- package/lib/browser/i18n/messages-ja.js +292 -25
- package/lib/browser/i18n/messages-zh-tw.js +292 -25
- package/lib/browser/i18n/messages.d.ts +277 -10
- package/lib/browser/i18n/messages.js +585 -51
- package/lib/browser/index.d.ts +18 -0
- package/lib/browser/index.js +18 -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/notices/notices-protocol.d.ts +12 -0
- package/lib/browser/notices/notices.js +7 -4
- package/lib/browser/offline/device-values.d.ts +2 -0
- package/lib/browser/offline/device-values.js +6 -1
- package/lib/browser/screen/page-answers.d.ts +43 -0
- package/lib/browser/screen/page-answers.js +93 -0
- package/lib/browser/screen/screen-protocol.d.ts +186 -0
- package/lib/browser/screen/screen-protocol.js +63 -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 +54 -0
- package/lib/browser/screen/screen.js +295 -0
- package/lib/browser/screen/use-screen-part.d.ts +7 -0
- package/lib/browser/screen/use-screen-part.js +50 -0
- 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 +14 -1
- package/lib/browser/settings/settings-protocol.js +24 -2
- package/lib/browser/settings/settings.d.ts +7 -1
- package/lib/browser/settings/settings.js +31 -7
- package/lib/browser/share/shared-extensions.d.ts +30 -0
- package/lib/browser/share/shared-extensions.js +182 -0
- package/lib/browser/share/shared-link.d.ts +12 -0
- package/lib/browser/share/shared-link.js +41 -0
- package/lib/browser/share/shared-page.d.ts +6 -0
- package/lib/browser/share/shared-page.js +173 -0
- package/lib/browser/state/state-protocol.d.ts +14 -0
- package/lib/browser/state/state-protocol.js +20 -1
- package/lib/browser/state/state.d.ts +10 -2
- package/lib/browser/state/state.js +18 -2
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +12 -1
- package/lib/browser/style/chat-list.d.ts +3 -0
- package/lib/browser/style/chat-list.js +153 -0
- package/lib/browser/style/conversation-column.d.ts +3 -0
- package/lib/browser/style/conversation-column.js +253 -0
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +66 -12
- package/lib/browser/style/dialogs.d.ts +3 -0
- package/lib/browser/style/dialogs.js +165 -0
- package/lib/browser/style/layout.d.ts +2 -2
- package/lib/browser/style/layout.js +8 -540
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +172 -110
- package/lib/browser/style/phone.d.ts +1 -1
- package/lib/browser/style/phone.js +14 -4
- package/lib/browser/style/shared.d.ts +3 -0
- package/lib/browser/style/shared.js +27 -0
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +59 -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 +29 -10
- package/lib/browser/style/tints.d.ts +5 -4
- package/lib/browser/style/tints.js +9 -9
- package/lib/browser/style.js +8 -0
- package/lib/browser/util/desktop.d.ts +7 -1
- package/lib/browser/util/desktop.js +17 -0
- package/lib/browser/util/gallery.d.ts +24 -2
- package/lib/browser/util/gallery.js +82 -2
- package/lib/browser/util/image-copy.d.ts +17 -0
- package/lib/browser/util/image-copy.js +60 -0
- package/lib/browser/util/image-swipe.d.ts +43 -0
- package/lib/browser/util/image-swipe.js +69 -0
- package/lib/browser/util/message.d.ts +5 -0
- package/lib/browser/util/message.js +14 -0
- package/lib/browser/util/process.d.ts +37 -5
- package/lib/browser/util/process.js +80 -9
- 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 +30 -0
- package/lib/browser/util/spoken.js +95 -0
- package/lib/browser/util/tool.d.ts +9 -0
- package/lib/browser/util/tool.js +71 -6
- package/lib/browser/util/transcript.d.ts +23 -0
- package/lib/browser/util/transcript.js +51 -0
- package/lib/browser/util/turn-end.d.ts +18 -0
- package/lib/browser/util/turn-end.js +167 -0
- package/lib/browser/util/voice.d.ts +5 -1
- package/lib/browser/util/voice.js +6 -1
- package/lib/browser/workbench-hosts.d.ts +37 -0
- package/lib/browser/workbench-hosts.js +124 -0
- package/lib/browser/workbench-lists.d.ts +34 -0
- package/lib/browser/workbench-lists.js +132 -0
- package/lib/browser/workbench-protocol.d.ts +31 -3
- package/lib/browser/workbench-services.d.ts +58 -0
- package/lib/browser/workbench-services.js +162 -0
- package/lib/browser/workbench-util.d.ts +9 -3
- package/lib/browser/workbench-util.js +24 -4
- package/lib/browser/workbench.d.ts +9 -89
- package/lib/browser/workbench.js +58 -341
- 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
|
@@ -34,61 +34,57 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.AppView = AppView;
|
|
37
|
-
const react_1 = require("@celljs/react");
|
|
38
37
|
const lucide_react_1 = require("lucide-react");
|
|
39
38
|
const React = __importStar(require("react"));
|
|
40
39
|
const assistant_chat_list_1 = require("../assistant/assistant-chat-list");
|
|
41
|
-
const chat_protocol_1 = require("../chat/chat-protocol");
|
|
42
40
|
const chat_view_1 = require("../chat/chat-view");
|
|
43
|
-
const
|
|
41
|
+
const device_page_1 = require("../cloud/device-page");
|
|
42
|
+
const device_protocol_1 = require("../device/device-protocol");
|
|
44
43
|
const launch_screen_1 = require("../device/launch-screen");
|
|
45
|
-
const extension_view_1 = require("../extension/extension-view");
|
|
46
44
|
const web_extension_protocol_1 = require("../extension/web-extension-protocol");
|
|
47
|
-
const files_protocol_1 = require("../files/files-protocol");
|
|
48
45
|
const hooks_1 = require("../hooks");
|
|
49
|
-
const use_t_1 = require("../i18n/use-t");
|
|
50
|
-
const code_renderers_1 = require("../markdown/code-renderers");
|
|
51
46
|
const notices_1 = require("../notices/notices");
|
|
52
|
-
const
|
|
53
|
-
const
|
|
54
|
-
const voice_1 = require("../util/voice");
|
|
47
|
+
const shared_link_1 = require("../share/shared-link");
|
|
48
|
+
const shared_page_1 = require("../share/shared-page");
|
|
55
49
|
const workbench_util_1 = require("../workbench-util");
|
|
50
|
+
const app_contexts_1 = require("./app-contexts");
|
|
56
51
|
const app_nav_1 = require("./app-nav");
|
|
57
52
|
const app_shell_hooks_1 = require("./app-shell-hooks");
|
|
53
|
+
const app_shell_state_1 = require("./app-shell-state");
|
|
58
54
|
const auth_view_1 = require("./auth-view");
|
|
59
55
|
const board_1 = require("./board");
|
|
60
56
|
const chat_asks_1 = require("./chat-asks");
|
|
61
57
|
const chat_icon_1 = require("./chat-icon");
|
|
62
|
-
const
|
|
58
|
+
const chat_list_util_1 = require("./chat-list-util");
|
|
63
59
|
const chat_seen_1 = require("./chat-seen");
|
|
64
60
|
const connection_bar_1 = require("./connection-bar");
|
|
65
61
|
const custom_host_1 = require("./custom-host");
|
|
62
|
+
const device_sign_in_page_1 = require("./device-sign-in-page");
|
|
66
63
|
const dino_look_1 = require("./dino-look");
|
|
67
64
|
const discover_view_1 = require("./discover-view");
|
|
68
65
|
const editor_area_1 = require("./editor-area");
|
|
66
|
+
const entry_holds_1 = require("./entry-holds");
|
|
69
67
|
const environment_view_1 = require("./environment-view");
|
|
70
|
-
const held_talk_1 = require("./held-talk");
|
|
71
68
|
const host_view_1 = require("./host-view");
|
|
72
69
|
const icon_1 = require("./icon");
|
|
70
|
+
const kept_call_bar_1 = require("./kept-call-bar");
|
|
73
71
|
const kept_pages_1 = require("./kept-pages");
|
|
74
72
|
const launcher_surface_1 = require("./launcher-surface");
|
|
75
|
-
const link_1 = require("./link");
|
|
76
73
|
const link_dialog_1 = require("./link-dialog");
|
|
77
|
-
const list_skeleton_1 = require("./list-skeleton");
|
|
78
74
|
const me_view_1 = require("./me-view");
|
|
79
|
-
const media_1 = require("./media");
|
|
80
75
|
const nav_places_1 = require("./nav-places");
|
|
81
76
|
const notice_center_1 = require("./notice-center");
|
|
82
77
|
const phone_shell_1 = require("./phone-shell");
|
|
83
78
|
const remote_prompts_1 = require("./remote-prompts");
|
|
84
79
|
const scan_screen_1 = require("./scan-screen");
|
|
80
|
+
const screen_navigator_1 = require("./screen-navigator");
|
|
81
|
+
const screen_navigator_util_1 = require("./screen-navigator-util");
|
|
85
82
|
const serve_restart_1 = require("./serve-restart");
|
|
86
83
|
const settings_view_1 = require("./settings-view");
|
|
87
84
|
const share_dialog_1 = require("./share-dialog");
|
|
88
85
|
const side_lists_1 = require("./side-lists");
|
|
89
86
|
const split_pane_1 = require("./split-pane");
|
|
90
87
|
const surface_flyout_1 = require("./surface-flyout");
|
|
91
|
-
const use_seen_chats_1 = require("./use-seen-chats");
|
|
92
88
|
const workbench_toggle_1 = require("./workbench-toggle");
|
|
93
89
|
const workbench_view_1 = require("./workbench-view");
|
|
94
90
|
/**
|
|
@@ -99,302 +95,9 @@ const workbench_view_1 = require("./workbench-view");
|
|
|
99
95
|
* the conversation instead.
|
|
100
96
|
*/
|
|
101
97
|
function AppShell() {
|
|
102
|
-
var _a, _b, _c
|
|
103
|
-
var
|
|
104
|
-
const t = (0,
|
|
105
|
-
const [workbench, bench] = (0, hooks_1.useWorkbench)();
|
|
106
|
-
const [extensions, host] = (0, hooks_1.useWebExtensions)();
|
|
107
|
-
const [{ store, pending }, chat] = (0, chat_view_1.useChat)();
|
|
108
|
-
const [sideId, setSideId] = (0, hooks_1.usePersisted)(app_shell_hooks_1.SIDE);
|
|
109
|
-
const [removedChats] = (0, hooks_1.usePersisted)(chat_protocol_1.REMOVED_CHATS);
|
|
110
|
-
const [chatsByDirectory, setChatsByDirectory] = (0, hooks_1.usePersisted)(chat_list_1.BY_DIRECTORY);
|
|
111
|
-
const [foldedChats, setFoldedChats] = (0, hooks_1.usePersisted)(chat_list_1.FOLDED);
|
|
112
|
-
const [pinnedChats, setPinnedChats] = (0, hooks_1.usePersisted)(chat_list_1.PINNED);
|
|
113
|
-
const [letGoAsks, setLetGoAsks] = (0, hooks_1.usePersisted)(chat_asks_1.LET_GO_ASKS);
|
|
114
|
-
const [navOpen, setNavOpen] = React.useState(false);
|
|
115
|
-
const layout = (0, device_1.useDevice)(device => device.layout);
|
|
116
|
-
const touch = (0, device_1.useDevice)(device => device.touch);
|
|
117
|
-
// A phone: tabs at the bottom, and the conversation or a page over them, a screen of its own (phone-shell.tsx).
|
|
118
|
-
const phone = (0, device_1.useDevice)(device => device.handheld);
|
|
119
|
-
const [screenOpen, setScreenOpen] = React.useState(false);
|
|
120
|
-
// The launcher or the board, over the first tab of a phone or in a flyout of the rail (ta-launcher.md).
|
|
121
|
-
const [surface, setSurface] = React.useState();
|
|
122
|
-
const closing = React.useRef(undefined);
|
|
123
|
-
const surfaces = (0, board_1.useSurfaces)();
|
|
124
|
-
// It opens on its first tab, as those apps do, whatever this tab of the browser showed before.
|
|
125
|
-
const opened = React.useRef(false);
|
|
126
|
-
React.useEffect(() => {
|
|
127
|
-
if (phone && !opened.current) {
|
|
128
|
-
opened.current = true;
|
|
129
|
-
setSideId(app_shell_hooks_1.FIRST_SIDE);
|
|
130
|
-
host.showPage('');
|
|
131
|
-
}
|
|
132
|
-
}, [phone, setSideId, host]);
|
|
133
|
-
/**
|
|
134
|
-
* The settings view is shown in place of the conversation or the page, at that section (`''`: the first); on a
|
|
135
|
-
* phone it is a screen over Me, which stays while it slides away, until another screen takes its place.
|
|
136
|
-
*/
|
|
137
|
-
const [settings, setSettings] = React.useState();
|
|
138
|
-
// Each opening of the settings on a phone starts afresh: no search or section left from the last.
|
|
139
|
-
const [settingsOpened, setSettingsOpened] = React.useState(0);
|
|
140
|
-
const [tabPage, setTabPage] = React.useState();
|
|
141
|
-
const openSettings = React.useCallback((section) => {
|
|
142
|
-
setSettings(section !== null && section !== void 0 ? section : '');
|
|
143
|
-
setSettingsOpened(count => count + 1);
|
|
144
|
-
setNavOpen(false);
|
|
145
|
-
setScreenOpen(phone);
|
|
146
|
-
}, [phone]);
|
|
147
|
-
const closeSettings = React.useCallback(() => (phone ? setScreenOpen(false) : setSettings(undefined)), [phone]);
|
|
148
|
-
const settingsShown = settings !== undefined && (!phone || screenOpen);
|
|
149
|
-
const [rightOpen, toggleRight, revealRight, uncoverRight] = (0, app_shell_hooks_1.useRight)();
|
|
150
|
-
const [maximized, setMaximized] = React.useState(false);
|
|
151
|
-
const [{ theme, language, settings: chatSettings }] = (0, hooks_1.useSettings)();
|
|
152
|
-
const readArchived = React.useCallback(() => void bench.readArchived().catch(() => undefined), [bench]);
|
|
153
|
-
React.useEffect(() => bench.setArchiveDays(chatSettings.chatArchiveDays), [bench, chatSettings.chatArchiveDays]);
|
|
154
|
-
const sidebar = (0, split_pane_1.usePane)(app_shell_hooks_1.SIDEBAR);
|
|
155
|
-
const editor = (0, split_pane_1.usePane)(app_shell_hooks_1.EDITOR);
|
|
156
|
-
const online = workbench.status === 'online';
|
|
157
|
-
// Files named in replies outside a conversation (channels, pages) are in the server's directory.
|
|
158
|
-
const files = (0, react_1.useInject)(files_protocol_1.TaFiles);
|
|
159
|
-
const fileUrl = React.useCallback(async (path, box) => files.loadable(thumbnail_1.ThumbnailUtil.boxed(await bench.workspace.fileUrl(path), box)), [bench, files]);
|
|
160
|
-
const openLink = (0, hooks_1.useOpenLink)(undefined);
|
|
161
|
-
(0, workbench_view_1.useDocument)();
|
|
162
|
-
(0, app_shell_hooks_1.useRefresh)(online);
|
|
163
|
-
// What the server and its packages say (errors, questions) is in the language of the page.
|
|
164
|
-
React.useEffect(() => {
|
|
165
|
-
if (online) {
|
|
166
|
-
bench.settings.setLanguage(language).catch(() => undefined);
|
|
167
|
-
}
|
|
168
|
-
}, [online, language, bench]);
|
|
169
|
-
React.useEffect(() => {
|
|
170
|
-
void bench.start();
|
|
171
|
-
}, [bench]);
|
|
172
|
-
// The computer cannot be reached from the start: the web extensions of the last time start anyway (from
|
|
173
|
-
// the code this device kept) and show what they read last; online, `chat.start` loads them.
|
|
174
|
-
const offline = workbench.status === 'offline';
|
|
175
|
-
const startedOffline = React.useRef(false);
|
|
176
|
-
React.useEffect(() => {
|
|
177
|
-
if (offline && !startedOffline.current) {
|
|
178
|
-
startedOffline.current = true;
|
|
179
|
-
void host.refresh().catch(() => undefined);
|
|
180
|
-
}
|
|
181
|
-
}, [offline, host]);
|
|
182
|
-
/** The conversation the page opens with is shown: those shown after are the user's doing. */
|
|
183
|
-
const started = React.useRef(false);
|
|
184
|
-
React.useEffect(() => {
|
|
185
|
-
if (online) {
|
|
186
|
-
void chat.start().then(() => {
|
|
187
|
-
started.current = true;
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
}, [online, chat]);
|
|
191
|
-
// A tab a web extension opens is meant to be seen, unless it opens again behind the others as the page loads.
|
|
192
|
-
const { activeEditor, focus } = extensions;
|
|
193
|
-
const revealEditor = editor.reveal;
|
|
194
|
-
React.useEffect(() => {
|
|
195
|
-
if (focus > 0) {
|
|
196
|
-
revealRight();
|
|
197
|
-
revealEditor();
|
|
198
|
-
// Opened from the launcher or the board: the workbench comes in their place.
|
|
199
|
-
setSurface(undefined);
|
|
200
|
-
}
|
|
201
|
-
}, [focus, revealRight, revealEditor]);
|
|
202
|
-
React.useEffect(() => {
|
|
203
|
-
host.setSettingsOpener(openSettings);
|
|
204
|
-
return () => host.setSettingsOpener(undefined);
|
|
205
|
-
}, [host, openSettings]);
|
|
206
|
-
// A web extension shows another conversation: the conversation, not a page, a drawer or the workbench over it, is then in front.
|
|
207
|
-
React.useEffect(() => {
|
|
208
|
-
host.setSessionSwitcher(async (session, opening) => {
|
|
209
|
-
// In front at once, while it opens.
|
|
210
|
-
const shown = typeof session === 'object' && 'sessionFile' in session ? chat.resume(session.sessionFile) : chat.show(session, opening);
|
|
211
|
-
setNavOpen(false);
|
|
212
|
-
setSurface(undefined);
|
|
213
|
-
setSettings(undefined);
|
|
214
|
-
setScreenOpen(true);
|
|
215
|
-
setMaximized(false);
|
|
216
|
-
uncoverRight();
|
|
217
|
-
try {
|
|
218
|
-
await shown;
|
|
219
|
-
}
|
|
220
|
-
catch (error) {
|
|
221
|
-
// A phone goes back to the list it came from, rather than showing the conversation of before.
|
|
222
|
-
if (phone && chat.state.pending === undefined) {
|
|
223
|
-
setScreenOpen(false);
|
|
224
|
-
}
|
|
225
|
-
throw error;
|
|
226
|
-
}
|
|
227
|
-
});
|
|
228
|
-
return () => host.setSessionSwitcher(undefined);
|
|
229
|
-
}, [host, chat, uncoverRight, phone]);
|
|
230
|
-
// A page shown from the sidebar on a phone: the drawer goes; so do the settings, for the page or the conversation shown.
|
|
231
|
-
const { page } = extensions;
|
|
232
|
-
const shownSession = store === null || store === void 0 ? void 0 : store.sessionId;
|
|
233
|
-
// biome-ignore lint/correctness/useExhaustiveDependencies: follows the page
|
|
234
|
-
React.useEffect(() => setNavOpen(false), [page]);
|
|
235
|
-
// biome-ignore lint/correctness/useExhaustiveDependencies: follows what the main area shows
|
|
236
|
-
React.useEffect(() => {
|
|
237
|
-
setSettings(undefined);
|
|
238
|
-
// A phone keeps the tab under what came over it.
|
|
239
|
-
if (!phone) {
|
|
240
|
-
setTabPage(undefined);
|
|
241
|
-
}
|
|
242
|
-
}, [page, shownSession]);
|
|
243
|
-
// Another conversation shown that no sidebar view lists (not that of an agent, which is in a group), by a page,
|
|
244
|
-
// a link or a fork: the sidebar turns to the chats, where it is selected, to be found again. Not the one the page opens with,
|
|
245
|
-
// nor one the list does not have yet: it may be an agent's.
|
|
246
|
-
// biome-ignore lint/correctness/useExhaustiveDependencies: follows the conversation shown
|
|
247
|
-
React.useEffect(() => {
|
|
248
|
-
if (!shownSession || !started.current || phone) {
|
|
249
|
-
return;
|
|
250
|
-
}
|
|
251
|
-
const info = workbench.sessions.find(session => session.sessionId === shownSession);
|
|
252
|
-
if (info && !info.group) {
|
|
253
|
-
setSideId('');
|
|
254
|
-
}
|
|
255
|
-
}, [shownSession]);
|
|
256
|
-
const { hasCards, openCards, cardsTool } = (0, app_shell_hooks_1.useWorkbenchCards)(rightOpen && !editor.collapsed);
|
|
257
|
-
const view = extensions.views.find(candidate => candidate.id === page && candidate.location === 'page');
|
|
258
|
-
const sideViews = side_lists_1.SideListUtil.sidebarViews(extensions.views);
|
|
259
|
-
const sideView = sideId === app_shell_hooks_1.FIRST_SIDE ? sideViews[0] : sideViews.find(candidate => candidate.id === sideId);
|
|
260
|
-
// The first start, nothing kept: the double's list may still come, rather than the chats shown a moment before it.
|
|
261
|
-
const sideComing = sideId === app_shell_hooks_1.FIRST_SIDE && !sideView && !extensions.loaded;
|
|
262
|
-
const side = sideView ? sideView.id : sideComing ? app_shell_hooks_1.FIRST_SIDE : '';
|
|
263
|
-
const showPage = (id) => {
|
|
264
|
-
host.showPage(id);
|
|
265
|
-
setNavOpen(false);
|
|
266
|
-
setSettings(undefined);
|
|
267
|
-
setTabPage(undefined);
|
|
268
|
-
};
|
|
269
|
-
const lists = side_lists_1.SideListUtil.of(sideViews, t('ta.chat'));
|
|
270
|
-
const tools = [...(hasCards ? [cardsTool] : []), ...extensions.views.filter(candidate => candidate.location === 'panel')];
|
|
271
|
-
const openTool = (id) => (id === app_shell_hooks_1.CARDS_ID ? openCards() : host.openView(id));
|
|
272
|
-
// The workbench: the tabs open, or the tools that open there.
|
|
273
|
-
const editors = extensions.editors.length > 0 || tools.length > 0;
|
|
274
|
-
// The settings take the place of the conversation and of the workbench, as a page of their own.
|
|
275
|
-
const showEditors = rightOpen && editors && !editor.collapsed && !settingsShown;
|
|
276
|
-
// Over the conversation of a narrow screen, closing the last tab goes back to the conversation.
|
|
277
|
-
const tabCount = extensions.editors.length;
|
|
278
|
-
const tabsBefore = React.useRef(tabCount);
|
|
279
|
-
React.useEffect(() => {
|
|
280
|
-
if (tabsBefore.current > 0 && tabCount === 0 && showEditors && layout !== 'expanded') {
|
|
281
|
-
toggleRight();
|
|
282
|
-
}
|
|
283
|
-
tabsBefore.current = tabCount;
|
|
284
|
-
}, [tabCount, showEditors, toggleRight, layout]);
|
|
285
|
-
(0, app_shell_hooks_1.useDrawerSwipe)(touch && layout === 'compact' && !phone && !showEditors, navOpen, setNavOpen);
|
|
286
|
-
// The pages of the rail: in the navigation, or under Discover.
|
|
287
|
-
const navigation = (0, app_nav_1.useNavigation)(extensions.views);
|
|
288
|
-
const codeScan = (0, hooks_1.useCodeScan)();
|
|
289
|
-
const [, notices] = (0, hooks_1.useNotices)();
|
|
290
|
-
// Without a sidebar view that lists the double, its page is the first tab: it opens there, once the views are in.
|
|
291
|
-
const homeOpened = React.useRef(false);
|
|
292
|
-
const homeId = phone && extensions.views.length > 0 ? (_a = navigation.home) === null || _a === void 0 ? void 0 : _a.id : undefined;
|
|
293
|
-
React.useEffect(() => {
|
|
294
|
-
if (homeId && !homeOpened.current) {
|
|
295
|
-
homeOpened.current = true;
|
|
296
|
-
if (!host.state.page) {
|
|
297
|
-
host.showPage(homeId);
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
}, [homeId, host]);
|
|
301
|
-
// A page of an extension started on open that Discover lists: shown as those of Discover are.
|
|
302
|
-
const discoveredOnOpen = !!(view === null || view === void 0 ? void 0 : view.onOpen) && navigation.onOpen.some(entry => entry.state === 'shown');
|
|
303
|
-
const railView = view && (view === navigation.home || navigation.pages.includes(view) || discoveredOnOpen) ? view : undefined;
|
|
304
|
-
// 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.
|
|
305
|
-
const tabView = view && (view === navigation.home || navigation.nav.includes(view)) ? view : undefined;
|
|
306
|
-
// A page of the screen, and those in the background beside it, kept as they were.
|
|
307
|
-
const screenPage = settings === undefined && view && !tabView ? view : undefined;
|
|
308
|
-
// The conversation in front, where the tools of the workbench follow its directory; else they are in the default one.
|
|
309
|
-
const conversationShown = phone ? screenOpen && settings === undefined && !screenPage : settings === undefined && tabPage !== 'discover' && !view;
|
|
310
|
-
React.useEffect(() => host.setConversationShown(conversationShown), [host, conversationShown]);
|
|
311
|
-
// What the user has seen is kept here, whichever list or tab is out: one read from the agents' list is seen too.
|
|
312
|
-
const { seen: seenChats, looking } = (0, assistant_chat_list_1.useSeenConversations)(workbench.sessions, conversationShown ? store === null || store === void 0 ? void 0 : store.sessionId : undefined, (view === null || view === void 0 ? void 0 : view.id) === side_lists_1.DOUBLE_PAGE && settings === undefined && (!phone || screenOpen || view === tabView));
|
|
313
|
-
// The others in the same Ta see who looks at a conversation with them (TaSessionInfo.people), while the page is seen.
|
|
314
|
-
const pageVisible = (0, use_seen_chats_1.usePageVisible)();
|
|
315
|
-
React.useEffect(() => bench.presence.look(pageVisible ? looking : undefined), [bench, pageVisible, looking]);
|
|
316
|
-
const state = (0, react_1.useInject)(state_protocol_1.TaState);
|
|
317
|
-
const { pageShown } = extensions;
|
|
318
|
-
// biome-ignore lint/correctness/useExhaustiveDependencies: follows the pages shown
|
|
319
|
-
React.useEffect(() => {
|
|
320
|
-
// A page that slides in over it: the launcher or the board goes once covered, not under the page as it comes.
|
|
321
|
-
if (phone && surface && view && !tabView) {
|
|
322
|
-
const timer = setTimeout(() => setSurface(undefined), 420);
|
|
323
|
-
closing.current = () => clearTimeout(timer);
|
|
324
|
-
}
|
|
325
|
-
else {
|
|
326
|
-
setSurface(undefined);
|
|
327
|
-
}
|
|
328
|
-
// A page shown from the workbench over it (Open in the main area of a channel): the workbench goes, as for a conversation.
|
|
329
|
-
if (pageShown > 0 && view) {
|
|
330
|
-
setSettings(undefined);
|
|
331
|
-
setScreenOpen(!tabView);
|
|
332
|
-
setMaximized(false);
|
|
333
|
-
uncoverRight();
|
|
334
|
-
}
|
|
335
|
-
}, [pageShown]);
|
|
336
|
-
React.useEffect(() => () => { var _a; return (_a = closing.current) === null || _a === void 0 ? void 0 : _a.call(closing); }, []);
|
|
337
|
-
React.useEffect(() => {
|
|
338
|
-
if (layout !== 'compact') {
|
|
339
|
-
setNavOpen(false);
|
|
340
|
-
}
|
|
341
|
-
}, [layout]);
|
|
342
|
-
// The settings and the pages of the rail take the place of the sidebar too, as on their own; in the drawer of a narrow screen the sidebar stays.
|
|
343
|
-
const full = settings !== undefined || tabPage === 'discover' || railView !== undefined;
|
|
344
|
-
const sideShown = navOpen || (!sidebar.collapsed && !full);
|
|
345
|
-
// Over such a page, the logo (and Mod+B) goes back to the conversation, with the sidebar.
|
|
346
|
-
const toggleSide = () => {
|
|
347
|
-
if (navOpen) {
|
|
348
|
-
setNavOpen(false);
|
|
349
|
-
}
|
|
350
|
-
else if (full) {
|
|
351
|
-
setSettings(undefined);
|
|
352
|
-
setTabPage(undefined);
|
|
353
|
-
if (view) {
|
|
354
|
-
host.showPage('');
|
|
355
|
-
}
|
|
356
|
-
sidebar.reveal();
|
|
357
|
-
}
|
|
358
|
-
else {
|
|
359
|
-
sidebar.toggle();
|
|
360
|
-
}
|
|
361
|
-
};
|
|
362
|
-
// A list of the rail: it shows in the sidebar, in place of a page; picked again, the sidebar (or the drawer) goes.
|
|
363
|
-
const showList = (id) => {
|
|
364
|
-
const pick = side_lists_1.SideListUtil.pick(id, { side, drawer: navOpen, shown: sideShown });
|
|
365
|
-
if (pick === 'close') {
|
|
366
|
-
setNavOpen(false);
|
|
367
|
-
}
|
|
368
|
-
else if (pick === 'hide') {
|
|
369
|
-
sidebar.toggle();
|
|
370
|
-
}
|
|
371
|
-
else {
|
|
372
|
-
setSideId(id);
|
|
373
|
-
}
|
|
374
|
-
if (pick === 'show') {
|
|
375
|
-
setSettings(undefined);
|
|
376
|
-
setTabPage(undefined);
|
|
377
|
-
if (view && full) {
|
|
378
|
-
host.showPage('');
|
|
379
|
-
}
|
|
380
|
-
sidebar.reveal();
|
|
381
|
-
}
|
|
382
|
-
};
|
|
383
|
-
const toggleWorkbench = () => {
|
|
384
|
-
if (showEditors) {
|
|
385
|
-
toggleRight();
|
|
386
|
-
}
|
|
387
|
-
else {
|
|
388
|
-
// Over the settings of a wide screen (the rail, Cmd/Ctrl+J): they give way to what was under them.
|
|
389
|
-
if (!phone && settings !== undefined) {
|
|
390
|
-
setSettings(undefined);
|
|
391
|
-
}
|
|
392
|
-
revealRight();
|
|
393
|
-
editor.reveal();
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
|
-
(0, app_shell_hooks_1.useKeys)(toggleSide, openSettings, () => editors && toggleWorkbench());
|
|
397
|
-
(0, app_shell_hooks_1.useTitlebarColor)(workbench.status !== 'signed-out', theme);
|
|
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)();
|
|
398
101
|
const [providers, reloadProviders] = (0, auth_view_1.useAuthProviders)(online);
|
|
399
102
|
const [later, setLater] = (0, hooks_1.usePersisted)(app_shell_hooks_1.LOGIN_LATER);
|
|
400
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. */
|
|
@@ -407,10 +110,12 @@ function AppShell() {
|
|
|
407
110
|
window.addEventListener(notices_1.SIGN_IN_EVENT, ask);
|
|
408
111
|
return () => window.removeEventListener(notices_1.SIGN_IN_EVENT, ask);
|
|
409
112
|
}, [reloadProviders]);
|
|
410
|
-
|
|
411
|
-
|
|
113
|
+
const doubleId = side_lists_1.DOUBLE_PAGE;
|
|
114
|
+
// Where Ta's agents read the page to be, and go (docs/design/ta-app-use.md 3): set below as it renders.
|
|
115
|
+
const screenShell = (0, screen_navigator_1.useScreenNavigator)();
|
|
116
|
+
const inCall = (0, entry_holds_1.useCallGoingOn)();
|
|
412
117
|
if (workbench.status === 'signed-out') {
|
|
413
|
-
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 });
|
|
414
119
|
}
|
|
415
120
|
if (workbench.error === 'environment') {
|
|
416
121
|
return React.createElement(environment_view_1.EnvironmentPage, null);
|
|
@@ -422,7 +127,7 @@ function AppShell() {
|
|
|
422
127
|
}, onSignedIn: () => {
|
|
423
128
|
setAsked(false);
|
|
424
129
|
reloadProviders();
|
|
425
|
-
} }));
|
|
130
|
+
}, onProviders: reloadProviders }));
|
|
426
131
|
}
|
|
427
132
|
// What the columns beside the conversation and the editors take, so that the editors never take more than the conversation.
|
|
428
133
|
const sideWidths = {
|
|
@@ -442,9 +147,10 @@ function AppShell() {
|
|
|
442
147
|
showPage('');
|
|
443
148
|
}
|
|
444
149
|
};
|
|
445
|
-
|
|
150
|
+
picking.current = picked;
|
|
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) => {
|
|
446
152
|
var _a;
|
|
447
|
-
const file =
|
|
153
|
+
const file = chat_list_util_1.ChatListUtil.file(entry);
|
|
448
154
|
const before = state.get(chat_seen_1.SEEN_CHATS);
|
|
449
155
|
const now = Date.now();
|
|
450
156
|
state.set(chat_seen_1.SEEN_CHATS, unseen ? chat_seen_1.ChatSeenUtil.markUnseen(before, file, now) : ((_a = chat_seen_1.ChatSeenUtil.look(before, file, entry.updatedAt, now)) !== null && _a !== void 0 ? _a : before));
|
|
@@ -452,11 +158,12 @@ function AppShell() {
|
|
|
452
158
|
var _a;
|
|
453
159
|
const at = (_a = entry.asking) === null || _a === void 0 ? void 0 : _a.at;
|
|
454
160
|
if (at !== undefined) {
|
|
455
|
-
setLetGoAsks(before => chat_asks_1.ChatAskUtil.letGo(before,
|
|
161
|
+
setLetGoAsks(before => chat_asks_1.ChatAskUtil.letGo(before, chat_list_util_1.ChatListUtil.file(entry), at));
|
|
456
162
|
}
|
|
457
|
-
}, onPicked: picked }));
|
|
458
|
-
|
|
459
|
-
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) }));
|
|
460
167
|
// A photo of the scan screen to the double: its conversation shows, the photo goes with what to do with it.
|
|
461
168
|
const askDouble = async (text, image) => {
|
|
462
169
|
const double = extensions.views.find(candidate => candidate.id === side_lists_1.DOUBLE_PAGE);
|
|
@@ -477,10 +184,22 @@ function AppShell() {
|
|
|
477
184
|
React.createElement(link_dialog_1.LinkDialog, null),
|
|
478
185
|
React.createElement(remote_prompts_1.RemotePrompts, null),
|
|
479
186
|
React.createElement(serve_restart_1.ServeRestartNotices, null),
|
|
480
|
-
React.createElement(host_view_1.
|
|
187
|
+
React.createElement(host_view_1.PageVeil, null),
|
|
481
188
|
codeScan && React.createElement(scan_screen_1.ScanHost, { onCode: text => void codeScan.open(text), onAsk: askDouble }),
|
|
482
189
|
React.createElement(share_dialog_1.ShareHost, null),
|
|
483
|
-
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
|
+
} })));
|
|
484
203
|
// The screen of a phone slides away: a page it showed is out of sight, and its extension may go to the background.
|
|
485
204
|
const closeScreen = () => {
|
|
486
205
|
setScreenOpen(false);
|
|
@@ -510,40 +229,38 @@ function AppShell() {
|
|
|
510
229
|
}
|
|
511
230
|
};
|
|
512
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 }));
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
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();
|
|
519
253
|
},
|
|
520
|
-
move: held_talk_1.HeldTalk.point,
|
|
521
|
-
end: held_talk_1.HeldTalk.release,
|
|
522
|
-
cancel: held_talk_1.HeldTalk.cancel,
|
|
523
254
|
});
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
showPage(doubleId);
|
|
528
|
-
// Over the tabs when a sidebar view lists the double; as a tab of its own elsewhere.
|
|
529
|
-
if (phone) {
|
|
530
|
-
setScreenOpen(!navigation.home);
|
|
531
|
-
}
|
|
532
|
-
}),
|
|
533
|
-
chats: talkHold('draft', () => {
|
|
534
|
-
void chat.draft();
|
|
535
|
-
picked();
|
|
536
|
-
}),
|
|
537
|
-
}
|
|
538
|
-
: {};
|
|
539
|
-
// The chats' tab has the amber dot of their rows while one of them said something unseen, as a messenger's: of
|
|
540
|
-
// those the list shows, so that each dot of the tab has a row to find. Dragged away, all are seen. Those that
|
|
541
|
-
// wait for the user to decide are counted on it, on the rail too, until answered.
|
|
542
|
-
const listedChats = chat_list_1.ChatListUtil.entries(workbench.sessions, workbench.saved, removedChats, undefined, workbench_util_1.WorkbenchUtil.daysAgo(Date.now(), chatSettings.chatArchiveDays), chat_list_1.ChatListUtil.keptFiles(workbench.saved, pinnedChats, letGoAsks), chat_icon_1.ChatIconUtil.archiveSince(extensions.chatIcons, Date.now())).listed;
|
|
543
|
-
const chatsAsking = chat_asks_1.ChatAskUtil.count(listedChats, letGoAsks);
|
|
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.
|
|
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;
|
|
544
258
|
const inFront = looking ? workbench.sessions.find(session => session.sessionId === looking) : undefined;
|
|
545
|
-
const chatsUnseen = chat_seen_1.ChatSeenUtil.anyUnseen(listedChats, seenChats, inFront &&
|
|
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.
|
|
546
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));
|
|
547
264
|
const tabs = phone
|
|
548
265
|
? (0, nav_places_1.phoneTabs)(lists, navigation, {
|
|
549
266
|
discover: t('ta.discover'),
|
|
@@ -551,64 +268,166 @@ function AppShell() {
|
|
|
551
268
|
fold: t('ta.nav.fold'),
|
|
552
269
|
settings: { label: t('ta.nav.settings'), run: () => openSettings('navigation') },
|
|
553
270
|
holds,
|
|
554
|
-
}).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)
|
|
555
276
|
: [];
|
|
556
|
-
const tab = tabPage === 'me' ? nav_places_1.ME_TAB : tabPage === 'discover' ? nav_places_1.DISCOVER : ((
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
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);
|
|
278
|
+
const pickTab = (id) => {
|
|
279
|
+
setSurface(undefined);
|
|
280
|
+
setChatsBusy(false);
|
|
281
|
+
if (navigation.nav.some(candidate => candidate.id === id)) {
|
|
282
|
+
showPage(id);
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
285
|
+
setTabPage(id === nav_places_1.ME_TAB ? 'me' : id === nav_places_1.DISCOVER ? 'discover' : undefined);
|
|
286
|
+
if (tabView) {
|
|
287
|
+
host.showPage('');
|
|
288
|
+
}
|
|
289
|
+
if (id !== nav_places_1.ME_TAB && id !== nav_places_1.DISCOVER) {
|
|
290
|
+
setSideId(id);
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
const chatName = (entry) => entry.sessionName || entry.firstMessage || t('ta.chat.new');
|
|
294
|
+
const shownChat = store ? workbench.sessions.find(session => session.sessionId === store.sessionId) : undefined;
|
|
295
|
+
screenShell.current = {
|
|
296
|
+
phone,
|
|
297
|
+
where: screen_navigator_util_1.ScreenNavigatorUtil.where({
|
|
298
|
+
settings: settingsShown ? (settings !== null && settings !== void 0 ? settings : '') : undefined,
|
|
299
|
+
page: phone ? (screenOpen ? screenPage : tabView) : tabPage === 'discover' ? undefined : view,
|
|
300
|
+
discover: tabPage === 'discover',
|
|
301
|
+
me: phone && !screenOpen && tabPage === 'me',
|
|
302
|
+
list: (phone ? !screenOpen && !tabView && !tabPage : sideShown) ? (_b = lists.find(entry => entry.id === side)) === null || _b === void 0 ? void 0 : _b.label : undefined,
|
|
303
|
+
chat: (phone ? screenOpen && !screenPage && settings === undefined : settings === undefined && tabPage !== 'discover' && !view)
|
|
304
|
+
? shownChat
|
|
305
|
+
? chatName(shownChat)
|
|
306
|
+
: t('ta.chat.new')
|
|
307
|
+
: undefined,
|
|
308
|
+
words: { settings: t('ta.settings'), discover: t('ta.discover'), me: t('ta.me') },
|
|
309
|
+
}),
|
|
310
|
+
places: [
|
|
311
|
+
...lists.map(entry => ({ id: `list:${entry.id}`, title: entry.label })),
|
|
312
|
+
...navigation.pages.map(page => ({
|
|
313
|
+
id: `page:${page.id}`,
|
|
314
|
+
title: web_extension_protocol_1.WebLabelUtil.text(page.title),
|
|
315
|
+
})),
|
|
316
|
+
...navigation.onOpen.map(page => ({ id: `page:${page.id}`, title: page.title })),
|
|
317
|
+
{ id: 'discover', title: t('ta.discover') },
|
|
318
|
+
...(phone ? [{ id: 'me', title: t('ta.me') }] : []),
|
|
319
|
+
{ id: 'settings', title: t('ta.settings') },
|
|
320
|
+
],
|
|
321
|
+
goPlace: place => {
|
|
322
|
+
const [kind, id = ''] = place.id.split(/:(.*)/s);
|
|
323
|
+
if (kind === 'settings') {
|
|
324
|
+
return openSettings();
|
|
325
|
+
}
|
|
326
|
+
if (kind === 'page') {
|
|
327
|
+
return host.showView(id);
|
|
328
|
+
}
|
|
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
|
+
}
|
|
334
|
+
return pickTab(kind === 'list' ? id : kind === 'me' ? nav_places_1.ME_TAB : nav_places_1.DISCOVER);
|
|
335
|
+
}
|
|
336
|
+
setSettings(undefined);
|
|
337
|
+
setNavOpen(false);
|
|
338
|
+
if (kind === 'discover') {
|
|
339
|
+
setTabPage('discover');
|
|
564
340
|
return;
|
|
565
341
|
}
|
|
566
|
-
setTabPage(
|
|
567
|
-
|
|
342
|
+
setTabPage(undefined);
|
|
343
|
+
setSideId(id);
|
|
344
|
+
if (view) {
|
|
568
345
|
host.showPage('');
|
|
569
346
|
}
|
|
570
|
-
|
|
571
|
-
|
|
347
|
+
sidebar.reveal();
|
|
348
|
+
},
|
|
349
|
+
showChat: async (target) => {
|
|
350
|
+
const switcher = host.sessionSwitcher();
|
|
351
|
+
if (!switcher) {
|
|
352
|
+
throw new Error('The page cannot show a conversation yet.');
|
|
572
353
|
}
|
|
573
|
-
|
|
354
|
+
const shown = switcher('sessionId' in target ? target.sessionId : { sessionFile: target.sessionFile });
|
|
355
|
+
host.showPage('');
|
|
356
|
+
await shown;
|
|
357
|
+
},
|
|
358
|
+
chats: [
|
|
359
|
+
...workbench.sessions
|
|
360
|
+
.filter(session => !session.group)
|
|
361
|
+
.map(session => ({ name: chatName(session), sessionId: session.sessionId, sessionFile: session.sessionFile })),
|
|
362
|
+
...workbench.saved.filter(saved => !saved.group).map(saved => ({ name: chatName(saved), sessionFile: saved.sessionFile })),
|
|
363
|
+
],
|
|
364
|
+
openSettings,
|
|
365
|
+
};
|
|
366
|
+
// The launcher and the board are over the first tab only, as WeChat's over its chats.
|
|
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" },
|
|
574
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" },
|
|
575
|
-
React.createElement(app_nav_1.PageView, { view: tabView }))) : (React.createElement("div", { className: "ta-sidebar" }, sideList)), screen: React.createElement(React.Fragment, null,
|
|
576
|
-
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 }) })) }),
|
|
577
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 },
|
|
578
373
|
navOpen && React.createElement("button", { type: "button", className: "ta-scrim", "aria-label": t('ta.close'), onClick: () => setNavOpen(false) }),
|
|
579
374
|
React.createElement("div", { className: "ta-nav" },
|
|
580
|
-
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: () => {
|
|
581
376
|
setSettings(undefined);
|
|
582
377
|
setNavOpen(false);
|
|
583
378
|
setTabPage('discover');
|
|
584
|
-
}, 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 }),
|
|
585
380
|
sideShown && (React.createElement("div", { className: "ta-sidebar", style: (0, split_pane_1.paneStyle)(sidebar) },
|
|
586
381
|
sideList,
|
|
587
382
|
React.createElement(split_pane_1.Sash, { pane: sidebar, side: "start", label: t('ta.layout.sidebar') })))),
|
|
588
383
|
React.createElement("main", { className: "ta-main" },
|
|
589
384
|
React.createElement(connection_bar_1.ConnectionBar, null),
|
|
590
|
-
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) }) })) }),
|
|
591
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) }))),
|
|
592
387
|
showEditors && (React.createElement("div", { className: "ta-editors-pane", style: (0, split_pane_1.paneStyle)(editor) },
|
|
593
388
|
React.createElement(split_pane_1.Sash, { pane: editor, side: "end", label: t('ta.layout.editor') }),
|
|
594
389
|
editorArea)),
|
|
595
390
|
surface && React.createElement(surface_flyout_1.SurfaceFlyout, { surface: surface, onClose: () => setSurface(undefined) }),
|
|
596
391
|
overlays));
|
|
597
|
-
return (React.createElement(
|
|
598
|
-
React.createElement(
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
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) });
|
|
607
416
|
}
|
|
608
417
|
/** The app, with the look the user picked for the double (every ta below draws it) and the picker of that look. */
|
|
609
418
|
function AppView() {
|
|
419
|
+
// A conversation shared by a link, opened in a browser: drawn as Ta does, with nothing signed in behind it.
|
|
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()));
|
|
610
423
|
// The launch picture of the app of a phone goes once the page is whole.
|
|
611
424
|
React.useEffect(() => launch_screen_1.LaunchScreenUtil.start(), []);
|
|
425
|
+
if (shared) {
|
|
426
|
+
return React.createElement(shared_page_1.SharedPage, { link: shared });
|
|
427
|
+
}
|
|
428
|
+
if (device) {
|
|
429
|
+
return React.createElement(device_sign_in_page_1.DeviceSignInPage, { code: device.code, outcome: device.outcome, from: device.from });
|
|
430
|
+
}
|
|
612
431
|
return (React.createElement(dino_look_1.DinoLookProvider, null,
|
|
613
432
|
React.createElement(AppShell, null),
|
|
614
433
|
React.createElement(dino_look_1.DinoLookHost, null)));
|