@protobase/ui 0.121.10 → 0.121.12

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 (321) hide show
  1. package/dist/account/messages.d.ts +2 -2
  2. package/dist/activity-chart/messages.d.ts +2 -2
  3. package/dist/app/app.js +3 -2
  4. package/dist/app/change-confirm/messages.d.ts +2 -2
  5. package/dist/app/charts/messages.d.ts +2 -2
  6. package/dist/app/confirm-sign-in-messages.d.ts +2 -2
  7. package/dist/app/conversation/message-composer.d.ts +5 -1
  8. package/dist/app/conversation/message-composer.js +10 -3
  9. package/dist/app/conversation/messages.d.ts +2 -2
  10. package/dist/app/conversation/thread-state.d.ts +1 -1
  11. package/dist/app/conversation-page/conversation-header.js +1 -1
  12. package/dist/app/conversation-page/conversation-message.js +1 -1
  13. package/dist/app/conversation-page/conversation-messages.js +1 -1
  14. package/dist/app/conversation-page/conversation-page.d.ts +5 -4
  15. package/dist/app/conversation-page/conversation-page.js +22 -6
  16. package/dist/app/conversation-page/message-editor.js +1 -1
  17. package/dist/app/conversation-page/message-ops.d.ts +3 -1
  18. package/dist/app/conversation-page/message-ops.js +7 -1
  19. package/dist/app/conversation-page/messages.d.ts +2 -2
  20. package/dist/app/conversation-page/reply-labels.js +1 -1
  21. package/dist/app/conversation-page/thread-panel.js +1 -1
  22. package/dist/app/conversation-page/use-message-writes.js +1 -1
  23. package/dist/app/create/messages.d.ts +2 -2
  24. package/dist/app/custom-section.d.ts +1 -1
  25. package/dist/app/delete/messages.d.ts +2 -2
  26. package/dist/app/displays/list-cards.d.ts +1 -1
  27. package/dist/app/displays/messages.d.ts +2 -2
  28. package/dist/app/embedded-list/messages.d.ts +2 -2
  29. package/dist/app/export/export-worker.js +1 -1
  30. package/dist/app/export/messages.d.ts +2 -2
  31. package/dist/app/field-messages.d.ts +2 -2
  32. package/dist/app/field-types/runner-install/messages.d.ts +2 -2
  33. package/dist/app/field-types/widget-part.d.ts +1 -1
  34. package/dist/app/field-types/workflow/definition.d.ts +1 -1
  35. package/dist/app/field-types/workflow/messages.d.ts +2 -2
  36. package/dist/app/field-types/workflow-page/messages.d.ts +2 -2
  37. package/dist/app/field-types/workflow-run/messages.d.ts +2 -2
  38. package/dist/app/file-viewers/messages.d.ts +2 -2
  39. package/dist/app/focus/messages.d.ts +2 -2
  40. package/dist/app/gallery/gallery-layout.d.ts +2 -2
  41. package/dist/app/gallery/messages.d.ts +2 -2
  42. package/dist/app/hand-order/messages.d.ts +2 -2
  43. package/dist/app/history/messages.d.ts +2 -2
  44. package/dist/app/import/messages.d.ts +2 -2
  45. package/dist/app/list-messages.d.ts +2 -2
  46. package/dist/app/list-page.js +1 -1
  47. package/dist/app/main.js +1 -1
  48. package/dist/app/messages.d.ts +2 -2
  49. package/dist/app/meta-gate-messages.d.ts +2 -2
  50. package/dist/app/new-version/messages.d.ts +2 -2
  51. package/dist/app/pages/custom-boundary.d.ts +1 -1
  52. package/dist/app/pages/custom-chosen.d.ts +1 -1
  53. package/dist/app/pages/messages.d.ts +2 -2
  54. package/dist/app/record-chart/messages.d.ts +2 -2
  55. package/dist/app/record-lines.js +1 -1
  56. package/dist/app/record-messages.d.ts +2 -2
  57. package/dist/app/record-page.js +1 -1
  58. package/dist/app/record-row/messages.d.ts +2 -2
  59. package/dist/app/related-cards/messages.d.ts +2 -2
  60. package/dist/app/runtime/messages.d.ts +2 -2
  61. package/dist/app/saved/saved-list.d.ts +1 -1
  62. package/dist/app/saved/use-favorite.d.ts +1 -1
  63. package/dist/app/searches/messages.d.ts +2 -2
  64. package/dist/app/searches/use-save-search.d.ts +1 -1
  65. package/dist/app/use-nav-recent.d.ts +2 -2
  66. package/dist/app/use-nav-recent.js +5 -4
  67. package/dist/app-shell/messages.d.ts +2 -2
  68. package/dist/app-shell/nav.d.ts +5 -3
  69. package/dist/app-shell/record-marks.d.ts +1 -1
  70. package/dist/app-shell/record-marks.js +5 -3
  71. package/dist/app-shell/sidebar-records.d.ts +1 -1
  72. package/dist/app-shell/sidebar-records.js +6 -1
  73. package/dist/assistant-dock/messages.d.ts +2 -2
  74. package/dist/auth/messages.d.ts +2 -2
  75. package/dist/calls/messages.d.ts +2 -2
  76. package/dist/chat/composer.d.ts +3 -1
  77. package/dist/chat/composer.js +6 -2
  78. package/dist/chat/messages.d.ts +2 -2
  79. package/dist/compact-table/messages.d.ts +2 -2
  80. package/dist/data/api-provider.d.ts +33 -0
  81. package/dist/data/meta-data.d.ts +4 -0
  82. package/dist/data/use-live-updates.d.ts +5 -2
  83. package/dist/data/use-live-updates.js +25 -3
  84. package/dist/data/use-meta.js +1 -0
  85. package/dist/data-grid/messages.d.ts +2 -2
  86. package/dist/filter-panel/messages.d.ts +2 -2
  87. package/dist/index.d.ts +5 -1
  88. package/dist/index.js +5 -1
  89. package/dist/invitations/messages.d.ts +2 -2
  90. package/dist/locale/en.js +7 -2
  91. package/dist/locale/en.json.d.ts +5 -0
  92. package/dist/locale/messages.d.ts +10 -0
  93. package/dist/locale/nl.js +7 -2
  94. package/dist/locale/texts-gate.d.ts +1 -1
  95. package/dist/mailbox/messages.d.ts +2 -2
  96. package/dist/mentions/messages.d.ts +2 -2
  97. package/dist/mocks/orders.d.ts +2 -2
  98. package/dist/notifications/bell/messages.d.ts +2 -2
  99. package/dist/organizations/messages.d.ts +2 -2
  100. package/dist/package.js +1 -1
  101. package/dist/plugins/before-sign-in.d.ts +1 -1
  102. package/dist/plugins/messages.d.ts +2 -2
  103. package/dist/plugins/plugin-api.exports.js +5 -1
  104. package/dist/primitives/messages.d.ts +2 -2
  105. package/dist/record-view/messages.d.ts +2 -2
  106. package/dist/relay/count-unread.d.ts +12 -0
  107. package/dist/relay/count-unread.js +34 -0
  108. package/dist/relay/relay-context.d.ts +17 -0
  109. package/dist/relay/relay-context.js +23 -0
  110. package/dist/relay/relay-provider.d.ts +11 -0
  111. package/dist/relay/relay-provider.js +58 -0
  112. package/dist/relay/relay-store.d.ts +31 -0
  113. package/dist/relay/relay-store.js +77 -0
  114. package/dist/relay/typing-line.d.ts +11 -0
  115. package/dist/relay/typing-line.js +30 -0
  116. package/dist/relay/typing.d.ts +37 -0
  117. package/dist/relay/typing.js +78 -0
  118. package/dist/relay/unread.d.ts +30 -0
  119. package/dist/relay/unread.js +35 -0
  120. package/dist/relay/use-relay-marks.d.ts +11 -0
  121. package/dist/relay/use-relay-marks.js +53 -0
  122. package/dist/relay/use-typing-sender.d.ts +11 -0
  123. package/dist/relay/use-typing-sender.js +32 -0
  124. package/dist/relay/use-unread-counts.d.ts +9 -0
  125. package/dist/relay/use-unread-counts.js +61 -0
  126. package/dist/relay/use-view-channel.d.ts +7 -0
  127. package/dist/relay/use-view-channel.js +21 -0
  128. package/dist/shell/assets/{account-page-K162oV2K.js → account-page-BsAc4o17.js} +2 -2
  129. package/dist/shell/assets/app-Bb88M0VJ.js +36 -0
  130. package/dist/shell/assets/{assistant-shell-BudITySr.js → assistant-shell-CdVAnpMe.js} +2 -2
  131. package/dist/shell/assets/board-display-DKT7398I.js +2 -0
  132. package/dist/shell/assets/calendar-display-0c2dGTmG.js +2 -0
  133. package/dist/shell/assets/{call-rings-pKCPyD1-.js → call-rings-BV5na0xp.js} +2 -2
  134. package/dist/shell/assets/{calls-CLQwaemL.js → calls-n9IoOXzL.js} +2 -2
  135. package/dist/shell/assets/{circle-alert-05wFSlkE.js → circle-alert-kISSXwIV.js} +2 -2
  136. package/dist/shell/assets/{composed-page-D3_OTQB4.js → composed-page-hn7I0Ulk.js} +2 -2
  137. package/dist/shell/assets/{composer-section-BoFYW5rp.js → composer-section-Cb1kOpwt.js} +2 -2
  138. package/dist/shell/assets/{connect-route-D0m9ozLK.js → connect-route-l21XyxhS.js} +2 -2
  139. package/dist/shell/assets/{copy-field-DjAdwdDh.js → copy-field-D22CFeg3.js} +2 -2
  140. package/dist/shell/assets/create-route-CSe9DhbY.js +2 -0
  141. package/dist/shell/assets/{custom-step-container-field-DTCgqZMO.js → custom-step-container-field-C5l4j0FI.js} +4 -4
  142. package/dist/shell/assets/embedded-list-DjvOszEj.js +3 -0
  143. package/dist/shell/assets/en-DnsB2haa.js +2 -0
  144. package/dist/shell/assets/{export-dialog-BVmThgqO.js → export-dialog-Bh3TSYyL.js} +2 -2
  145. package/dist/shell/assets/export-worker-DbK8hf_0.js +15 -0
  146. package/dist/shell/assets/{first-organization-page-B986-W2g.js → first-organization-page-BtfoRENE.js} +2 -2
  147. package/dist/shell/assets/{graph-view-BEerNiMa.js → graph-view-C4fwqz7Q.js} +2 -2
  148. package/dist/shell/assets/{group-donut-DgttsF8V.js → group-donut-Bcnc0EaM.js} +2 -2
  149. package/dist/shell/assets/{guest-call-page-CKEva7eV.js → guest-call-page-D09z7u-V.js} +3 -3
  150. package/dist/shell/assets/{html-viewer-FMIvHlJ9.js → html-viewer-BtwOBvDg.js} +2 -2
  151. package/dist/shell/assets/{import-dialog-CjFrTZBf.js → import-dialog-Dwx_yEfS.js} +2 -2
  152. package/dist/shell/assets/{import-table-dialog-CoTd03ud.js → import-table-dialog-T3V3RoDY.js} +2 -2
  153. package/dist/shell/assets/{index-BrTE5pLB.js → index-DvNpfiwE.js} +1 -1
  154. package/dist/shell/assets/invitations-page-X90SMPsK.js +2 -0
  155. package/dist/shell/assets/{layout-grid-o1f0ZIIR.js → layout-grid-Bp_eP5eU.js} +2 -2
  156. package/dist/shell/assets/{legend-item-CamCYS1J.js → legend-item-CEZ-8FXv.js} +2 -2
  157. package/dist/shell/assets/list-page-BUtWO_Zd.js +4 -0
  158. package/dist/shell/assets/{maplibre-DVBhKlXN.js → maplibre-Cv3xuTP_.js} +2 -2
  159. package/dist/shell/assets/{markdown-content-CfblNnhw.js → markdown-content-jO-R6jpp.js} +2 -2
  160. package/dist/shell/assets/members-page-BZyldmfB.js +2 -0
  161. package/dist/shell/assets/{message-content--7TsRUEK.js → message-content-DJEa6jyY.js} +2 -2
  162. package/dist/shell/assets/messages-BIP4feL2.js +2 -0
  163. package/dist/shell/assets/nl-Ce2dHlet.js +2 -0
  164. package/dist/shell/assets/organization-page-CjQ7oJk4.js +2 -0
  165. package/dist/shell/assets/organizations-page-2cKqhNJh.js +2 -0
  166. package/dist/shell/assets/parse-worker-MvbeuzYJ.js +35 -0
  167. package/dist/shell/assets/{pending-invitation-row-By5UWOua.js → pending-invitation-row-Cef2WdTI.js} +2 -2
  168. package/dist/shell/assets/{period-chart-C3ZV_QjX.js → period-chart-BPq3Knz8.js} +2 -2
  169. package/dist/shell/assets/{person-row-Dvc6wiac.js → person-row-BLVor9QR.js} +2 -2
  170. package/dist/shell/assets/public-form-page-CMaHcrdf.js +2 -0
  171. package/dist/shell/assets/record-lines-jznjVtIQ.js +2 -0
  172. package/dist/shell/assets/{record-map-M24QGWvA.js → record-map-9KEjeN_F.js} +2 -2
  173. package/dist/shell/assets/{record-opens-CNOaCrB0.js → record-opens-CQLXpqJS.js} +2 -2
  174. package/dist/shell/assets/record-page-JFlxtSyg.js +3 -0
  175. package/dist/shell/assets/{record-preview-Bk9A5TNd.js → record-preview-CUs7j-lh.js} +2 -2
  176. package/dist/shell/assets/{records-map-D1JVIHvn.js → records-map-CLF98-H0.js} +2 -2
  177. package/dist/shell/assets/render-node-DoB1k2WS.js +3 -0
  178. package/dist/shell/assets/reorder-button-Cg-WKutS.js +2 -0
  179. package/dist/shell/assets/{run-trace-view-CBYw9RPI.js → run-trace-view-CmujelWd.js} +2 -2
  180. package/dist/shell/assets/{runner-install-field--7xa6MIJ.js → runner-install-field-wpoIgnks.js} +2 -2
  181. package/dist/shell/assets/{runtime-update-DWO9xR0h.js → runtime-update-BaNRaM6l.js} +2 -2
  182. package/dist/shell/assets/shared-protobase-ui-630Rm7Jd.js +1 -0
  183. package/dist/shell/assets/sheet-source-7m5PMllh.js +3 -0
  184. package/dist/shell/assets/sign-in-policy-page-GgyC3l_6.js +2 -0
  185. package/dist/shell/assets/start-block-queries-B8K1ZsVK.js +2 -0
  186. package/dist/shell/assets/step-catalog-Dktva0VF.js +2 -0
  187. package/dist/shell/assets/{step-panel-xClc_YhC.js → step-panel-CjUWMleA.js} +2 -2
  188. package/dist/shell/assets/timeline-display-CCPZ8VKv.js +2 -0
  189. package/dist/shell/assets/{trash-DTqja_Bl.js → trash-BfIEK322.js} +2 -2
  190. package/dist/shell/assets/{update-set-g33TLRML.js → update-set-Drag3hOc.js} +2 -2
  191. package/dist/shell/assets/use-calendar-move-fM4kqYZF.js +2 -0
  192. package/dist/shell/assets/{use-display-rows-sN3JfCRy.js → use-display-rows-CEB1AStC.js} +2 -2
  193. package/dist/shell/assets/use-my-invitations-DxoZihem.js +2 -0
  194. package/dist/shell/assets/{use-paged-search-DrjHdSz7.js → use-paged-search-tHTP8FRX.js} +2 -2
  195. package/dist/shell/assets/{use-run-trace-DFLNmghw.js → use-run-trace-b8SpFDRU.js} +2 -2
  196. package/dist/shell/assets/{use-workflow-page-Cfztiqhc.js → use-workflow-page-oeKIRs_g.js} +2 -2
  197. package/dist/shell/assets/{use-workflow-types-BFToPBTN.js → use-workflow-types-D1TLbN3E.js} +2 -2
  198. package/dist/shell/assets/{workflow-canvas-D7hU35fr.js → workflow-canvas-CJQ0Ll0M.js} +4 -4
  199. package/dist/shell/assets/{workflow-field-D7X0A1GO.js → workflow-field-CpGs8ZXh.js} +3 -3
  200. package/dist/shell/assets/{workflow-graph-editor-16CoiFFG.js → workflow-graph-editor-CLlL2jNQ.js} +2 -2
  201. package/dist/shell/assets/{workflow-run-field-DJLolq5e.js → workflow-run-field-R43RqM3Z.js} +3 -3
  202. package/dist/shell/assets/workflow-status-field-BaytFzWg.js +2 -0
  203. package/dist/shell/assets/workflow-workbench-DYClQZZ1.js +4 -0
  204. package/dist/shell/index.html +3 -3
  205. package/dist/shell/protobase.shell.json +2 -2
  206. package/dist/shell/protobase.sw.js +2 -2
  207. package/dist/shell-source-maps/assets/{account-page-K162oV2K.js.map → account-page-BsAc4o17.js.map} +1 -1
  208. package/dist/shell-source-maps/assets/app-Bb88M0VJ.js.map +1 -0
  209. package/dist/shell-source-maps/assets/{assistant-shell-BudITySr.js.map → assistant-shell-CdVAnpMe.js.map} +1 -1
  210. package/dist/shell-source-maps/assets/{board-display-Bs4z3PwA.js.map → board-display-DKT7398I.js.map} +1 -1
  211. package/dist/shell-source-maps/assets/{calendar-display-tHm1Uuwv.js.map → calendar-display-0c2dGTmG.js.map} +1 -1
  212. package/dist/shell-source-maps/assets/{call-rings-pKCPyD1-.js.map → call-rings-BV5na0xp.js.map} +1 -1
  213. package/dist/shell-source-maps/assets/{calls-CLQwaemL.js.map → calls-n9IoOXzL.js.map} +1 -1
  214. package/dist/shell-source-maps/assets/{circle-alert-05wFSlkE.js.map → circle-alert-kISSXwIV.js.map} +1 -1
  215. package/dist/shell-source-maps/assets/{composed-page-D3_OTQB4.js.map → composed-page-hn7I0Ulk.js.map} +1 -1
  216. package/dist/shell-source-maps/assets/{composer-section-BoFYW5rp.js.map → composer-section-Cb1kOpwt.js.map} +1 -1
  217. package/dist/shell-source-maps/assets/{connect-route-D0m9ozLK.js.map → connect-route-l21XyxhS.js.map} +1 -1
  218. package/dist/shell-source-maps/assets/{copy-field-DjAdwdDh.js.map → copy-field-D22CFeg3.js.map} +1 -1
  219. package/dist/shell-source-maps/assets/{create-route-CZDGdfY8.js.map → create-route-CSe9DhbY.js.map} +1 -1
  220. package/dist/shell-source-maps/assets/{custom-step-container-field-DTCgqZMO.js.map → custom-step-container-field-C5l4j0FI.js.map} +1 -1
  221. package/dist/shell-source-maps/assets/{embedded-list-wbLEr5-r.js.map → embedded-list-DjvOszEj.js.map} +1 -1
  222. package/dist/shell-source-maps/assets/en-DnsB2haa.js.map +1 -0
  223. package/dist/shell-source-maps/assets/{export-dialog-BVmThgqO.js.map → export-dialog-Bh3TSYyL.js.map} +1 -1
  224. package/dist/shell-source-maps/assets/export-worker-DbK8hf_0.js.map +1 -0
  225. package/dist/shell-source-maps/assets/{first-organization-page-B986-W2g.js.map → first-organization-page-BtfoRENE.js.map} +1 -1
  226. package/dist/shell-source-maps/assets/{graph-view-BEerNiMa.js.map → graph-view-C4fwqz7Q.js.map} +1 -1
  227. package/dist/shell-source-maps/assets/{group-donut-DgttsF8V.js.map → group-donut-Bcnc0EaM.js.map} +1 -1
  228. package/dist/shell-source-maps/assets/{guest-call-page-CKEva7eV.js.map → guest-call-page-D09z7u-V.js.map} +1 -1
  229. package/dist/shell-source-maps/assets/{html-viewer-FMIvHlJ9.js.map → html-viewer-BtwOBvDg.js.map} +1 -1
  230. package/dist/shell-source-maps/assets/{import-dialog-CjFrTZBf.js.map → import-dialog-Dwx_yEfS.js.map} +1 -1
  231. package/dist/shell-source-maps/assets/{import-table-dialog-CoTd03ud.js.map → import-table-dialog-T3V3RoDY.js.map} +1 -1
  232. package/dist/shell-source-maps/assets/{invitations-page-Ds817tOV.js.map → invitations-page-X90SMPsK.js.map} +1 -1
  233. package/dist/shell-source-maps/assets/{layout-grid-o1f0ZIIR.js.map → layout-grid-Bp_eP5eU.js.map} +1 -1
  234. package/dist/shell-source-maps/assets/{legend-item-CamCYS1J.js.map → legend-item-CEZ-8FXv.js.map} +1 -1
  235. package/dist/shell-source-maps/assets/{list-page-CHdsbqR8.js.map → list-page-BUtWO_Zd.js.map} +1 -1
  236. package/dist/shell-source-maps/assets/{maplibre-DVBhKlXN.js.map → maplibre-Cv3xuTP_.js.map} +1 -1
  237. package/dist/shell-source-maps/assets/{markdown-content-CfblNnhw.js.map → markdown-content-jO-R6jpp.js.map} +1 -1
  238. package/dist/shell-source-maps/assets/{members-page-CCLPZ9sH.js.map → members-page-BZyldmfB.js.map} +1 -1
  239. package/dist/shell-source-maps/assets/{message-content--7TsRUEK.js.map → message-content-DJEa6jyY.js.map} +1 -1
  240. package/dist/shell-source-maps/assets/{messages-BaKJKIHo.js.map → messages-BIP4feL2.js.map} +1 -1
  241. package/dist/shell-source-maps/assets/nl-Ce2dHlet.js.map +1 -0
  242. package/dist/shell-source-maps/assets/{organization-page-DE4U9Xbi.js.map → organization-page-CjQ7oJk4.js.map} +1 -1
  243. package/dist/shell-source-maps/assets/{organizations-page-DcRX2C5D.js.map → organizations-page-2cKqhNJh.js.map} +1 -1
  244. package/dist/shell-source-maps/assets/parse-worker-MvbeuzYJ.js.map +1 -0
  245. package/dist/shell-source-maps/assets/{pending-invitation-row-By5UWOua.js.map → pending-invitation-row-Cef2WdTI.js.map} +1 -1
  246. package/dist/shell-source-maps/assets/{period-chart-C3ZV_QjX.js.map → period-chart-BPq3Knz8.js.map} +1 -1
  247. package/dist/shell-source-maps/assets/{person-row-Dvc6wiac.js.map → person-row-BLVor9QR.js.map} +1 -1
  248. package/dist/shell-source-maps/assets/{public-form-page-C2K3mhKj.js.map → public-form-page-CMaHcrdf.js.map} +1 -1
  249. package/dist/shell-source-maps/assets/{record-lines-DLM3i7dN.js.map → record-lines-jznjVtIQ.js.map} +1 -1
  250. package/dist/shell-source-maps/assets/{record-map-M24QGWvA.js.map → record-map-9KEjeN_F.js.map} +1 -1
  251. package/dist/shell-source-maps/assets/{record-opens-CNOaCrB0.js.map → record-opens-CQLXpqJS.js.map} +1 -1
  252. package/dist/shell-source-maps/assets/record-page-JFlxtSyg.js.map +1 -0
  253. package/dist/shell-source-maps/assets/{record-preview-Bk9A5TNd.js.map → record-preview-CUs7j-lh.js.map} +1 -1
  254. package/dist/shell-source-maps/assets/{records-map-D1JVIHvn.js.map → records-map-CLF98-H0.js.map} +1 -1
  255. package/dist/shell-source-maps/assets/render-node-DoB1k2WS.js.map +1 -0
  256. package/dist/shell-source-maps/assets/{reorder-button-CrDVuiOd.js.map → reorder-button-Cg-WKutS.js.map} +1 -1
  257. package/dist/shell-source-maps/assets/{run-trace-view-CBYw9RPI.js.map → run-trace-view-CmujelWd.js.map} +1 -1
  258. package/dist/shell-source-maps/assets/{runner-install-field--7xa6MIJ.js.map → runner-install-field-wpoIgnks.js.map} +1 -1
  259. package/dist/shell-source-maps/assets/{runtime-update-DWO9xR0h.js.map → runtime-update-BaNRaM6l.js.map} +1 -1
  260. package/dist/shell-source-maps/assets/{sheet-source-DKZ31RE_.js.map → sheet-source-7m5PMllh.js.map} +1 -1
  261. package/dist/shell-source-maps/assets/{sign-in-policy-page-B-m5Pcyb.js.map → sign-in-policy-page-GgyC3l_6.js.map} +1 -1
  262. package/dist/shell-source-maps/assets/{start-block-queries-OldcFqiL.js.map → start-block-queries-B8K1ZsVK.js.map} +1 -1
  263. package/dist/shell-source-maps/assets/{step-catalog-N67Ej6Fl.js.map → step-catalog-Dktva0VF.js.map} +1 -1
  264. package/dist/shell-source-maps/assets/{step-panel-xClc_YhC.js.map → step-panel-CjUWMleA.js.map} +1 -1
  265. package/dist/shell-source-maps/assets/{timeline-display-DwR4-qO_.js.map → timeline-display-CCPZ8VKv.js.map} +1 -1
  266. package/dist/shell-source-maps/assets/{trash-DTqja_Bl.js.map → trash-BfIEK322.js.map} +1 -1
  267. package/dist/shell-source-maps/assets/{update-set-g33TLRML.js.map → update-set-Drag3hOc.js.map} +1 -1
  268. package/dist/shell-source-maps/assets/{use-calendar-move-BaNKG9_2.js.map → use-calendar-move-fM4kqYZF.js.map} +1 -1
  269. package/dist/shell-source-maps/assets/{use-display-rows-sN3JfCRy.js.map → use-display-rows-CEB1AStC.js.map} +1 -1
  270. package/dist/shell-source-maps/assets/{use-my-invitations-BIsBGgmc.js.map → use-my-invitations-DxoZihem.js.map} +1 -1
  271. package/dist/shell-source-maps/assets/{use-paged-search-DrjHdSz7.js.map → use-paged-search-tHTP8FRX.js.map} +1 -1
  272. package/dist/shell-source-maps/assets/{use-run-trace-DFLNmghw.js.map → use-run-trace-b8SpFDRU.js.map} +1 -1
  273. package/dist/shell-source-maps/assets/{use-workflow-page-Cfztiqhc.js.map → use-workflow-page-oeKIRs_g.js.map} +1 -1
  274. package/dist/shell-source-maps/assets/{use-workflow-types-BFToPBTN.js.map → use-workflow-types-D1TLbN3E.js.map} +1 -1
  275. package/dist/shell-source-maps/assets/{workflow-canvas-D7hU35fr.js.map → workflow-canvas-CJQ0Ll0M.js.map} +1 -1
  276. package/dist/shell-source-maps/assets/{workflow-field-D7X0A1GO.js.map → workflow-field-CpGs8ZXh.js.map} +1 -1
  277. package/dist/shell-source-maps/assets/{workflow-graph-editor-16CoiFFG.js.map → workflow-graph-editor-CLlL2jNQ.js.map} +1 -1
  278. package/dist/shell-source-maps/assets/{workflow-run-field-DJLolq5e.js.map → workflow-run-field-R43RqM3Z.js.map} +1 -1
  279. package/dist/shell-source-maps/assets/workflow-status-field-BaytFzWg.js.map +1 -0
  280. package/dist/shell-source-maps/assets/{workflow-workbench-DErE_AKt.js.map → workflow-workbench-DYClQZZ1.js.map} +1 -1
  281. package/dist/status/messages.d.ts +2 -2
  282. package/dist/users/messages.d.ts +2 -2
  283. package/package.json +5 -5
  284. package/dist/shell/assets/app-vx5mZ2uE.js +0 -34
  285. package/dist/shell/assets/board-display-Bs4z3PwA.js +0 -2
  286. package/dist/shell/assets/calendar-display-tHm1Uuwv.js +0 -2
  287. package/dist/shell/assets/create-route-CZDGdfY8.js +0 -2
  288. package/dist/shell/assets/embedded-list-wbLEr5-r.js +0 -3
  289. package/dist/shell/assets/en-0TxR0Vfb.js +0 -2
  290. package/dist/shell/assets/export-worker-AFqbgGzG.js +0 -15
  291. package/dist/shell/assets/invitations-page-Ds817tOV.js +0 -2
  292. package/dist/shell/assets/list-page-CHdsbqR8.js +0 -4
  293. package/dist/shell/assets/members-page-CCLPZ9sH.js +0 -2
  294. package/dist/shell/assets/messages-BaKJKIHo.js +0 -2
  295. package/dist/shell/assets/nl-mDiTKi5y.js +0 -2
  296. package/dist/shell/assets/organization-page-DE4U9Xbi.js +0 -2
  297. package/dist/shell/assets/organizations-page-DcRX2C5D.js +0 -2
  298. package/dist/shell/assets/parse-worker-C5wWzRYH.js +0 -35
  299. package/dist/shell/assets/public-form-page-C2K3mhKj.js +0 -2
  300. package/dist/shell/assets/record-lines-DLM3i7dN.js +0 -2
  301. package/dist/shell/assets/record-page-DVmkJFmF.js +0 -3
  302. package/dist/shell/assets/render-node-C-yLArnA.js +0 -3
  303. package/dist/shell/assets/reorder-button-CrDVuiOd.js +0 -2
  304. package/dist/shell/assets/shared-protobase-ui-DGEYEBZj.js +0 -1
  305. package/dist/shell/assets/sheet-source-DKZ31RE_.js +0 -3
  306. package/dist/shell/assets/sign-in-policy-page-B-m5Pcyb.js +0 -2
  307. package/dist/shell/assets/start-block-queries-OldcFqiL.js +0 -2
  308. package/dist/shell/assets/step-catalog-N67Ej6Fl.js +0 -2
  309. package/dist/shell/assets/timeline-display-DwR4-qO_.js +0 -2
  310. package/dist/shell/assets/use-calendar-move-BaNKG9_2.js +0 -2
  311. package/dist/shell/assets/use-my-invitations-BIsBGgmc.js +0 -2
  312. package/dist/shell/assets/workflow-status-field-weFyKOIV.js +0 -2
  313. package/dist/shell/assets/workflow-workbench-DErE_AKt.js +0 -4
  314. package/dist/shell-source-maps/assets/app-vx5mZ2uE.js.map +0 -1
  315. package/dist/shell-source-maps/assets/en-0TxR0Vfb.js.map +0 -1
  316. package/dist/shell-source-maps/assets/export-worker-AFqbgGzG.js.map +0 -1
  317. package/dist/shell-source-maps/assets/nl-mDiTKi5y.js.map +0 -1
  318. package/dist/shell-source-maps/assets/parse-worker-C5wWzRYH.js.map +0 -1
  319. package/dist/shell-source-maps/assets/record-page-DVmkJFmF.js.map +0 -1
  320. package/dist/shell-source-maps/assets/render-node-C-yLArnA.js.map +0 -1
  321. package/dist/shell-source-maps/assets/workflow-status-field-weFyKOIV.js.map +0 -1
