@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
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.ExtensionBoundary = exports.LoadedExtensions = exports.SessionMenus = exports.SessionAvatars = exports.ChatIcons = exports.ToolRenderers = exports.MessageRenderers = void 0;
|
|
36
|
+
exports.ExtensionBoundary = exports.LoadedExtensions = exports.SessionMenus = exports.CallGroup = exports.SessionAvatars = exports.ChatIcons = exports.ToolRenderers = exports.MessageRenderers = void 0;
|
|
37
37
|
exports.ExtensionPart = ExtensionPart;
|
|
38
38
|
exports.CustomMessage = CustomMessage;
|
|
39
39
|
const ta_protocol_1 = require("@celljs/ta-protocol");
|
|
@@ -50,6 +50,8 @@ exports.ToolRenderers = React.createContext([]);
|
|
|
50
50
|
exports.ChatIcons = React.createContext({ entries: [], version: 0 });
|
|
51
51
|
/** The avatars that web extensions registered for the sessions of their groups. */
|
|
52
52
|
exports.SessionAvatars = React.createContext({});
|
|
53
|
+
/** The group of the conversations calls are answered in (WebExtensionsState.callGroup): shown as the record of a call. */
|
|
54
|
+
exports.CallGroup = React.createContext(undefined);
|
|
53
55
|
/** What web extensions add to the menu of a conversation of a list (WebExtensionAPI.registerSessionMenu). */
|
|
54
56
|
exports.SessionMenus = React.createContext([]);
|
|
55
57
|
/** The web extensions loaded: what a message one of their packages sent as the user calls it (TaMessageSource). */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ImageContent, TaCallScene, TaVoiceBrainRef } from '@celljs/ta-protocol';
|
|
1
2
|
/** The conversation a call is with (WebCallPartner.open). */
|
|
2
3
|
export interface WebCallTarget {
|
|
3
4
|
sessionId: string;
|
|
@@ -7,6 +8,15 @@ export interface WebCallTarget {
|
|
|
7
8
|
double: boolean;
|
|
8
9
|
/** The language the user speaks in the call. */
|
|
9
10
|
language: string;
|
|
11
|
+
/** The device the user calls from: what they ask of their screen is done on its page. Newer than some apps. */
|
|
12
|
+
device?: 'phone' | 'tablet' | 'computer';
|
|
13
|
+
/**
|
|
14
|
+
* The model of the voice service answers the call itself (voices.json `brain`): the partner gives it a brain
|
|
15
|
+
* (WebCallSession.brain) rather than answering; `say` then fails, and the call asks the partner again without.
|
|
16
|
+
*/
|
|
17
|
+
voiced?: boolean;
|
|
18
|
+
/** How the call is for the user as it begins (a video call, their camera, how it shows; docs/design/ta-call.md 13). Newer than some apps. */
|
|
19
|
+
scene?: TaCallScene;
|
|
10
20
|
}
|
|
11
21
|
/**
|
|
12
22
|
* Who answers in a call in place of the conversation (WebExtensionAPI.registerCallPartner): a front that talks at
|
|
@@ -18,20 +28,30 @@ export interface WebCallPartner {
|
|
|
18
28
|
}
|
|
19
29
|
/** A call as its partner answers it, from when it starts until it ends. */
|
|
20
30
|
export interface WebCallSession {
|
|
21
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* What the user said; the reply to say. `sent`: it went to the conversation already, as it began the call.
|
|
33
|
+
* `images`: in a video call, what their camera sees now, when it changed (docs/design/ta-call.md 12).
|
|
34
|
+
*/
|
|
22
35
|
say(text: string, options?: {
|
|
23
36
|
sent?: boolean;
|
|
37
|
+
images?: ImageContent[];
|
|
24
38
|
}): Promise<string | undefined>;
|
|
25
39
|
/**
|
|
26
40
|
* What the user said so far, as they paused where they may be done: the partner answers it at once, to be said only
|
|
27
41
|
* if they were done (`keep`), dropped as they say more (`drop`), doing nothing until kept (docs/design/ta-call.md
|
|
28
42
|
* 10). Newer than some partners.
|
|
29
43
|
*/
|
|
30
|
-
draft?(text: string
|
|
44
|
+
draft?(text: string, options?: {
|
|
45
|
+
images?: ImageContent[];
|
|
46
|
+
}): WebCallDraft;
|
|
31
47
|
/** Whether the partner ended the call (asked to hang up): it ends once its last reply is said. */
|
|
32
48
|
ending?(): boolean;
|
|
33
49
|
/** What the partner says by itself (news of the work), asked again and again in a call; undefined after a while. */
|
|
34
50
|
next?(): Promise<string | undefined>;
|
|
51
|
+
/** Of a call `voiced`: the brain the voice service answers with (TaVoiceServer.openVoice). */
|
|
52
|
+
brain?: TaVoiceBrainRef;
|
|
53
|
+
/** How the call is for the user now, told as it changes (video or voice, the camera, how it shows). Newer than some partners. */
|
|
54
|
+
scene?(scene: TaCallScene): void;
|
|
35
55
|
close(): void;
|
|
36
56
|
}
|
|
37
57
|
/** An answer begun before the user was known to be done (WebCallSession.draft). */
|
|
@@ -43,4 +63,91 @@ export interface WebCallDraft {
|
|
|
43
63
|
/** The user said more: it stops and does nothing. */
|
|
44
64
|
drop(): void;
|
|
45
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Draws the mouth of the person of a video call as Ta speaks (WebExtensionAPI.registerCallMouth, docs/design/ta-call.md
|
|
68
|
+
* 12): told the sound of each reading as it comes and which frame of which clip shows at each moment of it, it gives
|
|
69
|
+
* the lower half of her face for those frames, drawn again for that sound, to lay over them as they show.
|
|
70
|
+
*/
|
|
71
|
+
export interface WebCallMouth {
|
|
72
|
+
/** For a video call that begins; undefined when it cannot draw now (not set up, or the page too far from it). */
|
|
73
|
+
open(): Promise<WebMouthSession | undefined>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Moves of the person of a video call an extension adds to Ta's own (WebExtensionAPI.registerCallMoves, docs/design/ta-call.md
|
|
77
|
+
* 16): clips the user made or filmed. They play as Ta's own do, through the same transitions; one named as a move of Ta's
|
|
78
|
+
* own, or of the same state, comes first, and Ta's own plays in its place when its clip cannot.
|
|
79
|
+
*/
|
|
80
|
+
export interface WebCallMoves {
|
|
81
|
+
/** The moves as a video call begins. */
|
|
82
|
+
moves(): Promise<WebCallMove[]>;
|
|
83
|
+
/** A move could not play (its clip did not load or decode): Ta's own plays in its place; the extension says why where the user manages them. */
|
|
84
|
+
failed?(name: string, reason: string): void;
|
|
85
|
+
}
|
|
86
|
+
/** A move a clip shows (WebCallMoves). */
|
|
87
|
+
export interface WebCallMove {
|
|
88
|
+
/** Its name: a move of Ta's own of that name (wave, nod…) gives way to it. */
|
|
89
|
+
name: string;
|
|
90
|
+
/** What the user calls it, in the list of what she can do. */
|
|
91
|
+
title?: string;
|
|
92
|
+
/**
|
|
93
|
+
* A loop of a state (listening, thinking, speaking: played at random while the call is so, before Ta's own); `say`:
|
|
94
|
+
* once, as she says one of its words; `after`: once she said it, as she listens (she may stand up).
|
|
95
|
+
*/
|
|
96
|
+
kind: 'listening' | 'thinking' | 'speaking' | 'say' | 'after';
|
|
97
|
+
/** The words that bring it (`say`, `after`), as she says them. */
|
|
98
|
+
words?: string[];
|
|
99
|
+
/** Its clip, a URL the page plays (a `blob:`): 24 frames a second, beginning and ending as she sits. */
|
|
100
|
+
url: string;
|
|
101
|
+
frames: number;
|
|
102
|
+
/** Of a clip she stands up in: where her seated picture is (x, y, width, height) and the box of her body `fps` times a second. */
|
|
103
|
+
framing?: {
|
|
104
|
+
rest: number[];
|
|
105
|
+
body: number[][];
|
|
106
|
+
fps: number;
|
|
107
|
+
};
|
|
108
|
+
/** Where her face is in each frame (x1, y1, x2, y2), for her mouth. */
|
|
109
|
+
boxes?: number[][];
|
|
110
|
+
}
|
|
111
|
+
/** The frame of a clip that shows at a moment of a reading: its name (faces/<clip>.mp4) and its frame. */
|
|
112
|
+
export type WebMouthSlot = [clip: string, frame: number];
|
|
113
|
+
/** A part of a frame drawn again: where it goes in the frame (pixels of the clip), soft at its edges. */
|
|
114
|
+
export interface WebMouthFrame {
|
|
115
|
+
clip: string;
|
|
116
|
+
frame: number;
|
|
117
|
+
box: [x: number, y: number, width: number, height: number];
|
|
118
|
+
image: CanvasImageSource;
|
|
119
|
+
}
|
|
120
|
+
/** The mouth of one video call (WebCallMouth.open), until it ends. */
|
|
121
|
+
export interface WebMouthSession {
|
|
122
|
+
/** How long a reading waits before it plays, in ms, so that its first frames are drawn as it begins. */
|
|
123
|
+
readonly holdMs: number;
|
|
124
|
+
/** Frames a moment of a reading has, a second: the slots are of each 1/fps of its sound. */
|
|
125
|
+
readonly fps: number;
|
|
126
|
+
/**
|
|
127
|
+
* While it starts (its models load): about how long until it draws, in ms, which a reading that begins meanwhile
|
|
128
|
+
* waits more, so that its mouth moves from its first word; 0 or undefined once it draws.
|
|
129
|
+
*/
|
|
130
|
+
readyIn?(): number;
|
|
131
|
+
/**
|
|
132
|
+
* More sound of the reading `say` (PCM16 mono at `rate`) and the slots it covers, in order from its start, the first
|
|
133
|
+
* of them its slot `first`; `pcm` undefined once all of it came.
|
|
134
|
+
*/
|
|
135
|
+
sound(say: number, pcm: Uint8Array | undefined, rate: number, slots: WebMouthSlot[], first: number): void;
|
|
136
|
+
/** The reading shows its slot `slot` now: those before it need not be drawn any more. */
|
|
137
|
+
at(say: number, slot: number): void;
|
|
138
|
+
/** The reading stopped (the user cut in, the call ended). */
|
|
139
|
+
cut(say: number): void;
|
|
140
|
+
/** The drawn part of a slot, once it came; undefined until then (the clip shows as it is). */
|
|
141
|
+
frame(say: number, slot: number): WebMouthFrame | undefined;
|
|
142
|
+
close(): void;
|
|
143
|
+
}
|
|
144
|
+
/** What an extension adds to calls (WebExtensionAPI). */
|
|
145
|
+
export interface WebCallsAPI {
|
|
146
|
+
/** Answers in calls in place of the conversation called (the first registered). Newer than some Ta apps: `pi.registerCallPartner?.(…)`. */
|
|
147
|
+
registerCallPartner(partner: WebCallPartner): void;
|
|
148
|
+
/** Draws the mouth of the person of video calls as Ta speaks (the first registered). Newer than some Ta apps. */
|
|
149
|
+
registerCallMouth(mouth: WebCallMouth): void;
|
|
150
|
+
/** Adds moves to the person of video calls (all registered, before Ta's own). Newer than some Ta apps: `pi.registerCallMoves?.(…)`. */
|
|
151
|
+
registerCallMoves(moves: WebCallMoves): void;
|
|
152
|
+
}
|
|
46
153
|
//# sourceMappingURL=web-api-call.d.ts.map
|
|
@@ -321,6 +321,10 @@ export interface WebComposerProps {
|
|
|
321
321
|
* Newer than some Ta apps, which take none.
|
|
322
322
|
*/
|
|
323
323
|
images?: boolean | WebComposerImageLimits;
|
|
324
|
+
/** An emoji button on the right of the field, as WeChat's: on a phone its panel takes the place of the keyboard. Newer than some Ta apps. */
|
|
325
|
+
emoji?: boolean;
|
|
326
|
+
/** The field takes the focus as the box shows (the keyboard comes up on a phone), as a box opened to comment. Newer than some Ta apps. */
|
|
327
|
+
autoFocus?: boolean;
|
|
324
328
|
/** What `@` lists, by name; and the + menu entry that starts an `@`. */
|
|
325
329
|
mentions?: {
|
|
326
330
|
name: string;
|
|
@@ -19,11 +19,12 @@ export interface WebConversation {
|
|
|
19
19
|
title?: string;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
* The groups of the settings, by what the user looks for
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* The groups of the settings, by what the user looks for (docs/design/ta-places.md): `general` (how Ta looks), `chats`
|
|
23
|
+
* (the list, notices, who answers others, what is kept), `ta` (models, the double, coding agents), `initiative` (what
|
|
24
|
+
* Ta does by itself), `voice` (speech, calls), `devices` (devices, other computers, the network), `privacy` (secrets,
|
|
25
|
+
* who may come in), `extensions` (what was added to Ta). Older Ta apps leave out a section of a group they do not know.
|
|
25
26
|
*/
|
|
26
|
-
export type WebSettingsGroup = 'general' | 'ta' | 'devices' | 'privacy' | 'extensions';
|
|
27
|
+
export type WebSettingsGroup = 'general' | 'chats' | 'ta' | 'initiative' | 'voice' | 'devices' | 'privacy' | 'extensions';
|
|
27
28
|
/** A section an extension adds to the settings (WebExtensionAPI.registerSettings). */
|
|
28
29
|
export interface WebSettingsSection {
|
|
29
30
|
title: WebLabel;
|
|
@@ -31,6 +32,8 @@ export interface WebSettingsSection {
|
|
|
31
32
|
icon?: WebIcon;
|
|
32
33
|
/** The group it is listed in, after Ta's own sections there; default `extensions`. Newer than some Ta apps. */
|
|
33
34
|
group?: WebSettingsGroup;
|
|
35
|
+
/** Smaller first among those of extensions in its group, then as registered; default 100 (negative: before Ta's). */
|
|
36
|
+
order?: number;
|
|
34
37
|
rows: WebSettingRow[];
|
|
35
38
|
/**
|
|
36
39
|
* Models without signing in to a service (coding agents to install): the first page, which asks to sign in, shows the
|
|
@@ -129,16 +132,12 @@ export interface WidgetOptions {
|
|
|
129
132
|
*/
|
|
130
133
|
export type WebViewLocation = 'page' | 'sidebar' | 'panel' | 'launcher' | 'board';
|
|
131
134
|
/**
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Where a page is listed: a group of Discover (`people`, `work`, `share`, `more`), or `me`, among the entries of Me (the
|
|
138
|
-
* last tab of a phone; the menu of the account elsewhere), for what is the user's own (their feedback), never in the
|
|
139
|
-
* navigation nor under Discover. Older Ta apps list a page of `me` under Discover's `more`.
|
|
135
|
+
* Where a page is listed: a card of Discover (docs/design/ta-places.md), `people` (friends, rooms, who is nearby, what
|
|
136
|
+
* they post), `work` (what Ta does for the user), `share` (what the user shares, who is let in), `tools` (Ta itself and
|
|
137
|
+
* what it reaches), `play` (games, worlds), `more` (the rest); or `me`, among the entries of Me, for what is the
|
|
138
|
+
* user's own (their feedback), never in the navigation nor under Discover. Older Ta apps list the newer under `more`.
|
|
140
139
|
*/
|
|
141
|
-
export type WebPageGroup = 'people' | 'work' | 'share' | 'more' | 'me';
|
|
140
|
+
export type WebPageGroup = 'people' | 'work' | 'share' | 'tools' | 'play' | 'more' | 'me';
|
|
142
141
|
export interface WebView {
|
|
143
142
|
title: WebLabel;
|
|
144
143
|
render: React.ComponentType;
|
|
@@ -502,7 +501,7 @@ export interface WebCodeRendererProps {
|
|
|
502
501
|
closed: boolean;
|
|
503
502
|
/**
|
|
504
503
|
* Sends words as the user to the conversation the block is in (after its turn, if it works): a choice in it
|
|
505
|
-
* answered with a tap. None where no conversation holds the block (`ui.Markdown` of a page). Newer than some
|
|
504
|
+
* answered with a tap. None where no conversation holds the block (`ui.Markdown` of a page given none). Newer than some
|
|
506
505
|
* Ta apps, whose props have no `send`: there `pi.sendUserMessage` reaches the conversation shown.
|
|
507
506
|
*/
|
|
508
507
|
send?: (text: string) => Promise<void>;
|
|
@@ -512,6 +511,7 @@ export interface WebCodeRendererProps {
|
|
|
512
511
|
* some Ta apps.
|
|
513
512
|
*/
|
|
514
513
|
answer?: string;
|
|
514
|
+
embedded?: boolean;
|
|
515
515
|
}
|
|
516
516
|
/** pi's custom message, as the conversation holds it. */
|
|
517
517
|
export interface WebCustomMessage {
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
/** Part of the web extension API (web-extension-api.ts, which exports it all): what Ta Desktop
|
|
1
|
+
/** Part of the web extension API (web-extension-api.ts, which exports it all): what Ta Desktop and the Ta app add, and files dragged between views. */
|
|
2
|
+
/**
|
|
3
|
+
* Where the Ta app kept a file (`ui.saveFile`): `photos` the album of iOS (pictures and videos), `files` where the
|
|
4
|
+
* user chose in Files (iOS, any other file), `downloads` the Downloads of Android; `cancelled` when the user closed
|
|
5
|
+
* Files, `denied` when Ta may not add to the album (Settings) or write the Downloads (Android 8 and 9, asked then).
|
|
6
|
+
*/
|
|
7
|
+
export type WebFileSaved = 'photos' | 'files' | 'downloads' | 'cancelled' | 'denied';
|
|
8
|
+
/** What a device adds to `ui`. */
|
|
9
|
+
export interface WebDeviceUI {
|
|
10
|
+
/**
|
|
11
|
+
* In the Ta app on a phone, whose web view downloads nothing: keeps a file as the system does (iOS: pictures and
|
|
12
|
+
* videos in the album, other files in Files; Android: Downloads). Undefined elsewhere, where a link with
|
|
13
|
+
* `download` saves it. Newer than some Ta apps.
|
|
14
|
+
*/
|
|
15
|
+
readonly saveFile?: (file: Blob, name: string) => Promise<WebFileSaved>;
|
|
16
|
+
}
|
|
2
17
|
export interface WebDesktop {
|
|
3
18
|
/** Node's `process.platform` of the machine (`darwin`, `win32`, `linux`): what its file manager is called. */
|
|
4
19
|
readonly platform: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/** Part of the web extension API (web-extension-api.ts, which exports it all): what Ta Desktop and the Ta app add, and files dragged between views. */
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
//# sourceMappingURL=web-api-desktop.js.map
|
|
@@ -33,6 +33,8 @@ export interface WebPartner {
|
|
|
33
33
|
online?: boolean;
|
|
34
34
|
/** A group chat with friends in it, not of the user's agents alone: a small label after its name. */
|
|
35
35
|
friends?: boolean;
|
|
36
|
+
/** A small label after its name of what it is, over {@link friends}'s: one who came to the user's front desk. Newer than some Ta apps. */
|
|
37
|
+
label?: string;
|
|
36
38
|
/** Where it works (an agent's directory): a remote one is marked by its host. */
|
|
37
39
|
location?: string;
|
|
38
40
|
/** Opens its conversation (or, while not a partner yet, what to answer). A promise keeps the row busy. */
|
|
@@ -7,8 +7,8 @@ import type { Game3DProps } from '../game/game3d-protocol';
|
|
|
7
7
|
import type { ScreenPartSpec, TaScreen } from '../screen/screen-protocol';
|
|
8
8
|
import type { Language, Theme } from '../settings/settings-protocol';
|
|
9
9
|
import type { CodeEditorProps, DiffEditorProps, WebChatImagesProps, WebComposerProps, WebConversationViewProps, WebDialogProps, WebEmptyProps, WebFaceProps, WebFolderPickerProps, WebFullScreenProps, WebGroupFaceProps, WebHoldToTalkProps, WebImageViewerProps, WebLoadingProps, WebModelPickerProps, WebPictureCardsProps, WebPictureProps, WebSelectBarProps, WebSelectCheckProps, WebShareSheetProps, WebStackProps, WebSwipeRowProps, WebSwitchProps, WebTaskIconProps, WebVoice } from './web-api-components';
|
|
10
|
-
import type { WebAsk,
|
|
11
|
-
import type { WebDesktop, WebFileDrag } from './web-api-desktop';
|
|
10
|
+
import type { WebAsk, WebCallsAPI, WebChatIconSource, WebCodeRendererOptions, WebCodeRendererProps, WebComposerAddon, WebCustomMessage, WebHomeSource, WebInitiative, WebMenuItem, WebOpener, WebOpenerOptions, WebRoomAddon, WebRoomAddonEntry, WebSearchSource, WebSessionNotice, WebSettingsSection, WebShareTarget, WebTaskEntry, WebTaskRemoval, WebTaskSource, WebTool, WebToolRendererResolver, WebView, WebViewInfo, WidgetOptions } from './web-api-contributions';
|
|
11
|
+
import type { WebDesktop, WebDeviceUI, WebFileDrag } from './web-api-desktop';
|
|
12
12
|
import type { WebEditorsUI } from './web-api-editors';
|
|
13
13
|
import type { WebHomeUI, WebPartnersAPI, WebPartnersUI } from './web-api-home';
|
|
14
14
|
import type { WebFileRef, WebMenus } from './web-api-menus';
|
|
@@ -35,7 +35,7 @@ export type { WebPageInfo, WebPageState } from './web-pages';
|
|
|
35
35
|
* the two mean the same. A web extension is one ES module without imports, the `web` part of a pi
|
|
36
36
|
* package (see TaWebExtensionInfo); it exports a {@link WebExtensionFactory}.
|
|
37
37
|
*/
|
|
38
|
-
export interface WebExtensionAPI extends WebServices, WebPartnersAPI, WebMenus {
|
|
38
|
+
export interface WebExtensionAPI extends WebServices, WebPartnersAPI, WebMenus, WebCallsAPI {
|
|
39
39
|
/** The React of the page: an extension brings no React of its own. */
|
|
40
40
|
readonly React: typeof React;
|
|
41
41
|
readonly ui: WebExtensionUI;
|
|
@@ -52,11 +52,6 @@ export interface WebExtensionAPI extends WebServices, WebPartnersAPI, WebMenus {
|
|
|
52
52
|
* `options.spoken`: what of a block is said aloud; older apps leave it out.
|
|
53
53
|
*/
|
|
54
54
|
registerCodeRenderer(language: string, renderer: React.ComponentType<WebCodeRendererProps>, options?: WebCodeRendererOptions): void;
|
|
55
|
-
/**
|
|
56
|
-
* Answers in calls in place of the conversation called (the first registered): the conversation keeps the work,
|
|
57
|
-
* the partner the talk. Newer than some Ta apps: `pi.registerCallPartner?.(…)`.
|
|
58
|
-
*/
|
|
59
|
-
registerCallPartner(partner: WebCallPartner): void;
|
|
60
55
|
/** Who answers in the sessions of its group (TaOpenSessionOptions.group, its package), drawn at each turn in place of ta. */
|
|
61
56
|
registerAvatar(avatar: React.ComponentType<WebAvatarProps>): void;
|
|
62
57
|
/**
|
|
@@ -229,7 +224,7 @@ export interface WebNotifyOptions {
|
|
|
229
224
|
export type { ScreenAction, ScreenItem, ScreenPartSpec, ScreenPartView, ScreenPlace, ScreenScrollable, ScreenScrollTo } from '../screen/screen-protocol';
|
|
230
225
|
/** What web extensions see of TaScreen. */
|
|
231
226
|
export type WebScreen = Pick<TaScreen, 'agent' | 'parts' | 'act' | 'element' | 'where' | 'places' | 'go' | 'pageScroll' | 'scroll'>;
|
|
232
|
-
export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI {
|
|
227
|
+
export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI, WebDeviceUI {
|
|
233
228
|
/** A widget around the message box, as pi's, or a card in the workbench on the right; `undefined` removes it. */
|
|
234
229
|
setWidget(key: string, widget: React.ComponentType | undefined, options?: WidgetOptions): void;
|
|
235
230
|
/**
|
|
@@ -510,9 +505,12 @@ export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI {
|
|
|
510
505
|
readonly HoldToTalk: React.ComponentType<WebHoldToTalkProps>;
|
|
511
506
|
/** Listening and reading aloud as the conversations of the page do: its recognizer, the voice of the settings. */
|
|
512
507
|
readonly voice: WebVoice;
|
|
513
|
-
/**
|
|
508
|
+
/** As the conversations show it; `inline`: in a line; `send`, `answer`: a group chat's, for taps in cards (newer). */
|
|
514
509
|
readonly Markdown: React.ComponentType<{
|
|
515
510
|
text: string;
|
|
511
|
+
inline?: boolean;
|
|
512
|
+
send?: WebCodeRendererProps['send'];
|
|
513
|
+
answer?: string;
|
|
516
514
|
}>;
|
|
517
515
|
/**
|
|
518
516
|
* A conversation to read, drawn as those of the page are, with what extensions draw in them (cards, plots,
|
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
import type { TaWebExtensionInfo } from '@celljs/ta-protocol';
|
|
2
|
+
import type { DeviceValues } from '../offline/device-values';
|
|
2
3
|
/**
|
|
3
|
-
* The code of the web extensions of packages, kept
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* The code of the web extensions of packages, kept on this device by its hash (`TaWebExtensionInfo.hash`, of the
|
|
5
|
+
* code itself): a start reads from ta serve only what changed. A phone over the relay read some 230 KB at every start
|
|
6
|
+
* before its double's list could show.
|
|
7
|
+
* The code is kept in IndexedDB (DeviceValues), not localStorage: it is megabytes, and in localStorage it filled the
|
|
8
|
+
* room of the page (5 MB in WebKit), so that the lists of the last time were no longer kept and a phone started empty.
|
|
6
9
|
* What the last list of a ta serve does not name goes; switching to another computer reads its own again.
|
|
7
|
-
* The list itself is kept for each computer
|
|
10
|
+
* The list itself is kept for each computer in localStorage, small, for the extensions to start before it answers.
|
|
8
11
|
*/
|
|
9
12
|
export declare class WebExtensionCode {
|
|
13
|
+
protected readonly values: DeviceValues;
|
|
10
14
|
protected readonly storage: () => Storage | undefined;
|
|
15
|
+
/** Of the code, in DeviceValues; and of before, in localStorage, taken away. */
|
|
11
16
|
static readonly PREFIX = "ta.web-extension ";
|
|
12
17
|
static readonly LIST = "web-extensions";
|
|
13
|
-
constructor(storage: () => Storage | undefined);
|
|
14
|
-
get(hash: string): string | undefined
|
|
15
|
-
set(hash: string, code: string): void
|
|
18
|
+
constructor(values: DeviceValues, storage: () => Storage | undefined);
|
|
19
|
+
get(hash: string): Promise<string | undefined>;
|
|
20
|
+
set(hash: string, code: string): Promise<void>;
|
|
16
21
|
/** The list the computer `host` gave last (with the values it keeps for the page, forgotten with them). */
|
|
17
22
|
list(host: string): TaWebExtensionInfo[];
|
|
18
23
|
keepList(host: string, infos: TaWebExtensionInfo[]): void;
|
|
19
24
|
/** Only the code of `hashes`, those of the list of now. */
|
|
20
|
-
keepOnly(hashes: Iterable<string>): void
|
|
25
|
+
keepOnly(hashes: Iterable<string>): Promise<void>;
|
|
26
|
+
/** The code a page of before kept in localStorage, which filled it. */
|
|
27
|
+
protected forgetOld(): void;
|
|
21
28
|
}
|
|
22
29
|
//# sourceMappingURL=web-extension-code.d.ts.map
|
|
@@ -3,34 +3,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WebExtensionCode = void 0;
|
|
4
4
|
const state_protocol_1 = require("../state/state-protocol");
|
|
5
5
|
/**
|
|
6
|
-
* The code of the web extensions of packages, kept
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* The code of the web extensions of packages, kept on this device by its hash (`TaWebExtensionInfo.hash`, of the
|
|
7
|
+
* code itself): a start reads from ta serve only what changed. A phone over the relay read some 230 KB at every start
|
|
8
|
+
* before its double's list could show.
|
|
9
|
+
* The code is kept in IndexedDB (DeviceValues), not localStorage: it is megabytes, and in localStorage it filled the
|
|
10
|
+
* room of the page (5 MB in WebKit), so that the lists of the last time were no longer kept and a phone started empty.
|
|
9
11
|
* What the last list of a ta serve does not name goes; switching to another computer reads its own again.
|
|
10
|
-
* The list itself is kept for each computer
|
|
12
|
+
* The list itself is kept for each computer in localStorage, small, for the extensions to start before it answers.
|
|
11
13
|
*/
|
|
12
14
|
class WebExtensionCode {
|
|
13
|
-
constructor(storage) {
|
|
15
|
+
constructor(values, storage) {
|
|
16
|
+
this.values = values;
|
|
14
17
|
this.storage = storage;
|
|
18
|
+
this.forgetOld();
|
|
15
19
|
}
|
|
16
20
|
get(hash) {
|
|
17
|
-
|
|
18
|
-
var _b;
|
|
19
|
-
try {
|
|
20
|
-
return (_b = (_a = this.storage()) === null || _a === void 0 ? void 0 : _a.getItem(WebExtensionCode.PREFIX + hash)) !== null && _b !== void 0 ? _b : undefined;
|
|
21
|
-
}
|
|
22
|
-
catch (_c) {
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
21
|
+
return this.values.get(WebExtensionCode.PREFIX + hash).catch(() => undefined);
|
|
25
22
|
}
|
|
26
|
-
set(hash, code) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
(_a = this.storage()) === null || _a === void 0 ? void 0 : _a.setItem(WebExtensionCode.PREFIX + hash, code);
|
|
30
|
-
}
|
|
31
|
-
catch (_b) {
|
|
32
|
-
// Full, or a browser that keeps nothing: read again next time.
|
|
33
|
-
}
|
|
23
|
+
async set(hash, code) {
|
|
24
|
+
// Full, or a device that keeps nothing: read again next time.
|
|
25
|
+
await this.values.set(WebExtensionCode.PREFIX + hash, code).catch(() => undefined);
|
|
34
26
|
}
|
|
35
27
|
/** The list the computer `host` gave last (with the values it keeps for the page, forgotten with them). */
|
|
36
28
|
list(host) {
|
|
@@ -54,21 +46,26 @@ class WebExtensionCode {
|
|
|
54
46
|
}
|
|
55
47
|
}
|
|
56
48
|
/** Only the code of `hashes`, those of the list of now. */
|
|
57
|
-
keepOnly(hashes) {
|
|
49
|
+
async keepOnly(hashes) {
|
|
50
|
+
const keep = new Set([...hashes].map(hash => WebExtensionCode.PREFIX + hash));
|
|
51
|
+
const keys = await this.values.keys(WebExtensionCode.PREFIX).catch(() => []);
|
|
52
|
+
await Promise.all(keys.filter(key => !keep.has(key)).map(key => this.values.delete(key).catch(() => undefined)));
|
|
53
|
+
}
|
|
54
|
+
/** The code a page of before kept in localStorage, which filled it. */
|
|
55
|
+
forgetOld() {
|
|
58
56
|
const storage = this.storage();
|
|
59
57
|
if (!storage) {
|
|
60
58
|
return;
|
|
61
59
|
}
|
|
62
|
-
const keep = new Set([...hashes].map(hash => WebExtensionCode.PREFIX + hash));
|
|
63
60
|
try {
|
|
64
|
-
const
|
|
61
|
+
const old = [];
|
|
65
62
|
for (let index = 0; index < storage.length; index++) {
|
|
66
63
|
const key = storage.key(index);
|
|
67
|
-
if (
|
|
68
|
-
|
|
64
|
+
if (key === null || key === void 0 ? void 0 : key.startsWith(WebExtensionCode.PREFIX)) {
|
|
65
|
+
old.push(key);
|
|
69
66
|
}
|
|
70
67
|
}
|
|
71
|
-
for (const key of
|
|
68
|
+
for (const key of old) {
|
|
72
69
|
storage.removeItem(key);
|
|
73
70
|
}
|
|
74
71
|
}
|
|
@@ -78,6 +75,7 @@ class WebExtensionCode {
|
|
|
78
75
|
}
|
|
79
76
|
}
|
|
80
77
|
exports.WebExtensionCode = WebExtensionCode;
|
|
78
|
+
/** Of the code, in DeviceValues; and of before, in localStorage, taken away. */
|
|
81
79
|
WebExtensionCode.PREFIX = 'ta.web-extension ';
|
|
82
80
|
WebExtensionCode.LIST = 'web-extensions';
|
|
83
81
|
//# sourceMappingURL=web-extension-code.js.map
|
|
@@ -72,6 +72,7 @@ const web_dialog_1 = require("../components/web-dialog");
|
|
|
72
72
|
const back_stack_1 = require("../device/back-stack");
|
|
73
73
|
const code_scan_1 = require("../device/code-scan");
|
|
74
74
|
const device_1 = require("../device/device");
|
|
75
|
+
const file_save_1 = require("../device/file-save");
|
|
75
76
|
const drafts_protocol_1 = require("../drafts/drafts-protocol");
|
|
76
77
|
const game_view_1 = require("../game/game-view");
|
|
77
78
|
const messages_1 = require("../i18n/messages");
|
|
@@ -244,6 +245,8 @@ class WebExtensionContext {
|
|
|
244
245
|
}
|
|
245
246
|
}),
|
|
246
247
|
registerCallPartner: partner => register(() => run.callPartners.push(partner)),
|
|
248
|
+
registerCallMouth: mouth => register(() => run.callMouths.push(mouth)),
|
|
249
|
+
registerCallMoves: moves => register(() => run.callMoves.push(moves)),
|
|
247
250
|
registerAvatar: avatar => register(() => {
|
|
248
251
|
run.avatar = avatar;
|
|
249
252
|
}),
|
|
@@ -396,6 +399,7 @@ class WebExtensionContext {
|
|
|
396
399
|
scanCode: code_scan_1.CodeScan.available()
|
|
397
400
|
? instructions => (run.stopped ? Promise.resolve(undefined) : code_scan_1.CodeScan.read(instructions, (0, messages_1.message)(settings.state.language, 'ta.cancel')))
|
|
398
401
|
: undefined,
|
|
402
|
+
saveFile: file_save_1.FileSave.available() ? (file, name) => (run.stopped ? Promise.resolve('cancelled') : file_save_1.FileSave.save(file, name)) : undefined,
|
|
399
403
|
scan: code_scan_1.CodeScan.available() ? () => (run.stopped ? Promise.resolve() : new code_scan_1.CodeScan(host).scan()) : undefined,
|
|
400
404
|
stopExtension: name => !run.stopped && host.extensions.stopExtension(name),
|
|
401
405
|
shareExtension: target => !run.stopped && host.extensions.share(target),
|
|
@@ -2,7 +2,7 @@ import type { TaEvent, TaTemporaryFrom, TaWebExtensionInfo } from '@celljs/ta-pr
|
|
|
2
2
|
import type * as React from 'react';
|
|
3
3
|
import type { MessageId } from '../i18n/messages';
|
|
4
4
|
import type { BlockSpeech } from '../util/spoken';
|
|
5
|
-
import type { WebAvatarProps, WebCallPartner, WebChatIconSource, WebCodeRendererProps, WebComposerAddon, WebCustomMessage, WebEditor, WebExtensionFactory, WebFileMenu, WebHomeEntry, WebIcon, WebImage, WebInitiative, WebLabel, WebMenuItem, WebOpener, WebPageGroup, WebRoomAddonEntry, WebSearchSource, WebSessionMenu, WebSessionOpening, WebSettingsSection, WebShareTarget, WebTool, WebToolRendererResolver, WebViewLocation, WebViewPreview, WidgetOptions } from './web-extension-api';
|
|
5
|
+
import type { WebAvatarProps, WebCallMouth, WebCallMoves, WebCallPartner, WebChatIconSource, WebCodeRendererProps, WebComposerAddon, WebCustomMessage, WebEditor, WebExtensionFactory, WebFileMenu, WebHomeEntry, WebIcon, WebImage, WebInitiative, WebLabel, WebMenuItem, WebOpener, WebPageGroup, WebRoomAddonEntry, WebSearchSource, WebSessionMenu, WebSessionOpening, WebSettingsSection, WebShareTarget, WebTool, WebToolRendererResolver, WebViewLocation, WebViewPreview, WidgetOptions } from './web-extension-api';
|
|
6
6
|
import type { WebHomeBoard } from './web-home';
|
|
7
7
|
import type { PageUsage, WebPageInfo } from './web-pages';
|
|
8
8
|
import type { WebPartnerBoard } from './web-partners';
|
|
@@ -123,6 +123,15 @@ export interface WebExtensionsState {
|
|
|
123
123
|
codeSpeech: BlockSpeech;
|
|
124
124
|
/** Who answers in calls in place of the conversation (WebExtensionAPI.registerCallPartner): the first registered. */
|
|
125
125
|
callPartner?: WebCallPartner;
|
|
126
|
+
/**
|
|
127
|
+
* The group of the conversations its partner answers calls in (its package, TaOpenSessionOptions.group): they show
|
|
128
|
+
* as the record of a call (CallTranscript).
|
|
129
|
+
*/
|
|
130
|
+
callGroup?: string;
|
|
131
|
+
/** What draws the mouth of the person of video calls (WebExtensionAPI.registerCallMouth): the first registered. */
|
|
132
|
+
callMouth?: WebCallMouth;
|
|
133
|
+
/** Moves of the person of video calls extensions add (WebExtensionAPI.registerCallMoves). */
|
|
134
|
+
callMoves: WebCallMoves[];
|
|
126
135
|
/** By the name of the extension, the group of the sessions it draws (WebExtensionAPI.registerAvatar). */
|
|
127
136
|
avatars: Record<string, React.ComponentType<WebAvatarProps>>;
|
|
128
137
|
/** The icons extensions give conversations of theirs (WebExtensionAPI.registerChatIcon), with the extension of each. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TaEvent } from '@celljs/ta-protocol';
|
|
2
2
|
import type * as React from 'react';
|
|
3
|
-
import type { WebCallPartner, WebChatIconSource, WebComposerAddon, WebFileMenu, WebHomeSource, WebInitiative, WebMenuItem, WebOpener, WebPartnerSource, WebRoomAddon, WebSearchSource, WebSessionMenu, WebSettingsSection, WebTaskSource, WebTool, WebToolRendererResolver, WebView, WidgetOptions } from './web-extension-api';
|
|
3
|
+
import type { WebCallMouth, WebCallMoves, WebCallPartner, WebChatIconSource, WebComposerAddon, WebFileMenu, WebHomeSource, WebInitiative, WebMenuItem, WebOpener, WebPartnerSource, WebRoomAddon, WebSearchSource, WebSessionMenu, WebSettingsSection, WebTaskSource, WebTool, WebToolRendererResolver, WebView, WidgetOptions } from './web-extension-api';
|
|
4
4
|
import type { LoadedWebExtension, WebExtensionsState } from './web-extension-protocol';
|
|
5
5
|
/** What an extension registered through its API: all of it goes when it stops. */
|
|
6
6
|
export interface WebRegistrations {
|
|
@@ -13,6 +13,8 @@ export interface WebRegistrations {
|
|
|
13
13
|
codeRenderers: Map<string, WebExtensionsState['codeRenderers'][string]>;
|
|
14
14
|
codeSpeech: Map<string, WebExtensionsState['codeSpeech'][string]>;
|
|
15
15
|
callPartners: WebCallPartner[];
|
|
16
|
+
callMouths: WebCallMouth[];
|
|
17
|
+
callMoves: WebCallMoves[];
|
|
16
18
|
avatar?: WebExtensionsState['avatars'][string];
|
|
17
19
|
chatIcons: WebChatIconSource[];
|
|
18
20
|
homeSources: WebHomeSource[];
|
|
@@ -58,6 +60,6 @@ export declare namespace WebExtensionRunUtil {
|
|
|
58
60
|
/** Subscribes for the extension: undone when it stops, or by the function returned. */
|
|
59
61
|
function track(run: WebExtensionRun, subscribe: () => () => void): () => void;
|
|
60
62
|
/** What the extensions that run registered, as the page shows it: the first of a message type or a tool name wins. */
|
|
61
|
-
function collect(runs: readonly WebExtensionRun[], onOpen: (id: string) => boolean): Pick<WebExtensionsState, 'openers' | 'specificOpeners' | 'sessionMenus' | 'fileMenus' | 'extensions' | 'views' | 'widgets' | 'composerAddons' | 'roomAddons' | 'settingsSections' | 'renderers' | 'codeRenderers' | 'codeSpeech' | 'callPartner' | 'avatars' | 'chatIcons' | 'initiatives' | 'tools' | 'toolRenderers' | 'searches'>;
|
|
63
|
+
function collect(runs: readonly WebExtensionRun[], onOpen: (id: string) => boolean): Pick<WebExtensionsState, 'openers' | 'specificOpeners' | 'sessionMenus' | 'fileMenus' | 'extensions' | 'views' | 'widgets' | 'composerAddons' | 'roomAddons' | 'settingsSections' | 'renderers' | 'codeRenderers' | 'codeSpeech' | 'callPartner' | 'callGroup' | 'callMouth' | 'callMoves' | 'avatars' | 'chatIcons' | 'initiatives' | 'tools' | 'toolRenderers' | 'searches'>;
|
|
62
64
|
}
|
|
63
65
|
//# sourceMappingURL=web-extension-run.d.ts.map
|
|
@@ -26,6 +26,8 @@ var WebExtensionRunUtil;
|
|
|
26
26
|
codeRenderers: new Map(),
|
|
27
27
|
codeSpeech: new Map(),
|
|
28
28
|
callPartners: [],
|
|
29
|
+
callMouths: [],
|
|
30
|
+
callMoves: [],
|
|
29
31
|
avatar: undefined,
|
|
30
32
|
chatIcons: [],
|
|
31
33
|
homeSources: [],
|
|
@@ -74,7 +76,8 @@ var WebExtensionRunUtil;
|
|
|
74
76
|
WebExtensionRunUtil.track = track;
|
|
75
77
|
/** What the extensions that run registered, as the page shows it: the first of a message type or a tool name wins. */
|
|
76
78
|
function collect(runs, onOpen) {
|
|
77
|
-
var _a
|
|
79
|
+
var _a;
|
|
80
|
+
var _b, _c, _d;
|
|
78
81
|
const renderers = {};
|
|
79
82
|
const codeRenderers = {};
|
|
80
83
|
const codeSpeech = {};
|
|
@@ -85,13 +88,13 @@ var WebExtensionRunUtil;
|
|
|
85
88
|
avatars[run.loaded.name] = run.avatar;
|
|
86
89
|
}
|
|
87
90
|
for (const [type, renderer] of run.renderers) {
|
|
88
|
-
(
|
|
91
|
+
(_b = renderers[type]) !== null && _b !== void 0 ? _b : (renderers[type] = renderer);
|
|
89
92
|
}
|
|
90
93
|
for (const [language, renderer] of run.codeRenderers) {
|
|
91
|
-
(
|
|
94
|
+
(_c = codeRenderers[language]) !== null && _c !== void 0 ? _c : (codeRenderers[language] = renderer);
|
|
92
95
|
}
|
|
93
96
|
for (const [language, spoken] of run.codeSpeech) {
|
|
94
|
-
(
|
|
97
|
+
(_d = codeSpeech[language]) !== null && _d !== void 0 ? _d : (codeSpeech[language] = spoken);
|
|
95
98
|
}
|
|
96
99
|
for (const tool of run.tools) {
|
|
97
100
|
if (!tools.some(other => other.name === tool.name)) {
|
|
@@ -140,6 +143,9 @@ var WebExtensionRunUtil;
|
|
|
140
143
|
codeRenderers,
|
|
141
144
|
codeSpeech,
|
|
142
145
|
callPartner: runs.flatMap(run => run.callPartners)[0],
|
|
146
|
+
callGroup: (_a = runs.find(run => run.callPartners.length)) === null || _a === void 0 ? void 0 : _a.loaded.name,
|
|
147
|
+
callMouth: runs.flatMap(run => run.callMouths)[0],
|
|
148
|
+
callMoves: runs.flatMap(run => run.callMoves),
|
|
143
149
|
avatars,
|
|
144
150
|
chatIcons: runs.flatMap(run => run.chatIcons.map(source => ({ extension: run.loaded.name, source }))),
|
|
145
151
|
initiatives: runs.flatMap(run => run.initiatives),
|