@protobase/ui 0.118.1 → 0.119.1

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 (260) hide show
  1. package/dist/account/messages.d.ts +2 -2
  2. package/dist/app/charts/messages.d.ts +2 -2
  3. package/dist/app/comments/messages.d.ts +2 -2
  4. package/dist/app/confirm-sign-in-messages.d.ts +2 -2
  5. package/dist/app/create/messages.d.ts +2 -2
  6. package/dist/app/delete/messages.d.ts +2 -2
  7. package/dist/app/displays/messages.d.ts +2 -2
  8. package/dist/app/export/messages.d.ts +2 -2
  9. package/dist/app/field-types/custom-step-container/messages.d.ts +2 -2
  10. package/dist/app/field-types/runner-install/messages.d.ts +2 -2
  11. package/dist/app/field-types/workflow/messages.d.ts +2 -2
  12. package/dist/app/field-types/workflow-page/messages.d.ts +2 -2
  13. package/dist/app/field-types/workflow-run/messages.d.ts +2 -2
  14. package/dist/app/file-viewers/messages.d.ts +2 -2
  15. package/dist/app/focus/messages.d.ts +2 -2
  16. package/dist/app/hand-order/messages.d.ts +2 -2
  17. package/dist/app/import/messages.d.ts +2 -2
  18. package/dist/app/list-messages.d.ts +2 -2
  19. package/dist/app/messages.d.ts +2 -2
  20. package/dist/app/meta-gate-messages.d.ts +2 -2
  21. package/dist/app/opened-address.d.ts +9 -0
  22. package/dist/app/opened-address.js +14 -0
  23. package/dist/app/pages/messages.d.ts +2 -2
  24. package/dist/app/record-chart/messages.d.ts +2 -2
  25. package/dist/app/record-messages.d.ts +2 -2
  26. package/dist/app/record-mode/shown-layout.d.ts +1 -1
  27. package/dist/app/record-opens.d.ts +1 -6
  28. package/dist/app/record-opens.js +2 -12
  29. package/dist/app/record-page.js +2 -1
  30. package/dist/app/record-row/messages.d.ts +2 -2
  31. package/dist/app/related-cards/messages.d.ts +2 -2
  32. package/dist/app/runtime/messages.d.ts +2 -2
  33. package/dist/app/saved/messages.d.ts +2 -2
  34. package/dist/app/saved/use-favorite.d.ts +1 -1
  35. package/dist/app/search/search-model.d.ts +7 -3
  36. package/dist/app/search/search-model.js +13 -6
  37. package/dist/app/searches/messages.d.ts +2 -2
  38. package/dist/app/searches/use-save-search.d.ts +1 -1
  39. package/dist/app-shell/messages.d.ts +2 -2
  40. package/dist/assistant-dock/messages.d.ts +2 -2
  41. package/dist/auth/auth-messages.d.ts +2 -0
  42. package/dist/auth/auth-messages.js +3 -1
  43. package/dist/auth/messages.d.ts +2 -2
  44. package/dist/filter-panel/messages.d.ts +2 -2
  45. package/dist/forms/messages.d.ts +2 -2
  46. package/dist/invitations/messages.d.ts +2 -2
  47. package/dist/locale/en.js +4 -1
  48. package/dist/locale/en.json.d.ts +3 -0
  49. package/dist/locale/messages.d.ts +6 -0
  50. package/dist/locale/nl.js +4 -1
  51. package/dist/mocks/customers.d.ts +1 -1
  52. package/dist/mocks/invoices.d.ts +1 -1
  53. package/dist/mocks/orders.d.ts +3 -3
  54. package/dist/notifications/bell/messages.d.ts +2 -2
  55. package/dist/organizations/first-organization-page.js +5 -7
  56. package/dist/organizations/messages.d.ts +2 -2
  57. package/dist/organizations/my-invitation-row.d.ts +6 -2
  58. package/dist/organizations/my-invitation-row.js +8 -3
  59. package/dist/organizations/new-organization-form.js +3 -2
  60. package/dist/organizations/organizations-page.js +4 -6
  61. package/dist/organizations/use-action.d.ts +10 -1
  62. package/dist/organizations/use-action.js +25 -15
  63. package/dist/organizations/use-join-invitation.d.ts +9 -0
  64. package/dist/organizations/use-join-invitation.js +25 -0
  65. package/dist/package.js +1 -1
  66. package/dist/plugins/messages.d.ts +2 -2
  67. package/dist/primitives/button.d.ts +4 -2
  68. package/dist/primitives/button.js +23 -15
  69. package/dist/shell/assets/{account-page-D9hXd-u3.js → account-page-BXnceUQo.js} +2 -2
  70. package/dist/shell/assets/app-D3BCcbgE.js +34 -0
  71. package/dist/shell/assets/{assistant-shell-DDkCxLNG.js → assistant-shell-DKf9TfL2.js} +2 -2
  72. package/dist/shell/assets/board-display-DJkQwIfT.js +2 -0
  73. package/dist/shell/assets/calendar-display-BKyuHAAF.js +2 -0
  74. package/dist/shell/assets/{call-rings-B5rBD5EL.js → call-rings-D_kQbFd3.js} +2 -2
  75. package/dist/shell/assets/{calls-z1AEvYOC.js → calls-D6jSGMCo.js} +2 -2
  76. package/dist/shell/assets/{circle-alert-C_1i142n.js → circle-alert-ytReRN_c.js} +2 -2
  77. package/dist/shell/assets/{composed-page--UJ8tsC0.js → composed-page-CbNBBioS.js} +2 -2
  78. package/dist/shell/assets/{composer-section-tfrO2pIi.js → composer-section-cg-cdFZx.js} +2 -2
  79. package/dist/shell/assets/{connect-route-rVNQDWcE.js → connect-route-hMUPiAft.js} +2 -2
  80. package/dist/shell/assets/{copy-field-D9agQmK0.js → copy-field-BoXXafL7.js} +2 -2
  81. package/dist/shell/assets/create-route-BePHRkTZ.js +2 -0
  82. package/dist/shell/assets/{custom-step-container-field-BanmPoI-.js → custom-step-container-field-B3bsPeCV.js} +4 -4
  83. package/dist/shell/assets/embedded-list-6lQyJozS.js +3 -0
  84. package/dist/shell/assets/{en-BrEwbNhJ.js → en-dURxhEht.js} +2 -2
  85. package/dist/shell/assets/{export-dialog-g69vJ8j2.js → export-dialog-BUbdSkkU.js} +2 -2
  86. package/dist/shell/assets/export-worker-DfIG4xQy.js +15 -0
  87. package/dist/shell/assets/first-organization-page-BhQOFT5P.js +2 -0
  88. package/dist/shell/assets/{graph-view-DXDcn-Fx.js → graph-view-DZHMI-UQ.js} +2 -2
  89. package/dist/shell/assets/{group-donut-B3bCn83A.js → group-donut-Cu5Ny3gq.js} +2 -2
  90. package/dist/shell/assets/{guest-call-page-rAD4EXPd.js → guest-call-page-DlAkbaRH.js} +3 -3
  91. package/dist/shell/assets/{html-viewer-BxhCE5h2.js → html-viewer-DrSS-WnU.js} +2 -2
  92. package/dist/shell/assets/{import-dialog-adjnDUuk.js → import-dialog-Dk_31-PT.js} +2 -2
  93. package/dist/shell/assets/import-table-dialog-vL-juOMH.js +2 -0
  94. package/dist/shell/assets/{index-BBHelxJ2.js → index-CTmZ8-B4.js} +1 -1
  95. package/dist/shell/assets/invitations-page-CfTEdorg.js +2 -0
  96. package/dist/shell/assets/{layout-grid-B3Php1Rf.js → layout-grid-CTlIrnH5.js} +2 -2
  97. package/dist/shell/assets/{legend-item-BbV6BD6w.js → legend-item-CqkLpsWb.js} +2 -2
  98. package/dist/shell/assets/list-page-Czg2Jaxx.js +4 -0
  99. package/dist/shell/assets/{maplibre-D4xk_BLC.js → maplibre-Bd79IbdT.js} +2 -2
  100. package/dist/shell/assets/{markdown-content-CnNrPGcY.js → markdown-content-BGl9PFVi.js} +2 -2
  101. package/dist/shell/assets/members-page-CEB-Wkl8.js +2 -0
  102. package/dist/shell/assets/messages-Ce8dRRRN.js +2 -0
  103. package/dist/shell/assets/{nl-Dto12ewP.js → nl-B0dpIbbz.js} +2 -2
  104. package/dist/shell/assets/organization-page-CTxtblmm.js +2 -0
  105. package/dist/shell/assets/organizations-page-DeNhUQDU.js +2 -0
  106. package/dist/shell/assets/parse-worker-VaelBbE0.js +35 -0
  107. package/dist/shell/assets/{pending-invitation-row-D_vU7ynw.js → pending-invitation-row-BMp0ZxE8.js} +2 -2
  108. package/dist/shell/assets/{period-chart-DPlEbvX7.js → period-chart-BDqtO8mc.js} +2 -2
  109. package/dist/shell/assets/{person-row-DMY-aQjx.js → person-row-DRqtbPma.js} +2 -2
  110. package/dist/shell/assets/public-form-page-XgK3-Nzh.js +2 -0
  111. package/dist/shell/assets/{record-lines-SeXhFNSm.js → record-lines-DdN5hlI_.js} +2 -2
  112. package/dist/shell/assets/{record-map-BiLFEqYi.js → record-map-sOmjX80D.js} +2 -2
  113. package/dist/shell/assets/{record-opens-Ct9iF9FZ.js → record-opens-DLfbC3xo.js} +2 -2
  114. package/dist/shell/assets/record-page-BntRofCL.js +3 -0
  115. package/dist/shell/assets/{record-preview-J1o4Sqs-.js → record-preview-QMV2lW2j.js} +2 -2
  116. package/dist/shell/assets/{records-map-Cwdig5mb.js → records-map-DgTxGcbC.js} +2 -2
  117. package/dist/shell/assets/render-node-CkL5Sgl_.js +3 -0
  118. package/dist/shell/assets/reorder-button-8yWv8J72.js +2 -0
  119. package/dist/shell/assets/{run-trace-view-1fk6kU1U.js → run-trace-view-BPvPw3Ko.js} +2 -2
  120. package/dist/shell/assets/{runner-install-field-C_hTvogl.js → runner-install-field-CKP8E9ZO.js} +2 -2
  121. package/dist/shell/assets/{runtime-update-8hRmQkq-.js → runtime-update-DGbf2Nmm.js} +2 -2
  122. package/dist/shell/assets/shared-protobase-ui-DN-uvpOy.js +1 -0
  123. package/dist/shell/assets/{sheet-source-CD5hImgE.js → sheet-source-cKJfUaud.js} +3 -3
  124. package/dist/shell/assets/sign-in-policy-page-Bty4Ih1x.js +2 -0
  125. package/dist/shell/assets/start-block-queries-x-gNbPt1.js +2 -0
  126. package/dist/shell/assets/step-catalog-CCAXc8kn.js +2 -0
  127. package/dist/shell/assets/{step-panel-BVdV2FNT.js → step-panel-jmfh86YA.js} +2 -2
  128. package/dist/shell/assets/timeline-display-CtxOHPoJ.js +2 -0
  129. package/dist/shell/assets/{trash-5PpoeP3R.js → trash-CFCBxAWq.js} +2 -2
  130. package/dist/shell/assets/{update-set-BnRA9YhA.js → update-set-BYNQUWVp.js} +2 -2
  131. package/dist/shell/assets/use-calendar-move-BytgRG51.js +2 -0
  132. package/dist/shell/assets/{use-display-rows-ERQ-vbki.js → use-display-rows-DGw9J73C.js} +2 -2
  133. package/dist/shell/assets/use-my-invitations-BcMFAcXl.js +2 -0
  134. package/dist/shell/assets/{use-paged-search-CcEitpWG.js → use-paged-search-CKcKKO6y.js} +2 -2
  135. package/dist/shell/assets/{use-run-trace-CV461SQS.js → use-run-trace-BRwbwZcf.js} +2 -2
  136. package/dist/shell/assets/{use-workflow-page-peSmP1Jq.js → use-workflow-page-DsD276W-.js} +2 -2
  137. package/dist/shell/assets/{use-workflow-types-xM8CZO96.js → use-workflow-types-Bn24Chp-.js} +2 -2
  138. package/dist/shell/assets/{workflow-canvas-CkKd9u0-.js → workflow-canvas-BKd_Yd0v.js} +4 -4
  139. package/dist/shell/assets/{workflow-field-WovRhNaT.js → workflow-field-DyBaV6m5.js} +3 -3
  140. package/dist/shell/assets/{workflow-graph-editor-DRZ2UtBp.js → workflow-graph-editor-B8RJ52_E.js} +2 -2
  141. package/dist/shell/assets/{workflow-run-field-CrBAVhOq.js → workflow-run-field-CzluYhjs.js} +3 -3
  142. package/dist/shell/assets/workflow-status-field-_umgNjK4.js +2 -0
  143. package/dist/shell/assets/workflow-workbench-CqOI36Oy.js +4 -0
  144. package/dist/shell/index.html +3 -3
  145. package/dist/shell/protobase.shell.json +2 -2
  146. package/dist/shell/protobase.sw.js +2 -2
  147. package/dist/shell-source-maps/assets/{account-page-D9hXd-u3.js.map → account-page-BXnceUQo.js.map} +1 -1
  148. package/dist/shell-source-maps/assets/app-D3BCcbgE.js.map +1 -0
  149. package/dist/shell-source-maps/assets/{assistant-shell-DDkCxLNG.js.map → assistant-shell-DKf9TfL2.js.map} +1 -1
  150. package/dist/shell-source-maps/assets/{board-display-plYPsh6z.js.map → board-display-DJkQwIfT.js.map} +1 -1
  151. package/dist/shell-source-maps/assets/{calendar-display-B3kFBd2k.js.map → calendar-display-BKyuHAAF.js.map} +1 -1
  152. package/dist/shell-source-maps/assets/{call-rings-B5rBD5EL.js.map → call-rings-D_kQbFd3.js.map} +1 -1
  153. package/dist/shell-source-maps/assets/{calls-z1AEvYOC.js.map → calls-D6jSGMCo.js.map} +1 -1
  154. package/dist/shell-source-maps/assets/{circle-alert-C_1i142n.js.map → circle-alert-ytReRN_c.js.map} +1 -1
  155. package/dist/shell-source-maps/assets/{composed-page--UJ8tsC0.js.map → composed-page-CbNBBioS.js.map} +1 -1
  156. package/dist/shell-source-maps/assets/{composer-section-tfrO2pIi.js.map → composer-section-cg-cdFZx.js.map} +1 -1
  157. package/dist/shell-source-maps/assets/{connect-route-rVNQDWcE.js.map → connect-route-hMUPiAft.js.map} +1 -1
  158. package/dist/shell-source-maps/assets/{copy-field-D9agQmK0.js.map → copy-field-BoXXafL7.js.map} +1 -1
  159. package/dist/shell-source-maps/assets/{create-route-C4xN9aXd.js.map → create-route-BePHRkTZ.js.map} +1 -1
  160. package/dist/shell-source-maps/assets/{custom-step-container-field-BanmPoI-.js.map → custom-step-container-field-B3bsPeCV.js.map} +1 -1
  161. package/dist/shell-source-maps/assets/{embedded-list-B_e_Quer.js.map → embedded-list-6lQyJozS.js.map} +1 -1
  162. package/dist/shell-source-maps/assets/en-dURxhEht.js.map +1 -0
  163. package/dist/shell-source-maps/assets/{export-dialog-g69vJ8j2.js.map → export-dialog-BUbdSkkU.js.map} +1 -1
  164. package/dist/shell-source-maps/assets/export-worker-DfIG4xQy.js.map +1 -0
  165. package/dist/shell-source-maps/assets/first-organization-page-BhQOFT5P.js.map +1 -0
  166. package/dist/shell-source-maps/assets/{graph-view-DXDcn-Fx.js.map → graph-view-DZHMI-UQ.js.map} +1 -1
  167. package/dist/shell-source-maps/assets/{group-donut-B3bCn83A.js.map → group-donut-Cu5Ny3gq.js.map} +1 -1
  168. package/dist/shell-source-maps/assets/{guest-call-page-rAD4EXPd.js.map → guest-call-page-DlAkbaRH.js.map} +1 -1
  169. package/dist/shell-source-maps/assets/{html-viewer-BxhCE5h2.js.map → html-viewer-DrSS-WnU.js.map} +1 -1
  170. package/dist/shell-source-maps/assets/{import-dialog-adjnDUuk.js.map → import-dialog-Dk_31-PT.js.map} +1 -1
  171. package/dist/shell-source-maps/assets/{import-table-dialog-yV9UTlBY.js.map → import-table-dialog-vL-juOMH.js.map} +1 -1
  172. package/dist/shell-source-maps/assets/{invitations-page-FKTUQL8J.js.map → invitations-page-CfTEdorg.js.map} +1 -1
  173. package/dist/shell-source-maps/assets/{layout-grid-B3Php1Rf.js.map → layout-grid-CTlIrnH5.js.map} +1 -1
  174. package/dist/shell-source-maps/assets/{legend-item-BbV6BD6w.js.map → legend-item-CqkLpsWb.js.map} +1 -1
  175. package/dist/shell-source-maps/assets/{list-page-CNhV2TuF.js.map → list-page-Czg2Jaxx.js.map} +1 -1
  176. package/dist/shell-source-maps/assets/{maplibre-D4xk_BLC.js.map → maplibre-Bd79IbdT.js.map} +1 -1
  177. package/dist/shell-source-maps/assets/{markdown-content-CnNrPGcY.js.map → markdown-content-BGl9PFVi.js.map} +1 -1
  178. package/dist/shell-source-maps/assets/{members-page-CnxFoeyp.js.map → members-page-CEB-Wkl8.js.map} +1 -1
  179. package/dist/shell-source-maps/assets/{messages-BHPGrBhJ.js.map → messages-Ce8dRRRN.js.map} +1 -1
  180. package/dist/shell-source-maps/assets/nl-B0dpIbbz.js.map +1 -0
  181. package/dist/shell-source-maps/assets/{organization-page-B6k9pMkb.js.map → organization-page-CTxtblmm.js.map} +1 -1
  182. package/dist/shell-source-maps/assets/organizations-page-DeNhUQDU.js.map +1 -0
  183. package/dist/shell-source-maps/assets/parse-worker-VaelBbE0.js.map +1 -0
  184. package/dist/shell-source-maps/assets/{pending-invitation-row-D_vU7ynw.js.map → pending-invitation-row-BMp0ZxE8.js.map} +1 -1
  185. package/dist/shell-source-maps/assets/{period-chart-DPlEbvX7.js.map → period-chart-BDqtO8mc.js.map} +1 -1
  186. package/dist/shell-source-maps/assets/{person-row-DMY-aQjx.js.map → person-row-DRqtbPma.js.map} +1 -1
  187. package/dist/shell-source-maps/assets/{public-form-page-DTgXLDpt.js.map → public-form-page-XgK3-Nzh.js.map} +1 -1
  188. package/dist/shell-source-maps/assets/{record-lines-SeXhFNSm.js.map → record-lines-DdN5hlI_.js.map} +1 -1
  189. package/dist/shell-source-maps/assets/{record-map-BiLFEqYi.js.map → record-map-sOmjX80D.js.map} +1 -1
  190. package/dist/shell-source-maps/assets/record-opens-DLfbC3xo.js.map +1 -0
  191. package/dist/shell-source-maps/assets/{record-page-TxDSHcMe.js.map → record-page-BntRofCL.js.map} +1 -1
  192. package/dist/shell-source-maps/assets/{record-preview-J1o4Sqs-.js.map → record-preview-QMV2lW2j.js.map} +1 -1
  193. package/dist/shell-source-maps/assets/{records-map-Cwdig5mb.js.map → records-map-DgTxGcbC.js.map} +1 -1
  194. package/dist/shell-source-maps/assets/{render-node-BpHo-wre.js.map → render-node-CkL5Sgl_.js.map} +1 -1
  195. package/dist/shell-source-maps/assets/{reorder-button-CBOmzmhg.js.map → reorder-button-8yWv8J72.js.map} +1 -1
  196. package/dist/shell-source-maps/assets/{run-trace-view-1fk6kU1U.js.map → run-trace-view-BPvPw3Ko.js.map} +1 -1
  197. package/dist/shell-source-maps/assets/{runner-install-field-C_hTvogl.js.map → runner-install-field-CKP8E9ZO.js.map} +1 -1
  198. package/dist/shell-source-maps/assets/{runtime-update-8hRmQkq-.js.map → runtime-update-DGbf2Nmm.js.map} +1 -1
  199. package/dist/shell-source-maps/assets/{sheet-source-CD5hImgE.js.map → sheet-source-cKJfUaud.js.map} +1 -1
  200. package/dist/shell-source-maps/assets/{sign-in-policy-page-BQ8ck7Ar.js.map → sign-in-policy-page-Bty4Ih1x.js.map} +1 -1
  201. package/dist/shell-source-maps/assets/{start-block-queries-4uvupY9E.js.map → start-block-queries-x-gNbPt1.js.map} +1 -1
  202. package/dist/shell-source-maps/assets/{step-catalog-B2eQNTOp.js.map → step-catalog-CCAXc8kn.js.map} +1 -1
  203. package/dist/shell-source-maps/assets/{step-panel-BVdV2FNT.js.map → step-panel-jmfh86YA.js.map} +1 -1
  204. package/dist/shell-source-maps/assets/{timeline-display-BxihBkFH.js.map → timeline-display-CtxOHPoJ.js.map} +1 -1
  205. package/dist/shell-source-maps/assets/{trash-5PpoeP3R.js.map → trash-CFCBxAWq.js.map} +1 -1
  206. package/dist/shell-source-maps/assets/{update-set-BnRA9YhA.js.map → update-set-BYNQUWVp.js.map} +1 -1
  207. package/dist/shell-source-maps/assets/{use-calendar-move-Bu9MSBcs.js.map → use-calendar-move-BytgRG51.js.map} +1 -1
  208. package/dist/shell-source-maps/assets/{use-display-rows-ERQ-vbki.js.map → use-display-rows-DGw9J73C.js.map} +1 -1
  209. package/dist/shell-source-maps/assets/use-my-invitations-BcMFAcXl.js.map +1 -0
  210. package/dist/shell-source-maps/assets/{use-paged-search-CcEitpWG.js.map → use-paged-search-CKcKKO6y.js.map} +1 -1
  211. package/dist/shell-source-maps/assets/{use-run-trace-CV461SQS.js.map → use-run-trace-BRwbwZcf.js.map} +1 -1
  212. package/dist/shell-source-maps/assets/{use-workflow-page-peSmP1Jq.js.map → use-workflow-page-DsD276W-.js.map} +1 -1
  213. package/dist/shell-source-maps/assets/{use-workflow-types-xM8CZO96.js.map → use-workflow-types-Bn24Chp-.js.map} +1 -1
  214. package/dist/shell-source-maps/assets/{workflow-canvas-CkKd9u0-.js.map → workflow-canvas-BKd_Yd0v.js.map} +1 -1
  215. package/dist/shell-source-maps/assets/{workflow-field-WovRhNaT.js.map → workflow-field-DyBaV6m5.js.map} +1 -1
  216. package/dist/shell-source-maps/assets/{workflow-graph-editor-DRZ2UtBp.js.map → workflow-graph-editor-B8RJ52_E.js.map} +1 -1
  217. package/dist/shell-source-maps/assets/{workflow-run-field-CrBAVhOq.js.map → workflow-run-field-CzluYhjs.js.map} +1 -1
  218. package/dist/shell-source-maps/assets/workflow-status-field-_umgNjK4.js.map +1 -0
  219. package/dist/shell-source-maps/assets/{workflow-workbench-D8vU7ifz.js.map → workflow-workbench-CqOI36Oy.js.map} +1 -1
  220. package/dist/status/messages.d.ts +2 -2
  221. package/dist/users/messages.d.ts +2 -2
  222. package/package.json +5 -5
  223. package/dist/shell/assets/app-D6luJ1k4.js +0 -34
  224. package/dist/shell/assets/board-display-plYPsh6z.js +0 -2
  225. package/dist/shell/assets/calendar-display-B3kFBd2k.js +0 -2
  226. package/dist/shell/assets/create-route-C4xN9aXd.js +0 -2
  227. package/dist/shell/assets/embedded-list-B_e_Quer.js +0 -3
  228. package/dist/shell/assets/export-worker-DuHOhIiP.js +0 -15
  229. package/dist/shell/assets/first-organization-page-Cijgw9tC.js +0 -2
  230. package/dist/shell/assets/import-table-dialog-yV9UTlBY.js +0 -2
  231. package/dist/shell/assets/invitations-page-FKTUQL8J.js +0 -2
  232. package/dist/shell/assets/list-page-CNhV2TuF.js +0 -4
  233. package/dist/shell/assets/members-page-CnxFoeyp.js +0 -2
  234. package/dist/shell/assets/messages-BHPGrBhJ.js +0 -2
  235. package/dist/shell/assets/organization-page-B6k9pMkb.js +0 -2
  236. package/dist/shell/assets/organizations-page-D33Ruydz.js +0 -2
  237. package/dist/shell/assets/parse-worker-BRxyLV_D.js +0 -35
  238. package/dist/shell/assets/public-form-page-DTgXLDpt.js +0 -2
  239. package/dist/shell/assets/record-page-TxDSHcMe.js +0 -3
  240. package/dist/shell/assets/render-node-BpHo-wre.js +0 -3
  241. package/dist/shell/assets/reorder-button-CBOmzmhg.js +0 -2
  242. package/dist/shell/assets/shared-protobase-ui-Tq2sgl9G.js +0 -1
  243. package/dist/shell/assets/sign-in-policy-page-BQ8ck7Ar.js +0 -2
  244. package/dist/shell/assets/start-block-queries-4uvupY9E.js +0 -2
  245. package/dist/shell/assets/step-catalog-B2eQNTOp.js +0 -2
  246. package/dist/shell/assets/timeline-display-BxihBkFH.js +0 -2
  247. package/dist/shell/assets/use-calendar-move-Bu9MSBcs.js +0 -2
  248. package/dist/shell/assets/use-my-invitations-CnAvjXV0.js +0 -2
  249. package/dist/shell/assets/workflow-status-field-DgjtbjlH.js +0 -2
  250. package/dist/shell/assets/workflow-workbench-D8vU7ifz.js +0 -4
  251. package/dist/shell-source-maps/assets/app-D6luJ1k4.js.map +0 -1
  252. package/dist/shell-source-maps/assets/en-BrEwbNhJ.js.map +0 -1
  253. package/dist/shell-source-maps/assets/export-worker-DuHOhIiP.js.map +0 -1
  254. package/dist/shell-source-maps/assets/first-organization-page-Cijgw9tC.js.map +0 -1
  255. package/dist/shell-source-maps/assets/nl-Dto12ewP.js.map +0 -1
  256. package/dist/shell-source-maps/assets/organizations-page-D33Ruydz.js.map +0 -1
  257. package/dist/shell-source-maps/assets/parse-worker-BRxyLV_D.js.map +0 -1
  258. package/dist/shell-source-maps/assets/record-opens-Ct9iF9FZ.js.map +0 -1
  259. package/dist/shell-source-maps/assets/use-my-invitations-CnAvjXV0.js.map +0 -1
  260. package/dist/shell-source-maps/assets/workflow-status-field-DgjtbjlH.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { MessageValue } from "../locale/messages.js";
