@celljs/ta-web 4.15.2 → 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.
Files changed (601) hide show
  1. package/README.en.md +1 -1
  2. package/README.md +1 -1
  3. package/esm/browser/assistant/assistant-ask-book.d.ts +35 -0
  4. package/esm/browser/assistant/assistant-ask-book.js +96 -0
  5. package/esm/browser/assistant/assistant-conversation.d.ts +110 -0
  6. package/esm/browser/assistant/assistant-conversation.js +351 -0
  7. package/esm/browser/assistant/assistant-export.js +6 -7
  8. package/esm/browser/assistant/assistant-extension.d.ts +3 -2
  9. package/esm/browser/assistant/assistant-extension.js +57 -4
  10. package/esm/browser/assistant/assistant-protocol.d.ts +17 -2
  11. package/esm/browser/assistant/assistant-role.d.ts +22 -4
  12. package/esm/browser/assistant/assistant-role.js +29 -7
  13. package/esm/browser/assistant/assistant-state.d.ts +5 -1
  14. package/esm/browser/assistant/assistant-state.js +11 -0
  15. package/esm/browser/assistant/assistant-task-source.js +7 -1
  16. package/esm/browser/assistant/assistant-task-util.d.ts +19 -7
  17. package/esm/browser/assistant/assistant-task-util.js +73 -20
  18. package/esm/browser/assistant/assistant-tasks.d.ts +0 -7
  19. package/esm/browser/assistant/assistant-tasks.js +0 -2
  20. package/esm/browser/assistant/assistant-thread.d.ts +22 -0
  21. package/esm/browser/assistant/assistant-thread.js +108 -0
  22. package/esm/browser/assistant/assistant-view.js +77 -126
  23. package/esm/browser/assistant/assistant.d.ts +33 -105
  24. package/esm/browser/assistant/assistant.js +103 -356
  25. package/esm/browser/assistant/chat-task-source.d.ts +58 -0
  26. package/esm/browser/assistant/chat-task-source.js +107 -0
  27. package/esm/browser/assistant/read-aloud.d.ts +34 -0
  28. package/esm/browser/assistant/read-aloud.js +98 -0
  29. package/esm/browser/assistant/realtime-voice.d.ts +77 -0
  30. package/esm/browser/assistant/realtime-voice.js +320 -0
  31. package/esm/browser/assistant/task-views.d.ts +2 -3
  32. package/esm/browser/assistant/task-views.js +20 -16
  33. package/esm/browser/assistant/voice-call-bar.d.ts +60 -0
  34. package/esm/browser/assistant/voice-call-bar.js +260 -0
  35. package/esm/browser/assistant/voice-call.d.ts +175 -0
  36. package/esm/browser/assistant/voice-call.js +366 -0
  37. package/esm/browser/chat/chat-shown.d.ts +78 -0
  38. package/esm/browser/chat/chat-shown.js +262 -0
  39. package/esm/browser/chat/chat-view.js +2 -1
  40. package/esm/browser/chat/chat.d.ts +4 -68
  41. package/esm/browser/chat/chat.js +5 -253
  42. package/esm/browser/chat/draft-model.d.ts +1 -1
  43. package/esm/browser/components/access-view.js +1 -1
  44. package/esm/browser/components/account-menu.js +1 -1
  45. package/esm/browser/components/app-nav.d.ts +3 -1
  46. package/esm/browser/components/app-nav.js +7 -7
  47. package/esm/browser/components/app-shell-hooks.d.ts +11 -2
  48. package/esm/browser/components/app-shell-hooks.js +25 -4
  49. package/esm/browser/components/app-shell-state.d.ts +80 -0
  50. package/esm/browser/components/app-shell-state.js +466 -0
  51. package/esm/browser/components/app-view.js +128 -334
  52. package/esm/browser/components/asks-badge.d.ts +6 -2
  53. package/esm/browser/components/asks-badge.js +7 -3
  54. package/esm/browser/components/auth-pictures.d.ts +2 -2
  55. package/esm/browser/components/auth-pictures.js +13 -1
  56. package/esm/browser/components/auth-view.d.ts +4 -3
  57. package/esm/browser/components/auth-view.js +54 -5
  58. package/esm/browser/components/chat-asks.d.ts +2 -0
  59. package/esm/browser/components/chat-asks.js +8 -0
  60. package/esm/browser/components/chat-busy.d.ts +32 -0
  61. package/esm/browser/components/chat-busy.js +49 -0
  62. package/esm/browser/components/chat-icon.d.ts +6 -0
  63. package/esm/browser/components/chat-icon.js +17 -1
  64. package/esm/browser/components/chat-list-row.d.ts +84 -0
  65. package/esm/browser/components/chat-list-row.js +198 -0
  66. package/esm/browser/components/chat-list-util.d.ts +166 -0
  67. package/esm/browser/components/chat-list-util.js +335 -0
  68. package/esm/browser/components/chat-list.d.ts +11 -148
  69. package/esm/browser/components/chat-list.js +280 -511
  70. package/esm/browser/components/chat-seen.d.ts +7 -0
  71. package/esm/browser/components/chat-seen.js +58 -10
  72. package/esm/browser/components/composer-addon-util.d.ts +1 -1
  73. package/esm/browser/components/composer-addons.d.ts +1 -1
  74. package/esm/browser/components/composer-attachments.d.ts +11 -0
  75. package/esm/browser/components/composer-attachments.js +27 -0
  76. package/esm/browser/components/composer-box-hooks.d.ts +9 -0
  77. package/esm/browser/components/composer-box-hooks.js +138 -0
  78. package/esm/browser/components/composer-box-protocol.d.ts +108 -0
  79. package/esm/browser/components/composer-box-protocol.js +2 -0
  80. package/esm/browser/components/composer-box.d.ts +1 -95
  81. package/esm/browser/components/composer-box.js +49 -156
  82. package/esm/browser/components/composer-target.d.ts +21 -0
  83. package/esm/browser/components/composer-target.js +43 -0
  84. package/esm/browser/components/composer.d.ts +7 -1
  85. package/esm/browser/components/composer.js +13 -9
  86. package/esm/browser/components/context-menu.js +4 -0
  87. package/esm/browser/components/conversation-find.d.ts +27 -0
  88. package/esm/browser/components/conversation-find.js +151 -0
  89. package/esm/browser/components/conversation-scroll-hooks.js +2 -1
  90. package/esm/browser/components/conversation-scroll-util.d.ts +73 -0
  91. package/esm/browser/components/conversation-scroll-util.js +80 -0
  92. package/esm/browser/components/conversation-scroll.d.ts +1 -35
  93. package/esm/browser/components/conversation-scroll.js +2 -81
  94. package/esm/browser/components/conversation-view.d.ts +8 -0
  95. package/esm/browser/components/conversation-view.js +41 -0
  96. package/esm/browser/components/discover-view.d.ts +3 -2
  97. package/esm/browser/components/discover-view.js +31 -26
  98. package/esm/browser/components/dismiss.js +2 -0
  99. package/esm/browser/components/earlier-messages.d.ts +2 -0
  100. package/esm/browser/components/earlier-messages.js +2 -1
  101. package/esm/browser/components/environment-view.js +50 -1
  102. package/esm/browser/components/folder-picker.d.ts +7 -0
  103. package/esm/browser/components/folder-picker.js +90 -20
  104. package/esm/browser/components/gallery.d.ts +1 -1
  105. package/esm/browser/components/gallery.js +57 -14
  106. package/esm/browser/components/host-tag.js +2 -2
  107. package/esm/browser/components/host-view.d.ts +1 -1
  108. package/esm/browser/components/host-view.js +3 -1
  109. package/esm/browser/components/image-menu.d.ts +11 -0
  110. package/esm/browser/components/image-menu.js +29 -0
  111. package/esm/browser/components/image-viewer.d.ts +3 -2
  112. package/esm/browser/components/image-viewer.js +29 -4
  113. package/esm/browser/components/lightbox.js +2 -0
  114. package/esm/browser/components/link-dialog.js +2 -0
  115. package/esm/browser/components/list-rows.d.ts +3 -1
  116. package/esm/browser/components/list-rows.js +2 -1
  117. package/esm/browser/components/markdown.js +5 -0
  118. package/esm/browser/components/media.d.ts +2 -0
  119. package/esm/browser/components/media.js +16 -1
  120. package/esm/browser/components/message-actions.d.ts +1 -1
  121. package/esm/browser/components/message-actions.js +9 -0
  122. package/esm/browser/components/message-footer.d.ts +3 -1
  123. package/esm/browser/components/message-footer.js +3 -2
  124. package/esm/browser/components/message-images.d.ts +41 -0
  125. package/esm/browser/components/message-images.js +120 -0
  126. package/esm/browser/components/message-list.d.ts +4 -100
  127. package/esm/browser/components/message-list.js +10 -447
  128. package/esm/browser/components/message-menu.js +4 -0
  129. package/esm/browser/components/message-steps.d.ts +21 -0
  130. package/esm/browser/components/message-steps.js +182 -0
  131. package/esm/browser/components/message-user.d.ts +54 -0
  132. package/esm/browser/components/message-user.js +169 -0
  133. package/esm/browser/components/model-picker.d.ts +1 -1
  134. package/esm/browser/components/model-picker.js +2 -0
  135. package/esm/browser/components/moved-notice.d.ts +14 -0
  136. package/esm/browser/components/moved-notice.js +60 -0
  137. package/esm/browser/components/nav-places.d.ts +12 -1
  138. package/esm/browser/components/nav-places.js +10 -2
  139. package/esm/browser/components/notice-center.js +36 -1
  140. package/esm/browser/components/notice-face.js +2 -1
  141. package/esm/browser/components/phone-shell.d.ts +4 -3
  142. package/esm/browser/components/phone-shell.js +60 -68
  143. package/esm/browser/components/plus-menu.d.ts +1 -1
  144. package/esm/browser/components/relay-services.d.ts +6 -1
  145. package/esm/browser/components/relay-services.js +109 -2
  146. package/esm/browser/components/relay-view.js +2 -0
  147. package/esm/browser/components/remote-hosts.d.ts +10 -0
  148. package/esm/browser/components/remote-hosts.js +67 -5
  149. package/esm/browser/components/remote-prompts.js +2 -0
  150. package/esm/browser/components/scan-screen.js +7 -0
  151. package/esm/browser/components/screen-navigator-util.d.ts +28 -0
  152. package/esm/browser/components/screen-navigator-util.js +33 -0
  153. package/esm/browser/components/screen-navigator.d.ts +30 -0
  154. package/esm/browser/components/screen-navigator.js +47 -0
  155. package/esm/browser/components/session-settings.d.ts +1 -1
  156. package/esm/browser/components/session-view.js +157 -7
  157. package/esm/browser/components/settings-choices.d.ts +6 -0
  158. package/esm/browser/components/settings-choices.js +8 -0
  159. package/esm/browser/components/settings-more.d.ts +7 -0
  160. package/esm/browser/components/settings-more.js +263 -0
  161. package/esm/browser/components/settings-parts.d.ts +8 -3
  162. package/esm/browser/components/settings-parts.js +31 -249
  163. package/esm/browser/components/settings-view.js +43 -15
  164. package/esm/browser/components/stop-times.js +1 -0
  165. package/esm/browser/components/surface-flyout.js +2 -0
  166. package/esm/browser/components/unseen-drop.d.ts +10 -4
  167. package/esm/browser/components/unseen-drop.js +9 -8
  168. package/esm/browser/components/use-seen-chats.js +1 -1
  169. package/esm/browser/components/voice-services.d.ts +6 -0
  170. package/esm/browser/components/voice-services.js +137 -0
  171. package/esm/browser/components/voice-talk.d.ts +23 -6
  172. package/esm/browser/components/voice-talk.js +46 -11
  173. package/esm/browser/components/web-composer.d.ts +1 -1
  174. package/esm/browser/components/web-composer.js +2 -2
  175. package/esm/browser/components/web-dialog.js +2 -0
  176. package/esm/browser/device/back-stack.d.ts +89 -11
  177. package/esm/browser/device/back-stack.js +200 -29
  178. package/esm/browser/device/device-protocol.d.ts +1 -1
  179. package/esm/browser/device/device-protocol.js +1 -1
  180. package/esm/browser/device/own-gestures.d.ts +1 -1
  181. package/esm/browser/device/pull-down.js +3 -1
  182. package/esm/browser/device/row-swipe.js +3 -1
  183. package/esm/browser/device/sheet-swipe.d.ts +1 -179
  184. package/esm/browser/device/sheet-swipe.js +3 -433
  185. package/esm/browser/device/swipe-finger.d.ts +31 -0
  186. package/esm/browser/device/swipe-finger.js +83 -0
  187. package/esm/browser/device/swipe-settle.d.ts +52 -0
  188. package/esm/browser/device/swipe-settle.js +170 -0
  189. package/esm/browser/device/swipe-util.d.ts +97 -0
  190. package/esm/browser/device/swipe-util.js +183 -0
  191. package/esm/browser/drafts/drafts-protocol.d.ts +58 -0
  192. package/esm/browser/drafts/drafts-protocol.js +75 -0
  193. package/esm/browser/drafts/drafts.d.ts +21 -0
  194. package/esm/browser/drafts/drafts.js +91 -0
  195. package/esm/browser/drafts/use-composer-draft.d.ts +20 -0
  196. package/esm/browser/drafts/use-composer-draft.js +108 -0
  197. package/esm/browser/extension/icons.js +25 -4
  198. package/esm/browser/extension/web-api-components.d.ts +13 -0
  199. package/esm/browser/extension/web-api-contributions.d.ts +125 -0
  200. package/esm/browser/extension/web-extension-api.d.ts +88 -5
  201. package/esm/browser/extension/web-extension-context.d.ts +5 -0
  202. package/esm/browser/extension/web-extension-context.js +60 -7
  203. package/esm/browser/extension/web-extension-protocol.d.ts +19 -1
  204. package/esm/browser/extension/web-extension-protocol.js +3 -0
  205. package/esm/browser/extension/web-extension-run.d.ts +5 -2
  206. package/esm/browser/extension/web-extension-run.js +13 -1
  207. package/esm/browser/extension/web-extensions-running.d.ts +93 -0
  208. package/esm/browser/extension/web-extensions-running.js +339 -0
  209. package/esm/browser/extension/web-extensions.d.ts +6 -82
  210. package/esm/browser/extension/web-extensions.js +10 -319
  211. package/esm/browser/extension/web-pages.js +1 -0
  212. package/esm/browser/extension/web-session-notices.js +6 -1
  213. package/esm/browser/extension/web-tasks.d.ts +2 -0
  214. package/esm/browser/extension/web-tasks.js +6 -0
  215. package/esm/browser/extension/web-view-util.d.ts +2 -1
  216. package/esm/browser/extension/web-view-util.js +4 -1
  217. package/esm/browser/gateway/console-parts.d.ts +4 -12
  218. package/esm/browser/gateway/console-parts.js +42 -125
  219. package/esm/browser/gateway/console-tenant.js +3 -2
  220. package/esm/browser/gateway/console-trend.d.ts +11 -0
  221. package/esm/browser/gateway/console-trend.js +115 -0
  222. package/esm/browser/gateway/console-util.js +2 -2
  223. package/esm/browser/gateway/console-view.js +49 -3
  224. package/esm/browser/i18n/locales.d.ts +170 -6
  225. package/esm/browser/i18n/messages-ja.js +171 -7
  226. package/esm/browser/i18n/messages-zh-tw.js +171 -7
  227. package/esm/browser/i18n/messages.d.ts +167 -3
  228. package/esm/browser/i18n/messages.js +342 -14
  229. package/esm/browser/index.d.ts +17 -0
  230. package/esm/browser/index.js +17 -0
  231. package/esm/browser/notices/notices-protocol.d.ts +12 -0
  232. package/esm/browser/notices/notices.js +7 -4
  233. package/esm/browser/offline/device-values.d.ts +2 -0
  234. package/esm/browser/offline/device-values.js +6 -1
  235. package/esm/browser/screen/page-answers.d.ts +42 -0
  236. package/esm/browser/screen/page-answers.js +89 -0
  237. package/esm/browser/screen/screen-protocol.d.ts +112 -0
  238. package/esm/browser/screen/screen-protocol.js +45 -0
  239. package/esm/browser/screen/screen.d.ts +20 -0
  240. package/esm/browser/screen/screen.js +122 -0
  241. package/esm/browser/screen/use-screen-part.d.ts +6 -0
  242. package/esm/browser/screen/use-screen-part.js +14 -0
  243. package/esm/browser/settings/settings-protocol.d.ts +5 -1
  244. package/esm/browser/settings/settings-protocol.js +6 -2
  245. package/esm/browser/share/shared-extensions.d.ts +29 -0
  246. package/esm/browser/share/shared-extensions.js +145 -0
  247. package/esm/browser/share/shared-link.d.ts +11 -0
  248. package/esm/browser/share/shared-link.js +38 -0
  249. package/esm/browser/share/shared-page.d.ts +5 -0
  250. package/esm/browser/share/shared-page.js +137 -0
  251. package/esm/browser/state/state-protocol.d.ts +14 -0
  252. package/esm/browser/state/state-protocol.js +18 -0
  253. package/esm/browser/state/state.d.ts +10 -2
  254. package/esm/browser/state/state.js +19 -3
  255. package/esm/browser/style/base.d.ts +1 -1
  256. package/esm/browser/style/base.js +4 -0
  257. package/esm/browser/style/chat-list.d.ts +2 -0
  258. package/esm/browser/style/chat-list.js +153 -0
  259. package/esm/browser/style/conversation-column.d.ts +2 -0
  260. package/esm/browser/style/conversation-column.js +250 -0
  261. package/esm/browser/style/conversation.d.ts +1 -1
  262. package/esm/browser/style/conversation.js +24 -8
  263. package/esm/browser/style/dialogs.d.ts +2 -0
  264. package/esm/browser/style/dialogs.js +163 -0
  265. package/esm/browser/style/layout.d.ts +2 -2
  266. package/esm/browser/style/layout.js +1 -525
  267. package/esm/browser/style/pages.d.ts +1 -1
  268. package/esm/browser/style/pages.js +10 -3
  269. package/esm/browser/style/phone.d.ts +1 -1
  270. package/esm/browser/style/phone.js +6 -2
  271. package/esm/browser/style/shared.d.ts +2 -0
  272. package/esm/browser/style/shared.js +23 -0
  273. package/esm/browser/style/shell.d.ts +1 -1
  274. package/esm/browser/style/shell.js +47 -0
  275. package/esm/browser/style/tasks.d.ts +1 -1
  276. package/esm/browser/style/tasks.js +13 -8
  277. package/esm/browser/style.js +8 -0
  278. package/esm/browser/util/gallery.d.ts +24 -2
  279. package/esm/browser/util/gallery.js +82 -2
  280. package/esm/browser/util/image-copy.d.ts +16 -0
  281. package/esm/browser/util/image-copy.js +57 -0
  282. package/esm/browser/util/message.d.ts +5 -0
  283. package/esm/browser/util/message.js +14 -0
  284. package/esm/browser/util/process.d.ts +6 -2
  285. package/esm/browser/util/process.js +6 -2
  286. package/esm/browser/util/spoken.d.ts +24 -0
  287. package/esm/browser/util/spoken.js +83 -0
  288. package/esm/browser/util/transcript.d.ts +22 -0
  289. package/esm/browser/util/transcript.js +46 -0
  290. package/esm/browser/util/voice.d.ts +5 -1
  291. package/esm/browser/util/voice.js +6 -1
  292. package/esm/browser/workbench-hosts.d.ts +36 -0
  293. package/esm/browser/workbench-hosts.js +120 -0
  294. package/esm/browser/workbench-lists.d.ts +33 -0
  295. package/esm/browser/workbench-lists.js +128 -0
  296. package/esm/browser/workbench-protocol.d.ts +14 -1
  297. package/esm/browser/workbench-services.d.ts +49 -0
  298. package/esm/browser/workbench-services.js +120 -0
  299. package/esm/browser/workbench-util.d.ts +1 -1
  300. package/esm/browser/workbench.d.ts +6 -89
  301. package/esm/browser/workbench.js +26 -336
  302. package/lib/browser/assistant/assistant-ask-book.d.ts +36 -0
  303. package/lib/browser/assistant/assistant-ask-book.js +100 -0
  304. package/lib/browser/assistant/assistant-conversation.d.ts +111 -0
  305. package/lib/browser/assistant/assistant-conversation.js +355 -0
  306. package/lib/browser/assistant/assistant-export.js +6 -7
  307. package/lib/browser/assistant/assistant-extension.d.ts +3 -2
  308. package/lib/browser/assistant/assistant-extension.js +55 -2
  309. package/lib/browser/assistant/assistant-protocol.d.ts +17 -2
  310. package/lib/browser/assistant/assistant-role.d.ts +22 -4
  311. package/lib/browser/assistant/assistant-role.js +30 -8
  312. package/lib/browser/assistant/assistant-state.d.ts +5 -1
  313. package/lib/browser/assistant/assistant-state.js +11 -0
  314. package/lib/browser/assistant/assistant-task-source.js +7 -1
  315. package/lib/browser/assistant/assistant-task-util.d.ts +19 -7
  316. package/lib/browser/assistant/assistant-task-util.js +73 -20
  317. package/lib/browser/assistant/assistant-tasks.d.ts +0 -7
  318. package/lib/browser/assistant/assistant-tasks.js +1 -3
  319. package/lib/browser/assistant/assistant-thread.d.ts +23 -0
  320. package/lib/browser/assistant/assistant-thread.js +144 -0
  321. package/lib/browser/assistant/assistant-view.js +74 -123
  322. package/lib/browser/assistant/assistant.d.ts +33 -105
  323. package/lib/browser/assistant/assistant.js +100 -353
  324. package/lib/browser/assistant/chat-task-source.d.ts +59 -0
  325. package/lib/browser/assistant/chat-task-source.js +111 -0
  326. package/lib/browser/assistant/read-aloud.d.ts +35 -0
  327. package/lib/browser/assistant/read-aloud.js +102 -0
  328. package/lib/browser/assistant/realtime-voice.d.ts +78 -0
  329. package/lib/browser/assistant/realtime-voice.js +324 -0
  330. package/lib/browser/assistant/task-views.d.ts +2 -3
  331. package/lib/browser/assistant/task-views.js +19 -15
  332. package/lib/browser/assistant/voice-call-bar.d.ts +61 -0
  333. package/lib/browser/assistant/voice-call-bar.js +306 -0
  334. package/lib/browser/assistant/voice-call.d.ts +176 -0
  335. package/lib/browser/assistant/voice-call.js +370 -0
  336. package/lib/browser/chat/chat-shown.d.ts +79 -0
  337. package/lib/browser/chat/chat-shown.js +266 -0
  338. package/lib/browser/chat/chat-view.js +2 -1
  339. package/lib/browser/chat/chat.d.ts +4 -68
  340. package/lib/browser/chat/chat.js +3 -251
  341. package/lib/browser/chat/draft-model.d.ts +1 -1
  342. package/lib/browser/components/access-view.js +2 -2
  343. package/lib/browser/components/account-menu.js +1 -1
  344. package/lib/browser/components/app-nav.d.ts +3 -1
  345. package/lib/browser/components/app-nav.js +7 -7
  346. package/lib/browser/components/app-shell-hooks.d.ts +11 -2
  347. package/lib/browser/components/app-shell-hooks.js +26 -5
  348. package/lib/browser/components/app-shell-state.d.ts +81 -0
  349. package/lib/browser/components/app-shell-state.js +502 -0
  350. package/lib/browser/components/app-view.js +120 -326
  351. package/lib/browser/components/asks-badge.d.ts +6 -2
  352. package/lib/browser/components/asks-badge.js +7 -3
  353. package/lib/browser/components/auth-pictures.d.ts +2 -2
  354. package/lib/browser/components/auth-pictures.js +13 -1
  355. package/lib/browser/components/auth-view.d.ts +4 -3
  356. package/lib/browser/components/auth-view.js +53 -4
  357. package/lib/browser/components/chat-asks.d.ts +2 -0
  358. package/lib/browser/components/chat-asks.js +8 -0
  359. package/lib/browser/components/chat-busy.d.ts +33 -0
  360. package/lib/browser/components/chat-busy.js +52 -0
  361. package/lib/browser/components/chat-icon.d.ts +6 -0
  362. package/lib/browser/components/chat-icon.js +17 -1
  363. package/lib/browser/components/chat-list-row.d.ts +85 -0
  364. package/lib/browser/components/chat-list-row.js +236 -0
  365. package/lib/browser/components/chat-list-util.d.ts +167 -0
  366. package/lib/browser/components/chat-list-util.js +338 -0
  367. package/lib/browser/components/chat-list.d.ts +11 -148
  368. package/lib/browser/components/chat-list.js +297 -530
  369. package/lib/browser/components/chat-seen.d.ts +7 -0
  370. package/lib/browser/components/chat-seen.js +58 -10
  371. package/lib/browser/components/composer-addon-util.d.ts +1 -1
  372. package/lib/browser/components/composer-addons.d.ts +1 -1
  373. package/lib/browser/components/composer-attachments.d.ts +12 -0
  374. package/lib/browser/components/composer-attachments.js +64 -0
  375. package/lib/browser/components/composer-box-hooks.d.ts +10 -0
  376. package/lib/browser/components/composer-box-hooks.js +178 -0
  377. package/lib/browser/components/composer-box-protocol.d.ts +109 -0
  378. package/lib/browser/components/composer-box-protocol.js +3 -0
  379. package/lib/browser/components/composer-box.d.ts +1 -95
  380. package/lib/browser/components/composer-box.js +51 -159
  381. package/lib/browser/components/composer-target.d.ts +22 -0
  382. package/lib/browser/components/composer-target.js +46 -0
  383. package/lib/browser/components/composer.d.ts +7 -1
  384. package/lib/browser/components/composer.js +15 -11
  385. package/lib/browser/components/context-menu.js +4 -0
  386. package/lib/browser/components/conversation-find.d.ts +28 -0
  387. package/lib/browser/components/conversation-find.js +188 -0
  388. package/lib/browser/components/conversation-scroll-hooks.js +3 -2
  389. package/lib/browser/components/conversation-scroll-util.d.ts +73 -0
  390. package/lib/browser/components/conversation-scroll-util.js +85 -1
  391. package/lib/browser/components/conversation-scroll.d.ts +1 -35
  392. package/lib/browser/components/conversation-scroll.js +20 -100
  393. package/lib/browser/components/conversation-view.d.ts +9 -0
  394. package/lib/browser/components/conversation-view.js +77 -0
  395. package/lib/browser/components/discover-view.d.ts +3 -2
  396. package/lib/browser/components/discover-view.js +30 -25
  397. package/lib/browser/components/dismiss.js +2 -0
  398. package/lib/browser/components/earlier-messages.d.ts +2 -0
  399. package/lib/browser/components/earlier-messages.js +2 -1
  400. package/lib/browser/components/environment-view.js +49 -0
  401. package/lib/browser/components/folder-picker.d.ts +7 -0
  402. package/lib/browser/components/folder-picker.js +89 -19
  403. package/lib/browser/components/gallery.d.ts +1 -1
  404. package/lib/browser/components/gallery.js +56 -13
  405. package/lib/browser/components/host-tag.js +1 -1
  406. package/lib/browser/components/host-view.d.ts +1 -1
  407. package/lib/browser/components/host-view.js +4 -2
  408. package/lib/browser/components/image-menu.d.ts +12 -0
  409. package/lib/browser/components/image-menu.js +65 -0
  410. package/lib/browser/components/image-viewer.d.ts +3 -2
  411. package/lib/browser/components/image-viewer.js +28 -3
  412. package/lib/browser/components/lightbox.js +2 -0
  413. package/lib/browser/components/link-dialog.js +2 -0
  414. package/lib/browser/components/list-rows.d.ts +3 -1
  415. package/lib/browser/components/list-rows.js +2 -1
  416. package/lib/browser/components/markdown.js +5 -0
  417. package/lib/browser/components/media.d.ts +2 -0
  418. package/lib/browser/components/media.js +17 -1
  419. package/lib/browser/components/message-actions.d.ts +1 -1
  420. package/lib/browser/components/message-actions.js +9 -0
  421. package/lib/browser/components/message-footer.d.ts +3 -1
  422. package/lib/browser/components/message-footer.js +2 -1
  423. package/lib/browser/components/message-images.d.ts +42 -0
  424. package/lib/browser/components/message-images.js +157 -0
  425. package/lib/browser/components/message-list.d.ts +4 -100
  426. package/lib/browser/components/message-list.js +11 -455
  427. package/lib/browser/components/message-menu.js +4 -0
  428. package/lib/browser/components/message-steps.d.ts +22 -0
  429. package/lib/browser/components/message-steps.js +218 -0
  430. package/lib/browser/components/message-user.d.ts +55 -0
  431. package/lib/browser/components/message-user.js +211 -0
  432. package/lib/browser/components/model-picker.d.ts +1 -1
  433. package/lib/browser/components/model-picker.js +2 -0
  434. package/lib/browser/components/moved-notice.d.ts +15 -0
  435. package/lib/browser/components/moved-notice.js +96 -0
  436. package/lib/browser/components/nav-places.d.ts +12 -1
  437. package/lib/browser/components/nav-places.js +12 -3
  438. package/lib/browser/components/notice-center.js +35 -0
  439. package/lib/browser/components/notice-face.js +7 -6
  440. package/lib/browser/components/phone-shell.d.ts +4 -3
  441. package/lib/browser/components/phone-shell.js +59 -67
  442. package/lib/browser/components/plus-menu.d.ts +1 -1
  443. package/lib/browser/components/relay-services.d.ts +6 -1
  444. package/lib/browser/components/relay-services.js +107 -0
  445. package/lib/browser/components/relay-view.js +2 -0
  446. package/lib/browser/components/remote-hosts.d.ts +10 -0
  447. package/lib/browser/components/remote-hosts.js +67 -4
  448. package/lib/browser/components/remote-prompts.js +2 -0
  449. package/lib/browser/components/scan-screen.js +7 -0
  450. package/lib/browser/components/screen-navigator-util.d.ts +29 -0
  451. package/lib/browser/components/screen-navigator-util.js +36 -0
  452. package/lib/browser/components/screen-navigator.d.ts +31 -0
  453. package/lib/browser/components/screen-navigator.js +83 -0
  454. package/lib/browser/components/session-settings.d.ts +1 -1
  455. package/lib/browser/components/session-view.js +157 -7
  456. package/lib/browser/components/settings-choices.d.ts +7 -1
  457. package/lib/browser/components/settings-choices.js +9 -1
  458. package/lib/browser/components/settings-more.d.ts +8 -0
  459. package/lib/browser/components/settings-more.js +299 -0
  460. package/lib/browser/components/settings-parts.d.ts +8 -3
  461. package/lib/browser/components/settings-parts.js +27 -245
  462. package/lib/browser/components/settings-view.js +43 -15
  463. package/lib/browser/components/stop-times.js +1 -0
  464. package/lib/browser/components/surface-flyout.js +2 -0
  465. package/lib/browser/components/unseen-drop.d.ts +10 -4
  466. package/lib/browser/components/unseen-drop.js +9 -8
  467. package/lib/browser/components/use-seen-chats.js +2 -2
  468. package/lib/browser/components/voice-services.d.ts +7 -0
  469. package/lib/browser/components/voice-services.js +173 -0
  470. package/lib/browser/components/voice-talk.d.ts +23 -6
  471. package/lib/browser/components/voice-talk.js +45 -10
  472. package/lib/browser/components/web-composer.d.ts +1 -1
  473. package/lib/browser/components/web-composer.js +2 -2
  474. package/lib/browser/components/web-dialog.js +2 -0
  475. package/lib/browser/device/back-stack.d.ts +89 -11
  476. package/lib/browser/device/back-stack.js +205 -31
  477. package/lib/browser/device/device-protocol.d.ts +1 -1
  478. package/lib/browser/device/device-protocol.js +1 -1
  479. package/lib/browser/device/own-gestures.d.ts +1 -1
  480. package/lib/browser/device/pull-down.js +8 -6
  481. package/lib/browser/device/row-swipe.js +11 -9
  482. package/lib/browser/device/sheet-swipe.d.ts +1 -179
  483. package/lib/browser/device/sheet-swipe.js +16 -452
  484. package/lib/browser/device/swipe-finger.d.ts +32 -0
  485. package/lib/browser/device/swipe-finger.js +87 -0
  486. package/lib/browser/device/swipe-settle.d.ts +53 -0
  487. package/lib/browser/device/swipe-settle.js +176 -0
  488. package/lib/browser/device/swipe-util.d.ts +98 -0
  489. package/lib/browser/device/swipe-util.js +187 -0
  490. package/lib/browser/drafts/drafts-protocol.d.ts +59 -0
  491. package/lib/browser/drafts/drafts-protocol.js +78 -0
  492. package/lib/browser/drafts/drafts.d.ts +22 -0
  493. package/lib/browser/drafts/drafts.js +94 -0
  494. package/lib/browser/drafts/use-composer-draft.d.ts +21 -0
  495. package/lib/browser/drafts/use-composer-draft.js +146 -0
  496. package/lib/browser/extension/icons.js +24 -3
  497. package/lib/browser/extension/web-api-components.d.ts +13 -0
  498. package/lib/browser/extension/web-api-contributions.d.ts +125 -0
  499. package/lib/browser/extension/web-extension-api.d.ts +88 -5
  500. package/lib/browser/extension/web-extension-context.d.ts +5 -0
  501. package/lib/browser/extension/web-extension-context.js +62 -9
  502. package/lib/browser/extension/web-extension-protocol.d.ts +19 -1
  503. package/lib/browser/extension/web-extension-protocol.js +3 -0
  504. package/lib/browser/extension/web-extension-run.d.ts +5 -2
  505. package/lib/browser/extension/web-extension-run.js +13 -1
  506. package/lib/browser/extension/web-extensions-running.d.ts +94 -0
  507. package/lib/browser/extension/web-extensions-running.js +343 -0
  508. package/lib/browser/extension/web-extensions.d.ts +6 -82
  509. package/lib/browser/extension/web-extensions.js +7 -316
  510. package/lib/browser/extension/web-pages.js +1 -0
  511. package/lib/browser/extension/web-session-notices.js +8 -3
  512. package/lib/browser/extension/web-tasks.d.ts +2 -0
  513. package/lib/browser/extension/web-tasks.js +6 -0
  514. package/lib/browser/extension/web-view-util.d.ts +2 -1
  515. package/lib/browser/extension/web-view-util.js +4 -1
  516. package/lib/browser/gateway/console-parts.d.ts +4 -12
  517. package/lib/browser/gateway/console-parts.js +42 -126
  518. package/lib/browser/gateway/console-tenant.js +3 -2
  519. package/lib/browser/gateway/console-trend.d.ts +12 -0
  520. package/lib/browser/gateway/console-trend.js +151 -0
  521. package/lib/browser/gateway/console-util.js +2 -2
  522. package/lib/browser/gateway/console-view.js +48 -2
  523. package/lib/browser/i18n/locales.d.ts +170 -6
  524. package/lib/browser/i18n/messages-ja.js +171 -7
  525. package/lib/browser/i18n/messages-zh-tw.js +171 -7
  526. package/lib/browser/i18n/messages.d.ts +167 -3
  527. package/lib/browser/i18n/messages.js +342 -14
  528. package/lib/browser/index.d.ts +17 -0
  529. package/lib/browser/index.js +17 -0
  530. package/lib/browser/notices/notices-protocol.d.ts +12 -0
  531. package/lib/browser/notices/notices.js +7 -4
  532. package/lib/browser/offline/device-values.d.ts +2 -0
  533. package/lib/browser/offline/device-values.js +6 -1
  534. package/lib/browser/screen/page-answers.d.ts +43 -0
  535. package/lib/browser/screen/page-answers.js +93 -0
  536. package/lib/browser/screen/screen-protocol.d.ts +113 -0
  537. package/lib/browser/screen/screen-protocol.js +48 -0
  538. package/lib/browser/screen/screen.d.ts +21 -0
  539. package/lib/browser/screen/screen.js +125 -0
  540. package/lib/browser/screen/use-screen-part.d.ts +7 -0
  541. package/lib/browser/screen/use-screen-part.js +50 -0
  542. package/lib/browser/settings/settings-protocol.d.ts +5 -1
  543. package/lib/browser/settings/settings-protocol.js +5 -1
  544. package/lib/browser/share/shared-extensions.d.ts +30 -0
  545. package/lib/browser/share/shared-extensions.js +181 -0
  546. package/lib/browser/share/shared-link.d.ts +12 -0
  547. package/lib/browser/share/shared-link.js +41 -0
  548. package/lib/browser/share/shared-page.d.ts +6 -0
  549. package/lib/browser/share/shared-page.js +173 -0
  550. package/lib/browser/state/state-protocol.d.ts +14 -0
  551. package/lib/browser/state/state-protocol.js +20 -1
  552. package/lib/browser/state/state.d.ts +10 -2
  553. package/lib/browser/state/state.js +18 -2
  554. package/lib/browser/style/base.d.ts +1 -1
  555. package/lib/browser/style/base.js +4 -0
  556. package/lib/browser/style/chat-list.d.ts +3 -0
  557. package/lib/browser/style/chat-list.js +156 -0
  558. package/lib/browser/style/conversation-column.d.ts +3 -0
  559. package/lib/browser/style/conversation-column.js +253 -0
  560. package/lib/browser/style/conversation.d.ts +1 -1
  561. package/lib/browser/style/conversation.js +24 -8
  562. package/lib/browser/style/dialogs.d.ts +3 -0
  563. package/lib/browser/style/dialogs.js +166 -0
  564. package/lib/browser/style/layout.d.ts +2 -2
  565. package/lib/browser/style/layout.js +1 -525
  566. package/lib/browser/style/pages.d.ts +1 -1
  567. package/lib/browser/style/pages.js +10 -3
  568. package/lib/browser/style/phone.d.ts +1 -1
  569. package/lib/browser/style/phone.js +7 -3
  570. package/lib/browser/style/shared.d.ts +3 -0
  571. package/lib/browser/style/shared.js +26 -0
  572. package/lib/browser/style/shell.d.ts +1 -1
  573. package/lib/browser/style/shell.js +47 -0
  574. package/lib/browser/style/tasks.d.ts +1 -1
  575. package/lib/browser/style/tasks.js +13 -8
  576. package/lib/browser/style.js +8 -0
  577. package/lib/browser/util/gallery.d.ts +24 -2
  578. package/lib/browser/util/gallery.js +82 -2
  579. package/lib/browser/util/image-copy.d.ts +17 -0
  580. package/lib/browser/util/image-copy.js +60 -0
  581. package/lib/browser/util/message.d.ts +5 -0
  582. package/lib/browser/util/message.js +14 -0
  583. package/lib/browser/util/process.d.ts +6 -2
  584. package/lib/browser/util/process.js +6 -2
  585. package/lib/browser/util/spoken.d.ts +25 -0
  586. package/lib/browser/util/spoken.js +86 -0
  587. package/lib/browser/util/transcript.d.ts +23 -0
  588. package/lib/browser/util/transcript.js +49 -0
  589. package/lib/browser/util/voice.d.ts +5 -1
  590. package/lib/browser/util/voice.js +6 -1
  591. package/lib/browser/workbench-hosts.d.ts +37 -0
  592. package/lib/browser/workbench-hosts.js +124 -0
  593. package/lib/browser/workbench-lists.d.ts +34 -0
  594. package/lib/browser/workbench-lists.js +132 -0
  595. package/lib/browser/workbench-protocol.d.ts +14 -1
  596. package/lib/browser/workbench-services.d.ts +50 -0
  597. package/lib/browser/workbench-services.js +124 -0
  598. package/lib/browser/workbench-util.d.ts +1 -1
  599. package/lib/browser/workbench.d.ts +6 -89
  600. package/lib/browser/workbench.js +23 -333
  601. package/package.json +7 -7
