@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
|
@@ -38,7 +38,6 @@ exports.AccountDialogs = AccountDialogs;
|
|
|
38
38
|
exports.AccountFigure = AccountFigure;
|
|
39
39
|
exports.useAccount = useAccount;
|
|
40
40
|
exports.AccountMenu = AccountMenu;
|
|
41
|
-
const ta_protocol_1 = require("@celljs/ta-protocol");
|
|
42
41
|
const lucide_react_1 = require("lucide-react");
|
|
43
42
|
const React = __importStar(require("react"));
|
|
44
43
|
const account_side_1 = require("../account/account-side");
|
|
@@ -55,29 +54,16 @@ const dino_look_picker_1 = require("./dino-look-picker");
|
|
|
55
54
|
const dismiss_1 = require("./dismiss");
|
|
56
55
|
const face_1 = require("./face");
|
|
57
56
|
const icon_1 = require("./icon");
|
|
57
|
+
const me_rows_1 = require("./me-rows");
|
|
58
58
|
const profile_view_1 = require("./profile-view");
|
|
59
59
|
const relay_view_1 = require("./relay-view");
|
|
60
60
|
const secret_peek_1 = require("./secret-peek");
|
|
61
61
|
const serve_restart_1 = require("./serve-restart");
|
|
62
62
|
const settings_controls_1 = require("./settings-controls");
|
|
63
|
-
|
|
64
|
-
const THEMES = [
|
|
65
|
-
['system', 'ta.settings.theme.system'],
|
|
66
|
-
['light', 'ta.settings.theme.light'],
|
|
67
|
-
['dark', 'ta.settings.theme.dark'],
|
|
68
|
-
];
|
|
69
|
-
const LANGUAGES = [
|
|
70
|
-
['system', 'ta.settings.language.system'],
|
|
71
|
-
...ta_protocol_1.TaLanguageUtil.ALL.map(language => [language, ta_protocol_1.TaLanguageUtil.NAMES[language]]),
|
|
72
|
-
];
|
|
73
|
-
/**
|
|
74
|
-
* The entries of the account and of the settings, in groups: the settings, the packages and the keys; the model
|
|
75
|
-
* accounts, the default directory and the phone; the theme and the language; the pages of extensions that are the
|
|
76
|
-
* user's own (WebView.group `me`: their feedback), about, and signing out.
|
|
77
|
-
*/
|
|
63
|
+
/** The entries of the account: the rows of Me on a phone, the menu of the account on the rail (MeUtil.keys). */
|
|
78
64
|
function useAccountEntries(onSettings, onDialog) {
|
|
65
|
+
var _a;
|
|
79
66
|
const t = (0, use_t_1.useT)();
|
|
80
|
-
const [{ settings }, store] = (0, hooks_1.useSettings)();
|
|
81
67
|
const [{ hosts, host }, workbench] = (0, hooks_1.useWorkbench)();
|
|
82
68
|
const inUse = hosts.find(one => one.id === host);
|
|
83
69
|
const [{ installable, standalone }, pwa] = (0, hooks_1.usePwa)();
|
|
@@ -113,68 +99,45 @@ function useAccountEntries(onSettings, onDialog) {
|
|
|
113
99
|
notices.error(error);
|
|
114
100
|
}
|
|
115
101
|
};
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
icon,
|
|
120
|
-
|
|
121
|
-
|
|
102
|
+
const update = restartTa.can && restartTa.update ? restartTa.update : undefined;
|
|
103
|
+
const entries = {};
|
|
104
|
+
const entry = (key, label, icon, run, more = {}) => {
|
|
105
|
+
entries[key] = { key, label, icon, run, ...more };
|
|
106
|
+
};
|
|
107
|
+
entry('look', t('ta.look.title'), lucide_react_1.Sparkles, () => dino_look_picker_1.DinoLookPicker.open());
|
|
108
|
+
entry('devices', t('ta.myDevices.title'), lucide_react_1.MonitorSmartphone, () => onDialog('devices'), {
|
|
109
|
+
detail: inUse && (hosts_1.HostUtil.label(inUse) || t('ta.hosts.thisServer')),
|
|
122
110
|
});
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}),
|
|
148
|
-
entry('language', t('ta.settings.language'), lucide_react_1.Languages, () => onSettings('language'), {
|
|
149
|
-
choices: LANGUAGES.map(([language, label]) => ({
|
|
150
|
-
key: language,
|
|
151
|
-
label: language === 'system' ? t(label) : label,
|
|
152
|
-
checked: settings.language === language,
|
|
153
|
-
pick: () => store.update({ language }),
|
|
154
|
-
})),
|
|
155
|
-
}),
|
|
156
|
-
],
|
|
157
|
-
[
|
|
158
|
-
...(installable && !standalone ? [entry('install', t('ta.pwa.install'), lucide_react_1.Download, () => void pwa.install())] : []),
|
|
159
|
-
...(restartTa.can
|
|
160
|
-
? [
|
|
161
|
-
entry('restart', restartTa.update ? t('ta.update.restartTo', { version: serve_restart_1.ServeRestartUtil.label(restartTa.update) }) : t('ta.restart'), lucide_react_1.RotateCw, () => void restartTa.restart()),
|
|
162
|
-
]
|
|
163
|
-
: []),
|
|
164
|
-
...own.map(view => { var _a; return entry(`page:${view.id}`, web_extension_protocol_1.WebLabelUtil.text(view.title), ((_a = view.icon) !== null && _a !== void 0 ? _a : lucide_react_1.Info), () => void extensions.showView(view.id)); }),
|
|
165
|
-
entry('about', t('ta.manage.about'), lucide_react_1.Info, () => onSettings('about')),
|
|
166
|
-
// As WeChat's: the account in use kept, with its computers, to come back to in one tap (docs/design/ta-me.md 4).
|
|
167
|
-
...(app && signedIn ? [entry('switchAccount', t('ta.account.switchSignIn'), lucide_react_1.ArrowLeftRight, () => { var _a; return (_a = device_account_1.DeviceAccount.current()) === null || _a === void 0 ? void 0 : _a.switchAccount(); })] : []),
|
|
168
|
-
entry('signOut', t('ta.settings.signOut'), lucide_react_1.LogOut, () => void signOut(), { danger: true }),
|
|
169
|
-
],
|
|
170
|
-
];
|
|
111
|
+
entry('relay', t('ta.relay.title'), lucide_react_1.Smartphone, () => onDialog('relay'));
|
|
112
|
+
entry('accounts', t('ta.settings.accounts'), lucide_react_1.KeyRound, () => onDialog('accounts'));
|
|
113
|
+
if (vault) {
|
|
114
|
+
entry('vault', t('ta.manage.vault'), lucide_react_1.Vault, vault);
|
|
115
|
+
}
|
|
116
|
+
for (const view of own) {
|
|
117
|
+
entry(`page:${view.id}`, web_extension_protocol_1.WebLabelUtil.text(view.title), ((_a = view.icon) !== null && _a !== void 0 ? _a : lucide_react_1.Info), () => void extensions.showView(view.id));
|
|
118
|
+
}
|
|
119
|
+
entry('settings', t('ta.settings'), lucide_react_1.Settings2, () => onSettings(), { keys: touch ? undefined : 'Mod+,' });
|
|
120
|
+
if (update) {
|
|
121
|
+
entry('restart', t('ta.update.restartTo', { version: serve_restart_1.ServeRestartUtil.label(update) }), lucide_react_1.RotateCw, () => void restartTa.restart(), { action: true });
|
|
122
|
+
}
|
|
123
|
+
entry('install', t('ta.pwa.install'), lucide_react_1.Download, () => void pwa.install(), { action: true });
|
|
124
|
+
// As WeChat's: the account in use kept, with its computers, to come back to in one tap (docs/design/ta-me.md 4).
|
|
125
|
+
entry('switchAccount', t('ta.account.switchSignIn'), lucide_react_1.ArrowLeftRight, () => { var _a; return (_a = device_account_1.DeviceAccount.current()) === null || _a === void 0 ? void 0 : _a.switchAccount(); });
|
|
126
|
+
entry('signOut', t('ta.settings.signOut'), lucide_react_1.LogOut, () => void signOut(), { danger: true });
|
|
127
|
+
return me_rows_1.MeUtil.keys({
|
|
128
|
+
vault: Boolean(vault),
|
|
129
|
+
own: own.map(view => view.id),
|
|
130
|
+
update: Boolean(update),
|
|
131
|
+
installable: installable && !standalone,
|
|
132
|
+
switchAccount: app && signedIn,
|
|
133
|
+
pairPhone: !app && !handheld,
|
|
134
|
+
}).map(group => group.map(key => entries[key]));
|
|
171
135
|
}
|
|
172
136
|
/** What the entries of the account open over the page. */
|
|
173
137
|
function AccountDialogs({ dialog, onClose, onDialog }) {
|
|
174
138
|
return (React.createElement(React.Fragment, null,
|
|
175
139
|
dialog === 'profile' && React.createElement(profile_view_1.ProfileDialog, { onClose: onClose, onDevices: () => onDialog('devices') }),
|
|
176
140
|
dialog === 'accounts' && React.createElement(auth_view_1.AuthDialog, { onClose: onClose }),
|
|
177
|
-
dialog === 'directory' && React.createElement(working_directory_1.WorkingDirectoryPicker, { onClose: onClose }),
|
|
178
141
|
dialog === 'relay' && React.createElement(relay_view_1.RelayDialog, { onClose: onClose }),
|
|
179
142
|
dialog === 'devices' && React.createElement(account_view_1.DevicesDialog, { onClose: onClose })));
|
|
180
143
|
}
|
|
@@ -242,46 +205,29 @@ function onArrows(event) {
|
|
|
242
205
|
}
|
|
243
206
|
/**
|
|
244
207
|
* The account at the foot of the rail, with the settings: who is signed in to which machine and whether the
|
|
245
|
-
* page is connected (a dot on the figure while it is not), then the entries of useAccountEntries
|
|
246
|
-
*
|
|
208
|
+
* page is connected (a dot on the figure while it is not), then the entries of useAccountEntries. A phone has them as
|
|
209
|
+
* its tab Me (me-view.tsx).
|
|
247
210
|
*/
|
|
248
211
|
function AccountMenu({ onSettings, active }) {
|
|
249
212
|
var _a, _b;
|
|
250
213
|
const t = (0, use_t_1.useT)();
|
|
251
214
|
const account = useAccount();
|
|
252
215
|
const [open, setOpen] = React.useState(false);
|
|
253
|
-
const [sub, setSub] = React.useState();
|
|
254
216
|
const [dialog, setDialog] = React.useState();
|
|
255
217
|
const root = React.useRef(null);
|
|
256
218
|
const button = React.useRef(null);
|
|
257
219
|
const id = React.useId();
|
|
258
|
-
const close = React.useCallback(() =>
|
|
259
|
-
setOpen(false);
|
|
260
|
-
setSub(undefined);
|
|
261
|
-
}, []);
|
|
220
|
+
const close = React.useCallback(() => setOpen(false), []);
|
|
262
221
|
(0, dismiss_1.useDismiss)(open, close, root, button);
|
|
263
222
|
const groups = useAccountEntries(onSettings, setDialog);
|
|
264
223
|
const label = `${t('ta.account.menu')} · ${account.state}`;
|
|
265
|
-
const item = (entry) => {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
React.createElement("span", { className: "ta-menu-label" }, entry.label),
|
|
273
|
-
entry.keys && React.createElement(settings_controls_1.Keys, { keys: entry.keys })));
|
|
274
|
-
}
|
|
275
|
-
const shown = sub === entry.key;
|
|
276
|
-
return (React.createElement("div", { key: entry.key, className: "ta-submenu-anchor" },
|
|
277
|
-
React.createElement("button", { type: "button", role: "menuitem", "aria-haspopup": "menu", "aria-expanded": shown, className: `ta-account-item${shown ? ' ta-on' : ''}`, onMouseEnter: () => setSub(entry.key), onClick: () => setSub(shown ? undefined : entry.key), onKeyDown: event => event.key === 'ArrowRight' && setSub(entry.key) },
|
|
278
|
-
React.createElement(icon_1.Icon, { icon: entry.icon, size: 15 }),
|
|
279
|
-
React.createElement("span", { className: "ta-menu-label" }, entry.label),
|
|
280
|
-
React.createElement(icon_1.Icon, { icon: lucide_react_1.ChevronRight, size: 14, className: "ta-menu-chevron" })),
|
|
281
|
-
shown && (React.createElement("div", { className: "ta-account-menu ta-submenu", role: "menu", "aria-label": entry.label, onKeyDown: event => event.key === 'ArrowLeft' && setSub(undefined) }, entry.choices.map(choice => (React.createElement("button", { key: choice.key, type: "button", role: "menuitemradio", "aria-checked": choice.checked, className: "ta-account-item", onClick: choice.pick },
|
|
282
|
-
React.createElement("span", { className: "ta-menu-check" }, choice.checked && React.createElement(icon_1.Icon, { icon: lucide_react_1.Check, size: 14 })),
|
|
283
|
-
React.createElement("span", { className: "ta-menu-label" }, choice.label))))))));
|
|
284
|
-
};
|
|
224
|
+
const item = (entry) => (React.createElement("button", { key: entry.key, type: "button", role: "menuitem", className: `ta-account-item${entry.danger ? ' ta-danger' : ''}`, onClick: () => {
|
|
225
|
+
close();
|
|
226
|
+
entry.run();
|
|
227
|
+
} },
|
|
228
|
+
React.createElement(icon_1.Icon, { icon: entry.icon, size: 15 }),
|
|
229
|
+
React.createElement("span", { className: "ta-menu-label" }, entry.label),
|
|
230
|
+
entry.keys && React.createElement(settings_controls_1.Keys, { keys: entry.keys })));
|
|
285
231
|
return (React.createElement("div", { className: "ta-account", ref: root },
|
|
286
232
|
React.createElement("button", { ref: button, type: "button", className: `ta-account-button${open || active ? ' ta-on' : ''}`, title: `${account.name} · ${account.state}`, "aria-label": label, "aria-haspopup": "menu", "aria-expanded": open, "aria-controls": open ? id : undefined, "data-ta-place": "settings", onClick: () => (open ? close() : setOpen(true)) },
|
|
287
233
|
React.createElement(AccountFigure, { size: 28, className: "ta-account-figure" }),
|
|
@@ -39,6 +39,7 @@ const extension_view_1 = require("../extension/extension-view");
|
|
|
39
39
|
const hooks_1 = require("../hooks");
|
|
40
40
|
const code_renderers_1 = require("../markdown/code-renderers");
|
|
41
41
|
const chat_icon_1 = require("./chat-icon");
|
|
42
|
+
const chat_tag_1 = require("./chat-tag");
|
|
42
43
|
const link_1 = require("./link");
|
|
43
44
|
const media_1 = require("./media");
|
|
44
45
|
const secret_peek_1 = require("./secret-peek");
|
|
@@ -57,8 +58,10 @@ function AppContexts({ fileUrl, openLink, children, }) {
|
|
|
57
58
|
React.createElement(extension_view_1.ToolRenderers.Provider, { value: extensions.toolRenderers },
|
|
58
59
|
React.createElement(extension_view_1.SessionAvatars.Provider, { value: extensions.avatars },
|
|
59
60
|
React.createElement(chat_icon_1.ChatIconsProvider, { entries: extensions.chatIcons },
|
|
60
|
-
React.createElement(
|
|
61
|
-
React.createElement(extension_view_1.
|
|
62
|
-
React.createElement(
|
|
61
|
+
React.createElement(chat_tag_1.ChatTagsProvider, { entries: extensions.chatTags },
|
|
62
|
+
React.createElement(extension_view_1.SessionMenus.Provider, { value: extensions.sessionMenus },
|
|
63
|
+
React.createElement(extension_view_1.LoadedExtensions.Provider, { value: extensions.extensions },
|
|
64
|
+
React.createElement(extension_view_1.CallGroup.Provider, { value: extensions.callGroup },
|
|
65
|
+
React.createElement(secret_text_1.SecretPeeks.Provider, { value: secretPeek }, children)))))))))))));
|
|
63
66
|
}
|
|
64
67
|
//# sourceMappingURL=app-contexts.js.map
|
|
@@ -146,11 +146,11 @@ function SidebarView({ view }) {
|
|
|
146
146
|
const arrived = useArrived(view);
|
|
147
147
|
return (React.createElement("section", { className: "ta-side-view", "aria-label": title, "data-arrived": arrived ? '' : undefined },
|
|
148
148
|
React.createElement("header", { className: "ta-chats-head" }, Head ? (React.createElement("div", { className: "ta-side-view-head" },
|
|
149
|
-
React.createElement(extension_view_1.ExtensionBoundary, { key: view.id, name: title, resetKey: Head },
|
|
149
|
+
React.createElement(extension_view_1.ExtensionBoundary, { key: view.id, name: title, extension: view.extension, resetKey: Head },
|
|
150
150
|
React.createElement(extension_view_1.ExtensionPart, { component: Head })))) : (React.createElement("span", { className: "ta-chats-title" }, title))),
|
|
151
151
|
React.createElement(connection_bar_1.ConnectionBanner, null),
|
|
152
152
|
React.createElement("div", { className: "ta-side-view-body" },
|
|
153
|
-
React.createElement(extension_view_1.ExtensionBoundary, { key: view.id, name: title, resetKey: View },
|
|
153
|
+
React.createElement(extension_view_1.ExtensionBoundary, { key: view.id, name: title, extension: view.extension, resetKey: View },
|
|
154
154
|
React.createElement(extension_view_1.ExtensionPart, { component: View })))));
|
|
155
155
|
}
|
|
156
156
|
/**
|
|
@@ -166,12 +166,12 @@ function PageView({ view, leading }) {
|
|
|
166
166
|
React.createElement("header", { className: `ta-main-head ${view.extension.startsWith('builtin:') ? 'ta-narrow-only' : ''}` },
|
|
167
167
|
pushed ? React.createElement(icon_1.IconButton, { icon: lucide_react_1.ChevronLeft, label: t('ta.back'), onClick: () => pushed.close() }) : leading,
|
|
168
168
|
view.head ? (React.createElement("div", { className: "ta-main-head-view" },
|
|
169
|
-
React.createElement(extension_view_1.ExtensionBoundary, { key: view.id, name: title, resetKey: view.head },
|
|
169
|
+
React.createElement(extension_view_1.ExtensionBoundary, { key: view.id, name: title, extension: view.extension, resetKey: view.head },
|
|
170
170
|
React.createElement(extension_view_1.ExtensionPart, { component: view.head })))) : (React.createElement("div", { className: "ta-main-title" },
|
|
171
171
|
React.createElement("span", null, title))),
|
|
172
172
|
React.createElement(workbench_toggle_1.WorkbenchToggle, null)),
|
|
173
173
|
React.createElement("div", { className: "ta-page-body" },
|
|
174
|
-
React.createElement(extension_view_1.ExtensionBoundary, { key: view.id, name: title, resetKey: View },
|
|
174
|
+
React.createElement(extension_view_1.ExtensionBoundary, { key: view.id, name: title, extension: view.extension, resetKey: View },
|
|
175
175
|
React.createElement(extension_view_1.ExtensionPart, { component: View })))));
|
|
176
176
|
}
|
|
177
177
|
//# sourceMappingURL=app-nav.js.map
|
|
@@ -46,6 +46,7 @@ const message_1 = require("../util/message");
|
|
|
46
46
|
const busy_1 = require("./busy");
|
|
47
47
|
const chat_icon_1 = require("./chat-icon");
|
|
48
48
|
const chat_list_util_1 = require("./chat-list-util");
|
|
49
|
+
const chat_tag_1 = require("./chat-tag");
|
|
49
50
|
const context_menu_1 = require("./context-menu");
|
|
50
51
|
const host_tag_1 = require("./host-tag");
|
|
51
52
|
const icon_1 = require("./icon");
|
|
@@ -168,6 +169,8 @@ exports.ChatItem = React.memo(function ChatItem({ session, source, selected, tim
|
|
|
168
169
|
// The double's conversation is named after it; an agent's has its name (the extension named it so).
|
|
169
170
|
const who = doubleName !== undefined ? { kind: 'double', name: doubleName } : session.group && avatars[session.group] ? { kind: 'agent' } : undefined;
|
|
170
171
|
const title = (who === null || who === void 0 ? void 0 : who.kind) === 'double' ? who.name : chat_list_util_1.ChatListUtil.title(session, t);
|
|
172
|
+
// What an extension says it is, after its name (Work, of a directory marked so); not the double's own.
|
|
173
|
+
const chatTag = (0, chat_tag_1.useChatTag)((who === null || who === void 0 ? void 0 : who.kind) === 'double' ? undefined : session);
|
|
171
174
|
// Held, a row offers what its hover does (its close button shows only on the row shown, on a phone).
|
|
172
175
|
const [menu, openMenu] = (0, context_menu_1.useContextMenu)();
|
|
173
176
|
const onContextMenu = (event) => openMenu(event, context_menu_1.ContextMenuUtil.sections([{ label: t('ta.chat.open'), run: onSelect }], [
|
|
@@ -213,7 +216,8 @@ exports.ChatItem = React.memo(function ChatItem({ session, source, selected, tim
|
|
|
213
216
|
React.createElement("span", { className: "ta-chat-line" },
|
|
214
217
|
who && React.createElement(ChatAvatar, { session: session, source: source, who: who, size: 20, mood: mood }),
|
|
215
218
|
tag,
|
|
216
|
-
React.createElement("span", { className:
|
|
219
|
+
React.createElement("span", { className: `ta-chat-title${chatTag ? ' ta-badged' : ''}` }, title),
|
|
220
|
+
React.createElement(chat_tag_1.ChatTagLabel, { tag: chatTag }),
|
|
217
221
|
viewers,
|
|
218
222
|
state,
|
|
219
223
|
React.createElement(ChatDot, { unseen: !!unseen, asks: asks, onSee: onSee }),
|
|
@@ -224,7 +228,8 @@ exports.ChatItem = React.memo(function ChatItem({ session, source, selected, tim
|
|
|
224
228
|
React.createElement("span", { className: "ta-chat-text" },
|
|
225
229
|
React.createElement("span", { className: "ta-chat-line" },
|
|
226
230
|
tag,
|
|
227
|
-
React.createElement("span", { className:
|
|
231
|
+
React.createElement("span", { className: `ta-chat-title${chatTag ? ' ta-badged' : ''}` }, title),
|
|
232
|
+
React.createElement(chat_tag_1.ChatTagLabel, { tag: chatTag }),
|
|
228
233
|
React.createElement("span", { className: "ta-chat-time" }, removing && handheld ? React.createElement("span", { className: "ta-spinner ta-later" }) : time),
|
|
229
234
|
React.createElement("span", { className: "ta-chat-place" },
|
|
230
235
|
React.createElement(icon_1.Icon, { icon: lucide_react_1.Folder, size: 12 }),
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { WebChat, WebChatTag } from '../extension/web-extension-api';
|
|
3
|
+
import type { WebChatTagEntry } from '../extension/web-extension-protocol';
|
|
4
|
+
/** The tags web extensions give conversations (WebExtensionAPI.registerChatTag). */
|
|
5
|
+
export declare namespace ChatTagUtil {
|
|
6
|
+
function changed(): void;
|
|
7
|
+
/** The tag of the first extension that gives one, a few words; an extension that throws gives none. Asked once a conversation until they change. */
|
|
8
|
+
function find(entries: readonly WebChatTagEntry[], chat: WebChat): WebChatTag | undefined;
|
|
9
|
+
}
|
|
10
|
+
/** Gives the lists the tags of the extensions, and draws their rows again when an extension says they changed. */
|
|
11
|
+
export declare function ChatTagsProvider({ entries, children }: {
|
|
12
|
+
entries: readonly WebChatTagEntry[];
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
}): React.JSX.Element;
|
|
15
|
+
/** The tag of a conversation, when an extension gives it one. */
|
|
16
|
+
export declare function useChatTag(chat: WebChat | undefined): WebChatTag | undefined;
|
|
17
|
+
/** A tag after the name of a conversation, as a messenger marks a group chat with friends. */
|
|
18
|
+
export declare function ChatTagLabel({ tag }: {
|
|
19
|
+
tag: WebChatTag | undefined;
|
|
20
|
+
}): React.JSX.Element | null;
|
|
21
|
+
//# sourceMappingURL=chat-tag.d.ts.map
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.ChatTagUtil = void 0;
|
|
37
|
+
exports.ChatTagsProvider = ChatTagsProvider;
|
|
38
|
+
exports.useChatTag = useChatTag;
|
|
39
|
+
exports.ChatTagLabel = ChatTagLabel;
|
|
40
|
+
const lucide_react_1 = require("lucide-react");
|
|
41
|
+
const React = __importStar(require("react"));
|
|
42
|
+
const extension_view_1 = require("../extension/extension-view");
|
|
43
|
+
const use_t_1 = require("../i18n/use-t");
|
|
44
|
+
const icon_1 = require("./icon");
|
|
45
|
+
/** The tags web extensions give conversations (WebExtensionAPI.registerChatTag). */
|
|
46
|
+
var ChatTagUtil;
|
|
47
|
+
(function (ChatTagUtil) {
|
|
48
|
+
/** Counts what extensions said changed of their tags: what `find` remembered from before is asked again. */
|
|
49
|
+
let generation = 0;
|
|
50
|
+
const remembered = new WeakMap();
|
|
51
|
+
function changed() {
|
|
52
|
+
generation++;
|
|
53
|
+
}
|
|
54
|
+
ChatTagUtil.changed = changed;
|
|
55
|
+
/** The tag of the first extension that gives one, a few words; an extension that throws gives none. Asked once a conversation until they change. */
|
|
56
|
+
function find(entries, chat) {
|
|
57
|
+
var _a, _b;
|
|
58
|
+
if (entries.length === 0) {
|
|
59
|
+
return undefined;
|
|
60
|
+
}
|
|
61
|
+
let memo = remembered.get(entries);
|
|
62
|
+
if ((memo === null || memo === void 0 ? void 0 : memo.generation) !== generation) {
|
|
63
|
+
memo = { generation, found: new Map() };
|
|
64
|
+
remembered.set(entries, memo);
|
|
65
|
+
}
|
|
66
|
+
const key = `${(_a = chat.group) !== null && _a !== void 0 ? _a : ''}\n${chat.cwd}\n${(_b = chat.sessionFile) !== null && _b !== void 0 ? _b : ''}`;
|
|
67
|
+
if (memo.found.has(key)) {
|
|
68
|
+
return memo.found.get(key);
|
|
69
|
+
}
|
|
70
|
+
const found = ask(entries, chat);
|
|
71
|
+
memo.found.set(key, found);
|
|
72
|
+
return found;
|
|
73
|
+
}
|
|
74
|
+
ChatTagUtil.find = find;
|
|
75
|
+
function ask(entries, chat) {
|
|
76
|
+
for (const { extension, source } of entries) {
|
|
77
|
+
try {
|
|
78
|
+
const found = source.tag({ sessionFile: chat.sessionFile, cwd: chat.cwd, ...(chat.group ? { group: chat.group } : {}) });
|
|
79
|
+
const text = typeof (found === null || found === void 0 ? void 0 : found.text) === 'string' ? found.text.trim() : '';
|
|
80
|
+
if (text) {
|
|
81
|
+
const tone = (found === null || found === void 0 ? void 0 : found.tone) === 'blue' || (found === null || found === void 0 ? void 0 : found.tone) === 'green' ? found.tone : 'gray';
|
|
82
|
+
return { text: text.slice(0, 16), tone, ...(typeof (found === null || found === void 0 ? void 0 : found.title) === 'string' ? { title: found.title } : {}) };
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
catch (error) {
|
|
86
|
+
console.error(`The web extension ${extension} failed to give a tag:`, error);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return undefined;
|
|
90
|
+
}
|
|
91
|
+
})(ChatTagUtil || (exports.ChatTagUtil = ChatTagUtil = {}));
|
|
92
|
+
/** Gives the lists the tags of the extensions, and draws their rows again when an extension says they changed. */
|
|
93
|
+
function ChatTagsProvider({ entries, children }) {
|
|
94
|
+
const [version, setVersion] = React.useState(0);
|
|
95
|
+
const language = (0, use_t_1.useLanguage)();
|
|
96
|
+
const languageShown = React.useRef(language);
|
|
97
|
+
if (languageShown.current !== language) {
|
|
98
|
+
languageShown.current = language;
|
|
99
|
+
ChatTagUtil.changed();
|
|
100
|
+
}
|
|
101
|
+
React.useEffect(() => {
|
|
102
|
+
const changed = () => {
|
|
103
|
+
ChatTagUtil.changed();
|
|
104
|
+
setVersion(count => count + 1);
|
|
105
|
+
};
|
|
106
|
+
const stops = entries.map(({ source }) => {
|
|
107
|
+
var _a;
|
|
108
|
+
try {
|
|
109
|
+
return (_a = source.subscribe) === null || _a === void 0 ? void 0 : _a.call(source, changed);
|
|
110
|
+
}
|
|
111
|
+
catch (_b) {
|
|
112
|
+
return undefined;
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
return () => {
|
|
116
|
+
for (const stop of stops) {
|
|
117
|
+
stop === null || stop === void 0 ? void 0 : stop();
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
}, [entries]);
|
|
121
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: a new language is a new value, what the tags say read again
|
|
122
|
+
const value = React.useMemo(() => ({ entries: [...entries], version }), [entries, version, language]);
|
|
123
|
+
return React.createElement(extension_view_1.ChatTags.Provider, { value: value }, children);
|
|
124
|
+
}
|
|
125
|
+
/** The tag of a conversation, when an extension gives it one. */
|
|
126
|
+
function useChatTag(chat) {
|
|
127
|
+
const { entries, version } = React.useContext(extension_view_1.ChatTags);
|
|
128
|
+
const { sessionFile, cwd, group } = chat !== null && chat !== void 0 ? chat : { cwd: '' };
|
|
129
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: asked again when an extension said it changed
|
|
130
|
+
return React.useMemo(() => (chat && entries.length ? ChatTagUtil.find(entries, { sessionFile, cwd, ...(group ? { group } : {}) }) : undefined), [entries, version, sessionFile, cwd, group]);
|
|
131
|
+
}
|
|
132
|
+
/** A tag after the name of a conversation, as a messenger marks a group chat with friends. */
|
|
133
|
+
function ChatTagLabel({ tag }) {
|
|
134
|
+
var _a;
|
|
135
|
+
if (!tag) {
|
|
136
|
+
return null;
|
|
137
|
+
}
|
|
138
|
+
return (React.createElement("span", { className: `ta-chat-badge ta-chat-tag ta-tone-${(_a = tag.tone) !== null && _a !== void 0 ? _a : 'gray'}`, title: tag.title },
|
|
139
|
+
tag.tone === 'gray' || !tag.tone ? React.createElement(icon_1.Icon, { icon: lucide_react_1.Lock, size: 9 }) : null,
|
|
140
|
+
tag.text));
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=chat-tag.js.map
|