2
2
  //#region src/organizations/messages.d.ts
3
3
  export declare const text: {
4
- (id: "name" | "member" | "cancel" | "invitations" | "organizations" | "accept" | "join" | "leave" | "remove" | "guestLinks" | "yourName" | "open" | "loading" | "tryAgain" | "password" | "passwordOptional" | "signOut" | "admin" | "members" | "invalidLink" | "create" | "organization" | "save" | "until" | "current" | "delete" | "owner" | "manageOrganizations" | "slug" | "allOrganizations" | "allOrganizationsDescription" | "findOrganization" | "nameOrSlug" | "cannotChangeRole" | "makeAccountToJoin" | "makeAccount" | "passwordRequired" | "createAndJoin" | "createYourAccount" | "invitation" | "goToApp" | "invitesToApp" | "invitesTo" | "invitesToWith" | "hasAccount" | "signInAs" | "signInAsToJoin" | "otherAddress" | "signOutToAccept" | "inviteSomeone" | "inviteDescription" | "organizationRole" | "peopleInvited" | "notAcceptedYet" | "sendingAgain" | "nobodyWaiting" | "roleOf" | "couldNotReadMembers" | "whoWorks" | "membersDescription" | "details" | "detailsEditable" | "detailsReadOnly" | "guestLinksDescription" | "guestLinksAllowed" | "handOver" | "handOverDescription" | "newOwner" | "chooseMember" | "deleteOrganization" | "deleteDescription" | "deleteTitle" | "deleteConfirm" | "organizationName" | "leaveOwner" | "leaveMember" | "leaveName" | "noOrganization" | "youAre" | "throughGlobalRoles" | "newOrganization" | "newOrganizationDescription" | "invitationsForYou" | "invitationsForYouDescription" | "anOrganization" | "noAppRoles" | "organizationsSubtitle" | "yourOrganizations" | "memberOf" | "notMember" | "couldNotReadOrganizations" | "word" | "words" | "createTitle" | "createButton" | "nameNeeded" | "signedInAs" | "invitedTitle" | "invitedSubtitle" | "createInstead" | "backToInvitations" | "notInAnyTitle" | "notInAny" | "invitedSubtitleJoinOnly" | "expires" | "invitationsNotLoaded" | "invitationsNotLoadedHelp", values?: Record<string, MessageValue>): string;
5
- rich(id: "name" | "member" | "cancel" | "invitations" | "organizations" | "accept" | "join" | "leave" | "remove" | "guestLinks" | "yourName" | "open" | "loading" | "tryAgain" | "password" | "passwordOptional" | "signOut" | "admin" | "members" | "invalidLink" | "create" | "organization" | "save" | "until" | "current" | "delete" | "owner" | "manageOrganizations" | "slug" | "allOrganizations" | "allOrganizationsDescription" | "findOrganization" | "nameOrSlug" | "cannotChangeRole" | "makeAccountToJoin" | "makeAccount" | "passwordRequired" | "createAndJoin" | "createYourAccount" | "invitation" | "goToApp" | "invitesToApp" | "invitesTo" | "invitesToWith" | "hasAccount" | "signInAs" | "signInAsToJoin" | "otherAddress" | "signOutToAccept" | "inviteSomeone" | "inviteDescription" | "organizationRole" | "peopleInvited" | "notAcceptedYet" | "sendingAgain" | "nobodyWaiting" | "roleOf" | "couldNotReadMembers" | "whoWorks" | "membersDescription" | "details" | "detailsEditable" | "detailsReadOnly" | "guestLinksDescription" | "guestLinksAllowed" | "handOver" | "handOverDescription" | "newOwner" | "chooseMember" | "deleteOrganization" | "deleteDescription" | "deleteTitle" | "deleteConfirm" | "organizationName" | "leaveOwner" | "leaveMember" | "leaveName" | "noOrganization" | "youAre" | "throughGlobalRoles" | "newOrganization" | "newOrganizationDescription" | "invitationsForYou" | "invitationsForYouDescription" | "anOrganization" | "noAppRoles" | "organizationsSubtitle" | "yourOrganizations" | "memberOf" | "notMember" | "couldNotReadOrganizations" | "word" | "words" | "createTitle" | "createButton" | "nameNeeded" | "signedInAs" | "invitedTitle" | "invitedSubtitle" | "createInstead" | "backToInvitations" | "notInAnyTitle" | "notInAny" | "invitedSubtitleJoinOnly" | "expires" | "invitationsNotLoaded" | "invitationsNotLoadedHelp", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
4
+ (id: "name" | "member" | "cancel" | "invitations" | "organizations" | "accept" | "join" | "leave" | "remove" | "guestLinks" | "yourName" | "open" | "members" | "joining" | "create" | "organization" | "signOut" | "loading" | "save" | "until" | "current" | "password" | "delete" | "owner" | "admin" | "tryAgain" | "passwordOptional" | "invalidLink" | "manageOrganizations" | "slug" | "allOrganizations" | "allOrganizationsDescription" | "findOrganization" | "nameOrSlug" | "cannotChangeRole" | "makeAccountToJoin" | "makeAccount" | "passwordRequired" | "createAndJoin" | "createYourAccount" | "invitation" | "goToApp" | "invitesToApp" | "invitesTo" | "invitesToWith" | "hasAccount" | "signInAs" | "signInAsToJoin" | "otherAddress" | "signOutToAccept" | "inviteSomeone" | "inviteDescription" | "organizationRole" | "peopleInvited" | "notAcceptedYet" | "sendingAgain" | "nobodyWaiting" | "roleOf" | "couldNotReadMembers" | "whoWorks" | "membersDescription" | "details" | "detailsEditable" | "detailsReadOnly" | "guestLinksDescription" | "guestLinksAllowed" | "handOver" | "handOverDescription" | "newOwner" | "chooseMember" | "deleteOrganization" | "deleteDescription" | "deleteTitle" | "deleteConfirm" | "organizationName" | "leaveOwner" | "leaveMember" | "leaveName" | "noOrganization" | "youAre" | "throughGlobalRoles" | "newOrganization" | "newOrganizationDescription" | "invitationsForYou" | "invitationsForYouDescription" | "anOrganization" | "noAppRoles" | "organizationsSubtitle" | "yourOrganizations" | "memberOf" | "notMember" | "couldNotReadOrganizations" | "word" | "words" | "createTitle" | "createButton" | "creating" | "nameNeeded" | "signedInAs" | "invitedTitle" | "invitedSubtitle" | "createInstead" | "backToInvitations" | "notInAnyTitle" | "notInAny" | "invitedSubtitleJoinOnly" | "expires" | "invitationsNotLoaded" | "invitationsNotLoadedHelp", values?: Record<string, MessageValue>): string;
5
+ rich(id: "name" | "member" | "cancel" | "invitations" | "organizations" | "accept" | "join" | "leave" | "remove" | "guestLinks" | "yourName" | "open" | "members" | "joining" | "create" | "organization" | "signOut" | "loading" | "save" | "until" | "current" | "password" | "delete" | "owner" | "admin" | "tryAgain" | "passwordOptional" | "invalidLink" | "manageOrganizations" | "slug" | "allOrganizations" | "allOrganizationsDescription" | "findOrganization" | "nameOrSlug" | "cannotChangeRole" | "makeAccountToJoin" | "makeAccount" | "passwordRequired" | "createAndJoin" | "createYourAccount" | "invitation" | "goToApp" | "invitesToApp" | "invitesTo" | "invitesToWith" | "hasAccount" | "signInAs" | "signInAsToJoin" | "otherAddress" | "signOutToAccept" | "inviteSomeone" | "inviteDescription" | "organizationRole" | "peopleInvited" | "notAcceptedYet" | "sendingAgain" | "nobodyWaiting" | "roleOf" | "couldNotReadMembers" | "whoWorks" | "membersDescription" | "details" | "detailsEditable" | "detailsReadOnly" | "guestLinksDescription" | "guestLinksAllowed" | "handOver" | "handOverDescription" | "newOwner" | "chooseMember" | "deleteOrganization" | "deleteDescription" | "deleteTitle" | "deleteConfirm" | "organizationName" | "leaveOwner" | "leaveMember" | "leaveName" | "noOrganization" | "youAre" | "throughGlobalRoles" | "newOrganization" | "newOrganizationDescription" | "invitationsForYou" | "invitationsForYouDescription" | "anOrganization" | "noAppRoles" | "organizationsSubtitle" | "yourOrganizations" | "memberOf" | "notMember" | "couldNotReadOrganizations" | "word" | "words" | "createTitle" | "createButton" | "creating" | "nameNeeded" | "signedInAs" | "invitedTitle" | "invitedSubtitle" | "createInstead" | "backToInvitations" | "notInAnyTitle" | "notInAny" | "invitedSubtitleJoinOnly" | "expires" | "invitationsNotLoaded" | "invitationsNotLoadedHelp", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
6
6
  };
7
7
  //#endregion
@@ -1,11 +1,15 @@
1
1
  import { OrganizationText } from "./organization-word.js";
2
2
  import { OrganizationInvitation } from "@protobase/client";
3
3
  //#region src/organizations/my-invitation-row.d.ts
4
- /** An invitation for the person's own address: where to, with which app roles, until when, and Join. */
5
- export declare const MyInvitationRow: ({ invitation, t, busy, onJoin }: {
4
+ /**
5
+ * An invitation for the person's own address: where to, with which app roles, until when, and Join, which says it is
6
+ * joining while `joining`; `busy` while any invitation is being joined.
7
+ */
8
+ export declare const MyInvitationRow: ({ invitation, t, busy, joining, onJoin }: {
6
9
  invitation: OrganizationInvitation;
7
10
  t: OrganizationText;
8
11
  busy: boolean;
12
+ joining: boolean;
9
13
  onJoin: () => void;
10
14
  }) => import("react").JSX.Element;
11
15
  //#endregion
@@ -4,8 +4,11 @@ import { useAuth } from "../auth/auth-provider.js";
4
4
  import { roleLabel } from "./organization-paths.js";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/organizations/my-invitation-row.tsx
7
- /** An invitation for the person's own address: where to, with which app roles, until when, and Join. */
8
- const MyInvitationRow = ({ invitation, t, busy, onJoin }) => {
7
+ /**
8
+ * An invitation for the person's own address: where to, with which app roles, until when, and Join, which says it is
9
+ * joining while `joining`; `busy` while any invitation is being joined.
10
+ */
11
+ const MyInvitationRow = ({ invitation, t, busy, joining, onJoin }) => {
9
12
  const roles = useAuth().organizations?.roles ?? [];
10
13
  const name = invitation.organizationName ?? t("anOrganization");
11
14
  const appRoles = invitation.appRoles.map((role) => roleLabel(roles, role)).join(", ");
@@ -23,7 +26,9 @@ const MyInvitationRow = ({ invitation, t, busy, onJoin }) => {
23
26
  })]
24
27
  }), /* @__PURE__ */ jsx(Button, {
25
28
  variant: "primary",
26
- loading: busy,
29
+ disabled: busy,
30
+ loading: joining,
31
+ busyLabel: t("joining", { name }),
27
32
  onClick: onJoin,
28
33
  className: "min-h-10 w-full sm:min-h-0 sm:w-auto",
29
34
  children: t("join", { name })
@@ -49,8 +49,8 @@ const NewOrganizationForm = ({ onCreated, autoFocus = false }) => {
49
49
  autoFocus,
50
50
  maxLength: 200,
51
51
  value: name,
52
- invalid: Boolean(problem),
53
- "aria-describedby": problem ? hint : void 0,
52
+ invalid: missing,
53
+ "aria-describedby": missing ? hint : void 0,
54
54
  onChange: (event) => {
55
55
  setName(event.target.value);
56
56
  setMissing(false);
@@ -67,6 +67,7 @@ const NewOrganizationForm = ({ onCreated, autoFocus = false }) => {
67
67
  variant: "primary",
68
68
  type: "submit",
69
69
  loading: busy,
70
+ busyLabel: t("creating"),
70
71
  className: "min-h-10",
71
72
  children: t("createButton")
72
73
  })]
@@ -9,16 +9,16 @@ import { OrganizationRow } from "./organization-row.js";
9
9
  import { AllOrganizations } from "./all-organizations.js";
10
10
  import { MyInvitationRow } from "./my-invitation-row.js";
11
11
  import { NewOrganizationForm } from "./new-organization-form.js";
12
+ import { useJoinInvitation } from "./use-join-invitation.js";
12
13
  import { useMyInvitations } from "./use-my-invitations.js";
13
14
  import { jsx, jsxs } from "react/jsx-runtime";
14
15
  //#region src/organizations/organizations-page.tsx
15
16
  /** The invitations for the person's own address, each to join, which opens the app in its organization. */
16
17
  const YourInvitations = ({ basePath }) => {
17
- const { session } = useAuth();
18
18
  const t = useOrganizationText();
19
19
  const read = useMyInvitations();
20
20
  const invitations = read.state === "ready" ? read.invitations : void 0;
21
- const { busy, error, run } = useAction();
21
+ const { busy, error, joining, join } = useJoinInvitation(() => reopenIn(basePath));
22
22
  if (!invitations || invitations.length === 0) return null;
23
23
  return /* @__PURE__ */ jsxs(AccountSection, {
24
24
  title: t("invitationsForYou"),
@@ -29,10 +29,8 @@ const YourInvitations = ({ basePath }) => {
29
29
  invitation,
30
30
  t,
31
31
  busy,
32
- onJoin: () => void run(async () => {
33
- await session.organizations.acceptMine(invitation.id);
34
- reopenIn(basePath);
35
- })
32
+ joining: joining === invitation.id,
33
+ onJoin: () => join(invitation.id)
36
34
  }, invitation.id))
37
35
  })]
38
36
  });
