@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
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.ChatItem = void 0;
|
|
37
|
+
exports.ChatAvatar = ChatAvatar;
|
|
38
|
+
exports.ChatDot = ChatDot;
|
|
39
|
+
exports.ChatFolderItem = ChatFolderItem;
|
|
40
|
+
const lucide_react_1 = require("lucide-react");
|
|
41
|
+
const React = __importStar(require("react"));
|
|
42
|
+
const device_1 = require("../device/device");
|
|
43
|
+
const extension_view_1 = require("../extension/extension-view");
|
|
44
|
+
const use_t_1 = require("../i18n/use-t");
|
|
45
|
+
const screen_protocol_1 = require("../screen/screen-protocol");
|
|
46
|
+
const message_1 = require("../util/message");
|
|
47
|
+
const busy_1 = require("./busy");
|
|
48
|
+
const chat_icon_1 = require("./chat-icon");
|
|
49
|
+
const chat_list_util_1 = require("./chat-list-util");
|
|
50
|
+
const context_menu_1 = require("./context-menu");
|
|
51
|
+
const host_tag_1 = require("./host-tag");
|
|
52
|
+
const icon_1 = require("./icon");
|
|
53
|
+
const people_1 = require("./people");
|
|
54
|
+
const secret_text_1 = require("./secret-text");
|
|
55
|
+
const swipe_row_1 = require("./swipe-row");
|
|
56
|
+
const ta_avatar_1 = require("./ta-avatar");
|
|
57
|
+
const unseen_drop_1 = require("./unseen-drop");
|
|
58
|
+
/**
|
|
59
|
+
* The avatar of a row: the face of the double for its own conversation, the face an extension draws for its
|
|
60
|
+
* agents (registerAvatar), else the letter of its directory. A face works while the conversation answers.
|
|
61
|
+
*/
|
|
62
|
+
function ChatAvatar({ session, source, who, size, mood }) {
|
|
63
|
+
var _a;
|
|
64
|
+
const avatars = React.useContext(extension_view_1.SessionAvatars);
|
|
65
|
+
// A conversation of an extension that is no one to talk to (a brief, a question): the icon it gives.
|
|
66
|
+
const icon = (0, chat_icon_1.useChatIcon)(who ? undefined : session);
|
|
67
|
+
const letter = (React.createElement("span", { className: `ta-chat-avatar ta-tone-${source.tone}`, "aria-hidden": "true" }, source.initial));
|
|
68
|
+
if ((who === null || who === void 0 ? void 0 : who.kind) === 'double') {
|
|
69
|
+
return React.createElement(ta_avatar_1.DinoFace, { className: "ta-chat-face", mood: mood, size: size });
|
|
70
|
+
}
|
|
71
|
+
if (icon) {
|
|
72
|
+
return React.createElement(chat_icon_1.ChatIconTile, { found: icon, size: size });
|
|
73
|
+
}
|
|
74
|
+
const Avatar = who && chat_list_util_1.ChatListUtil.isOpen(session) && session.group ? avatars[session.group] : undefined;
|
|
75
|
+
if (!Avatar || !chat_list_util_1.ChatListUtil.isOpen(session)) {
|
|
76
|
+
return letter;
|
|
77
|
+
}
|
|
78
|
+
return (React.createElement("span", { className: "ta-chat-face", style: { width: size, height: size }, "aria-hidden": "true" },
|
|
79
|
+
React.createElement(extension_view_1.ExtensionBoundary, { name: (_a = session.group) !== null && _a !== void 0 ? _a : '', resetKey: Avatar, fallback: letter },
|
|
80
|
+
React.createElement(Avatar, { session: session, mood: mood, size: size }))));
|
|
81
|
+
}
|
|
82
|
+
/** What goes on in it, on the line of a row of one line: waiting for the user, answering now, or how the double's task ended. */
|
|
83
|
+
function ChatState({ streaming, waiting, task }) {
|
|
84
|
+
const t = (0, use_t_1.useT)();
|
|
85
|
+
if (waiting) {
|
|
86
|
+
return (React.createElement("span", { className: "ta-chat-state ta-waiting" },
|
|
87
|
+
React.createElement("span", { className: "ta-status ta-status-waiting" }),
|
|
88
|
+
t('ta.task.waiting')));
|
|
89
|
+
}
|
|
90
|
+
if (streaming) {
|
|
91
|
+
return (React.createElement("span", { className: "ta-chat-state" },
|
|
92
|
+
React.createElement("span", { className: "ta-spinner" })));
|
|
93
|
+
}
|
|
94
|
+
if (task === 'failed' || task === 'stopped') {
|
|
95
|
+
return (React.createElement("span", { className: `ta-chat-state ta-${task}` },
|
|
96
|
+
React.createElement("span", { className: `ta-status ${task === 'failed' ? 'ta-status-error' : 'ta-status-cancelled'}` }),
|
|
97
|
+
t(task === 'failed' ? 'ta.task.failed' : 'ta.task.stopped')));
|
|
98
|
+
}
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Always there, so that it grows in and goes, the avatar never drawn again; told only while it is on. A conversation
|
|
103
|
+
* that waits for the user to decide has a blue ? instead, over an amber dot: seeing it does not end it, answering does.
|
|
104
|
+
* The amber dot drags away as a drop (UnseenDrop), as a messenger's unread: let go past its neck, it is seen (`onSee`).
|
|
105
|
+
*/
|
|
106
|
+
function ChatDot({ unseen, asks, onSee }) {
|
|
107
|
+
const t = (0, use_t_1.useT)();
|
|
108
|
+
if (asks) {
|
|
109
|
+
return (React.createElement("span", { className: "ta-chat-dot ta-on ta-asks", role: "img", "aria-label": t('ta.chat.asking') }, "?"));
|
|
110
|
+
}
|
|
111
|
+
return (React.createElement(unseen_drop_1.UnseenDrop, { className: unseen ? 'ta-chat-dot ta-on' : 'ta-chat-dot', label: unseen ? t('ta.chat.unseen') : undefined, onDismiss: unseen ? onSee : undefined }));
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The row of a folder (WebChatIcon.folder), as a messenger folds its subscriptions: its icon, its title, and the latest
|
|
115
|
+
* of it with what it said; a dot while one of them said something unseen, a spinner while one works. It opens the folder,
|
|
116
|
+
* and is pinned as a conversation is: from its menu, or a swipe to the left on a phone.
|
|
117
|
+
*/
|
|
118
|
+
function ChatFolderItem({ folder, time, selected, unseen, pinned, onOpen, onPin, actions, }) {
|
|
119
|
+
const t = (0, use_t_1.useT)();
|
|
120
|
+
const onSee = () => {
|
|
121
|
+
for (const session of unseen) {
|
|
122
|
+
actions.markUnseen(session, false);
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
const [latest] = folder.sessions;
|
|
126
|
+
const latestTitle = chat_list_util_1.ChatListUtil.title(latest, t);
|
|
127
|
+
const shown = chat_list_util_1.ChatListUtil.preview(latest, latestTitle);
|
|
128
|
+
const said = shown && secret_text_1.SecretTextUtil.plain(t, shown);
|
|
129
|
+
const working = folder.sessions.some(session => chat_list_util_1.ChatListUtil.isOpen(session) && session.isStreaming);
|
|
130
|
+
const pin = { label: t(pinned ? 'ta.chat.unpin' : 'ta.chat.pin'), run: () => onPin(!pinned) };
|
|
131
|
+
const [menu, openMenu] = (0, context_menu_1.useContextMenu)();
|
|
132
|
+
return (React.createElement(swipe_row_1.SwipeRow, { as: "li", className: `ta-chat-row ta-chat-folder${selected ? ' ta-selected' : ''}`, "data-unseen": unseen.length > 0 ? '' : undefined, actions: [{ key: 'pin', ...pin }], overlay: menu, onContextMenu: event => openMenu(event, context_menu_1.ContextMenuUtil.sections([{ label: t('ta.chat.open'), run: onOpen }], [pin])) },
|
|
133
|
+
React.createElement("button", { type: "button", className: "ta-chat-item", title: `${folder.title} (${folder.sessions.length})`, "aria-current": selected ? 'true' : undefined, onClick: onOpen },
|
|
134
|
+
React.createElement("span", { className: "ta-chat-avatar-box" },
|
|
135
|
+
React.createElement(chat_icon_1.ChatIconTile, { found: folder.icon, size: 38 }),
|
|
136
|
+
React.createElement(ChatDot, { unseen: unseen.length > 0, asks: false, onSee: onSee })),
|
|
137
|
+
React.createElement("span", { className: "ta-chat-text" },
|
|
138
|
+
React.createElement("span", { className: "ta-chat-line" },
|
|
139
|
+
React.createElement("span", { className: "ta-chat-title" }, folder.title),
|
|
140
|
+
React.createElement("span", { className: "ta-chat-time" }, time)),
|
|
141
|
+
React.createElement("span", { className: "ta-chat-line" },
|
|
142
|
+
React.createElement("span", { className: `ta-chat-sub${unseen.length > 0 ? ' ta-unseen' : ''}` }, said ? t('ta.chat.folderLatest', { title: latestTitle, said }) : latestTitle),
|
|
143
|
+
working && React.createElement("span", { className: "ta-chat-state ta-spinner" }))))));
|
|
144
|
+
}
|
|
145
|
+
exports.ChatItem = React.memo(function ChatItem({ session, source, selected, time, compact, actions, restorable, task, doubleName, handable, pinned, unseen, asking, draft, }) {
|
|
146
|
+
var _a;
|
|
147
|
+
const t = (0, use_t_1.useT)();
|
|
148
|
+
const onSelect = () => actions.open(session);
|
|
149
|
+
const [removing, run] = (0, busy_1.useBusy)();
|
|
150
|
+
const onRemove = () => void run(() => actions.remove(session));
|
|
151
|
+
const onRestore = restorable ? () => actions.restore(session) : undefined;
|
|
152
|
+
const onHand = handable ? () => actions.hand(session) : undefined;
|
|
153
|
+
const onPin = onRestore ? undefined : () => actions.pin(session, !pinned);
|
|
154
|
+
// Dragged away, its dot: seen. The one shown is seen as it is.
|
|
155
|
+
const onSee = selected ? undefined : () => actions.markUnseen(session, false);
|
|
156
|
+
const avatars = React.useContext(extension_view_1.SessionAvatars);
|
|
157
|
+
// The double's conversation is named after it; an agent's has its name (the extension named it so).
|
|
158
|
+
const who = doubleName !== undefined ? { kind: 'double', name: doubleName } : session.group && avatars[session.group] ? { kind: 'agent' } : undefined;
|
|
159
|
+
const title = (who === null || who === void 0 ? void 0 : who.kind) === 'double' ? who.name : chat_list_util_1.ChatListUtil.title(session, t);
|
|
160
|
+
// Held, a row offers what its hover does (its close button shows only on the row shown, on a phone).
|
|
161
|
+
const [menu, openMenu] = (0, context_menu_1.useContextMenu)();
|
|
162
|
+
const onContextMenu = (event) => openMenu(event, context_menu_1.ContextMenuUtil.sections([{ label: t('ta.chat.open'), run: onSelect }], [
|
|
163
|
+
...(asking ? [{ label: t('ta.chat.letGo'), run: () => actions.letGo(session) }] : []),
|
|
164
|
+
...(onPin ? [{ label: t(pinned ? 'ta.chat.unpin' : 'ta.chat.pin'), run: onPin }] : []),
|
|
165
|
+
// As a messenger's, read or not by hand; not the one shown, which is seen as it is.
|
|
166
|
+
...(onRestore || selected || asking
|
|
167
|
+
? []
|
|
168
|
+
: [{ label: t(unseen ? 'ta.chat.markSeen' : 'ta.chat.markUnseen'), run: () => actions.markUnseen(session, !unseen) }]),
|
|
169
|
+
...(onHand ? [{ label: t('ta.chat.handToDouble'), run: onHand }] : []),
|
|
170
|
+
],
|
|
171
|
+
// What extensions add (Share…) before taking it out, which stays last, in red as its swipe.
|
|
172
|
+
actions.extensionMenu(session, title), [onRestore ? { label: t('ta.chat.restore'), run: onRestore } : { label: t('ta.chat.remove'), run: () => onRemove === null || onRemove === void 0 ? void 0 : onRemove(), danger: true }]));
|
|
173
|
+
const tag = task && (React.createElement("span", { className: "ta-double-tag", title: t('ta.chat.doubleTagTitle') }, t('ta.chat.doubleTag')));
|
|
174
|
+
// On a phone, as in its messaging apps, a swipe to the left shows what its hover does behind the row.
|
|
175
|
+
const handheld = (0, device_1.useDevice)(device => device.handheld);
|
|
176
|
+
// As WeChat's: Pin, then Remove at the edge.
|
|
177
|
+
const swipe = onRestore
|
|
178
|
+
? [{ key: 'restore', label: t('ta.chat.restoreShort'), run: onRestore }]
|
|
179
|
+
: [
|
|
180
|
+
{ key: 'pin', label: t(pinned ? 'ta.chat.unpin' : 'ta.chat.pin'), run: () => onPin === null || onPin === void 0 ? void 0 : onPin() },
|
|
181
|
+
{ key: 'remove', label: t('ta.chat.removeShort'), danger: true, run: () => onRemove === null || onRemove === void 0 ? void 0 : onRemove() },
|
|
182
|
+
];
|
|
183
|
+
// A dialog of it waits for the user: it needs them, it does not answer meanwhile.
|
|
184
|
+
const waiting = chat_list_util_1.ChatListUtil.isOpen(session) && !!session.waiting;
|
|
185
|
+
const streaming = chat_list_util_1.ChatListUtil.isOpen(session) && session.isStreaming && !waiting;
|
|
186
|
+
const asks = waiting || (!!asking && !streaming);
|
|
187
|
+
const mood = asks ? 'attention' : streaming ? 'working' : 'idle';
|
|
188
|
+
const state = React.createElement(ChatState, { streaming: streaming, waiting: waiting, task: task });
|
|
189
|
+
// Others in the same Ta: their faces while they look at it, and whose message it answers.
|
|
190
|
+
const people = chat_list_util_1.ChatListUtil.isOpen(session) ? session.people : undefined;
|
|
191
|
+
const viewers = React.createElement(people_1.PeopleFaces, { people: people_1.PresenceUtil.viewing(people), size: 14, max: 3 });
|
|
192
|
+
const askers = streaming ? people_1.PresenceUtil.asked(people) : [];
|
|
193
|
+
const replying = askers.length > 0 && (React.createElement("span", { className: "ta-chat-flag ta-replying" }, t('ta.chat.replyingFor', { names: people_1.PresenceUtil.names(askers, t('ta.presence.separator'), count => t('ta.presence.more', { count })) })));
|
|
194
|
+
// As in a messaging app, the last thing said; its directory before the first, and on hover in place of its time.
|
|
195
|
+
const shown = chat_list_util_1.ChatListUtil.preview(session, title);
|
|
196
|
+
const said = shown && secret_text_1.SecretTextUtil.plain(t, shown);
|
|
197
|
+
// Its directory too for one of a package's group, as a run of a scheduled task, not the package's name.
|
|
198
|
+
const place = who || session.group ? message_1.MessageUtil.basename(session.cwd) : source.label;
|
|
199
|
+
const ended = task === 'failed' || task === 'stopped' ? task : undefined;
|
|
200
|
+
return (React.createElement(swipe_row_1.SwipeRow, { as: "li", className: `ta-chat-row${selected ? ' ta-selected' : ''}${who ? ` ta-chat-${who.kind}` : ''}`, "data-unseen": unseen && !asks ? '' : undefined, "data-asks": asks ? '' : undefined, actions: swipe, overlay: menu, onContextMenu: onContextMenu },
|
|
201
|
+
React.createElement("button", { type: "button", className: `ta-chat-item${compact ? ' ta-compact' : ''}${removing ? ' ta-pending' : ''}`, title: `${title}\n${source.title}`, "aria-current": selected ? 'true' : undefined, onClick: onSelect, ...screen_protocol_1.ScreenUtil.item(chat_list_util_1.ChatListUtil.file(session)) }, compact ? (React.createElement("span", { className: "ta-chat-text" },
|
|
202
|
+
React.createElement("span", { className: "ta-chat-line" },
|
|
203
|
+
who && React.createElement(ChatAvatar, { session: session, source: source, who: who, size: 20, mood: mood }),
|
|
204
|
+
tag,
|
|
205
|
+
React.createElement("span", { className: "ta-chat-title" }, title),
|
|
206
|
+
viewers,
|
|
207
|
+
state,
|
|
208
|
+
React.createElement(ChatDot, { unseen: !!unseen, asks: asks, onSee: onSee }),
|
|
209
|
+
React.createElement("span", { className: "ta-chat-time" }, removing && handheld ? React.createElement("span", { className: "ta-spinner ta-later" }) : time)))) : (React.createElement(React.Fragment, null,
|
|
210
|
+
React.createElement("span", { className: "ta-chat-avatar-box" },
|
|
211
|
+
React.createElement(ChatAvatar, { session: session, source: source, who: who, size: 38, mood: mood }),
|
|
212
|
+
React.createElement(ChatDot, { unseen: !!unseen, asks: asks, onSee: onSee })),
|
|
213
|
+
React.createElement("span", { className: "ta-chat-text" },
|
|
214
|
+
React.createElement("span", { className: "ta-chat-line" },
|
|
215
|
+
tag,
|
|
216
|
+
React.createElement("span", { className: "ta-chat-title" }, title),
|
|
217
|
+
React.createElement("span", { className: "ta-chat-time" }, removing && handheld ? React.createElement("span", { className: "ta-spinner ta-later" }) : time),
|
|
218
|
+
React.createElement("span", { className: "ta-chat-place" },
|
|
219
|
+
React.createElement(icon_1.Icon, { icon: lucide_react_1.Folder, size: 12 }),
|
|
220
|
+
React.createElement("span", null, place))),
|
|
221
|
+
React.createElement("span", { className: "ta-chat-line" },
|
|
222
|
+
React.createElement("span", { className: `ta-chat-sub${unseen ? ' ta-unseen' : ''}` },
|
|
223
|
+
React.createElement(host_tag_1.HostTag, { host: source.host }),
|
|
224
|
+
waiting && React.createElement("span", { className: "ta-chat-flag ta-waiting" },
|
|
225
|
+
"[",
|
|
226
|
+
t('ta.task.waiting'),
|
|
227
|
+
"]"),
|
|
228
|
+
asks && !waiting && React.createElement("span", { className: "ta-chat-flag ta-waiting" },
|
|
229
|
+
"[",
|
|
230
|
+
t('ta.chat.asking'),
|
|
231
|
+
"]"),
|
|
232
|
+
replying,
|
|
233
|
+
ended && !streaming && !asks && draft === undefined && (React.createElement("span", { className: `ta-chat-flag ta-${ended}` },
|
|
234
|
+
"[",
|
|
235
|
+
t(ended === 'failed' ? 'ta.task.failed' : 'ta.task.stopped'),
|
|
236
|
+
"]")),
|
|
237
|
+
asks || draft === undefined ? null : React.createElement("span", { className: "ta-chat-flag ta-draft" },
|
|
238
|
+
"[",
|
|
239
|
+
t('ta.chat.draft'),
|
|
240
|
+
"]"), (_a = (asks && !waiting ? asking : draft !== undefined ? draft : said)) !== null && _a !== void 0 ? _a : (React.createElement("span", { className: "ta-chat-dir" },
|
|
241
|
+
React.createElement(icon_1.Icon, { icon: lucide_react_1.Folder, size: 12 }),
|
|
242
|
+
place))),
|
|
243
|
+
viewers,
|
|
244
|
+
streaming && React.createElement("span", { className: "ta-chat-state ta-spinner" })))))),
|
|
245
|
+
handheld ? null : onRestore ? (React.createElement(icon_1.IconButton, { className: "ta-chat-delete", icon: lucide_react_1.Undo2, label: t('ta.chat.restore'), onClick: onRestore })) : (React.createElement(icon_1.IconButton, { className: "ta-chat-delete", icon: lucide_react_1.Trash2, label: t('ta.sidebar.closeTitle'), busy: removing, onClick: onRemove }))));
|
|
246
|
+
}, chat_list_util_1.ChatListUtil.sameRow);
|
|
247
|
+
//# sourceMappingURL=chat-list-row.js.map
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { type TaSavedSessionInfo, type TaSessionInfo } from '@celljs/ta-protocol';
|
|
2
|
+
import type { MessageId } from '../i18n/messages';
|
|
3
|
+
import type { Translate } from '../i18n/use-t';
|
|
4
|
+
import { type StateSpec } from '../state/state-protocol';
|
|
5
|
+
import { type LetGoAsks } from './chat-asks';
|
|
6
|
+
import type { ChatHomeRow, ChatTaskRow } from './chat-home-util';
|
|
7
|
+
import type { ChatFolderIcon } from './chat-icon';
|
|
8
|
+
/** Where a conversation belongs: the directory of the user's own, or the package that opened it. */
|
|
9
|
+
export interface ChatSource {
|
|
10
|
+
/** `dir:<cwd>` or `pkg:<package>`. */
|
|
11
|
+
key: string;
|
|
12
|
+
label: string;
|
|
13
|
+
/** The whole directory or package name. */
|
|
14
|
+
title: string;
|
|
15
|
+
/** The directory a new chat of this source opens in; none for a package. */
|
|
16
|
+
cwd?: string;
|
|
17
|
+
/** The host of a directory of another machine (TaLocation). */
|
|
18
|
+
host?: string;
|
|
19
|
+
count: number;
|
|
20
|
+
/** The letter of its avatar. */
|
|
21
|
+
initial: string;
|
|
22
|
+
/** One of the colors of the avatars: by its name, else the next one no other source of the list has. */
|
|
23
|
+
tone: number;
|
|
24
|
+
}
|
|
25
|
+
/** A conversation of the list: an open session, or a saved one, which opens again from its file. */
|
|
26
|
+
export type ChatEntry = TaSessionInfo | TaSavedSessionInfo;
|
|
27
|
+
export interface ChatSection<T extends {
|
|
28
|
+
updatedAt: number;
|
|
29
|
+
} = ChatEntry> {
|
|
30
|
+
id: MessageId;
|
|
31
|
+
sessions: T[];
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* One row of the list for the conversations of a folder (WebChatIcon.folder), the runs of scheduled tasks: it opens
|
|
35
|
+
* them, the latest first, and says the latest.
|
|
36
|
+
*/
|
|
37
|
+
export interface ChatFolder {
|
|
38
|
+
/** `folder:<title>`. */
|
|
39
|
+
key: string;
|
|
40
|
+
title: string;
|
|
41
|
+
icon: ChatFolderIcon;
|
|
42
|
+
/** The latest first. */
|
|
43
|
+
sessions: ChatEntry[];
|
|
44
|
+
/** That of the latest. */
|
|
45
|
+
updatedAt: number;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* A row of the list by day: a conversation, a folder of them, a task of the double that is no conversation, or a row
|
|
49
|
+
* an extension adds (a daily brief).
|
|
50
|
+
*/
|
|
51
|
+
export type ChatRow = ChatEntry | ChatFolder | ChatTaskRow | ChatHomeRow;
|
|
52
|
+
/** The conversations of one directory or package. */
|
|
53
|
+
export interface ChatGroup {
|
|
54
|
+
source: ChatSource;
|
|
55
|
+
sessions: ChatEntry[];
|
|
56
|
+
}
|
|
57
|
+
/** The list by directory or package, else by day; in any browser. */
|
|
58
|
+
/** By day unless the user groups them: directories nest a list, and the remote ones are marked anyway (HostTag). */
|
|
59
|
+
export declare const BY_DIRECTORY: StateSpec<boolean>;
|
|
60
|
+
/** The groups folded: the keys of their sources (ChatListUtil.sourceKey). */
|
|
61
|
+
export declare const FOLDED: StateSpec<string[]>;
|
|
62
|
+
/** The conversations and rows pinned to the top of the list, in any browser: their files and keys (ChatListUtil.pinKey). */
|
|
63
|
+
export declare const PINNED: StateSpec<string[]>;
|
|
64
|
+
/**
|
|
65
|
+
* The keys of the rows pinned once as they first came (folders, rows of the home; ChatListUtil.offerPins): one the
|
|
66
|
+
* user unpinned stays so.
|
|
67
|
+
*/
|
|
68
|
+
export declare const PIN_OFFERED: StateSpec<string[]>;
|
|
69
|
+
/**
|
|
70
|
+
* The rows drawn at first, and more each time the end of those comes near: a list of thousands of
|
|
71
|
+
* conversations opens and scrolls as one of a few dozen.
|
|
72
|
+
*/
|
|
73
|
+
export declare const CHAT_PAGE = 60;
|
|
74
|
+
/** The rows a list draws, in its order (ChatListUtil.budget). */
|
|
75
|
+
export interface RowBudget<T = ChatEntry> {
|
|
76
|
+
/** What of `entries`, next in the list, is drawn: as many as are left, and the conversation shown wherever it is. */
|
|
77
|
+
take<E extends T>(entries: E[]): E[];
|
|
78
|
+
/** Some were left out: the list draws more as its end comes near. */
|
|
79
|
+
readonly more: boolean;
|
|
80
|
+
}
|
|
81
|
+
export declare namespace ChatListUtil {
|
|
82
|
+
function isOpen(entry: ChatEntry): entry is TaSessionInfo;
|
|
83
|
+
function isFolder(row: ChatRow): row is ChatFolder;
|
|
84
|
+
function isTask(row: ChatRow): row is ChatTaskRow;
|
|
85
|
+
function isHome(row: ChatRow): row is ChatHomeRow;
|
|
86
|
+
/**
|
|
87
|
+
* Those of a folder (WebChatIcon.folder), each folder one row where its latest is, and the rest; the folders the
|
|
88
|
+
* latest first.
|
|
89
|
+
*/
|
|
90
|
+
function folders(sessions: ChatEntry[], folderOf?: (session: ChatEntry) => ChatFolderIcon | undefined): {
|
|
91
|
+
folders: ChatFolder[];
|
|
92
|
+
rest: ChatEntry[];
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Those of `archived` a folder pinned holds, and the rest. A row pinned never goes away of itself: a folder pinned
|
|
96
|
+
* lists its archived conversations too, and stays once they all are; one not pinned goes with them, as before.
|
|
97
|
+
*/
|
|
98
|
+
function heldByPinned(archived: ChatEntry[], folderOf: ((session: ChatEntry) => ChatFolderIcon | undefined) | undefined, pinned: readonly string[]): {
|
|
99
|
+
held: ChatEntry[];
|
|
100
|
+
rest: ChatEntry[];
|
|
101
|
+
};
|
|
102
|
+
/** Whether one pinned is not listed, in the archive: a conversation's file, or a folder none of whose conversations is listed. */
|
|
103
|
+
function pinnedAway(pinned: readonly string[], listed: ChatEntry[], folderOf: ((session: ChatEntry) => ChatFolderIcon | undefined) | undefined, removed: readonly string[]): boolean;
|
|
104
|
+
/** The rows of the archive: each folder one row where its latest is, as in the list, with the tasks archived. */
|
|
105
|
+
function archiveRows(archived: ChatEntry[], folderOf: ((session: ChatEntry) => ChatFolderIcon | undefined) | undefined, tasks?: ChatTaskRow[]): ChatRow[];
|
|
106
|
+
/** The conversations and the folders (and the tasks that are no conversation) as one list, the latest first. */
|
|
107
|
+
function withFolders(rest: ChatEntry[], folders: (ChatFolder | ChatTaskRow | ChatHomeRow)[]): ChatRow[];
|
|
108
|
+
/** Whether it is the double's own conversation: its session, or before that is open its file. */
|
|
109
|
+
function isDouble(entry: ChatEntry, double: Pick<ChatListDouble, 'session' | 'sessionFile'>): boolean;
|
|
110
|
+
/** The id of an open session, the file of a saved one. */
|
|
111
|
+
function key(entry: ChatEntry): string;
|
|
112
|
+
/** What stays the same as it closes and opens again: its file, else (before it has one) the id of its session. */
|
|
113
|
+
function file(entry: ChatEntry): string;
|
|
114
|
+
/** The files the list keeps however old (ChatListUtil.entries): those pinned, and the saved ones that still ask the user. */
|
|
115
|
+
function keptFiles(saved: readonly TaSavedSessionInfo[], pinned: readonly string[], letGo: LetGoAsks): readonly string[];
|
|
116
|
+
/** What PINNED holds of a row: the file of a conversation, the key of a folder (`folder:<title>`) or of a row of the home (`home:…`). */
|
|
117
|
+
function pinKey(row: ChatRow): string;
|
|
118
|
+
/** Whether a key of PINNED is a row's (pinKey), a folder's or the home's, not a conversation's file. */
|
|
119
|
+
function isRowKey(key: string): boolean;
|
|
120
|
+
/**
|
|
121
|
+
* The rows that came (folders, rows of the home) pinned, once each: those not offered before go after the user's
|
|
122
|
+
* own pins; one the user unpinned is not pinned again. Undefined when none is new.
|
|
123
|
+
*/
|
|
124
|
+
function offerPins(pinned: readonly string[], offered: readonly string[], keys: readonly string[]): {
|
|
125
|
+
pinned: string[];
|
|
126
|
+
offered: string[];
|
|
127
|
+
} | undefined;
|
|
128
|
+
/** Those pinned, and the rest, each in the order it had: conversations, or folders. */
|
|
129
|
+
function pinnedApart<T extends ChatRow>(rows: T[], pinned: readonly string[]): {
|
|
130
|
+
pinned: T[];
|
|
131
|
+
rest: T[];
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* The open sessions and the saved ones, those archived and those taken out apart. A saved conversation of a
|
|
135
|
+
* package's group is not listed: its package opens it again, with its role; unless it folds into a folder of the
|
|
136
|
+
* list (`folderOf`, WebChatIcon.folder), which opens it as the package does. An open one is always listed,
|
|
137
|
+
* however old, and so is one pinned; a saved one not updated `since` is archived (a ta serve of before lists
|
|
138
|
+
* them with the others), or not updated since what `sooner` says of it (ChatIconUtil.archiveSince).
|
|
139
|
+
*/
|
|
140
|
+
function entries(sessions: TaSessionInfo[], saved: TaSavedSessionInfo[], removed: string[], archived?: TaSavedSessionInfo[], since?: number, pinned?: readonly string[], sooner?: (session: TaSavedSessionInfo) => number | undefined, folderOf?: (session: TaSavedSessionInfo) => unknown): {
|
|
141
|
+
listed: ChatEntry[];
|
|
142
|
+
archived: ChatEntry[];
|
|
143
|
+
removed: ChatEntry[];
|
|
144
|
+
};
|
|
145
|
+
/** Those updated since `before`, and the older, which the list folds; all are recent without it. */
|
|
146
|
+
function split<T extends {
|
|
147
|
+
updatedAt: number;
|
|
148
|
+
}>(sessions: T[], before: number | undefined): [T[], T[]];
|
|
149
|
+
/**
|
|
150
|
+
* Draws `count` rows of a list, and those it `keeps` however far down they are: the conversation shown, and
|
|
151
|
+
* those unseen, which the tab of the chats scrolls to (PhoneUtil.locate).
|
|
152
|
+
*/
|
|
153
|
+
function budget<T = ChatEntry>(count: number, keeps?: (entry: T) => boolean): RowBudget<T>;
|
|
154
|
+
function sourceKey(session: ChatEntry): string;
|
|
155
|
+
/** `@celljs/ta-channels` → `ta-channels`. */
|
|
156
|
+
function label(group: string): string;
|
|
157
|
+
function tone(key: string): number;
|
|
158
|
+
/** The directories and packages of the conversations, the one with the latest first. */
|
|
159
|
+
function sources(sessions: ChatEntry[]): ChatSource[];
|
|
160
|
+
/** The conversations whose title or place holds the query, the latest first. */
|
|
161
|
+
function filter(sessions: ChatEntry[], query: string, t: Translate): ChatEntry[];
|
|
162
|
+
/** The conversations by their directory or package, in the order of the sources; a source without one has no group. */
|
|
163
|
+
function groups(sessions: ChatEntry[], sources: ChatSource[]): ChatGroup[];
|
|
164
|
+
/** Today, yesterday, the week before, earlier: by the local day. */
|
|
165
|
+
function sections<T extends {
|
|
166
|
+
updatedAt: number;
|
|
167
|
+
}>(sessions: T[], now: number): ChatSection<T>[];
|
|
168
|
+
/** `19:59` today, `11/8` before. */
|
|
169
|
+
function clock(time: number, now: number): string;
|
|
170
|
+
function title(session: ChatEntry, t: Translate): string;
|
|
171
|
+
/**
|
|
172
|
+
* Whether a row shows the same: what of its conversation and its place it shows, and the rest as is. The list
|
|
173
|
+
* reads the conversations again every few seconds into new objects: one that answers draws its row again, not every row.
|
|
174
|
+
*/
|
|
175
|
+
function sameRow<T extends {
|
|
176
|
+
session: ChatEntry;
|
|
177
|
+
source: ChatSource;
|
|
178
|
+
}>(before: T, after: T): boolean;
|
|
179
|
+
/** What a row says under its title: the last thing said, unless it is the title again. */
|
|
180
|
+
function preview(session: ChatEntry, title: string): string | undefined;
|
|
181
|
+
/** The first letter of a name, for its avatar. */
|
|
182
|
+
function initial(name: string): string;
|
|
183
|
+
}
|
|
184
|
+
/** What a task of the double came to, as the list says it beside the conversation. */
|
|
185
|
+
export type ChatTaskStatus = 'running' | 'done' | 'failed' | 'stopped';
|
|
186
|
+
/** The double, for the list: which conversations are its tasks, and how to hand it one. */
|
|
187
|
+
export interface ChatListDouble {
|
|
188
|
+
/** The sessions of its tasks (by the id of each, and by its file), and where each is. */
|
|
189
|
+
tasks: ReadonlyMap<string, ChatTaskStatus>;
|
|
190
|
+
/** Its own conversation. */
|
|
191
|
+
session?: string;
|
|
192
|
+
/** The file of its own conversation: it is known before the conversation opens (and without the computer). */
|
|
193
|
+
sessionFile?: string;
|
|
194
|
+
/** What the user calls it. */
|
|
195
|
+
name: string;
|
|
196
|
+
hand(session: TaSessionInfo, title: string): void;
|
|
197
|
+
}
|
|
198
|
+
//# sourceMappingURL=chat-list-util.d.ts.map
|