@@ -1,4 +1,5 @@
1
1
  export * from './assistant/assistant';
2
+ export * from './assistant/assistant-conversation';
2
3
  export * from './assistant/assistant-extension';
3
4
  export * from './assistant/assistant-protocol';
4
5
  export * from './assistant/assistant-role';
@@ -7,12 +8,15 @@ export * from './assistant/assistant-view';
7
8
  export * from './avatar/dino-avatar';
8
9
  export * from './chat/chat';
9
10
  export * from './chat/chat-protocol';
11
+ export * from './chat/chat-shown';
10
12
  export * from './chat/chat-util';
11
13
  export * from './chat/chat-view';
12
14
  export * from './components/account-menu';
13
15
  export * from './components/app-view';
14
16
  export * from './components/callout';
15
17
  export * from './components/chat-list';
18
+ export * from './components/chat-list-row';
19
+ export * from './components/chat-list-util';
16
20
  export * from './components/discover-view';
17
21
  export * from './components/editor-area';
18
22
  export * from './components/icon';
@@ -27,11 +31,18 @@ export * from './components/workbench-view';
27
31
  export * from './device/device';
28
32
  export * from './device/device-protocol';
29
33
  export * from './device/sheet-swipe';
34
+ export * from './device/swipe-finger';
35
+ export * from './device/swipe-settle';
36
+ export * from './device/swipe-util';
37
+ export * from './drafts/drafts';
38
+ export * from './drafts/drafts-protocol';
39
+ export * from './drafts/use-composer-draft';
30
40
  export * from './extension/extension-view';
