@protobase/ui 0.116.0 → 0.117.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 (328) hide show
  1. package/dist/account/messages.d.ts +2 -2
  2. package/dist/app/app.js +84 -50
  3. package/dist/app/bottom-bar-from-meta.d.ts +8 -2
  4. package/dist/app/bottom-bar-from-meta.js +23 -11
  5. package/dist/app/charts/messages.d.ts +2 -2
  6. package/dist/app/comments/messages.d.ts +2 -2
  7. package/dist/app/confirm-sign-in-messages.d.ts +2 -2
  8. package/dist/app/create/messages.d.ts +2 -2
  9. package/dist/app/delete/messages.d.ts +2 -2
  10. package/dist/app/displays/messages.d.ts +2 -2
  11. package/dist/app/export/export-dialog.js +1 -1
  12. package/dist/app/export/messages.d.ts +2 -2
  13. package/dist/app/field-types/custom-step-container/messages.d.ts +2 -2
  14. package/dist/app/field-types/runner-install/messages.d.ts +2 -2
  15. package/dist/app/field-types/workflow/messages.d.ts +2 -2
  16. package/dist/app/field-types/workflow-page/messages.d.ts +2 -2
  17. package/dist/app/field-types/workflow-run/messages.d.ts +2 -2
  18. package/dist/app/field-types/workflow-status/messages.d.ts +2 -2
  19. package/dist/app/file-viewers/messages.d.ts +2 -2
  20. package/dist/app/focus/messages.d.ts +2 -2
  21. package/dist/app/gallery/lightbox.js +1 -1
  22. package/dist/app/gallery/messages.d.ts +2 -2
  23. package/dist/app/hand-order/messages.d.ts +2 -2
  24. package/dist/app/history/messages.d.ts +2 -2
  25. package/dist/app/import/import-dialog.js +1 -1
  26. package/dist/app/import/messages.d.ts +2 -2
  27. package/dist/app/import/new-table/import-table-dialog.js +1 -1
  28. package/dist/app/list-messages.d.ts +2 -2
  29. package/dist/app/list-page.js +1 -1
  30. package/dist/app/messages.d.ts +2 -2
  31. package/dist/app/meta-gate-messages.d.ts +2 -2
  32. package/dist/app/new-version/messages.d.ts +2 -2
  33. package/dist/app/pages/action-inputs/action-inputs-dialog.js +1 -1
  34. package/dist/app/pages/messages.d.ts +2 -2
  35. package/dist/app/pages/record-actions.js +1 -1
  36. package/dist/app/record-chart/messages.d.ts +2 -2
  37. package/dist/app/record-messages.d.ts +2 -2
  38. package/dist/app/record-row/messages.d.ts +2 -2
  39. package/dist/app/refresh-mark.js +46 -10
  40. package/dist/app/related-cards/messages.d.ts +2 -2
  41. package/dist/app/runtime/messages.d.ts +2 -2
  42. package/dist/app/saved/messages.d.ts +2 -2
  43. package/dist/app/searches/messages.d.ts +2 -2
  44. package/dist/app/searches/update-search-dialog.js +1 -1
  45. package/dist/app-shell/account-entry.d.ts +17 -0
  46. package/dist/app-shell/account-entry.js +40 -0
  47. package/dist/app-shell/app-shell.d.ts +13 -1
  48. package/dist/app-shell/app-shell.js +80 -10
  49. package/dist/app-shell/back-target.d.ts +3 -2
  50. package/dist/app-shell/back-target.js +4 -3
  51. package/dist/app-shell/bottom-bar.d.ts +15 -3
  52. package/dist/app-shell/bottom-bar.js +70 -42
  53. package/dist/app-shell/brand-bar.d.ts +15 -0
  54. package/dist/app-shell/brand-bar.js +19 -0
  55. package/dist/app-shell/brand-status-bar.d.ts +8 -0
  56. package/dist/app-shell/brand-status-bar.js +27 -0
  57. package/dist/app-shell/breadcrumb.d.ts +4 -2
  58. package/dist/app-shell/breadcrumb.js +45 -37
  59. package/dist/app-shell/drawer.d.ts +2 -1
  60. package/dist/app-shell/drawer.js +22 -5
  61. package/dist/app-shell/global-search.d.ts +3 -1
  62. package/dist/app-shell/global-search.js +4 -4
  63. package/dist/app-shell/index.js +2 -2
  64. package/dist/app-shell/leading-slot.d.ts +9 -0
  65. package/dist/app-shell/leading-slot.js +10 -0
  66. package/dist/app-shell/logo.js +2 -1
  67. package/dist/app-shell/menu-page.d.ts +19 -0
  68. package/dist/app-shell/menu-page.js +29 -0
  69. package/dist/app-shell/messages.d.ts +2 -2
  70. package/dist/app-shell/more-page.d.ts +45 -0
  71. package/dist/app-shell/more-page.js +30 -0
  72. package/dist/app-shell/native-tab-bar.d.ts +47 -0
  73. package/dist/app-shell/native-tab-bar.js +45 -0
  74. package/dist/app-shell/page-scroll.d.ts +3 -2
  75. package/dist/app-shell/page-scroll.js +5 -3
  76. package/dist/app-shell/profile-menu.d.ts +5 -1
  77. package/dist/app-shell/profile-menu.js +138 -117
  78. package/dist/app-shell/sidebar.d.ts +12 -1
  79. package/dist/app-shell/sidebar.js +20 -10
  80. package/dist/app-shell/tab-icon.d.ts +7 -0
  81. package/dist/app-shell/tab-icon.js +38 -0
  82. package/dist/app-shell/top-bar.d.ts +19 -3
  83. package/dist/app-shell/top-bar.js +104 -60
  84. package/dist/app-shell/use-native-bottom-bar.d.ts +16 -0
  85. package/dist/app-shell/use-native-bottom-bar.js +62 -0
  86. package/dist/assistant-dock/messages.d.ts +2 -2
  87. package/dist/auth/messages.d.ts +2 -2
  88. package/dist/calls/call-guests-panel.js +2 -2
  89. package/dist/calls/messages.d.ts +2 -2
  90. package/dist/carousel/messages.d.ts +2 -2
  91. package/dist/chat/messages.d.ts +2 -2
  92. package/dist/data-grid/header-menu.js +33 -28
  93. package/dist/data-grid/messages.d.ts +2 -2
  94. package/dist/data-grid/row-menu.js +38 -33
  95. package/dist/filter-panel/messages.d.ts +2 -2
  96. package/dist/focus-page/bar-actions.js +1 -1
  97. package/dist/format/messages.d.ts +2 -2
  98. package/dist/index.d.ts +2 -1
  99. package/dist/index.js +5 -4
  100. package/dist/inline-child-table/messages.d.ts +2 -2
  101. package/dist/invitations/messages.d.ts +2 -2
  102. package/dist/live/messages.d.ts +2 -2
  103. package/dist/locale/en.js +7 -0
  104. package/dist/locale/en.json.d.ts +7 -0
  105. package/dist/locale/messages.d.ts +14 -0
  106. package/dist/locale/nl.js +7 -0
  107. package/dist/mailbox/messages.d.ts +2 -2
  108. package/dist/mocks/customers.d.ts +1 -1
  109. package/dist/mocks/invoices.d.ts +2 -2
  110. package/dist/mocks/orders.d.ts +1 -1
  111. package/dist/notifications/bell/messages.d.ts +2 -2
  112. package/dist/notifications/bell/notification-bell.js +40 -35
  113. package/dist/organizations/messages.d.ts +2 -2
  114. package/dist/package.js +1 -1
  115. package/dist/primitives/avatar.d.ts +1 -1
  116. package/dist/primitives/avatar.js +2 -1
  117. package/dist/primitives/drawer-math.d.ts +39 -0
  118. package/dist/primitives/drawer-math.js +43 -0
  119. package/dist/primitives/menu-select.js +51 -44
  120. package/dist/primitives/menu-surface.d.ts +22 -0
  121. package/dist/primitives/menu-surface.js +29 -0
  122. package/dist/primitives/messages.d.ts +2 -2
  123. package/dist/primitives/popover-menu.js +1 -0
  124. package/dist/primitives/sheet-drag.d.ts +5 -5
  125. package/dist/primitives/sheet-drag.js +10 -16
  126. package/dist/primitives/sheet.d.ts +5 -2
  127. package/dist/primitives/sheet.js +9 -6
  128. package/dist/primitives/use-drawer-drag.d.ts +34 -0
  129. package/dist/primitives/use-drawer-drag.js +103 -0
  130. package/dist/primitives/use-sheet-drag.d.ts +2 -2
  131. package/dist/primitives/use-sheet-drag.js +10 -9
  132. package/dist/record-view/action-menu.js +45 -40
  133. package/dist/shell/assets/{account-page-9Aq9kvrG.js → account-page-dcJyxP-d.js} +2 -2
  134. package/dist/shell/assets/app-BAQxWF5r.css +2 -0
  135. package/dist/shell/assets/app-DTl8rg8j.js +34 -0
  136. package/dist/shell/assets/{assistant-shell-BGtjYwwY.js → assistant-shell-Bw1jJrLm.js} +2 -2
  137. package/dist/shell/assets/board-display-DDFDZzOk.js +2 -0
  138. package/dist/shell/assets/{calendar-display-DKXi1P_o.js → calendar-display-B0R6JkIL.js} +2 -2
  139. package/dist/shell/assets/call-rings-CzvSKlfI.js +2 -0
  140. package/dist/shell/assets/{calls-DR-Ci2ND.js → calls-BgwbMyeR.js} +2 -2
  141. package/dist/shell/assets/{circle-alert-C0Jeesr7.js → circle-alert-CANqQIsU.js} +2 -2
  142. package/dist/shell/assets/composed-page-gwTeW0b3.js +2 -0
  143. package/dist/shell/assets/{composer-section-rLoyhseD.js → composer-section-gsOgYgY2.js} +2 -2
  144. package/dist/shell/assets/{connect-route-B9xNNieq.js → connect-route-CtL1EJIN.js} +2 -2
  145. package/dist/shell/assets/{copy-field-DkCyHPwg.js → copy-field-CamvXHHQ.js} +2 -2
  146. package/dist/shell/assets/create-route-Cx8yqS-H.js +2 -0
  147. package/dist/shell/assets/{custom-step-container-field-Do5pWJ_q.js → custom-step-container-field-0-Q_RuZy.js} +4 -4
  148. package/dist/shell/assets/embedded-list-56J4XDiR.js +3 -0
  149. package/dist/shell/assets/en-CtEQkQWj.js +2 -0
  150. package/dist/shell/assets/{export-dialog-CovrAwYy.js → export-dialog-CEp2g6vx.js} +2 -2
  151. package/dist/shell/assets/export-worker-DlWkifnE.js +15 -0
  152. package/dist/shell/assets/{graph-view-BfRhAOfb.js → graph-view-CgjfBK_g.js} +2 -2
  153. package/dist/shell/assets/{group-donut-DC8GLnC8.js → group-donut-DGZUg_gn.js} +2 -2
  154. package/dist/shell/assets/{guest-call-page-Dc8M5yz6.js → guest-call-page-BhTshbrl.js} +3 -3
  155. package/dist/shell/assets/{html-viewer-DH_s-gLB.js → html-viewer-GD1mwLEo.js} +2 -2
  156. package/dist/shell/assets/{import-dialog-Ge24RdwQ.js → import-dialog-ByRCf2Cp.js} +2 -2
  157. package/dist/shell/assets/import-table-dialog-CiDY_0RT.js +2 -0
  158. package/dist/shell/assets/{index-Bi_Jks-d.js → index-PtDa8a1m.js} +1 -1
  159. package/dist/shell/assets/invitations-page-Bh-RCnnl.js +2 -0
  160. package/dist/shell/assets/{layout-grid-DCBxzjaE.js → layout-grid-DJrFC12w.js} +2 -2
  161. package/dist/shell/assets/{legend-item-BZXnHPzh.js → legend-item-YdN_NHUz.js} +2 -2
  162. package/dist/shell/assets/{lib-vis.gl-react-maplibre-CdxVSk--.js → lib-vis.gl-react-maplibre-1cv426UN.js} +2 -2
  163. package/dist/shell/assets/list-page-BU1MrXbN.js +4 -0
  164. package/dist/shell/assets/maplibre-BedvDUG2.js +2 -0
  165. package/dist/shell/assets/{markdown-content-DMl-cVjQ.js → markdown-content-BlKajH2l.js} +2 -2
  166. package/dist/shell/assets/members-page-BYUO0Dq2.js +2 -0
  167. package/dist/shell/assets/{messages-D5XhIbDz.js → messages-DQ0cj-Ao.js} +2 -2
  168. package/dist/shell/assets/nl-9OWL4NdF.js +2 -0
  169. package/dist/shell/assets/organization-page-BrC1nHC-.js +2 -0
  170. package/dist/shell/assets/organizations-page-CaUeWdr4.js +2 -0
  171. package/dist/shell/assets/parse-worker-NutG5-Js.js +35 -0
  172. package/dist/shell/assets/{pending-invitation-row-BIO4J3ts.js → pending-invitation-row-juUdWvG6.js} +2 -2
  173. package/dist/shell/assets/{period-chart-CoT2IDzy.js → period-chart-BUZhUb5l.js} +2 -2
  174. package/dist/shell/assets/{person-row-DBeHOA2K.js → person-row-DH3JhMfz.js} +2 -2
  175. package/dist/shell/assets/public-form-page-d3TamPPE.js +2 -0
  176. package/dist/shell/assets/record-lines-NtlHP9Lz.js +2 -0
  177. package/dist/shell/assets/{record-map-BR34Q9uI.js → record-map-BDXoF9AS.js} +2 -2
  178. package/dist/shell/assets/{record-opens-Dbjd4FLe.js → record-opens-C1KgR6ff.js} +2 -2
  179. package/dist/shell/assets/record-page-D88DdoET.js +3 -0
  180. package/dist/shell/assets/record-preview-BT9_Hdcn.js +2 -0
  181. package/dist/shell/assets/{records-map-CXanq-qN.js → records-map-BjHcY5gU.js} +2 -2
  182. package/dist/shell/assets/render-node-v6KfRocH.js +3 -0
  183. package/dist/shell/assets/reorder-button-B3GeKMOJ.js +2 -0
  184. package/dist/shell/assets/{run-trace-view-D1DZCrDs.js → run-trace-view-Ddc0SELh.js} +2 -2
  185. package/dist/shell/assets/{runner-install-field-C2XhrG0M.js → runner-install-field-CiD9Pw1j.js} +2 -2
  186. package/dist/shell/assets/{runtime-update-C5TxLpYf.js → runtime-update-CoXcnfxB.js} +2 -2
  187. package/dist/shell/assets/shared-protobase-ui-CwLnXvxx.js +1 -0
  188. package/dist/shell/assets/sheet-source-DbJu1SrV.js +3 -0
  189. package/dist/shell/assets/sign-in-policy-page-B40iAeJa.js +2 -0
  190. package/dist/shell/assets/start-block-queries-C_udrEM9.js +2 -0
  191. package/dist/shell/assets/step-catalog-7obnZV6X.js +2 -0
  192. package/dist/shell/assets/{step-panel-TfW-31Gv.js → step-panel-BM_xu6Yy.js} +2 -2
  193. package/dist/shell/assets/timeline-display-CdLfWAbQ.js +2 -0
  194. package/dist/shell/assets/{trash-BjnGkZfx.js → trash-BHo3HvFy.js} +2 -2
  195. package/dist/shell/assets/{update-set-BahNKmxv.js → update-set-DTikSoau.js} +2 -2
  196. package/dist/shell/assets/use-calendar-move-Bhha2yOp.js +2 -0
  197. package/dist/shell/assets/{use-display-rows-DsBBYuKB.js → use-display-rows-CS_0O_UE.js} +2 -2
  198. package/dist/shell/assets/{use-paged-search-DaT4uUhX.js → use-paged-search-ChxCRCpF.js} +2 -2
  199. package/dist/shell/assets/{use-run-trace-DHk7l8MX.js → use-run-trace-BfRRgSgG.js} +2 -2
  200. package/dist/shell/assets/{use-workflow-page-DPIhXcnb.js → use-workflow-page-CTdBd8_8.js} +2 -2
  201. package/dist/shell/assets/{use-workflow-types-Bp8iqkBg.js → use-workflow-types-cZQ59ATf.js} +2 -2
  202. package/dist/shell/assets/{vendor-DQHyyBk1.js → vendor-t7Q7QbPu.js} +2 -2
  203. package/dist/shell/assets/{workflow-canvas-CiGUTx4K.js → workflow-canvas-B0kWJeH0.js} +4 -4
  204. package/dist/shell/assets/{workflow-field-lqBx3RDj.js → workflow-field-DXIk6V2Y.js} +3 -3
  205. package/dist/shell/assets/{workflow-graph-editor-DgufTFii.js → workflow-graph-editor-Cem4aY2u.js} +2 -2
  206. package/dist/shell/assets/{workflow-run-field-C4BtvPnB.js → workflow-run-field-BeMn3eOH.js} +3 -3
  207. package/dist/shell/assets/workflow-status-field-0wvGDiva.js +2 -0
  208. package/dist/shell/assets/workflow-workbench-qT5c0xnH.js +4 -0
  209. package/dist/shell/index.html +5 -5
  210. package/dist/shell/protobase.shell.json +3 -3
  211. package/dist/shell/protobase.sw.js +2 -2
  212. package/dist/shell-source-maps/assets/{account-page-9Aq9kvrG.js.map → account-page-dcJyxP-d.js.map} +1 -1
  213. package/dist/shell-source-maps/assets/app-DTl8rg8j.js.map +1 -0
  214. package/dist/shell-source-maps/assets/{assistant-shell-BGtjYwwY.js.map → assistant-shell-Bw1jJrLm.js.map} +1 -1
  215. package/dist/shell-source-maps/assets/{board-display-Ck6nnv4b.js.map → board-display-DDFDZzOk.js.map} +1 -1
  216. package/dist/shell-source-maps/assets/{calendar-display-DKXi1P_o.js.map → calendar-display-B0R6JkIL.js.map} +1 -1
  217. package/dist/shell-source-maps/assets/{call-rings-Bs9dtURX.js.map → call-rings-CzvSKlfI.js.map} +1 -1
  218. package/dist/shell-source-maps/assets/{calls-DR-Ci2ND.js.map → calls-BgwbMyeR.js.map} +1 -1
  219. package/dist/shell-source-maps/assets/{circle-alert-C0Jeesr7.js.map → circle-alert-CANqQIsU.js.map} +1 -1
  220. package/dist/shell-source-maps/assets/{composed-page-Bdzzzuyj.js.map → composed-page-gwTeW0b3.js.map} +1 -1
  221. package/dist/shell-source-maps/assets/{composer-section-rLoyhseD.js.map → composer-section-gsOgYgY2.js.map} +1 -1
  222. package/dist/shell-source-maps/assets/{connect-route-B9xNNieq.js.map → connect-route-CtL1EJIN.js.map} +1 -1
  223. package/dist/shell-source-maps/assets/{copy-field-DkCyHPwg.js.map → copy-field-CamvXHHQ.js.map} +1 -1
  224. package/dist/shell-source-maps/assets/{create-route-DBrv5Kqi.js.map → create-route-Cx8yqS-H.js.map} +1 -1
  225. package/dist/shell-source-maps/assets/{custom-step-container-field-Do5pWJ_q.js.map → custom-step-container-field-0-Q_RuZy.js.map} +1 -1
  226. package/dist/shell-source-maps/assets/embedded-list-56J4XDiR.js.map +1 -0
  227. package/dist/shell-source-maps/assets/en-CtEQkQWj.js.map +1 -0
  228. package/dist/shell-source-maps/assets/{export-dialog-CovrAwYy.js.map → export-dialog-CEp2g6vx.js.map} +1 -1
  229. package/dist/shell-source-maps/assets/export-worker-DlWkifnE.js.map +1 -0
  230. package/dist/shell-source-maps/assets/{graph-view-BfRhAOfb.js.map → graph-view-CgjfBK_g.js.map} +1 -1
  231. package/dist/shell-source-maps/assets/{group-donut-DC8GLnC8.js.map → group-donut-DGZUg_gn.js.map} +1 -1
  232. package/dist/shell-source-maps/assets/{guest-call-page-Dc8M5yz6.js.map → guest-call-page-BhTshbrl.js.map} +1 -1
  233. package/dist/shell-source-maps/assets/{html-viewer-DH_s-gLB.js.map → html-viewer-GD1mwLEo.js.map} +1 -1
  234. package/dist/shell-source-maps/assets/{import-dialog-Ge24RdwQ.js.map → import-dialog-ByRCf2Cp.js.map} +1 -1
  235. package/dist/shell-source-maps/assets/{import-table-dialog-D1aVXF3R.js.map → import-table-dialog-CiDY_0RT.js.map} +1 -1
  236. package/dist/shell-source-maps/assets/{invitations-page-CFwYUoqb.js.map → invitations-page-Bh-RCnnl.js.map} +1 -1
  237. package/dist/shell-source-maps/assets/{layout-grid-DCBxzjaE.js.map → layout-grid-DJrFC12w.js.map} +1 -1
  238. package/dist/shell-source-maps/assets/{legend-item-BZXnHPzh.js.map → legend-item-YdN_NHUz.js.map} +1 -1
  239. package/dist/shell-source-maps/assets/{lib-vis.gl-react-maplibre-CdxVSk--.js.map → lib-vis.gl-react-maplibre-1cv426UN.js.map} +1 -1
  240. package/dist/shell-source-maps/assets/{list-page-DwIEEzTz.js.map → list-page-BU1MrXbN.js.map} +1 -1
  241. package/dist/shell-source-maps/assets/{maplibre-C7kZagL3.js.map → maplibre-BedvDUG2.js.map} +1 -1
  242. package/dist/shell-source-maps/assets/{markdown-content-DMl-cVjQ.js.map → markdown-content-BlKajH2l.js.map} +1 -1
  243. package/dist/shell-source-maps/assets/{members-page-BfrzLCXo.js.map → members-page-BYUO0Dq2.js.map} +1 -1
  244. package/dist/shell-source-maps/assets/{messages-D5XhIbDz.js.map → messages-DQ0cj-Ao.js.map} +1 -1
  245. package/dist/shell-source-maps/assets/nl-9OWL4NdF.js.map +1 -0
  246. package/dist/shell-source-maps/assets/{organization-page-DxA2154P.js.map → organization-page-BrC1nHC-.js.map} +1 -1
  247. package/dist/shell-source-maps/assets/{organizations-page-Bf4oXbvZ.js.map → organizations-page-CaUeWdr4.js.map} +1 -1
  248. package/dist/shell-source-maps/assets/parse-worker-NutG5-Js.js.map +1 -0
  249. package/dist/shell-source-maps/assets/{pending-invitation-row-BIO4J3ts.js.map → pending-invitation-row-juUdWvG6.js.map} +1 -1
  250. package/dist/shell-source-maps/assets/{period-chart-CoT2IDzy.js.map → period-chart-BUZhUb5l.js.map} +1 -1
  251. package/dist/shell-source-maps/assets/{person-row-DBeHOA2K.js.map → person-row-DH3JhMfz.js.map} +1 -1
  252. package/dist/shell-source-maps/assets/{public-form-page-Dhinql3j.js.map → public-form-page-d3TamPPE.js.map} +1 -1
  253. package/dist/shell-source-maps/assets/{record-lines-Dmb8bl38.js.map → record-lines-NtlHP9Lz.js.map} +1 -1
  254. package/dist/shell-source-maps/assets/{record-map-BR34Q9uI.js.map → record-map-BDXoF9AS.js.map} +1 -1
  255. package/dist/shell-source-maps/assets/{record-opens-Dbjd4FLe.js.map → record-opens-C1KgR6ff.js.map} +1 -1
  256. package/dist/shell-source-maps/assets/{record-page-Dnpo_8uE.js.map → record-page-D88DdoET.js.map} +1 -1
  257. package/dist/shell-source-maps/assets/{record-preview-CarOT-Gn.js.map → record-preview-BT9_Hdcn.js.map} +1 -1
  258. package/dist/shell-source-maps/assets/{records-map-CXanq-qN.js.map → records-map-BjHcY5gU.js.map} +1 -1
  259. package/dist/shell-source-maps/assets/{render-node-DGYXKoGV.js.map → render-node-v6KfRocH.js.map} +1 -1
  260. package/dist/shell-source-maps/assets/{reorder-button-9_dAk_3O.js.map → reorder-button-B3GeKMOJ.js.map} +1 -1
  261. package/dist/shell-source-maps/assets/{run-trace-view-D1DZCrDs.js.map → run-trace-view-Ddc0SELh.js.map} +1 -1
  262. package/dist/shell-source-maps/assets/{runner-install-field-C2XhrG0M.js.map → runner-install-field-CiD9Pw1j.js.map} +1 -1
  263. package/dist/shell-source-maps/assets/{runtime-update-C5TxLpYf.js.map → runtime-update-CoXcnfxB.js.map} +1 -1
  264. package/dist/shell-source-maps/assets/{sheet-source-DqFYbJpm.js.map → sheet-source-DbJu1SrV.js.map} +1 -1
  265. package/dist/shell-source-maps/assets/{sign-in-policy-page-vjGTg9Do.js.map → sign-in-policy-page-B40iAeJa.js.map} +1 -1
  266. package/dist/shell-source-maps/assets/{start-block-queries-CmVDv8_F.js.map → start-block-queries-C_udrEM9.js.map} +1 -1
  267. package/dist/shell-source-maps/assets/{step-catalog-PWiIgJSI.js.map → step-catalog-7obnZV6X.js.map} +1 -1
  268. package/dist/shell-source-maps/assets/{step-panel-TfW-31Gv.js.map → step-panel-BM_xu6Yy.js.map} +1 -1
  269. package/dist/shell-source-maps/assets/{timeline-display-eBf3tuig.js.map → timeline-display-CdLfWAbQ.js.map} +1 -1
  270. package/dist/shell-source-maps/assets/{trash-BjnGkZfx.js.map → trash-BHo3HvFy.js.map} +1 -1
  271. package/dist/shell-source-maps/assets/{update-set-BahNKmxv.js.map → update-set-DTikSoau.js.map} +1 -1
  272. package/dist/shell-source-maps/assets/{use-calendar-move-Bfp2yC0P.js.map → use-calendar-move-Bhha2yOp.js.map} +1 -1
  273. package/dist/shell-source-maps/assets/{use-display-rows-DsBBYuKB.js.map → use-display-rows-CS_0O_UE.js.map} +1 -1
  274. package/dist/shell-source-maps/assets/{use-paged-search-DaT4uUhX.js.map → use-paged-search-ChxCRCpF.js.map} +1 -1
  275. package/dist/shell-source-maps/assets/{use-run-trace-DHk7l8MX.js.map → use-run-trace-BfRRgSgG.js.map} +1 -1
  276. package/dist/shell-source-maps/assets/{use-workflow-page-DPIhXcnb.js.map → use-workflow-page-CTdBd8_8.js.map} +1 -1
  277. package/dist/shell-source-maps/assets/{use-workflow-types-Bp8iqkBg.js.map → use-workflow-types-cZQ59ATf.js.map} +1 -1
  278. package/dist/shell-source-maps/assets/{vendor-DQHyyBk1.js.map → vendor-t7Q7QbPu.js.map} +1 -1
  279. package/dist/shell-source-maps/assets/{workflow-canvas-CiGUTx4K.js.map → workflow-canvas-B0kWJeH0.js.map} +1 -1
  280. package/dist/shell-source-maps/assets/{workflow-field-lqBx3RDj.js.map → workflow-field-DXIk6V2Y.js.map} +1 -1
  281. package/dist/shell-source-maps/assets/{workflow-graph-editor-DgufTFii.js.map → workflow-graph-editor-Cem4aY2u.js.map} +1 -1
  282. package/dist/shell-source-maps/assets/{workflow-run-field-C4BtvPnB.js.map → workflow-run-field-BeMn3eOH.js.map} +1 -1
  283. package/dist/shell-source-maps/assets/{workflow-status-field-CqDaP0V9.js.map → workflow-status-field-0wvGDiva.js.map} +1 -1
  284. package/dist/shell-source-maps/assets/{workflow-workbench-CgL6wHPG.js.map → workflow-workbench-qT5c0xnH.js.map} +1 -1
  285. package/dist/status/messages.d.ts +2 -2
  286. package/dist/status/status-dialog.js +1 -1
  287. package/dist/theme.css +6 -0
  288. package/dist/users/messages.d.ts +2 -2
  289. package/package.json +5 -5
  290. package/dist/shell/assets/app-BnDutf0s.js +0 -34
  291. package/dist/shell/assets/app-DcrDZ6Fc.css +0 -2
  292. package/dist/shell/assets/board-display-Ck6nnv4b.js +0 -2
  293. package/dist/shell/assets/call-rings-Bs9dtURX.js +0 -2
  294. package/dist/shell/assets/composed-page-Bdzzzuyj.js +0 -2
  295. package/dist/shell/assets/create-route-DBrv5Kqi.js +0 -2
  296. package/dist/shell/assets/embedded-list-CPgxhzPw.js +0 -3
  297. package/dist/shell/assets/en-B0Sx6LpA.js +0 -2
  298. package/dist/shell/assets/export-worker-DnXy8F95.js +0 -15
  299. package/dist/shell/assets/import-table-dialog-D1aVXF3R.js +0 -2
  300. package/dist/shell/assets/invitations-page-CFwYUoqb.js +0 -2
  301. package/dist/shell/assets/list-page-DwIEEzTz.js +0 -4
  302. package/dist/shell/assets/maplibre-C7kZagL3.js +0 -2
  303. package/dist/shell/assets/members-page-BfrzLCXo.js +0 -2
  304. package/dist/shell/assets/nl-DD4sTnQJ.js +0 -2
  305. package/dist/shell/assets/organization-page-DxA2154P.js +0 -2
  306. package/dist/shell/assets/organizations-page-Bf4oXbvZ.js +0 -2
  307. package/dist/shell/assets/parse-worker-BYXW4dAv.js +0 -35
  308. package/dist/shell/assets/public-form-page-Dhinql3j.js +0 -2
  309. package/dist/shell/assets/record-lines-Dmb8bl38.js +0 -2
  310. package/dist/shell/assets/record-page-Dnpo_8uE.js +0 -3
  311. package/dist/shell/assets/record-preview-CarOT-Gn.js +0 -2
  312. package/dist/shell/assets/render-node-DGYXKoGV.js +0 -3
  313. package/dist/shell/assets/reorder-button-9_dAk_3O.js +0 -2
  314. package/dist/shell/assets/shared-protobase-ui-HnfzBwws.js +0 -1
  315. package/dist/shell/assets/sheet-source-DqFYbJpm.js +0 -3
  316. package/dist/shell/assets/sign-in-policy-page-vjGTg9Do.js +0 -2
  317. package/dist/shell/assets/start-block-queries-CmVDv8_F.js +0 -2
  318. package/dist/shell/assets/step-catalog-PWiIgJSI.js +0 -2
  319. package/dist/shell/assets/timeline-display-eBf3tuig.js +0 -2
  320. package/dist/shell/assets/use-calendar-move-Bfp2yC0P.js +0 -2
  321. package/dist/shell/assets/workflow-status-field-CqDaP0V9.js +0 -2
  322. package/dist/shell/assets/workflow-workbench-CgL6wHPG.js +0 -4
  323. package/dist/shell-source-maps/assets/app-BnDutf0s.js.map +0 -1
  324. package/dist/shell-source-maps/assets/embedded-list-CPgxhzPw.js.map +0 -1
  325. package/dist/shell-source-maps/assets/en-B0Sx6LpA.js.map +0 -1
  326. package/dist/shell-source-maps/assets/export-worker-DnXy8F95.js.map +0 -1
  327. package/dist/shell-source-maps/assets/nl-DD4sTnQJ.js.map +0 -1
  328. package/dist/shell-source-maps/assets/parse-worker-BYXW4dAv.js.map +0 -1