@@ -1,5 +1,14 @@
1
1
  //#region src/organizations/use-action.d.ts
2
- /** Runs one change at a time and keeps the server's refusal, in words, for the form to show. */
2
+ type ActionState = {
3
+ setBusy: (busy: boolean) => void;
4
+ setError: (error: string | undefined) => void;
5
+ };
6
+ /**
7
+ * Runs `action`, busy until it ends however it ends. The server's refusal, or that it could not be reached, goes to
8
+ * `setError` in words; any other failure is passed on.
9
+ */
10
+ export declare const runAction: (action: () => Promise<void>, { setBusy, setError }: ActionState) => Promise<void>;
11
+ /** Runs one change at a time and keeps why it failed, in words, for the form to show (`runAction`). */
3
12
  export declare const useAction: () => {
4
13
  busy: boolean;
5
14
  error: string | undefined;
@@ -1,22 +1,32 @@
1
- import { authMessage } from "../auth/auth-messages.js";
1
+ import { authMessage, unreachableMessage } from "../auth/auth-messages.js";
2
2
  import { useState } from "react";
3
- import { AuthError } from "@protobase/client";
3
+ import { AuthError, NetworkError } from "@protobase/client";
4
4
  //#region src/organizations/use-action.ts
5
- /** Runs one change at a time and keeps the server's refusal, in words, for the form to show. */
5
+ /**
6
+ * Runs `action`, busy until it ends however it ends. The server's refusal, or that it could not be reached, goes to
7
+ * `setError` in words; any other failure is passed on.
8
+ */
9
+ const runAction = async (action, { setBusy, setError }) => {
10
+ setBusy(true);
11
+ setError(void 0);
12
+ try {
13
+ await action();
14
+ } catch (failure) {
15
+ if (failure instanceof AuthError) return setError(authMessage(failure));
16
+ if (failure instanceof NetworkError) return setError(unreachableMessage());
17
+ throw failure;
18
+ } finally {
19
+ setBusy(false);
20
+ }
21
+ };
22
+ /** Runs one change at a time and keeps why it failed, in words, for the form to show (`runAction`). */
6
23
  const useAction = () => {
7
24
  const [busy, setBusy] = useState(false);
8
25
  const [error, setError] = useState();
9
- const run = async (action) => {
10
- setBusy(true);
11
- setError(void 0);
12
- try {
13
- await action();
14
- } catch (failure) {
15
- if (!(failure instanceof AuthError)) throw failure;
16
- setError(authMessage(failure));
17
- }
18
- setBusy(false);
19
- };
26
+ const run = (action) => runAction(action, {
27
+ setBusy,
28
+ setError
29
+ });
20
30
  return {
21
31
  busy,
22
32
  error,
@@ -25,4 +35,4 @@ const useAction = () => {
25
35
  };
26
36
  };
27
37
  //#endregion
28
- export { useAction };
38
+ export { runAction, useAction };
@@ -0,0 +1,9 @@
1
+ //#region src/organizations/use-join-invitation.d.ts
2
+ /** Joins one of the person's invitations at a time, then `onJoined`; `joining` is the invitation it is joining. */
3
+ export declare const useJoinInvitation: (onJoined: () => void) => {
4
+ busy: boolean;
5
+ error: string | undefined;
6
+ joining: string | undefined;
7
+ join: (invitationId: string) => void;
8
+ };
9
+ //#endregion
@@ -0,0 +1,25 @@
1
+ import { useAuth } from "../auth/auth-provider.js";
2
+ import { useAction } from "./use-action.js";
3
+ import { useState } from "react";
4
+ //#region src/organizations/use-join-invitation.ts
5
+ /** Joins one of the person's invitations at a time, then `onJoined`; `joining` is the invitation it is joining. */
6
+ const useJoinInvitation = (onJoined) => {
7
+ const { session } = useAuth();
8
+ const { busy, error, run } = useAction();
9
+ const [pressed, setPressed] = useState();
10
+ const join = (invitationId) => {
11
+ setPressed(invitationId);
12
+ run(async () => {
13
+ await session.organizations.acceptMine(invitationId);
14
+ onJoined();
15
+ });
16
+ };
17
+ return {
18
+ busy,
19
+ error,
20
+ joining: busy ? pressed : void 0,
21
+ join
22
+ };
23
+ };
24
+ //#endregion
25
+ export { useJoinInvitation };
package/dist/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.118.1";
2
+ var version = "0.119.1";
3
3
  var protobase = { "pluginApi": 1 };
4
4
  //#endregion
5
5
  export { protobase, version };
@@ -1,7 +1,7 @@
1
1
  import { MessageValue } from "../locale/messages.js";
2
2
  //#region src/plugins/messages.d.ts
3
3
  export declare const text: {
4
- (id: "loading" | "couldNotLoad" | "pluginsOff" | "pluginOff" | "dismiss" | "answered" | "notObject" | "noName" | "noApi" | "noVersions" | "noModule" | "badStylesheet" | "badVersion", values?: Record<string, MessageValue>): string;
5
- rich(id: "loading" | "couldNotLoad" | "pluginsOff" | "pluginOff" | "dismiss" | "answered" | "notObject" | "noName" | "noApi" | "noVersions" | "noModule" | "badStylesheet" | "badVersion", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
4
+ (id: "loading" | "couldNotLoad" | "dismiss" | "pluginsOff" | "pluginOff" | "answered" | "notObject" | "noName" | "noApi" | "noVersions" | "noModule" | "badStylesheet" | "badVersion", values?: Record<string, MessageValue>): string;
5
+ rich(id: "loading" | "couldNotLoad" | "dismiss" | "pluginsOff" | "pluginOff" | "answered" | "notObject" | "noName" | "noApi" | "noVersions" | "noModule" | "badStylesheet" | "badVersion", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
6
6
  };
7
7
  //#endregion
@@ -1,13 +1,15 @@
1
- import { ButtonHTMLAttributes, Ref } from "react";
1
+ import { ButtonHTMLAttributes, ReactNode, Ref } from "react";
2
2
  //#region src/primitives/button.d.ts
3
3
  export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
4
4
  variant?: 'primary' | 'secondary' | 'ghost' | 'danger';
5
5
  /** `icon` is a square of the height of `sm`, for a button with an icon alone. */
6
6
  size?: 'sm' | 'md' | 'icon';
7
7
  loading?: boolean;
8
+ /** What the button says while `loading`, such as "Saving…", which a screen reader announces as a status. */
9
+ busyLabel?: ReactNode;
8
10
  ref?: Ref<HTMLButtonElement>;
9
11
  };
10
12
  /** A button's classes, for a link that looks like one. */
11
13
  export declare const buttonClass: ({ variant, size }?: Pick<ButtonProps, "variant" | "size">) => string;
12
- export declare const Button: ({ variant, size, loading, className, children, disabled, ...rest }: ButtonProps) => import("react").JSX.Element;
14
+ export declare const Button: ({ variant, size, loading, busyLabel, className, children, disabled, ...rest }: ButtonProps) => import("react").JSX.Element;
13
15
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import { cn } from "../lib/cn.js";
2
2
  import { Spinner } from "./spinner.js";
3
- import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
4
  //#region src/primitives/button.tsx
5
5
  const variants = {
6
6
  primary: "bg-primary text-primary-foreground hover:bg-primary-hover shadow-sm",
@@ -15,19 +15,27 @@ const sizes = {
15
15
  };
16
16
  /** A button's classes, for a link that looks like one. */
17
17
  const buttonClass = ({ variant = "secondary", size = "md" } = {}) => cn("inline-flex shrink-0 items-center justify-center rounded-md font-medium transition-colors aria-disabled:cursor-not-allowed aria-disabled:opacity-50 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary disabled:opacity-60 disabled:cursor-default", variants[variant], sizes[size]);
18
- const Button = ({ variant = "secondary", size = "md", loading, className, children, disabled, ...rest }) => /* @__PURE__ */ jsxs("button", {
19
- type: "button",
20
- disabled: disabled || loading,
21
- "aria-busy": loading || void 0,
22
- className: cn(buttonClass({
23
- variant,
24
- size
25
- }), className),
26
- ...rest,
27
- children: [loading && /* @__PURE__ */ jsx(Spinner, {
28
- hidden: true,
29
- className: "size-3.5"
30
- }), children]
31
- });
18
+ const Button = ({ variant = "secondary", size = "md", loading, busyLabel, className, children, disabled, ...rest }) => {
19
+ const button = /* @__PURE__ */ jsxs("button", {
20
+ type: "button",
21
+ disabled: disabled || loading,
22
+ "aria-busy": loading || void 0,
23
+ className: cn(buttonClass({
24
+ variant,
25
+ size
26
+ }), className),
27
+ ...rest,
28
+ children: [loading && /* @__PURE__ */ jsx(Spinner, {
29
+ hidden: true,
30
+ className: "size-3.5"
31
+ }), loading && busyLabel !== void 0 ? busyLabel : children]
32
+ });
33
+ if (busyLabel === void 0) return button;
34
+ return /* @__PURE__ */ jsxs(Fragment, { children: [button, /* @__PURE__ */ jsx("span", {
35
+ role: "status",
36
+ className: "sr-only",
37
+ children: loading && busyLabel
38
+ })] });
39
+ };
32
40
  //#endregion
33
41
  export { Button, buttonClass };
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:protobase-app":!0})}catch{}})();import{o as e}from"./rolldown-runtime-DFwUHQ4A.js";import{t}from"./react-CuiNlnus.js";import{Vo as n,_s as r,es as i,fa as a,gs as o}from"./app-D6luJ1k4.js";import{t as s}from"./render-node-BpHo-wre.js";var c=e(t(),1),l=({tab:e})=>{let t=n();return t?(0,c.jsx)(a,{route:{...e&&{tab:e},pathOf:o},children:(0,c.jsx)(s,{node:t.tree})}):(0,c.jsx)(i,{title:r(`noAccount`),children:r(`noAccountDescription`)})};export{l as AccountPage};
2
- //# debugId=fd85777e-bb7c-4f75-bc5b-f610a0f52526
1
+ (function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:protobase-app":!0})}catch{}})();import{o as e}from"./rolldown-runtime-DFwUHQ4A.js";import{t}from"./react-CuiNlnus.js";import{Ho as n,_s as r,pa as i,ts as a,vs as o}from"./app-D3BCcbgE.js";import{t as s}from"./render-node-CkL5Sgl_.js";var c=e(t(),1),l=({tab:e})=>{let t=n();return t?(0,c.jsx)(i,{route:{...e&&{tab:e},pathOf:r},children:(0,c.jsx)(s,{node:t.tree})}):(0,c.jsx)(a,{title:o(`noAccount`),children:o(`noAccountDescription`)})};export{l as AccountPage};
2
+ //# debugId=579dc794-428b-4fa6-b83b-4d914c5ed807