31
41
  export * from './extension/icons';
32
42
  export * from './extension/web-extension-api';
33
43
  export * from './extension/web-extension-protocol';
34
44
  export * from './extension/web-extensions';
45
+ export * from './extension/web-extensions-running';
35
46
  export * from './extension/web-session-notices';
36
47
  export * from './files/files';
37
48
  export * from './files/files-protocol';
@@ -59,6 +70,9 @@ export * from './offline/kept-chats';
59
70
  export * from './offline/kept-chats-protocol';
60
71
  export * from './pwa/pwa';
61
72
  export * from './pwa/pwa-protocol';
73
+ export * from './screen/screen';
74
+ export * from './screen/screen-protocol';
75
+ export * from './screen/use-screen-part';
62
76
  export * from './settings/agent-settings';
63
77
  export * from './settings/navigation';
64
78
  export * from './settings/settings';
@@ -75,5 +89,8 @@ export * from './util/process';
75
89
  export * from './util/voice';
76
90
  export * from './view';
77
91
  export * from './workbench';
92
+ export * from './workbench-hosts';
93
+ export * from './workbench-lists';
78
94
  export * from './workbench-protocol';
95
+ export * from './workbench-services';
79
96
  //# sourceMappingURL=index.d.ts.map
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./assistant/assistant"), exports);
18
+ __exportStar(require("./assistant/assistant-conversation"), exports);
18
19
  __exportStar(require("./assistant/assistant-extension"), exports);
