@celljs/ta-web 4.16.0 → 4.17.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-ask-book.d.ts +35 -0
- package/esm/browser/assistant/assistant-ask-book.js +96 -0
- package/esm/browser/assistant/assistant-conversation.d.ts +110 -0
- package/esm/browser/assistant/assistant-conversation.js +351 -0
- package/esm/browser/assistant/assistant-export.js +6 -7
- package/esm/browser/assistant/assistant-extension.d.ts +3 -2
- package/esm/browser/assistant/assistant-extension.js +57 -4
- package/esm/browser/assistant/assistant-protocol.d.ts +17 -2
- package/esm/browser/assistant/assistant-role.d.ts +22 -4
- package/esm/browser/assistant/assistant-role.js +29 -7
- package/esm/browser/assistant/assistant-state.d.ts +5 -1
- package/esm/browser/assistant/assistant-state.js +11 -0
- package/esm/browser/assistant/assistant-task-source.js +7 -1
- package/esm/browser/assistant/assistant-task-util.d.ts +19 -7
- package/esm/browser/assistant/assistant-task-util.js +73 -20
- package/esm/browser/assistant/assistant-tasks.d.ts +0 -7
- package/esm/browser/assistant/assistant-tasks.js +0 -2
- package/esm/browser/assistant/assistant-thread.d.ts +22 -0
- package/esm/browser/assistant/assistant-thread.js +108 -0
- package/esm/browser/assistant/assistant-view.js +77 -126
- package/esm/browser/assistant/assistant.d.ts +33 -105
- package/esm/browser/assistant/assistant.js +103 -356
- package/esm/browser/assistant/chat-task-source.d.ts +58 -0
- package/esm/browser/assistant/chat-task-source.js +107 -0
- package/esm/browser/assistant/read-aloud.d.ts +34 -0
- package/esm/browser/assistant/read-aloud.js +98 -0
- package/esm/browser/assistant/realtime-voice.d.ts +77 -0
- package/esm/browser/assistant/realtime-voice.js +320 -0
- package/esm/browser/assistant/task-views.d.ts +2 -3
- package/esm/browser/assistant/task-views.js +20 -16
- package/esm/browser/assistant/voice-call-bar.d.ts +60 -0
- package/esm/browser/assistant/voice-call-bar.js +260 -0
- package/esm/browser/assistant/voice-call.d.ts +175 -0
- package/esm/browser/assistant/voice-call.js +366 -0
- package/esm/browser/chat/chat-shown.d.ts +78 -0
- package/esm/browser/chat/chat-shown.js +262 -0
- package/esm/browser/chat/chat-view.js +2 -1
- package/esm/browser/chat/chat.d.ts +4 -68
- package/esm/browser/chat/chat.js +5 -253
- package/esm/browser/chat/draft-model.d.ts +1 -1
- package/esm/browser/components/access-view.js +1 -1
- package/esm/browser/components/account-menu.js +1 -1
- package/esm/browser/components/app-nav.d.ts +3 -1
- package/esm/browser/components/app-nav.js +7 -7
- package/esm/browser/components/app-shell-hooks.d.ts +11 -2
- package/esm/browser/components/app-shell-hooks.js +25 -4
- package/esm/browser/components/app-shell-state.d.ts +80 -0
- package/esm/browser/components/app-shell-state.js +466 -0
- package/esm/browser/components/app-view.js +121 -333
- package/esm/browser/components/asks-badge.d.ts +6 -2
- package/esm/browser/components/asks-badge.js +7 -3
- package/esm/browser/components/auth-pictures.d.ts +2 -2
- package/esm/browser/components/auth-pictures.js +13 -1
- package/esm/browser/components/auth-view.d.ts +4 -3
- package/esm/browser/components/auth-view.js +54 -5
- package/esm/browser/components/chat-asks.d.ts +2 -0
- package/esm/browser/components/chat-asks.js +8 -0
- package/esm/browser/components/chat-busy.d.ts +32 -0
- package/esm/browser/components/chat-busy.js +49 -0
- package/esm/browser/components/chat-icon.d.ts +6 -0
- package/esm/browser/components/chat-icon.js +17 -1
- package/esm/browser/components/chat-list-row.d.ts +84 -0
- package/esm/browser/components/chat-list-row.js +198 -0
- package/esm/browser/components/chat-list-util.d.ts +166 -0
- package/esm/browser/components/chat-list-util.js +335 -0
- package/esm/browser/components/chat-list.d.ts +9 -148
- package/esm/browser/components/chat-list.js +277 -513
- package/esm/browser/components/chat-seen.js +1 -0
- package/esm/browser/components/composer-addon-util.d.ts +1 -1
- package/esm/browser/components/composer-addons.d.ts +1 -1
- package/esm/browser/components/composer-attachments.d.ts +11 -0
- package/esm/browser/components/composer-attachments.js +27 -0
- package/esm/browser/components/composer-box-hooks.d.ts +9 -0
- package/esm/browser/components/composer-box-hooks.js +138 -0
- package/esm/browser/components/composer-box-protocol.d.ts +108 -0
- package/esm/browser/components/composer-box-protocol.js +2 -0
- package/esm/browser/components/composer-box.d.ts +1 -95
- package/esm/browser/components/composer-box.js +49 -156
- package/esm/browser/components/composer-target.d.ts +21 -0
- package/esm/browser/components/composer-target.js +43 -0
- package/esm/browser/components/composer.d.ts +7 -1
- package/esm/browser/components/composer.js +13 -9
- package/esm/browser/components/context-menu.js +4 -0
- package/esm/browser/components/conversation-find.d.ts +27 -0
- package/esm/browser/components/conversation-find.js +151 -0
- package/esm/browser/components/conversation-scroll-hooks.js +2 -1
- package/esm/browser/components/conversation-scroll-util.d.ts +73 -0
- package/esm/browser/components/conversation-scroll-util.js +80 -0
- package/esm/browser/components/conversation-scroll.d.ts +1 -35
- package/esm/browser/components/conversation-scroll.js +2 -81
- package/esm/browser/components/conversation-view.d.ts +8 -0
- package/esm/browser/components/conversation-view.js +41 -0
- package/esm/browser/components/discover-view.d.ts +3 -2
- package/esm/browser/components/discover-view.js +31 -26
- package/esm/browser/components/dismiss.js +2 -0
- package/esm/browser/components/earlier-messages.d.ts +2 -0
- package/esm/browser/components/earlier-messages.js +2 -1
- package/esm/browser/components/folder-picker.d.ts +7 -0
- package/esm/browser/components/folder-picker.js +89 -19
- package/esm/browser/components/gallery.d.ts +1 -1
- package/esm/browser/components/gallery.js +57 -14
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/host-view.js +3 -1
- package/esm/browser/components/image-menu.d.ts +11 -0
- package/esm/browser/components/image-menu.js +29 -0
- package/esm/browser/components/image-viewer.d.ts +3 -2
- package/esm/browser/components/image-viewer.js +29 -4
- package/esm/browser/components/lightbox.js +2 -0
- package/esm/browser/components/link-dialog.js +2 -0
- package/esm/browser/components/list-rows.d.ts +3 -1
- package/esm/browser/components/list-rows.js +2 -1
- package/esm/browser/components/markdown.js +5 -0
- package/esm/browser/components/media.d.ts +2 -0
- package/esm/browser/components/media.js +16 -1
- package/esm/browser/components/message-actions.d.ts +1 -1
- package/esm/browser/components/message-actions.js +9 -0
- package/esm/browser/components/message-footer.d.ts +3 -1
- package/esm/browser/components/message-footer.js +3 -2
- package/esm/browser/components/message-images.d.ts +41 -0
- package/esm/browser/components/message-images.js +120 -0
- package/esm/browser/components/message-list.d.ts +4 -100
- package/esm/browser/components/message-list.js +10 -447
- package/esm/browser/components/message-menu.js +4 -0
- package/esm/browser/components/message-steps.d.ts +21 -0
- package/esm/browser/components/message-steps.js +182 -0
- package/esm/browser/components/message-user.d.ts +54 -0
- package/esm/browser/components/message-user.js +169 -0
- package/esm/browser/components/model-picker.d.ts +1 -1
- package/esm/browser/components/model-picker.js +2 -0
- package/esm/browser/components/moved-notice.d.ts +14 -0
- package/esm/browser/components/moved-notice.js +60 -0
- package/esm/browser/components/nav-places.d.ts +12 -1
- package/esm/browser/components/nav-places.js +10 -2
- package/esm/browser/components/notice-center.js +36 -1
- package/esm/browser/components/notice-face.js +2 -1
- package/esm/browser/components/phone-shell.d.ts +4 -3
- package/esm/browser/components/phone-shell.js +60 -68
- package/esm/browser/components/plus-menu.d.ts +1 -1
- package/esm/browser/components/relay-services.d.ts +6 -1
- package/esm/browser/components/relay-services.js +109 -2
- package/esm/browser/components/relay-view.js +2 -0
- package/esm/browser/components/remote-hosts.d.ts +10 -0
- package/esm/browser/components/remote-hosts.js +7 -6
- package/esm/browser/components/remote-prompts.js +2 -0
- package/esm/browser/components/scan-screen.js +7 -0
- package/esm/browser/components/screen-navigator-util.d.ts +28 -0
- package/esm/browser/components/screen-navigator-util.js +33 -0
- package/esm/browser/components/screen-navigator.d.ts +30 -0
- package/esm/browser/components/screen-navigator.js +47 -0
- package/esm/browser/components/session-settings.d.ts +1 -1
- package/esm/browser/components/session-view.js +157 -7
- package/esm/browser/components/settings-choices.d.ts +6 -0
- package/esm/browser/components/settings-choices.js +8 -0
- package/esm/browser/components/settings-more.d.ts +7 -0
- package/esm/browser/components/settings-more.js +263 -0
- package/esm/browser/components/settings-parts.d.ts +8 -3
- package/esm/browser/components/settings-parts.js +31 -249
- package/esm/browser/components/settings-view.js +43 -15
- package/esm/browser/components/stop-times.js +1 -0
- package/esm/browser/components/surface-flyout.js +2 -0
- package/esm/browser/components/unseen-drop.d.ts +10 -4
- package/esm/browser/components/unseen-drop.js +9 -8
- package/esm/browser/components/use-seen-chats.js +1 -1
- package/esm/browser/components/voice-services.d.ts +6 -0
- package/esm/browser/components/voice-services.js +137 -0
- package/esm/browser/components/voice-talk.d.ts +23 -6
- package/esm/browser/components/voice-talk.js +46 -11
- package/esm/browser/components/web-composer.d.ts +1 -1
- package/esm/browser/components/web-composer.js +2 -2
- package/esm/browser/components/web-dialog.js +2 -0
- package/esm/browser/device/back-stack.d.ts +89 -11
- package/esm/browser/device/back-stack.js +200 -29
- package/esm/browser/device/device-protocol.d.ts +1 -1
- package/esm/browser/device/device-protocol.js +1 -1
- package/esm/browser/device/own-gestures.d.ts +1 -1
- package/esm/browser/device/pull-down.js +3 -1
- package/esm/browser/device/row-swipe.js +3 -1
- package/esm/browser/device/sheet-swipe.d.ts +1 -179
- package/esm/browser/device/sheet-swipe.js +3 -433
- package/esm/browser/device/swipe-finger.d.ts +31 -0
- package/esm/browser/device/swipe-finger.js +83 -0
- package/esm/browser/device/swipe-settle.d.ts +52 -0
- package/esm/browser/device/swipe-settle.js +170 -0
- package/esm/browser/device/swipe-util.d.ts +97 -0
- package/esm/browser/device/swipe-util.js +183 -0
- package/esm/browser/drafts/drafts-protocol.d.ts +58 -0
- package/esm/browser/drafts/drafts-protocol.js +75 -0
- package/esm/browser/drafts/drafts.d.ts +21 -0
- package/esm/browser/drafts/drafts.js +91 -0
- package/esm/browser/drafts/use-composer-draft.d.ts +20 -0
- package/esm/browser/drafts/use-composer-draft.js +108 -0
- package/esm/browser/extension/icons.js +3 -1
- package/esm/browser/extension/web-api-components.d.ts +13 -0
- package/esm/browser/extension/web-api-contributions.d.ts +125 -0
- package/esm/browser/extension/web-extension-api.d.ts +88 -5
- package/esm/browser/extension/web-extension-context.d.ts +5 -0
- package/esm/browser/extension/web-extension-context.js +60 -7
- package/esm/browser/extension/web-extension-protocol.d.ts +19 -1
- package/esm/browser/extension/web-extension-protocol.js +3 -0
- package/esm/browser/extension/web-extension-run.d.ts +5 -2
- package/esm/browser/extension/web-extension-run.js +13 -1
- package/esm/browser/extension/web-extensions-running.d.ts +93 -0
- package/esm/browser/extension/web-extensions-running.js +339 -0
- package/esm/browser/extension/web-extensions.d.ts +6 -82
- package/esm/browser/extension/web-extensions.js +10 -319
- package/esm/browser/extension/web-pages.js +1 -0
- package/esm/browser/extension/web-session-notices.js +6 -1
- package/esm/browser/extension/web-tasks.d.ts +2 -0
- package/esm/browser/extension/web-tasks.js +6 -0
- package/esm/browser/extension/web-view-util.d.ts +2 -1
- package/esm/browser/extension/web-view-util.js +4 -1
- package/esm/browser/gateway/console-parts.d.ts +1 -11
- package/esm/browser/gateway/console-parts.js +38 -128
- package/esm/browser/gateway/console-tenant.js +2 -1
- package/esm/browser/gateway/console-trend.d.ts +11 -0
- package/esm/browser/gateway/console-trend.js +115 -0
- package/esm/browser/gateway/console-view.js +39 -1
- package/esm/browser/i18n/locales.d.ts +143 -6
- package/esm/browser/i18n/messages-ja.js +144 -7
- package/esm/browser/i18n/messages-zh-tw.js +144 -7
- package/esm/browser/i18n/messages.d.ts +140 -3
- package/esm/browser/i18n/messages.js +288 -14
- package/esm/browser/index.d.ts +17 -0
- package/esm/browser/index.js +17 -0
- package/esm/browser/notices/notices-protocol.d.ts +12 -0
- package/esm/browser/notices/notices.js +7 -4
- package/esm/browser/offline/device-values.d.ts +2 -0
- package/esm/browser/offline/device-values.js +6 -1
- package/esm/browser/screen/page-answers.d.ts +42 -0
- package/esm/browser/screen/page-answers.js +89 -0
- package/esm/browser/screen/screen-protocol.d.ts +112 -0
- package/esm/browser/screen/screen-protocol.js +45 -0
- package/esm/browser/screen/screen.d.ts +20 -0
- package/esm/browser/screen/screen.js +122 -0
- package/esm/browser/screen/use-screen-part.d.ts +6 -0
- package/esm/browser/screen/use-screen-part.js +14 -0
- package/esm/browser/settings/settings-protocol.d.ts +5 -1
- package/esm/browser/settings/settings-protocol.js +6 -2
- package/esm/browser/share/shared-extensions.d.ts +29 -0
- package/esm/browser/share/shared-extensions.js +145 -0
- package/esm/browser/share/shared-link.d.ts +11 -0
- package/esm/browser/share/shared-link.js +38 -0
- package/esm/browser/share/shared-page.d.ts +5 -0
- package/esm/browser/share/shared-page.js +137 -0
- package/esm/browser/state/state-protocol.d.ts +14 -0
- package/esm/browser/state/state-protocol.js +18 -0
- package/esm/browser/state/state.d.ts +10 -2
- package/esm/browser/state/state.js +19 -3
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +4 -0
- package/esm/browser/style/chat-list.d.ts +2 -0
- package/esm/browser/style/chat-list.js +153 -0
- package/esm/browser/style/conversation-column.d.ts +2 -0
- package/esm/browser/style/conversation-column.js +250 -0
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +24 -8
- package/esm/browser/style/dialogs.d.ts +2 -0
- package/esm/browser/style/dialogs.js +163 -0
- package/esm/browser/style/layout.d.ts +2 -2
- package/esm/browser/style/layout.js +1 -525
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +9 -3
- package/esm/browser/style/phone.d.ts +1 -1
- package/esm/browser/style/phone.js +6 -2
- package/esm/browser/style/shared.d.ts +2 -0
- package/esm/browser/style/shared.js +23 -0
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +47 -0
- package/esm/browser/style/tasks.d.ts +1 -1
- package/esm/browser/style/tasks.js +13 -8
- package/esm/browser/style.js +8 -0
- package/esm/browser/util/gallery.d.ts +24 -2
- package/esm/browser/util/gallery.js +82 -2
- package/esm/browser/util/image-copy.d.ts +16 -0
- package/esm/browser/util/image-copy.js +57 -0
- package/esm/browser/util/message.d.ts +5 -0
- package/esm/browser/util/message.js +14 -0
- package/esm/browser/util/process.d.ts +6 -2
- package/esm/browser/util/process.js +6 -2
- package/esm/browser/util/spoken.d.ts +24 -0
- package/esm/browser/util/spoken.js +83 -0
- package/esm/browser/util/transcript.d.ts +22 -0
- package/esm/browser/util/transcript.js +46 -0
- package/esm/browser/util/voice.d.ts +5 -1
- package/esm/browser/util/voice.js +6 -1
- package/esm/browser/workbench-hosts.d.ts +36 -0
- package/esm/browser/workbench-hosts.js +120 -0
- package/esm/browser/workbench-lists.d.ts +33 -0
- package/esm/browser/workbench-lists.js +128 -0
- package/esm/browser/workbench-protocol.d.ts +14 -1
- package/esm/browser/workbench-services.d.ts +49 -0
- package/esm/browser/workbench-services.js +120 -0
- package/esm/browser/workbench-util.d.ts +1 -1
- package/esm/browser/workbench.d.ts +6 -89
- package/esm/browser/workbench.js +26 -336
- package/lib/browser/assistant/assistant-ask-book.d.ts +36 -0
- package/lib/browser/assistant/assistant-ask-book.js +100 -0
- package/lib/browser/assistant/assistant-conversation.d.ts +111 -0
- package/lib/browser/assistant/assistant-conversation.js +355 -0
- package/lib/browser/assistant/assistant-export.js +6 -7
- package/lib/browser/assistant/assistant-extension.d.ts +3 -2
- package/lib/browser/assistant/assistant-extension.js +55 -2
- package/lib/browser/assistant/assistant-protocol.d.ts +17 -2
- package/lib/browser/assistant/assistant-role.d.ts +22 -4
- package/lib/browser/assistant/assistant-role.js +30 -8
- package/lib/browser/assistant/assistant-state.d.ts +5 -1
- package/lib/browser/assistant/assistant-state.js +11 -0
- package/lib/browser/assistant/assistant-task-source.js +7 -1
- package/lib/browser/assistant/assistant-task-util.d.ts +19 -7
- package/lib/browser/assistant/assistant-task-util.js +73 -20
- package/lib/browser/assistant/assistant-tasks.d.ts +0 -7
- package/lib/browser/assistant/assistant-tasks.js +1 -3
- package/lib/browser/assistant/assistant-thread.d.ts +23 -0
- package/lib/browser/assistant/assistant-thread.js +144 -0
- package/lib/browser/assistant/assistant-view.js +74 -123
- package/lib/browser/assistant/assistant.d.ts +33 -105
- package/lib/browser/assistant/assistant.js +100 -353
- package/lib/browser/assistant/chat-task-source.d.ts +59 -0
- package/lib/browser/assistant/chat-task-source.js +111 -0
- package/lib/browser/assistant/read-aloud.d.ts +35 -0
- package/lib/browser/assistant/read-aloud.js +102 -0
- package/lib/browser/assistant/realtime-voice.d.ts +78 -0
- package/lib/browser/assistant/realtime-voice.js +324 -0
- package/lib/browser/assistant/task-views.d.ts +2 -3
- package/lib/browser/assistant/task-views.js +19 -15
- package/lib/browser/assistant/voice-call-bar.d.ts +61 -0
- package/lib/browser/assistant/voice-call-bar.js +306 -0
- package/lib/browser/assistant/voice-call.d.ts +176 -0
- package/lib/browser/assistant/voice-call.js +370 -0
- package/lib/browser/chat/chat-shown.d.ts +79 -0
- package/lib/browser/chat/chat-shown.js +266 -0
- package/lib/browser/chat/chat-view.js +2 -1
- package/lib/browser/chat/chat.d.ts +4 -68
- package/lib/browser/chat/chat.js +3 -251
- package/lib/browser/chat/draft-model.d.ts +1 -1
- package/lib/browser/components/access-view.js +2 -2
- package/lib/browser/components/account-menu.js +1 -1
- package/lib/browser/components/app-nav.d.ts +3 -1
- package/lib/browser/components/app-nav.js +7 -7
- package/lib/browser/components/app-shell-hooks.d.ts +11 -2
- package/lib/browser/components/app-shell-hooks.js +26 -5
- package/lib/browser/components/app-shell-state.d.ts +81 -0
- package/lib/browser/components/app-shell-state.js +502 -0
- package/lib/browser/components/app-view.js +114 -326
- package/lib/browser/components/asks-badge.d.ts +6 -2
- package/lib/browser/components/asks-badge.js +7 -3
- package/lib/browser/components/auth-pictures.d.ts +2 -2
- package/lib/browser/components/auth-pictures.js +13 -1
- package/lib/browser/components/auth-view.d.ts +4 -3
- package/lib/browser/components/auth-view.js +53 -4
- package/lib/browser/components/chat-asks.d.ts +2 -0
- package/lib/browser/components/chat-asks.js +8 -0
- package/lib/browser/components/chat-busy.d.ts +33 -0
- package/lib/browser/components/chat-busy.js +52 -0
- package/lib/browser/components/chat-icon.d.ts +6 -0
- package/lib/browser/components/chat-icon.js +17 -1
- package/lib/browser/components/chat-list-row.d.ts +85 -0
- package/lib/browser/components/chat-list-row.js +236 -0
- package/lib/browser/components/chat-list-util.d.ts +167 -0
- package/lib/browser/components/chat-list-util.js +338 -0
- package/lib/browser/components/chat-list.d.ts +9 -148
- package/lib/browser/components/chat-list.js +294 -532
- package/lib/browser/components/chat-seen.js +1 -0
- package/lib/browser/components/composer-addon-util.d.ts +1 -1
- package/lib/browser/components/composer-addons.d.ts +1 -1
- package/lib/browser/components/composer-attachments.d.ts +12 -0
- package/lib/browser/components/composer-attachments.js +64 -0
- package/lib/browser/components/composer-box-hooks.d.ts +10 -0
- package/lib/browser/components/composer-box-hooks.js +178 -0
- package/lib/browser/components/composer-box-protocol.d.ts +109 -0
- package/lib/browser/components/composer-box-protocol.js +3 -0
- package/lib/browser/components/composer-box.d.ts +1 -95
- package/lib/browser/components/composer-box.js +51 -159
- package/lib/browser/components/composer-target.d.ts +22 -0
- package/lib/browser/components/composer-target.js +46 -0
- package/lib/browser/components/composer.d.ts +7 -1
- package/lib/browser/components/composer.js +15 -11
- package/lib/browser/components/context-menu.js +4 -0
- package/lib/browser/components/conversation-find.d.ts +28 -0
- package/lib/browser/components/conversation-find.js +188 -0
- package/lib/browser/components/conversation-scroll-hooks.js +3 -2
- package/lib/browser/components/conversation-scroll-util.d.ts +73 -0
- package/lib/browser/components/conversation-scroll-util.js +85 -1
- package/lib/browser/components/conversation-scroll.d.ts +1 -35
- package/lib/browser/components/conversation-scroll.js +20 -100
- package/lib/browser/components/conversation-view.d.ts +9 -0
- package/lib/browser/components/conversation-view.js +77 -0
- package/lib/browser/components/discover-view.d.ts +3 -2
- package/lib/browser/components/discover-view.js +30 -25
- package/lib/browser/components/dismiss.js +2 -0
- package/lib/browser/components/earlier-messages.d.ts +2 -0
- package/lib/browser/components/earlier-messages.js +2 -1
- package/lib/browser/components/folder-picker.d.ts +7 -0
- package/lib/browser/components/folder-picker.js +88 -18
- package/lib/browser/components/gallery.d.ts +1 -1
- package/lib/browser/components/gallery.js +56 -13
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/host-view.js +4 -2
- package/lib/browser/components/image-menu.d.ts +12 -0
- package/lib/browser/components/image-menu.js +65 -0
- package/lib/browser/components/image-viewer.d.ts +3 -2
- package/lib/browser/components/image-viewer.js +28 -3
- package/lib/browser/components/lightbox.js +2 -0
- package/lib/browser/components/link-dialog.js +2 -0
- package/lib/browser/components/list-rows.d.ts +3 -1
- package/lib/browser/components/list-rows.js +2 -1
- package/lib/browser/components/markdown.js +5 -0
- package/lib/browser/components/media.d.ts +2 -0
- package/lib/browser/components/media.js +17 -1
- package/lib/browser/components/message-actions.d.ts +1 -1
- package/lib/browser/components/message-actions.js +9 -0
- package/lib/browser/components/message-footer.d.ts +3 -1
- package/lib/browser/components/message-footer.js +2 -1
- package/lib/browser/components/message-images.d.ts +42 -0
- package/lib/browser/components/message-images.js +157 -0
- package/lib/browser/components/message-list.d.ts +4 -100
- package/lib/browser/components/message-list.js +11 -455
- package/lib/browser/components/message-menu.js +4 -0
- package/lib/browser/components/message-steps.d.ts +22 -0
- package/lib/browser/components/message-steps.js +218 -0
- package/lib/browser/components/message-user.d.ts +55 -0
- package/lib/browser/components/message-user.js +211 -0
- package/lib/browser/components/model-picker.d.ts +1 -1
- package/lib/browser/components/model-picker.js +2 -0
- package/lib/browser/components/moved-notice.d.ts +15 -0
- package/lib/browser/components/moved-notice.js +96 -0
- package/lib/browser/components/nav-places.d.ts +12 -1
- package/lib/browser/components/nav-places.js +12 -3
- package/lib/browser/components/notice-center.js +35 -0
- package/lib/browser/components/notice-face.js +7 -6
- package/lib/browser/components/phone-shell.d.ts +4 -3
- package/lib/browser/components/phone-shell.js +59 -67
- package/lib/browser/components/plus-menu.d.ts +1 -1
- package/lib/browser/components/relay-services.d.ts +6 -1
- package/lib/browser/components/relay-services.js +107 -0
- package/lib/browser/components/relay-view.js +2 -0
- package/lib/browser/components/remote-hosts.d.ts +10 -0
- package/lib/browser/components/remote-hosts.js +8 -6
- package/lib/browser/components/remote-prompts.js +2 -0
- package/lib/browser/components/scan-screen.js +7 -0
- package/lib/browser/components/screen-navigator-util.d.ts +29 -0
- package/lib/browser/components/screen-navigator-util.js +36 -0
- package/lib/browser/components/screen-navigator.d.ts +31 -0
- package/lib/browser/components/screen-navigator.js +83 -0
- package/lib/browser/components/session-settings.d.ts +1 -1
- package/lib/browser/components/session-view.js +157 -7
- package/lib/browser/components/settings-choices.d.ts +7 -1
- package/lib/browser/components/settings-choices.js +9 -1
- package/lib/browser/components/settings-more.d.ts +8 -0
- package/lib/browser/components/settings-more.js +299 -0
- package/lib/browser/components/settings-parts.d.ts +8 -3
- package/lib/browser/components/settings-parts.js +27 -245
- package/lib/browser/components/settings-view.js +43 -15
- package/lib/browser/components/stop-times.js +1 -0
- package/lib/browser/components/surface-flyout.js +2 -0
- package/lib/browser/components/unseen-drop.d.ts +10 -4
- package/lib/browser/components/unseen-drop.js +9 -8
- package/lib/browser/components/use-seen-chats.js +2 -2
- package/lib/browser/components/voice-services.d.ts +7 -0
- package/lib/browser/components/voice-services.js +173 -0
- package/lib/browser/components/voice-talk.d.ts +23 -6
- package/lib/browser/components/voice-talk.js +45 -10
- package/lib/browser/components/web-composer.d.ts +1 -1
- package/lib/browser/components/web-composer.js +2 -2
- package/lib/browser/components/web-dialog.js +2 -0
- package/lib/browser/device/back-stack.d.ts +89 -11
- package/lib/browser/device/back-stack.js +205 -31
- package/lib/browser/device/device-protocol.d.ts +1 -1
- package/lib/browser/device/device-protocol.js +1 -1
- package/lib/browser/device/own-gestures.d.ts +1 -1
- package/lib/browser/device/pull-down.js +8 -6
- package/lib/browser/device/row-swipe.js +11 -9
- package/lib/browser/device/sheet-swipe.d.ts +1 -179
- package/lib/browser/device/sheet-swipe.js +16 -452
- package/lib/browser/device/swipe-finger.d.ts +32 -0
- package/lib/browser/device/swipe-finger.js +87 -0
- package/lib/browser/device/swipe-settle.d.ts +53 -0
- package/lib/browser/device/swipe-settle.js +176 -0
- package/lib/browser/device/swipe-util.d.ts +98 -0
- package/lib/browser/device/swipe-util.js +187 -0
- package/lib/browser/drafts/drafts-protocol.d.ts +59 -0
- package/lib/browser/drafts/drafts-protocol.js +78 -0
- package/lib/browser/drafts/drafts.d.ts +22 -0
- package/lib/browser/drafts/drafts.js +94 -0
- package/lib/browser/drafts/use-composer-draft.d.ts +21 -0
- package/lib/browser/drafts/use-composer-draft.js +146 -0
- package/lib/browser/extension/icons.js +2 -0
- package/lib/browser/extension/web-api-components.d.ts +13 -0
- package/lib/browser/extension/web-api-contributions.d.ts +125 -0
- package/lib/browser/extension/web-extension-api.d.ts +88 -5
- package/lib/browser/extension/web-extension-context.d.ts +5 -0
- package/lib/browser/extension/web-extension-context.js +62 -9
- package/lib/browser/extension/web-extension-protocol.d.ts +19 -1
- package/lib/browser/extension/web-extension-protocol.js +3 -0
- package/lib/browser/extension/web-extension-run.d.ts +5 -2
- package/lib/browser/extension/web-extension-run.js +13 -1
- package/lib/browser/extension/web-extensions-running.d.ts +94 -0
- package/lib/browser/extension/web-extensions-running.js +343 -0
- package/lib/browser/extension/web-extensions.d.ts +6 -82
- package/lib/browser/extension/web-extensions.js +7 -316
- package/lib/browser/extension/web-pages.js +1 -0
- package/lib/browser/extension/web-session-notices.js +8 -3
- package/lib/browser/extension/web-tasks.d.ts +2 -0
- package/lib/browser/extension/web-tasks.js +6 -0
- package/lib/browser/extension/web-view-util.d.ts +2 -1
- package/lib/browser/extension/web-view-util.js +4 -1
- package/lib/browser/gateway/console-parts.d.ts +1 -11
- package/lib/browser/gateway/console-parts.js +38 -129
- package/lib/browser/gateway/console-tenant.js +2 -1
- package/lib/browser/gateway/console-trend.d.ts +12 -0
- package/lib/browser/gateway/console-trend.js +151 -0
- package/lib/browser/gateway/console-view.js +39 -1
- package/lib/browser/i18n/locales.d.ts +143 -6
- package/lib/browser/i18n/messages-ja.js +144 -7
- package/lib/browser/i18n/messages-zh-tw.js +144 -7
- package/lib/browser/i18n/messages.d.ts +140 -3
- package/lib/browser/i18n/messages.js +288 -14
- package/lib/browser/index.d.ts +17 -0
- package/lib/browser/index.js +17 -0
- package/lib/browser/notices/notices-protocol.d.ts +12 -0
- package/lib/browser/notices/notices.js +7 -4
- package/lib/browser/offline/device-values.d.ts +2 -0
- package/lib/browser/offline/device-values.js +6 -1
- package/lib/browser/screen/page-answers.d.ts +43 -0
- package/lib/browser/screen/page-answers.js +93 -0
- package/lib/browser/screen/screen-protocol.d.ts +113 -0
- package/lib/browser/screen/screen-protocol.js +48 -0
- package/lib/browser/screen/screen.d.ts +21 -0
- package/lib/browser/screen/screen.js +125 -0
- package/lib/browser/screen/use-screen-part.d.ts +7 -0
- package/lib/browser/screen/use-screen-part.js +50 -0
- package/lib/browser/settings/settings-protocol.d.ts +5 -1
- package/lib/browser/settings/settings-protocol.js +5 -1
- package/lib/browser/share/shared-extensions.d.ts +30 -0
- package/lib/browser/share/shared-extensions.js +181 -0
- package/lib/browser/share/shared-link.d.ts +12 -0
- package/lib/browser/share/shared-link.js +41 -0
- package/lib/browser/share/shared-page.d.ts +6 -0
- package/lib/browser/share/shared-page.js +173 -0
- package/lib/browser/state/state-protocol.d.ts +14 -0
- package/lib/browser/state/state-protocol.js +20 -1
- package/lib/browser/state/state.d.ts +10 -2
- package/lib/browser/state/state.js +18 -2
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +4 -0
- package/lib/browser/style/chat-list.d.ts +3 -0
- package/lib/browser/style/chat-list.js +156 -0
- package/lib/browser/style/conversation-column.d.ts +3 -0
- package/lib/browser/style/conversation-column.js +253 -0
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +24 -8
- package/lib/browser/style/dialogs.d.ts +3 -0
- package/lib/browser/style/dialogs.js +166 -0
- package/lib/browser/style/layout.d.ts +2 -2
- package/lib/browser/style/layout.js +1 -525
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +9 -3
- package/lib/browser/style/phone.d.ts +1 -1
- package/lib/browser/style/phone.js +7 -3
- package/lib/browser/style/shared.d.ts +3 -0
- package/lib/browser/style/shared.js +26 -0
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +47 -0
- package/lib/browser/style/tasks.d.ts +1 -1
- package/lib/browser/style/tasks.js +13 -8
- package/lib/browser/style.js +8 -0
- package/lib/browser/util/gallery.d.ts +24 -2
- package/lib/browser/util/gallery.js +82 -2
- package/lib/browser/util/image-copy.d.ts +17 -0
- package/lib/browser/util/image-copy.js +60 -0
- package/lib/browser/util/message.d.ts +5 -0
- package/lib/browser/util/message.js +14 -0
- package/lib/browser/util/process.d.ts +6 -2
- package/lib/browser/util/process.js +6 -2
- package/lib/browser/util/spoken.d.ts +25 -0
- package/lib/browser/util/spoken.js +86 -0
- package/lib/browser/util/transcript.d.ts +23 -0
- package/lib/browser/util/transcript.js +49 -0
- package/lib/browser/util/voice.d.ts +5 -1
- package/lib/browser/util/voice.js +6 -1
- package/lib/browser/workbench-hosts.d.ts +37 -0
- package/lib/browser/workbench-hosts.js +124 -0
- package/lib/browser/workbench-lists.d.ts +34 -0
- package/lib/browser/workbench-lists.js +132 -0
- package/lib/browser/workbench-protocol.d.ts +14 -1
- package/lib/browser/workbench-services.d.ts +50 -0
- package/lib/browser/workbench-services.js +124 -0
- package/lib/browser/workbench-util.d.ts +1 -1
- package/lib/browser/workbench.d.ts +6 -89
- package/lib/browser/workbench.js +23 -333
- package/package.json +7 -7
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Square } from 'lucide-react';
|
|
2
|
+
import { ChatAskUtil } from '../components/chat-asks.js';
|
|
3
|
+
import { ChatBusyUtil } from '../components/chat-busy.js';
|
|
4
|
+
import { ChatListUtil } from '../components/chat-list-util.js';
|
|
5
|
+
export const CHATS_TASK = 'chats';
|
|
6
|
+
/**
|
|
7
|
+
* The conversations the user has going on themselves (ChatBusyUtil), as one row of the double's tasks
|
|
8
|
+
* (WebTask.gathered): it waits while one of them waits for the user, runs while one answers, and has ended, unseen,
|
|
9
|
+
* while only some said something the user has not seen; it is gone once all are seen at rest. It opens the list of
|
|
10
|
+
* chats, filtered to them. A new task object only when what the row shows changes, not at each piece of a reply.
|
|
11
|
+
*/
|
|
12
|
+
export class ChatTaskSource {
|
|
13
|
+
constructor(actions) {
|
|
14
|
+
this.actions = actions;
|
|
15
|
+
this.list = [];
|
|
16
|
+
this.listeners = new Set();
|
|
17
|
+
}
|
|
18
|
+
tasks() {
|
|
19
|
+
return this.list;
|
|
20
|
+
}
|
|
21
|
+
subscribe(listener) {
|
|
22
|
+
if (this.listeners.size === 0) {
|
|
23
|
+
this.stop = this.actions.watch(() => this.build());
|
|
24
|
+
this.build();
|
|
25
|
+
}
|
|
26
|
+
this.listeners.add(listener);
|
|
27
|
+
return () => {
|
|
28
|
+
var _a;
|
|
29
|
+
this.listeners.delete(listener);
|
|
30
|
+
if (this.listeners.size === 0) {
|
|
31
|
+
(_a = this.stop) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
32
|
+
this.stop = undefined;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/** The words are of the language of now: made again. */
|
|
37
|
+
refresh() {
|
|
38
|
+
this.list = [];
|
|
39
|
+
this.build();
|
|
40
|
+
}
|
|
41
|
+
build() {
|
|
42
|
+
const facts = this.actions.read();
|
|
43
|
+
const busy = ChatBusyUtil.list(facts.sessions, facts.saved, facts.removed, facts.others, facts.seen, facts.letGo, facts.folded);
|
|
44
|
+
const next = busy.entries.length > 0 ? this.entry(busy, facts.letGo, this.list[0]) : undefined;
|
|
45
|
+
if (next === this.list[0]) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
this.list = next ? [next] : [];
|
|
49
|
+
for (const listener of this.listeners) {
|
|
50
|
+
listener();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
/** What the first of them is at, in a few words. */
|
|
54
|
+
line(entry, busy, letGo) {
|
|
55
|
+
var _a;
|
|
56
|
+
const { t } = this.actions;
|
|
57
|
+
const title = ChatListUtil.title(entry, t);
|
|
58
|
+
if (busy === 'waiting') {
|
|
59
|
+
const question = (_a = ChatAskUtil.asking(entry, letGo)) === null || _a === void 0 ? void 0 : _a.question;
|
|
60
|
+
return `${title} · ${question ? t('ta.chat.toAsk', { question }) : t('ta.task.waiting')}`;
|
|
61
|
+
}
|
|
62
|
+
if (busy === 'running') {
|
|
63
|
+
return `${title} · ${t('ta.chats.busyAnswering')}`;
|
|
64
|
+
}
|
|
65
|
+
const said = ChatListUtil.preview(entry, title);
|
|
66
|
+
return said ? `${title} · ${said}` : title;
|
|
67
|
+
}
|
|
68
|
+
entry(busy, letGo, before) {
|
|
69
|
+
const { t } = this.actions;
|
|
70
|
+
const { entries, waiting, running, fresh } = busy;
|
|
71
|
+
const first = entries[0];
|
|
72
|
+
const line = this.line(first.entry, first.busy, letGo);
|
|
73
|
+
const detail = entries.length > 1 ? t('ta.chats.busyMany', { count: entries.length, line }) : line;
|
|
74
|
+
const status = waiting > 0 ? 'waiting' : running > 0 ? 'running' : 'done';
|
|
75
|
+
const startedAt = first.entry.updatedAt;
|
|
76
|
+
const endedAt = status === 'done' ? startedAt : undefined;
|
|
77
|
+
const g = before === null || before === void 0 ? void 0 : before.gathered;
|
|
78
|
+
if (before &&
|
|
79
|
+
before.status === status &&
|
|
80
|
+
before.detail === detail &&
|
|
81
|
+
before.startedAt === startedAt &&
|
|
82
|
+
before.endedAt === endedAt &&
|
|
83
|
+
(g === null || g === void 0 ? void 0 : g.waiting) === waiting &&
|
|
84
|
+
g.running === running &&
|
|
85
|
+
g.fresh === fresh) {
|
|
86
|
+
return before;
|
|
87
|
+
}
|
|
88
|
+
const answering = entries.flatMap(({ entry, busy }) => (busy === 'running' && ChatListUtil.isOpen(entry) ? [entry.sessionId] : []));
|
|
89
|
+
return {
|
|
90
|
+
id: CHATS_TASK,
|
|
91
|
+
title: t('ta.chats.busy'),
|
|
92
|
+
status,
|
|
93
|
+
detail,
|
|
94
|
+
startedAt,
|
|
95
|
+
endedAt,
|
|
96
|
+
icon: this.actions.icon,
|
|
97
|
+
gathered: { waiting, running, fresh },
|
|
98
|
+
open: () => this.actions.open(),
|
|
99
|
+
menu: () => this.menu(answering),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
menu(answering) {
|
|
103
|
+
const { t } = this.actions;
|
|
104
|
+
return answering.length > 0 ? [[{ key: 'stop', label: t('ta.chats.busyStop'), icon: Square, run: () => void this.actions.stop(answering) }]] : [];
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=chat-task-source.js.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { RealtimeVoice, type RealtimeVoiceHost } from './realtime-voice.js';
|
|
2
|
+
import type { CallVoice } from './voice-call.js';
|
|
3
|
+
/** How long a voice service opened to read stays open after it read, ready for the next reply. */
|
|
4
|
+
export declare const READ_IDLE_MS = 60000;
|
|
5
|
+
interface OpenService {
|
|
6
|
+
use: string;
|
|
7
|
+
language: string;
|
|
8
|
+
voice: Promise<RealtimeVoice | undefined>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* What reads replies out of a call (Settings.speak, pi.ui.speak): the voice service chosen in Settings
|
|
12
|
+
* (voices.json, docs/design/ta-voice.md 5) when one is and it reads, opened without the microphone; else, or when it
|
|
13
|
+
* cannot open, the voice of the device. One for each connection of the page (ReadAloud.of).
|
|
14
|
+
*/
|
|
15
|
+
export declare class ReadAloud {
|
|
16
|
+
protected readonly host: RealtimeVoiceHost;
|
|
17
|
+
protected readonly device: CallVoice;
|
|
18
|
+
protected readonly openVoice: (language: string) => Promise<RealtimeVoice>;
|
|
19
|
+
protected static readonly pages: WeakMap<RealtimeVoiceHost, ReadAloud>;
|
|
20
|
+
static of(host: RealtimeVoiceHost): ReadAloud;
|
|
21
|
+
protected service?: OpenService;
|
|
22
|
+
protected turn: number;
|
|
23
|
+
protected idle?: ReturnType<typeof setTimeout>;
|
|
24
|
+
constructor(host: RealtimeVoiceHost, device?: CallVoice, openVoice?: (language: string) => Promise<RealtimeVoice>);
|
|
25
|
+
/** Reads markdown out, as Voice.speak; `onEnd` once it is all read, not when hushed. */
|
|
26
|
+
speak(markdown: string, language: string, onEnd: () => void, voice?: string): void;
|
|
27
|
+
hush(): void;
|
|
28
|
+
/** Lets go of the service now. */
|
|
29
|
+
close(): void;
|
|
30
|
+
/** The service in use that reads, open for `language`; undefined for the voice of the device. */
|
|
31
|
+
protected open(language: string): Promise<RealtimeVoice | undefined>;
|
|
32
|
+
protected rest(): void;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { ScreenUtil } from '../screen/screen-protocol.js';
|
|
2
|
+
import { Voice } from '../util/voice.js';
|
|
3
|
+
import { RealtimeVoice } from './realtime-voice.js';
|
|
4
|
+
/** How long a voice service opened to read stays open after it read, ready for the next reply. */
|
|
5
|
+
export const READ_IDLE_MS = 60000;
|
|
6
|
+
/**
|
|
7
|
+
* What reads replies out of a call (Settings.speak, pi.ui.speak): the voice service chosen in Settings
|
|
8
|
+
* (voices.json, docs/design/ta-voice.md 5) when one is and it reads, opened without the microphone; else, or when it
|
|
9
|
+
* cannot open, the voice of the device. One for each connection of the page (ReadAloud.of).
|
|
10
|
+
*/
|
|
11
|
+
export class ReadAloud {
|
|
12
|
+
static of(host) {
|
|
13
|
+
let reader = ReadAloud.pages.get(host);
|
|
14
|
+
if (!reader) {
|
|
15
|
+
reader = new ReadAloud(host);
|
|
16
|
+
ReadAloud.pages.set(host, reader);
|
|
17
|
+
}
|
|
18
|
+
return reader;
|
|
19
|
+
}
|
|
20
|
+
constructor(host, device = Voice, openVoice = language => new RealtimeVoice(host, device).open(language, { hear: false })) {
|
|
21
|
+
this.host = host;
|
|
22
|
+
this.device = device;
|
|
23
|
+
this.openVoice = openVoice;
|
|
24
|
+
this.turn = 0;
|
|
25
|
+
}
|
|
26
|
+
/** Reads markdown out, as Voice.speak; `onEnd` once it is all read, not when hushed. */
|
|
27
|
+
speak(markdown, language, onEnd, voice) {
|
|
28
|
+
// Ta's own screen says nothing aloud: the user's page does.
|
|
29
|
+
if (ScreenUtil.agent()) {
|
|
30
|
+
onEnd();
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
this.hush();
|
|
34
|
+
const turn = this.turn;
|
|
35
|
+
clearTimeout(this.idle);
|
|
36
|
+
const done = () => {
|
|
37
|
+
if (turn === this.turn) {
|
|
38
|
+
this.rest();
|
|
39
|
+
}
|
|
40
|
+
onEnd();
|
|
41
|
+
};
|
|
42
|
+
void this.open(language).then(service => {
|
|
43
|
+
if (turn !== this.turn) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
(service !== null && service !== void 0 ? service : this.device).speak(markdown, language, done, voice);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
hush() {
|
|
50
|
+
var _a;
|
|
51
|
+
this.turn++;
|
|
52
|
+
this.device.hush();
|
|
53
|
+
void ((_a = this.service) === null || _a === void 0 ? void 0 : _a.voice.then(voice => voice === null || voice === void 0 ? void 0 : voice.hush()));
|
|
54
|
+
this.rest();
|
|
55
|
+
}
|
|
56
|
+
/** Lets go of the service now. */
|
|
57
|
+
close() {
|
|
58
|
+
clearTimeout(this.idle);
|
|
59
|
+
const service = this.service;
|
|
60
|
+
this.service = undefined;
|
|
61
|
+
void (service === null || service === void 0 ? void 0 : service.voice.then(voice => voice === null || voice === void 0 ? void 0 : voice.stop()));
|
|
62
|
+
}
|
|
63
|
+
/** The service in use that reads, open for `language`; undefined for the voice of the device. */
|
|
64
|
+
async open(language) {
|
|
65
|
+
var _a;
|
|
66
|
+
var _b;
|
|
67
|
+
// A Ta of before, or one let in who may not see the settings: the voice of the device.
|
|
68
|
+
const voices = await this.host.voice.listVoices().catch(() => undefined);
|
|
69
|
+
const use = voices === null || voices === void 0 ? void 0 : voices.use;
|
|
70
|
+
const reads = !!use && ((_a = voices.types.find(type => { var _a; return type.type === ((_a = voices.services.find(service => service.id === use)) === null || _a === void 0 ? void 0 : _a.type); })) === null || _a === void 0 ? void 0 : _a.speaks) !== false;
|
|
71
|
+
if (!use || !reads) {
|
|
72
|
+
this.close();
|
|
73
|
+
return undefined;
|
|
74
|
+
}
|
|
75
|
+
if (this.service && (this.service.use !== use || this.service.language !== language)) {
|
|
76
|
+
this.close();
|
|
77
|
+
}
|
|
78
|
+
const service = (_b = this.service) !== null && _b !== void 0 ? _b : { use, language, voice: this.openVoice(language).catch(() => undefined) };
|
|
79
|
+
this.service = service;
|
|
80
|
+
const voice = await service.voice;
|
|
81
|
+
if (voice === null || voice === void 0 ? void 0 : voice.speaks) {
|
|
82
|
+
return voice;
|
|
83
|
+
}
|
|
84
|
+
// It closed by itself, or could not open: the next reply tries again.
|
|
85
|
+
if (this.service === service) {
|
|
86
|
+
this.close();
|
|
87
|
+
}
|
|
88
|
+
return undefined;
|
|
89
|
+
}
|
|
90
|
+
rest() {
|
|
91
|
+
clearTimeout(this.idle);
|
|
92
|
+
if (this.service) {
|
|
93
|
+
this.idle = setTimeout(() => this.close(), READ_IDLE_MS);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
ReadAloud.pages = new WeakMap();
|
|
98
|
+
//# sourceMappingURL=read-aloud.js.map
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { TaVoiceEvent, TaVoiceServer, TaVoiceSession } from '@celljs/ta-protocol';
|
|
2
|
+
import { Voice } from '../util/voice.js';
|
|
3
|
+
import type { CallVoice } from './voice-call.js';
|
|
4
|
+
/** What a voice of a service uses of the page's connection. */
|
|
5
|
+
export interface RealtimeVoiceHost {
|
|
6
|
+
readonly voice: TaVoiceServer;
|
|
7
|
+
onVoiceEvent(listener: (event: TaVoiceEvent) => void): () => void;
|
|
8
|
+
}
|
|
9
|
+
/** How long a listen waits for a sentence before it counts as silence. */
|
|
10
|
+
export declare const REALTIME_SILENCE_MS = 12000;
|
|
11
|
+
/** The samples of a microphone, made PCM16 mono at another rate. */
|
|
12
|
+
export declare namespace PcmUtil {
|
|
13
|
+
/** Linear resampling of mono float samples to `to` Hz, as PCM16 little-endian. */
|
|
14
|
+
function toPcm16(samples: Float32Array, from: number, to: number): Uint8Array;
|
|
15
|
+
function toFloat(pcm: Uint8Array): Float32Array;
|
|
16
|
+
function base64(bytes: Uint8Array): string;
|
|
17
|
+
function bytes(base64: string): Uint8Array;
|
|
18
|
+
}
|
|
19
|
+
interface Hearing {
|
|
20
|
+
onText(text: string, final: boolean): void;
|
|
21
|
+
onEnd(error?: string): void;
|
|
22
|
+
timer?: ReturnType<typeof setTimeout>;
|
|
23
|
+
/** The user began a sentence: it does not end as silence. */
|
|
24
|
+
speaking: boolean;
|
|
25
|
+
}
|
|
26
|
+
interface Reading {
|
|
27
|
+
say: number;
|
|
28
|
+
onEnd(): void;
|
|
29
|
+
/** All its audio came: it ends once the last piece played. */
|
|
30
|
+
said: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A voice of a service of voices.json for a call (docs/design/ta-voice.md 5): the microphone goes to ta serve as PCM
|
|
34
|
+
* while Ta listens or reads (so the service hears the user cut in), and what the service reads plays here. A service
|
|
35
|
+
* that does not read leaves reading to the voice of the device. Opened with `hear: false` it only reads (ReadAloud).
|
|
36
|
+
*/
|
|
37
|
+
export declare class RealtimeVoice implements CallVoice {
|
|
38
|
+
protected readonly host: RealtimeVoiceHost;
|
|
39
|
+
protected readonly device: CallVoice;
|
|
40
|
+
protected session?: TaVoiceSession;
|
|
41
|
+
protected context?: AudioContext;
|
|
42
|
+
protected stream?: MediaStream;
|
|
43
|
+
protected processor?: ScriptProcessorNode;
|
|
44
|
+
protected offEvents?: () => void;
|
|
45
|
+
protected hearing?: Hearing;
|
|
46
|
+
protected reading?: Reading;
|
|
47
|
+
protected says: number;
|
|
48
|
+
protected playAt: number;
|
|
49
|
+
protected readonly playing: Set<AudioBufferSourceNode>;
|
|
50
|
+
protected readonly speechListeners: Set<() => void>;
|
|
51
|
+
protected buffered: Float32Array[];
|
|
52
|
+
protected bufferedLength: number;
|
|
53
|
+
protected closed: boolean;
|
|
54
|
+
constructor(host: RealtimeVoiceHost, device?: CallVoice);
|
|
55
|
+
/** Opens the service and, unless `hear` is false, the microphone; rejects with why one of them is not there. */
|
|
56
|
+
open(language: string, options?: {
|
|
57
|
+
hear?: boolean;
|
|
58
|
+
}): Promise<this>;
|
|
59
|
+
listen(_language: string, onText: (text: string, final: boolean) => void, onEnd: (error?: string) => void): Voice.Listening | undefined;
|
|
60
|
+
/** It is open: it neither closed by itself nor was stopped. */
|
|
61
|
+
get isOpen(): boolean;
|
|
62
|
+
/** It reads with the voice of the service, not with that of the device. */
|
|
63
|
+
get speaks(): boolean;
|
|
64
|
+
speak(text: string, language: string, onEnd: () => void, voice?: string, onPiece?: (pieces: string[], index: number) => void): void;
|
|
65
|
+
hush(): void;
|
|
66
|
+
onSpeech(listener: () => void): () => void;
|
|
67
|
+
stop(): void;
|
|
68
|
+
/** Sound of the microphone: sent while Ta listens or reads, in pieces of CHUNK_MS. */
|
|
69
|
+
protected captured(samples: Float32Array): void;
|
|
70
|
+
protected take(event: TaVoiceEvent): void;
|
|
71
|
+
protected play(samples: Float32Array): void;
|
|
72
|
+
protected finishReading(say: number): void;
|
|
73
|
+
/** Nothing said for a while: the listen ends as silence, as the device's does. */
|
|
74
|
+
protected waitSilence(hearing: Hearing): void;
|
|
75
|
+
protected endHearing(): void;
|
|
76
|
+
}
|
|
77
|
+
export {};
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
import { Voice } from '../util/voice.js';
|
|
2
|
+
/** How long a listen waits for a sentence before it counts as silence. */
|
|
3
|
+
export const REALTIME_SILENCE_MS = 12000;
|
|
4
|
+
/** The audio sent at once, in ms of sound. */
|
|
5
|
+
const CHUNK_MS = 100;
|
|
6
|
+
/** The samples of a microphone, made PCM16 mono at another rate. */
|
|
7
|
+
export var PcmUtil;
|
|
8
|
+
(function (PcmUtil) {
|
|
9
|
+
/** Linear resampling of mono float samples to `to` Hz, as PCM16 little-endian. */
|
|
10
|
+
function toPcm16(samples, from, to) {
|
|
11
|
+
const ratio = from / to;
|
|
12
|
+
const length = Math.floor(samples.length / ratio);
|
|
13
|
+
const out = new DataView(new ArrayBuffer(length * 2));
|
|
14
|
+
for (let i = 0; i < length; i++) {
|
|
15
|
+
const at = i * ratio;
|
|
16
|
+
const low = Math.floor(at);
|
|
17
|
+
const high = Math.min(low + 1, samples.length - 1);
|
|
18
|
+
const value = samples[low] + (samples[high] - samples[low]) * (at - low);
|
|
19
|
+
out.setInt16(i * 2, Math.max(-1, Math.min(1, value)) * 0x7fff, true);
|
|
20
|
+
}
|
|
21
|
+
return new Uint8Array(out.buffer);
|
|
22
|
+
}
|
|
23
|
+
PcmUtil.toPcm16 = toPcm16;
|
|
24
|
+
function toFloat(pcm) {
|
|
25
|
+
const view = new DataView(pcm.buffer, pcm.byteOffset, pcm.byteLength);
|
|
26
|
+
const out = new Float32Array(Math.floor(pcm.byteLength / 2));
|
|
27
|
+
for (let i = 0; i < out.length; i++) {
|
|
28
|
+
out[i] = view.getInt16(i * 2, true) / 0x8000;
|
|
29
|
+
}
|
|
30
|
+
return out;
|
|
31
|
+
}
|
|
32
|
+
PcmUtil.toFloat = toFloat;
|
|
33
|
+
function base64(bytes) {
|
|
34
|
+
let text = '';
|
|
35
|
+
for (let i = 0; i < bytes.length; i += 0x8000) {
|
|
36
|
+
text += String.fromCharCode(...bytes.subarray(i, i + 0x8000));
|
|
37
|
+
}
|
|
38
|
+
return btoa(text);
|
|
39
|
+
}
|
|
40
|
+
PcmUtil.base64 = base64;
|
|
41
|
+
function bytes(base64) {
|
|
42
|
+
const text = atob(base64);
|
|
43
|
+
const out = new Uint8Array(text.length);
|
|
44
|
+
for (let i = 0; i < text.length; i++) {
|
|
45
|
+
out[i] = text.charCodeAt(i);
|
|
46
|
+
}
|
|
47
|
+
return out;
|
|
48
|
+
}
|
|
49
|
+
PcmUtil.bytes = bytes;
|
|
50
|
+
})(PcmUtil || (PcmUtil = {}));
|
|
51
|
+
/**
|
|
52
|
+
* A voice of a service of voices.json for a call (docs/design/ta-voice.md 5): the microphone goes to ta serve as PCM
|
|
53
|
+
* while Ta listens or reads (so the service hears the user cut in), and what the service reads plays here. A service
|
|
54
|
+
* that does not read leaves reading to the voice of the device. Opened with `hear: false` it only reads (ReadAloud).
|
|
55
|
+
*/
|
|
56
|
+
export class RealtimeVoice {
|
|
57
|
+
constructor(host, device = Voice) {
|
|
58
|
+
this.host = host;
|
|
59
|
+
this.device = device;
|
|
60
|
+
this.says = 0;
|
|
61
|
+
this.playAt = 0;
|
|
62
|
+
this.playing = new Set();
|
|
63
|
+
this.speechListeners = new Set();
|
|
64
|
+
this.buffered = [];
|
|
65
|
+
this.bufferedLength = 0;
|
|
66
|
+
this.closed = false;
|
|
67
|
+
}
|
|
68
|
+
/** Opens the service and, unless `hear` is false, the microphone; rejects with why one of them is not there. */
|
|
69
|
+
async open(language, options = {}) {
|
|
70
|
+
var _a;
|
|
71
|
+
this.offEvents = this.host.onVoiceEvent(event => this.take(event));
|
|
72
|
+
try {
|
|
73
|
+
this.session = await this.host.voice.openVoice({ language });
|
|
74
|
+
const Context = (_a = globalThis.AudioContext) !== null && _a !== void 0 ? _a : globalThis.webkitAudioContext;
|
|
75
|
+
if (options.hear === false) {
|
|
76
|
+
this.context = new Context();
|
|
77
|
+
await this.context.resume().catch(() => undefined);
|
|
78
|
+
return this;
|
|
79
|
+
}
|
|
80
|
+
this.stream = await navigator.mediaDevices.getUserMedia({
|
|
81
|
+
audio: { echoCancellation: true, noiseSuppression: true, autoGainControl: true, channelCount: 1 },
|
|
82
|
+
});
|
|
83
|
+
this.context = new Context();
|
|
84
|
+
await this.context.resume().catch(() => undefined);
|
|
85
|
+
const source = this.context.createMediaStreamSource(this.stream);
|
|
86
|
+
this.processor = this.context.createScriptProcessor(4096, 1, 1);
|
|
87
|
+
this.processor.onaudioprocess = event => this.captured(event.inputBuffer.getChannelData(0));
|
|
88
|
+
source.connect(this.processor);
|
|
89
|
+
// Connected so that it runs; it writes nothing, its output is silence.
|
|
90
|
+
this.processor.connect(this.context.destination);
|
|
91
|
+
return this;
|
|
92
|
+
}
|
|
93
|
+
catch (error) {
|
|
94
|
+
this.stop();
|
|
95
|
+
throw error;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
listen(_language, onText, onEnd) {
|
|
99
|
+
if (this.closed || !this.session) {
|
|
100
|
+
return undefined;
|
|
101
|
+
}
|
|
102
|
+
this.endHearing();
|
|
103
|
+
const hearing = { onText, onEnd, speaking: false };
|
|
104
|
+
this.hearing = hearing;
|
|
105
|
+
this.waitSilence(hearing);
|
|
106
|
+
return {
|
|
107
|
+
stop: () => {
|
|
108
|
+
if (this.hearing === hearing) {
|
|
109
|
+
this.endHearing();
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
/** It is open: it neither closed by itself nor was stopped. */
|
|
115
|
+
get isOpen() {
|
|
116
|
+
return !!this.session && !this.closed;
|
|
117
|
+
}
|
|
118
|
+
/** It reads with the voice of the service, not with that of the device. */
|
|
119
|
+
get speaks() {
|
|
120
|
+
var _a;
|
|
121
|
+
return this.isOpen && !!((_a = this.session) === null || _a === void 0 ? void 0 : _a.speaks);
|
|
122
|
+
}
|
|
123
|
+
speak(text, language, onEnd, voice, onPiece) {
|
|
124
|
+
var _a, _b;
|
|
125
|
+
this.hush();
|
|
126
|
+
if (!((_a = this.session) === null || _a === void 0 ? void 0 : _a.speaks) || this.closed) {
|
|
127
|
+
this.device.speak(text, language, onEnd, voice, onPiece);
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
const words = Voice.spoken(text);
|
|
131
|
+
if (!words) {
|
|
132
|
+
onEnd();
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
// The service reads it whole: its captions are the whole answer, as it is read.
|
|
136
|
+
onPiece === null || onPiece === void 0 ? void 0 : onPiece([words], 0);
|
|
137
|
+
// Says are counted on both sides alike: the audio of this one may come before the call answers.
|
|
138
|
+
const say = ++this.says;
|
|
139
|
+
this.reading = { say, onEnd, said: false };
|
|
140
|
+
this.playAt = 0;
|
|
141
|
+
// Suspended while the page had no tap since it opened the voice: a tap since lets it play.
|
|
142
|
+
void ((_b = this.context) === null || _b === void 0 ? void 0 : _b.resume().catch(() => undefined));
|
|
143
|
+
this.host.voice.sayVoice(this.session.voiceId, words).catch(() => this.finishReading(say));
|
|
144
|
+
}
|
|
145
|
+
hush() {
|
|
146
|
+
this.device.hush();
|
|
147
|
+
const reading = this.reading;
|
|
148
|
+
this.reading = undefined;
|
|
149
|
+
for (const node of this.playing) {
|
|
150
|
+
node.onended = null;
|
|
151
|
+
try {
|
|
152
|
+
node.stop();
|
|
153
|
+
}
|
|
154
|
+
catch (_a) {
|
|
155
|
+
// Ended already.
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
this.playing.clear();
|
|
159
|
+
if (reading && this.session && !this.closed) {
|
|
160
|
+
void this.host.voice.hushVoice(this.session.voiceId).catch(() => undefined);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
onSpeech(listener) {
|
|
164
|
+
this.speechListeners.add(listener);
|
|
165
|
+
return () => this.speechListeners.delete(listener);
|
|
166
|
+
}
|
|
167
|
+
stop() {
|
|
168
|
+
var _a, _b, _c;
|
|
169
|
+
var _d;
|
|
170
|
+
if (this.closed) {
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
this.closed = true;
|
|
174
|
+
this.hush();
|
|
175
|
+
this.endHearing();
|
|
176
|
+
(_a = this.offEvents) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
177
|
+
if (this.processor) {
|
|
178
|
+
this.processor.onaudioprocess = null;
|
|
179
|
+
this.processor.disconnect();
|
|
180
|
+
}
|
|
181
|
+
for (const track of (_d = (_b = this.stream) === null || _b === void 0 ? void 0 : _b.getTracks()) !== null && _d !== void 0 ? _d : []) {
|
|
182
|
+
track.stop();
|
|
183
|
+
}
|
|
184
|
+
void ((_c = this.context) === null || _c === void 0 ? void 0 : _c.close().catch(() => undefined));
|
|
185
|
+
if (this.session) {
|
|
186
|
+
void this.host.voice.closeVoice(this.session.voiceId).catch(() => undefined);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
/** Sound of the microphone: sent while Ta listens or reads, in pieces of CHUNK_MS. */
|
|
190
|
+
captured(samples) {
|
|
191
|
+
if (this.closed || !this.session || !this.context || (!this.hearing && !this.reading)) {
|
|
192
|
+
this.buffered = [];
|
|
193
|
+
this.bufferedLength = 0;
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
this.buffered.push(new Float32Array(samples));
|
|
197
|
+
this.bufferedLength += samples.length;
|
|
198
|
+
if (this.bufferedLength < (this.context.sampleRate * CHUNK_MS) / 1000) {
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
const all = new Float32Array(this.bufferedLength);
|
|
202
|
+
let at = 0;
|
|
203
|
+
for (const piece of this.buffered) {
|
|
204
|
+
all.set(piece, at);
|
|
205
|
+
at += piece.length;
|
|
206
|
+
}
|
|
207
|
+
this.buffered = [];
|
|
208
|
+
this.bufferedLength = 0;
|
|
209
|
+
const pcm = PcmUtil.toPcm16(all, this.context.sampleRate, this.session.inputRate);
|
|
210
|
+
void this.host.voice.sendVoice(this.session.voiceId, PcmUtil.base64(pcm)).catch(() => undefined);
|
|
211
|
+
}
|
|
212
|
+
take(event) {
|
|
213
|
+
var _a, _b;
|
|
214
|
+
var _c;
|
|
215
|
+
if (!this.session || event.voiceId !== this.session.voiceId || this.closed) {
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
switch (event.type) {
|
|
219
|
+
case 'speech':
|
|
220
|
+
// Cut in while Ta reads: the call stops it and listens, then this listen hears the sentence begun.
|
|
221
|
+
if (this.reading) {
|
|
222
|
+
for (const listener of this.speechListeners) {
|
|
223
|
+
listener();
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
if (this.hearing) {
|
|
227
|
+
this.hearing.speaking = true;
|
|
228
|
+
clearTimeout(this.hearing.timer);
|
|
229
|
+
}
|
|
230
|
+
return;
|
|
231
|
+
case 'text': {
|
|
232
|
+
const hearing = this.hearing;
|
|
233
|
+
if (!hearing) {
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
hearing.onText(event.text, event.final);
|
|
237
|
+
if (event.final) {
|
|
238
|
+
if (event.text.trim()) {
|
|
239
|
+
this.endHearing();
|
|
240
|
+
hearing.onEnd();
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
hearing.speaking = false;
|
|
244
|
+
this.waitSilence(hearing);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
case 'audio':
|
|
250
|
+
if (((_a = this.reading) === null || _a === void 0 ? void 0 : _a.say) === event.say) {
|
|
251
|
+
this.play(PcmUtil.toFloat(PcmUtil.bytes(event.data)));
|
|
252
|
+
}
|
|
253
|
+
return;
|
|
254
|
+
case 'said':
|
|
255
|
+
if (((_b = this.reading) === null || _b === void 0 ? void 0 : _b.say) === event.say) {
|
|
256
|
+
this.reading.said = true;
|
|
257
|
+
if (!this.playing.size) {
|
|
258
|
+
this.finishReading(event.say);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
return;
|
|
262
|
+
case 'closed': {
|
|
263
|
+
this.closed = true;
|
|
264
|
+
const hearing = this.hearing;
|
|
265
|
+
this.endHearing();
|
|
266
|
+
hearing === null || hearing === void 0 ? void 0 : hearing.onEnd((_c = event.error) !== null && _c !== void 0 ? _c : 'closed');
|
|
267
|
+
const reading = this.reading;
|
|
268
|
+
this.reading = undefined;
|
|
269
|
+
reading === null || reading === void 0 ? void 0 : reading.onEnd();
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
play(samples) {
|
|
275
|
+
const context = this.context;
|
|
276
|
+
const reading = this.reading;
|
|
277
|
+
if (!context || !reading || !samples.length || !this.session) {
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
const buffer = context.createBuffer(1, samples.length, this.session.outputRate);
|
|
281
|
+
buffer.copyToChannel(samples, 0);
|
|
282
|
+
const node = context.createBufferSource();
|
|
283
|
+
node.buffer = buffer;
|
|
284
|
+
node.connect(context.destination);
|
|
285
|
+
const at = Math.max(this.playAt, context.currentTime + 0.05);
|
|
286
|
+
node.start(at);
|
|
287
|
+
this.playAt = at + buffer.duration;
|
|
288
|
+
this.playing.add(node);
|
|
289
|
+
node.onended = () => {
|
|
290
|
+
this.playing.delete(node);
|
|
291
|
+
if (this.reading === reading && reading.said && !this.playing.size) {
|
|
292
|
+
this.finishReading(reading.say);
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
finishReading(say) {
|
|
297
|
+
const reading = this.reading;
|
|
298
|
+
if ((reading === null || reading === void 0 ? void 0 : reading.say) === say) {
|
|
299
|
+
this.reading = undefined;
|
|
300
|
+
reading.onEnd();
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
/** Nothing said for a while: the listen ends as silence, as the device's does. */
|
|
304
|
+
waitSilence(hearing) {
|
|
305
|
+
clearTimeout(hearing.timer);
|
|
306
|
+
hearing.timer = setTimeout(() => {
|
|
307
|
+
if (this.hearing === hearing && !hearing.speaking) {
|
|
308
|
+
this.endHearing();
|
|
309
|
+
hearing.onEnd();
|
|
310
|
+
}
|
|
311
|
+
}, REALTIME_SILENCE_MS);
|
|
312
|
+
}
|
|
313
|
+
endHearing() {
|
|
314
|
+
if (this.hearing) {
|
|
315
|
+
clearTimeout(this.hearing.timer);
|
|
316
|
+
this.hearing = undefined;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
//# sourceMappingURL=realtime-voice.js.map
|
|
@@ -70,9 +70,8 @@ export declare function TasksChip({ tasks, onOpen }: {
|
|
|
70
70
|
tasks: readonly WebTaskEntry[];
|
|
71
71
|
onOpen(): void;
|
|
72
72
|
}): React.JSX.Element;
|
|
73
|
-
/** A task the double is about to start, waiting for the user's go: what it would do, where. */
|
|
74
|
-
export declare function AskCard({ ask,
|
|
73
|
+
/** A task the double is about to start, waiting for the user's go on any of their pages: what it is, what it would do, where. */
|
|
74
|
+
export declare function AskCard({ ask, onAnswer }: {
|
|
75
75
|
ask: AssistantAsk;
|
|
76
|
-
focus?: boolean;
|
|
77
76
|
onAnswer(start: boolean): void;
|
|
78
77
|
}): React.JSX.Element;
|