@@ -1,24 +1,38 @@
1
1
  import { cn } from "../lib/cn.js";
2
2
  import { useFocusTrap } from "../lib/use-focus-trap.js";
3
3
  import { text } from "./messages.js";
4
+ import { useDrawerDrag } from "../primitives/use-drawer-drag.js";
4
5
  import { useEffect, useRef, useState } from "react";
5
6
  import { jsx, jsxs } from "react/jsx-runtime";
6
7
  //#region src/app-shell/drawer.tsx
7
8
  /** How long the drawer takes to slide in and out, and its backdrop to fade. */
8
9
  const drawerSlideMs = 200;
9
10
  /**
10
- * The sidebar on small screens: slides over the page, traps focus, closes on Escape, backdrop tap or navigation. It
11
+ * The sidebar on small screens: slides over the page, traps focus, closes on Escape, backdrop tap or navigation, and
12
+ * moves under the finger as the native drawer does (`useDrawerDrag`), a drag on it or on the dim closing it. It
11
13
  * slides in as it opens and out as it closes, however it is closed, such as a host's `protobase:close-sidebar`; with
12
14
  * less motion asked for it shows and goes at once.
13
15
  */
14
16
  const Drawer = ({ id, open, onClose, children }) => {
15
17
  const panel = useRef(null);
18
+ const backdrop = useRef(null);
16
19
  useFocusTrap(panel, open, onClose);
20
+ const draggedOut = useRef(false);
21
+ const { panelHandlers, backdropHandlers, dragged } = useDrawerDrag({
22
+ axis: "x",
23
+ panel,
24
+ backdrop,
25
+ onDraggedClosed: () => {
26
+ draggedOut.current = true;
27
+ onClose();
28
+ }
29
+ });
17
30
  const [leaving, setLeaving] = useState(false);
18
31
  const [wasOpen, setWasOpen] = useState(open);
19
32
  if (open !== wasOpen) {
20
33
  setWasOpen(open);
21
- setLeaving(!open);
34
+ setLeaving(!open && !draggedOut.current);
35
+ if (open) draggedOut.current = false;
22
36
  }
23
37
  useEffect(() => {
24
38
  if (!leaving) return;
@@ -29,8 +43,10 @@ const Drawer = ({ id, open, onClose, children }) => {
29
43
  return /* @__PURE__ */ jsxs("div", {
30
44
  className: cn("fixed inset-0 z-50 md:hidden", leaving && "pointer-events-none"),
31
45
  children: [/* @__PURE__ */ jsx("div", {
32
- className: cn("absolute inset-0 bg-backdrop/40 motion-reduce:[animation:none]", leaving ? "[animation:pb-fade-out_200ms_ease-in_forwards]" : "[animation:pb-fade-in_200ms_ease-out]"),
33
- onClick: onClose,
46
+ ref: backdrop,
47
+ className: cn("absolute inset-0 touch-none bg-backdrop/40 motion-reduce:[animation:none]", leaving ? "[animation:pb-fade-out_200ms_ease-in_forwards]" : "[animation:pb-fade-in_200ms_ease-out]"),
48
+ onClick: () => !dragged() && onClose(),
49
+ ...backdropHandlers,
34
50
  "aria-hidden": true
35
51
  }), /* @__PURE__ */ jsx("div", {
36
52
  ref: panel,
@@ -40,8 +56,9 @@ const Drawer = ({ id, open, onClose, children }) => {
40
56
  "aria-label": text("navigation"),
41
57
  "aria-hidden": leaving || void 0,
42
58
  tabIndex: -1,
43
- className: cn("absolute inset-y-0 left-0 flex w-[calc(15rem+var(--pb-safe-left))] max-w-[85vw] bg-sidebar pl-[var(--pb-safe-left)] shadow-pop outline-none motion-reduce:[animation:none]", leaving ? "[animation:pb-drawer-out_200ms_ease-in_forwards]" : "[animation:pb-drawer-in_200ms_ease-out]"),
59
+ className: cn("absolute inset-y-0 left-0 flex w-[min(88vw,384px)] touch-pan-y bg-sidebar pl-[var(--pb-safe-left)] shadow-pop outline-none motion-reduce:[animation:none] before:absolute before:inset-y-0 before:right-full before:w-10 before:bg-sidebar", leaving ? "[animation:pb-drawer-out_200ms_ease-in_forwards]" : "[animation:pb-drawer-in_200ms_ease-out]"),
44
60
  onClick: (event) => event.target.closest("a") && onClose(),
61
+ ...panelHandlers,
45
62
  children
46
63
  })]
47
64
  });
@@ -32,11 +32,13 @@ type GlobalSearchProps = {
32
32
  fieldClassName?: string;
33
33
  autoFocus?: boolean;
34
34
  showShortcut?: boolean;
35
+ /** The results in the page's flow below the field, while there is a query, rather than in a list over the page. */
36
+ inline?: boolean;
35
37
  ref?: Ref<HTMLInputElement>;
36
38
  };
37
39
  /**
38
40
  * A search box with grouped results under it, each a link: arrows move through them, Enter or a click opens one and
39
41
  * closes the list, keeping the text, so focusing the box again shows the same results. Escape clears, then leaves.
40
42
  */
41
- export declare const GlobalSearch: ({ search, className, fieldClassName, autoFocus, showShortcut, ref }: GlobalSearchProps) => import("react").JSX.Element;
43
+ export declare const GlobalSearch: ({ search, className, fieldClassName, autoFocus, showShortcut, inline, ref }: GlobalSearchProps) => import("react").JSX.Element;
42
44
  //#endregion
@@ -20,13 +20,13 @@ const opensElsewhere = (event) => event.metaKey || event.ctrlKey || event.shiftK
20
20
  * A search box with grouped results under it, each a link: arrows move through them, Enter or a click opens one and
21
21
  * closes the list, keeping the text, so focusing the box again shows the same results. Escape clears, then leaves.
22
22
  */
23
- const GlobalSearch = ({ search, className = "w-96", fieldClassName, autoFocus, showShortcut = true, ref }) => {
23
+ const GlobalSearch = ({ search, className = "w-96", fieldClassName, autoFocus, showShortcut = true, inline, ref }) => {
24
24
  const listId = useId();
25
25
  const input = useRef(null);
26
26
  const [focused, setFocused] = useState(false);
27
27
  const [active, setActive] = useState(-1);
28
28
  const hits = search.groups.flatMap((group) => group.hits);
29
- const open = focused && (search.query !== "" || search.loading);
29
+ const open = (focused || Boolean(inline)) && (search.query !== "" || search.loading);
30
30
  const optionId = (index) => `${listId}-${index}`;
31
31
  const root = useRef(null);
32
32
  const list = useRef(null);
@@ -102,11 +102,11 @@ const GlobalSearch = ({ search, className = "w-96", fieldClassName, autoFocus, s
102
102
  id: listId,
103
103
  role: "listbox",
104
104
  "aria-label": text("searchResults"),
105
- style: {
105
+ style: inline ? void 0 : {
106
106
  ...right,
107
107
  ...top
108
108
  },
109
- className: "absolute right-0 top-full z-40 mt-1 max-h-96 w-full min-w-72 overflow-y-auto rounded-lg border bg-background py-1 shadow-pop",
109
+ className: inline ? "mt-2 py-1" : "absolute right-0 top-full z-40 mt-1 max-h-96 w-full min-w-72 overflow-y-auto rounded-lg border bg-background py-1 shadow-pop",
110
110
  children: [search.groups.length === 0 && /* @__PURE__ */ jsx("p", {
111
111
  className: "px-3 py-2 text-muted-foreground",
112
112
  children: search.loading ? text("searching") : text("noMatches", { query: search.query })
@@ -3,12 +3,12 @@ import { usePageScroll } from "./page-scroll.js";
3
3
  import { LogoMark } from "./logo-mark.js";
4
4
  import { Logo } from "./logo.js";
5
5
  import { logoTapEvent } from "./logo-tap.js";
6
+ import { GlobalSearch, moveActive } from "./global-search.js";
7
+ import { topBarButton } from "./top-bar.js";
6
8
  import { sidebarModes } from "./sidebar-mode.js";
7
9
  import { StatusDot } from "./status-dot.js";
8
10
  import { Sidebar } from "./sidebar.js";
9
11
  import { useTopBarSlot } from "./top-bar-slot.js";
10
- import { GlobalSearch, moveActive } from "./global-search.js";
11
- import { topBarButton } from "./top-bar.js";
12
12
  import { AppShell } from "./app-shell.js";
13
13
  import { PageHeader } from "./page-header.js";
14
14
  export { AppShell, GlobalSearch, Logo, LogoMark, PageHeader, Sidebar, StatusDot, closeSidebarEvent, logoTapEvent, moveActive, sidebarModes, topBarButton, usePageScroll, useTopBarSlot };
@@ -0,0 +1,9 @@
1
+ //#region src/app-shell/leading-slot.d.ts
2
+ /**
3
+ * The top bar's leading slot on a phone, one layout for the app's logo and for the back link: a 28 point box at the
4
+ * bar's left inset, the app's mark or the back chevron, then the app's name or the page's title at the same place.
5
+ */
6
+ export declare const leadingRow = "flex min-w-0 items-center gap-2.5";
7
+ /** The slot's box: the app mark's size (`AppMark`'s `sm`), which the back chevron takes too. */
8
+ export declare const leadingBox = "size-7";
9
+ //#endregion
@@ -0,0 +1,10 @@
1
+ //#region src/app-shell/leading-slot.ts
2
+ /**
3
+ * The top bar's leading slot on a phone, one layout for the app's logo and for the back link: a 28 point box at the
4
+ * bar's left inset, the app's mark or the back chevron, then the app's name or the page's title at the same place.
5
+ */
6
+ const leadingRow = "flex min-w-0 items-center gap-2.5";
7
+ /** The slot's box: the app mark's size (`AppMark`'s `sm`), which the back chevron takes too. */
8
+ const leadingBox = "size-7";
9
+ //#endregion
10
+ export { leadingBox, leadingRow };
@@ -1,4 +1,5 @@
1
1
  import { cn } from "../lib/cn.js";
2
+ import { leadingRow } from "./leading-slot.js";
2
3
  import { LogoMark, solid } from "./logo-mark.js";
3
4
  import { AppMark } from "./app-mark.js";
4
5
  import { wordmarkPath } from "./wordmark-path.js";
@@ -21,7 +22,7 @@ const Wordmark = ({ className }) => /* @__PURE__ */ jsx("svg", {
21
22
  * icon alone when compact.
22
23
  */
23
24
  const Logo = ({ compact, workspace, appName, appIcon }) => /* @__PURE__ */ jsxs("div", {
24
- className: "flex items-center gap-2.5 overflow-hidden",
25
+ className: leadingRow,
25
26
  children: [/* @__PURE__ */ jsx(AppMark, {
26
27
  appName,
27
28
  appIcon
@@ -0,0 +1,19 @@
1
+ //#region src/app-shell/menu-page.d.ts
2
+ /** The sidebar as a page of its own, which "More" opens where the native tab bar draws the bottom bar. */
3
+ export declare const menuPagePath = "/-/menu";
4
+ /**
5
+ * Where the app goes instead of `path`: for the sidebar's own page, the first tab's address, `firstTab`, or the app's
6
+ * home without one, when the app is `starting` there, as the page is somewhere to go from a tab rather than to start,
7
+ * and whenever More page mode is off (`morePage`), as on a desktop, whose sidebar is beside every page. Nowhere for any
8
+ * other page, which opens as kept.
9
+ */
10
+ export declare const menuPageInstead: (path: string, firstTab: string | undefined, { starting, morePage }: {
11
+ starting: boolean;
12
+ morePage: boolean;
13
+ }) => string | undefined;
14
+ /**
15
+ * While the sidebar's own page shows, the whole document takes the sidebar's colour, so it fills the viewport behind
16
+ * the native tab bar and the areas a pull past either end shows, never the page's background.
17
+ */
18
+ export declare const useMenuPageBackground: (shown: boolean) => void;
19
+ //#endregion
@@ -0,0 +1,29 @@
1
+ import { useLayoutEffect } from "react";
2
+ //#region src/app-shell/menu-page.ts
3
+ /** The sidebar as a page of its own, which "More" opens where the native tab bar draws the bottom bar. */
4
+ const menuPagePath = "/-/menu";
5
+ /**
6
+ * Where the app goes instead of `path`: for the sidebar's own page, the first tab's address, `firstTab`, or the app's
7
+ * home without one, when the app is `starting` there, as the page is somewhere to go from a tab rather than to start,
8
+ * and whenever More page mode is off (`morePage`), as on a desktop, whose sidebar is beside every page. Nowhere for any
9
+ * other page, which opens as kept.
10
+ */
11
+ const menuPageInstead = (path, firstTab, { starting, morePage }) => path === "/-/menu" && (starting || !morePage) ? firstTab ?? "/" : void 0;
12
+ /**
13
+ * While the sidebar's own page shows, the whole document takes the sidebar's colour, so it fills the viewport behind
14
+ * the native tab bar and the areas a pull past either end shows, never the page's background.
15
+ */
16
+ const useMenuPageBackground = (shown) => {
17
+ useLayoutEffect(() => {
18
+ if (!shown) return;
19
+ const root = document.documentElement;
20
+ root.style.setProperty("background-color", "var(--color-sidebar)");
21
+ document.body.style.setProperty("background-color", "var(--color-sidebar)");
22
+ return () => {
23
+ root.style.removeProperty("background-color");
24
+ document.body.style.removeProperty("background-color");
25
+ };
26
+ }, [shown]);
27
+ };
28
+ //#endregion
29
+ export { menuPageInstead, menuPagePath, useMenuPageBackground };
@@ -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: "roles" | "signIn" | "resources" | "organizations" | "system" | "loading" | "signOut" | "breadcrumb" | "theme" | "search" | "tabs" | "navigation" | "more" | "openNavigation" | "backTo" | "closeSearch" | "clearSearch" | "globalSearch" | "searchResults" | "searching" | "noMatches" | "profileMenu" | "light" | "dark" | "recent" | "couldNotLoad" | "viewAll" | "couldNotSearch", values?: Record<string, MessageValue>): string;
5
- rich(id: "roles" | "signIn" | "resources" | "organizations" | "system" | "loading" | "signOut" | "breadcrumb" | "theme" | "search" | "tabs" | "navigation" | "more" | "openNavigation" | "backTo" | "closeSearch" | "clearSearch" | "globalSearch" | "searchResults" | "searching" | "noMatches" | "profileMenu" | "light" | "dark" | "recent" | "couldNotLoad" | "viewAll" | "couldNotSearch", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
4
+ (id: "roles" | "signIn" | "resources" | "organizations" | "system" | "theme" | "breadcrumb" | "search" | "tabs" | "navigation" | "more" | "openNavigation" | "backTo" | "closeSearch" | "clearSearch" | "globalSearch" | "searchResults" | "searching" | "noMatches" | "accountOf" | "profileMenu" | "signOut" | "light" | "dark" | "recent" | "loading" | "couldNotLoad" | "viewAll" | "couldNotSearch", values?: Record<string, MessageValue>): string;
5
+ rich(id: "roles" | "signIn" | "resources" | "organizations" | "system" | "theme" | "breadcrumb" | "search" | "tabs" | "navigation" | "more" | "openNavigation" | "backTo" | "closeSearch" | "clearSearch" | "globalSearch" | "searchResults" | "searching" | "noMatches" | "accountOf" | "profileMenu" | "signOut" | "light" | "dark" | "recent" | "loading" | "couldNotLoad" | "viewAll" | "couldNotSearch", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
6
6
  };
7
7
  //#endregion
@@ -0,0 +1,45 @@
1
+ import { BottomBarTab } from "./bottom-bar.js";
2
+ //#region src/app-shell/more-page.d.ts
3
+ /**
4
+ * Whether the shell is in "More page" mode, as a phone app with a tab bar is: the sidebar is a page of its own that
5
+ * "More" opens, the account sits at the top right of the tabs' pages, search is part of the bottom bar, and a page that
6
+ * is no tab leads back to More. `href` is the sidebar's page, `shown` whether the address is it, and `onTab` whether the
7
+ * page shown is one of the bottom bar's tabs.
8
+ */
9
+ export type MorePageMode = {
10
+ on: false;
11
+ } | {
12
+ on: true;
13
+ href: string;
14
+ shown: boolean;
15
+ onTab: boolean;
16
+ };
17
+ export type MorePageInput = {
18
+ desktop: boolean;
19
+ /** The bottom bar's tabs; none or an empty list when the app has no bottom bar. */
20
+ tabs: BottomBarTab[] | undefined;
21
+ /** The sidebar's own page, and whether the address is it; none where the app gives it no address. */
22
+ menuPage: {
23
+ href: string;
24
+ shown: boolean;
25
+ } | undefined;
26
+ };
27
+ /** The one place the mode is decided: on below the desktop width, with a bottom bar and a page for the sidebar. */
28
+ export declare const morePageMode: ({ desktop, tabs, menuPage }: MorePageInput) => MorePageMode;
29
+ /** `morePageMode` for the screen the shell is on. */
30
+ export declare const useMorePageMode: (tabs: BottomBarTab[] | undefined, menuPage: MorePageInput["menuPage"]) => MorePageMode;
31
+ /**
32
+ * Whether the account (the person's avatar, or a visitor's way in) is at the top right of the top bar rather than at
33
+ * the bottom of the sidebar: on every phone-width page, so its menu never opens over the sidebar's drawer.
34
+ */
35
+ export declare const accountInTopBar: (desktop: boolean) => boolean;
36
+ /**
37
+ * Where search is: in the top bar on a desktop and on a phone without a bottom bar; in More page mode, in the bottom bar
38
+ * where the app put it there (`m.search()`), and otherwise at the top of the More page.
39
+ */
40
+ export declare const searchPlacement: ({ desktop, more, inBottomBar }: {
41
+ desktop: boolean;
42
+ more: boolean;
43
+ inBottomBar: boolean;
44
+ }) => "top-bar" | "bottom-bar" | "more-page";
45
+ //#endregion
@@ -0,0 +1,30 @@
1
+ import { useIsDesktop } from "../lib/use-media-query.js";
2
+ //#region src/app-shell/more-page.ts
3
+ /** The one place the mode is decided: on below the desktop width, with a bottom bar and a page for the sidebar. */
4
+ const morePageMode = ({ desktop, tabs, menuPage }) => {
5
+ if (desktop || !tabs || tabs.length === 0 || !menuPage) return { on: false };
6
+ return {
7
+ on: true,
8
+ href: menuPage.href,
9
+ shown: menuPage.shown,
10
+ onTab: tabs.some((tab) => tab.active)
11
+ };
12
+ };
13
+ /** `morePageMode` for the screen the shell is on. */
14
+ const useMorePageMode = (tabs, menuPage) => morePageMode({
15
+ desktop: useIsDesktop(),
16
+ tabs,
17
+ menuPage
18
+ });
19
+ /**
20
+ * Whether the account (the person's avatar, or a visitor's way in) is at the top right of the top bar rather than at
21
+ * the bottom of the sidebar: on every phone-width page, so its menu never opens over the sidebar's drawer.
22
+ */
23
+ const accountInTopBar = (desktop) => !desktop;
24
+ /**
25
+ * Where search is: in the top bar on a desktop and on a phone without a bottom bar; in More page mode, in the bottom bar
26
+ * where the app put it there (`m.search()`), and otherwise at the top of the More page.
27
+ */
28
+ const searchPlacement = ({ desktop, more, inBottomBar }) => desktop || !more ? "top-bar" : inBottomBar ? "bottom-bar" : "more-page";
29
+ //#endregion
30
+ export { accountInTopBar, morePageMode, searchPlacement, useMorePageMode };
@@ -0,0 +1,47 @@
1
+ import { NativeBridge } from "../app/native-auth-fetch.js";
2
+ //#region src/app-shell/native-tab-bar.d.ts
3
+ /** The plugin that draws the mobile bottom bar as the system tab bar (@protobase/mobile's ProtobaseTabBar). */
4
+ export declare const nativeTabBarPlugin = "ProtobaseTabBar";
5
+ /**
6
+ * A tab as the native bar takes it: its label and its icon as a PNG data URL at 3x, `null` without one; `search` for the
7
+ * search tab, which the native bar draws as its own search.
8
+ */
9
+ export type NativeTab = {
10
+ label: string;
11
+ icon: string | null;
12
+ search?: true;
13
+ };
14
+ /** The bar the shell wants: none, or its tabs and the current one (`null` for none). */
15
+ export type NativeTabBarState = {
16
+ visible: false;
17
+ } | {
18
+ visible: true;
19
+ tabs: NativeTab[];
20
+ selected: number | null;
21
+ };
22
+ export type NativeTabBar = {
23
+ /**
24
+ * Asks for `state`, the whole of it each time, so the bar always shows what the shell last wanted; resolves with the
25
+ * bar's height while it shows, as `onHeight` tells it only when it changes.
26
+ */
27
+ set: (state: NativeTabBarState) => Promise<{
28
+ height?: number;
29
+ }>;
30
+ /** Calls `tap` with the index of each tab tapped; returns what stops it. */
31
+ onTap: (tap: (index: number) => void) => () => void;
32
+ /** Calls `told` with the bar's height in CSS pixels, the home indicator's inset included, whenever it changes. */
33
+ onHeight: (told: (height: number) => void) => () => void;
34
+ };
35
+ /** The native tab bar of the app the page runs in, when its bridge offers the plugin; `undefined` otherwise. */
36
+ export declare const nativeTabBar: (bridge: NativeBridge | undefined) => NativeTabBar | undefined;
37
+ /**
38
+ * The bar's state for tabs labelled `labels`, with `icons` in the same order, the current one at `selected` and, when
39
+ * there is one, search at `search`.
40
+ */
41
+ export declare const nativeTabBarState: (labels: string[], icons: Array<string | null>, selected: number, search?: number) => Extract<NativeTabBarState, {
42
+ visible: true;
43
+ }>;
44
+ /** The app's native tab bar (`nativeTabBar`), which the mobile bottom bar draws itself with when there is one. */
45
+ export declare const NativeTabBarContext: import("react").Context<NativeTabBar | undefined>;
46
+ export declare const useNativeTabBar: () => NativeTabBar | undefined;
47
+ //#endregion
@@ -0,0 +1,45 @@
1
+ import { createContext, useContext } from "react";
2
+ //#region src/app-shell/native-tab-bar.ts
3
+ /** The plugin that draws the mobile bottom bar as the system tab bar (@protobase/mobile's ProtobaseTabBar). */
4
+ const nativeTabBarPlugin = "ProtobaseTabBar";
5
+ const numberIn = (data, field) => {
6
+ const value = typeof data === "object" && data !== null ? data[field] : void 0;
7
+ return typeof value === "number" && Number.isFinite(value) ? value : void 0;
8
+ };
9
+ /** The native tab bar of the app the page runs in, when its bridge offers the plugin; `undefined` otherwise. */
10
+ const nativeTabBar = (bridge) => {
11
+ if (!bridge?.isPluginAvailable("ProtobaseTabBar")) return;
12
+ const listen = (event, field, accept, hand) => {
13
+ const listener = bridge.addListener(nativeTabBarPlugin, event, (data) => {
14
+ const value = numberIn(data, field);
15
+ if (value !== void 0 && accept(value)) hand(value);
16
+ });
17
+ return () => void listener.remove();
18
+ };
19
+ return {
20
+ set: async (state) => {
21
+ const height = numberIn(await bridge.nativePromise(nativeTabBarPlugin, "set", state), "height");
22
+ return height !== void 0 && height >= 0 ? { height } : {};
23
+ },
24
+ onTap: (tap) => listen("tap", "index", Number.isInteger, tap),
25
+ onHeight: (told) => listen("height", "height", (height) => height >= 0, told)
26
+ };
27
+ };
28
+ /**
29
+ * The bar's state for tabs labelled `labels`, with `icons` in the same order, the current one at `selected` and, when
30
+ * there is one, search at `search`.
31
+ */
32
+ const nativeTabBarState = (labels, icons, selected, search) => ({
33
+ visible: true,
34
+ tabs: labels.map((label, index) => ({
35
+ label,
36
+ icon: icons[index] ?? null,
37
+ ...index === search && { search: true }
38
+ })),
39
+ selected: selected >= 0 && selected < labels.length ? selected : null
40
+ });
41
+ /** The app's native tab bar (`nativeTabBar`), which the mobile bottom bar draws itself with when there is one. */
42
+ const NativeTabBarContext = createContext(void 0);
43
+ const useNativeTabBar = () => useContext(NativeTabBarContext);
44
+ //#endregion
45
+ export { NativeTabBarContext, nativeTabBar, nativeTabBarPlugin, nativeTabBarState, useNativeTabBar };
@@ -20,7 +20,8 @@ export declare const usePageGutter: (on: boolean) => void;
20
20
  /**
21
21
  * While the page scrolls, says how tall its sticky bars are, on the root element: as `--pb-sticky-top` and
22
22
  * `--pb-sticky-bottom` for content that sticks inside them, and as the page's scroll padding, which the browser keeps
23
- * focused and scrolled-to content clear of, and which a virtual list reads as the part of the page it shows in.
23
+ * focused and scrolled-to content clear of, and which a virtual list reads as the part of the page it shows in. It
24
+ * measures again whenever a bar comes or goes (`topShown`, `bottomShown`), as their elements are then new.
24
25
  */
25
- export declare const usePageInsets: (on: boolean, top: RefObject<HTMLElement | null>, bottom: RefObject<HTMLElement | null>, bottomShown: boolean) => void;
26
+ export declare const usePageInsets: (on: boolean, top: RefObject<HTMLElement | null>, bottom: RefObject<HTMLElement | null>, bottomShown: boolean, topShown?: boolean) => void;
26
27
  //#endregion
@@ -41,9 +41,10 @@ const properties = [
41
41
  /**
42
42
  * While the page scrolls, says how tall its sticky bars are, on the root element: as `--pb-sticky-top` and
43
43
  * `--pb-sticky-bottom` for content that sticks inside them, and as the page's scroll padding, which the browser keeps
44
- * focused and scrolled-to content clear of, and which a virtual list reads as the part of the page it shows in.
44
+ * focused and scrolled-to content clear of, and which a virtual list reads as the part of the page it shows in. It
45
+ * measures again whenever a bar comes or goes (`topShown`, `bottomShown`), as their elements are then new.
45
46
  */
46
- const usePageInsets = (on, top, bottom, bottomShown) => {
47
+ const usePageInsets = (on, top, bottom, bottomShown, topShown = true) => {
47
48
  useLayoutEffect(() => {
48
49
  if (!on) return;
49
50
  const root = document.documentElement;
@@ -66,7 +67,8 @@ const usePageInsets = (on, top, bottom, bottomShown) => {
66
67
  on,
67
68
  top,
68
69
  bottom,
69
- bottomShown
70
+ bottomShown,
71
+ topShown
70
72
  ]);
71
73
  };
72
74
  //#endregion
@@ -68,7 +68,11 @@ export type ProfileMenuProps = {
68
68
  theme?: ProfileTheme;
69
69
  /** Shows the person's status by their name, and adds the item that sets it below them. */
70
70
  status?: ProfileStatus;
71
+ /** What a screen reader calls the button, "Profile menu" by default. */
72
+ label?: string;
73
+ /** The avatar alone at the end of a phone's top bar, as large as the bar's buttons at any text size (`topBarBox`). */
74
+ inTopBar?: boolean;
71
75
  };
72
76
  /** The person at the bottom of the sidebar; the menu is fixed to the viewport so a narrow sidebar cannot clip it. */
73
- export declare const ProfileMenu: ({ user, compact, open: controlled, items, account, onNavigate, onSignOut, organizations, roles, theme, status }: ProfileMenuProps) => import("react").JSX.Element;
77
+ export declare const ProfileMenu: ({ user, compact, open: controlled, items, account, onNavigate, onSignOut, organizations, roles, theme, status, label, inTopBar }: ProfileMenuProps) => import("react").JSX.Element;
74
78
  //#endregion