@protobase/ui 0.118.0 → 0.118.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 (288) hide show
  1. package/dist/account/messages.d.ts +2 -2
  2. package/dist/app/app.js +67 -31
  3. package/dist/app/change-confirm/messages.d.ts +2 -2
  4. package/dist/app/charts/chart-params.js +1 -1
  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/calendar-event.js +1 -1
  11. package/dist/app/displays/messages.d.ts +2 -2
  12. package/dist/app/displays/use-calendar-move.js +1 -1
  13. package/dist/app/embedded-list/messages.d.ts +2 -2
  14. package/dist/app/export/messages.d.ts +2 -2
  15. package/dist/app/field-messages.d.ts +2 -2
  16. package/dist/app/field-types/custom-step-container/messages.d.ts +2 -2
  17. package/dist/app/field-types/runner-install/messages.d.ts +2 -2
  18. package/dist/app/field-types/workflow/definition.d.ts +1 -1
  19. package/dist/app/field-types/workflow/messages.d.ts +2 -2
  20. package/dist/app/field-types/workflow-page/messages.d.ts +2 -2
  21. package/dist/app/field-types/workflow-run/messages.d.ts +2 -2
  22. package/dist/app/field-types/workflow-status/messages.d.ts +2 -2
  23. package/dist/app/file-viewers/messages.d.ts +2 -2
  24. package/dist/app/focus/messages.d.ts +2 -2
  25. package/dist/app/gallery/gallery-layout.d.ts +2 -2
  26. package/dist/app/gallery/messages.d.ts +2 -2
  27. package/dist/app/hand-order/messages.d.ts +2 -2
  28. package/dist/app/history/messages.d.ts +2 -2
  29. package/dist/app/import/messages.d.ts +2 -2
  30. package/dist/app/lazy-routes.d.ts +4 -0
  31. package/dist/app/lazy-routes.js +2 -1
  32. package/dist/app/list-messages.d.ts +2 -2
  33. package/dist/app/list-page.js +1 -1
  34. package/dist/app/messages.d.ts +2 -2
  35. package/dist/app/nav-recent.js +1 -1
  36. package/dist/app/new-version/messages.d.ts +2 -2
  37. package/dist/app/pages/messages.d.ts +2 -2
  38. package/dist/app/record-chart/messages.d.ts +2 -2
  39. package/dist/app/record-messages.d.ts +2 -2
  40. package/dist/app/record-mode/shown-layout.d.ts +1 -1
  41. package/dist/app/record-row/messages.d.ts +2 -2
  42. package/dist/app/related-cards/messages.d.ts +2 -2
  43. package/dist/app/runtime/messages.d.ts +2 -2
  44. package/dist/app/saved/messages.d.ts +2 -2
  45. package/dist/app/searches/messages.d.ts +2 -2
  46. package/dist/app/searches/update-search-dialog.js +1 -1
  47. package/dist/app/start-record.d.ts +22 -0
  48. package/dist/app/start-record.js +33 -0
  49. package/dist/app/use-nav-recent.d.ts +2 -2
  50. package/dist/app/use-nav-recent.js +8 -3
  51. package/dist/app/use-start-address.d.ts +21 -0
  52. package/dist/app/use-start-address.js +49 -0
  53. package/dist/app-shell/messages.d.ts +2 -2
  54. package/dist/app-shell/profile-menu.d.ts +2 -0
  55. package/dist/app-shell/profile-menu.js +1 -1
  56. package/dist/assistant-dock/messages.d.ts +2 -2
  57. package/dist/auth/messages.d.ts +2 -2
  58. package/dist/calls/messages.d.ts +2 -2
  59. package/dist/carousel/messages.d.ts +2 -2
  60. package/dist/chat/messages.d.ts +2 -2
  61. package/dist/data/query-keys.d.ts +4 -0
  62. package/dist/data/query-keys.js +11 -0
  63. package/dist/data/start-cache/restored-state.d.ts +7 -0
  64. package/dist/data/start-cache/restored-state.js +5 -1
  65. package/dist/data-grid/column-spec.d.ts +1 -1
  66. package/dist/data-grid/messages.d.ts +2 -2
  67. package/dist/filter-panel/messages.d.ts +2 -2
  68. package/dist/forms/messages.d.ts +2 -2
  69. package/dist/inline-child-table/messages.d.ts +2 -2
  70. package/dist/invitations/messages.d.ts +2 -2
  71. package/dist/locale/en.js +38 -21
  72. package/dist/locale/en.json.d.ts +17 -0
  73. package/dist/locale/messages.d.ts +34 -0
  74. package/dist/locale/nl.js +38 -21
  75. package/dist/notifications/bell/messages.d.ts +2 -2
  76. package/dist/organizations/all-organizations.js +5 -3
  77. package/dist/organizations/first-organization-page.d.ts +21 -0
  78. package/dist/organizations/first-organization-page.js +125 -0
  79. package/dist/organizations/invitations-page.js +3 -1
  80. package/dist/organizations/members-page.js +5 -2
  81. package/dist/organizations/messages.d.ts +2 -2
  82. package/dist/organizations/my-invitation-row.d.ts +11 -0
  83. package/dist/organizations/my-invitation-row.js +34 -0
  84. package/dist/organizations/new-organization-form.d.ts +10 -0
  85. package/dist/organizations/new-organization-form.js +76 -0
  86. package/dist/organizations/organization-page.js +9 -6
  87. package/dist/organizations/organization-paths.d.ts +7 -2
  88. package/dist/organizations/organization-paths.js +14 -8
  89. package/dist/organizations/organization-word.d.ts +14 -0
  90. package/dist/organizations/organization-word.js +22 -0
  91. package/dist/organizations/organizations-page.d.ts +0 -2
  92. package/dist/organizations/organizations-page.js +31 -98
  93. package/dist/organizations/use-my-invitations.d.ts +17 -0
  94. package/dist/organizations/use-my-invitations.js +30 -0
  95. package/dist/organizations/use-organizations.d.ts +4 -0
  96. package/dist/organizations/use-organizations.js +8 -3
  97. package/dist/package.js +1 -1
  98. package/dist/primitives/messages.d.ts +2 -2
  99. package/dist/shell/assets/{account-page-DOXkanFO.js → account-page-D9hXd-u3.js} +2 -2
  100. package/dist/shell/assets/app-D6luJ1k4.js +34 -0
  101. package/dist/shell/assets/{app-Dq5eubgK.css → app-xwgcmboV.css} +1 -1
  102. package/dist/shell/assets/{assistant-shell-Drpmyy7B.js → assistant-shell-DDkCxLNG.js} +2 -2
  103. package/dist/shell/assets/board-display-plYPsh6z.js +2 -0
  104. package/dist/shell/assets/calendar-display-B3kFBd2k.js +2 -0
  105. package/dist/shell/assets/{call-rings-C7f5skja.js → call-rings-B5rBD5EL.js} +2 -2
  106. package/dist/shell/assets/{calls-Ca2RAgzS.js → calls-z1AEvYOC.js} +2 -2
  107. package/dist/shell/assets/{circle-alert-B5-CtUEU.js → circle-alert-C_1i142n.js} +2 -2
  108. package/dist/shell/assets/{composed-page-BMYkHKrZ.js → composed-page--UJ8tsC0.js} +2 -2
  109. package/dist/shell/assets/{composer-section-CHUNzdVu.js → composer-section-tfrO2pIi.js} +2 -2
  110. package/dist/shell/assets/{connect-route-B_u1trIm.js → connect-route-rVNQDWcE.js} +2 -2
  111. package/dist/shell/assets/{copy-field-9SzlccPw.js → copy-field-D9agQmK0.js} +2 -2
  112. package/dist/shell/assets/create-route-C4xN9aXd.js +2 -0
  113. package/dist/shell/assets/{custom-step-container-field-BqLAbXaI.js → custom-step-container-field-BanmPoI-.js} +4 -4
  114. package/dist/shell/assets/embedded-list-B_e_Quer.js +3 -0
  115. package/dist/shell/assets/{en-wsBk87ZG.js → en-BrEwbNhJ.js} +2 -2
  116. package/dist/shell/assets/{export-dialog-DG5H_BHu.js → export-dialog-g69vJ8j2.js} +2 -2
  117. package/dist/shell/assets/export-worker-DuHOhIiP.js +15 -0
  118. package/dist/shell/assets/first-organization-page-Cijgw9tC.js +2 -0
  119. package/dist/shell/assets/{graph-view-DFeWGm5G.js → graph-view-DXDcn-Fx.js} +2 -2
  120. package/dist/shell/assets/{group-donut-D9vSqco5.js → group-donut-B3bCn83A.js} +2 -2
  121. package/dist/shell/assets/{guest-call-page-DIEo-q93.js → guest-call-page-rAD4EXPd.js} +3 -3
  122. package/dist/shell/assets/{html-viewer-F2craD8b.js → html-viewer-BxhCE5h2.js} +2 -2
  123. package/dist/shell/assets/{import-dialog-C6QghYOc.js → import-dialog-adjnDUuk.js} +2 -2
  124. package/dist/shell/assets/{import-table-dialog-BzpzE7wd.js → import-table-dialog-yV9UTlBY.js} +2 -2
  125. package/dist/shell/assets/{index-lcg5mDSu.js → index-BBHelxJ2.js} +1 -1
  126. package/dist/shell/assets/invitations-page-FKTUQL8J.js +2 -0
  127. package/dist/shell/assets/{layout-grid-XTZwSFbV.js → layout-grid-B3Php1Rf.js} +2 -2
  128. package/dist/shell/assets/{legend-item-BoeI6b5Y.js → legend-item-BbV6BD6w.js} +2 -2
  129. package/dist/shell/assets/list-page-CNhV2TuF.js +4 -0
  130. package/dist/shell/assets/{maplibre-CLloBp_X.js → maplibre-D4xk_BLC.js} +2 -2
  131. package/dist/shell/assets/{markdown-content-CEV942Pa.js → markdown-content-CnNrPGcY.js} +2 -2
  132. package/dist/shell/assets/members-page-CnxFoeyp.js +2 -0
  133. package/dist/shell/assets/messages-BHPGrBhJ.js +2 -0
  134. package/dist/shell/assets/{nl-nieWXCy1.js → nl-Dto12ewP.js} +2 -2
  135. package/dist/shell/assets/organization-page-B6k9pMkb.js +2 -0
  136. package/dist/shell/assets/organizations-page-D33Ruydz.js +2 -0
  137. package/dist/shell/assets/parse-worker-BRxyLV_D.js +35 -0
  138. package/dist/shell/assets/{pending-invitation-row-T-_gptFs.js → pending-invitation-row-D_vU7ynw.js} +2 -2
  139. package/dist/shell/assets/{period-chart-BLA0qneK.js → period-chart-DPlEbvX7.js} +2 -2
  140. package/dist/shell/assets/{person-row-CB2jyi4a.js → person-row-DMY-aQjx.js} +2 -2
  141. package/dist/shell/assets/public-form-page-DTgXLDpt.js +2 -0
  142. package/dist/shell/assets/{record-lines-C-s6d1b-.js → record-lines-SeXhFNSm.js} +2 -2
  143. package/dist/shell/assets/{record-map-1LgfFbVl.js → record-map-BiLFEqYi.js} +2 -2
  144. package/dist/shell/assets/{record-opens-DayPkcEp.js → record-opens-Ct9iF9FZ.js} +2 -2
  145. package/dist/shell/assets/record-page-TxDSHcMe.js +3 -0
  146. package/dist/shell/assets/{record-preview-DYLddBgR.js → record-preview-J1o4Sqs-.js} +2 -2
  147. package/dist/shell/assets/{records-map-Dbzp06m5.js → records-map-Cwdig5mb.js} +2 -2
  148. package/dist/shell/assets/render-node-BpHo-wre.js +3 -0
  149. package/dist/shell/assets/reorder-button-CBOmzmhg.js +2 -0
  150. package/dist/shell/assets/{run-trace-view-C7Fa31YF.js → run-trace-view-1fk6kU1U.js} +2 -2
  151. package/dist/shell/assets/{runner-install-field-Bpj6cGb0.js → runner-install-field-C_hTvogl.js} +2 -2
  152. package/dist/shell/assets/{runtime-update-CZ31fRYM.js → runtime-update-8hRmQkq-.js} +2 -2
  153. package/dist/shell/assets/shared-protobase-ui-Tq2sgl9G.js +1 -0
  154. package/dist/shell/assets/{sheet-source-CpQBUfMu.js → sheet-source-CD5hImgE.js} +3 -3
  155. package/dist/shell/assets/sign-in-policy-page-BQ8ck7Ar.js +2 -0
  156. package/dist/shell/assets/start-block-queries-4uvupY9E.js +2 -0
  157. package/dist/shell/assets/step-catalog-B2eQNTOp.js +2 -0
  158. package/dist/shell/assets/{step-panel-BNu4CT-a.js → step-panel-BVdV2FNT.js} +2 -2
  159. package/dist/shell/assets/timeline-display-BxihBkFH.js +2 -0
  160. package/dist/shell/assets/{trash-DGtnZxzc.js → trash-5PpoeP3R.js} +2 -2
  161. package/dist/shell/assets/{update-set-DmSoOUGC.js → update-set-BnRA9YhA.js} +2 -2
  162. package/dist/shell/assets/use-calendar-move-Bu9MSBcs.js +2 -0
  163. package/dist/shell/assets/{use-display-rows-QMseygYe.js → use-display-rows-ERQ-vbki.js} +2 -2
  164. package/dist/shell/assets/use-my-invitations-CnAvjXV0.js +2 -0
  165. package/dist/shell/assets/{use-paged-search-CI7t7XI0.js → use-paged-search-CcEitpWG.js} +2 -2
  166. package/dist/shell/assets/{use-run-trace-D0jDOrL8.js → use-run-trace-CV461SQS.js} +2 -2
  167. package/dist/shell/assets/{use-workflow-page-BMjBBt83.js → use-workflow-page-peSmP1Jq.js} +2 -2
  168. package/dist/shell/assets/{use-workflow-types-8ZRuZVuJ.js → use-workflow-types-xM8CZO96.js} +2 -2
  169. package/dist/shell/assets/{workflow-canvas-DtTiaGIh.js → workflow-canvas-CkKd9u0-.js} +4 -4
  170. package/dist/shell/assets/{workflow-field-2I9HpR3s.js → workflow-field-WovRhNaT.js} +3 -3
  171. package/dist/shell/assets/{workflow-graph-editor-DJoriSTb.js → workflow-graph-editor-DRZ2UtBp.js} +2 -2
  172. package/dist/shell/assets/{workflow-run-field-BB6DMeK0.js → workflow-run-field-CrBAVhOq.js} +3 -3
  173. package/dist/shell/assets/workflow-status-field-DgjtbjlH.js +2 -0
  174. package/dist/shell/assets/workflow-workbench-D8vU7ifz.js +4 -0
  175. package/dist/shell/index.html +4 -4
  176. package/dist/shell/protobase.shell.json +2 -2
  177. package/dist/shell/protobase.sw.js +2 -2
  178. package/dist/shell-source-maps/assets/{account-page-DOXkanFO.js.map → account-page-D9hXd-u3.js.map} +1 -1
  179. package/dist/shell-source-maps/assets/app-D6luJ1k4.js.map +1 -0
  180. package/dist/shell-source-maps/assets/{assistant-shell-Drpmyy7B.js.map → assistant-shell-DDkCxLNG.js.map} +1 -1
  181. package/dist/shell-source-maps/assets/{board-display-D9PUmRbl.js.map → board-display-plYPsh6z.js.map} +1 -1
  182. package/dist/shell-source-maps/assets/{calendar-display-B8J8DI5J.js.map → calendar-display-B3kFBd2k.js.map} +1 -1
  183. package/dist/shell-source-maps/assets/{call-rings-C7f5skja.js.map → call-rings-B5rBD5EL.js.map} +1 -1
  184. package/dist/shell-source-maps/assets/{calls-Ca2RAgzS.js.map → calls-z1AEvYOC.js.map} +1 -1
  185. package/dist/shell-source-maps/assets/{circle-alert-B5-CtUEU.js.map → circle-alert-C_1i142n.js.map} +1 -1
  186. package/dist/shell-source-maps/assets/{composed-page-BMYkHKrZ.js.map → composed-page--UJ8tsC0.js.map} +1 -1
  187. package/dist/shell-source-maps/assets/{composer-section-CHUNzdVu.js.map → composer-section-tfrO2pIi.js.map} +1 -1
  188. package/dist/shell-source-maps/assets/{connect-route-B_u1trIm.js.map → connect-route-rVNQDWcE.js.map} +1 -1
  189. package/dist/shell-source-maps/assets/{copy-field-9SzlccPw.js.map → copy-field-D9agQmK0.js.map} +1 -1
  190. package/dist/shell-source-maps/assets/{create-route-rbublA-_.js.map → create-route-C4xN9aXd.js.map} +1 -1
  191. package/dist/shell-source-maps/assets/{custom-step-container-field-BqLAbXaI.js.map → custom-step-container-field-BanmPoI-.js.map} +1 -1
  192. package/dist/shell-source-maps/assets/{embedded-list-CdFZ5TIe.js.map → embedded-list-B_e_Quer.js.map} +1 -1
  193. package/dist/shell-source-maps/assets/en-BrEwbNhJ.js.map +1 -0
  194. package/dist/shell-source-maps/assets/{export-dialog-DG5H_BHu.js.map → export-dialog-g69vJ8j2.js.map} +1 -1
  195. package/dist/shell-source-maps/assets/export-worker-DuHOhIiP.js.map +1 -0
  196. package/dist/shell-source-maps/assets/first-organization-page-Cijgw9tC.js.map +1 -0
  197. package/dist/shell-source-maps/assets/{graph-view-DFeWGm5G.js.map → graph-view-DXDcn-Fx.js.map} +1 -1
  198. package/dist/shell-source-maps/assets/{group-donut-D9vSqco5.js.map → group-donut-B3bCn83A.js.map} +1 -1
  199. package/dist/shell-source-maps/assets/{guest-call-page-DIEo-q93.js.map → guest-call-page-rAD4EXPd.js.map} +1 -1
  200. package/dist/shell-source-maps/assets/{html-viewer-F2craD8b.js.map → html-viewer-BxhCE5h2.js.map} +1 -1
  201. package/dist/shell-source-maps/assets/{import-dialog-C6QghYOc.js.map → import-dialog-adjnDUuk.js.map} +1 -1
  202. package/dist/shell-source-maps/assets/{import-table-dialog-BzpzE7wd.js.map → import-table-dialog-yV9UTlBY.js.map} +1 -1
  203. package/dist/shell-source-maps/assets/invitations-page-FKTUQL8J.js.map +1 -0
  204. package/dist/shell-source-maps/assets/{layout-grid-XTZwSFbV.js.map → layout-grid-B3Php1Rf.js.map} +1 -1
  205. package/dist/shell-source-maps/assets/{legend-item-BoeI6b5Y.js.map → legend-item-BbV6BD6w.js.map} +1 -1
  206. package/dist/shell-source-maps/assets/{list-page-C7h-_WJY.js.map → list-page-CNhV2TuF.js.map} +1 -1
  207. package/dist/shell-source-maps/assets/{maplibre-CLloBp_X.js.map → maplibre-D4xk_BLC.js.map} +1 -1
  208. package/dist/shell-source-maps/assets/{markdown-content-CEV942Pa.js.map → markdown-content-CnNrPGcY.js.map} +1 -1
  209. package/dist/shell-source-maps/assets/members-page-CnxFoeyp.js.map +1 -0
  210. package/dist/shell-source-maps/assets/{messages-lXPHUGLV.js.map → messages-BHPGrBhJ.js.map} +1 -1
  211. package/dist/shell-source-maps/assets/nl-Dto12ewP.js.map +1 -0
  212. package/dist/shell-source-maps/assets/organization-page-B6k9pMkb.js.map +1 -0
  213. package/dist/shell-source-maps/assets/organizations-page-D33Ruydz.js.map +1 -0
  214. package/dist/shell-source-maps/assets/parse-worker-BRxyLV_D.js.map +1 -0
  215. package/dist/shell-source-maps/assets/{pending-invitation-row-T-_gptFs.js.map → pending-invitation-row-D_vU7ynw.js.map} +1 -1
  216. package/dist/shell-source-maps/assets/{period-chart-BLA0qneK.js.map → period-chart-DPlEbvX7.js.map} +1 -1
  217. package/dist/shell-source-maps/assets/{person-row-CB2jyi4a.js.map → person-row-DMY-aQjx.js.map} +1 -1
  218. package/dist/shell-source-maps/assets/{public-form-page-CvtOJGMY.js.map → public-form-page-DTgXLDpt.js.map} +1 -1
  219. package/dist/shell-source-maps/assets/{record-lines-C-s6d1b-.js.map → record-lines-SeXhFNSm.js.map} +1 -1
  220. package/dist/shell-source-maps/assets/{record-map-1LgfFbVl.js.map → record-map-BiLFEqYi.js.map} +1 -1
  221. package/dist/shell-source-maps/assets/{record-opens-DayPkcEp.js.map → record-opens-Ct9iF9FZ.js.map} +1 -1
  222. package/dist/shell-source-maps/assets/{record-page-BMFIEvdR.js.map → record-page-TxDSHcMe.js.map} +1 -1
  223. package/dist/shell-source-maps/assets/{record-preview-DYLddBgR.js.map → record-preview-J1o4Sqs-.js.map} +1 -1
  224. package/dist/shell-source-maps/assets/{records-map-Dbzp06m5.js.map → records-map-Cwdig5mb.js.map} +1 -1
  225. package/dist/shell-source-maps/assets/{render-node-DEeBoZ9i.js.map → render-node-BpHo-wre.js.map} +1 -1
  226. package/dist/shell-source-maps/assets/{reorder-button-BauUDONv.js.map → reorder-button-CBOmzmhg.js.map} +1 -1
  227. package/dist/shell-source-maps/assets/{run-trace-view-C7Fa31YF.js.map → run-trace-view-1fk6kU1U.js.map} +1 -1
  228. package/dist/shell-source-maps/assets/{runner-install-field-Bpj6cGb0.js.map → runner-install-field-C_hTvogl.js.map} +1 -1
  229. package/dist/shell-source-maps/assets/{runtime-update-CZ31fRYM.js.map → runtime-update-8hRmQkq-.js.map} +1 -1
  230. package/dist/shell-source-maps/assets/{sheet-source-CpQBUfMu.js.map → sheet-source-CD5hImgE.js.map} +1 -1
  231. package/dist/shell-source-maps/assets/{sign-in-policy-page-BumL1ZPK.js.map → sign-in-policy-page-BQ8ck7Ar.js.map} +1 -1
  232. package/dist/shell-source-maps/assets/{start-block-queries-DYE83u9M.js.map → start-block-queries-4uvupY9E.js.map} +1 -1
  233. package/dist/shell-source-maps/assets/{step-catalog-DAHY1jbn.js.map → step-catalog-B2eQNTOp.js.map} +1 -1
  234. package/dist/shell-source-maps/assets/{step-panel-BNu4CT-a.js.map → step-panel-BVdV2FNT.js.map} +1 -1
  235. package/dist/shell-source-maps/assets/{timeline-display-Dj7rfbX5.js.map → timeline-display-BxihBkFH.js.map} +1 -1
  236. package/dist/shell-source-maps/assets/{trash-DGtnZxzc.js.map → trash-5PpoeP3R.js.map} +1 -1
  237. package/dist/shell-source-maps/assets/{update-set-DmSoOUGC.js.map → update-set-BnRA9YhA.js.map} +1 -1
  238. package/dist/shell-source-maps/assets/{use-calendar-move-r5AsNTri.js.map → use-calendar-move-Bu9MSBcs.js.map} +1 -1
  239. package/dist/shell-source-maps/assets/{use-display-rows-QMseygYe.js.map → use-display-rows-ERQ-vbki.js.map} +1 -1
  240. package/dist/shell-source-maps/assets/use-my-invitations-CnAvjXV0.js.map +1 -0
  241. package/dist/shell-source-maps/assets/{use-paged-search-CI7t7XI0.js.map → use-paged-search-CcEitpWG.js.map} +1 -1
  242. package/dist/shell-source-maps/assets/{use-run-trace-D0jDOrL8.js.map → use-run-trace-CV461SQS.js.map} +1 -1
  243. package/dist/shell-source-maps/assets/{use-workflow-page-BMjBBt83.js.map → use-workflow-page-peSmP1Jq.js.map} +1 -1
  244. package/dist/shell-source-maps/assets/{use-workflow-types-8ZRuZVuJ.js.map → use-workflow-types-xM8CZO96.js.map} +1 -1
  245. package/dist/shell-source-maps/assets/{workflow-canvas-DtTiaGIh.js.map → workflow-canvas-CkKd9u0-.js.map} +1 -1
  246. package/dist/shell-source-maps/assets/{workflow-field-2I9HpR3s.js.map → workflow-field-WovRhNaT.js.map} +1 -1
  247. package/dist/shell-source-maps/assets/{workflow-graph-editor-DJoriSTb.js.map → workflow-graph-editor-DRZ2UtBp.js.map} +1 -1
  248. package/dist/shell-source-maps/assets/{workflow-run-field-BB6DMeK0.js.map → workflow-run-field-CrBAVhOq.js.map} +1 -1
  249. package/dist/shell-source-maps/assets/workflow-status-field-DgjtbjlH.js.map +1 -0
  250. package/dist/shell-source-maps/assets/{workflow-workbench-PnPXVcoE.js.map → workflow-workbench-D8vU7ifz.js.map} +1 -1
  251. package/dist/status/messages.d.ts +2 -2
  252. package/dist/users/messages.d.ts +2 -2
  253. package/package.json +5 -5
  254. package/dist/shell/assets/app-B48LQpC1.js +0 -34
  255. package/dist/shell/assets/board-display-D9PUmRbl.js +0 -2
  256. package/dist/shell/assets/calendar-display-B8J8DI5J.js +0 -2
  257. package/dist/shell/assets/create-route-rbublA-_.js +0 -2
  258. package/dist/shell/assets/embedded-list-CdFZ5TIe.js +0 -3
  259. package/dist/shell/assets/export-worker-CQwKM8Oc.js +0 -15
  260. package/dist/shell/assets/invitations-page-nBjy3DSn.js +0 -2
  261. package/dist/shell/assets/list-page-C7h-_WJY.js +0 -4
  262. package/dist/shell/assets/members-page-D1uMhOZR.js +0 -2
  263. package/dist/shell/assets/messages-lXPHUGLV.js +0 -2
  264. package/dist/shell/assets/organization-page-RMZnMPR0.js +0 -2
  265. package/dist/shell/assets/organizations-page-Ce6Nwl7X.js +0 -2
  266. package/dist/shell/assets/parse-worker-BN8cVWIa.js +0 -35
  267. package/dist/shell/assets/public-form-page-CvtOJGMY.js +0 -2
  268. package/dist/shell/assets/record-page-BMFIEvdR.js +0 -3
  269. package/dist/shell/assets/render-node-DEeBoZ9i.js +0 -3
  270. package/dist/shell/assets/reorder-button-BauUDONv.js +0 -2
  271. package/dist/shell/assets/shared-protobase-ui-BGJ_UVNP.js +0 -1
  272. package/dist/shell/assets/sign-in-policy-page-BumL1ZPK.js +0 -2
  273. package/dist/shell/assets/start-block-queries-DYE83u9M.js +0 -2
  274. package/dist/shell/assets/step-catalog-DAHY1jbn.js +0 -2
  275. package/dist/shell/assets/timeline-display-Dj7rfbX5.js +0 -2
  276. package/dist/shell/assets/use-calendar-move-r5AsNTri.js +0 -2
  277. package/dist/shell/assets/workflow-status-field-L_mimjzo.js +0 -2
  278. package/dist/shell/assets/workflow-workbench-PnPXVcoE.js +0 -4
  279. package/dist/shell-source-maps/assets/app-B48LQpC1.js.map +0 -1
  280. package/dist/shell-source-maps/assets/en-wsBk87ZG.js.map +0 -1
  281. package/dist/shell-source-maps/assets/export-worker-CQwKM8Oc.js.map +0 -1
  282. package/dist/shell-source-maps/assets/invitations-page-nBjy3DSn.js.map +0 -1
  283. package/dist/shell-source-maps/assets/members-page-D1uMhOZR.js.map +0 -1
  284. package/dist/shell-source-maps/assets/nl-nieWXCy1.js.map +0 -1
  285. package/dist/shell-source-maps/assets/organization-page-RMZnMPR0.js.map +0 -1
  286. package/dist/shell-source-maps/assets/organizations-page-Ce6Nwl7X.js.map +0 -1
  287. package/dist/shell-source-maps/assets/parse-worker-BN8cVWIa.js.map +0 -1
  288. package/dist/shell-source-maps/assets/workflow-status-field-L_mimjzo.js.map +0 -1