@@ -5,8 +5,8 @@ import { MetaData } from "../data/meta-data.js";
5
5
  /**
6
6
  * The records of every sidebar group (`nav.recent`), one list request each, under the `list` query key so that any
7
7
  * write to the resource refreshes them, as does reading one of their records anew. The server applies the caller's
8
- * access, as on the list page. A group that names `marks` gets the project UI's hook, which the sidebar calls, its
9
- * marks' people given their presence and status. With `enabled` false, such as outside any organization, there are none.
8
+ * access, as on the list page. A group that names `marks` gets the project UI's hook, which the sidebar calls, and one
9
+ * with `typing` or `unread` the relay's marks over it, its marks' people given their presence and status. With `enabled` false, such as outside any organization, there are none.
10
10
  */
11
11
  export declare const useNavRecent: (meta: MetaData, basePath: string, active: {
12
12
  resource?: string;
@@ -5,12 +5,13 @@ import { useProjectUi } from "./pages/project-ui.js";
5
5
  import { userMenuResources } from "./user-menu-from-meta.js";
6
6
  import { useStatuses } from "../status/use-statuses.js";
7
7
  import { useRecordTitle } from "./titles/record-titles.js";
8
+ import { mergeMarks, relayMarks } from "../relay/use-relay-marks.js";
8
9
  import { markPeople } from "./marks/mark-people.js";
9
10
  import { recentMarks, recentRecords, recentRequest, recentRowDiffers } from "./nav-recent.js";
10
11
  import { useEffect, useMemo } from "react";
11
12
  import { useQueries, useQueryClient } from "@tanstack/react-query";
12
13
  //#region src/app/use-nav-recent.ts
13
- const withPeople = (useMarks) => useMarks && (() => markPeople(useMarks(), usePresence(), useStatuses().data));
14
+ const withPeople = (useMarks) => useMarks && ((records) => markPeople(useMarks(records), usePresence(), useStatuses().data));
14
15
  const groupKey = ({ model, request }) => keys.navRecent(model.name, request.filter, request.orderBy, request.pageSize);
15
16
  /**
16
17
  * Refetches a group when a record of its resource is read anew (a record page, or an app following one) and shows
@@ -36,8 +37,8 @@ const useFollowRecords = (groups) => {
36
37
  /**
37
38
  * The records of every sidebar group (`nav.recent`), one list request each, under the `list` query key so that any
38
39
  * write to the resource refreshes them, as does reading one of their records anew. The server applies the caller's
39
- * access, as on the list page. A group that names `marks` gets the project UI's hook, which the sidebar calls, its
40
- * marks' people given their presence and status. With `enabled` false, such as outside any organization, there are none.
40
+ * access, as on the list page. A group that names `marks` gets the project UI's hook, which the sidebar calls, and one
41
+ * with `typing` or `unread` the relay's marks over it, its marks' people given their presence and status. With `enabled` false, such as outside any organization, there are none.
41
42
  */
42
43
  const useNavRecent = (meta, basePath, active, enabled = true) => {
43
44
  const client = useClient();
@@ -54,7 +55,7 @@ const useNavRecent = (meta, basePath, active, enabled = true) => {
54
55
  view,
55
56
  recent,
56
57
  request: recentRequest(model, view, recent),
57
- useMarks: withPeople(recentMarks(model.name, recent, marks))
58
+ useMarks: withPeople(mergeMarks(recentMarks(model.name, recent, marks), relayMarks(view, recent)))
58
59
  }] : [];
59
60
  });