19
20
  __exportStar(require("./assistant/assistant-protocol"), exports);
20
21
  __exportStar(require("./assistant/assistant-role"), exports);
@@ -23,12 +24,15 @@ __exportStar(require("./assistant/assistant-view"), exports);
23
24
  __exportStar(require("./avatar/dino-avatar"), exports);
24
25
  __exportStar(require("./chat/chat"), exports);
25
26
  __exportStar(require("./chat/chat-protocol"), exports);
27
+ __exportStar(require("./chat/chat-shown"), exports);
26
28
  __exportStar(require("./chat/chat-util"), exports);
27
29
  __exportStar(require("./chat/chat-view"), exports);
28
30
  __exportStar(require("./components/account-menu"), exports);
29
31
  __exportStar(require("./components/app-view"), exports);
30
32
  __exportStar(require("./components/callout"), exports);
31
33
  __exportStar(require("./components/chat-list"), exports);
34
+ __exportStar(require("./components/chat-list-row"), exports);
35
+ __exportStar(require("./components/chat-list-util"), exports);
32
36
  __exportStar(require("./components/discover-view"), exports);
33
37
  __exportStar(require("./components/editor-area"), exports);
34
38
  __exportStar(require("./components/icon"), exports);
@@ -43,11 +47,18 @@ __exportStar(require("./components/workbench-view"), exports);
43
47
  __exportStar(require("./device/device"), exports);
