@celljs/ta-web 4.27.0 → 4.29.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 +1 -1
- package/README.md +1 -1
- package/esm/browser/assistant/assistant-role.d.ts +9 -4
- package/esm/browser/assistant/assistant-role.js +17 -5
- package/esm/browser/assistant/assistant-task-util.d.ts +6 -0
- package/esm/browser/assistant/assistant-task-util.js +12 -1
- package/esm/browser/assistant/assistant-thread.js +15 -2
- package/esm/browser/assistant/assistant-view.js +4 -1
- package/esm/browser/assistant/assistant.d.ts +2 -1
- package/esm/browser/assistant/assistant.js +9 -7
- package/esm/browser/assistant/call-conversing.d.ts +45 -0
- package/esm/browser/assistant/call-conversing.js +91 -0
- package/esm/browser/assistant/call-face.d.ts +13 -0
- package/esm/browser/assistant/call-face.js +81 -0
- package/esm/browser/assistant/call-keeper.d.ts +8 -4
- package/esm/browser/assistant/call-keeper.js +32 -11
- package/esm/browser/assistant/call-partnering.d.ts +37 -0
- package/esm/browser/assistant/call-partnering.js +79 -0
- package/esm/browser/assistant/call-scenes.d.ts +26 -0
- package/esm/browser/assistant/call-scenes.js +85 -0
- package/esm/browser/assistant/call-screen.d.ts +3 -0
- package/esm/browser/assistant/call-screen.js +15 -0
- package/esm/browser/assistant/mic-sense.d.ts +31 -0
- package/esm/browser/assistant/mic-sense.js +119 -0
- package/esm/browser/assistant/noise-gate.d.ts +32 -0
- package/esm/browser/assistant/noise-gate.js +66 -0
- package/esm/browser/assistant/pcm-util.d.ts +10 -0
- package/esm/browser/assistant/pcm-util.js +55 -0
- package/esm/browser/assistant/read-aloud.d.ts +2 -1
- package/esm/browser/assistant/realtime-voice-protocol.d.ts +84 -0
- package/esm/browser/assistant/realtime-voice-protocol.js +40 -0
- package/esm/browser/assistant/realtime-voice.d.ts +50 -62
- package/esm/browser/assistant/realtime-voice.js +213 -134
- package/esm/browser/assistant/spoken-timeline.d.ts +27 -0
- package/esm/browser/assistant/spoken-timeline.js +49 -0
- package/esm/browser/assistant/voice-call-bar.d.ts +9 -2
- package/esm/browser/assistant/voice-call-bar.js +81 -31
- package/esm/browser/assistant/voice-call-protocol.d.ts +61 -4
- package/esm/browser/assistant/voice-call.d.ts +16 -23
- package/esm/browser/assistant/voice-call.js +134 -117
- package/esm/browser/assistant/voice-reading.d.ts +83 -0
- package/esm/browser/assistant/voice-reading.js +150 -0
- package/esm/browser/avatar/dino-talk.d.ts +15 -0
- package/esm/browser/avatar/dino-talk.js +34 -0
- package/esm/browser/chat/chat-protocol.d.ts +2 -0
- package/esm/browser/chat/chat-shown.d.ts +3 -1
- package/esm/browser/chat/chat-shown.js +25 -3
- package/esm/browser/chat/chat.d.ts +5 -1
- package/esm/browser/chat/chat.js +32 -16
- package/esm/browser/components/account-menu.d.ts +6 -16
- package/esm/browser/components/account-menu.js +47 -101
- package/esm/browser/components/app-contexts.js +3 -2
- package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/esm/browser/components/composer-box-protocol.d.ts +2 -0
- package/esm/browser/components/composer-box.js +20 -1
- package/esm/browser/components/composer-emoji.d.ts +22 -0
- package/esm/browser/components/composer-emoji.js +50 -0
- package/esm/browser/components/conversation-scroll-util.d.ts +8 -1
- package/esm/browser/components/conversation-scroll-util.js +21 -0
- package/esm/browser/components/conversation-scroll.js +10 -11
- package/esm/browser/components/discover-view.d.ts +4 -3
- package/esm/browser/components/discover-view.js +5 -4
- package/esm/browser/components/emoji-panel.d.ts +22 -0
- package/esm/browser/components/emoji-panel.js +54 -0
- package/esm/browser/components/gallery.js +28 -7
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/image-pull.d.ts +64 -0
- package/esm/browser/components/image-pull.js +202 -0
- package/esm/browser/components/kept-call-bar.js +2 -1
- package/esm/browser/components/lightbox.d.ts +1 -1
- package/esm/browser/components/lightbox.js +57 -2
- package/esm/browser/components/markdown.d.ts +8 -1
- package/esm/browser/components/markdown.js +12 -4
- package/esm/browser/components/me-rows.d.ts +24 -0
- package/esm/browser/components/me-rows.js +19 -0
- package/esm/browser/components/me-view.d.ts +2 -1
- package/esm/browser/components/me-view.js +3 -2
- package/esm/browser/components/message-list.js +47 -7
- package/esm/browser/components/message-steps.js +13 -0
- package/esm/browser/components/nav-places.js +1 -1
- package/esm/browser/components/partner-row.js +2 -1
- package/esm/browser/components/relay-services.d.ts +9 -3
- package/esm/browser/components/relay-services.js +73 -35
- package/esm/browser/components/session-view.js +4 -2
- package/esm/browser/components/settings-choices.js +3 -0
- package/esm/browser/components/settings-controls.d.ts +13 -0
- package/esm/browser/components/settings-controls.js +19 -0
- package/esm/browser/components/settings-more.d.ts +1 -1
- package/esm/browser/components/settings-more.js +28 -39
- package/esm/browser/components/settings-parts.d.ts +4 -2
- package/esm/browser/components/settings-parts.js +16 -9
- package/esm/browser/components/settings-view.js +2 -6
- package/esm/browser/components/ta-avatar.d.ts +15 -1
- package/esm/browser/components/ta-avatar.js +38 -5
- package/esm/browser/components/voice-services.js +6 -1
- package/esm/browser/components/web-composer.d.ts +1 -1
- package/esm/browser/components/web-composer.js +2 -2
- package/esm/browser/device/file-save.d.ts +31 -0
- package/esm/browser/device/file-save.js +80 -0
- package/esm/browser/extension/extension-view.d.ts +2 -0
- package/esm/browser/extension/extension-view.js +2 -0
- package/esm/browser/extension/web-api-call.d.ts +109 -2
- package/esm/browser/extension/web-api-components.d.ts +4 -0
- package/esm/browser/extension/web-api-contributions.d.ts +14 -14
- package/esm/browser/extension/web-api-desktop.d.ts +16 -1
- package/esm/browser/extension/web-api-desktop.js +1 -0
- package/esm/browser/extension/web-api-partners.d.ts +2 -0
- package/esm/browser/extension/web-extension-api.d.ts +8 -10
- package/esm/browser/extension/web-extension-code.d.ts +15 -8
- package/esm/browser/extension/web-extension-code.js +25 -27
- package/esm/browser/extension/web-extension-context.js +4 -0
- package/esm/browser/extension/web-extension-protocol.d.ts +10 -1
- package/esm/browser/extension/web-extension-protocol.js +1 -0
- package/esm/browser/extension/web-extension-run.d.ts +4 -2
- package/esm/browser/extension/web-extension-run.js +10 -4
- package/esm/browser/extension/web-extensions-running.js +7 -6
- package/esm/browser/extension/web-pages.d.ts +2 -0
- package/esm/browser/extension/web-pages.js +2 -0
- package/esm/browser/i18n/en/account.d.ts +202 -0
- package/esm/browser/i18n/en/account.js +205 -0
- package/esm/browser/i18n/en/assistant.d.ts +129 -0
- package/esm/browser/i18n/en/assistant.js +130 -0
- package/esm/browser/i18n/en/call.d.ts +86 -0
- package/esm/browser/i18n/en/call.js +87 -0
- package/esm/browser/i18n/en/chat.d.ts +213 -0
- package/esm/browser/i18n/en/chat.js +214 -0
- package/esm/browser/i18n/en/common.d.ts +99 -0
- package/esm/browser/i18n/en/common.js +101 -0
- package/esm/browser/i18n/en/console.d.ts +230 -0
- package/esm/browser/i18n/en/console.js +232 -0
- package/esm/browser/i18n/en/discover.d.ts +117 -0
- package/esm/browser/i18n/en/discover.js +119 -0
- package/esm/browser/i18n/en/service.d.ts +242 -0
- package/esm/browser/i18n/en/service.js +245 -0
- package/esm/browser/i18n/en/settings.d.ts +213 -0
- package/esm/browser/i18n/en/settings.js +214 -0
- package/esm/browser/i18n/en/tools.d.ts +85 -0
- package/esm/browser/i18n/en/tools.js +87 -0
- package/esm/browser/i18n/ja/account.d.ts +2 -0
- package/esm/browser/i18n/ja/account.js +202 -0
- package/esm/browser/i18n/ja/assistant.d.ts +2 -0
- package/esm/browser/i18n/ja/assistant.js +129 -0
- package/esm/browser/i18n/ja/call.d.ts +2 -0
- package/esm/browser/i18n/ja/call.js +86 -0
- package/esm/browser/i18n/ja/chat.d.ts +2 -0
- package/esm/browser/i18n/ja/chat.js +213 -0
- package/esm/browser/i18n/ja/common.d.ts +2 -0
- package/esm/browser/i18n/ja/common.js +99 -0
- package/esm/browser/i18n/ja/console.d.ts +2 -0
- package/esm/browser/i18n/ja/console.js +230 -0
- package/esm/browser/i18n/ja/discover.d.ts +2 -0
- package/esm/browser/i18n/ja/discover.js +117 -0
- package/esm/browser/i18n/ja/service.d.ts +2 -0
- package/esm/browser/i18n/ja/service.js +242 -0
- package/esm/browser/i18n/ja/settings.d.ts +2 -0
- package/esm/browser/i18n/ja/settings.js +213 -0
- package/esm/browser/i18n/ja/tools.d.ts +2 -0
- package/esm/browser/i18n/ja/tools.js +85 -0
- package/esm/browser/i18n/locales.d.ts +1150 -1131
- package/esm/browser/i18n/messages-ja.js +20 -1567
- package/esm/browser/i18n/messages-zh-tw.d.ts +0 -1
- package/esm/browser/i18n/messages-zh-tw.js +20 -1568
- package/esm/browser/i18n/messages.d.ts +1153 -1131
- package/esm/browser/i18n/messages.js +44 -3145
- package/esm/browser/i18n/zh/account.d.ts +2 -0
- package/esm/browser/i18n/zh/account.js +203 -0
- package/esm/browser/i18n/zh/assistant.d.ts +2 -0
- package/esm/browser/i18n/zh/assistant.js +129 -0
- package/esm/browser/i18n/zh/call.d.ts +2 -0
- package/esm/browser/i18n/zh/call.js +86 -0
- package/esm/browser/i18n/zh/chat.d.ts +2 -0
- package/esm/browser/i18n/zh/chat.js +213 -0
- package/esm/browser/i18n/zh/common.d.ts +2 -0
- package/esm/browser/i18n/zh/common.js +99 -0
- package/esm/browser/i18n/zh/console.d.ts +2 -0
- package/esm/browser/i18n/zh/console.js +230 -0
- package/esm/browser/i18n/zh/discover.d.ts +2 -0
- package/esm/browser/i18n/zh/discover.js +117 -0
- package/esm/browser/i18n/zh/service.d.ts +2 -0
- package/esm/browser/i18n/zh/service.js +242 -0
- package/esm/browser/i18n/zh/settings.d.ts +2 -0
- package/esm/browser/i18n/zh/settings.js +213 -0
- package/esm/browser/i18n/zh/tools.d.ts +2 -0
- package/esm/browser/i18n/zh/tools.js +86 -0
- package/esm/browser/i18n/zh-tw/account.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/account.js +202 -0
- package/esm/browser/i18n/zh-tw/assistant.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/assistant.js +129 -0
- package/esm/browser/i18n/zh-tw/call.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/call.js +86 -0
- package/esm/browser/i18n/zh-tw/chat.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/chat.js +213 -0
- package/esm/browser/i18n/zh-tw/common.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/common.js +99 -0
- package/esm/browser/i18n/zh-tw/console.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/console.js +230 -0
- package/esm/browser/i18n/zh-tw/discover.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/discover.js +117 -0
- package/esm/browser/i18n/zh-tw/service.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/service.js +242 -0
- package/esm/browser/i18n/zh-tw/settings.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/settings.js +213 -0
- package/esm/browser/i18n/zh-tw/tools.d.ts +2 -0
- package/esm/browser/i18n/zh-tw/tools.js +85 -0
- package/esm/browser/markdown/code-renderers.d.ts +2 -0
- package/esm/browser/markdown/code-renderers.js +2 -0
- package/esm/browser/offline/device-values.d.ts +4 -0
- package/esm/browser/offline/device-values.js +10 -0
- package/esm/browser/pwa/page-build.d.ts +15 -0
- package/esm/browser/pwa/page-build.js +45 -0
- package/esm/browser/screen/page-answers.d.ts +2 -1
- package/esm/browser/screen/page-answers.js +7 -4
- package/esm/browser/settings/settings-protocol.d.ts +4 -0
- package/esm/browser/settings/settings-protocol.js +4 -0
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +3 -0
- package/esm/browser/style/chat-list.d.ts +1 -1
- package/esm/browser/style/chat-list.js +1 -1
- package/esm/browser/style/conversation-column.d.ts +1 -1
- package/esm/browser/style/conversation-column.js +17 -0
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +11 -1
- package/esm/browser/style/device.js +1 -0
- package/esm/browser/style/dialogs.d.ts +1 -1
- package/esm/browser/style/dialogs.js +1 -1
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/layout.js +135 -57
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +0 -7
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +8 -0
- package/esm/browser/style/video-call.d.ts +2 -0
- package/esm/browser/style/video-call.js +63 -0
- package/esm/browser/style.js +2 -0
- package/esm/browser/util/call-transcript.d.ts +16 -0
- package/esm/browser/util/call-transcript.js +110 -0
- package/esm/browser/util/desktop.d.ts +10 -1
- package/esm/browser/util/desktop.js +10 -0
- package/esm/browser/util/image-pull.d.ts +61 -0
- package/esm/browser/util/image-pull.js +88 -0
- package/esm/browser/util/process.d.ts +6 -0
- package/esm/browser/util/process.js +18 -5
- package/esm/browser/util/spoken.d.ts +3 -3
- package/esm/browser/util/spoken.js +4 -4
- package/esm/browser/video-call/call-camera.d.ts +59 -0
- package/esm/browser/video-call/call-camera.js +188 -0
- package/esm/browser/video-call/call-people.d.ts +21 -0
- package/esm/browser/video-call/call-people.js +29 -0
- package/esm/browser/video-call/call-window.d.ts +19 -0
- package/esm/browser/video-call/call-window.js +80 -0
- package/esm/browser/video-call/clip-plan.d.ts +56 -0
- package/esm/browser/video-call/clip-plan.js +76 -0
- package/esm/browser/video-call/face-camera.d.ts +93 -0
- package/esm/browser/video-call/face-camera.js +192 -0
- package/esm/browser/video-call/face-files.d.ts +69 -0
- package/esm/browser/video-call/face-files.js +132 -0
- package/esm/browser/video-call/face-moves.d.ts +68 -0
- package/esm/browser/video-call/face-moves.js +180 -0
- package/esm/browser/video-call/face-stage.d.ts +139 -0
- package/esm/browser/video-call/face-stage.js +219 -0
- package/esm/browser/video-call/mouth-layer.d.ts +81 -0
- package/esm/browser/video-call/mouth-layer.js +241 -0
- package/esm/browser/video-call/video-call-view.d.ts +19 -0
- package/esm/browser/video-call/video-call-view.js +254 -0
- package/esm/browser/video-call/video-face.d.ts +19 -0
- package/esm/browser/video-call/video-face.js +471 -0
- package/esm/browser/workbench-hosts.d.ts +1 -0
- package/esm/browser/workbench-protocol.d.ts +2 -0
- package/esm/browser/workbench-util.d.ts +5 -0
- package/esm/browser/workbench-util.js +18 -0
- package/esm/browser/workbench.d.ts +14 -0
- package/esm/browser/workbench.js +73 -6
- package/lib/browser/assistant/assistant-role.d.ts +9 -4
- package/lib/browser/assistant/assistant-role.js +17 -5
- package/lib/browser/assistant/assistant-task-util.d.ts +6 -0
- package/lib/browser/assistant/assistant-task-util.js +11 -0
- package/lib/browser/assistant/assistant-thread.js +15 -2
- package/lib/browser/assistant/assistant-view.js +3 -0
- package/lib/browser/assistant/assistant.d.ts +2 -1
- package/lib/browser/assistant/assistant.js +9 -7
- package/lib/browser/assistant/call-conversing.d.ts +46 -0
- package/lib/browser/assistant/call-conversing.js +96 -0
- package/lib/browser/assistant/call-face.d.ts +14 -0
- package/lib/browser/assistant/call-face.js +117 -0
- package/lib/browser/assistant/call-keeper.d.ts +8 -4
- package/lib/browser/assistant/call-keeper.js +32 -11
- package/lib/browser/assistant/call-partnering.d.ts +38 -0
- package/lib/browser/assistant/call-partnering.js +83 -0
- package/lib/browser/assistant/call-scenes.d.ts +27 -0
- package/lib/browser/assistant/call-scenes.js +88 -0
- package/lib/browser/assistant/call-screen.d.ts +3 -0
- package/lib/browser/assistant/call-screen.js +15 -0
- package/lib/browser/assistant/mic-sense.d.ts +32 -0
- package/lib/browser/assistant/mic-sense.js +123 -0
- package/lib/browser/assistant/noise-gate.d.ts +33 -0
- package/lib/browser/assistant/noise-gate.js +71 -0
- package/lib/browser/assistant/pcm-util.d.ts +11 -0
- package/lib/browser/assistant/pcm-util.js +58 -0
- package/lib/browser/assistant/read-aloud.d.ts +2 -1
- package/lib/browser/assistant/realtime-voice-protocol.d.ts +85 -0
- package/lib/browser/assistant/realtime-voice-protocol.js +43 -0
- package/lib/browser/assistant/realtime-voice.d.ts +50 -62
- package/lib/browser/assistant/realtime-voice.js +217 -138
- package/lib/browser/assistant/spoken-timeline.d.ts +28 -0
- package/lib/browser/assistant/spoken-timeline.js +53 -0
- package/lib/browser/assistant/voice-call-bar.d.ts +9 -2
- package/lib/browser/assistant/voice-call-bar.js +81 -30
- package/lib/browser/assistant/voice-call-protocol.d.ts +61 -4
- package/lib/browser/assistant/voice-call.d.ts +16 -23
- package/lib/browser/assistant/voice-call.js +134 -117
- package/lib/browser/assistant/voice-reading.d.ts +84 -0
- package/lib/browser/assistant/voice-reading.js +156 -0
- package/lib/browser/avatar/dino-talk.d.ts +16 -0
- package/lib/browser/avatar/dino-talk.js +37 -0
- package/lib/browser/chat/chat-protocol.d.ts +2 -0
- package/lib/browser/chat/chat-shown.d.ts +3 -1
- package/lib/browser/chat/chat-shown.js +25 -3
- package/lib/browser/chat/chat.d.ts +5 -1
- package/lib/browser/chat/chat.js +32 -16
- package/lib/browser/components/account-menu.d.ts +6 -16
- package/lib/browser/components/account-menu.js +45 -99
- package/lib/browser/components/app-contexts.js +2 -1
- package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/lib/browser/components/composer-box-protocol.d.ts +2 -0
- package/lib/browser/components/composer-box.js +20 -1
- package/lib/browser/components/composer-emoji.d.ts +23 -0
- package/lib/browser/components/composer-emoji.js +87 -0
- package/lib/browser/components/conversation-scroll-util.d.ts +8 -1
- package/lib/browser/components/conversation-scroll-util.js +21 -0
- package/lib/browser/components/conversation-scroll.js +10 -11
- package/lib/browser/components/discover-view.d.ts +4 -3
- package/lib/browser/components/discover-view.js +5 -4
- package/lib/browser/components/emoji-panel.d.ts +23 -0
- package/lib/browser/components/emoji-panel.js +90 -0
- package/lib/browser/components/gallery.js +28 -7
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/image-pull.d.ts +65 -0
- package/lib/browser/components/image-pull.js +206 -0
- package/lib/browser/components/kept-call-bar.js +2 -1
- package/lib/browser/components/lightbox.d.ts +1 -1
- package/lib/browser/components/lightbox.js +57 -2
- package/lib/browser/components/markdown.d.ts +8 -1
- package/lib/browser/components/markdown.js +11 -3
- package/lib/browser/components/me-rows.d.ts +25 -0
- package/lib/browser/components/me-rows.js +22 -0
- package/lib/browser/components/me-view.d.ts +2 -1
- package/lib/browser/components/me-view.js +3 -2
- package/lib/browser/components/message-list.js +46 -6
- package/lib/browser/components/message-steps.js +13 -0
- package/lib/browser/components/nav-places.js +1 -1
- package/lib/browser/components/partner-row.js +2 -1
- package/lib/browser/components/relay-services.d.ts +9 -3
- package/lib/browser/components/relay-services.js +71 -33
- package/lib/browser/components/session-view.js +3 -1
- package/lib/browser/components/settings-choices.js +3 -0
- package/lib/browser/components/settings-controls.d.ts +13 -0
- package/lib/browser/components/settings-controls.js +19 -0
- package/lib/browser/components/settings-more.d.ts +1 -1
- package/lib/browser/components/settings-more.js +27 -38
- package/lib/browser/components/settings-parts.d.ts +4 -2
- package/lib/browser/components/settings-parts.js +15 -8
- package/lib/browser/components/settings-view.js +2 -6
- package/lib/browser/components/ta-avatar.d.ts +15 -1
- package/lib/browser/components/ta-avatar.js +38 -5
- package/lib/browser/components/voice-services.js +5 -0
- package/lib/browser/components/web-composer.d.ts +1 -1
- package/lib/browser/components/web-composer.js +2 -2
- package/lib/browser/device/file-save.d.ts +32 -0
- package/lib/browser/device/file-save.js +83 -0
- package/lib/browser/extension/extension-view.d.ts +2 -0
- package/lib/browser/extension/extension-view.js +3 -1
- package/lib/browser/extension/web-api-call.d.ts +109 -2
- package/lib/browser/extension/web-api-components.d.ts +4 -0
- package/lib/browser/extension/web-api-contributions.d.ts +14 -14
- package/lib/browser/extension/web-api-desktop.d.ts +16 -1
- package/lib/browser/extension/web-api-desktop.js +1 -0
- package/lib/browser/extension/web-api-partners.d.ts +2 -0
- package/lib/browser/extension/web-extension-api.d.ts +8 -10
- package/lib/browser/extension/web-extension-code.d.ts +15 -8
- package/lib/browser/extension/web-extension-code.js +25 -27
- package/lib/browser/extension/web-extension-context.js +4 -0
- package/lib/browser/extension/web-extension-protocol.d.ts +10 -1
- package/lib/browser/extension/web-extension-protocol.js +1 -0
- package/lib/browser/extension/web-extension-run.d.ts +4 -2
- package/lib/browser/extension/web-extension-run.js +10 -4
- package/lib/browser/extension/web-extensions-running.js +7 -6
- package/lib/browser/extension/web-pages.d.ts +2 -0
- package/lib/browser/extension/web-pages.js +2 -0
- package/lib/browser/i18n/en/account.d.ts +203 -0
- package/lib/browser/i18n/en/account.js +208 -0
- package/lib/browser/i18n/en/assistant.d.ts +130 -0
- package/lib/browser/i18n/en/assistant.js +133 -0
- package/lib/browser/i18n/en/call.d.ts +87 -0
- package/lib/browser/i18n/en/call.js +90 -0
- package/lib/browser/i18n/en/chat.d.ts +214 -0
- package/lib/browser/i18n/en/chat.js +217 -0
- package/lib/browser/i18n/en/common.d.ts +100 -0
- package/lib/browser/i18n/en/common.js +104 -0
- package/lib/browser/i18n/en/console.d.ts +231 -0
- package/lib/browser/i18n/en/console.js +235 -0
- package/lib/browser/i18n/en/discover.d.ts +118 -0
- package/lib/browser/i18n/en/discover.js +122 -0
- package/lib/browser/i18n/en/service.d.ts +243 -0
- package/lib/browser/i18n/en/service.js +248 -0
- package/lib/browser/i18n/en/settings.d.ts +214 -0
- package/lib/browser/i18n/en/settings.js +217 -0
- package/lib/browser/i18n/en/tools.d.ts +86 -0
- package/lib/browser/i18n/en/tools.js +90 -0
- package/lib/browser/i18n/ja/account.d.ts +3 -0
- package/lib/browser/i18n/ja/account.js +205 -0
- package/lib/browser/i18n/ja/assistant.d.ts +3 -0
- package/lib/browser/i18n/ja/assistant.js +132 -0
- package/lib/browser/i18n/ja/call.d.ts +3 -0
- package/lib/browser/i18n/ja/call.js +89 -0
- package/lib/browser/i18n/ja/chat.d.ts +3 -0
- package/lib/browser/i18n/ja/chat.js +216 -0
- package/lib/browser/i18n/ja/common.d.ts +3 -0
- package/lib/browser/i18n/ja/common.js +102 -0
- package/lib/browser/i18n/ja/console.d.ts +3 -0
- package/lib/browser/i18n/ja/console.js +233 -0
- package/lib/browser/i18n/ja/discover.d.ts +3 -0
- package/lib/browser/i18n/ja/discover.js +120 -0
- package/lib/browser/i18n/ja/service.d.ts +3 -0
- package/lib/browser/i18n/ja/service.js +245 -0
- package/lib/browser/i18n/ja/settings.d.ts +3 -0
- package/lib/browser/i18n/ja/settings.js +216 -0
- package/lib/browser/i18n/ja/tools.d.ts +3 -0
- package/lib/browser/i18n/ja/tools.js +88 -0
- package/lib/browser/i18n/locales.d.ts +1150 -1131
- package/lib/browser/i18n/messages-ja.js +20 -1567
- package/lib/browser/i18n/messages-zh-tw.d.ts +0 -1
- package/lib/browser/i18n/messages-zh-tw.js +20 -1568
- package/lib/browser/i18n/messages.d.ts +1153 -1131
- package/lib/browser/i18n/messages.js +44 -3145
- package/lib/browser/i18n/zh/account.d.ts +3 -0
- package/lib/browser/i18n/zh/account.js +206 -0
- package/lib/browser/i18n/zh/assistant.d.ts +3 -0
- package/lib/browser/i18n/zh/assistant.js +132 -0
- package/lib/browser/i18n/zh/call.d.ts +3 -0
- package/lib/browser/i18n/zh/call.js +89 -0
- package/lib/browser/i18n/zh/chat.d.ts +3 -0
- package/lib/browser/i18n/zh/chat.js +216 -0
- package/lib/browser/i18n/zh/common.d.ts +3 -0
- package/lib/browser/i18n/zh/common.js +102 -0
- package/lib/browser/i18n/zh/console.d.ts +3 -0
- package/lib/browser/i18n/zh/console.js +233 -0
- package/lib/browser/i18n/zh/discover.d.ts +3 -0
- package/lib/browser/i18n/zh/discover.js +120 -0
- package/lib/browser/i18n/zh/service.d.ts +3 -0
- package/lib/browser/i18n/zh/service.js +245 -0
- package/lib/browser/i18n/zh/settings.d.ts +3 -0
- package/lib/browser/i18n/zh/settings.js +216 -0
- package/lib/browser/i18n/zh/tools.d.ts +3 -0
- package/lib/browser/i18n/zh/tools.js +89 -0
- package/lib/browser/i18n/zh-tw/account.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/account.js +205 -0
- package/lib/browser/i18n/zh-tw/assistant.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/assistant.js +132 -0
- package/lib/browser/i18n/zh-tw/call.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/call.js +89 -0
- package/lib/browser/i18n/zh-tw/chat.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/chat.js +216 -0
- package/lib/browser/i18n/zh-tw/common.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/common.js +102 -0
- package/lib/browser/i18n/zh-tw/console.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/console.js +233 -0
- package/lib/browser/i18n/zh-tw/discover.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/discover.js +120 -0
- package/lib/browser/i18n/zh-tw/service.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/service.js +245 -0
- package/lib/browser/i18n/zh-tw/settings.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/settings.js +216 -0
- package/lib/browser/i18n/zh-tw/tools.d.ts +3 -0
- package/lib/browser/i18n/zh-tw/tools.js +88 -0
- package/lib/browser/markdown/code-renderers.d.ts +2 -0
- package/lib/browser/markdown/code-renderers.js +3 -1
- package/lib/browser/offline/device-values.d.ts +4 -0
- package/lib/browser/offline/device-values.js +10 -0
- package/lib/browser/pwa/page-build.d.ts +16 -0
- package/lib/browser/pwa/page-build.js +48 -0
- package/lib/browser/screen/page-answers.d.ts +2 -1
- package/lib/browser/screen/page-answers.js +7 -4
- package/lib/browser/settings/settings-protocol.d.ts +4 -0
- package/lib/browser/settings/settings-protocol.js +4 -0
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +3 -0
- package/lib/browser/style/chat-list.d.ts +1 -1
- package/lib/browser/style/chat-list.js +1 -1
- package/lib/browser/style/conversation-column.d.ts +1 -1
- package/lib/browser/style/conversation-column.js +17 -0
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +11 -1
- package/lib/browser/style/device.js +1 -0
- package/lib/browser/style/dialogs.d.ts +1 -1
- package/lib/browser/style/dialogs.js +1 -1
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/layout.js +135 -57
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +0 -7
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +8 -0
- package/lib/browser/style/video-call.d.ts +3 -0
- package/lib/browser/style/video-call.js +66 -0
- package/lib/browser/style.js +2 -0
- package/lib/browser/util/call-transcript.d.ts +17 -0
- package/lib/browser/util/call-transcript.js +113 -0
- package/lib/browser/util/desktop.d.ts +10 -1
- package/lib/browser/util/desktop.js +10 -0
- package/lib/browser/util/image-pull.d.ts +62 -0
- package/lib/browser/util/image-pull.js +91 -0
- package/lib/browser/util/process.d.ts +6 -0
- package/lib/browser/util/process.js +17 -4
- package/lib/browser/util/spoken.d.ts +3 -3
- package/lib/browser/util/spoken.js +4 -4
- package/lib/browser/video-call/call-camera.d.ts +60 -0
- package/lib/browser/video-call/call-camera.js +192 -0
- package/lib/browser/video-call/call-people.d.ts +22 -0
- package/lib/browser/video-call/call-people.js +32 -0
- package/lib/browser/video-call/call-window.d.ts +20 -0
- package/lib/browser/video-call/call-window.js +83 -0
- package/lib/browser/video-call/clip-plan.d.ts +57 -0
- package/lib/browser/video-call/clip-plan.js +80 -0
- package/lib/browser/video-call/face-camera.d.ts +94 -0
- package/lib/browser/video-call/face-camera.js +197 -0
- package/lib/browser/video-call/face-files.d.ts +70 -0
- package/lib/browser/video-call/face-files.js +137 -0
- package/lib/browser/video-call/face-moves.d.ts +69 -0
- package/lib/browser/video-call/face-moves.js +184 -0
- package/lib/browser/video-call/face-stage.d.ts +140 -0
- package/lib/browser/video-call/face-stage.js +223 -0
- package/lib/browser/video-call/mouth-layer.d.ts +82 -0
- package/lib/browser/video-call/mouth-layer.js +245 -0
- package/lib/browser/video-call/video-call-view.d.ts +20 -0
- package/lib/browser/video-call/video-call-view.js +290 -0
- package/lib/browser/video-call/video-face.d.ts +20 -0
- package/lib/browser/video-call/video-face.js +507 -0
- package/lib/browser/workbench-hosts.d.ts +1 -0
- package/lib/browser/workbench-protocol.d.ts +2 -0
- package/lib/browser/workbench-util.d.ts +5 -0
- package/lib/browser/workbench-util.js +18 -0
- package/lib/browser/workbench.d.ts +14 -0
- package/lib/browser/workbench.js +71 -4
- package/package.json +7 -7
- package/public/faces/README.md +40 -0
- package/public/faces/blonde/clap.mp4 +0 -0
- package/public/faces/blonde/dance.mp4 +0 -0
- package/public/faces/blonde/face.jpg +0 -0
- package/public/faces/blonde/happy.mp4 +0 -0
- package/public/faces/blonde/heart.mp4 +0 -0
- package/public/faces/blonde/idle-1.mp4 +0 -0
- package/public/faces/blonde/idle-2.mp4 +0 -0
- package/public/faces/blonde/idle-3.mp4 +0 -0
- package/public/faces/blonde/laugh.mp4 +0 -0
- package/public/faces/blonde/listening.mp4 +0 -0
- package/public/faces/blonde/poster.jpg +0 -0
- package/public/faces/blonde/shy.mp4 +0 -0
- package/public/faces/blonde/sorry.mp4 +0 -0
- package/public/faces/blonde/stretch.mp4 +0 -0
- package/public/faces/blonde/surprised.mp4 +0 -0
- package/public/faces/blonde/talk-1.mp4 +0 -0
- package/public/faces/blonde/talk-2.mp4 +0 -0
- package/public/faces/blonde/think-2.mp4 +0 -0
- package/public/faces/blonde/thinking.mp4 +0 -0
- package/public/faces/blonde/wave.mp4 +0 -0
- package/public/faces/clap.mp4 +0 -0
- package/public/faces/dance.mp4 +0 -0
- package/public/faces/face.jpg +0 -0
- package/public/faces/framing.json +1 -0
- package/public/faces/happy.mp4 +0 -0
- package/public/faces/heart.mp4 +0 -0
- package/public/faces/idle-1.mp4 +0 -0
- package/public/faces/idle-2.mp4 +0 -0
- package/public/faces/idle-3.mp4 +0 -0
- package/public/faces/laugh.mp4 +0 -0
- package/public/faces/lips.json +1 -0
- package/public/faces/listening.mp4 +0 -0
- package/public/faces/poster.jpg +0 -0
- package/public/faces/shy.mp4 +0 -0
- package/public/faces/sorry.mp4 +0 -0
- package/public/faces/stretch.mp4 +0 -0
- package/public/faces/surprised.mp4 +0 -0
- package/public/faces/talk-1.mp4 +0 -0
- package/public/faces/talk-2.mp4 +0 -0
- package/public/faces/think-2.mp4 +0 -0
- package/public/faces/thinking.mp4 +0 -0
- package/public/faces/wave.mp4 +0 -0
|
@@ -39,24 +39,60 @@ const React = __importStar(require("react"));
|
|
|
39
39
|
const back_stack_1 = require("../device/back-stack");
|
|
40
40
|
const use_t_1 = require("../i18n/use-t");
|
|
41
41
|
const icon_1 = require("./icon");
|
|
42
|
+
const image_pull_1 = require("./image-pull");
|
|
42
43
|
const image_viewer_1 = require("./image-viewer");
|
|
43
44
|
/**
|
|
44
45
|
* An image over the page, to look at closely (ImageViewer): pinched, zoomed, dragged, and with `onPrevious` /
|
|
45
46
|
* `onNext` the images beside it, by its side buttons, ← → and a finger that swipes it (`previousSrc` / `nextSrc`
|
|
46
47
|
* in sight as it does, as the viewers of pictures of a phone). A click or tap beside it,
|
|
47
|
-
* its close button or
|
|
48
|
+
* its close button, Escape, back or a finger that pulls it down closes it, shrinking back onto its thumbnail (ImagePull). In the top layer, so no container clips it; the touches in it are its
|
|
48
49
|
* own, never a swipe of a sheet under it.
|
|
49
50
|
*/
|
|
50
51
|
function Lightbox({ src, alt, caption, count, onClose, onPrevious, onNext, previousSrc, nextSrc, }) {
|
|
51
52
|
const t = (0, use_t_1.useT)();
|
|
52
53
|
const dialog = React.useRef(null);
|
|
54
|
+
/** What opened it (the thumbnail tapped): the picture goes back there first, of those that show the same. */
|
|
55
|
+
const opener = React.useRef(null);
|
|
53
56
|
React.useEffect(() => {
|
|
54
57
|
var _a, _b;
|
|
58
|
+
opener.current = document.activeElement;
|
|
55
59
|
(_b = (_a = dialog.current) === null || _a === void 0 ? void 0 : _a.showModal) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
56
60
|
}, []);
|
|
57
|
-
const
|
|
61
|
+
const pull = React.useRef(undefined);
|
|
62
|
+
// It shrinks back onto its thumbnail, then closes.
|
|
63
|
+
const close = () => { var _a; return (pull.current ? pull.current.leave() : (_a = dialog.current) === null || _a === void 0 ? void 0 : _a.close()); };
|
|
58
64
|
(0, back_stack_1.useBackLayer)(true, close);
|
|
65
|
+
const shade = React.useRef(null);
|
|
66
|
+
const shown = React.useRef(src);
|
|
67
|
+
shown.current = src;
|
|
68
|
+
React.useEffect(() => {
|
|
69
|
+
const box = dialog.current;
|
|
70
|
+
const viewport = box === null || box === void 0 ? void 0 : box.querySelector('.ta-zoom-viewport');
|
|
71
|
+
const image = viewport === null || viewport === void 0 ? void 0 : viewport.querySelector('img');
|
|
72
|
+
if (!box || !viewport || !image || !shade.current) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const controller = new image_pull_1.ImagePull(viewport, image, shade.current, {
|
|
76
|
+
origin: () => LightboxUtil.thumbnail(shown.current, box, opener.current),
|
|
77
|
+
pulling: pulling => box.toggleAttribute('data-pulling', pulling),
|
|
78
|
+
close: () => box.close(),
|
|
79
|
+
});
|
|
80
|
+
pull.current = controller;
|
|
81
|
+
// Escape shrinks it back too.
|
|
82
|
+
const onCancel = (event) => {
|
|
83
|
+
event.preventDefault();
|
|
84
|
+
controller.leave();
|
|
85
|
+
};
|
|
86
|
+
box.addEventListener('cancel', onCancel);
|
|
87
|
+
const detach = controller.attach();
|
|
88
|
+
return () => {
|
|
89
|
+
box.removeEventListener('cancel', onCancel);
|
|
90
|
+
detach();
|
|
91
|
+
pull.current = undefined;
|
|
92
|
+
};
|
|
93
|
+
}, []);
|
|
59
94
|
return (React.createElement("dialog", { ref: dialog, className: "ta-lightbox", onClose: onClose, onTouchStart: event => event.stopPropagation() },
|
|
95
|
+
React.createElement("div", { ref: shade, className: "ta-lightbox-shade" }),
|
|
60
96
|
React.createElement(image_viewer_1.ImageViewer, { src: src, alt: alt, onBackground: close, onPrevious: onPrevious, onNext: onNext, previousSrc: previousSrc, nextSrc: nextSrc, autoFocus: true }),
|
|
61
97
|
(caption || count) && (React.createElement("div", { className: "ta-lightbox-caption" },
|
|
62
98
|
caption && React.createElement("span", { className: "ta-lightbox-words" }, caption),
|
|
@@ -64,4 +100,23 @@ function Lightbox({ src, alt, caption, count, onClose, onPrevious, onNext, previ
|
|
|
64
100
|
React.createElement("button", { type: "button", className: "ta-lightbox-close", title: t('ta.close'), "aria-label": t('ta.close'), onClick: close },
|
|
65
101
|
React.createElement(icon_1.Icon, { icon: lucide_react_1.X, size: 18 }))));
|
|
66
102
|
}
|
|
103
|
+
var LightboxUtil;
|
|
104
|
+
(function (LightboxUtil) {
|
|
105
|
+
/** The picture `src` small on the page, in sight (the thumbnail it was opened from, in `opener` first), out of `lightbox`. */
|
|
106
|
+
function thumbnail(src, lightbox, opener) {
|
|
107
|
+
var _a;
|
|
108
|
+
const url = new URL(src, location.href).href;
|
|
109
|
+
for (const image of [...((_a = opener === null || opener === void 0 ? void 0 : opener.querySelectorAll('img')) !== null && _a !== void 0 ? _a : []), ...document.images]) {
|
|
110
|
+
if (lightbox.contains(image) || (image.currentSrc || image.src) !== url) {
|
|
111
|
+
continue;
|
|
112
|
+
}
|
|
113
|
+
const rect = image.getBoundingClientRect();
|
|
114
|
+
if (rect.width > 0 && rect.height > 0 && rect.bottom > 0 && rect.top < window.innerHeight && rect.right > 0 && rect.left < window.innerWidth) {
|
|
115
|
+
return image;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return undefined;
|
|
119
|
+
}
|
|
120
|
+
LightboxUtil.thumbnail = thumbnail;
|
|
121
|
+
})(LightboxUtil || (LightboxUtil = {}));
|
|
67
122
|
//# sourceMappingURL=lightbox.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import type { WebCodeRendererProps } from '../extension/web-api-contributions';
|
|
2
3
|
export declare function CodeBlock({ code }: {
|
|
3
4
|
code: string;
|
|
4
5
|
language?: string;
|
|
@@ -6,9 +7,15 @@ export declare function CodeBlock({ code }: {
|
|
|
6
7
|
/**
|
|
7
8
|
* Markdown as React elements; drawn again only when its text changes, and then only the blocks that did.
|
|
8
9
|
* `streaming`: the text is a reply still coming, which shows nothing that is about to turn into something else.
|
|
10
|
+
* `inline`: a short text in a line (an option, an answer, a label), its marks and formulas drawn without blocks.
|
|
11
|
+
* `send` and `answer`: where a choice tapped in its blocks goes and what was answered (WebCodeRendererProps), for a
|
|
12
|
+
* text a page shows of a conversation of its own (a group chat); else those of the conversation it is in, if any.
|
|
9
13
|
*/
|
|
10
|
-
export declare function Markdown({ text, streaming }: {
|
|
14
|
+
export declare function Markdown({ text, streaming, inline, send, answer, }: {
|
|
11
15
|
text: string;
|
|
12
16
|
streaming?: boolean;
|
|
17
|
+
inline?: boolean;
|
|
18
|
+
send?: WebCodeRendererProps['send'];
|
|
19
|
+
answer?: string;
|
|
13
20
|
}): React.JSX.Element;
|
|
14
21
|
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -118,6 +118,7 @@ function CodeView({ language, code, closed }) {
|
|
|
118
118
|
const Renderer = React.useContext(code_renderers_1.CodeRenderers)[language.trim().toLowerCase()];
|
|
119
119
|
const send = React.useContext(code_renderers_1.CodeReply);
|
|
120
120
|
const answer = React.useContext(code_renderers_1.CodeAnswer);
|
|
121
|
+
const embedded = React.useContext(code_renderers_1.CodeEmbedded);
|
|
121
122
|
// What a reply holds for the ear alone (SpokenReply) is heard, not shown.
|
|
122
123
|
if (language.trim().toLowerCase() === spoken_1.SpokenReply.LANGUAGE) {
|
|
123
124
|
return null;
|
|
@@ -125,7 +126,8 @@ function CodeView({ language, code, closed }) {
|
|
|
125
126
|
const plain = React.createElement(CodeBlock, { code: code, language: language });
|
|
126
127
|
if (Renderer) {
|
|
127
128
|
return (React.createElement(CodeBoundary, { retry: closed, fallback: plain },
|
|
128
|
-
React.createElement(
|
|
129
|
+
React.createElement(code_renderers_1.CodeEmbedded.Provider, { value: true }, embedded ? (React.createElement("div", { className: "ta-code-embedded" },
|
|
130
|
+
React.createElement(Renderer, { code: code, language: language, closed: closed, send: send, answer: answer, embedded: true }))) : (React.createElement(Renderer, { code: code, language: language, closed: closed, send: send, answer: answer })))));
|
|
129
131
|
}
|
|
130
132
|
if (mermaid_1.MermaidUtil.isDiagram(language, code)) {
|
|
131
133
|
return React.createElement(mermaid_view_1.MermaidView, { code: code, fallback: plain });
|
|
@@ -187,8 +189,14 @@ const MarkdownBody = React.memo(function MarkdownBody({ text, streaming }) {
|
|
|
187
189
|
/**
|
|
188
190
|
* Markdown as React elements; drawn again only when its text changes, and then only the blocks that did.
|
|
189
191
|
* `streaming`: the text is a reply still coming, which shows nothing that is about to turn into something else.
|
|
192
|
+
* `inline`: a short text in a line (an option, an answer, a label), its marks and formulas drawn without blocks.
|
|
193
|
+
* `send` and `answer`: where a choice tapped in its blocks goes and what was answered (WebCodeRendererProps), for a
|
|
194
|
+
* text a page shows of a conversation of its own (a group chat); else those of the conversation it is in, if any.
|
|
190
195
|
*/
|
|
191
|
-
function Markdown({ text, streaming = false }) {
|
|
192
|
-
|
|
196
|
+
function Markdown({ text, streaming = false, inline = false, send, answer, }) {
|
|
197
|
+
const body = inline ? (React.createElement("span", { className: "ta-markdown ta-markdown-inline" },
|
|
198
|
+
React.createElement(Text, { text: text }))) : (React.createElement(MarkdownBody, { text: text, streaming: streaming }));
|
|
199
|
+
return send ? (React.createElement(code_renderers_1.CodeReply.Provider, { value: send },
|
|
200
|
+
React.createElement(code_renderers_1.CodeAnswer.Provider, { value: answer }, body))) : (body);
|
|
193
201
|
}
|
|
194
202
|
//# sourceMappingURL=markdown.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** What decides the rows of Me: the state of the device, the computer and the account. */
|
|
2
|
+
export interface MeState {
|
|
3
|
+
/** The vault's package is on. */
|
|
4
|
+
vault: boolean;
|
|
5
|
+
/** The pages of extensions that are the user's own (WebView.group `me`), by id. */
|
|
6
|
+
own: string[];
|
|
7
|
+
/** A new version of Ta waits for a restart. */
|
|
8
|
+
update: boolean;
|
|
9
|
+
/** The page can be installed as an app and is not one yet. */
|
|
10
|
+
installable: boolean;
|
|
11
|
+
/** The phone app, signed in to an account. */
|
|
12
|
+
switchAccount: boolean;
|
|
13
|
+
/** A computer's browser, which pairs phones (neither the app nor a phone). */
|
|
14
|
+
pairPhone: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The rows of Me, as WeChat's: what is the user's (the double's look, their devices, the model accounts, the vault),
|
|
18
|
+
* the pages extensions add there, the settings (with what waits for the user: a new version, installing the app), and
|
|
19
|
+
* leaving. What only sets something (the theme, the language, the extensions, the keys, about) is in the settings
|
|
20
|
+
* alone, one tap away (docs/design/ta-me.md 9).
|
|
21
|
+
*/
|
|
22
|
+
export declare namespace MeUtil {
|
|
23
|
+
function keys(state: MeState): string[][];
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=me-rows.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MeUtil = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* The rows of Me, as WeChat's: what is the user's (the double's look, their devices, the model accounts, the vault),
|
|
6
|
+
* the pages extensions add there, the settings (with what waits for the user: a new version, installing the app), and
|
|
7
|
+
* leaving. What only sets something (the theme, the language, the extensions, the keys, about) is in the settings
|
|
8
|
+
* alone, one tap away (docs/design/ta-me.md 9).
|
|
9
|
+
*/
|
|
10
|
+
var MeUtil;
|
|
11
|
+
(function (MeUtil) {
|
|
12
|
+
function keys(state) {
|
|
13
|
+
return [
|
|
14
|
+
['look', 'devices', ...(state.pairPhone ? ['relay'] : []), 'accounts', ...(state.vault ? ['vault'] : [])],
|
|
15
|
+
state.own.map(id => `page:${id}`),
|
|
16
|
+
['settings', ...(state.update ? ['restart'] : []), ...(state.installable ? ['install'] : [])],
|
|
17
|
+
[...(state.switchAccount ? ['switchAccount'] : []), 'signOut'],
|
|
18
|
+
].filter(group => group.length > 0);
|
|
19
|
+
}
|
|
20
|
+
MeUtil.keys = keys;
|
|
21
|
+
})(MeUtil || (exports.MeUtil = MeUtil = {}));
|
|
22
|
+
//# sourceMappingURL=me-rows.js.map
|
|
@@ -2,7 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import type { SettingsSection } from './settings-view';
|
|
3
3
|
/**
|
|
4
4
|
* Me, the last tab of a phone, as in a messaging app: the user's profile (their picture, name and account, which it
|
|
5
|
-
* opens), the machine in use and whether the app is connected, then the entries the rail of a computer has in the menu
|
|
5
|
+
* opens), the machine in use and whether the app is connected, then the entries the rail of a computer has in the menu
|
|
6
|
+
* of its account (MeUtil.keys): what is the user's, the pages of extensions, the settings, leaving.
|
|
6
7
|
*/
|
|
7
8
|
export declare function MeView({ onSettings }: {
|
|
8
9
|
onSettings(section?: SettingsSection): void;
|
|
@@ -42,7 +42,8 @@ const icon_1 = require("./icon");
|
|
|
42
42
|
const list_rows_1 = require("./list-rows");
|
|
43
43
|
/**
|
|
44
44
|
* Me, the last tab of a phone, as in a messaging app: the user's profile (their picture, name and account, which it
|
|
45
|
-
* opens), the machine in use and whether the app is connected, then the entries the rail of a computer has in the menu
|
|
45
|
+
* opens), the machine in use and whether the app is connected, then the entries the rail of a computer has in the menu
|
|
46
|
+
* of its account (MeUtil.keys): what is the user's, the pages of extensions, the settings, leaving.
|
|
46
47
|
*/
|
|
47
48
|
function MeView({ onSettings }) {
|
|
48
49
|
var _a, _b;
|
|
@@ -66,7 +67,7 @@ function MeView({ onSettings }) {
|
|
|
66
67
|
React.createElement(icon_1.Icon, { icon: lucide_react_1.ChevronRight, size: 18, className: "ta-list-chevron" })),
|
|
67
68
|
groups
|
|
68
69
|
.filter(group => group.length > 0)
|
|
69
|
-
.map(group => (React.createElement(list_rows_1.ListGroup, { key: group[0].key }, group.map(entry =>
|
|
70
|
+
.map(group => (React.createElement(list_rows_1.ListGroup, { key: group[0].key }, group.map(entry => (React.createElement(list_rows_1.ListRow, { key: entry.key, icon: entry.danger ? undefined : entry.icon, label: entry.label, detail: entry.detail, danger: entry.danger, action: entry.danger || entry.action, onClick: entry.run })))))))),
|
|
70
71
|
React.createElement(account_menu_1.AccountDialogs, { dialog: dialog, onClose: () => setDialog(undefined), onDialog: setDialog })));
|
|
71
72
|
}
|
|
72
73
|
//# sourceMappingURL=me-view.js.map
|
|
@@ -44,6 +44,7 @@ const React = __importStar(require("react"));
|
|
|
44
44
|
const extension_view_1 = require("../extension/extension-view");
|
|
45
45
|
const use_t_1 = require("../i18n/use-t");
|
|
46
46
|
const code_renderers_1 = require("../markdown/code-renderers");
|
|
47
|
+
const call_transcript_1 = require("../util/call-transcript");
|
|
47
48
|
const message_1 = require("../util/message");
|
|
48
49
|
const process_1 = require("../util/process");
|
|
49
50
|
const progress_1 = require("../util/progress");
|
|
@@ -84,11 +85,14 @@ function quiet(item) {
|
|
|
84
85
|
function endsInSteps(item) {
|
|
85
86
|
return (item === null || item === void 0 ? void 0 : item.kind) === 'turn' && item.steps.length > 0 && !item.reply.length;
|
|
86
87
|
}
|
|
87
|
-
function Turn({ item, tools, mood, status, latest, unsure, }) {
|
|
88
|
+
function Turn({ item, tools, mood, status, latest, unsure, spoken, }) {
|
|
88
89
|
const compacted = process_1.ProcessUtil.compaction(item);
|
|
89
90
|
if (compacted !== undefined) {
|
|
90
91
|
return React.createElement(CompactionBreak, { summary: compacted, tokens: message_1.MessageUtil.usage(item.messages).input });
|
|
91
92
|
}
|
|
93
|
+
if (spoken) {
|
|
94
|
+
return React.createElement(SpokenTurn, { item: item, tools: tools, mood: mood, status: status });
|
|
95
|
+
}
|
|
92
96
|
return React.createElement(WorkTurn, { item: item, tools: tools, mood: mood, status: status, latest: latest, unsure: unsure });
|
|
93
97
|
}
|
|
94
98
|
/** `unsure`: the conversation shows as this device kept it, before it is the session's of now; how the turn ended may be over. */
|
|
@@ -117,6 +121,32 @@ function WorkTurn({ item, tools, mood, status, latest, unsure, }) {
|
|
|
117
121
|
!item.active && React.createElement(message_footer_1.TurnFooter, { messages: item.messages, last: item.last, reply: reply, session: session, latest: latest }),
|
|
118
122
|
menu));
|
|
119
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* What Ta said in a call, as a messenger shows it (CallTranscript): its face beside its words, what it did on the way
|
|
126
|
+
* folded above them. A turn the user cut short says nothing of it: they spoke, as one does on the phone; one that failed
|
|
127
|
+
* says so.
|
|
128
|
+
*/
|
|
129
|
+
function SpokenTurn({ item, tools, mood, status }) {
|
|
130
|
+
var _a;
|
|
131
|
+
const t = (0, use_t_1.useT)();
|
|
132
|
+
const session = React.useContext(exports.ConversationSession);
|
|
133
|
+
const reply = item.reply.join('\n\n').trim();
|
|
134
|
+
const { errorMessage } = ((_a = item.last) !== null && _a !== void 0 ? _a : {});
|
|
135
|
+
const [menu, onContextMenu] = (0, message_menu_1.useMessageMenu)({
|
|
136
|
+
kind: 'turn',
|
|
137
|
+
last: item.active ? undefined : item.last,
|
|
138
|
+
reply: item.active ? '' : reply,
|
|
139
|
+
session,
|
|
140
|
+
messages: item.messages,
|
|
141
|
+
});
|
|
142
|
+
return (React.createElement("div", { className: `ta-message ta-assistant ta-turn-spoken ${item.active ? 'ta-turn-live' : ''}`, onContextMenu: onContextMenu },
|
|
143
|
+
React.createElement(TurnAvatar, { mood: mood }),
|
|
144
|
+
React.createElement("div", { className: "ta-spoken-body" },
|
|
145
|
+
(item.steps.length > 0 || status) && (React.createElement(message_steps_1.Process, { steps: item.steps, active: item.active, results: message_1.MessageUtil.results(item.messages), tools: tools, status: status })),
|
|
146
|
+
item.reply.map((text, index) => (React.createElement(markdown_1.Markdown, { key: index, text: text, streaming: item.active && index === item.reply.length - 1 }))),
|
|
147
|
+
!item.active && message_1.MessageUtil.stopReason(item.last) === 'error' && (React.createElement(callout_1.Callout, { level: "error" }, (errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.trim()) || t('ta.message.failedUnknown')))),
|
|
148
|
+
menu));
|
|
149
|
+
}
|
|
120
150
|
/** How long a turn that just ended without a reply waits before it says so: an agent that goes on by itself does within it. */
|
|
121
151
|
const HOLD_MS = 8000;
|
|
122
152
|
/**
|
|
@@ -211,9 +241,10 @@ function Message({ item }) {
|
|
|
211
241
|
* One item of the conversation. The store replaces only the message that changed, so an item draws
|
|
212
242
|
* again only when one of its messages did, or, while ta is at it, when a tool run did.
|
|
213
243
|
*/
|
|
214
|
-
const ThreadRow = React.memo(function ThreadRow({ item, tools, mood, status, latest, unsure, }) {
|
|
215
|
-
return item.kind === 'turn' ? React.createElement(Turn, { item: item, tools: tools, mood: mood, status: status, latest: latest, unsure: unsure }) : React.createElement(Message, { item: item });
|
|
244
|
+
const ThreadRow = React.memo(function ThreadRow({ item, tools, mood, status, latest, unsure, spoken, }) {
|
|
245
|
+
return item.kind === 'turn' ? (React.createElement(Turn, { item: item, tools: tools, mood: mood, status: status, latest: latest, unsure: unsure, spoken: spoken })) : (React.createElement(Message, { item: item }));
|
|
216
246
|
}, (previous, next) => previous.mood === next.mood &&
|
|
247
|
+
previous.spoken === next.spoken &&
|
|
217
248
|
previous.unsure === next.unsure &&
|
|
218
249
|
previous.status === next.status &&
|
|
219
250
|
previous.latest === next.latest &&
|
|
@@ -276,7 +307,14 @@ function useThreadRows(items, rows) {
|
|
|
276
307
|
/** The conversation; tool results show with the calls they answer. `rows`: only its latest rows are drawn, more as asked. */
|
|
277
308
|
function MessageList({ state, outbox, rows }) {
|
|
278
309
|
const renderers = React.useContext(extension_view_1.MessageRenderers);
|
|
279
|
-
const
|
|
310
|
+
const session = React.useContext(exports.ConversationSession);
|
|
311
|
+
const callGroup = React.useContext(extension_view_1.CallGroup);
|
|
312
|
+
// A conversation a call was answered in shows as the record of the call.
|
|
313
|
+
const spoken = !!(session === null || session === void 0 ? void 0 : session.group) && session.group === callGroup;
|
|
314
|
+
const items = React.useMemo(() => {
|
|
315
|
+
const all = process_1.ProcessUtil.items(state.messages, state.working, state.start, renderers, state.head);
|
|
316
|
+
return spoken ? call_transcript_1.CallTranscript.items(all) : all;
|
|
317
|
+
}, [state.messages, state.working, state.start, renderers, state.head, spoken]);
|
|
280
318
|
const breaks = React.useMemo(() => process_1.ProcessUtil.timeBreaks(process_1.ProcessUtil.starts(items), index => process_1.ProcessUtil.shown(items[index], renderers)), [items, renderers]);
|
|
281
319
|
const models = React.useMemo(() => process_1.ProcessUtil.modelBreaks(items), [items]);
|
|
282
320
|
// A turn's cards know what the user said after it: a choice they asked for is made.
|
|
@@ -296,11 +334,13 @@ function MessageList({ state, outbox, rows }) {
|
|
|
296
334
|
const status = state.working || state.compacting ? React.createElement(run_status_1.RunStatus, { state: state }) : undefined;
|
|
297
335
|
const onHead = status && quiet(last);
|
|
298
336
|
return (React.createElement(message_user_1.Outbox.Provider, { value: sent },
|
|
299
|
-
items.map((item, index) => index < shown.from ? null : (React.createElement("div", { key: item.key, "data-row": item.key, className: shown.className(index, item.kind === 'message' && item.message.role === 'user' && conversation_scroll_util_1.ASK_CLASS
|
|
337
|
+
items.map((item, index) => index < shown.from ? null : (React.createElement("div", { key: item.key, "data-row": item.key, className: shown.className(index, [spoken && 'ta-spoken', item.kind === 'message' && item.message.role === 'user' && conversation_scroll_util_1.ASK_CLASS]
|
|
338
|
+
.filter(Boolean)
|
|
339
|
+
.join(' ')) },
|
|
300
340
|
breaks[index] !== undefined && React.createElement(message_footer_1.TimeBreak, { timestamp: breaks[index] }),
|
|
301
341
|
models[index] && React.createElement(message_footer_1.ModelBreak, { model: models[index] }),
|
|
302
342
|
React.createElement(code_renderers_1.CodeAnswer.Provider, { value: answers[index] },
|
|
303
|
-
React.createElement(ThreadRow, { item: item, tools: state.tools, mood: item.kind === 'turn' && !(unsure && index === lastTurn) ? process_1.ProcessUtil.mood(item, index === lastTurn, waiting) : 'idle', status: onHead && item === last ? status : undefined, latest: index === lastTurn, unsure: unsure && index === lastTurn }))))),
|
|
343
|
+
React.createElement(ThreadRow, { item: item, tools: state.tools, mood: item.kind === 'turn' && !(unsure && index === lastTurn) ? process_1.ProcessUtil.mood(item, index === lastTurn, waiting) : 'idle', status: onHead && item === last ? status : undefined, latest: index === lastTurn, unsure: unsure && index === lastTurn, spoken: spoken }))))),
|
|
304
344
|
status && !onHead && React.createElement("div", { className: `ta-run-line ${endsInSteps(last) ? 'ta-run-steps' : ''}` }, status)));
|
|
305
345
|
}
|
|
306
346
|
//# sourceMappingURL=message-list.js.map
|
|
@@ -57,6 +57,17 @@ const SummaryStep = React.memo(function SummaryStep({ text }) {
|
|
|
57
57
|
React.createElement(icon_1.Icon, { icon: lucide_react_1.ChevronRight, size: 14, className: "ta-step-chevron" })),
|
|
58
58
|
open && React.createElement("div", { className: "ta-thinking-text" }, text)));
|
|
59
59
|
});
|
|
60
|
+
/** What it wrote of the pictures attached, for Ta to keep: one quiet line, which opens to a line for each picture. */
|
|
61
|
+
const PicturesStep = React.memo(function PicturesStep({ told }) {
|
|
62
|
+
const t = (0, use_t_1.useT)();
|
|
63
|
+
const [open, setOpen] = React.useState(false);
|
|
64
|
+
return (React.createElement("div", { className: "ta-step-summary ta-step-pictures" },
|
|
65
|
+
React.createElement("button", { type: "button", className: "ta-step-toggle", "aria-expanded": open, onClick: () => setOpen(!open) },
|
|
66
|
+
React.createElement("span", { className: "ta-status ta-status-thought" }),
|
|
67
|
+
React.createElement("span", { className: "ta-step-tag" }, t('ta.message.picturesSeen', { count: told.length })),
|
|
68
|
+
React.createElement(icon_1.Icon, { icon: lucide_react_1.ChevronRight, size: 14, className: "ta-step-chevron" })),
|
|
69
|
+
open && (React.createElement("div", { className: "ta-thinking-text" }, told.map(([at, what]) => (React.createElement("div", { key: at }, t('ta.message.pictureSeen', { n: at, what }))))))));
|
|
70
|
+
});
|
|
60
71
|
/** A request that failed on the way, the work going on after it: one quiet line, which opens to the error. */
|
|
61
72
|
const ErrorStep = React.memo(function ErrorStep({ text }) {
|
|
62
73
|
const t = (0, use_t_1.useT)();
|
|
@@ -104,6 +115,8 @@ function Step({ step, results, tools, tagged, streaming, }) {
|
|
|
104
115
|
return React.createElement(TextStep, { text: step.text, streaming: streaming });
|
|
105
116
|
case 'summary':
|
|
106
117
|
return React.createElement(SummaryStep, { text: step.text });
|
|
118
|
+
case 'pictures':
|
|
119
|
+
return React.createElement(PicturesStep, { told: step.told });
|
|
107
120
|
case 'error':
|
|
108
121
|
return React.createElement(ErrorStep, { text: step.text });
|
|
109
122
|
case 'said':
|
|
@@ -58,7 +58,7 @@ function arrangeViews(views, onOpen, setting, handheld, infoOf, kinds) {
|
|
|
58
58
|
return view => (arranged.nav.includes(view) ? 'navigation' : arranged.discover.includes(view) ? 'discover' : 'list');
|
|
59
59
|
}
|
|
60
60
|
/** The groups of Discover, in their order: each a card of its own. */
|
|
61
|
-
exports.DISCOVER_GROUPS = ['people', 'work', 'share', 'more'];
|
|
61
|
+
exports.DISCOVER_GROUPS = ['people', 'work', 'share', 'tools', 'play', 'more'];
|
|
62
62
|
/** The pages under Discover by group (WebView.group, `more` without one or with one it does not know), in the order of DISCOVER_GROUPS; empty ones left out. */
|
|
63
63
|
function discoverGroups(pages) {
|
|
64
64
|
const of = (page) => (page.group && exports.DISCOVER_GROUPS.includes(page.group) ? page.group : 'more');
|
|
@@ -53,6 +53,7 @@ const swipe_row_1 = require("./swipe-row");
|
|
|
53
53
|
*/
|
|
54
54
|
function PartnerRow({ partner, time, selected, open, pinned, onPin, }) {
|
|
55
55
|
var _a, _b;
|
|
56
|
+
var _c;
|
|
56
57
|
const t = (0, use_t_1.useT)();
|
|
57
58
|
const [menu, openMenu] = (0, context_menu_1.useContextMenu)();
|
|
58
59
|
const [opening, setOpening] = React.useState(false);
|
|
@@ -91,6 +92,6 @@ function PartnerRow({ partner, time, selected, open, pinned, onPin, }) {
|
|
|
91
92
|
React.createElement(Own, { size: 38 }))) : (React.createElement("span", { className: "ta-chat-avatar ta-chat-icon", style: { background: `var(--ta-tint-${partner.tone})`, color: `var(--ta-tint-ink-${partner.tone})`, width: 38, height: 38 }, "aria-hidden": "true" }, opening ? React.createElement("span", { className: "ta-spinner" }) : React.createElement(Glyph, { size: 18, strokeWidth: 1.8 }))),
|
|
92
93
|
partner.online && React.createElement("span", { className: "ta-partner-online", "aria-hidden": "true" }),
|
|
93
94
|
React.createElement(chat_list_row_1.ChatDot, { unseen: unseen, asks: asks })),
|
|
94
|
-
React.createElement(chat_home_1.RowText, { title: partner.name, time: time, line: partners_util_1.PartnersUtil.line(partner, t('ta.partners.waiting')), unseen: unseen, busy: !partner.status && !!((_b = partner.chat) === null || _b === void 0 ? void 0 : _b.busy), tag: partner.location ? React.createElement(host_tag_1.HostTag, { location: partner.location }) : undefined, badge: partner.friends ? t('ta.partners.withFriends') : undefined }))));
|
|
95
|
+
React.createElement(chat_home_1.RowText, { title: partner.name, time: time, line: partners_util_1.PartnersUtil.line(partner, t('ta.partners.waiting')), unseen: unseen, busy: !partner.status && !!((_b = partner.chat) === null || _b === void 0 ? void 0 : _b.busy), tag: partner.location ? React.createElement(host_tag_1.HostTag, { location: partner.location }) : undefined, badge: (_c = partner.label) !== null && _c !== void 0 ? _c : (partner.friends ? t('ta.partners.withFriends') : undefined) }))));
|
|
95
96
|
}
|
|
96
97
|
//# sourceMappingURL=partner-row.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TaJoinedDeployment, TaRelayFeature, TaRelayProbe, TaRelayService, TaRelayTypeInfo } from '@celljs/ta-protocol';
|
|
1
|
+
import type { TaJoinedDeployment, TaRelayFeature, TaRelayProbe, TaRelayService, TaRelays, TaRelayTypeInfo } from '@celljs/ta-protocol';
|
|
2
2
|
import { type LucideIcon } from 'lucide-react';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { useT } from '../i18n/use-t';
|
|
@@ -11,14 +11,20 @@ export declare namespace RelayServicesUtil {
|
|
|
11
11
|
function serves(service: TaRelayService, feature: TaRelayFeature): boolean;
|
|
12
12
|
/** The icon of a service: the official relay, a relay, a folder, a store by the icon its package gave its type. */
|
|
13
13
|
function icon(service: TaRelayService, types?: readonly TaRelayTypeInfo[]): LucideIcon;
|
|
14
|
+
/** The ways of the phones, in order: as the computer lists them, else the relay of `devices` alone. */
|
|
15
|
+
function routes(relays: TaRelays): string[];
|
|
16
|
+
/** The ways of the phones as relays.json keeps them: `direct` first while it is on. */
|
|
17
|
+
function withDirect(relays: TaRelays, ids: readonly string[], on?: boolean): string[];
|
|
18
|
+
/** The ways with the one at `index` tried one earlier. */
|
|
19
|
+
function earlier(routes: readonly string[], index: number): string[];
|
|
14
20
|
/** What a deployment is called: its name, else the host of the address it was joined by. */
|
|
15
21
|
function deploymentName(deployment: TaJoinedDeployment): string;
|
|
16
22
|
function host(url: string): string;
|
|
17
23
|
/** A name for the cloud workspace of a deployment's gateway (ta://<name>): its first label, as TaLocation takes it. */
|
|
18
24
|
function cloudName(gateway: string): string;
|
|
19
25
|
function iconNamed(name: string | undefined): LucideIcon;
|
|
20
|
-
/**
|
|
21
|
-
function
|
|
26
|
+
/** Where a relay is and whether it answers, short enough for a phone beside its controls. */
|
|
27
|
+
function brief(service: TaRelayService, probe: TaRelayProbe | undefined, t: ReturnType<typeof useT>): string;
|
|
22
28
|
}
|
|
23
29
|
/**
|
|
24
30
|
* The relays of relays.json (docs/design/ta-relays.md) and which one each feature uses: phones that reach this
|
|
@@ -42,8 +42,13 @@ const use_t_1 = require("../i18n/use-t");
|
|
|
42
42
|
const icon_1 = require("./icon");
|
|
43
43
|
const remote_hosts_1 = require("./remote-hosts");
|
|
44
44
|
const settings_controls_1 = require("./settings-controls");
|
|
45
|
-
/**
|
|
46
|
-
const
|
|
45
|
+
/** In `use.devices`, the direct connection of a phone to this computer (DIRECT_ROUTE of ta-relay). */
|
|
46
|
+
const DIRECT = 'direct';
|
|
47
|
+
/**
|
|
48
|
+
* The features that go through one relay, in the order the settings list them, after the ways of the phones
|
|
49
|
+
* (DeviceRoutes); where sync goes is chosen in its own settings (ta-sync).
|
|
50
|
+
*/
|
|
51
|
+
const FEATURES = ['share', 'rooms'];
|
|
47
52
|
var RelayServicesUtil;
|
|
48
53
|
(function (RelayServicesUtil) {
|
|
49
54
|
/** What a service is called: the official relay, its name, else its host or its folder. */
|
|
@@ -83,6 +88,30 @@ var RelayServicesUtil;
|
|
|
83
88
|
return iconNamed((_a = types.find(each => each.type === service.type)) === null || _a === void 0 ? void 0 : _a.icon);
|
|
84
89
|
}
|
|
85
90
|
RelayServicesUtil.icon = icon;
|
|
91
|
+
/** The ways of the phones, in order: as the computer lists them, else the relay of `devices` alone. */
|
|
92
|
+
function routes(relays) {
|
|
93
|
+
var _a;
|
|
94
|
+
const listed = ((_a = relays.routes) === null || _a === void 0 ? void 0 : _a.length) ? relays.routes : [relays.use.devices];
|
|
95
|
+
return listed.filter(id => relays.relays.some(relay => relay.id === id && relay.type === 'ta-relay'));
|
|
96
|
+
}
|
|
97
|
+
RelayServicesUtil.routes = routes;
|
|
98
|
+
/** The ways of the phones as relays.json keeps them: `direct` first while it is on. */
|
|
99
|
+
function withDirect(relays, ids, on) {
|
|
100
|
+
var _a;
|
|
101
|
+
var _b;
|
|
102
|
+
if (on === void 0) { on = (_b = (_a = relays.direct) === null || _a === void 0 ? void 0 : _a.on) !== null && _b !== void 0 ? _b : false; }
|
|
103
|
+
return [...(on ? [DIRECT] : []), ...ids.filter(id => id !== DIRECT)];
|
|
104
|
+
}
|
|
105
|
+
RelayServicesUtil.withDirect = withDirect;
|
|
106
|
+
/** The ways with the one at `index` tried one earlier. */
|
|
107
|
+
function earlier(routes, index) {
|
|
108
|
+
const next = [...routes];
|
|
109
|
+
if (index > 0 && index < next.length) {
|
|
110
|
+
[next[index - 1], next[index]] = [next[index], next[index - 1]];
|
|
111
|
+
}
|
|
112
|
+
return next;
|
|
113
|
+
}
|
|
114
|
+
RelayServicesUtil.earlier = earlier;
|
|
86
115
|
/** What a deployment is called: its name, else the host of the address it was joined by. */
|
|
87
116
|
function deploymentName(deployment) {
|
|
88
117
|
var _a;
|
|
@@ -112,38 +141,20 @@ var RelayServicesUtil;
|
|
|
112
141
|
return name === 'Database' ? lucide_react_1.Database : name === 'GitBranch' ? lucide_react_1.GitBranch : name === 'HardDrive' ? lucide_react_1.HardDrive : name === 'Server' ? lucide_react_1.Server : lucide_react_1.Cloud;
|
|
113
142
|
}
|
|
114
143
|
RelayServicesUtil.iconNamed = iconNamed;
|
|
115
|
-
/**
|
|
116
|
-
function
|
|
117
|
-
var _a, _b;
|
|
144
|
+
/** Where a relay is and whether it answers, short enough for a phone beside its controls. */
|
|
145
|
+
function brief(service, probe, t) {
|
|
118
146
|
const host = where(service);
|
|
119
|
-
if (service.type === 'folder') {
|
|
120
|
-
return probe && !probe.online ? `${host} · ${(_a = probe.error) !== null && _a !== void 0 ? _a : t('ta.relays.offline')}` : `${host} · ${t('ta.relays.folderOnly')}`;
|
|
121
|
-
}
|
|
122
|
-
if (service.type !== 'ta-relay') {
|
|
123
|
-
if (service.unavailable) {
|
|
124
|
-
return `${service.type} · ${t('ta.relays.unavailable')}`;
|
|
125
|
-
}
|
|
126
|
-
if (probe && !probe.online) {
|
|
127
|
-
return `${host} · ${(_b = probe.error) !== null && _b !== void 0 ? _b : t('ta.relays.offline')}`;
|
|
128
|
-
}
|
|
129
|
-
return [host, (probe === null || probe === void 0 ? void 0 : probe.ms) !== undefined ? t('ta.relays.online', { ms: probe.ms }) : undefined, t('ta.relays.storeOnly')].filter(Boolean).join(' · ');
|
|
130
|
-
}
|
|
131
147
|
if (!probe) {
|
|
132
148
|
return host;
|
|
133
149
|
}
|
|
134
150
|
if (!probe.online) {
|
|
135
151
|
return `${host} · ${t('ta.relays.offline')}`;
|
|
136
152
|
}
|
|
137
|
-
const
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
if (probe.limits && !probe.legacy) {
|
|
142
|
-
parts.push(t('ta.relays.limits', { members: probe.limits.hubMembers, state: Math.round(probe.limits.hubStateBytes / 1024 / 1024) }));
|
|
143
|
-
}
|
|
144
|
-
return parts.join(' · ');
|
|
153
|
+
const answers = probe.ms !== undefined ? t('ta.relays.online', { ms: probe.ms }) : t('ta.relays.onlineNoTime');
|
|
154
|
+
// A relay that keeps group chats in memory loses them when it restarts: worth saying.
|
|
155
|
+
return [host, answers, probe.persistent === false ? t('ta.relays.memory') : undefined].filter(Boolean).join(' · ');
|
|
145
156
|
}
|
|
146
|
-
RelayServicesUtil.
|
|
157
|
+
RelayServicesUtil.brief = brief;
|
|
147
158
|
})(RelayServicesUtil || (exports.RelayServicesUtil = RelayServicesUtil = {}));
|
|
148
159
|
/**
|
|
149
160
|
* The relays of relays.json (docs/design/ta-relays.md) and which one each feature uses: phones that reach this
|
|
@@ -203,10 +214,7 @@ function RelayServices() {
|
|
|
203
214
|
if (!relays) {
|
|
204
215
|
return null;
|
|
205
216
|
}
|
|
206
|
-
const used = new Set(Object.values(relays.use));
|
|
207
|
-
const types = (_a = relays.types) !== null && _a !== void 0 ? _a : [];
|
|
208
|
-
// Folders and stores are places of sync, chosen and removed there.
|
|
209
|
-
const shown = relays.relays.filter(relay => relay.type === 'ta-relay');
|
|
217
|
+
const used = new Set([...Object.values(relays.use), ...((_a = relays.routes) !== null && _a !== void 0 ? _a : [])]);
|
|
210
218
|
return (React.createElement(React.Fragment, null,
|
|
211
219
|
React.createElement(Deployment, { relays: relays, changed: listed => {
|
|
212
220
|
var _a;
|
|
@@ -221,9 +229,9 @@ function RelayServices() {
|
|
|
221
229
|
React.createElement("select", { className: "ta-input ta-select", "aria-label": t(`ta.relays.feature.${feature}`), disabled: busy !== undefined, value: (_a = relays.use[feature]) !== null && _a !== void 0 ? _a : '', onChange: event => void run(feature, async () => setRelays(await bench.relay.chooseRelay(feature, event.target.value || null))) }, relays.relays
|
|
222
230
|
.filter(relay => RelayServicesUtil.serves(relay, feature) || relays.use[feature] === relay.id)
|
|
223
231
|
.map(relay => (React.createElement("option", { key: relay.id, value: relay.id }, RelayServicesUtil.label(relay, t))))))); }),
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
232
|
+
React.createElement(DeviceRoutes, { relays: relays, probes: probes, busy: busy !== undefined, chooseWays: ids => void run('devices', async () => setRelays(await bench.relay.chooseRelay('devices', ids))), choose: ids => void run('devices', async () => setRelays(await bench.relay.chooseRelay('devices', RelayServicesUtil.withDirect(relays, ids)))), remove: relay => !relay.builtin && relay.id !== 'relay-json' && !used.has(relay.id)
|
|
233
|
+
? () => void run(relay.id, () => bench.relay.removeRelay(relay.id))
|
|
234
|
+
: undefined }),
|
|
227
235
|
React.createElement(settings_controls_1.Row, { label: t('ta.relays.add'), description: t('ta.relays.addHint'), stacked: true },
|
|
228
236
|
React.createElement("form", { className: "ta-trusted-add", onSubmit: event => {
|
|
229
237
|
event.preventDefault();
|
|
@@ -237,6 +245,36 @@ function RelayServices() {
|
|
|
237
245
|
React.createElement(settings_controls_1.Row, { icon: lucide_react_1.RefreshCw, label: t('ta.relays.syncElsewhere'), description: t('ta.relays.syncElsewhereHint') }),
|
|
238
246
|
React.createElement(settings_controls_1.Row, { icon: lucide_react_1.FileJson, label: t('ta.relays.file'), description: React.createElement("span", { className: "ta-path" }, relays.file) })));
|
|
239
247
|
}
|
|
248
|
+
/**
|
|
249
|
+
* The relays, as the ways of the phones to this computer (docs/design/ta-relays.md 12): each relay a row with whether it
|
|
250
|
+
* answers, on or off for phones and moved earlier by its arrow, the phones trying them in that order and keeping the first
|
|
251
|
+
* that connects; one stays on. A relay nothing uses can be removed. Folders and stores are places of sync, listed there.
|
|
252
|
+
*/
|
|
253
|
+
function DeviceRoutes({ relays, probes, busy, choose, chooseWays, remove, }) {
|
|
254
|
+
const t = (0, use_t_1.useT)();
|
|
255
|
+
const routes = RelayServicesUtil.routes(relays);
|
|
256
|
+
const all = relays.relays.filter(relay => relay.type === 'ta-relay');
|
|
257
|
+
const ordered = [...routes.flatMap(id => all.filter(relay => relay.id === id)), ...all.filter(relay => !routes.includes(relay.id))];
|
|
258
|
+
return (React.createElement(React.Fragment, null,
|
|
259
|
+
React.createElement(settings_controls_1.Row, { label: t('ta.relays.feature.devices'), description: t('ta.relays.feature.devicesHint') }),
|
|
260
|
+
relays.direct && (React.createElement(settings_controls_1.Row, { icon: lucide_react_1.Zap, label: t('ta.relays.direct'), description: relays.direct.available ? t('ta.relays.directHint') : t('ta.relays.directUnavailable') },
|
|
261
|
+
React.createElement(settings_controls_1.Switch, { checked: relays.direct.on && relays.direct.available, label: t('ta.relays.direct'), disabled: busy || !relays.direct.available, onChange: on => chooseWays(RelayServicesUtil.withDirect(relays, routes, on)) }))),
|
|
262
|
+
ordered.map(relay => {
|
|
263
|
+
var _a;
|
|
264
|
+
const at = routes.indexOf(relay.id);
|
|
265
|
+
const name = RelayServicesUtil.label(relay, t);
|
|
266
|
+
const removing = remove(relay);
|
|
267
|
+
return (React.createElement(settings_controls_1.Row, { key: relay.id, icon: RelayServicesUtil.icon(relay, relays.types), label: name, description: React.createElement("span", { className: "ta-remote-state" },
|
|
268
|
+
React.createElement("span", { className: `ta-remote-light${((_a = probes[relay.id]) === null || _a === void 0 ? void 0 : _a.online) ? ' ta-on' : ''}` }),
|
|
269
|
+
[
|
|
270
|
+
at >= 0 ? t('ta.relays.routeAt', { n: at + 1 }) : t('ta.relays.routeOff'),
|
|
271
|
+
RelayServicesUtil.brief(relay, probes[relay.id], t),
|
|
272
|
+
].join(' · ')) },
|
|
273
|
+
removing && React.createElement(icon_1.IconButton, { icon: lucide_react_1.Trash2, label: t('ta.relays.remove', { name }), disabled: busy, onClick: removing }),
|
|
274
|
+
at > 0 && (React.createElement(icon_1.IconButton, { icon: lucide_react_1.ArrowUp, label: t('ta.relays.routeUp', { name }), disabled: busy, onClick: () => choose(RelayServicesUtil.earlier(routes, at)) })),
|
|
275
|
+
React.createElement(settings_controls_1.Switch, { checked: at >= 0, label: t('ta.relays.routeUse', { name }), disabled: busy || (at >= 0 && routes.length === 1), onChange: on => choose(on ? [...routes, relay.id] : routes.filter(id => id !== relay.id)) })));
|
|
276
|
+
})));
|
|
277
|
+
}
|
|
240
278
|
/**
|
|
241
279
|
* A deployment of Ta, inside a company or outside it (docs/design/ta-deploy.md 8): joined by the address of any of its
|
|
242
280
|
* services, its relay is the default of what is new, and its gateway gives a Ta in the cloud to open, or its sandbox as a
|
|
@@ -38,6 +38,7 @@ const react_1 = require("@celljs/react");
|
|
|
38
38
|
const ta_protocol_1 = require("@celljs/ta-protocol");
|
|
39
39
|
const lucide_react_1 = require("lucide-react");
|
|
40
40
|
const React = __importStar(require("react"));
|
|
41
|
+
const call_face_1 = require("../assistant/call-face");
|
|
41
42
|
const voice_call_bar_1 = require("../assistant/voice-call-bar");
|
|
42
43
|
const device_1 = require("../device/device");
|
|
43
44
|
const drafts_protocol_1 = require("../drafts/drafts-protocol");
|
|
@@ -358,7 +359,7 @@ function SessionView({ store, server, workspace, info, onClosed, onActivity, lea
|
|
|
358
359
|
disabled: nothingSaid,
|
|
359
360
|
run: () => setFinding(count => count + 1),
|
|
360
361
|
},
|
|
361
|
-
...(callable ? [(0, voice_call_bar_1.callAction)(callState, call, t)] : []),
|
|
362
|
+
...(callable ? [(0, voice_call_bar_1.callAction)(callState, call, t), (0, voice_call_bar_1.videoCallAction)(callState, call, t)] : []),
|
|
362
363
|
],
|
|
363
364
|
...addons.actions,
|
|
364
365
|
], [actions, addons.actions, t, nothingSaid, callable, callState, call]);
|
|
@@ -380,6 +381,7 @@ function SessionView({ store, server, workspace, info, onClosed, onActivity, lea
|
|
|
380
381
|
info && (React.createElement("span", { className: "ta-muted ta-path", title: info.cwd }, message_1.MessageUtil.shortPath(info.cwd)))),
|
|
381
382
|
React.createElement(people_1.PeopleFaces, { people: viewing, size: 24, label: t('ta.presence.viewing') }),
|
|
382
383
|
trailing)),
|
|
384
|
+
React.createElement(call_face_1.CallFace, { state: callState, call: call }),
|
|
383
385
|
finding > 0 && React.createElement(conversation_find_1.ConversationFind, { store: store, state: state, rows: rows, scroller: scroller, focusKey: finding, onClose: closeFind }),
|
|
384
386
|
React.createElement("div", { className: "ta-scroll ta-conversation", ref: scroller },
|
|
385
387
|
React.createElement("div", { className: "ta-thread" },
|
|
@@ -66,7 +66,10 @@ exports.GROUP_ICONS = { model: lucide_react_1.Box, conversation: lucide_react_1.
|
|
|
66
66
|
/** The parts of the settings, in their order: by what the user looks for, not where a setting is kept. */
|
|
67
67
|
exports.SETTINGS_GROUPS = [
|
|
68
68
|
{ id: 'general', title: 'ta.settings.general' },
|
|
69
|
+
{ id: 'chats', title: 'ta.settings.part.chats' },
|
|
69
70
|
{ id: 'ta', title: 'ta.settings.agent' },
|
|
71
|
+
{ id: 'initiative', title: 'ta.settings.part.initiative' },
|
|
72
|
+
{ id: 'voice', title: 'ta.settings.part.voice' },
|
|
70
73
|
{ id: 'devices', title: 'ta.settings.devices' },
|
|
71
74
|
{ id: 'privacy', title: 'ta.settings.privacy' },
|
|
72
75
|
{ id: 'extensions', title: 'ta.packages' },
|