60
61
  }, [
@@ -1,7 +1,7 @@
1
1
  import { MessageValue } from "../locale/messages.js";
2
2
  //#region src/app-shell/messages.d.ts
3
3
  export declare const text: {
4
- (id: "more" | "loading" | "organizations" | "roles" | "noMatches" | "resources" | "system" | "search" | "signIn" | "couldNotSearch" | "signOut" | "couldNotLoad" | "tabs" | "light" | "dark" | "clearSearch" | "viewAll" | "theme" | "breadcrumb" | "navigation" | "openNavigation" | "backTo" | "closeSearch" | "globalSearch" | "searchResults" | "searching" | "accountOf" | "profileMenu" | "recent", values?: Record<string, MessageValue>): string;
5
- rich(id: "more" | "loading" | "organizations" | "roles" | "noMatches" | "resources" | "system" | "search" | "signIn" | "couldNotSearch" | "signOut" | "couldNotLoad" | "tabs" | "light" | "dark" | "clearSearch" | "viewAll" | "theme" | "breadcrumb" | "navigation" | "openNavigation" | "backTo" | "closeSearch" | "globalSearch" | "searchResults" | "searching" | "accountOf" | "profileMenu" | "recent", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
4
+ (id: "resources" | "organizations" | "roles" | "search" | "signIn" | "navigation" | "breadcrumb" | "tabs" | "more" | "openNavigation" | "backTo" | "closeSearch" | "clearSearch" | "globalSearch" | "searchResults" | "searching" | "noMatches" | "accountOf" | "profileMenu" | "signOut" | "theme" | "light" | "dark" | "system" | "recent" | "loading" | "couldNotLoad" | "viewAll" | "couldNotSearch" | "typing" | "unread", values?: Record<string, MessageValue>): string;
5
+ rich(id: "resources" | "organizations" | "roles" | "search" | "signIn" | "navigation" | "breadcrumb" | "tabs" | "more" | "openNavigation" | "backTo" | "closeSearch" | "clearSearch" | "globalSearch" | "searchResults" | "searching" | "noMatches" | "accountOf" | "profileMenu" | "signOut" | "theme" | "light" | "dark" | "system" | "recent" | "loading" | "couldNotLoad" | "viewAll" | "couldNotSearch" | "typing" | "unread", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
6
6
  };
7
7
  //#endregion
@@ -18,13 +18,15 @@ export type NavRecord = {
18
18
  * How a record under a sidebar entry stands out for the person reading, such as an unread conversation: `strong` draws
19
19
  * its title bold, `count` a badge at the end of its row (none at 0), and `label`, such as "3 mentions", is added to its
20
20
  * name for screen readers and its tooltip. `person`, a user id, names the one person the record stands for, such as
21
- * the other person in a direct message: the row shows their presence and status beside its title.
21
+ * the other person in a direct message: the row shows their presence and status beside its title. `typing` says
22
+ * "typing…" beside it, while someone else types in it.
22
23
  */
23
24
  export type RecordMark = {
24
25
  strong?: boolean;
25
26
  count?: number;
26
27
  label?: string;
27
28
  person?: string;
29
+ typing?: boolean;
28
30
  };
29
31
  /** A record's mark as the sidebar draws it: its person, when it names one, as their presence and status. */
30
32
  export type ShownMark = Omit<RecordMark, 'person'> & {
@@ -36,11 +38,11 @@ export type NavRecent = {
36
38
  } | {
37
39
  state: 'error';
38
40
  } |
39
- /** `useMarks`, a React hook the group calls while it shows the records, marks them by their `id`. */
41
+ /** `useMarks`, a React hook the group calls with the records while it shows them, marks them by their `id`. */
40
42
  {
41
43
  state: 'ready';
42
44
  records: NavRecord[];
43
- useMarks?: () => Record<string, ShownMark> | undefined;
45
+ useMarks?: (records: readonly NavRecord[]) => Record<string, ShownMark> | undefined;
44
46
  };
45
47
  export type NavItem = {
46
48
  id: string;
@@ -7,7 +7,7 @@ export type MarkedRecord = NavRecord & {
7
7
  export declare const markRecords: (records: NavRecord[], marks: Record<string, ShownMark> | undefined) => MarkedRecord[];
8
8
  /**
9
9
  * What a sidebar record is called for screen readers and in its tooltip: its title, with its status, its person's
10
- * presence and status, and its mark's label.
10
+ * presence and status, whether someone types in it, and its mark's label.
11
11
  */
12
12
  export declare const recordNames: (record: MarkedRecord) => {
13
13
  ariaLabel: string;
@@ -1,4 +1,5 @@
1
- import { text } from "../status/messages.js";
1
+ import { text } from "./messages.js";
2
+ import { text as text$1 } from "../status/messages.js";
2
3
  import { availabilityLabel } from "../status/status-mark.js";
3
4
  import { heldStatus } from "@protobase/schema/internal";
4
5
  //#region src/app-shell/record-marks.ts
@@ -13,19 +14,20 @@ const personWords = (person) => {
13
14
  if (!person) return [];
14
15
  const held = heldStatus(person.status);
15
16
  return [
16
- person.presence && text(person.presence),
17
+ person.presence && text$1(person.presence),
17
18
  held && held.availability !== "automatic" ? availabilityLabel(held.availability) : void 0,
18
19
  held?.text ?? void 0
19
20
  ];
20
21
  };
21
22
  /**
22
23
  * What a sidebar record is called for screen readers and in its tooltip: its title, with its status, its person's
23
- * presence and status, and its mark's label.
24
+ * presence and status, whether someone types in it, and its mark's label.
24
25
  */
25
26
  const recordNames = (record) => {
26
27
  const extra = [
27
28
  record.status?.label,
28
29
  ...personWords(record.mark?.person),
30
+ record.mark?.typing ? text("typing") : void 0,
29
31
  record.mark?.label
30
32
  ].filter((part) => part !== void 0 && part !== "");
31
33
  return {
@@ -4,7 +4,7 @@ type Mode = 'text-large' | 'text-small';
4
4
  /** The rows of a sidebar group's records, marked by the group's `useMarks` hook when it has one. */
5
5
  export declare const SidebarRecords: ({ records, useMarks, mode, onNavigate }: {
6
6
  records: NavRecord[];
7
- useMarks?: () => Record<string, ShownMark> | undefined;
7
+ useMarks?: (records: readonly NavRecord[]) => Record<string, ShownMark> | undefined;
8
8
  mode: Mode;
9
9
  onNavigate?: (href: string) => void;
10
10
  }) => import("react").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { cn } from "../lib/cn.js";
2
+ import { text } from "./messages.js";
2
3
  import { subRow } from "./sidebar-rows.js";
3
4
  import { CountBadge } from "../primitives/count-badge.js";
4
5
  import { StatusDot } from "./status-dot.js";
@@ -34,6 +35,10 @@ const RecordRows = ({ records, mode, onNavigate }) => records.map((record) => {
34
35
  textShown: "hover",
35
36
  className: "ml-1.5 shrink-0"
36
37
  }),
38
+ record.mark?.typing && /* @__PURE__ */ jsx("span", {
39
+ className: "ml-1.5 shrink-0 text-xs font-normal text-muted-foreground",
40
+ children: text("typing")
41
+ }),
37
42
  /* @__PURE__ */ jsx(CountBadge, {
38
43
  count: record.mark?.count,
39
44
  className: "ml-auto shrink-0"
@@ -42,7 +47,7 @@ const RecordRows = ({ records, mode, onNavigate }) => records.map((record) => {
42
47
  }) }, record.id);
43
48
  });
44
49
  const MarkedRows = ({ records, useMarks, ...rest }) => /* @__PURE__ */ jsx(RecordRows, {
45
- records: markRecords(records, useMarks()),
50
+ records: markRecords(records, useMarks(records)),
46
51
  ...rest
47
52
  });
48
53
  /** The rows of a sidebar group's records, marked by the group's `useMarks` hook when it has one. */
@@ -1,7 +1,7 @@
1
1
  import { MessageValue } from "../locale/messages.js";
2
2
  //#region src/assistant-dock/messages.d.ts
3
3
  export declare const text: {
4
- (id: "reconnecting" | "empty" | "assistant" | "noAnswer" | "couldNotDraw" | "askQuestion" | "backendNoAnswer" | "cannotShowLive", values?: Record<string, MessageValue>): string;
5
- rich(id: "reconnecting" | "empty" | "assistant" | "noAnswer" | "couldNotDraw" | "askQuestion" | "backendNoAnswer" | "cannotShowLive", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
4
+ (id: "reconnecting" | "askQuestion" | "assistant" | "empty" | "noAnswer" | "backendNoAnswer" | "couldNotDraw" | "cannotShowLive", values?: Record<string, MessageValue>): string;
5
+ rich(id: "reconnecting" | "askQuestion" | "assistant" | "empty" | "noAnswer" | "backendNoAnswer" | "couldNotDraw" | "cannotShowLive", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
6
6
  };
7
7
  //#endregion
@@ -1,7 +1,7 @@
1
1
  import { MessageValue } from "../locale/messages.js";
2
2
  //#region src/auth/messages.d.ts
3
3
  export declare const text: {
4
- (id: "password" | "emailCode" | "forgotPassword" | "email" | "code" | "reason" | "loading" | "admin" | "or" | "yourName" | "continue" | "reload" | "signIn" | "tryAgain" | "passwordOptional" | "signOut" | "tooManyRequests" | "setPassword" | "newPassword" | "verify" | "cannotReach" | "noAnswer" | "detailsTitle" | "repeatPassword" | "atLeast" | "useAtLeast" | "passwordTooLong" | "passwordsDiffer" | "addPasskey" | "passwordChanged" | "backupCode" | "backToSignIn" | "useAnotherAddress" | "checkEmail" | "newCodeSent" | "sendNewCode" | "sendNewCodeIn" | "signInCodeDescription" | "signInCodeSent" | "signUpCodeDescription" | "signUpCodeSent" | "noAdminTitle" | "noAdminDescription" | "noAdminExplanation" | "copyCommand" | "firstAdminExplanation" | "firstAdminLink" | "tooManyAttempts" | "resetTitle" | "resetDescription" | "sendResetLink" | "resetSent" | "linkExpiredTitle" | "linkExpiredExplanation" | "sendNewLink" | "choosePassword" | "signingInWith" | "takingYouTo" | "providerNotOffered" | "turnOnTwoFactor" | "requiredForEveryAccount" | "passkeyExplanation" | "couldNotReadAccount" | "signInTitle" | "runsOnProtobase" | "continueWith" | "signInWithPasskey" | "passkeyFor" | "emailSignInCode" | "usePassword" | "newHere" | "haveAccount" | "createAnAccount" | "browse" | "notNow" | "detailsDescription" | "codeWasRight" | "withoutPassword" | "createAccount" | "codeToConfirm" | "browseWithoutAccount" | "staffTitle" | "staffUnavailable" | "signInAsPerson" | "forStaffOf" | "theirEmail" | "reasonExample" | "staffExplanation" | "totpInstruction" | "otpInstruction" | "backupInstruction" | "twoFactorTitle" | "twoFactorDescription" | "codeToFinish" | "trustBrowser" | "trustBrowserFor" | "useAuthenticator" | "emailCodeInstead" | "useBackupCode", values?: Record<string, MessageValue>): string;
5
- rich(id: "password" | "emailCode" | "forgotPassword" | "email" | "code" | "reason" | "loading" | "admin" | "or" | "yourName" | "continue" | "reload" | "signIn" | "tryAgain" | "passwordOptional" | "signOut" | "tooManyRequests" | "setPassword" | "newPassword" | "verify" | "cannotReach" | "noAnswer" | "detailsTitle" | "repeatPassword" | "atLeast" | "useAtLeast" | "passwordTooLong" | "passwordsDiffer" | "addPasskey" | "passwordChanged" | "backupCode" | "backToSignIn" | "useAnotherAddress" | "checkEmail" | "newCodeSent" | "sendNewCode" | "sendNewCodeIn" | "signInCodeDescription" | "signInCodeSent" | "signUpCodeDescription" | "signUpCodeSent" | "noAdminTitle" | "noAdminDescription" | "noAdminExplanation" | "copyCommand" | "firstAdminExplanation" | "firstAdminLink" | "tooManyAttempts" | "resetTitle" | "resetDescription" | "sendResetLink" | "resetSent" | "linkExpiredTitle" | "linkExpiredExplanation" | "sendNewLink" | "choosePassword" | "signingInWith" | "takingYouTo" | "providerNotOffered" | "turnOnTwoFactor" | "requiredForEveryAccount" | "passkeyExplanation" | "couldNotReadAccount" | "signInTitle" | "runsOnProtobase" | "continueWith" | "signInWithPasskey" | "passkeyFor" | "emailSignInCode" | "usePassword" | "newHere" | "haveAccount" | "createAnAccount" | "browse" | "notNow" | "detailsDescription" | "codeWasRight" | "withoutPassword" | "createAccount" | "codeToConfirm" | "browseWithoutAccount" | "staffTitle" | "staffUnavailable" | "signInAsPerson" | "forStaffOf" | "theirEmail" | "reasonExample" | "staffExplanation" | "totpInstruction" | "otpInstruction" | "backupInstruction" | "twoFactorTitle" | "twoFactorDescription" | "codeToFinish" | "trustBrowser" | "trustBrowserFor" | "useAuthenticator" | "emailCodeInstead" | "useBackupCode", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
4
+ (id: "admin" | "or" | "yourName" | "continue" | "signIn" | "signOut" | "loading" | "reason" | "reload" | "noAnswer" | "tooManyRequests" | "code" | "setPassword" | "email" | "password" | "newPassword" | "verify" | "cannotReach" | "tryAgain" | "passwordChanged" | "backupCode" | "passwordOptional" | "backToSignIn" | "useAnotherAddress" | "checkEmail" | "newCodeSent" | "sendNewCode" | "sendNewCodeIn" | "signInCodeDescription" | "signInCodeSent" | "signUpCodeDescription" | "signUpCodeSent" | "noAdminTitle" | "noAdminDescription" | "noAdminExplanation" | "copyCommand" | "firstAdminExplanation" | "firstAdminLink" | "tooManyAttempts" | "resetTitle" | "resetDescription" | "sendResetLink" | "resetSent" | "linkExpiredTitle" | "linkExpiredExplanation" | "sendNewLink" | "passwordsDiffer" | "choosePassword" | "atLeast" | "useAtLeast" | "passwordTooLong" | "repeatPassword" | "signingInWith" | "takingYouTo" | "providerNotOffered" | "turnOnTwoFactor" | "addPasskey" | "requiredForEveryAccount" | "passkeyExplanation" | "couldNotReadAccount" | "signInTitle" | "runsOnProtobase" | "continueWith" | "signInWithPasskey" | "passkeyFor" | "emailSignInCode" | "usePassword" | "forgotPassword" | "newHere" | "haveAccount" | "createAnAccount" | "browse" | "notNow" | "detailsTitle" | "detailsDescription" | "codeWasRight" | "withoutPassword" | "createAccount" | "codeToConfirm" | "emailCode" | "browseWithoutAccount" | "staffTitle" | "staffUnavailable" | "signInAsPerson" | "forStaffOf" | "theirEmail" | "reasonExample" | "staffExplanation" | "totpInstruction" | "otpInstruction" | "backupInstruction" | "twoFactorTitle" | "twoFactorDescription" | "codeToFinish" | "trustBrowser" | "trustBrowserFor" | "useAuthenticator" | "emailCodeInstead" | "useBackupCode", values?: Record<string, MessageValue>): string;
5
+ rich(id: "admin" | "or" | "yourName" | "continue" | "signIn" | "signOut" | "loading" | "reason" | "reload" | "noAnswer" | "tooManyRequests" | "code" | "setPassword" | "email" | "password" | "newPassword" | "verify" | "cannotReach" | "tryAgain" | "passwordChanged" | "backupCode" | "passwordOptional" | "backToSignIn" | "useAnotherAddress" | "checkEmail" | "newCodeSent" | "sendNewCode" | "sendNewCodeIn" | "signInCodeDescription" | "signInCodeSent" | "signUpCodeDescription" | "signUpCodeSent" | "noAdminTitle" | "noAdminDescription" | "noAdminExplanation" | "copyCommand" | "firstAdminExplanation" | "firstAdminLink" | "tooManyAttempts" | "resetTitle" | "resetDescription" | "sendResetLink" | "resetSent" | "linkExpiredTitle" | "linkExpiredExplanation" | "sendNewLink" | "passwordsDiffer" | "choosePassword" | "atLeast" | "useAtLeast" | "passwordTooLong" | "repeatPassword" | "signingInWith" | "takingYouTo" | "providerNotOffered" | "turnOnTwoFactor" | "addPasskey" | "requiredForEveryAccount" | "passkeyExplanation" | "couldNotReadAccount" | "signInTitle" | "runsOnProtobase" | "continueWith" | "signInWithPasskey" | "passkeyFor" | "emailSignInCode" | "usePassword" | "forgotPassword" | "newHere" | "haveAccount" | "createAnAccount" | "browse" | "notNow" | "detailsTitle" | "detailsDescription" | "codeWasRight" | "withoutPassword" | "createAccount" | "codeToConfirm" | "emailCode" | "browseWithoutAccount" | "staffTitle" | "staffUnavailable" | "signInAsPerson" | "forStaffOf" | "theirEmail" | "reasonExample" | "staffExplanation" | "totpInstruction" | "otpInstruction" | "backupInstruction" | "twoFactorTitle" | "twoFactorDescription" | "codeToFinish" | "trustBrowser" | "trustBrowserFor" | "useAuthenticator" | "emailCodeInstead" | "useBackupCode", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
6
6
  };
7
7
  //#endregion
@@ -1,7 +1,7 @@
1
1
  import { MessageValue } from "../locale/messages.js";
2
2
  //#region src/calls/messages.d.ts
3
3
  export declare const text: {
4
- (id: "join" | "leave" | "camera" | "microphone" | "you" | "accept" | "decline" | "startCall" | "inProgress" | "people" | "joinCall" | "shareScreen" | "stopSharing" | "muted" | "alone" | "connecting" | "reconnecting" | "full" | "removed" | "ended" | "refused" | "unavailable" | "callAgain" | "noMicrophone" | "noCamera" | "noDevices" | "cannotConnect" | "poorConnection" | "goodConnection" | "sharing" | "youAreSharing" | "speaking" | "preview" | "guestName" | "denied" | "waiting" | "askToJoin" | "someone" | "guests" | "waitingGuest" | "admit" | "deny" | "remove" | "revoke" | "newLink" | "copyLink" | "copied" | "guestLinks" | "noLinks" | "inLobby" | "guestsInCall" | "guestsMaySend" | "sendAll" | "sendCamera" | "sendMicrophone" | "linkUntil" | "linkUntilEnd" | "linkLasts" | "forAnHour" | "addressesVisible" | "guestRefused" | "close" | "yourName" | "guestIntro" | "continue" | "youLeft", values?: Record<string, MessageValue>): string;
5
- rich(id: "join" | "leave" | "camera" | "microphone" | "you" | "accept" | "decline" | "startCall" | "inProgress" | "people" | "joinCall" | "shareScreen" | "stopSharing" | "muted" | "alone" | "connecting" | "reconnecting" | "full" | "removed" | "ended" | "refused" | "unavailable" | "callAgain" | "noMicrophone" | "noCamera" | "noDevices" | "cannotConnect" | "poorConnection" | "goodConnection" | "sharing" | "youAreSharing" | "speaking" | "preview" | "guestName" | "denied" | "waiting" | "askToJoin" | "someone" | "guests" | "waitingGuest" | "admit" | "deny" | "remove" | "revoke" | "newLink" | "copyLink" | "copied" | "guestLinks" | "noLinks" | "inLobby" | "guestsInCall" | "guestsMaySend" | "sendAll" | "sendCamera" | "sendMicrophone" | "linkUntil" | "linkUntilEnd" | "linkLasts" | "forAnHour" | "addressesVisible" | "guestRefused" | "close" | "yourName" | "guestIntro" | "continue" | "youLeft", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
4
+ (id: "join" | "camera" | "microphone" | "you" | "accept" | "decline" | "startCall" | "inProgress" | "people" | "joinCall" | "leave" | "shareScreen" | "stopSharing" | "muted" | "alone" | "connecting" | "reconnecting" | "full" | "removed" | "ended" | "refused" | "unavailable" | "callAgain" | "noMicrophone" | "noCamera" | "noDevices" | "cannotConnect" | "poorConnection" | "goodConnection" | "sharing" | "youAreSharing" | "speaking" | "preview" | "guestName" | "denied" | "waiting" | "askToJoin" | "someone" | "guests" | "waitingGuest" | "admit" | "deny" | "remove" | "revoke" | "newLink" | "copyLink" | "copied" | "guestLinks" | "noLinks" | "inLobby" | "guestsInCall" | "guestsMaySend" | "sendAll" | "sendCamera" | "sendMicrophone" | "linkUntil" | "linkUntilEnd" | "linkLasts" | "forAnHour" | "addressesVisible" | "guestRefused" | "close" | "yourName" | "guestIntro" | "continue" | "youLeft", values?: Record<string, MessageValue>): string;
5
+ rich(id: "join" | "camera" | "microphone" | "you" | "accept" | "decline" | "startCall" | "inProgress" | "people" | "joinCall" | "leave" | "shareScreen" | "stopSharing" | "muted" | "alone" | "connecting" | "reconnecting" | "full" | "removed" | "ended" | "refused" | "unavailable" | "callAgain" | "noMicrophone" | "noCamera" | "noDevices" | "cannotConnect" | "poorConnection" | "goodConnection" | "sharing" | "youAreSharing" | "speaking" | "preview" | "guestName" | "denied" | "waiting" | "askToJoin" | "someone" | "guests" | "waitingGuest" | "admit" | "deny" | "remove" | "revoke" | "newLink" | "copyLink" | "copied" | "guestLinks" | "noLinks" | "inLobby" | "guestsInCall" | "guestsMaySend" | "sendAll" | "sendCamera" | "sendMicrophone" | "linkUntil" | "linkUntilEnd" | "linkLasts" | "forAnHour" | "addressesVisible" | "guestRefused" | "close" | "yourName" | "guestIntro" | "continue" | "youLeft", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
6
6
  };
7
7
  //#endregion
@@ -22,11 +22,13 @@ export type ComposerProps = {
22
22
  canSendEmpty?: boolean;
23
23
  /** Gets the files pasted into the box or dropped on the composer; the composer itself uploads and sends nothing. A paste that holds text stays text. */
24
24
  onFiles?: (files: File[]) => void;
25
+ /** Gets the box's text each time the person changes it, such as to tell others they type. */
26
+ onDraft?: (text: string) => void;
25
27
  };
26
28
  /**
27
29
  * The text box under a chat, which grows with its text. Enter or the button sends the trimmed text and clears the box, once it is sent when `onSend` returns a promise;
28
30
  * Shift+Enter starts a new line; while the list of people to mention is open, Enter picks from it instead. With `canSendEmpty`,
29
31
  * such as while files are picked, it sends with no text too.
30
32
  */
31
- export declare const Composer: ({ onSend, busy, placeholder, inputRef, searchPeople, attachments, actions, canSendEmpty, onFiles }: ComposerProps) => import("react").JSX.Element;
33
+ export declare const Composer: ({ onSend, busy, placeholder, inputRef, searchPeople, attachments, actions, canSendEmpty, onFiles, onDraft }: ComposerProps) => import("react").JSX.Element;
32
34
  //#endregion
@@ -13,8 +13,12 @@ import { jsx, jsxs } from "react/jsx-runtime";
13
13
  * Shift+Enter starts a new line; while the list of people to mention is open, Enter picks from it instead. With `canSendEmpty`,
14
14
  * such as while files are picked, it sends with no text too.
15
15
  */
16
- const Composer = ({ onSend, busy, placeholder, inputRef, searchPeople, attachments, actions, canSendEmpty, onFiles }) => {
16
+ const Composer = ({ onSend, busy, placeholder, inputRef, searchPeople, attachments, actions, canSendEmpty, onFiles, onDraft }) => {
17
17
  const [draft, setDraft] = useState(emptyDraft);
18
+ const edit = (next) => {
19
+ setDraft(next);
20
+ onDraft?.(next.text);
21
+ };
18
22
  const message = draft.text.trim();
19
23
  const sendable = canSend(message, {
20
24
  busy,
@@ -74,7 +78,7 @@ const Composer = ({ onSend, busy, placeholder, inputRef, searchPeople, attachmen
74
78
  "aria-label": text("message"),
75
79
  placeholder,
76
80
  value: draft,
77
- onChange: setDraft,
81
+ onChange: edit,
78
82
  searchPeople,
79
83
  listAt: "above",
80
84
  onKeyDown,
@@ -1,7 +1,7 @@
1
1
  import { MessageValue } from "../locale/messages.js";
2
2
  //#region src/chat/messages.d.ts
3
3
  export declare const text: {
4
- (id: "today" | "yesterday" | "send" | "message" | "newMessages" | "loadEarlier" | "working", values?: Record<string, MessageValue>): string;
5
- rich(id: "today" | "yesterday" | "send" | "message" | "newMessages" | "loadEarlier" | "working", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
4
+ (id: "send" | "today" | "message" | "yesterday" | "newMessages" | "loadEarlier" | "working", values?: Record<string, MessageValue>): string;
5
+ rich(id: "send" | "today" | "message" | "yesterday" | "newMessages" | "loadEarlier" | "working", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
6
6
  };
7
7
  //#endregion
@@ -1,7 +1,7 @@
1
1
  import { MessageValue } from "../locale/messages.js";
2
2
  //#region src/compact-table/messages.d.ts
3
3
  export declare const text: {
4
- (id: "rows" | "table" | "noRows" | "cutOff", values?: Record<string, MessageValue>): string;
5
- rich(id: "rows" | "table" | "noRows" | "cutOff", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
4
+ (id: "table" | "noRows" | "rows" | "cutOff", values?: Record<string, MessageValue>): string;
5
+ rich(id: "table" | "noRows" | "rows" | "cutOff", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
6
6
  };
7
7
  //#endregion
@@ -60,6 +60,17 @@ export declare const useClient: () => {
60
60
  submitForm: (name: string, values: Record<string, unknown>, proof: import("@protobase/client").FormProof) => Promise<void>;
61
61
  live: (handlers: import("@protobase/client").LiveHandlers) => () => void;
62
62
  channel: (resource: string, key: import("@protobase/schema").KeyValue | readonly import("@protobase/schema").KeyValue[]) => import("@protobase/client").Channel;
63
+ relay: {
64
+ follow: (handlers: import("@protobase/client").RelayHandlers) => () => void;
65
+ status: () => import("@protobase/client").RelayStatus;
66
+ joined: (channel: string) => boolean;
67
+ join: (channel: string) => () => void;
68
+ send: (channel: string, event: string, payload: Record<string, unknown>) => Promise<void>;
69
+ direct: (to: string, event: string, payload: Record<string, unknown>) => Promise<void>;
70
+ view: (channel: string, keys: readonly string[] | undefined) => void;
71
+ reconnect: () => void;
72
+ presence: (next: import("@protobase/client").OwnPresence) => void;
73
+ };
63
74
  bridges: {
64
75
  open: (name: string, target: string) => Promise<import("@protobase/client").OpenedBridge>;
65
76
  };
@@ -161,6 +172,17 @@ export declare const useResourceClient: (resource: string) => {
161
172
  submitForm: (name: string, values: Record<string, unknown>, proof: import("@protobase/client").FormProof) => Promise<void>;
162
173
  live: (handlers: import("@protobase/client").LiveHandlers) => () => void;
163
174
  channel: (resource: string, key: import("@protobase/schema").KeyValue | readonly import("@protobase/schema").KeyValue[]) => import("@protobase/client").Channel;
175
+ relay: {
176
+ follow: (handlers: import("@protobase/client").RelayHandlers) => () => void;
177
+ status: () => import("@protobase/client").RelayStatus;
178
+ joined: (channel: string) => boolean;
179
+ join: (channel: string) => () => void;
180
+ send: (channel: string, event: string, payload: Record<string, unknown>) => Promise<void>;
181
+ direct: (to: string, event: string, payload: Record<string, unknown>) => Promise<void>;
182
+ view: (channel: string, keys: readonly string[] | undefined) => void;
183
+ reconnect: () => void;
184
+ presence: (next: import("@protobase/client").OwnPresence) => void;
185
+ };
164
186
  bridges: {
165
187
  open: (name: string, target: string) => Promise<import("@protobase/client").OpenedBridge>;
166
188
  };
@@ -259,6 +281,17 @@ export declare const useResourceClients: () => (resource: string) => {
259
281
  submitForm: (name: string, values: Record<string, unknown>, proof: import("@protobase/client").FormProof) => Promise<void>;
260
282
  live: (handlers: import("@protobase/client").LiveHandlers) => () => void;
261
283
  channel: (resource: string, key: import("@protobase/schema").KeyValue | readonly import("@protobase/schema").KeyValue[]) => import("@protobase/client").Channel;
284
+ relay: {
285
+ follow: (handlers: import("@protobase/client").RelayHandlers) => () => void;
286
+ status: () => import("@protobase/client").RelayStatus;
287
+ joined: (channel: string) => boolean;
288
+ join: (channel: string) => () => void;
289
+ send: (channel: string, event: string, payload: Record<string, unknown>) => Promise<void>;
290
+ direct: (to: string, event: string, payload: Record<string, unknown>) => Promise<void>;
291
+ view: (channel: string, keys: readonly string[] | undefined) => void;
292
+ reconnect: () => void;
293
+ presence: (next: import("@protobase/client").OwnPresence) => void;
294
+ };
262
295
  bridges: {
263
296
  open: (name: string, target: string) => Promise<import("@protobase/client").OpenedBridge>;
264
297
  };
@@ -54,6 +54,10 @@ export type MetaData = {
54
54
  status?: boolean;
55
55
  /** Whether the app has calls, which ring people on any page they have open (see `CallRings`). */
56
56
  calls?: boolean;
57
+ /** With the app's realtime relay: the resources whose changes it notices, which pages hear of from it (see `RelayProvider`). */
58
+ relay?: {
59
+ resources: string[];
60
+ };
57
61
  /** The language the app's screens are in for everyone, when it sets one (see `AppLocale`). */
58
62
  locale?: Locale;
59
63
  /** The app's own texts in the user's language, the messages their pages' `<Trans>` elements name (see `AppTexts`). */
@@ -1,8 +1,11 @@
1
1
  import { MetaData } from "./meta-data.js";
2
2
  //#region src/data/use-live-updates.d.ts
3
3
  /**
4
- * Keeps what the page shows of the app's `.live()` resources current: hears which records change (`client.live`) and
5
- * reads again the lists, records and counts of their resources. Connects only when the caller reads a live resource.
4
+ * Keeps what the page shows of the app's `.live()` resources current: hears which records change and reads again the
5
+ * lists, records and counts of their resources. With the app's realtime relay, the resources it notices are heard of
6
+ * from it, only those of the channel an open conversation shows while one is open, and all of them read again once
7
+ * after it reconnects; the others from `client.live`, which connects only when
8
+ * the caller reads such a resource.
6
9
  */
7
10
  export declare const useLiveUpdates: (meta: MetaData) => void;
8
11
  //#endregion
@@ -1,19 +1,41 @@
1
1
  import { FocusRefreshContext } from "./focus-refresh.js";
2
2
  import { useClient } from "./api-provider.js";
3
3
  import { sourceStatusOf } from "./with-sources.js";
4
+ import { useRelay } from "../relay/relay-context.js";
4
5
  import { liveRefresh } from "./live-refresh.js";
5
6
  import { useContext, useEffect, useMemo } from "react";
6
7
  import { useQueryClient } from "@tanstack/react-query";
7
8
  //#region src/data/use-live-updates.ts
8
9
  /**
9
- * Keeps what the page shows of the app's `.live()` resources current: hears which records change (`client.live`) and
10
- * reads again the lists, records and counts of their resources. Connects only when the caller reads a live resource.
10
+ * Keeps what the page shows of the app's `.live()` resources current: hears which records change and reads again the
11
+ * lists, records and counts of their resources. With the app's realtime relay, the resources it notices are heard of
12
+ * from it, only those of the channel an open conversation shows while one is open, and all of them read again once
13
+ * after it reconnects; the others from `client.live`, which connects only when
14
+ * the caller reads such a resource.
11
15
  */
12
16
  const useLiveUpdates = (meta) => {
13
17
  const client = useClient();
18
+ const relay = useRelay();
14
19
  const queryClient = useQueryClient();
15
20
  const focusRefresh = useContext(FocusRefreshContext);
16
- const live = useMemo(() => Object.values(meta.resources).filter((model) => model.live && !sourceStatusOf(meta, model.name)).map((model) => model.name).sort().join(","), [meta]);
21
+ const noticed = useMemo(() => relay ? new Set(meta.relay?.resources ?? []) : /* @__PURE__ */ new Set(), [relay, meta.relay]);
22
+ const live = useMemo(() => Object.values(meta.resources).filter((model) => model.live && !noticed.has(model.name) && !sourceStatusOf(meta, model.name)).map((model) => model.name).sort().join(","), [meta, noticed]);
23
+ useEffect(() => {
24
+ if (!relay || noticed.size === 0) return;
25
+ const refresh = liveRefresh(queryClient, () => focusRefresh?.paused() ?? false);
26
+ const stopNotices = relay.store.onNotice((notice) => relay.store.shows(notice) && refresh.changed([notice.resource]));
27
+ const stopResync = relay.store.onResync(() => refresh.changed(noticed));
28
+ return () => {
29
+ stopNotices();
30
+ stopResync();
31
+ refresh.stop();
32
+ };
33
+ }, [
34
+ relay,
35
+ noticed,
36
+ queryClient,
37
+ focusRefresh
38
+ ]);
17
39
  useEffect(() => {
18
40
  if (!live) return;
19
41
  const refresh = liveRefresh(queryClient, () => focusRefresh?.paused() ?? false);
@@ -51,6 +51,7 @@ const useMeta = () => {
51
51
  ...result.meta.notifications?.bell && { bell: true },
52
52
  ...result.meta.status && { status: true },
53
53
  ...result.meta.calls && { calls: true },
54
+ ...result.meta.relay && { relay: result.meta.relay },
54
55
  ...result.meta.locale && { locale: result.meta.locale },
55
56
  ...result.meta.texts && { texts: result.meta.texts },
56
57
  ...result.meta.files && { files: result.meta.files },
@@ -1,7 +1,7 @@
1
1
  import { MessageValue } from "../locale/messages.js";
2
2
  //#region src/data-grid/messages.d.ts
3
3
  export declare const text: {
4
- (id: "row" | "new" | "selected" | "no" | "shownIn" | "unsortable" | "columnMenu" | "unpin" | "pinToLeft" | "resizeColumn" | "clearSelection" | "noRowsSelected" | "selectRow" | "rowActions" | "move" | "reorderInstructions" | "pickedUp" | "isOver" | "droppedAt" | "putBack" | "cancelled", values?: Record<string, MessageValue>): string;
5
- rich(id: "row" | "new" | "selected" | "no" | "shownIn" | "unsortable" | "columnMenu" | "unpin" | "pinToLeft" | "resizeColumn" | "clearSelection" | "noRowsSelected" | "selectRow" | "rowActions" | "move" | "reorderInstructions" | "pickedUp" | "isOver" | "droppedAt" | "putBack" | "cancelled", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
4
+ (id: "row" | "new" | "no" | "shownIn" | "unsortable" | "columnMenu" | "unpin" | "pinToLeft" | "resizeColumn" | "selected" | "clearSelection" | "noRowsSelected" | "selectRow" | "rowActions" | "move" | "reorderInstructions" | "pickedUp" | "isOver" | "droppedAt" | "putBack" | "cancelled", values?: Record<string, MessageValue>): string;
5
+ rich(id: "row" | "new" | "no" | "shownIn" | "unsortable" | "columnMenu" | "unpin" | "pinToLeft" | "resizeColumn" | "selected" | "clearSelection" | "noRowsSelected" | "selectRow" | "rowActions" | "move" | "reorderInstructions" | "pickedUp" | "isOver" | "droppedAt" | "putBack" | "cancelled", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
6
6
  };
7
7
  //#endregion
@@ -1,7 +1,7 @@
1
1
  import { MessageValue } from "../locale/messages.js";
2
2
  //#region src/filter-panel/messages.d.ts
3
3
  export declare const text: {
4
- (id: "date" | "remove" | "today" | "yesterday" | "24h" | "7d" | "30d" | "90d" | "month" | "quarter" | "year" | "unknownPreset" | "unsupported" | "clearAll" | "searchIn" | "noMatches" | "moreFilters" | "filters" | "showOnly" | "minimum" | "maximum" | "couldNotLoadCounts", values?: Record<string, MessageValue>): string;
5
- rich(id: "date" | "remove" | "today" | "yesterday" | "24h" | "7d" | "30d" | "90d" | "month" | "quarter" | "year" | "unknownPreset" | "unsupported" | "clearAll" | "searchIn" | "noMatches" | "moreFilters" | "filters" | "showOnly" | "minimum" | "maximum" | "couldNotLoadCounts", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
4
+ (id: "remove" | "noMatches" | "date" | "today" | "maximum" | "minimum" | "year" | "month" | "yesterday" | "24h" | "7d" | "30d" | "90d" | "quarter" | "unknownPreset" | "unsupported" | "clearAll" | "searchIn" | "moreFilters" | "filters" | "showOnly" | "couldNotLoadCounts", values?: Record<string, MessageValue>): string;
5
+ rich(id: "remove" | "noMatches" | "date" | "today" | "maximum" | "minimum" | "year" | "month" | "yesterday" | "24h" | "7d" | "30d" | "90d" | "quarter" | "unknownPreset" | "unsupported" | "clearAll" | "searchIn" | "moreFilters" | "filters" | "showOnly" | "couldNotLoadCounts", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
6
6
  };
7
7
  //#endregion
package/dist/index.d.ts CHANGED
@@ -69,6 +69,10 @@ import { ToneEdge } from "./app/related-cards/tone-edge.js";
69
69
  import { AppLink, useAppAddress } from "./app/use-app-address.js";
70
70
  import { useApiToken } from "./auth/use-api-token.js";
71
71
  import { SignedInUser, useSignedInUser } from "./auth/use-signed-in-user.js";
72
+ import { useTypers } from "./relay/relay-context.js";
73
+ import { TypingLine } from "./relay/typing-line.js";
74
+ import { useTypingSender } from "./relay/use-typing-sender.js";
75
+ import { useViewChannel } from "./relay/use-view-channel.js";
72
76
  import { statusRefreshMs, useOwnStatus, useStatuses } from "./status/use-statuses.js";
73
77
  import { CallView, CallViewProps } from "./calls/call-view.js";
74
78
  import { RecordCall, RecordCallProps } from "./calls/record-call.js";
@@ -132,4 +136,4 @@ import { RecordPicker, RecordPickerProps } from "./app/record-picker.js";
132
136
  import { Spinner } from "./primitives/spinner.js";
133
137
  import { uiReadyEvent } from "./app/ui-ready.js";
134
138
  import { useQuery, useQueryClient } from "@tanstack/react-query";
135
- export { ActionCard, type ActionCardProps, type ActionContext, type ActionHandler, ActionInputError, type ActionInputProps, ApiProvider, type ApiProviderProps, App, AppLink, AppMark, type AppMarkProps, type AppProps, AssistantDock, type AssistantDockProps, AuthLayout, type AuthLayoutProps, AvailabilityMark, type BackendData, type BackendRefresh, type BeforeSignInProps, type BoardDrop, type BoardDropContext, type BoardDropUndo, type BoardDropWrite, Button, type ButtonProps, CallMark, type CallMarkProps, CallView, type CallViewProps, type CardAction, type CardTone, Carousel, type CarouselImage, type CarouselProps, type ChatAuthor, ChatDivider, type ChatDividerProps, ChatMessage, type ChatMessageProps, ChatThread, type ChatThreadProps, type ChoiceOption, Choices, type ChoicesProps, CodeForm, type CodeFormProps, CompactTable, type CompactTableProps, type ComponentRead, type ComponentReads, type ComponentSelect, Composer, type ComposerProps, type CreateForm, type CreateFormOptions, type CurrentAddress, Dialog, type DialogProps, type DiffLine, DiffView, type DiffViewProps, type Drop, type DropRule, Field, FieldBadge, FieldList, type FieldProps, type FieldWidget, type FieldWidgetEditorProps, type FieldWidgetProps, FileReadError, type FileViewer, type FileViewerProps, type FocusAction, FocusActions, FocusNotice, type FocusNoticeProps, FocusPage, type FocusPageProps, FocusPanel, type FocusPanelProps, type FocusRecord, type FocusSize, FocusSlot, type FocusSlotProps, type FocusZone, Form, type FormProps, type FrameLink, type FrameScripts, HtmlFrame, InPlaceForm, type InPlaceFormProps, Input, type InputProps, type LayoutRecord, type LinkAddress, type ListAddress, type ListChange, type ListDisplay, type ListDisplayRow, LogoMark, Markdown, type MarkdownContentProps as MarkdownProps, type MarksHook, type Member, type MembersResult, MentionBox, type MentionBoxProps, type MentionDraft, MentionedText, MenuSelect, type MenuSelectProps, MenuSurface, type MenuSurfaceProps, type MetaData, type NoticeLevel, OtpInput, type OtpInputProps, PartView, type PatchFile, type PeopleSearch, type PickedUser, type PickerGroup, type PickerItem, type PluginInfo, type Presence, type PresenceHook, type ProjectUi, type PushState, RecordCall, type RecordCallProps, type RecordCardProps, RecordLink, type RecordMark, RecordPicker, type RecordPickerProps, ResendCodeButton, type ResendCodeButtonProps, ResponsiveDialog, type ResponsiveDialogProps, RouteLink, type RouteTarget, SearchPicker, type SearchPickerProps, Section, Segmented, type SegmentedOption, type SegmentedProps, Select, type SelectProps, type ShellLogoProps, type SiblingFile, type SiblingPage, SidePanel, type SidePanelProps, SignInPrompt, type SignInPromptProps, type SignedInUser, Spinner, StatusMark, type StatusMarkProps, type Step, StepList, type StepState, Textarea, type TextareaProps, type TitleReader, type TitleRule, type ToastAction, type ToastApi, type ToastState, ToneEdge, type ViewedFile, allowDelayMs, buttonClass, chatDayLabel, closeSidebarEvent, definePlugin, defineUi, diffStats, emptyDraft, extensionPointsOf, fileNamed, isConflict, isFramed, logoTapEvent, mentionedIds, menuItemClass, mergeUi, parseDiff, parsePatch, pluginApi, pluginsChangedEvent, protobaseVersion, sameChatDay, showTextsIn, siblingPage, signedOutEvent, statusRefreshMs, uiFromModule, uiReadyEvent, useApiToken, useAppAddress, useArmedAfterFocus, useAssistant, useAssistantClient, useBackendData, useClient, useComponentReads, useComponentSelect, useCreateForm, useFacets, useFieldControl, useFileText, useFocusPage, useFocusRecord, useFocusZoneFilled, useGuardedPress, useHistogram, useInbox, useLayoutRecord, useList, useListDisplay, useMarkNotificationsRead, useMembers, useMeta, useOwnStatus, usePlugin, usePopoverMenu, usePresence, usePushNotifications, useQuery, useQueryClient, useRecord, useRecordCallAddress, useRecordCalls, useResourceClient, useSeries, useSiblingPage, useSignedInUser, useStatuses, useToast, useUnreadNotifications, useUpdateRecord };
139
+ export { ActionCard, type ActionCardProps, type ActionContext, type ActionHandler, ActionInputError, type ActionInputProps, ApiProvider, type ApiProviderProps, App, AppLink, AppMark, type AppMarkProps, type AppProps, AssistantDock, type AssistantDockProps, AuthLayout, type AuthLayoutProps, AvailabilityMark, type BackendData, type BackendRefresh, type BeforeSignInProps, type BoardDrop, type BoardDropContext, type BoardDropUndo, type BoardDropWrite, Button, type ButtonProps, CallMark, type CallMarkProps, CallView, type CallViewProps, type CardAction, type CardTone, Carousel, type CarouselImage, type CarouselProps, type ChatAuthor, ChatDivider, type ChatDividerProps, ChatMessage, type ChatMessageProps, ChatThread, type ChatThreadProps, type ChoiceOption, Choices, type ChoicesProps, CodeForm, type CodeFormProps, CompactTable, type CompactTableProps, type ComponentRead, type ComponentReads, type ComponentSelect, Composer, type ComposerProps, type CreateForm, type CreateFormOptions, type CurrentAddress, Dialog, type DialogProps, type DiffLine, DiffView, type DiffViewProps, type Drop, type DropRule, Field, FieldBadge, FieldList, type FieldProps, type FieldWidget, type FieldWidgetEditorProps, type FieldWidgetProps, FileReadError, type FileViewer, type FileViewerProps, type FocusAction, FocusActions, FocusNotice, type FocusNoticeProps, FocusPage, type FocusPageProps, FocusPanel, type FocusPanelProps, type FocusRecord, type FocusSize, FocusSlot, type FocusSlotProps, type FocusZone, Form, type FormProps, type FrameLink, type FrameScripts, HtmlFrame, InPlaceForm, type InPlaceFormProps, Input, type InputProps, type LayoutRecord, type LinkAddress, type ListAddress, type ListChange, type ListDisplay, type ListDisplayRow, LogoMark, Markdown, type MarkdownContentProps as MarkdownProps, type MarksHook, type Member, type MembersResult, MentionBox, type MentionBoxProps, type MentionDraft, MentionedText, MenuSelect, type MenuSelectProps, MenuSurface, type MenuSurfaceProps, type MetaData, type NoticeLevel, OtpInput, type OtpInputProps, PartView, type PatchFile, type PeopleSearch, type PickedUser, type PickerGroup, type PickerItem, type PluginInfo, type Presence, type PresenceHook, type ProjectUi, type PushState, RecordCall, type RecordCallProps, type RecordCardProps, RecordLink, type RecordMark, RecordPicker, type RecordPickerProps, ResendCodeButton, type ResendCodeButtonProps, ResponsiveDialog, type ResponsiveDialogProps, RouteLink, type RouteTarget, SearchPicker, type SearchPickerProps, Section, Segmented, type SegmentedOption, type SegmentedProps, Select, type SelectProps, type ShellLogoProps, type SiblingFile, type SiblingPage, SidePanel, type SidePanelProps, SignInPrompt, type SignInPromptProps, type SignedInUser, Spinner, StatusMark, type StatusMarkProps, type Step, StepList, type StepState, Textarea, type TextareaProps, type TitleReader, type TitleRule, type ToastAction, type ToastApi, type ToastState, ToneEdge, TypingLine, type ViewedFile, allowDelayMs, buttonClass, chatDayLabel, closeSidebarEvent, definePlugin, defineUi, diffStats, emptyDraft, extensionPointsOf, fileNamed, isConflict, isFramed, logoTapEvent, mentionedIds, menuItemClass, mergeUi, parseDiff, parsePatch, pluginApi, pluginsChangedEvent, protobaseVersion, sameChatDay, showTextsIn, siblingPage, signedOutEvent, statusRefreshMs, uiFromModule, uiReadyEvent, useApiToken, useAppAddress, useArmedAfterFocus, useAssistant, useAssistantClient, useBackendData, useClient, useComponentReads, useComponentSelect, useCreateForm, useFacets, useFieldControl, useFileText, useFocusPage, useFocusRecord, useFocusZoneFilled, useGuardedPress, useHistogram, useInbox, useLayoutRecord, useList, useListDisplay, useMarkNotificationsRead, useMembers, useMeta, useOwnStatus, usePlugin, usePopoverMenu, usePresence, usePushNotifications, useQuery, useQueryClient, useRecord, useRecordCallAddress, useRecordCalls, useResourceClient, useSeries, useSiblingPage, useSignedInUser, useStatuses, useToast, useTypers, useTypingSender, useUnreadNotifications, useUpdateRecord, useViewChannel };
package/dist/index.js CHANGED
@@ -27,6 +27,7 @@ import { extensionPointsOf } from "./plugins/extension-points.js";
27
27
  import { pluginsChangedEvent } from "./plugins/plugin-source.js";
28
28
  import { useApiToken } from "./auth/use-api-token.js";
29
29
  import { useSignedInUser } from "./auth/use-signed-in-user.js";
30
+ import { useTypers } from "./relay/relay-context.js";
30
31
  import { useRecord } from "./data/use-record.js";
31
32
  import { useToast } from "./toasts/toast-provider.js";
32
33
  import { usePresence } from "./presence/presence.js";
@@ -58,6 +59,9 @@ import { FieldBadge } from "./app/field-badge.js";
58
59
  import { ToneEdge } from "./app/related-cards/tone-edge.js";
59
60
  import { useListDisplay } from "./app/displays/display-context.js";
60
61
  import { RecordLink } from "./app/displays/record-link.js";
62
+ import { TypingLine } from "./relay/typing-line.js";
63
+ import { useTypingSender } from "./relay/use-typing-sender.js";
64
+ import { useViewChannel } from "./relay/use-view-channel.js";
61
65
  import { CallView } from "./calls/call-view.js";
62
66
  import { useRecordCallAddress } from "./calls/use-record-call-address.js";
63
67
  import { RecordCall } from "./calls/record-call.js";
@@ -102,4 +106,4 @@ import { useCreateForm } from "./app/create/use-create-form.js";
102
106
  import { InPlaceForm } from "./app/create/in-place-form.js";
103
107
  import { RecordPicker } from "./app/record-picker.js";
104
108
  import { useQuery, useQueryClient } from "@tanstack/react-query";
105
- export { ActionCard, ActionInputError, ApiProvider, App, AppLink, AppMark, AssistantDock, AuthLayout, AvailabilityMark, Button, CallMark, CallView, Carousel, ChatDivider, ChatMessage, ChatThread, Choices, CodeForm, CompactTable, Composer, Dialog, DiffView, Field, FieldBadge, FieldList, FileReadError, FocusActions, FocusNotice, FocusPage, FocusPanel, FocusSlot, Form, HtmlFrame, InPlaceForm, Input, LogoMark, Markdown, MentionBox, MentionedText, MenuSelect, MenuSurface, OtpInput, PartView, RecordCall, RecordLink, RecordPicker, ResendCodeButton, ResponsiveDialog, RouteLink, SearchPicker, Section, Segmented, Select, SidePanel, SignInPrompt, Spinner, StatusMark, StepList, Textarea, ToneEdge, allowDelayMs, buttonClass, chatDayLabel, closeSidebarEvent, definePlugin, defineUi, diffStats, emptyDraft, extensionPointsOf, fileNamed, isConflict, isFramed, logoTapEvent, mentionedIds, menuItemClass, mergeUi, parseDiff, parsePatch, pluginApi, pluginsChangedEvent, protobaseVersion, sameChatDay, showTextsIn, siblingPage, signedOutEvent, statusRefreshMs, uiFromModule, uiReadyEvent, useApiToken, useAppAddress, useArmedAfterFocus, useAssistant, useAssistantClient, useBackendData, useClient, useComponentReads, useComponentSelect, useCreateForm, useFacets, useFieldControl, useFileText, useFocusPage, useFocusRecord, useFocusZoneFilled, useGuardedPress, useHistogram, useInbox, useLayoutRecord, useList, useListDisplay, useMarkNotificationsRead, useMembers, useMeta, useOwnStatus, usePlugin, usePopoverMenu, usePresence, usePushNotifications, useQuery, useQueryClient, useRecord, useRecordCallAddress, useRecordCalls, useResourceClient, useSeries, useSiblingPage, useSignedInUser, useStatuses, useToast, useUnreadNotifications, useUpdateRecord };
109
+ export { ActionCard, ActionInputError, ApiProvider, App, AppLink, AppMark, AssistantDock, AuthLayout, AvailabilityMark, Button, CallMark, CallView, Carousel, ChatDivider, ChatMessage, ChatThread, Choices, CodeForm, CompactTable, Composer, Dialog, DiffView, Field, FieldBadge, FieldList, FileReadError, FocusActions, FocusNotice, FocusPage, FocusPanel, FocusSlot, Form, HtmlFrame, InPlaceForm, Input, LogoMark, Markdown, MentionBox, MentionedText, MenuSelect, MenuSurface, OtpInput, PartView, RecordCall, RecordLink, RecordPicker, ResendCodeButton, ResponsiveDialog, RouteLink, SearchPicker, Section, Segmented, Select, SidePanel, SignInPrompt, Spinner, StatusMark, StepList, Textarea, ToneEdge, TypingLine, allowDelayMs, buttonClass, chatDayLabel, closeSidebarEvent, definePlugin, defineUi, diffStats, emptyDraft, extensionPointsOf, fileNamed, isConflict, isFramed, logoTapEvent, mentionedIds, menuItemClass, mergeUi, parseDiff, parsePatch, pluginApi, pluginsChangedEvent, protobaseVersion, sameChatDay, showTextsIn, siblingPage, signedOutEvent, statusRefreshMs, uiFromModule, uiReadyEvent, useApiToken, useAppAddress, useArmedAfterFocus, useAssistant, useAssistantClient, useBackendData, useClient, useComponentReads, useComponentSelect, useCreateForm, useFacets, useFieldControl, useFileText, useFocusPage, useFocusRecord, useFocusZoneFilled, useGuardedPress, useHistogram, useInbox, useLayoutRecord, useList, useListDisplay, useMarkNotificationsRead, useMembers, useMeta, useOwnStatus, usePlugin, usePopoverMenu, usePresence, usePushNotifications, useQuery, useQueryClient, useRecord, useRecordCallAddress, useRecordCalls, useResourceClient, useSeries, useSiblingPage, useSignedInUser, useStatuses, useToast, useTypers, useTypingSender, useUnreadNotifications, useUpdateRecord, useViewChannel };
@@ -1,7 +1,7 @@
1
1
  import { MessageValue } from "../locale/messages.js";
2
2
  //#region src/invitations/messages.d.ts
3
3
  export declare const text: {
4
- (id: "email" | "revoke" | "invite" | "expired" | "until" | "sendAgain" | "passLinkOn", values?: Record<string, MessageValue>): string;
5
- rich(id: "email" | "revoke" | "invite" | "expired" | "until" | "sendAgain" | "passLinkOn", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
4
+ (id: "revoke" | "until" | "email" | "invite" | "expired" | "sendAgain" | "passLinkOn", values?: Record<string, MessageValue>): string;
5
+ rich(id: "revoke" | "until" | "email" | "invite" | "expired" | "sendAgain" | "passLinkOn", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
6
6
  };
7
7
  //#endregion
package/dist/locale/en.js CHANGED
@@ -355,7 +355,9 @@ var en_default = {
355
355
  "loading": "Loading...",
356
356
  "couldNotLoad": "Could not load",
357
357
  "viewAll": "View all",
358
- "couldNotSearch": "Could not search <lower>{label}</lower>"
358
+ "couldNotSearch": "Could not search <lower>{label}</lower>",
359
+ "typing": "typing…",
360
+ "unread": "{count, plural, one {# unread message} other {# unread messages}}"
359
361
  },
360
362
  "app/built-in-views": {
361
363
  "table_definitions.tables.names.singular": "Table",
@@ -726,7 +728,10 @@ var en_default = {
726
728
  "fileNotUploaded": "Not uploaded: {reason}",
727
729
  "uploadedPercent": "{percent}%",
728
730
  "fileMissing": "This file is missing",
729
- "couldNotLoadFiles": "Could not load the files"
731
+ "couldNotLoadFiles": "Could not load the files",
732
+ "typingOne": "{name} is typing…",
733
+ "typingTwo": "{first} and {second} are typing…",
734
+ "typingMany": "Several people are typing…"
730
735
  },
731
736
  "app/create": {
732
737
  "title": "New <lower>{noun}</lower>",
@@ -358,6 +358,8 @@ declare const _exports: {
358
358
  couldNotLoad: string;
359
359
  viewAll: string;
360
360
  couldNotSearch: string;
361
+ typing: string;
362
+ unread: string;
361
363
  };
362
364
  "app/built-in-views": {
363
365
  "table_definitions.tables.names.singular": string;
@@ -729,6 +731,9 @@ declare const _exports: {
729
731
  uploadedPercent: string;
730
732
  fileMissing: string;
731
733
  couldNotLoadFiles: string;
734
+ typingOne: string;
735
+ typingTwo: string;
736
+ typingMany: string;
732
737
  };
733
738
  "app/create": {
734
739
  title: string;