44
48
  __exportStar(require("./device/device-protocol"), exports);
45
49
  __exportStar(require("./device/sheet-swipe"), exports);
50
+ __exportStar(require("./device/swipe-finger"), exports);
51
+ __exportStar(require("./device/swipe-settle"), exports);
52
+ __exportStar(require("./device/swipe-util"), exports);
53
+ __exportStar(require("./drafts/drafts"), exports);
54
+ __exportStar(require("./drafts/drafts-protocol"), exports);
55
+ __exportStar(require("./drafts/use-composer-draft"), exports);
46
56
  __exportStar(require("./extension/extension-view"), exports);
47
57
  __exportStar(require("./extension/icons"), exports);
48
58
  __exportStar(require("./extension/web-extension-api"), exports);
49
59
  __exportStar(require("./extension/web-extension-protocol"), exports);
50
60
  __exportStar(require("./extension/web-extensions"), exports);
61
+ __exportStar(require("./extension/web-extensions-running"), exports);
51
62
  __exportStar(require("./extension/web-session-notices"), exports);
52
63
  __exportStar(require("./files/files"), exports);
53
64
  __exportStar(require("./files/files-protocol"), exports);
@@ -75,6 +86,9 @@ __exportStar(require("./offline/kept-chats"), exports);
75
86
  __exportStar(require("./offline/kept-chats-protocol"), exports);
