@celljs/ta-web 4.28.0 → 4.30.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-thread.js +15 -2
- package/esm/browser/assistant/call-scenes.d.ts +5 -4
- package/esm/browser/assistant/call-scenes.js +10 -7
- 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-view.js +1 -1
- 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 +7 -4
- package/esm/browser/components/app-nav.js +4 -4
- package/esm/browser/components/chat-list-row.js +7 -2
- package/esm/browser/components/chat-tag.d.ts +20 -0
- package/esm/browser/components/chat-tag.js +103 -0
- 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/custom-host.js +1 -1
- package/esm/browser/components/discover-view.d.ts +4 -3
- package/esm/browser/components/discover-view.js +5 -4
- package/esm/browser/components/editor-area.js +1 -1
- package/esm/browser/components/emoji-panel.d.ts +22 -0
- package/esm/browser/components/emoji-panel.js +54 -0
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/launcher-surface.js +1 -1
- package/esm/browser/components/markdown.d.ts +6 -1
- package/esm/browser/components/markdown.js +6 -2
- 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/session-view.js +6 -1
- 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 +14 -9
- package/esm/browser/components/settings-view.js +2 -6
- 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 +9 -0
- package/esm/browser/extension/extension-view.js +7 -0
- package/esm/browser/extension/icons.js +2 -1
- package/esm/browser/extension/web-api-call.d.ts +45 -0
- package/esm/browser/extension/web-api-chats.d.ts +29 -0
- package/esm/browser/extension/web-api-components.d.ts +4 -0
- package/esm/browser/extension/web-api-contributions.d.ts +13 -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-extension-api.d.ts +9 -12
- 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 +15 -1
- package/esm/browser/extension/web-extension-protocol.js +2 -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.d.ts +3 -0
- package/esm/browser/extension/web-extensions-running.js +20 -7
- package/esm/browser/extension/web-extensions.js +5 -1
- package/esm/browser/extension/web-metrics.d.ts +32 -0
- package/esm/browser/extension/web-metrics.js +98 -0
- 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 +1136 -1136
- package/esm/browser/i18n/messages-ja.js +20 -1586
- package/esm/browser/i18n/messages-zh-tw.d.ts +0 -1
- package/esm/browser/i18n/messages-zh-tw.js +20 -1587
- package/esm/browser/i18n/messages.d.ts +1139 -1136
- package/esm/browser/i18n/messages.js +44 -3183
- 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/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/settings/settings-protocol.d.ts +2 -0
- package/esm/browser/settings/settings-protocol.js +2 -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 +6 -0
- 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 +5 -0
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +0 -7
- package/esm/browser/style/video-call.d.ts +1 -1
- package/esm/browser/style/video-call.js +15 -4
- package/esm/browser/util/call-transcript.d.ts +16 -0
- package/esm/browser/util/call-transcript.js +110 -0
- package/esm/browser/util/process.d.ts +6 -0
- package/esm/browser/util/process.js +18 -5
- 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/clip-plan.d.ts +11 -2
- package/esm/browser/video-call/clip-plan.js +19 -3
- 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 +43 -5
- package/esm/browser/video-call/face-files.js +73 -18
- 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.js +44 -4
- package/esm/browser/video-call/video-face.d.ts +11 -5
- package/esm/browser/video-call/video-face.js +302 -328
- package/esm/browser/workbench.d.ts +8 -0
- package/esm/browser/workbench.js +37 -1
- package/lib/browser/assistant/assistant-thread.js +15 -2
- package/lib/browser/assistant/call-scenes.d.ts +5 -4
- package/lib/browser/assistant/call-scenes.js +10 -7
- 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-view.js +1 -1
- 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 +6 -3
- package/lib/browser/components/app-nav.js +4 -4
- package/lib/browser/components/chat-list-row.js +7 -2
- package/lib/browser/components/chat-tag.d.ts +21 -0
- package/lib/browser/components/chat-tag.js +142 -0
- 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/custom-host.js +1 -1
- package/lib/browser/components/discover-view.d.ts +4 -3
- package/lib/browser/components/discover-view.js +5 -4
- package/lib/browser/components/editor-area.js +1 -1
- package/lib/browser/components/emoji-panel.d.ts +23 -0
- package/lib/browser/components/emoji-panel.js +90 -0
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/launcher-surface.js +1 -1
- package/lib/browser/components/markdown.d.ts +6 -1
- package/lib/browser/components/markdown.js +6 -2
- 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/session-view.js +6 -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 +13 -8
- package/lib/browser/components/settings-view.js +2 -6
- 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 +9 -0
- package/lib/browser/extension/extension-view.js +8 -1
- package/lib/browser/extension/icons.js +1 -0
- package/lib/browser/extension/web-api-call.d.ts +45 -0
- package/lib/browser/extension/web-api-chats.d.ts +29 -0
- package/lib/browser/extension/web-api-components.d.ts +4 -0
- package/lib/browser/extension/web-api-contributions.d.ts +13 -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-extension-api.d.ts +9 -12
- 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 +15 -1
- package/lib/browser/extension/web-extension-protocol.js +2 -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.d.ts +3 -0
- package/lib/browser/extension/web-extensions-running.js +20 -7
- package/lib/browser/extension/web-extensions.js +5 -1
- package/lib/browser/extension/web-metrics.d.ts +33 -0
- package/lib/browser/extension/web-metrics.js +102 -0
- 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 +1136 -1136
- package/lib/browser/i18n/messages-ja.js +20 -1586
- package/lib/browser/i18n/messages-zh-tw.d.ts +0 -1
- package/lib/browser/i18n/messages-zh-tw.js +20 -1587
- package/lib/browser/i18n/messages.d.ts +1139 -1136
- package/lib/browser/i18n/messages.js +44 -3183
- 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/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/settings/settings-protocol.d.ts +2 -0
- package/lib/browser/settings/settings-protocol.js +2 -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 +6 -0
- 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 +5 -0
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +0 -7
- package/lib/browser/style/video-call.d.ts +1 -1
- package/lib/browser/style/video-call.js +15 -4
- package/lib/browser/util/call-transcript.d.ts +17 -0
- package/lib/browser/util/call-transcript.js +113 -0
- package/lib/browser/util/process.d.ts +6 -0
- package/lib/browser/util/process.js +17 -4
- 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/clip-plan.d.ts +11 -2
- package/lib/browser/video-call/clip-plan.js +19 -3
- 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 +43 -5
- package/lib/browser/video-call/face-files.js +73 -18
- 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.js +44 -4
- package/lib/browser/video-call/video-face.d.ts +11 -5
- package/lib/browser/video-call/video-face.js +302 -328
- package/lib/browser/workbench.d.ts +8 -0
- package/lib/browser/workbench.js +36 -0
- package/package.json +7 -7
- package/public/faces/README.md +17 -4
- 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/dance.mp4 +0 -0
- package/public/faces/face.jpg +0 -0
- package/public/faces/framing.json +1 -0
- package/public/faces/lips.json +1 -1
- package/public/faces/stretch.mp4 +0 -0
- package/esm/browser/video-call/face-clips.d.ts +0 -33
- package/esm/browser/video-call/face-clips.js +0 -93
- package/lib/browser/video-call/face-clips.d.ts +0 -34
- package/lib/browser/video-call/face-clips.js +0 -96
|
@@ -12,14 +12,23 @@ export declare const ChatIcons: React.Context<{
|
|
|
12
12
|
entries: WebExtensionsState['chatIcons'];
|
|
13
13
|
version: number;
|
|
14
14
|
}>;
|
|
15
|
+
/** The tags web extensions give conversations, and a count of their changes (ChatTagUtil). */
|
|
16
|
+
export declare const ChatTags: React.Context<{
|
|
17
|
+
entries: WebExtensionsState['chatTags'];
|
|
18
|
+
version: number;
|
|
19
|
+
}>;
|
|
15
20
|
/** The avatars that web extensions registered for the sessions of their groups. */
|
|
16
21
|
export declare const SessionAvatars: React.Context<Record<string, React.ComponentType<import("./web-extension-api.js").WebAvatarProps>>>;
|
|
22
|
+
/** The group of the conversations calls are answered in (WebExtensionsState.callGroup): shown as the record of a call. */
|
|
23
|
+
export declare const CallGroup: React.Context<string | undefined>;
|
|
17
24
|
/** What web extensions add to the menu of a conversation of a list (WebExtensionAPI.registerSessionMenu). */
|
|
18
25
|
export declare const SessionMenus: React.Context<import("./web-api-menus.js").WebSessionMenu[]>;
|
|
19
26
|
/** The web extensions loaded: what a message one of their packages sent as the user calls it (TaMessageSource). */
|
|
20
27
|
export declare const LoadedExtensions: React.Context<import("./web-extension-protocol.js").LoadedWebExtension[]>;
|
|
21
28
|
interface BoundaryProps {
|
|
22
29
|
name: string;
|
|
30
|
+
/** The extension that draws it, by id or name: what threw is counted for its package (WebMetrics). */
|
|
31
|
+
extension?: string;
|
|
23
32
|
/** A new value (a new component) tries again after a failure. */
|
|
24
33
|
resetKey?: unknown;
|
|
25
34
|
/** In place of the error, where it would not fit. */
|
|
@@ -4,14 +4,19 @@ import { Callout } from '../components/callout.js';
|
|
|
4
4
|
import { Markdown } from '../components/markdown.js';
|
|
5
5
|
import { useLanguage, useT } from '../i18n/use-t.js';
|
|
6
6
|
import { MessageUtil } from '../util/message.js';
|
|
7
|
+
import { WebMetrics } from './web-metrics.js';
|
|
7
8
|
/** The renderers of custom messages that web extensions registered. */
|
|
8
9
|
export const MessageRenderers = React.createContext({});
|
|
9
10
|
/** How the calls of the tools of web extensions read (WebExtensionAPI.registerToolRenderer). */
|
|
10
11
|
export const ToolRenderers = React.createContext([]);
|
|
11
12
|
/** The icons web extensions give conversations of theirs, and a count of their changes (ChatIconUtil). */
|
|
12
13
|
export const ChatIcons = React.createContext({ entries: [], version: 0 });
|
|
14
|
+
/** The tags web extensions give conversations, and a count of their changes (ChatTagUtil). */
|
|
15
|
+
export const ChatTags = React.createContext({ entries: [], version: 0 });
|
|
13
16
|
/** The avatars that web extensions registered for the sessions of their groups. */
|
|
14
17
|
export const SessionAvatars = React.createContext({});
|
|
18
|
+
/** The group of the conversations calls are answered in (WebExtensionsState.callGroup): shown as the record of a call. */
|
|
19
|
+
export const CallGroup = React.createContext(undefined);
|
|
15
20
|
/** What web extensions add to the menu of a conversation of a list (WebExtensionAPI.registerSessionMenu). */
|
|
16
21
|
export const SessionMenus = React.createContext([]);
|
|
17
22
|
/** The web extensions loaded: what a message one of their packages sent as the user calls it (TaMessageSource). */
|
|
@@ -26,6 +31,8 @@ export class ExtensionBoundary extends React.Component {
|
|
|
26
31
|
return { error };
|
|
27
32
|
}
|
|
28
33
|
componentDidCatch(error) {
|
|
34
|
+
var _a;
|
|
35
|
+
(_a = WebMetrics.current) === null || _a === void 0 ? void 0 : _a.renderError(this.props.extension);
|
|
29
36
|
console.error(`${this.props.name} failed:`, error);
|
|
30
37
|
}
|
|
31
38
|
componentDidUpdate(previous) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AlarmClock, Aperture, Archive, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, ArrowUpDown, Bell, BellOff, BookOpen, Bot, Box, Bug, Building2, Calendar, Camera, CaseSensitive, ChartColumn, ChartSpline, Check, ChevronDown, ChevronLeft, ChevronRight, ChevronsDownUp, ChevronsUpDown, ChevronUp, Circle, CircleAlert, CircleArrowRight, CircleHelp, Clipboard, ClipboardPaste, Clock, Cloud, Code, Coins, Columns2, Contact, Copy, CopyMinus, CornerDownRight, CornerUpLeft, Cpu, Crown, Database, Download, Ellipsis, ExternalLink, Eye, File, FileArchive, FileDiff, FilePlus, Files, FileText, Film, FlaskConical, Folder, FolderInput, FolderOpen, FolderPlus, FolderSearch, FolderTree, Forward, Gamepad2, Gauge, GitBranch, GitCommitHorizontal, Globe, Grip, HardDrive, Hash, Headphones, Heart, House, Image, ImagePlus, Info, Keyboard, KeyRound, Laptop, LayoutDashboard, Lightbulb, Link, List, ListChecks, ListTodo, ListTree, ListX, LoaderCircle, LocateFixed, Lock, MapIcon, Maximize, Maximize2, Megaphone, MemoryStick, MessageCircle, MessageSquareDot, MessageSquareText, MessagesSquare, Mic, Minimize2, Minus, Monitor, MonitorSmartphone, MousePointer2, MousePointerClick, Package, PackageOpen, Paperclip, Pencil, Phone, Pin, PinOff, Play, Plus, Pointer, Power, Puzzle, QrCode, Quote, Radar, RefreshCw, Regex, Replace, ReplaceAll, Rocket, RotateCcw, Rows2, Save, Scan, ScanLine, ScrollText, Search, Send, Server, Share2, Shield, ShieldAlert, ShieldCheck, Shuffle, SlidersHorizontal, Smartphone, Sparkles, Square, SquareMinus, SquarePlus, SquareTerminal, Star, StarOff, Store, Target, Text, ThumbsDown, ThumbsUp, Timer, Trash2, TrendingDown, TrendingUp, Trophy, Undo2, Unplug, Upload, User, UserPlus, Users, Volume2, WholeWord, Wrench, X, Zap, } from 'lucide-react';
|
|
1
|
+
import { AlarmClock, Aperture, Archive, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, ArrowUpDown, Bell, BellOff, BookOpen, Bot, Box, Bug, Building2, Calendar, Camera, CaseSensitive, ChartColumn, ChartSpline, Check, ChevronDown, ChevronLeft, ChevronRight, ChevronsDownUp, ChevronsUpDown, ChevronUp, Circle, CircleAlert, CircleArrowRight, CircleHelp, Clipboard, ClipboardPaste, Clock, Cloud, Code, Coins, Columns2, Contact, Copy, CopyMinus, CornerDownRight, CornerUpLeft, Cpu, Crown, Database, Download, Ellipsis, ExternalLink, Eye, File, FileArchive, FileDiff, FilePlus, Files, FileText, Film, FlaskConical, Folder, FolderInput, FolderLock, FolderOpen, FolderPlus, FolderSearch, FolderTree, Forward, Gamepad2, Gauge, GitBranch, GitCommitHorizontal, Globe, Grip, HardDrive, Hash, Headphones, Heart, House, Image, ImagePlus, Info, Keyboard, KeyRound, Laptop, LayoutDashboard, Lightbulb, Link, List, ListChecks, ListTodo, ListTree, ListX, LoaderCircle, LocateFixed, Lock, MapIcon, Maximize, Maximize2, Megaphone, MemoryStick, MessageCircle, MessageSquareDot, MessageSquareText, MessagesSquare, Mic, Minimize2, Minus, Monitor, MonitorSmartphone, MousePointer2, MousePointerClick, Package, PackageOpen, Paperclip, Pencil, Phone, Pin, PinOff, Play, Plus, Pointer, Power, Puzzle, QrCode, Quote, Radar, RefreshCw, Regex, Replace, ReplaceAll, Rocket, RotateCcw, Rows2, Save, Scan, ScanLine, ScrollText, Search, Send, Server, Share2, Shield, ShieldAlert, ShieldCheck, Shuffle, SlidersHorizontal, Smartphone, Sparkles, Square, SquareMinus, SquarePlus, SquareTerminal, Star, StarOff, Store, Target, Text, ThumbsDown, ThumbsUp, Timer, Trash2, TrendingDown, TrendingUp, Trophy, Undo2, Unplug, Upload, User, UserPlus, Users, Volume2, WholeWord, Wrench, X, Zap, } from 'lucide-react';
|
|
2
2
|
/** The icons a web extension gets as `pi.ui.icons`; names are lucide's. Only add: removing one breaks extensions. */
|
|
3
3
|
export const WEB_ICONS = Object.freeze({
|
|
4
4
|
AlarmClock,
|
|
@@ -61,6 +61,7 @@ export const WEB_ICONS = Object.freeze({
|
|
|
61
61
|
FlaskConical,
|
|
62
62
|
Folder,
|
|
63
63
|
FolderInput,
|
|
64
|
+
FolderLock,
|
|
64
65
|
FolderOpen,
|
|
65
66
|
FolderPlus,
|
|
66
67
|
FolderSearch,
|
|
@@ -72,6 +72,42 @@ export interface WebCallMouth {
|
|
|
72
72
|
/** For a video call that begins; undefined when it cannot draw now (not set up, or the page too far from it). */
|
|
73
73
|
open(): Promise<WebMouthSession | undefined>;
|
|
74
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
|
+
}
|
|
75
111
|
/** The frame of a clip that shows at a moment of a reading: its name (faces/<clip>.mp4) and its frame. */
|
|
76
112
|
export type WebMouthSlot = [clip: string, frame: number];
|
|
77
113
|
/** A part of a frame drawn again: where it goes in the frame (pixels of the clip), soft at its edges. */
|
|
@@ -105,3 +141,12 @@ export interface WebMouthSession {
|
|
|
105
141
|
frame(say: number, slot: number): WebMouthFrame | undefined;
|
|
106
142
|
close(): void;
|
|
107
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
|
+
}
|
|
@@ -38,6 +38,35 @@ export interface WebChatIcon {
|
|
|
38
38
|
*/
|
|
39
39
|
folder?: string;
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* A small label a conversation has after its name, in the lists and on top of it (WebExtensionAPI.registerChatTag):
|
|
43
|
+
* what it is, at a glance (Work, of a directory marked so). A few words.
|
|
44
|
+
*/
|
|
45
|
+
export interface WebChatTag {
|
|
46
|
+
text: string;
|
|
47
|
+
/** Its color: `blue`, `gray` (with a lock), `green`; default `gray`. */
|
|
48
|
+
tone?: 'blue' | 'gray' | 'green';
|
|
49
|
+
/** Under a pointer: what it means. */
|
|
50
|
+
title?: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The tags an extension gives conversations (WebExtensionAPI.registerChatTag). Asked for each row as it is drawn:
|
|
54
|
+
* answer at once, from what the extension holds.
|
|
55
|
+
*/
|
|
56
|
+
export interface WebChatTagSource {
|
|
57
|
+
tag(chat: WebChat): WebChatTag | undefined;
|
|
58
|
+
/** What `tag` answers changed: the lists draw their rows again. */
|
|
59
|
+
subscribe?(listener: () => void): () => void;
|
|
60
|
+
}
|
|
61
|
+
/** What a web extension adds to the conversations of the lists (WebExtensionAPI extends it). */
|
|
62
|
+
export interface WebChatTagsAPI {
|
|
63
|
+
/**
|
|
64
|
+
* A small label for conversations, after their name in the lists and on top of a conversation: what they are at a
|
|
65
|
+
* glance (Work, of a directory marked so). The first extension that gives one for a conversation is drawn. Newer
|
|
66
|
+
* than some Ta apps: `pi.registerChatTag?.(…)`.
|
|
67
|
+
*/
|
|
68
|
+
registerChatTag(source: WebChatTagSource): void;
|
|
69
|
+
}
|
|
41
70
|
/**
|
|
42
71
|
* The conversations an extension gives an icon of their own (WebExtensionAPI.registerChatIcon): a brief it writes,
|
|
43
72
|
* the questions it asks. Asked for each row as it is drawn: answer at once, from what the extension holds.
|
|
@@ -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>;
|
|
@@ -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;
|
|
@@ -7,8 +7,8 @@ import type { Game3DProps } from '../game/game3d-protocol.js';
|
|
|
7
7
|
import type { ScreenPartSpec, TaScreen } from '../screen/screen-protocol.js';
|
|
8
8
|
import type { Language, Theme } from '../settings/settings-protocol.js';
|
|
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.js';
|
|
10
|
-
import type { WebAsk,
|
|
11
|
-
import type { WebDesktop, WebFileDrag } from './web-api-desktop.js';
|
|
10
|
+
import type { WebAsk, WebCallsAPI, WebChatIconSource, WebChatTagsAPI, 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.js';
|
|
11
|
+
import type { WebDesktop, WebDeviceUI, WebFileDrag } from './web-api-desktop.js';
|
|
12
12
|
import type { WebEditorsUI } from './web-api-editors.js';
|
|
13
13
|
import type { WebHomeUI, WebPartnersAPI, WebPartnersUI } from './web-api-home.js';
|
|
14
14
|
import type { WebFileRef, WebMenus } from './web-api-menus.js';
|
|
@@ -31,11 +31,10 @@ export type * from './web-api-services.js';
|
|
|
31
31
|
export type * from './web-api-terminal.js';
|
|
32
32
|
export type { WebPageInfo, WebPageState } from './web-pages.js';
|
|
33
33
|
/**
|
|
34
|
-
* What a web extension gets: the web client's side of pi's extension API,
|
|
35
|
-
*
|
|
36
|
-
* package (see TaWebExtensionInfo); it exports a {@link WebExtensionFactory}.
|
|
34
|
+
* What a web extension gets: the web client's side of pi's extension API, its names where they mean the same. A web
|
|
35
|
+
* extension is one ES module without imports, the `web` part of a pi package (TaWebExtensionInfo): a {@link WebExtensionFactory}.
|
|
37
36
|
*/
|
|
38
|
-
export interface WebExtensionAPI extends WebServices, WebPartnersAPI, WebMenus {
|
|
37
|
+
export interface WebExtensionAPI extends WebServices, WebPartnersAPI, WebMenus, WebCallsAPI, WebChatTagsAPI {
|
|
39
38
|
/** The React of the page: an extension brings no React of its own. */
|
|
40
39
|
readonly React: typeof React;
|
|
41
40
|
readonly ui: WebExtensionUI;
|
|
@@ -52,10 +51,6 @@ export interface WebExtensionAPI extends WebServices, WebPartnersAPI, WebMenus {
|
|
|
52
51
|
* `options.spoken`: what of a block is said aloud; older apps leave it out.
|
|
53
52
|
*/
|
|
54
53
|
registerCodeRenderer(language: string, renderer: React.ComponentType<WebCodeRendererProps>, options?: WebCodeRendererOptions): void;
|
|
55
|
-
/** Answers in calls in place of the conversation called (the first registered). Newer than some Ta apps: `pi.registerCallPartner?.(…)`. */
|
|
56
|
-
registerCallPartner(partner: WebCallPartner): void;
|
|
57
|
-
/** Draws the mouth of the person of video calls as Ta speaks (the first registered). Newer than some Ta apps. */
|
|
58
|
-
registerCallMouth(mouth: WebCallMouth): void;
|
|
59
54
|
/** Who answers in the sessions of its group (TaOpenSessionOptions.group, its package), drawn at each turn in place of ta. */
|
|
60
55
|
registerAvatar(avatar: React.ComponentType<WebAvatarProps>): void;
|
|
61
56
|
/**
|
|
@@ -228,7 +223,7 @@ export interface WebNotifyOptions {
|
|
|
228
223
|
export type { ScreenAction, ScreenItem, ScreenPartSpec, ScreenPartView, ScreenPlace, ScreenScrollable, ScreenScrollTo } from '../screen/screen-protocol.js';
|
|
229
224
|
/** What web extensions see of TaScreen. */
|
|
230
225
|
export type WebScreen = Pick<TaScreen, 'agent' | 'parts' | 'act' | 'element' | 'where' | 'places' | 'go' | 'pageScroll' | 'scroll'>;
|
|
231
|
-
export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI {
|
|
226
|
+
export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI, WebDeviceUI {
|
|
232
227
|
/** A widget around the message box, as pi's, or a card in the workbench on the right; `undefined` removes it. */
|
|
233
228
|
setWidget(key: string, widget: React.ComponentType | undefined, options?: WidgetOptions): void;
|
|
234
229
|
/**
|
|
@@ -509,10 +504,12 @@ export interface WebExtensionUI extends WebHomeUI, WebPartnersUI, WebEditorsUI {
|
|
|
509
504
|
readonly HoldToTalk: React.ComponentType<WebHoldToTalkProps>;
|
|
510
505
|
/** Listening and reading aloud as the conversations of the page do: its recognizer, the voice of the settings. */
|
|
511
506
|
readonly voice: WebVoice;
|
|
512
|
-
/**
|
|
507
|
+
/** As the conversations show it; `inline`: in a line; `send`, `answer`: a group chat's, for taps in cards (newer). */
|
|
513
508
|
readonly Markdown: React.ComponentType<{
|
|
514
509
|
text: string;
|
|
515
510
|
inline?: boolean;
|
|
511
|
+
send?: WebCodeRendererProps['send'];
|
|
512
|
+
answer?: string;
|
|
516
513
|
}>;
|
|
517
514
|
/**
|
|
518
515
|
* A conversation to read, drawn as those of the page are, with what extensions draw in them (cards, plots,
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
import type { TaWebExtensionInfo } from '@celljs/ta-protocol';
|
|
2
|
+
import type { DeviceValues } from '../offline/device-values.js';
|
|
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
|
}
|
|
@@ -1,33 +1,25 @@
|
|
|
1
1
|
import { StateUtil } from '../state/state-protocol.js';
|
|
2
2
|
/**
|
|
3
|
-
* The code of the web extensions of packages, kept
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* The code of the web extensions of packages, kept on this device by its hash (`TaWebExtensionInfo.hash`, of the
|
|
4
|
+
* code itself): a start reads from ta serve only what changed. A phone over the relay read some 230 KB at every start
|
|
5
|
+
* before its double's list could show.
|
|
6
|
+
* The code is kept in IndexedDB (DeviceValues), not localStorage: it is megabytes, and in localStorage it filled the
|
|
7
|
+
* 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
8
|
* 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
|
|
9
|
+
* The list itself is kept for each computer in localStorage, small, for the extensions to start before it answers.
|
|
8
10
|
*/
|
|
9
11
|
export class WebExtensionCode {
|
|
10
|
-
constructor(storage) {
|
|
12
|
+
constructor(values, storage) {
|
|
13
|
+
this.values = values;
|
|
11
14
|
this.storage = storage;
|
|
15
|
+
this.forgetOld();
|
|
12
16
|
}
|
|
13
17
|
get(hash) {
|
|
14
|
-
|
|
15
|
-
var _b;
|
|
16
|
-
try {
|
|
17
|
-
return (_b = (_a = this.storage()) === null || _a === void 0 ? void 0 : _a.getItem(WebExtensionCode.PREFIX + hash)) !== null && _b !== void 0 ? _b : undefined;
|
|
18
|
-
}
|
|
19
|
-
catch (_c) {
|
|
20
|
-
return undefined;
|
|
21
|
-
}
|
|
18
|
+
return this.values.get(WebExtensionCode.PREFIX + hash).catch(() => undefined);
|
|
22
19
|
}
|
|
23
|
-
set(hash, code) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
(_a = this.storage()) === null || _a === void 0 ? void 0 : _a.setItem(WebExtensionCode.PREFIX + hash, code);
|
|
27
|
-
}
|
|
28
|
-
catch (_b) {
|
|
29
|
-
// Full, or a browser that keeps nothing: read again next time.
|
|
30
|
-
}
|
|
20
|
+
async set(hash, code) {
|
|
21
|
+
// Full, or a device that keeps nothing: read again next time.
|
|
22
|
+
await this.values.set(WebExtensionCode.PREFIX + hash, code).catch(() => undefined);
|
|
31
23
|
}
|
|
32
24
|
/** The list the computer `host` gave last (with the values it keeps for the page, forgotten with them). */
|
|
33
25
|
list(host) {
|
|
@@ -51,21 +43,26 @@ export class WebExtensionCode {
|
|
|
51
43
|
}
|
|
52
44
|
}
|
|
53
45
|
/** Only the code of `hashes`, those of the list of now. */
|
|
54
|
-
keepOnly(hashes) {
|
|
46
|
+
async keepOnly(hashes) {
|
|
47
|
+
const keep = new Set([...hashes].map(hash => WebExtensionCode.PREFIX + hash));
|
|
48
|
+
const keys = await this.values.keys(WebExtensionCode.PREFIX).catch(() => []);
|
|
49
|
+
await Promise.all(keys.filter(key => !keep.has(key)).map(key => this.values.delete(key).catch(() => undefined)));
|
|
50
|
+
}
|
|
51
|
+
/** The code a page of before kept in localStorage, which filled it. */
|
|
52
|
+
forgetOld() {
|
|
55
53
|
const storage = this.storage();
|
|
56
54
|
if (!storage) {
|
|
57
55
|
return;
|
|
58
56
|
}
|
|
59
|
-
const keep = new Set([...hashes].map(hash => WebExtensionCode.PREFIX + hash));
|
|
60
57
|
try {
|
|
61
|
-
const
|
|
58
|
+
const old = [];
|
|
62
59
|
for (let index = 0; index < storage.length; index++) {
|
|
63
60
|
const key = storage.key(index);
|
|
64
|
-
if (
|
|
65
|
-
|
|
61
|
+
if (key === null || key === void 0 ? void 0 : key.startsWith(WebExtensionCode.PREFIX)) {
|
|
62
|
+
old.push(key);
|
|
66
63
|
}
|
|
67
64
|
}
|
|
68
|
-
for (const key of
|
|
65
|
+
for (const key of old) {
|
|
69
66
|
storage.removeItem(key);
|
|
70
67
|
}
|
|
71
68
|
}
|
|
@@ -74,6 +71,7 @@ export class WebExtensionCode {
|
|
|
74
71
|
}
|
|
75
72
|
}
|
|
76
73
|
}
|
|
74
|
+
/** Of the code, in DeviceValues; and of before, in localStorage, taken away. */
|
|
77
75
|
WebExtensionCode.PREFIX = 'ta.web-extension ';
|
|
78
76
|
WebExtensionCode.LIST = 'web-extensions';
|
|
79
77
|
//# sourceMappingURL=web-extension-code.js.map
|
|
@@ -36,6 +36,7 @@ import { WebDialog } from '../components/web-dialog.js';
|
|
|
36
36
|
import { useBackLayer } from '../device/back-stack.js';
|
|
37
37
|
import { CodeScan } from '../device/code-scan.js';
|
|
38
38
|
import { useDevice } from '../device/device.js';
|
|
39
|
+
import { FileSave } from '../device/file-save.js';
|
|
39
40
|
import { DraftPlaces } from '../drafts/drafts-protocol.js';
|
|
40
41
|
import { Game3DView, GameView } from '../game/game-view.js';
|
|
41
42
|
import { message as messageOf } from '../i18n/messages.js';
|
|
@@ -209,10 +210,12 @@ export class WebExtensionContext {
|
|
|
209
210
|
}),
|
|
210
211
|
registerCallPartner: partner => register(() => run.callPartners.push(partner)),
|
|
211
212
|
registerCallMouth: mouth => register(() => run.callMouths.push(mouth)),
|
|
213
|
+
registerCallMoves: moves => register(() => run.callMoves.push(moves)),
|
|
212
214
|
registerAvatar: avatar => register(() => {
|
|
213
215
|
run.avatar = avatar;
|
|
214
216
|
}),
|
|
215
217
|
registerChatIcon: source => register(() => run.chatIcons.push(source)),
|
|
218
|
+
registerChatTag: source => register(() => run.chatTags.push(source)),
|
|
216
219
|
registerTool: tool => register(() => run.tools.push(tool)),
|
|
217
220
|
registerToolRenderer: resolver => register(() => run.toolRenderers.push(resolver)),
|
|
218
221
|
registerTasks: source => register(() => run.taskSources.push(source)),
|
|
@@ -361,6 +364,7 @@ export class WebExtensionContext {
|
|
|
361
364
|
scanCode: CodeScan.available()
|
|
362
365
|
? instructions => (run.stopped ? Promise.resolve(undefined) : CodeScan.read(instructions, messageOf(settings.state.language, 'ta.cancel')))
|
|
363
366
|
: undefined,
|
|
367
|
+
saveFile: FileSave.available() ? (file, name) => (run.stopped ? Promise.resolve('cancelled') : FileSave.save(file, name)) : undefined,
|
|
364
368
|
scan: CodeScan.available() ? () => (run.stopped ? Promise.resolve() : new CodeScan(host).scan()) : undefined,
|
|
365
369
|
stopExtension: name => !run.stopped && host.extensions.stopExtension(name),
|
|
366
370
|
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.js';
|
|
4
4
|
import type { BlockSpeech } from '../util/spoken.js';
|
|
5
|
-
import type { WebAvatarProps, WebCallMouth, 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.js';
|
|
5
|
+
import type { WebAvatarProps, WebCallMouth, WebCallMoves, WebCallPartner, WebChatIconSource, WebChatTagSource, 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.js';
|
|
6
6
|
import type { WebHomeBoard } from './web-home.js';
|
|
7
7
|
import type { PageUsage, WebPageInfo } from './web-pages.js';
|
|
8
8
|
import type { WebPartnerBoard } from './web-partners.js';
|
|
@@ -104,6 +104,11 @@ export interface WebChatIconEntry {
|
|
|
104
104
|
extension: string;
|
|
105
105
|
source: WebChatIconSource;
|
|
106
106
|
}
|
|
107
|
+
export interface WebChatTagEntry {
|
|
108
|
+
/** The name of the extension's package. */
|
|
109
|
+
extension: string;
|
|
110
|
+
source: WebChatTagSource;
|
|
111
|
+
}
|
|
107
112
|
export interface WebExtensionsState {
|
|
108
113
|
extensions: LoadedWebExtension[];
|
|
109
114
|
views: WebViewEntry[];
|
|
@@ -123,12 +128,21 @@ export interface WebExtensionsState {
|
|
|
123
128
|
codeSpeech: BlockSpeech;
|
|
124
129
|
/** Who answers in calls in place of the conversation (WebExtensionAPI.registerCallPartner): the first registered. */
|
|
125
130
|
callPartner?: WebCallPartner;
|
|
131
|
+
/**
|
|
132
|
+
* The group of the conversations its partner answers calls in (its package, TaOpenSessionOptions.group): they show
|
|
133
|
+
* as the record of a call (CallTranscript).
|
|
134
|
+
*/
|
|
135
|
+
callGroup?: string;
|
|
126
136
|
/** What draws the mouth of the person of video calls (WebExtensionAPI.registerCallMouth): the first registered. */
|
|
127
137
|
callMouth?: WebCallMouth;
|
|
138
|
+
/** Moves of the person of video calls extensions add (WebExtensionAPI.registerCallMoves). */
|
|
139
|
+
callMoves: WebCallMoves[];
|
|
128
140
|
/** By the name of the extension, the group of the sessions it draws (WebExtensionAPI.registerAvatar). */
|
|
129
141
|
avatars: Record<string, React.ComponentType<WebAvatarProps>>;
|
|
130
142
|
/** The icons extensions give conversations of theirs (WebExtensionAPI.registerChatIcon), with the extension of each. */
|
|
131
143
|
chatIcons: WebChatIconEntry[];
|
|
144
|
+
/** The tags extensions give conversations (WebExtensionAPI.registerChatTag), with the extension of each. */
|
|
145
|
+
chatTags: WebChatTagEntry[];
|
|
132
146
|
/** What answers how far the page goes on its own (WebExtensionAPI.registerInitiative), in the order registered. */
|
|
133
147
|
initiatives: WebInitiative[];
|
|
134
148
|
/** The first tool of each name. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TaEvent } from '@celljs/ta-protocol';
|
|
2
2
|
import type * as React from 'react';
|
|
3
|
-
import type { WebCallMouth, WebCallPartner, WebChatIconSource, WebComposerAddon, WebFileMenu, WebHomeSource, WebInitiative, WebMenuItem, WebOpener, WebPartnerSource, WebRoomAddon, WebSearchSource, WebSessionMenu, WebSettingsSection, WebTaskSource, WebTool, WebToolRendererResolver, WebView, WidgetOptions } from './web-extension-api.js';
|
|
3
|
+
import type { WebCallMouth, WebCallMoves, WebCallPartner, WebChatIconSource, WebChatTagSource, WebComposerAddon, WebFileMenu, WebHomeSource, WebInitiative, WebMenuItem, WebOpener, WebPartnerSource, WebRoomAddon, WebSearchSource, WebSessionMenu, WebSettingsSection, WebTaskSource, WebTool, WebToolRendererResolver, WebView, WidgetOptions } from './web-extension-api.js';
|
|
4
4
|
import type { LoadedWebExtension, WebExtensionsState } from './web-extension-protocol.js';
|
|
5
5
|
/** What an extension registered through its API: all of it goes when it stops. */
|
|
6
6
|
export interface WebRegistrations {
|
|
@@ -14,8 +14,10 @@ export interface WebRegistrations {
|
|
|
14
14
|
codeSpeech: Map<string, WebExtensionsState['codeSpeech'][string]>;
|
|
15
15
|
callPartners: WebCallPartner[];
|
|
16
16
|
callMouths: WebCallMouth[];
|
|
17
|
+
callMoves: WebCallMoves[];
|
|
17
18
|
avatar?: WebExtensionsState['avatars'][string];
|
|
18
19
|
chatIcons: WebChatIconSource[];
|
|
20
|
+
chatTags: WebChatTagSource[];
|
|
19
21
|
homeSources: WebHomeSource[];
|
|
20
22
|
partnerSources: WebPartnerSource[];
|
|
21
23
|
initiatives: WebInitiative[];
|
|
@@ -59,5 +61,5 @@ export declare namespace WebExtensionRunUtil {
|
|
|
59
61
|
/** Subscribes for the extension: undone when it stops, or by the function returned. */
|
|
60
62
|
function track(run: WebExtensionRun, subscribe: () => () => void): () => void;
|
|
61
63
|
/** What the extensions that run registered, as the page shows it: the first of a message type or a tool name wins. */
|
|
62
|
-
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' | 'callMouth' | 'avatars' | 'chatIcons' | 'initiatives' | 'tools' | 'toolRenderers' | 'searches'>;
|
|
64
|
+
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' | 'chatTags' | 'initiatives' | 'tools' | 'toolRenderers' | 'searches'>;
|
|
63
65
|
}
|
|
@@ -24,8 +24,10 @@ export var WebExtensionRunUtil;
|
|
|
24
24
|
codeSpeech: new Map(),
|
|
25
25
|
callPartners: [],
|
|
26
26
|
callMouths: [],
|
|
27
|
+
callMoves: [],
|
|
27
28
|
avatar: undefined,
|
|
28
29
|
chatIcons: [],
|
|
30
|
+
chatTags: [],
|
|
29
31
|
homeSources: [],
|
|
30
32
|
partnerSources: [],
|
|
31
33
|
initiatives: [],
|
|
@@ -72,7 +74,8 @@ export var WebExtensionRunUtil;
|
|
|
72
74
|
WebExtensionRunUtil.track = track;
|
|
73
75
|
/** What the extensions that run registered, as the page shows it: the first of a message type or a tool name wins. */
|
|
74
76
|
function collect(runs, onOpen) {
|
|
75
|
-
var _a
|
|
77
|
+
var _a;
|
|
78
|
+
var _b, _c, _d;
|
|
76
79
|
const renderers = {};
|
|
77
80
|
const codeRenderers = {};
|
|
78
81
|
const codeSpeech = {};
|
|
@@ -83,13 +86,13 @@ export var WebExtensionRunUtil;
|
|
|
83
86
|
avatars[run.loaded.name] = run.avatar;
|
|
84
87
|
}
|
|
85
88
|
for (const [type, renderer] of run.renderers) {
|
|
86
|
-
(
|
|
89
|
+
(_b = renderers[type]) !== null && _b !== void 0 ? _b : (renderers[type] = renderer);
|
|
87
90
|
}
|
|
88
91
|
for (const [language, renderer] of run.codeRenderers) {
|
|
89
|
-
(
|
|
92
|
+
(_c = codeRenderers[language]) !== null && _c !== void 0 ? _c : (codeRenderers[language] = renderer);
|
|
90
93
|
}
|
|
91
94
|
for (const [language, spoken] of run.codeSpeech) {
|
|
92
|
-
(
|
|
95
|
+
(_d = codeSpeech[language]) !== null && _d !== void 0 ? _d : (codeSpeech[language] = spoken);
|
|
93
96
|
}
|
|
94
97
|
for (const tool of run.tools) {
|
|
95
98
|
if (!tools.some(other => other.name === tool.name)) {
|
|
@@ -138,9 +141,12 @@ export var WebExtensionRunUtil;
|
|
|
138
141
|
codeRenderers,
|
|
139
142
|
codeSpeech,
|
|
140
143
|
callPartner: runs.flatMap(run => run.callPartners)[0],
|
|
144
|
+
callGroup: (_a = runs.find(run => run.callPartners.length)) === null || _a === void 0 ? void 0 : _a.loaded.name,
|
|
141
145
|
callMouth: runs.flatMap(run => run.callMouths)[0],
|
|
146
|
+
callMoves: runs.flatMap(run => run.callMoves),
|
|
142
147
|
avatars,
|
|
143
148
|
chatIcons: runs.flatMap(run => run.chatIcons.map(source => ({ extension: run.loaded.name, source }))),
|
|
149
|
+
chatTags: runs.flatMap(run => run.chatTags.map(source => ({ extension: run.loaded.name, source }))),
|
|
144
150
|
initiatives: runs.flatMap(run => run.initiatives),
|
|
145
151
|
tools,
|
|
146
152
|
toolRenderers: runs.flatMap(run => run.toolRenderers),
|