@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
|
@@ -4,59 +4,18 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Autowired, Component, Optional, PostConstruct } from '@celljs/core';
|
|
7
|
+
import { Component } from '@celljs/core';
|
|
11
8
|
import { Device } from '../device/device.js';
|
|
12
|
-
import { TaFiles } from '../files/files-protocol.js';
|
|
13
9
|
import { message as messageOf } from '../i18n/messages.js';
|
|
14
|
-
import { TaLinks } from '../links/links-protocol.js';
|
|
15
|
-
import { TaNotices } from '../notices/notices-protocol.js';
|
|
16
|
-
import { TaSessionNotices } from '../notices/session-notices.js';
|
|
17
|
-
import { TaSettings } from '../settings/settings-protocol.js';
|
|
18
|
-
import { TaState } from '../state/state-protocol.js';
|
|
19
|
-
import { TaWorkbench } from '../workbench-protocol.js';
|
|
20
|
-
import { WebEditorTabs } from './web-editor-tabs.js';
|
|
21
|
-
import { WebExtensionCode } from './web-extension-code.js';
|
|
22
10
|
import { WebExtensionContext } from './web-extension-context.js';
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { WebHomeBoard } from './web-home.js';
|
|
26
|
-
import { WebOnDemand } from './web-on-demand.js';
|
|
27
|
-
import { WebPageList } from './web-page-list.js';
|
|
11
|
+
import { TaWebExtensions, } from './web-extension-protocol.js';
|
|
12
|
+
import { WebExtensionsRunning } from './web-extensions-running.js';
|
|
28
13
|
import { WebPagesUtil } from './web-pages.js';
|
|
29
14
|
import { WebSharing } from './web-sharing.js';
|
|
30
|
-
import {
|
|
31
|
-
|
|
32
|
-
let TaWebExtensionsImpl = class TaWebExtensionsImpl {
|
|
15
|
+
import { WebViewUtil } from './web-view-util.js';
|
|
16
|
+
let TaWebExtensionsImpl = class TaWebExtensionsImpl extends WebExtensionsRunning {
|
|
33
17
|
constructor() {
|
|
34
|
-
|
|
35
|
-
this.tasks = new WebTaskBoard();
|
|
36
|
-
this.home = new WebHomeBoard();
|
|
37
|
-
this.tabs = new WebEditorTabs({
|
|
38
|
-
state: () => this.current,
|
|
39
|
-
update: change => this.update(change),
|
|
40
|
-
persisted: () => this.persisted,
|
|
41
|
-
notices: () => this.notices,
|
|
42
|
-
language: () => this.settings.state.language,
|
|
43
|
-
closed: editor => {
|
|
44
|
-
const run = this.running.get(editor.extension);
|
|
45
|
-
if (editor.onClose && run) {
|
|
46
|
-
this.guard(run, editor.onClose);
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
openView: id => this.openView(id, true),
|
|
50
|
-
});
|
|
51
|
-
/** The code read before, by its hash: a start reads only what changed. */
|
|
52
|
-
this.code = new WebExtensionCode(() => (typeof localStorage === 'undefined' ? undefined : localStorage));
|
|
53
|
-
this.current = WebExtensionsStateUtil.empty();
|
|
54
|
-
this.running = new Map();
|
|
55
|
-
this.listeners = new Set();
|
|
56
|
-
this.refreshing = Promise.resolve(false);
|
|
57
|
-
/** The extensions of the list of the last time have started (startKept), once. */
|
|
58
|
-
this.keptStarted = false;
|
|
59
|
-
this.pageList = new WebPageList();
|
|
18
|
+
super(...arguments);
|
|
60
19
|
this.nextCustom = 0;
|
|
61
20
|
this.sharing = new WebSharing({
|
|
62
21
|
language: () => this.settings.state.language,
|
|
@@ -77,29 +36,6 @@ let TaWebExtensionsImpl = class TaWebExtensionsImpl {
|
|
|
77
36
|
};
|
|
78
37
|
};
|
|
79
38
|
}
|
|
80
|
-
get state() {
|
|
81
|
-
return this.current;
|
|
82
|
-
}
|
|
83
|
-
init() {
|
|
84
|
-
this.placeholders = WebViewUtil.placeholders(this.persisted.get(WebViewUtil.KEPT));
|
|
85
|
-
this.current = { ...this.current, page: this.persisted.get(WebViewUtil.PAGE), views: this.placeholders, usage: this.onDemand.used };
|
|
86
|
-
}
|
|
87
|
-
/** The extensions started on open (ta-launcher.md). */
|
|
88
|
-
get onDemand() {
|
|
89
|
-
var _a;
|
|
90
|
-
(_a = this.started) !== null && _a !== void 0 ? _a : (this.started = new WebOnDemand({
|
|
91
|
-
settings: this.settings,
|
|
92
|
-
persisted: this.persisted,
|
|
93
|
-
notices: this.notices,
|
|
94
|
-
packages: () => this.workbench.packages,
|
|
95
|
-
isRunning: id => { var _a; return !!((_a = this.running.get(id)) === null || _a === void 0 ? void 0 : _a.started); },
|
|
96
|
-
start: info => this.launch(info),
|
|
97
|
-
stop: id => this.stopOnDemand(id),
|
|
98
|
-
changed: () => this.update({ onOpen: this.onDemand.list(), kept: this.onDemand.kept(), usage: this.onDemand.used }),
|
|
99
|
-
show: id => this.showView(id),
|
|
100
|
-
}));
|
|
101
|
-
return this.started;
|
|
102
|
-
}
|
|
103
39
|
subscribe(listener) {
|
|
104
40
|
this.listeners.add(listener);
|
|
105
41
|
return () => this.listeners.delete(listener);
|
|
@@ -144,6 +80,9 @@ let TaWebExtensionsImpl = class TaWebExtensionsImpl {
|
|
|
144
80
|
usage: this.onDemand.used,
|
|
145
81
|
});
|
|
146
82
|
}
|
|
83
|
+
showChats(busy) {
|
|
84
|
+
this.update({ chatsShown: { count: this.current.chatsShown.count + 1, busy } });
|
|
85
|
+
}
|
|
147
86
|
hidePage() {
|
|
148
87
|
this.onDemand.hidden();
|
|
149
88
|
if (!this.current.pageHidden) {
|
|
@@ -200,10 +139,6 @@ let TaWebExtensionsImpl = class TaWebExtensionsImpl {
|
|
|
200
139
|
kinds: () => this.listedKinds(),
|
|
201
140
|
});
|
|
202
141
|
}
|
|
203
|
-
/** The kinds the pages of the extensions there are list (TaWebExtensionInfo.lists), started or not. */
|
|
204
|
-
listedKinds() {
|
|
205
|
-
return WebPagesUtil.listedKinds([...this.current.onOpen.map(entry => entry.info), ...[...this.running.values()].map(run => run.loaded.info)]);
|
|
206
|
-
}
|
|
207
142
|
stopExtension(name) {
|
|
208
143
|
const info = this.onDemand.find(name);
|
|
209
144
|
if (info && this.running.has(info.id)) {
|
|
@@ -232,32 +167,6 @@ let TaWebExtensionsImpl = class TaWebExtensionsImpl {
|
|
|
232
167
|
this.update({ customs: this.current.customs.filter(entry => entry.id !== id) });
|
|
233
168
|
}
|
|
234
169
|
}
|
|
235
|
-
/** Loads and starts an extension started on open, as reconcile starts the others. */
|
|
236
|
-
async launch(info) {
|
|
237
|
-
var _a;
|
|
238
|
-
const load = await this.loadPackage(info);
|
|
239
|
-
// Gone or changed meanwhile: the next refresh has it.
|
|
240
|
-
if (((_a = this.onDemand.get(info.id)) === null || _a === void 0 ? void 0 : _a.hash) === info.hash && !this.running.has(info.id)) {
|
|
241
|
-
this.startPackage(info, load);
|
|
242
|
-
this.publish();
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
/** Stops one started on open: it is still listed, to start again; its page, if shown, gives way to the conversation. */
|
|
246
|
-
stopOnDemand(id) {
|
|
247
|
-
const run = this.running.get(id);
|
|
248
|
-
if (!run) {
|
|
249
|
-
return;
|
|
250
|
-
}
|
|
251
|
-
const shown = this.current.views.some(view => view.extension === id && view.id === this.current.page);
|
|
252
|
-
this.stop(run);
|
|
253
|
-
this.running.delete(id);
|
|
254
|
-
this.onDemand.stopped(id);
|
|
255
|
-
if (shown) {
|
|
256
|
-
this.persisted.set(WebViewUtil.PAGE, '');
|
|
257
|
-
this.current = { ...this.current, page: '' };
|
|
258
|
-
}
|
|
259
|
-
this.publish();
|
|
260
|
-
}
|
|
261
170
|
isShown(id) {
|
|
262
171
|
return this.current.page === id || this.current.activeEditor === WebViewUtil.editorId(id);
|
|
263
172
|
}
|
|
@@ -303,151 +212,6 @@ let TaWebExtensionsImpl = class TaWebExtensionsImpl {
|
|
|
303
212
|
}
|
|
304
213
|
}
|
|
305
214
|
}
|
|
306
|
-
async reconcile() {
|
|
307
|
-
const off = new Set(this.settings.state.settings.builtinsOff);
|
|
308
|
-
const builtins = this.builtins.filter(builtin => !off.has(builtin.name));
|
|
309
|
-
const builtinIds = new Set(builtins.map(builtin => WebExtensionUtil.builtinId(builtin.name)));
|
|
310
|
-
// The built-ins first: they need nothing of the server, and show before it answers.
|
|
311
|
-
let changed = this.stopUnless(run => !!run.loaded.info || builtinIds.has(run.loaded.id));
|
|
312
|
-
for (const builtin of builtins) {
|
|
313
|
-
const id = WebExtensionUtil.builtinId(builtin.name);
|
|
314
|
-
if (!this.running.has(id)) {
|
|
315
|
-
this.start({ id, name: builtin.name }, builtin.activate);
|
|
316
|
-
changed = true;
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
if (changed) {
|
|
320
|
-
this.publish();
|
|
321
|
-
}
|
|
322
|
-
const host = this.workbench.state.host;
|
|
323
|
-
const listing = this.workbench.packages.listWebExtensions();
|
|
324
|
-
// Answered below; until then those of the last time start.
|
|
325
|
-
listing.catch(() => undefined);
|
|
326
|
-
changed = (await this.startKept(host)) || changed;
|
|
327
|
-
const listed = await listing;
|
|
328
|
-
if (host) {
|
|
329
|
-
this.code.keepList(host, listed);
|
|
330
|
-
}
|
|
331
|
-
// A built-in package turned off stays in the list, for its switch in the settings.
|
|
332
|
-
const infos = listed.filter(info => info.enabled !== false);
|
|
333
|
-
const fresh = new Map(infos.map(info => [info.id, info]));
|
|
334
|
-
this.code.keepOnly(infos.map(info => info.hash));
|
|
335
|
-
// Those started on open wait to be opened (ta-launcher.md).
|
|
336
|
-
this.onDemand.set(infos.filter(info => info.activation === 'open'));
|
|
337
|
-
// Fetched together, started in the order of the list: the order of their views stays the same.
|
|
338
|
-
const starting = infos.filter(info => { var _a; return ((_a = this.running.get(info.id)) === null || _a === void 0 ? void 0 : _a.hash) !== info.hash && info.activation !== 'open'; });
|
|
339
|
-
const loads = await Promise.all(starting.map(info => this.loadPackage(info)));
|
|
340
|
-
// Stopped only now, just before the new code starts: the views of the old one stay drawn until the next
|
|
341
|
-
// publish, and stopped while the new code is read (after an update, over the relay) they would show
|
|
342
|
-
// without the styles it took away.
|
|
343
|
-
const stopped = this.stopUnless(run => {
|
|
344
|
-
if (!run.loaded.info) {
|
|
345
|
-
return true;
|
|
346
|
-
}
|
|
347
|
-
const info = fresh.get(run.loaded.id);
|
|
348
|
-
if (info && info.hash === run.hash) {
|
|
349
|
-
// Started from the list of the last time: what else it says is of now.
|
|
350
|
-
run.loaded = { ...run.loaded, info };
|
|
351
|
-
return true;
|
|
352
|
-
}
|
|
353
|
-
this.onDemand.stopped(run.loaded.id);
|
|
354
|
-
return false;
|
|
355
|
-
});
|
|
356
|
-
for (const [index, info] of starting.entries()) {
|
|
357
|
-
this.startPackage(info, loads[index]);
|
|
358
|
-
}
|
|
359
|
-
this.placeholders = undefined;
|
|
360
|
-
// The list of those started on open may have changed too.
|
|
361
|
-
this.publish();
|
|
362
|
-
changed = changed || stopped || starting.length > 0;
|
|
363
|
-
await this.tabs.restore();
|
|
364
|
-
return changed;
|
|
365
|
-
}
|
|
366
|
-
/**
|
|
367
|
-
* The first time, before the computer has answered: the extensions of its list of the last time whose code
|
|
368
|
-
* this browser keeps. What they read goes with the first calls of the page, not a round trip after the list
|
|
369
|
-
* (a phone over the relay waited for it before its double's list could show). The list then keeps those
|
|
370
|
-
* still the same and stops the others.
|
|
371
|
-
*/
|
|
372
|
-
async startKept(host) {
|
|
373
|
-
if (this.keptStarted || !host) {
|
|
374
|
-
return false;
|
|
375
|
-
}
|
|
376
|
-
this.keptStarted = true;
|
|
377
|
-
const infos = this.code.list(host).filter(info => info.enabled !== false && info.activation !== 'open' && !this.running.has(info.id));
|
|
378
|
-
const loads = await Promise.all(infos.map(info => {
|
|
379
|
-
const code = this.code.get(info.hash);
|
|
380
|
-
return code === undefined ? undefined : WebExtensionUtil.load(code).catch(() => undefined);
|
|
381
|
-
}));
|
|
382
|
-
let started = false;
|
|
383
|
-
for (const [index, info] of infos.entries()) {
|
|
384
|
-
const factory = loads[index];
|
|
385
|
-
if (factory && !this.running.has(info.id)) {
|
|
386
|
-
this.start({ id: info.id, name: info.name, info }, factory, info.hash);
|
|
387
|
-
started = true;
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
if (started) {
|
|
391
|
-
this.publish();
|
|
392
|
-
}
|
|
393
|
-
return started;
|
|
394
|
-
}
|
|
395
|
-
/** Stops and forgets the extensions running that `keep` does not keep; whether there were any. */
|
|
396
|
-
stopUnless(keep) {
|
|
397
|
-
let stopped = false;
|
|
398
|
-
for (const [id, run] of this.running) {
|
|
399
|
-
if (!keep(run)) {
|
|
400
|
-
this.stop(run);
|
|
401
|
-
this.running.delete(id);
|
|
402
|
-
stopped = true;
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
return stopped;
|
|
406
|
-
}
|
|
407
|
-
async loadPackage(info) {
|
|
408
|
-
try {
|
|
409
|
-
const kept = this.code.get(info.hash);
|
|
410
|
-
if (kept !== undefined) {
|
|
411
|
-
return { factory: await WebExtensionUtil.load(kept), hash: info.hash };
|
|
412
|
-
}
|
|
413
|
-
const { code, hash } = await this.workbench.packages.readWebExtension(info.id);
|
|
414
|
-
this.code.set(hash, code);
|
|
415
|
-
return { factory: await WebExtensionUtil.load(code), hash };
|
|
416
|
-
}
|
|
417
|
-
catch (error) {
|
|
418
|
-
return { error: WebExtensionUtil.message(error) };
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
startPackage(info, load) {
|
|
422
|
-
const loaded = { id: info.id, name: info.name, info };
|
|
423
|
-
if ('error' in load) {
|
|
424
|
-
this.running.set(info.id, WebExtensionRunUtil.create({ ...loaded, error: load.error }, info.hash));
|
|
425
|
-
}
|
|
426
|
-
else {
|
|
427
|
-
this.start(loaded, load.factory, load.hash);
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
start(loaded, factory, hash) {
|
|
431
|
-
const run = WebExtensionRunUtil.create(loaded, hash);
|
|
432
|
-
this.running.set(loaded.id, run);
|
|
433
|
-
try {
|
|
434
|
-
const dispose = factory(this.context.create(run));
|
|
435
|
-
run.dispose = typeof dispose === 'function' ? dispose : undefined;
|
|
436
|
-
run.started = true;
|
|
437
|
-
}
|
|
438
|
-
catch (error) {
|
|
439
|
-
this.stop(run);
|
|
440
|
-
run.loaded = { ...loaded, error: WebExtensionUtil.message(error) };
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
stop(run) {
|
|
444
|
-
run.stopped = true;
|
|
445
|
-
if (run.dispose) {
|
|
446
|
-
this.guard(run, run.dispose);
|
|
447
|
-
}
|
|
448
|
-
WebExtensionRunUtil.clear(run);
|
|
449
|
-
this.tabs.remove(editor => editor.extension === run.loaded.id);
|
|
450
|
-
}
|
|
451
215
|
open(editor, preserveFocus = false) {
|
|
452
216
|
this.tabs.open(editor, preserveFocus);
|
|
453
217
|
}
|
|
@@ -478,83 +242,10 @@ let TaWebExtensionsImpl = class TaWebExtensionsImpl {
|
|
|
478
242
|
switcher: () => this.switcher,
|
|
479
243
|
sessionNotices: this.sessionNotices,
|
|
480
244
|
persisted: this.persisted,
|
|
245
|
+
screen: this.screen,
|
|
481
246
|
};
|
|
482
247
|
}
|
|
483
|
-
guard(run, action) {
|
|
484
|
-
try {
|
|
485
|
-
action();
|
|
486
|
-
}
|
|
487
|
-
catch (error) {
|
|
488
|
-
console.error(`The web extension ${run.loaded.name} failed:`, error);
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
publish() {
|
|
492
|
-
const runs = [...this.running.values()];
|
|
493
|
-
this.tasks.setSources(runs.flatMap(run => run.taskSources.map(source => ({ extension: run.loaded.name, source }))));
|
|
494
|
-
this.home.setSources(runs.flatMap(run => run.homeSources.map(source => ({ extension: run.loaded.name, source }))));
|
|
495
|
-
const { views, ...registered } = WebExtensionRunUtil.collect(runs, id => this.onDemand.has(id));
|
|
496
|
-
if (this.placeholders) {
|
|
497
|
-
views.push(...this.placeholders.filter(placeholder => !views.some(view => view.id === placeholder.id)));
|
|
498
|
-
}
|
|
499
|
-
else {
|
|
500
|
-
const kinds = this.listedKinds();
|
|
501
|
-
// Those of a kind a page lists never take a place of the navigation: none to keep for its first frame.
|
|
502
|
-
this.persisted.set(WebViewUtil.KEPT, WebViewUtil.keep(views.filter(view => { var _a; return !WebPagesUtil.listed((_a = this.running.get(view.extension)) === null || _a === void 0 ? void 0 : _a.loaded.info, kinds); })));
|
|
503
|
-
}
|
|
504
|
-
this.update({
|
|
505
|
-
...registered,
|
|
506
|
-
views: views.sort((a, b) => a.order - b.order),
|
|
507
|
-
onOpen: this.onDemand.list(),
|
|
508
|
-
kept: this.onDemand.kept(),
|
|
509
|
-
usage: this.onDemand.used,
|
|
510
|
-
});
|
|
511
|
-
}
|
|
512
|
-
update(change) {
|
|
513
|
-
this.current = { ...this.current, ...change };
|
|
514
|
-
for (const listener of this.listeners) {
|
|
515
|
-
listener(this.current);
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
248
|
};
|
|
519
|
-
__decorate([
|
|
520
|
-
Autowired(TaWorkbench),
|
|
521
|
-
__metadata("design:type", Object)
|
|
522
|
-
], TaWebExtensionsImpl.prototype, "workbench", void 0);
|
|
523
|
-
__decorate([
|
|
524
|
-
Autowired(TaSettings),
|
|
525
|
-
__metadata("design:type", Object)
|
|
526
|
-
], TaWebExtensionsImpl.prototype, "settings", void 0);
|
|
527
|
-
__decorate([
|
|
528
|
-
Autowired(TaFiles),
|
|
529
|
-
__metadata("design:type", Object)
|
|
530
|
-
], TaWebExtensionsImpl.prototype, "taFiles", void 0);
|
|
531
|
-
__decorate([
|
|
532
|
-
Autowired({ id: TaLinks, detached: true }),
|
|
533
|
-
__metadata("design:type", Object)
|
|
534
|
-
], TaWebExtensionsImpl.prototype, "links", void 0);
|
|
535
|
-
__decorate([
|
|
536
|
-
Autowired(TaNotices),
|
|
537
|
-
__metadata("design:type", Object)
|
|
538
|
-
], TaWebExtensionsImpl.prototype, "notices", void 0);
|
|
539
|
-
__decorate([
|
|
540
|
-
Autowired(TaState),
|
|
541
|
-
__metadata("design:type", Object)
|
|
542
|
-
], TaWebExtensionsImpl.prototype, "persisted", void 0);
|
|
543
|
-
__decorate([
|
|
544
|
-
Autowired(TaSessionNotices),
|
|
545
|
-
__metadata("design:type", Object)
|
|
546
|
-
], TaWebExtensionsImpl.prototype, "sessionNotices", void 0);
|
|
547
|
-
__decorate([
|
|
548
|
-
Autowired(BuiltinWebExtension),
|
|
549
|
-
Optional(),
|
|
550
|
-
__metadata("design:type", Array)
|
|
551
|
-
], TaWebExtensionsImpl.prototype, "builtins", void 0);
|
|
552
|
-
__decorate([
|
|
553
|
-
PostConstruct(),
|
|
554
|
-
__metadata("design:type", Function),
|
|
555
|
-
__metadata("design:paramtypes", []),
|
|
556
|
-
__metadata("design:returntype", void 0)
|
|
557
|
-
], TaWebExtensionsImpl.prototype, "init", null);
|
|
558
249
|
TaWebExtensionsImpl = __decorate([
|
|
559
250
|
Component(TaWebExtensions)
|
|
560
251
|
], TaWebExtensionsImpl);
|
|
@@ -10,6 +10,7 @@ export var WebPagesUtil;
|
|
|
10
10
|
WebPagesUtil.USED = {
|
|
11
11
|
key: 'pages.used',
|
|
12
12
|
tier: 'user',
|
|
13
|
+
passive: true,
|
|
13
14
|
initial: {},
|
|
14
15
|
parse: value => value && typeof value === 'object' && !Array.isArray(value)
|
|
15
16
|
? Object.fromEntries(Object.entries(value).filter((entry) => typeof entry[1] === 'number'))
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { Autowired, Component } from '@celljs/core';
|
|
11
11
|
import { TaAssistant } from '../assistant/assistant-protocol.js';
|
|
12
|
-
import { ChatListUtil } from '../components/chat-list.js';
|
|
12
|
+
import { ChatListUtil } from '../components/chat-list-util.js';
|
|
13
13
|
import { DOUBLE_PAGE } from '../components/side-lists.js';
|
|
14
14
|
import { Device } from '../device/device.js';
|
|
15
15
|
import { translator } from '../i18n/use-t.js';
|
|
@@ -22,6 +22,11 @@ import { TaWebExtensions } from './web-extension-protocol.js';
|
|
|
22
22
|
/** The notices of conversations of the page, on what it shows. */
|
|
23
23
|
let WebSessionNotices = class WebSessionNotices {
|
|
24
24
|
notify(notice) {
|
|
25
|
+
var _a;
|
|
26
|
+
// Ta's own screen tells the user nothing: their own page does.
|
|
27
|
+
if ((_a = this.workbench.pages) === null || _a === void 0 ? void 0 : _a.agent) {
|
|
28
|
+
return 'none';
|
|
29
|
+
}
|
|
25
30
|
return this.sessionNotices().notify(notice);
|
|
26
31
|
}
|
|
27
32
|
sessionNotices() {
|
|
@@ -15,6 +15,8 @@ export interface WebTaskGroups {
|
|
|
15
15
|
}
|
|
16
16
|
export declare namespace WebTaskUtil {
|
|
17
17
|
function key(extension: string, id: string): string;
|
|
18
|
+
/** How many a gathered row stands for (WebTask.gathered); 1 for a task. */
|
|
19
|
+
function size(task: Pick<WebTask, 'gathered'>): number;
|
|
18
20
|
function ended(task: Pick<WebTask, 'status'>): boolean;
|
|
19
21
|
/** Each group the latest first: by when it started while it goes on, by when it ended after. */
|
|
20
22
|
function groups(tasks: readonly WebTaskEntry[]): WebTaskGroups;
|
|
@@ -4,6 +4,12 @@ export var WebTaskUtil;
|
|
|
4
4
|
return `${extension}/${id}`;
|
|
5
5
|
}
|
|
6
6
|
WebTaskUtil.key = key;
|
|
7
|
+
/** How many a gathered row stands for (WebTask.gathered); 1 for a task. */
|
|
8
|
+
function size(task) {
|
|
9
|
+
const { gathered } = task;
|
|
10
|
+
return gathered ? gathered.waiting + gathered.running + gathered.fresh : 1;
|
|
11
|
+
}
|
|
12
|
+
WebTaskUtil.size = size;
|
|
7
13
|
function ended(task) {
|
|
8
14
|
return task.status !== 'running' && task.status !== 'waiting';
|
|
9
15
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type StateSpec } from '../state/state-protocol.js';
|
|
2
|
-
import type { WebExtensionFactory } from './web-extension-api.js';
|
|
2
|
+
import type { WebExtensionFactory, WebPageGroup } from './web-extension-api.js';
|
|
3
3
|
import { type WebViewEntry, type WorkbenchTabs } from './web-extension-protocol.js';
|
|
4
4
|
export declare namespace WebExtensionUtil {
|
|
5
5
|
function builtinId(name: string): string;
|
|
@@ -26,6 +26,7 @@ export declare namespace WebViewUtil {
|
|
|
26
26
|
order: number;
|
|
27
27
|
pages?: string[];
|
|
28
28
|
discover?: boolean;
|
|
29
|
+
group?: WebPageGroup;
|
|
29
30
|
/** It draws its own top bar: its place shows one on its way, not the title. */
|
|
30
31
|
head?: boolean;
|
|
31
32
|
}
|
|
@@ -42,6 +42,7 @@ export var WebViewUtil;
|
|
|
42
42
|
WebViewUtil.TABS = {
|
|
43
43
|
key: 'workbench',
|
|
44
44
|
tier: 'user',
|
|
45
|
+
passive: true,
|
|
45
46
|
initial: { views: [] },
|
|
46
47
|
parse: value => {
|
|
47
48
|
const kept = value;
|
|
@@ -59,6 +60,7 @@ export var WebViewUtil;
|
|
|
59
60
|
WebViewUtil.KEPT = {
|
|
60
61
|
key: 'views',
|
|
61
62
|
tier: 'user',
|
|
63
|
+
passive: true,
|
|
62
64
|
initial: [],
|
|
63
65
|
parse: value => (Array.isArray(value) ? value.filter(isKept) : undefined),
|
|
64
66
|
};
|
|
@@ -72,7 +74,7 @@ export var WebViewUtil;
|
|
|
72
74
|
typeof view.order === 'number');
|
|
73
75
|
}
|
|
74
76
|
function keep(views) {
|
|
75
|
-
return views.flatMap(({ id, extension, title, icon, location, order, pages, discover, head, onOpen }) => (location !== 'page' && location !== 'sidebar') || onOpen
|
|
77
|
+
return views.flatMap(({ id, extension, title, icon, location, order, pages, discover, group, head, onOpen, navigation }) => (location !== 'page' && location !== 'sidebar') || onOpen || navigation === false
|
|
76
78
|
? []
|
|
77
79
|
: [
|
|
78
80
|
{
|
|
@@ -84,6 +86,7 @@ export var WebViewUtil;
|
|
|
84
86
|
order,
|
|
85
87
|
pages,
|
|
86
88
|
discover,
|
|
89
|
+
...(group ? { group } : {}),
|
|
87
90
|
...(head ? { head: true } : {}),
|
|
88
91
|
},
|
|
89
92
|
]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TaGatewayLimits,
|
|
1
|
+
import type { TaGatewayLimits, TaQuotaState } from '@celljs/ta-protocol';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
/** How often what the console shows is read again while it is seen. */
|
|
4
4
|
export declare const REFRESH_MS = 10000;
|
|
@@ -32,19 +32,9 @@ export declare function Stat({ value, label, tone, onClick, title, }: {
|
|
|
32
32
|
onClick?(): void;
|
|
33
33
|
title?: string;
|
|
34
34
|
}): React.JSX.Element;
|
|
35
|
-
/** This month's minutes and tokens of an account, as bars; the limits of messages and pages in a line. */
|
|
36
35
|
export declare function QuotaMeters({ quota }: {
|
|
37
36
|
quota: TaQuotaState;
|
|
38
37
|
}): React.JSX.Element;
|
|
39
|
-
/**
|
|
40
|
-
* What agents took over time, of the gateway or of one account: tokens or dollars by hour (a day) or by day (a week,
|
|
41
|
-
* a month), the totals, and the models and accounts that took most.
|
|
42
|
-
*/
|
|
43
|
-
export declare function TrendCard({ tenantId, tenants, onTenant }: {
|
|
44
|
-
tenantId?: string;
|
|
45
|
-
tenants?: TaGatewayTenant[];
|
|
46
|
-
onTenant?(id: string): void;
|
|
47
|
-
}): React.JSX.Element;
|
|
48
38
|
/**
|
|
49
39
|
* Limits to change: the gateway's defaults (`nullable` false: a limit is a number or none), or an account's over them
|
|
50
40
|
* (each the default's, none, or its own). Saved as a whole.
|