76
87
  __exportStar(require("./pwa/pwa"), exports);
77
88
  __exportStar(require("./pwa/pwa-protocol"), exports);
89
+ __exportStar(require("./screen/screen"), exports);
90
+ __exportStar(require("./screen/screen-protocol"), exports);
91
+ __exportStar(require("./screen/use-screen-part"), exports);
78
92
  __exportStar(require("./settings/agent-settings"), exports);
79
93
  __exportStar(require("./settings/navigation"), exports);
80
94
  __exportStar(require("./settings/settings"), exports);
@@ -91,5 +105,8 @@ __exportStar(require("./util/process"), exports);
91
105
  __exportStar(require("./util/voice"), exports);
92
106
  __exportStar(require("./view"), exports);
93
107
  __exportStar(require("./workbench"), exports);
108
+ __exportStar(require("./workbench-hosts"), exports);
109
+ __exportStar(require("./workbench-lists"), exports);
94
110
  __exportStar(require("./workbench-protocol"), exports);
111
+ __exportStar(require("./workbench-services"), exports);
95
112
  //# sourceMappingURL=index.js.map
@@ -19,6 +19,12 @@ export interface NoticeFrom {
19
19
  /** Shows the conversation: a tap on the notice. */
20
20
  open(): void;
21
21
  }