@@ -1,6 +1,7 @@
1
1
  import { useAuth } from "../auth/auth-provider.js";
2
2
  import { text } from "./messages.js";
3
3
  import { useAction } from "./use-action.js";
4
+ import { useOrganizationText } from "./organization-word.js";
4
5
  import { reopenIn } from "./use-organizations.js";
5
6
  import { PagedSearchList } from "../lists/paged-search-list.js";
6
7
  import { usePagedSearch } from "../lists/use-paged-search.js";
@@ -11,6 +12,7 @@ import { jsx } from "react/jsx-runtime";
11
12
  /** Every organization in the app for people with a global role, who may work in any of them. */
12
13
  const AllOrganizations = ({ basePath, currentId }) => {
13
14
  const { session } = useAuth();
15
+ const t = useOrganizationText();
14
16
  const [query, setQuery] = useState("");
15
17
  const search = useCallback((term, offset) => session.organizations.search(term, offset).then((page) => ({
16
18
  items: page.organizations,
@@ -19,9 +21,9 @@ const AllOrganizations = ({ basePath, currentId }) => {
19
21
  const list = usePagedSearch(search, query);
20
22
  const { busy, error, run } = useAction();
21
23
  return /* @__PURE__ */ jsx(PagedSearchList, {
22
- title: text("allOrganizations"),
23
- description: text("allOrganizationsDescription"),
24
- searchLabel: text("findOrganization"),
24
+ title: t("allOrganizations"),
25
+ description: t("allOrganizationsDescription"),
26
+ searchLabel: t("findOrganization"),
25
27
  placeholder: text("nameOrSlug"),
26
28
  query,
27
29
  onQuery: setQuery,
@@ -0,0 +1,21 @@
1
+ //#region src/organizations/first-organization-page.d.ts
2
+ export type FirstOrganizationPageProps = {
3
+ /** The screen's own address: the form alone below the invitations at `firstOrganizationFormPath`. */
4
+ path: string;
5
+ basePath: string;
6
+ /** The address the person is signed in as. */
7
+ email: string;
8
+ /** Whether they may create an organization (`organizations.create`). */
9
+ mayCreate: boolean;
10
+ /** Whether a global role lets them work in any organization, which the organizations page lists. */
11
+ seesAll: boolean;
12
+ /** Signs out, asking first. */
13
+ onSignOut: () => void;
14
+ };
15
+ /**
16
+ * Where someone signed in without an organization starts: their pending invitations first, each joined in one press,
17
+ * with a way to create one of their own instead; without invitations, the one field that names it. Joining or creating
18
+ * opens the app afresh at its start address. Someone who may not create and has no invitation is told to ask for one.
19
+ */
20
+ export declare const FirstOrganizationPage: ({ path, basePath, email, mayCreate, seesAll, onSignOut }: FirstOrganizationPageProps) => import("react").JSX.Element;
21
+ //#endregion
@@ -0,0 +1,125 @@
1
+ import { Button } from "../primitives/button.js";
2
+ import { Link } from "../app/router.js";
3
+ import { useAuth } from "../auth/auth-provider.js";
4
+ import { SectionError } from "../account/account-section.js";
5
+ import { AuthLayout } from "../auth/auth-layout.js";
6
+ import "./organization-paths.js";
7
+ import { useAction } from "./use-action.js";
8
+ import { useOrganizationText } from "./organization-word.js";
9
+ import { reopenIn } from "./use-organizations.js";
10
+ import { MyInvitationRow } from "./my-invitation-row.js";
11
+ import { NewOrganizationForm } from "./new-organization-form.js";
12
+ import { useMyInvitations } from "./use-my-invitations.js";
13
+ import { jsx, jsxs } from "react/jsx-runtime";
14
+ //#region src/organizations/first-organization-page.tsx
15
+ const linkClass = "font-medium text-primary-text hover:underline";
16
+ const SignedInAs = ({ email, onSignOut, children }) => {
17
+ const t = useOrganizationText();
18
+ return /* @__PURE__ */ jsxs("div", {
19
+ className: "mt-5 flex flex-col gap-2 border-t pt-4 text-center text-muted-foreground",
20
+ children: [
21
+ children,
22
+ /* @__PURE__ */ jsx("p", {
23
+ className: "break-words",
24
+ children: t("signedInAs", { email })
25
+ }),
26
+ /* @__PURE__ */ jsx("button", {
27
+ type: "button",
28
+ onClick: onSignOut,
29
+ className: "self-center font-medium text-muted-foreground hover:text-foreground hover:underline",
30
+ children: t("signOut")
31
+ })
32
+ ]
33
+ });
34
+ };
35
+ /**
36
+ * Where someone signed in without an organization starts: their pending invitations first, each joined in one press,
37
+ * with a way to create one of their own instead; without invitations, the one field that names it. Joining or creating
38
+ * opens the app afresh at its start address. Someone who may not create and has no invitation is told to ask for one.
39
+ */
40
+ const FirstOrganizationPage = ({ path, basePath, email, mayCreate, seesAll, onSignOut }) => {
41
+ const { session, organizations: settings } = useAuth();
42
+ const t = useOrganizationText();
43
+ const read = useMyInvitations();
44
+ const { busy, error, run } = useAction();
45
+ const opened = () => reopenIn(basePath);
46
+ const all = seesAll && /* @__PURE__ */ jsx(Link, {
47
+ to: "/-/organizations",
48
+ className: linkClass,
49
+ children: t("allOrganizations")
50
+ });
51
+ const footer = /* @__PURE__ */ jsx(SignedInAs, {
52
+ email,
53
+ onSignOut,
54
+ children: all
55
+ });
56
+ if (read.state === "loading") return /* @__PURE__ */ jsx("div", {
57
+ className: "min-h-full",
58
+ "aria-busy": true
59
+ });
60
+ if (read.state === "failed") return /* @__PURE__ */ jsxs(AuthLayout, {
61
+ title: t("invitationsNotLoaded"),
62
+ description: t("invitationsNotLoadedHelp"),
63
+ children: [/* @__PURE__ */ jsx(Button, {
64
+ variant: "primary",
65
+ className: "min-h-10 w-full",
66
+ onClick: read.retry,
67
+ children: t("tryAgain")
68
+ }), footer]
69
+ });
70
+ const invitations = read.invitations;
71
+ if (invitations.length > 0 && (path !== "/-/first-organization/new" || !mayCreate)) return /* @__PURE__ */ jsxs(AuthLayout, {
72
+ title: t("invitedTitle"),
73
+ description: mayCreate ? t("invitedSubtitle") : t("invitedSubtitleJoinOnly"),
74
+ children: [
75
+ /* @__PURE__ */ jsx(SectionError, { message: error }),
76
+ /* @__PURE__ */ jsx("ul", {
77
+ className: "divide-y rounded-md border",
78
+ children: invitations.map((invitation) => /* @__PURE__ */ jsx(MyInvitationRow, {
79
+ invitation,
80
+ t,
81
+ busy,
82
+ onJoin: () => void run(async () => {
83
+ await session.organizations.acceptMine(invitation.id);
84
+ opened();
85
+ })
86
+ }, invitation.id))
87
+ }),
88
+ mayCreate && /* @__PURE__ */ jsx("p", {
89
+ className: "mt-4 text-center",
90
+ children: /* @__PURE__ */ jsx(Link, {
91
+ to: "/-/first-organization/new",
92
+ className: linkClass,
93
+ children: t("createInstead")
94
+ })
95
+ }),
96
+ footer
97
+ ]
98
+ });
99
+ if (!mayCreate) return /* @__PURE__ */ jsx(AuthLayout, {
100
+ title: t("notInAnyTitle"),
101
+ description: t("notInAny", { email }),
102
+ children: footer
103
+ });
104
+ return /* @__PURE__ */ jsxs(AuthLayout, {
105
+ title: t("createTitle"),
106
+ ...settings?.createDescription && { description: settings.createDescription },
107
+ children: [
108
+ /* @__PURE__ */ jsx(NewOrganizationForm, {
109
+ autoFocus: true,
110
+ onCreated: opened
111
+ }),
112
+ invitations.length > 0 && /* @__PURE__ */ jsx("p", {
113
+ className: "mt-4 text-center",
114
+ children: /* @__PURE__ */ jsx(Link, {
115
+ to: "/-/first-organization",
116
+ className: linkClass,
117
+ children: t("backToInvitations")
118
+ })
119
+ }),
120
+ footer
121
+ ]
122
+ });
123
+ };
124
+ //#endregion
125
+ export { FirstOrganizationPage };
@@ -3,6 +3,7 @@ import { AccountSection } from "../account/account-section.js";
3
3
  import { PageHeader } from "../app-shell/page-header.js";
4
4
  import { text } from "./messages.js";
5
5
  import { grantableRoles, organizationRoleLabel, roleLabel } from "./organization-paths.js";
6
+ import { useOrganizationText } from "./organization-word.js";
6
7
  import { InviteForm } from "../invitations/invite-form.js";
7
8
  import { PendingInvitationRow } from "../invitations/pending-invitation-row.js";
8
9
  import { AppRolesPicker } from "./app-roles-picker.js";
@@ -12,6 +13,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
12
13
  //#region src/organizations/invitations-page.tsx
13
14
  const InviteToOrganization = ({ current, onSent }) => {
14
15
  const { session, organizations } = useAuth();
16
+ const t = useOrganizationText();
15
17
  const roles = organizations?.roles ?? [];
16
18
  const [role, setRole] = useState("member");
17
19
  const [appRoles, setAppRoles] = useState([]);
@@ -30,7 +32,7 @@ const InviteToOrganization = ({ current, onSent }) => {
30
32
  description: text("inviteDescription"),
31
33
  onInvite: invite,
32
34
  beside: /* @__PURE__ */ jsx("select", {
33
- "aria-label": text("organizationRole"),
35
+ "aria-label": t("organizationRole"),
34
36
  value: role,
35
37
  onChange: (event) => setRole(event.target.value),
36
38
  className: "h-8 rounded-md border border-border-strong bg-background px-2",
@@ -10,6 +10,7 @@ import { text } from "./messages.js";
10
10
  import { grantableRoles, organizationRoleLabel } from "./organization-paths.js";
11
11
  import { useAction } from "./use-action.js";
12
12
  import { presenceOf } from "../presence/presence.js";
13
+ import { useOrganizationText } from "./organization-word.js";
13
14
  import { AppRolesPicker } from "./app-roles-picker.js";
14
15
  import { PersonRow } from "../people/person-row.js";
15
16
  import { useCallback } from "react";
@@ -25,6 +26,7 @@ const assignableOrganizationRoles = (current) => current?.role === "owner" ? [
25
26
  ] : ["admin", "member"];
26
27
  const MemberRow = ({ member, current, status, presence, onChanged }) => {
27
28
  const { session, organizations } = useAuth();
29
+ const t = useOrganizationText();
28
30
  const organizationId = current.organization.id;
29
31
  const { busy, error, run } = useAction();
30
32
  const roles = organizations?.roles ?? [];
@@ -42,7 +44,7 @@ const MemberRow = ({ member, current, status, presence, onChanged }) => {
42
44
  presence
43
45
  }) },
44
46
  actions: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("select", {
45
- "aria-label": text("roleOf", { name: member.name }),
47
+ "aria-label": t("roleOf", { name: member.name }),
46
48
  value: member.role,
47
49
  disabled: busy || roleLocked,
48
50
  onChange: (event) => void run(async () => {
@@ -85,6 +87,7 @@ const MemberRow = ({ member, current, status, presence, onChanged }) => {
85
87
  */
86
88
  const MembersPage = ({ current, statuses, presence }) => {
87
89
  const { session } = useAuth();
90
+ const t = useOrganizationText();
88
91
  const organizationId = current?.organization?.id;
89
92
  const query = useQuery({
90
93
  queryKey: keys.organizationMembers(organizationId ?? ""),
@@ -104,7 +107,7 @@ const MembersPage = ({ current, statuses, presence }) => {
104
107
  subtitle: text("whoWorks", { organization: current.organization.name })
105
108
  }), /* @__PURE__ */ jsxs(AccountSection, {
106
109
  title: text("members"),
107
- description: text("membersDescription"),
110
+ description: t("membersDescription"),
108
111
  children: [/* @__PURE__ */ jsx(SectionError, { message: error }), members ? /* @__PURE__ */ jsx("ul", {
109
112
  className: "divide-y rounded-md border",
110
113
  children: members.map((member) => /* @__PURE__ */ jsx(MemberRow, {
@@ -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: "invitations" | "organizations" | "name" | "create" | "open" | "join" | "signOut" | "password" | "delete" | "accept" | "owner" | "admin" | "member" | "loading" | "passwordOptional" | "yourName" | "invalidLink" | "save" | "cancel" | "until" | "current" | "remove" | "leave" | "guestLinks" | "manageOrganizations" | "organization" | "members" | "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", values?: Record<string, MessageValue>): string;
5
- rich(id: "invitations" | "organizations" | "name" | "create" | "open" | "join" | "signOut" | "password" | "delete" | "accept" | "owner" | "admin" | "member" | "loading" | "passwordOptional" | "yourName" | "invalidLink" | "save" | "cancel" | "until" | "current" | "remove" | "leave" | "guestLinks" | "manageOrganizations" | "organization" | "members" | "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", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
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;
6
6
  };
7
7
  //#endregion
@@ -0,0 +1,11 @@
1
+ import { OrganizationText } from "./organization-word.js";
2
+ import { OrganizationInvitation } from "@protobase/client";
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 }: {
6
+ invitation: OrganizationInvitation;
7
+ t: OrganizationText;
8
+ busy: boolean;
9
+ onJoin: () => void;
10
+ }) => import("react").JSX.Element;
11
+ //#endregion
@@ -0,0 +1,34 @@
1
+ import { formatTag } from "../locale/active-locale.js";
2
+ import { Button } from "../primitives/button.js";
3
+ import { useAuth } from "../auth/auth-provider.js";
4
+ import { roleLabel } from "./organization-paths.js";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
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 }) => {
9
+ const roles = useAuth().organizations?.roles ?? [];
10
+ const name = invitation.organizationName ?? t("anOrganization");
11
+ const appRoles = invitation.appRoles.map((role) => roleLabel(roles, role)).join(", ");
12
+ const expires = t("expires", { date: new Date(invitation.expiresAt).toLocaleDateString(formatTag(), { dateStyle: "long" }) });
13
+ return /* @__PURE__ */ jsxs("li", {
14
+ className: "flex flex-col gap-2 px-3 py-2.5 sm:flex-row sm:items-center sm:gap-3",
15
+ children: [/* @__PURE__ */ jsxs("span", {
16
+ className: "min-w-0 flex-1",
17
+ children: [/* @__PURE__ */ jsx("span", {
18
+ className: "block break-words font-medium",
19
+ children: name
20
+ }), /* @__PURE__ */ jsx("span", {
21
+ className: "block text-xs text-muted-foreground",
22
+ children: appRoles ? `${appRoles} · ${expires}` : expires
23
+ })]
24
+ }), /* @__PURE__ */ jsx(Button, {
25
+ variant: "primary",
26
+ loading: busy,
27
+ onClick: onJoin,
28
+ className: "min-h-10 w-full sm:min-h-0 sm:w-auto",
29
+ children: t("join", { name })
30
+ })]
31
+ });
32
+ };
33
+ //#endregion
34
+ export { MyInvitationRow };
@@ -0,0 +1,10 @@
1
+ //#region src/organizations/new-organization-form.d.ts
2
+ /**
3
+ * Names a new organization, its one field; the server makes its slug from the name. The button always answers: an
4
+ * empty name says so by the field, and while the organization is made a second press does nothing.
5
+ */
6
+ export declare const NewOrganizationForm: ({ onCreated, autoFocus }: {
7
+ onCreated: () => void;
8
+ autoFocus?: boolean;
9
+ }) => import("react").JSX.Element;
10
+ //#endregion
@@ -0,0 +1,76 @@
1
+ import { Button } from "../primitives/button.js";
2
+ import { useAuth } from "../auth/auth-provider.js";
3
+ import { Input } from "../primitives/input.js";
4
+ import { useAction } from "./use-action.js";
5
+ import { useOrganizationText } from "./organization-word.js";
6
+ import { useId, useRef, useState } from "react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ //#region src/organizations/new-organization-form.tsx
9
+ /**
10
+ * Names a new organization, its one field; the server makes its slug from the name. The button always answers: an
11
+ * empty name says so by the field, and while the organization is made a second press does nothing.
12
+ */
13
+ const NewOrganizationForm = ({ onCreated, autoFocus = false }) => {
14
+ const { session } = useAuth();
15
+ const t = useOrganizationText();
16
+ const [name, setName] = useState("");
17
+ const [missing, setMissing] = useState(false);
18
+ const { busy, error, run } = useAction();
19
+ const hint = useId();
20
+ const field = useRef(null);
21
+ const submit = () => {
22
+ if (busy) return;
23
+ if (name.trim() === "") {
24
+ setMissing(true);
25
+ field.current?.focus();
26
+ return;
27
+ }
28
+ run(async () => {
29
+ await session.organizations.create({ name: name.trim() });
30
+ onCreated();
31
+ });
32
+ };
33
+ const problem = missing ? t("nameNeeded") : error;
34
+ return /* @__PURE__ */ jsxs("form", {
35
+ className: "flex flex-col gap-4",
36
+ noValidate: true,
37
+ onSubmit: (event) => {
38
+ event.preventDefault();
39
+ submit();
40
+ },
41
+ children: [/* @__PURE__ */ jsxs("div", {
42
+ className: "flex flex-col gap-1.5",
43
+ children: [/* @__PURE__ */ jsxs("label", {
44
+ className: "flex flex-col gap-1.5 font-medium",
45
+ children: [t("organizationName"), /* @__PURE__ */ jsx(Input, {
46
+ ref: field,
47
+ name: "organization",
48
+ autoComplete: "organization",
49
+ autoFocus,
50
+ maxLength: 200,
51
+ value: name,
52
+ invalid: Boolean(problem),
53
+ "aria-describedby": problem ? hint : void 0,
54
+ onChange: (event) => {
55
+ setName(event.target.value);
56
+ setMissing(false);
57
+ },
58
+ className: "min-h-6"
59
+ })]
60
+ }), problem && /* @__PURE__ */ jsx("p", {
61
+ id: hint,
62
+ role: "alert",
63
+ className: "text-body font-medium text-danger-text",
64
+ children: problem
65
+ })]
66
+ }), /* @__PURE__ */ jsx(Button, {
67
+ variant: "primary",
68
+ type: "submit",
69
+ loading: busy,
70
+ className: "min-h-10",
71
+ children: t("createButton")
72
+ })]
73
+ });
74
+ };
75
+ //#endregion
76
+ export { NewOrganizationForm };
@@ -9,6 +9,7 @@ import { PageHeader } from "../app-shell/page-header.js";
9
9
  import { text } from "./messages.js";
10
10
  import { managesOrganization, organizationRoleLabel } from "./organization-paths.js";
11
11
  import { useAction } from "./use-action.js";
12
+ import { useOrganizationText } from "./organization-word.js";
12
13
  import { reopenIn } from "./use-organizations.js";
13
14
  import { Switch } from "../primitives/switch.js";
14
15
  import { useEffect, useState } from "react";
@@ -112,19 +113,20 @@ const Delete = ({ organization, basePath }) => {
112
113
  const [confirming, setConfirming] = useState(false);
113
114
  const [typed, setTyped] = useState("");
114
115
  const { busy, error, run } = useAction();
116
+ const t = useOrganizationText();
115
117
  const remove = () => run(async () => {
116
118
  await session.organizations.remove(organization.id);
117
119
  reopenIn(basePath);
118
120
  });
119
121
  return /* @__PURE__ */ jsxs(AccountSection, {
120
- title: text("deleteOrganization"),
121
- description: text("deleteDescription"),
122
+ title: t("deleteOrganization"),
123
+ description: t("deleteDescription"),
122
124
  children: [
123
125
  /* @__PURE__ */ jsx(SectionError, { message: confirming ? void 0 : error }),
124
126
  /* @__PURE__ */ jsx(Button, {
125
127
  variant: "danger",
126
128
  onClick: () => setConfirming(true),
127
- children: text("deleteOrganization")
129
+ children: t("deleteOrganization")
128
130
  }),
129
131
  confirming && /* @__PURE__ */ jsxs(Dialog, {
130
132
  title: text("deleteTitle", { name: organization.name }),
@@ -141,7 +143,7 @@ const Delete = ({ organization, basePath }) => {
141
143
  children: text("delete")
142
144
  })] }),
143
145
  children: [/* @__PURE__ */ jsx(SectionError, { message: error }), /* @__PURE__ */ jsx(Input, {
144
- "aria-label": text("organizationName"),
146
+ "aria-label": t("organizationName"),
145
147
  value: typed,
146
148
  onChange: (event) => setTyped(event.target.value)
147
149
  })]
@@ -195,12 +197,13 @@ const Leave = ({ organization, basePath, owner }) => {
195
197
  */
196
198
  const OrganizationPage = ({ current, basePath, onChanged }) => {
197
199
  const calls = useMeta().data?.calls === true;
200
+ const t = useOrganizationText();
198
201
  const organization = current?.organization;
199
202
  if (!organization) return /* @__PURE__ */ jsx("div", {
200
203
  className: "mx-auto w-full max-w-3xl px-4 py-6 md:px-6",
201
204
  children: /* @__PURE__ */ jsx(PageHeader, {
202
- title: text("organization"),
203
- subtitle: text("noOrganization")
205
+ title: t("organization"),
206
+ subtitle: t("noOrganization")
204
207
  })
205
208
  });
206
209
  const owner = current.role === "owner";
@@ -1,13 +1,18 @@
1
1
  import { ProfileMenuItem } from "../app-shell/profile-menu.js";
2
2
  import "../app-shell/index.js";
3
+ import { OrganizationText } from "./organization-word.js";
3
4
  import { CurrentOrganization, OrganizationRole, RoleLabel } from "@protobase/client";
4
5
  //#region src/organizations/organization-paths.d.ts
5
6
  export declare const organizationsPath = "/-/organizations";
6
7
  export declare const organizationPath = "/-/organization";
7
8
  export declare const membersPath = "/-/organization/members";
8
9
  export declare const invitationsPath = "/-/organization/invitations";
10
+ export declare const firstOrganizationPath = "/-/first-organization";
11
+ export declare const firstOrganizationFormPath = "/-/first-organization/new";
9
12
  /** The title of the organization page at `path`; undefined for any other path. */
10
- export declare const organizationPageTitle: (path: string) => string | undefined;
13
+ export declare const organizationPageTitle: (path: string, t: OrganizationText) => string | undefined;
14
+ /** Whether `path` is the screen where someone in no organization names or joins their first. */
15
+ export declare const isFirstOrganizationPath: (path: string) => path is "/-/first-organization" | "/-/first-organization/new";
11
16
  /** The word for an organization role. */
12
17
  export declare const organizationRoleLabel: (role: OrganizationRole) => string;
13
18
  /** The label of an app role, as the server names it. */
@@ -19,7 +24,7 @@ export declare const managesOrganization: (current?: CurrentOrganization) => boo
19
24
  * details, and for its owners and admins its members and invitations. The first is "Manage organizations", as the
20
25
  * switcher above it already lists the organizations.
21
26
  */
22
- export declare const organizationMenuItems: (basePath: string, path: string, current?: CurrentOrganization) => ProfileMenuItem[];
27
+ export declare const organizationMenuItems: (basePath: string, path: string, t: OrganizationText, current?: CurrentOrganization) => ProfileMenuItem[];
23
28
  /** The app roles someone may give or take away: those they hold, those their roles grant, and every one for a superuser. */
24
29
  export declare const grantableRoles: (roles: readonly RoleLabel[], current?: CurrentOrganization) => Set<string>;
25
30
  //#endregion
@@ -5,17 +5,23 @@ const organizationsPath = "/-/organizations";
5
5
  const organizationPath = "/-/organization";
6
6
  const membersPath = "/-/organization/members";
7
7
  const invitationsPath = "/-/organization/invitations";
8
+ const firstOrganizationPath = "/-/first-organization";
9
+ const firstOrganizationFormPath = "/-/first-organization/new";
8
10
  const pageTitles = {
9
11
  [organizationsPath]: "organizations",
10
12
  [organizationPath]: "organization",
11
13
  [membersPath]: "members",
12
- [invitationsPath]: "invitations"
14
+ [invitationsPath]: "invitations",
15
+ [firstOrganizationPath]: "createTitle",
16
+ [firstOrganizationFormPath]: "createTitle"
13
17
  };
14
18
  /** The title of the organization page at `path`; undefined for any other path. */
15
- const organizationPageTitle = (path) => {
19
+ const organizationPageTitle = (path, t) => {
16
20
  const id = pageTitles[path];
17
- return id && text(id);
21
+ return id && t(id);
18
22
  };
23
+ /** Whether `path` is the screen where someone in no organization names or joins their first. */
24
+ const isFirstOrganizationPath = (path) => path === "/-/first-organization" || path === "/-/first-organization/new";
19
25
  /** The word for an organization role. */
20
26
  const organizationRoleLabel = (role) => text(role);
21
27
  /** The label of an app role, as the server names it. */
@@ -27,7 +33,7 @@ const managesOrganization = (current) => current?.role === "owner" || current?.r
27
33
  * details, and for its owners and admins its members and invitations. The first is "Manage organizations", as the
28
34
  * switcher above it already lists the organizations.
29
35
  */
30
- const organizationMenuItems = (basePath, path, current) => {
36
+ const organizationMenuItems = (basePath, path, t, current) => {
31
37
  const item = (id, label, icon, target) => ({
32
38
  id,
33
39
  label,
@@ -36,9 +42,9 @@ const organizationMenuItems = (basePath, path, current) => {
36
42
  active: path === target
37
43
  });
38
44
  return [
39
- item("organizations", text("manageOrganizations"), Network, organizationsPath),
40
- ...current?.organization ? [item("organization", text("organization"), Building2, organizationPath)] : [],
41
- ...managesOrganization(current) ? [item("members", text("members"), Users, membersPath), item("invitations", text("invitations"), Mail, invitationsPath)] : []
45
+ item("organizations", t("manageOrganizations"), Network, organizationsPath),
46
+ ...current?.organization ? [item("organization", t("organization"), Building2, organizationPath)] : [],
47
+ ...managesOrganization(current) ? [item("members", t("members"), Users, membersPath), item("invitations", t("invitations"), Mail, invitationsPath)] : []
42
48
  ];
43
49
  };
44
50
  /** The app roles someone may give or take away: those they hold, those their roles grant, and every one for a superuser. */
@@ -50,4 +56,4 @@ const grantableRoles = (roles, current) => {
50
56
  return new Set([...held, ...granted].filter((name) => membership.includes(name)));
51
57
  };
52
58
  //#endregion
53
- export { grantableRoles, invitationsPath, managesOrganization, membersPath, organizationMenuItems, organizationPageTitle, organizationPath, organizationRoleLabel, organizationsPath, roleLabel };
59
+ export { firstOrganizationFormPath, firstOrganizationPath, grantableRoles, invitationsPath, isFirstOrganizationPath, managesOrganization, membersPath, organizationMenuItems, organizationPageTitle, organizationPath, organizationRoleLabel, organizationsPath, roleLabel };
@@ -0,0 +1,14 @@
1
+ import { MessageValue } from "../locale/messages.js";
2
+ import { text } from "./messages.js";
3
+ //#region src/organizations/organization-word.d.ts
4
+ /** What the app calls an organization, capitalised as a view's names are (`auth.organizations.names`). */
5
+ export type OrganizationNames = {
6
+ singular: string;
7
+ plural: string;
8
+ };
9
+ export type OrganizationText = (id: Parameters<typeof text>[0], values?: Record<string, MessageValue>) => string;
10
+ /** The organization texts with the app's word for an organization in them, or the built-in "Organization". */
11
+ export declare const wordedText: (names?: OrganizationNames) => OrganizationText;
12
+ /** The organization texts in the words the app sets for an organization. */
13
+ export declare const useOrganizationText: () => OrganizationText;
14
+ //#endregion
@@ -0,0 +1,22 @@
1
+ import { useAuth } from "../auth/auth-provider.js";
2
+ import { text } from "./messages.js";
3
+ import { useMemo } from "react";
4
+ //#region src/organizations/organization-word.ts
5
+ /** The organization texts with the app's word for an organization in them, or the built-in "Organization". */
6
+ const wordedText = (names) => {
7
+ const word = {
8
+ word: names?.singular ?? text("word"),
9
+ words: names?.plural ?? text("words")
10
+ };
11
+ return (id, values) => text(id, {
12
+ ...word,
13
+ ...values
14
+ });
15
+ };
16
+ /** The organization texts in the words the app sets for an organization. */
17
+ const useOrganizationText = () => {
18
+ const names = useAuth().organizations?.names;
19
+ return useMemo(() => wordedText(names), [names]);
20
+ };
21
+ //#endregion
22
+ export { useOrganizationText, wordedText };
@@ -1,7 +1,5 @@
1
1
  import { OrganizationsState } from "./use-organizations.js";
2
2
  //#region src/organizations/organizations-page.d.ts
3
- /** A slug from a name: lowercase ASCII words joined by dashes, as the server accepts them. */
4
- export declare const slugOf: (name: string) => string;
5
3
  /**
6
4
  * The person's organizations: switching between them, making a new one when the app allows it, and for people with a
7
5
  * global role every organization. Someone in none sees their invitations here.