22
+ /** One thing Ta changed, a row of its notice: `通话字幕 关 → 开`, or a name alone. */
23
+ export interface NoticeChange {
24
+ label?: string;
25
+ before?: string;
26
+ after: string;
27
+ }
22
28
  export interface NoticeOptions {
23
29
  level?: NoticeLevel;
24
30
  /** A second, quieter line: what to do about it. */
@@ -34,6 +40,10 @@ export interface NoticeOptions {
34
40
  sticky?: boolean;
35
41
  /** A picture of cells under the message, dark ones true: a QR code an extension drew with characters. */
36
42
  art?: boolean[][];
43
+ /** Ta did it for the user: drawn with the double's face, the message as its head, `changes` under it. */
44
+ ta?: boolean;
45
+ /** What Ta changed, a row each. */
46
+ changes?: NoticeChange[];
37
47
  }
38
48
  export interface Notice {
39
49
  id: number;
@@ -46,6 +56,8 @@ export interface Notice {
46
56
  key?: string;
47
57
  sticky?: boolean;
48
58
  art?: boolean[][];
59
+ ta?: boolean;
60
+ changes?: NoticeChange[];
49
61
  /** How many times it came. */
50
62
  count: number;
51
63
  }
@@ -135,9 +135,10 @@ let TaNoticesImpl = class TaNoticesImpl {
135
135
  return () => this.listeners.delete(listener);
136
136
  }
137
137
  notify(text, options = {}) {
138
- var _a, _b;
139
- const level = (_a = options.level) !== null && _a !== void 0 ? _a : 'info';
140
- if (level === 'error' && ta_client_1.TaRemoteError.isConnectionLost(`${text}\n${(_b = options.detail) !== null && _b !== void 0 ? _b : ''}`)) {
138
+ var _a;
139
+ var _b, _c;
140
+ const level = (_b = options.level) !== null && _b !== void 0 ? _b : 'info';
141
+ if (level === 'error' && ta_client_1.TaRemoteError.isConnectionLost(`${text}\n${(_c = options.detail) !== null && _c !== void 0 ? _c : ''}`)) {
141
142
  // A web extension saying a call failed, in words: only the connection, which mends itself.
142
143
  return this.notDone();
143
144
  }
@@ -154,8 +155,10 @@ let TaNoticesImpl = class TaNoticesImpl {
154
155
  key,
155
156
  sticky: options.sticky,
156
157
  art: options.art,
158
+ ...(options.ta ? { ta: true } : {}),
159
+ ...(((_a = options.changes) === null || _a === void 0 ? void 0 : _a.length) ? { changes: options.changes } : {}),
157
160
  // A conversation's newer message takes the place of its last one, not counted.
158
- count: same && same.message === text && !options.from ? same.count + 1 : 1,
161
+ count: same && same.message === text && !options.from && !options.changes ? same.count + 1 : 1,
159
162
  };
160
163
  this.update({ notices: NoticesUtil.keep([...this.current.notices.filter(other => other !== same), notice]) });
161
164
  return notice.id;
@@ -19,6 +19,8 @@ export declare namespace OfflineKeys {
19
19
  function chat(host: string, sessionFile: string): string;
20
20
  /** Which conversations are kept, the one seen last at the end. */
21
21
  function chats(host: string): string;
22
+ /** The images of what was typed and not sent (TaDrafts). */
23
+ function draft(host: string, place: string): string;
22
24
  /** Takes off the device all that was kept of a computer. */
23
25
  function forget(values: DeviceValues, host: string): Promise<void>;
24
26
  }
@@ -20,9 +20,14 @@ var OfflineKeys;
20
20
  return `chats|${host}`;
21
21
  }
22
22
  OfflineKeys.chats = chats;
23
+ /** The images of what was typed and not sent (TaDrafts). */
24
+ function draft(host, place) {
25
+ return `draft|${host}|${place}`;
26
+ }
27
+ OfflineKeys.draft = draft;
23
28
  /** Takes off the device all that was kept of a computer. */
24
29
  async function forget(values, host) {
25
- await Promise.all([values.deleteAll(read(host, '')), values.deleteAll(chat(host, '')), values.delete(chats(host))]);
30
+ await Promise.all([values.deleteAll(read(host, '')), values.deleteAll(chat(host, '')), values.delete(chats(host)), values.deleteAll(draft(host, ''))]);
26
31
  }
27
32
  OfflineKeys.forget = forget;
28
33
  })(OfflineKeys || (exports.OfflineKeys = OfflineKeys = {}));
@@ -0,0 +1,43 @@
1
+ import type { TaPageInfo } from '@celljs/ta-protocol';
2
+ /** A touch, a click or a key tells ta serve the page is in use at most this often. */
3
+ export declare const ACTIVE_MS = 5000;
4
+ type Handler = (payload: unknown) => unknown;
5
+ /**
6
+ * What this page answers when ta serve asks (TaClient.onPageAsk, docs/design/ta-app-use.md 4.1), by kind, and what it
7
+ * tells ta serve of itself so that the request goes to the page in front of the user (TaPageServer.attach): the kinds,
8
+ * the device, whether it is seen, and that it was just used. Ta's own screen (`agent`) answers nothing: it is no page
9
+ * of the user.
10
+ */
11
+ export declare class PageAnswers {
12
+ protected readonly send: (info: TaPageInfo) => void;
13
+ protected readonly options: {
14
+ agent: boolean;
15
+ desktop: boolean;
16
+ now?: () => number;
17
+ };
18
+ protected readonly handlers: Map<string, Handler>;
19
+ protected device: TaPageInfo['device'];
20
+ protected activeAt: number;
21
+ protected disposers: (() => void)[];
22
+ constructor(send: (info: TaPageInfo) => void, options: {
23
+ agent: boolean;
24
+ desktop: boolean;
25
+ now?: () => number;
26
+ });
27
+ /** This page is Ta's own screen. */
28
+ get agent(): boolean;
29
+ /** Answers `kind` with `handler` from now on; the function returned stops. */
30
+ answer(kind: string, handler: Handler): () => void;
31
+ /** What ta serve asked, answered by its handler. */
32
+ ask(kind: string, payload: unknown): Promise<unknown>;
33
+ setDevice(device: TaPageInfo['device']): void;
34
+ /** Tells ta serve again: on a new connection, as the page is shown or hidden. */
35
+ tell(active?: boolean): void;
36
+ /** The user used the page: told at most every ACTIVE_MS. */
37
+ used(): void;
38
+ /** Follows the page being shown and used. */
39
+ watch(): void;
40
+ dispose(): void;
41
+ }
42
+ export {};
43
+ //# sourceMappingURL=page-answers.d.ts.map
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PageAnswers = exports.ACTIVE_MS = void 0;
4
+ /** A touch, a click or a key tells ta serve the page is in use at most this often. */
5
+ exports.ACTIVE_MS = 5000;
6
+ /**
7
+ * What this page answers when ta serve asks (TaClient.onPageAsk, docs/design/ta-app-use.md 4.1), by kind, and what it
8
+ * tells ta serve of itself so that the request goes to the page in front of the user (TaPageServer.attach): the kinds,
9
+ * the device, whether it is seen, and that it was just used. Ta's own screen (`agent`) answers nothing: it is no page
10
+ * of the user.
11
+ */
12
+ class PageAnswers {
13
+ constructor(send, options) {
14
+ this.send = send;
15
+ this.options = options;
16
+ this.handlers = new Map();
17
+ this.device = 'computer';
18
+ this.activeAt = 0;
19
+ this.disposers = [];
20
+ }
21
+ /** This page is Ta's own screen. */
22
+ get agent() {
23
+ return this.options.agent;
24
+ }
25
+ /** Answers `kind` with `handler` from now on; the function returned stops. */
26
+ answer(kind, handler) {
27
+ this.handlers.set(kind, handler);
28
+ this.tell();
29
+ return () => {
30
+ if (this.handlers.get(kind) === handler) {
31
+ this.handlers.delete(kind);
32
+ this.tell();
33
+ }
34
+ };
35
+ }
36
+ /** What ta serve asked, answered by its handler. */
37
+ async ask(kind, payload) {
38
+ const handler = this.handlers.get(kind);
39
+ if (!handler) {
40
+ throw new Error(`This page does not answer ${kind}.`);
41
+ }
42
+ return handler(payload);
43
+ }
44
+ setDevice(device) {
45
+ if (device !== this.device) {
46
+ this.device = device;
47
+ this.tell();
48
+ }
49
+ }
50
+ /** Tells ta serve again: on a new connection, as the page is shown or hidden. */
51
+ tell(active = false) {
52
+ if (this.options.agent) {
53
+ return;
54
+ }
55
+ const visible = typeof document === 'undefined' || document.visibilityState === 'visible';
56
+ this.send({
57
+ kinds: [...this.handlers.keys()],
58
+ device: this.device,
59
+ ...(this.options.desktop ? { desktop: true } : {}),
60
+ ...(visible ? { visible: true } : {}),
61
+ ...(active ? { active: true } : {}),
62
+ });
63
+ }
64
+ /** The user used the page: told at most every ACTIVE_MS. */
65
+ used() {
66
+ var _a;
67
+ const now = ((_a = this.options.now) !== null && _a !== void 0 ? _a : Date.now)();
68
+ if (now - this.activeAt >= exports.ACTIVE_MS) {
69
+ this.activeAt = now;
70
+ this.tell(true);
71
+ }
72
+ }
73
+ /** Follows the page being shown and used. */
74
+ watch() {
75
+ if (typeof document === 'undefined' || this.options.agent || this.disposers.length) {
76
+ return;
77
+ }
78
+ const shown = () => this.tell(document.visibilityState === 'visible');
79
+ const used = () => this.used();
80
+ document.addEventListener('visibilitychange', shown);
81
+ for (const event of ['pointerdown', 'keydown']) {
82
+ window.addEventListener(event, used, { capture: true, passive: true });
83
+ }
84
+ this.disposers.push(() => document.removeEventListener('visibilitychange', shown), () => window.removeEventListener('pointerdown', used, { capture: true }), () => window.removeEventListener('keydown', used, { capture: true }));
85
+ }
86
+ dispose() {
87
+ for (const dispose of this.disposers.splice(0)) {
88
+ dispose();
89
+ }
90
+ }
91
+ }
92
+ exports.PageAnswers = PageAnswers;
93
+ //# sourceMappingURL=page-answers.js.map
@@ -0,0 +1,113 @@
1
+ /**
2
+ * Ta's pages as an agent reads and works them (docs/design/ta-app-use.md 3): each part of the screen says what it is
3
+ * (useScreenPart), the shell says where it is and where it can go (ScreenNavigator), so that what the user sees is a
4
+ * short text an agent reads, and what they tap the same function it calls.
5
+ */
6
+ export declare const TaScreen: unique symbol;
7
+ /** A row of a part: a conversation of the list, a message, a task. */
8
+ export interface ScreenItem {
9
+ /** Stable while it is there: what its element is marked with (ScreenUtil.item). */
10
+ id: string;
11
+ text: string;
12
+ /** What the user sees of it at a glance: unread, pinned, working. */
13
+ marks?: string[];
14
+ }
15
+ /** What a part does, as one of its buttons does. */
16
+ export interface ScreenAction {
17
+ label: string;
18
+ /** Runs it as the button does: its onClick. What it resolves to, a line for the agent. */
19
+ run?(item: string | undefined, input: Record<string, unknown>): unknown;
20
+ /**
21
+ * The action of the catalog that does the same without the screen (TaHostCommands): taken in its place unless the
22
+ * user is to see it done.
23
+ */
24
+ command?: string;
25
+ /** The input of `command` for the item. */
26
+ commandInput?(item: string | undefined, input: Record<string, unknown>): Record<string, unknown>;
27
+ /** It is done to one item. */
28
+ each?: boolean;
29
+ /** What it takes, for the agent: `text`. */
30
+ takes?: string;
31
+ /** Cannot be undone, or acts for the user: they agree first on their screen. */
32
+ danger?: boolean;
33
+ }
34
+ export interface ScreenPartSpec {
35
+ /** Stable: `chat-list`, `conversation`; what its root element is marked with (ScreenUtil.part). */
36
+ id: string;
37
+ title: string;
38
+ /** What the user sees of it at a glance, a few words: `3 unread`. */
39
+ state?(): string | undefined;
40
+ items?(): ScreenItem[];
41
+ actions?: Record<string, ScreenAction>;
42
+ }
43
+ /** A part as the screen has it now (TaScreen.parts). */
44
+ export interface ScreenPartView {
45
+ id: string;
46
+ title: string;
47
+ state?: string;
48
+ items: ScreenItem[];
49
+ actions: (Pick<ScreenAction, 'label' | 'command' | 'each' | 'takes' | 'danger'> & {
50
+ name: string;
51
+ })[];
52
+ }
53
+ /** Somewhere the shell goes (ScreenNavigator.places). */
54
+ export interface ScreenPlace {
55
+ /** `list:`, `page:<view>`, `discover`, `settings`, `settings:<section>`, `me`. */
56
+ id: string;
57
+ title: string;
58
+ }
59
+ /** Where the shell is and goes, as the user goes with the rail, the tabs and the menus. */
60
+ export interface ScreenNavigator {
61
+ /** What is in front now, a line: `Conversation “Fix the login”`, `Settings → Voice`. */
62
+ where(): string;
63
+ places(): ScreenPlace[];
64
+ /**
65
+ * Goes to a place, by its id or its title, or to a conversation (`chat:<name or session file>`): whether it did.
66
+ */
67
+ go(to: string): Promise<boolean>;
68
+ }
69
+ /** What an action of a part gave (TaScreen.act). */
70
+ export type ScreenActResult = {
71
+ text?: string;
72
+ } | {
73
+ command: string;
74
+ input: Record<string, unknown>;
75
+ };
76
+ export interface TaScreen {
77
+ /** This page is Ta's own screen (a frame of the page, ScreenUtil.PARAM): it keeps nothing of the user's as theirs. */
78
+ readonly agent: boolean;
79
+ register(spec: () => ScreenPartSpec): () => void;
80
+ /** The parts on the screen now, the user's eyes on them. */
81
+ parts(): ScreenPartView[];
82
+ /**
83
+ * Does an action of a part: the command it stands for, unless `button` (the user is to see it done) or it has no
84
+ * command; else what its run says.
85
+ */
86
+ act(part: string, action: string, item?: string, input?: Record<string, unknown>, button?: boolean): Promise<ScreenActResult>;
87
+ /** The element of a part, of one of its items, or of an action of that: where a cursor goes. */
88
+ element(part: string, item?: string, action?: string): HTMLElement | undefined;
89
+ setNavigator(navigator: ScreenNavigator | undefined): void;
90
+ where(): string;
91
+ places(): ScreenPlace[];
92
+ go(to: string): Promise<boolean>;
93
+ }
94
+ export declare namespace ScreenUtil {
95
+ /** `?ta-screen`: the page is Ta's own screen. */
96
+ const PARAM = "ta-screen";
97
+ function agent(search?: string): boolean;
98
+ /** The marks of the elements of a part, of its items and of its buttons. */
99
+ function part(id: string): {
100
+ 'data-ta-part': string;
101
+ };
102
+ function item(id: string): {
103
+ 'data-ta-item': string;
104
+ };
105
+ function action(name: string): {
106
+ 'data-ta-action': string;
107
+ };
108
+ /** Whether it shows: not hidden, nor in a screen slid away. */
109
+ function visible(element: Element): boolean;
110
+ /** A place by its id or its title, without case. */
111
+ function find(places: readonly ScreenPlace[], to: string): ScreenPlace | undefined;
112
+ }
113
+ //# sourceMappingURL=screen-protocol.d.ts.map
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ScreenUtil = exports.TaScreen = void 0;
4
+ /**
5
+ * Ta's pages as an agent reads and works them (docs/design/ta-app-use.md 3): each part of the screen says what it is
6
+ * (useScreenPart), the shell says where it is and where it can go (ScreenNavigator), so that what the user sees is a
7
+ * short text an agent reads, and what they tap the same function it calls.
8
+ */
9
+ exports.TaScreen = Symbol('TaScreen');
10
+ var ScreenUtil;
11
+ (function (ScreenUtil) {
12
+ /** `?ta-screen`: the page is Ta's own screen. */
13
+ ScreenUtil.PARAM = 'ta-screen';
14
+ function agent(search = typeof location === 'undefined' ? '' : location.search) {
15
+ return new URLSearchParams(search).has(ScreenUtil.PARAM);
16
+ }
17
+ ScreenUtil.agent = agent;
18
+ /** The marks of the elements of a part, of its items and of its buttons. */
19
+ function part(id) {
20
+ return { 'data-ta-part': id };
21
+ }
22
+ ScreenUtil.part = part;
23
+ function item(id) {
24
+ return { 'data-ta-item': id };
25
+ }
26
+ ScreenUtil.item = item;
27
+ function action(name) {
28
+ return { 'data-ta-action': name };
29
+ }
30
+ ScreenUtil.action = action;
31
+ /** Whether it shows: not hidden, nor in a screen slid away. */
32
+ function visible(element) {
33
+ const html = element;
34
+ if (typeof html.checkVisibility === 'function') {
35
+ return html.checkVisibility({ opacityProperty: true, visibilityProperty: true });
36
+ }
37
+ return html.offsetParent !== null || html.getClientRects().length > 0;
38
+ }
39
+ ScreenUtil.visible = visible;
40
+ /** A place by its id or its title, without case. */
41
+ function find(places, to) {
42
+ var _a;
43
+ const word = to.trim().toLowerCase();
44
+ return (_a = places.find(place => place.id.toLowerCase() === word)) !== null && _a !== void 0 ? _a : places.find(place => place.title.toLowerCase() === word);
45
+ }
46
+ ScreenUtil.find = find;
47
+ })(ScreenUtil || (exports.ScreenUtil = ScreenUtil = {}));
48
+ //# sourceMappingURL=screen-protocol.js.map
@@ -0,0 +1,21 @@
1
+ import { type ScreenActResult, type ScreenNavigator, type ScreenPartSpec, type ScreenPartView, type ScreenPlace, TaScreen } from './screen-protocol';
2
+ /** The parts of the screen that say what they are, and the shell's navigator (TaScreen). */
3
+ export declare class TaScreenImpl implements TaScreen {
4
+ readonly agent: boolean;
5
+ protected readonly specs: Set<() => ScreenPartSpec>;
6
+ protected navigator?: ScreenNavigator;
7
+ register(spec: () => ScreenPartSpec): () => void;
8
+ parts(): ScreenPartView[];
9
+ act(part: string, name: string, item?: string, input?: Record<string, unknown>, button?: boolean): Promise<ScreenActResult>;
10
+ element(part: string, item?: string, action?: string): HTMLElement | undefined;
11
+ setNavigator(navigator: ScreenNavigator | undefined): void;
12
+ where(): string;
13
+ places(): ScreenPlace[];
14
+ go(to: string): Promise<boolean>;
15
+ protected spec(id: string): ScreenPartSpec | undefined;
16
+ /** A part with no element marked shows wherever it is mounted. */
17
+ protected shown(id: string): boolean;
18
+ protected roots(id: string): HTMLElement[];
19
+ protected query(root: Element, attribute: string, value: string): HTMLElement | undefined;
20
+ }
21
+ //# sourceMappingURL=screen.d.ts.map
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.TaScreenImpl = void 0;
10
+ const core_1 = require("@celljs/core");
11
+ const screen_protocol_1 = require("./screen-protocol");
12
+ /** The parts of the screen that say what they are, and the shell's navigator (TaScreen). */
13
+ let TaScreenImpl = class TaScreenImpl {
14
+ constructor() {
15
+ this.agent = screen_protocol_1.ScreenUtil.agent();
16
+ this.specs = new Set();
17
+ }
18
+ register(spec) {
19
+ this.specs.add(spec);
20
+ return () => this.specs.delete(spec);
21
+ }
22
+ parts() {
23
+ var _a, _b;
24
+ var _c, _d;
25
+ const seen = new Set();
26
+ const parts = [];
27
+ for (const get of this.specs) {
28
+ const spec = get();
29
+ if (seen.has(spec.id) || !this.shown(spec.id)) {
30
+ continue;
31
+ }
32
+ seen.add(spec.id);
33
+ const state = (_a = spec.state) === null || _a === void 0 ? void 0 : _a.call(spec);
34
+ parts.push({
35
+ id: spec.id,
36
+ title: spec.title,
37
+ ...(state ? { state } : {}),
38
+ items: (_c = (_b = spec.items) === null || _b === void 0 ? void 0 : _b.call(spec)) !== null && _c !== void 0 ? _c : [],
39
+ actions: Object.entries((_d = spec.actions) !== null && _d !== void 0 ? _d : {}).map(([name, action]) => ({
40
+ name,
41
+ label: action.label,
42
+ ...(action.command ? { command: action.command } : {}),
43
+ ...(action.each ? { each: true } : {}),
44
+ ...(action.takes ? { takes: action.takes } : {}),
45
+ ...(action.danger ? { danger: true } : {}),
46
+ })),
47
+ });
48
+ }
49
+ return parts;
50
+ }
51
+ async act(part, name, item, input = {}, button = false) {
52
+ var _a, _b, _c;
53
+ var _d;
54
+ const spec = this.spec(part);
55
+ const action = (_a = spec === null || spec === void 0 ? void 0 : spec.actions) === null || _a === void 0 ? void 0 : _a[name];
56
+ if (!spec || !action) {
57
+ throw new Error(spec ? `${spec.title} has no action ${name}.` : `Nothing on the screen is ${part}.`);
58
+ }
59
+ if (action.each && !(item && ((_b = spec.items) === null || _b === void 0 ? void 0 : _b.call(spec).some(one => one.id === item)))) {
60
+ throw new Error(`${action.label} is done to one of ${spec.title}: name it.`);
61
+ }
62
+ if (action.command && (!button || !action.run)) {
63
+ return { command: action.command, input: (_d = (_c = action.commandInput) === null || _c === void 0 ? void 0 : _c.call(action, item, input)) !== null && _d !== void 0 ? _d : input };
64
+ }
65
+ if (!action.run) {
66
+ throw new Error(`${action.label} cannot be done here.`);
67
+ }
68
+ const said = await action.run(item, input);
69
+ return typeof said === 'string' ? { text: said } : {};
70
+ }
71
+ element(part, item, action) {
72
+ var _a, _b;
73
+ const roots = this.roots(part);
74
+ const root = (_a = roots.find(screen_protocol_1.ScreenUtil.visible)) !== null && _a !== void 0 ? _a : roots[0];
75
+ if (!root) {
76
+ return undefined;
77
+ }
78
+ const within = item ? ((_b = this.query(root, 'data-ta-item', item)) !== null && _b !== void 0 ? _b : root) : root;
79
+ return (action && this.query(within, 'data-ta-action', action)) || within;
80
+ }
81
+ setNavigator(navigator) {
82
+ this.navigator = navigator;
83
+ }
84
+ where() {
85
+ var _a;
86
+ var _b;
87
+ return (_b = (_a = this.navigator) === null || _a === void 0 ? void 0 : _a.where()) !== null && _b !== void 0 ? _b : '';
88
+ }
89
+ places() {
90
+ var _a;
91
+ var _b;
92
+ return (_b = (_a = this.navigator) === null || _a === void 0 ? void 0 : _a.places()) !== null && _b !== void 0 ? _b : [];
93
+ }
94
+ go(to) {
95
+ return this.navigator ? this.navigator.go(to) : Promise.resolve(false);
96
+ }
97
+ spec(id) {
98
+ let found;
99
+ for (const get of this.specs) {
100
+ const spec = get();
101
+ if (spec.id === id && (!found || this.shown(id))) {
102
+ found = spec;
103
+ }
104
+ }
105
+ return found;
106
+ }
107
+ /** A part with no element marked shows wherever it is mounted. */
108
+ shown(id) {
109
+ const roots = this.roots(id);
110
+ return roots.length === 0 || roots.some(screen_protocol_1.ScreenUtil.visible);
111
+ }
112
+ roots(id) {
113
+ return typeof document === 'undefined' ? [] : [...document.querySelectorAll(`[data-ta-part="${CSS.escape(id)}"]`)];
114
+ }
115
+ query(root, attribute, value) {
116
+ var _a;
117
+ const found = [...root.querySelectorAll(`[${attribute}="${CSS.escape(value)}"]`)];
118
+ return (_a = found.find(screen_protocol_1.ScreenUtil.visible)) !== null && _a !== void 0 ? _a : found[0];
119
+ }
120
+ };
121
+ exports.TaScreenImpl = TaScreenImpl;
122
+ exports.TaScreenImpl = TaScreenImpl = __decorate([
123
+ (0, core_1.Component)(screen_protocol_1.TaScreen)
124
+ ], TaScreenImpl);
125
+ //# sourceMappingURL=screen.js.map
@@ -0,0 +1,7 @@
1
+ import { type ScreenPartSpec } from './screen-protocol';
2
+ /**
3
+ * A part of the screen says what it is while it is mounted (docs/design/ta-app-use.md 3): the latest spec of each
4
+ * render is read, so its functions see the state of the time. Mark its elements with ScreenUtil.part, item and action.
5
+ */
6
+ export declare function useScreenPart(spec: ScreenPartSpec): void;
7
+ //# sourceMappingURL=use-screen-part.d.ts.map