@protobase/ui 0.121.13 → 0.122.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 (258) hide show
  1. package/dist/account/alias-check-panel.d.ts +13 -0
  2. package/dist/account/alias-check-panel.js +40 -0
  3. package/dist/account/alias-check-run.d.ts +37 -0
  4. package/dist/account/alias-check-run.js +24 -0
  5. package/dist/account/alias-check.d.ts +15 -0
  6. package/dist/account/alias-check.js +16 -0
  7. package/dist/account/blocks/personal-mail-block.js +3 -1
  8. package/dist/account/mail-sender-dialog.d.ts +4 -1
  9. package/dist/account/mail-sender-dialog.js +10 -2
  10. package/dist/account/mail-senders-section.d.ts +8 -3
  11. package/dist/account/mail-senders-section.js +25 -6
  12. package/dist/account/messages.d.ts +2 -2
  13. package/dist/account/use-alias-check.d.ts +12 -0
  14. package/dist/account/use-alias-check.js +54 -0
  15. package/dist/activity-chart/messages.d.ts +2 -2
  16. package/dist/app/change-confirm/messages.d.ts +2 -2
  17. package/dist/app/charts/messages.d.ts +2 -2
  18. package/dist/app/confirm-sign-in-messages.d.ts +2 -2
  19. package/dist/app/conversation/thread-state.d.ts +1 -1
  20. package/dist/app/conversation-page/messages.d.ts +2 -2
  21. package/dist/app/create/messages.d.ts +2 -2
  22. package/dist/app/custom-section.d.ts +1 -1
  23. package/dist/app/delete/messages.d.ts +2 -2
  24. package/dist/app/displays/list-cards.d.ts +1 -1
  25. package/dist/app/displays/messages.d.ts +2 -2
  26. package/dist/app/embedded-list/messages.d.ts +2 -2
  27. package/dist/app/export/messages.d.ts +2 -2
  28. package/dist/app/field-messages.d.ts +2 -2
  29. package/dist/app/field-types/custom-step-container/messages.d.ts +2 -2
  30. package/dist/app/field-types/json/messages.d.ts +2 -2
  31. package/dist/app/field-types/runner-install/messages.d.ts +2 -2
  32. package/dist/app/field-types/widget-part.d.ts +1 -1
  33. package/dist/app/field-types/workflow/definition.d.ts +1 -1
  34. package/dist/app/field-types/workflow/messages.d.ts +2 -2
  35. package/dist/app/field-types/workflow-page/messages.d.ts +2 -2
  36. package/dist/app/field-types/workflow-run/messages.d.ts +2 -2
  37. package/dist/app/field-types/workflow-status/messages.d.ts +2 -2
  38. package/dist/app/file-viewers/messages.d.ts +2 -2
  39. package/dist/app/focus/messages.d.ts +2 -2
  40. package/dist/app/gallery/gallery-layout.d.ts +2 -2
  41. package/dist/app/gallery/messages.d.ts +2 -2
  42. package/dist/app/hand-order/messages.d.ts +2 -2
  43. package/dist/app/history/messages.d.ts +2 -2
  44. package/dist/app/import/messages.d.ts +2 -2
  45. package/dist/app/list-edit/messages.d.ts +2 -2
  46. package/dist/app/list-messages.d.ts +2 -2
  47. package/dist/app/messages.d.ts +2 -2
  48. package/dist/app/meta-gate-messages.d.ts +2 -2
  49. package/dist/app/new-version/messages.d.ts +2 -2
  50. package/dist/app/pages/custom-boundary.d.ts +1 -1
  51. package/dist/app/pages/custom-chosen.d.ts +1 -1
  52. package/dist/app/pages/messages.d.ts +2 -2
  53. package/dist/app/record-chart/messages.d.ts +2 -2
  54. package/dist/app/record-messages.d.ts +2 -2
  55. package/dist/app/record-mode/shown-layout.d.ts +1 -1
  56. package/dist/app/record-row/messages.d.ts +2 -2
  57. package/dist/app/related-cards/messages.d.ts +2 -2
  58. package/dist/app/runtime/messages.d.ts +2 -2
  59. package/dist/app/saved/messages.d.ts +2 -2
  60. package/dist/app/saved/saved-list.d.ts +1 -1
  61. package/dist/app/saved/use-favorite.d.ts +1 -1
  62. package/dist/app/search/messages.d.ts +2 -2
  63. package/dist/app/searches/messages.d.ts +2 -2
  64. package/dist/app/searches/use-save-search.d.ts +1 -1
  65. package/dist/app-shell/messages.d.ts +2 -2
  66. package/dist/assistant-dock/messages.d.ts +2 -2
  67. package/dist/auth/messages.d.ts +2 -2
  68. package/dist/calls/messages.d.ts +2 -2
  69. package/dist/data-grid/column-spec.d.ts +1 -1
  70. package/dist/data-grid/messages.d.ts +2 -2
  71. package/dist/filter-panel/messages.d.ts +2 -2
  72. package/dist/format/messages.d.ts +2 -2
  73. package/dist/forms/messages.d.ts +2 -2
  74. package/dist/inline-child-table/messages.d.ts +2 -2
  75. package/dist/invitations/messages.d.ts +2 -2
  76. package/dist/live/messages.d.ts +2 -2
  77. package/dist/locale/en.js +7 -0
  78. package/dist/locale/en.json.d.ts +7 -0
  79. package/dist/locale/messages.d.ts +14 -0
  80. package/dist/locale/nl.js +7 -0
  81. package/dist/locale/texts-gate.d.ts +1 -1
  82. package/dist/mailbox/messages.d.ts +2 -2
  83. package/dist/mocks/customers.d.ts +1 -1
  84. package/dist/mocks/invoices.d.ts +2 -2
  85. package/dist/mocks/orders.d.ts +1 -1
  86. package/dist/mocks/stockMoves.d.ts +1 -1
  87. package/dist/notifications/bell/messages.d.ts +2 -2
  88. package/dist/organizations/messages.d.ts +2 -2
  89. package/dist/package.js +1 -1
  90. package/dist/plugins/before-sign-in.d.ts +1 -1
  91. package/dist/plugins/messages.d.ts +2 -2
  92. package/dist/primitives/messages.d.ts +2 -2
  93. package/dist/shell/assets/{account-page-BiW75oAt.js → account-page-BESKgoYT.js} +2 -2
  94. package/dist/shell/assets/{app-CONqqVEp.js → app-DANB5cb3.js} +5 -5
  95. package/dist/shell/assets/{assistant-shell-CI8XmGPz.js → assistant-shell-DUxCRpci.js} +2 -2
  96. package/dist/shell/assets/{board-display-G0A9DG-O.js → board-display-Blx6nTDs.js} +2 -2
  97. package/dist/shell/assets/{calendar-display-NkSQgeal.js → calendar-display-SPyIwDLG.js} +2 -2
  98. package/dist/shell/assets/{call-rings-0TNlWSxz.js → call-rings-BGJkCQwP.js} +2 -2
  99. package/dist/shell/assets/{calls-C7XJGJtG.js → calls-BRoDIvWu.js} +2 -2
  100. package/dist/shell/assets/{circle-alert-X92Rz4B3.js → circle-alert-BZyGgZSj.js} +2 -2
  101. package/dist/shell/assets/{composed-page-DPJGOtXk.js → composed-page-By2d8F85.js} +2 -2
  102. package/dist/shell/assets/{composer-section-JVIi3Liw.js → composer-section-BiCIOqwU.js} +2 -2
  103. package/dist/shell/assets/{connect-route-CnEB9WFV.js → connect-route-BZsnJGaF.js} +2 -2
  104. package/dist/shell/assets/{copy-field-CxJRqfAI.js → copy-field-DpbjVuK4.js} +2 -2
  105. package/dist/shell/assets/{create-route-3n42ukxG.js → create-route-DglCC2Tk.js} +2 -2
  106. package/dist/shell/assets/{custom-step-container-field-B6LXbOfi.js → custom-step-container-field-DJbluU0F.js} +2 -2
  107. package/dist/shell/assets/{embedded-list-BXN39go2.js → embedded-list-CepLmiOu.js} +3 -3
  108. package/dist/shell/assets/en-Cn7SAD9K.js +2 -0
  109. package/dist/shell/assets/{export-dialog-Bg-iE9he.js → export-dialog-B9fvLoT2.js} +2 -2
  110. package/dist/shell/assets/export-worker-C4HtUYaa.js +15 -0
  111. package/dist/shell/assets/{first-organization-page-BMfMEJ0L.js → first-organization-page-CSIsJmoQ.js} +2 -2
  112. package/dist/shell/assets/{graph-view-D5gACv8d.js → graph-view-IPDrZVmC.js} +2 -2
  113. package/dist/shell/assets/{group-donut-I2kILFBR.js → group-donut-DRT539D9.js} +2 -2
  114. package/dist/shell/assets/{guest-call-page-D3M4dR3J.js → guest-call-page-IxjqrW0F.js} +3 -3
  115. package/dist/shell/assets/{html-viewer-CmiIwn7y.js → html-viewer-C-FI9kDC.js} +2 -2
  116. package/dist/shell/assets/{import-dialog-BWXSXLy9.js → import-dialog-DDaXN05w.js} +2 -2
  117. package/dist/shell/assets/{import-table-dialog-dRLvoLxK.js → import-table-dialog-CHWoi7_S.js} +2 -2
  118. package/dist/shell/assets/{index-DwDhzXCo.js → index-tI-2Oomu.js} +1 -1
  119. package/dist/shell/assets/{invitations-page-BC0t9nV3.js → invitations-page-BE0tj3Aw.js} +2 -2
  120. package/dist/shell/assets/{layout-grid-0SB37tX1.js → layout-grid-7R6t_Nlh.js} +2 -2
  121. package/dist/shell/assets/{legend-item-Bv1rltCv.js → legend-item-C-DA-JTo.js} +2 -2
  122. package/dist/shell/assets/{list-page-CIpQ2O7R.js → list-page-Dj-oZ99M.js} +4 -4
  123. package/dist/shell/assets/{maplibre-BhE7KAqB.js → maplibre-D0uTAdwG.js} +2 -2
  124. package/dist/shell/assets/{markdown-content-DJ7-n0Z_.js → markdown-content-BpKVfSRq.js} +2 -2
  125. package/dist/shell/assets/{members-page-BJpCn7qt.js → members-page-Ced4meCg.js} +2 -2
  126. package/dist/shell/assets/{message-content-CRdJWnUH.js → message-content-DSZOlZUY.js} +2 -2
  127. package/dist/shell/assets/{messages-BNSLYy1a.js → messages-CEK97JXa.js} +2 -2
  128. package/dist/shell/assets/nl-BU1R957e.js +2 -0
  129. package/dist/shell/assets/{organization-page-tBj092Fw.js → organization-page-Dp_D2xbC.js} +2 -2
  130. package/dist/shell/assets/{organizations-page-CnONo4i-.js → organizations-page-CtrgjIWL.js} +2 -2
  131. package/dist/shell/assets/parse-worker-zWUgfCm6.js +35 -0
  132. package/dist/shell/assets/{pending-invitation-row-J_r95Xwv.js → pending-invitation-row-Bs60Zx0i.js} +2 -2
  133. package/dist/shell/assets/{period-chart-CSjsnzTY.js → period-chart-CIgxhMTn.js} +2 -2
  134. package/dist/shell/assets/{person-row-Ci9ECaJa.js → person-row-BH3iAvuG.js} +2 -2
  135. package/dist/shell/assets/{public-form-page-CBy2Ulcs.js → public-form-page-NPPZ_rgo.js} +2 -2
  136. package/dist/shell/assets/{record-lines-CSkPEq1f.js → record-lines-hY9wRXCf.js} +2 -2
  137. package/dist/shell/assets/{record-map-DRtzHwa0.js → record-map-Dzt7xpK8.js} +2 -2
  138. package/dist/shell/assets/{record-opens-CeOBI39T.js → record-opens-DN1LnH9j.js} +2 -2
  139. package/dist/shell/assets/{record-page-BD_zvjHr.js → record-page-CSsNYC0Q.js} +3 -3
  140. package/dist/shell/assets/{record-preview-D0rLqYFH.js → record-preview-B1WiPOw4.js} +2 -2
  141. package/dist/shell/assets/{records-map-BC_K0RDI.js → records-map-BLcMBygH.js} +2 -2
  142. package/dist/shell/assets/{render-node-eUTdIPBj.js → render-node-DyvozeRy.js} +3 -3
  143. package/dist/shell/assets/{reorder-button-BVceX7gP.js → reorder-button-NNfcfua7.js} +2 -2
  144. package/dist/shell/assets/{run-trace-view-hxNAb9rR.js → run-trace-view-BoBj-5R0.js} +2 -2
  145. package/dist/shell/assets/{runner-install-field-DnvAOzy5.js → runner-install-field-BdfsPY9H.js} +2 -2
  146. package/dist/shell/assets/{runtime-update-qxsAz5M1.js → runtime-update-CRO1fS5O.js} +2 -2
  147. package/dist/shell/assets/{shared-protobase-ui-BYIa30Wi.js → shared-protobase-ui-BbJCcQ0y.js} +1 -1
  148. package/dist/shell/assets/{sheet-source-BucFVhPg.js → sheet-source-DSJ73Heh.js} +3 -3
  149. package/dist/shell/assets/{sign-in-policy-page-BEqYTjla.js → sign-in-policy-page-RaxuDREW.js} +2 -2
  150. package/dist/shell/assets/{start-block-queries-CacU6Yef.js → start-block-queries-DTa6akPc.js} +2 -2
  151. package/dist/shell/assets/{step-catalog-BzL3DkPx.js → step-catalog-UHxllpni.js} +2 -2
  152. package/dist/shell/assets/{step-panel-CgBuE7Cg.js → step-panel-BkpaCVJd.js} +2 -2
  153. package/dist/shell/assets/{timeline-display-_KfByRT4.js → timeline-display-CFIOdA59.js} +2 -2
  154. package/dist/shell/assets/{trash-SlzmvtD1.js → trash-IV6Ox5bV.js} +2 -2
  155. package/dist/shell/assets/{update-set-BWwQIjw7.js → update-set-BTHuLrBr.js} +2 -2
  156. package/dist/shell/assets/{use-calendar-move-gwhvc-31.js → use-calendar-move-CaU_5smA.js} +2 -2
  157. package/dist/shell/assets/{use-display-rows-D_VvQK1o.js → use-display-rows-C_H7lxLW.js} +2 -2
  158. package/dist/shell/assets/{use-my-invitations-hkJuWwn6.js → use-my-invitations-DSp8OwP9.js} +2 -2
  159. package/dist/shell/assets/{use-paged-search-PObuLo2W.js → use-paged-search-DOcO0Rbz.js} +2 -2
  160. package/dist/shell/assets/{use-run-trace-Dfgd79SI.js → use-run-trace-BsH3vq5k.js} +2 -2
  161. package/dist/shell/assets/{use-workflow-page-FEUfCpTS.js → use-workflow-page-DDl2MUPY.js} +2 -2
  162. package/dist/shell/assets/{use-workflow-types-DdclcEcs.js → use-workflow-types-nJ6UhHeL.js} +2 -2
  163. package/dist/shell/assets/{workflow-canvas-BFZlQrwq.js → workflow-canvas-xG0FmrJj.js} +2 -2
  164. package/dist/shell/assets/{workflow-field-CNW_YsyC.js → workflow-field-fuI75chK.js} +3 -3
  165. package/dist/shell/assets/{workflow-graph-editor-BWDihza8.js → workflow-graph-editor-DCCcZ5AP.js} +2 -2
  166. package/dist/shell/assets/{workflow-run-field-Cn7yP92K.js → workflow-run-field-BxIU66mn.js} +3 -3
  167. package/dist/shell/assets/{workflow-status-field-QuxS3MI_.js → workflow-status-field-Bnk5IHI5.js} +2 -2
  168. package/dist/shell/assets/{workflow-workbench-Crm4s5S7.js → workflow-workbench-7EvpXFq6.js} +2 -2
  169. package/dist/shell/index.html +3 -3
  170. package/dist/shell/protobase.shell.json +2 -2
  171. package/dist/shell/protobase.sw.js +2 -2
  172. package/dist/shell-source-maps/assets/{account-page-BiW75oAt.js.map → account-page-BESKgoYT.js.map} +1 -1
  173. package/dist/shell-source-maps/assets/app-DANB5cb3.js.map +1 -0
  174. package/dist/shell-source-maps/assets/{assistant-shell-CI8XmGPz.js.map → assistant-shell-DUxCRpci.js.map} +1 -1
  175. package/dist/shell-source-maps/assets/{board-display-G0A9DG-O.js.map → board-display-Blx6nTDs.js.map} +1 -1
  176. package/dist/shell-source-maps/assets/{calendar-display-NkSQgeal.js.map → calendar-display-SPyIwDLG.js.map} +1 -1
  177. package/dist/shell-source-maps/assets/{call-rings-0TNlWSxz.js.map → call-rings-BGJkCQwP.js.map} +1 -1
  178. package/dist/shell-source-maps/assets/{calls-C7XJGJtG.js.map → calls-BRoDIvWu.js.map} +1 -1
  179. package/dist/shell-source-maps/assets/{circle-alert-X92Rz4B3.js.map → circle-alert-BZyGgZSj.js.map} +1 -1
  180. package/dist/shell-source-maps/assets/{composed-page-DPJGOtXk.js.map → composed-page-By2d8F85.js.map} +1 -1
  181. package/dist/shell-source-maps/assets/{composer-section-JVIi3Liw.js.map → composer-section-BiCIOqwU.js.map} +1 -1
  182. package/dist/shell-source-maps/assets/{connect-route-CnEB9WFV.js.map → connect-route-BZsnJGaF.js.map} +1 -1
  183. package/dist/shell-source-maps/assets/{copy-field-CxJRqfAI.js.map → copy-field-DpbjVuK4.js.map} +1 -1
  184. package/dist/shell-source-maps/assets/{create-route-3n42ukxG.js.map → create-route-DglCC2Tk.js.map} +1 -1
  185. package/dist/shell-source-maps/assets/{custom-step-container-field-B6LXbOfi.js.map → custom-step-container-field-DJbluU0F.js.map} +1 -1
  186. package/dist/shell-source-maps/assets/{embedded-list-BXN39go2.js.map → embedded-list-CepLmiOu.js.map} +1 -1
  187. package/dist/shell-source-maps/assets/en-Cn7SAD9K.js.map +1 -0
  188. package/dist/shell-source-maps/assets/{export-dialog-Bg-iE9he.js.map → export-dialog-B9fvLoT2.js.map} +1 -1
  189. package/dist/shell-source-maps/assets/export-worker-C4HtUYaa.js.map +1 -0
  190. package/dist/shell-source-maps/assets/{first-organization-page-BMfMEJ0L.js.map → first-organization-page-CSIsJmoQ.js.map} +1 -1
  191. package/dist/shell-source-maps/assets/{graph-view-D5gACv8d.js.map → graph-view-IPDrZVmC.js.map} +1 -1
  192. package/dist/shell-source-maps/assets/{group-donut-I2kILFBR.js.map → group-donut-DRT539D9.js.map} +1 -1
  193. package/dist/shell-source-maps/assets/{guest-call-page-D3M4dR3J.js.map → guest-call-page-IxjqrW0F.js.map} +1 -1
  194. package/dist/shell-source-maps/assets/{html-viewer-CmiIwn7y.js.map → html-viewer-C-FI9kDC.js.map} +1 -1
  195. package/dist/shell-source-maps/assets/{import-dialog-BWXSXLy9.js.map → import-dialog-DDaXN05w.js.map} +1 -1
  196. package/dist/shell-source-maps/assets/{import-table-dialog-dRLvoLxK.js.map → import-table-dialog-CHWoi7_S.js.map} +1 -1
  197. package/dist/shell-source-maps/assets/{invitations-page-BC0t9nV3.js.map → invitations-page-BE0tj3Aw.js.map} +1 -1
  198. package/dist/shell-source-maps/assets/{layout-grid-0SB37tX1.js.map → layout-grid-7R6t_Nlh.js.map} +1 -1
  199. package/dist/shell-source-maps/assets/{legend-item-Bv1rltCv.js.map → legend-item-C-DA-JTo.js.map} +1 -1
  200. package/dist/shell-source-maps/assets/{list-page-CIpQ2O7R.js.map → list-page-Dj-oZ99M.js.map} +1 -1
  201. package/dist/shell-source-maps/assets/{maplibre-BhE7KAqB.js.map → maplibre-D0uTAdwG.js.map} +1 -1
  202. package/dist/shell-source-maps/assets/{markdown-content-DJ7-n0Z_.js.map → markdown-content-BpKVfSRq.js.map} +1 -1
  203. package/dist/shell-source-maps/assets/{members-page-BJpCn7qt.js.map → members-page-Ced4meCg.js.map} +1 -1
  204. package/dist/shell-source-maps/assets/{message-content-CRdJWnUH.js.map → message-content-DSZOlZUY.js.map} +1 -1
  205. package/dist/shell-source-maps/assets/{messages-BNSLYy1a.js.map → messages-CEK97JXa.js.map} +1 -1
  206. package/dist/shell-source-maps/assets/nl-BU1R957e.js.map +1 -0
  207. package/dist/shell-source-maps/assets/{organization-page-tBj092Fw.js.map → organization-page-Dp_D2xbC.js.map} +1 -1
  208. package/dist/shell-source-maps/assets/{organizations-page-CnONo4i-.js.map → organizations-page-CtrgjIWL.js.map} +1 -1
  209. package/dist/shell-source-maps/assets/parse-worker-zWUgfCm6.js.map +1 -0
  210. package/dist/shell-source-maps/assets/{pending-invitation-row-J_r95Xwv.js.map → pending-invitation-row-Bs60Zx0i.js.map} +1 -1
  211. package/dist/shell-source-maps/assets/{period-chart-CSjsnzTY.js.map → period-chart-CIgxhMTn.js.map} +1 -1
  212. package/dist/shell-source-maps/assets/{person-row-Ci9ECaJa.js.map → person-row-BH3iAvuG.js.map} +1 -1
  213. package/dist/shell-source-maps/assets/{public-form-page-CBy2Ulcs.js.map → public-form-page-NPPZ_rgo.js.map} +1 -1
  214. package/dist/shell-source-maps/assets/{record-lines-CSkPEq1f.js.map → record-lines-hY9wRXCf.js.map} +1 -1
  215. package/dist/shell-source-maps/assets/{record-map-DRtzHwa0.js.map → record-map-Dzt7xpK8.js.map} +1 -1
  216. package/dist/shell-source-maps/assets/{record-opens-CeOBI39T.js.map → record-opens-DN1LnH9j.js.map} +1 -1
  217. package/dist/shell-source-maps/assets/{record-page-BD_zvjHr.js.map → record-page-CSsNYC0Q.js.map} +1 -1
  218. package/dist/shell-source-maps/assets/{record-preview-D0rLqYFH.js.map → record-preview-B1WiPOw4.js.map} +1 -1
  219. package/dist/shell-source-maps/assets/{records-map-BC_K0RDI.js.map → records-map-BLcMBygH.js.map} +1 -1
  220. package/dist/shell-source-maps/assets/render-node-DyvozeRy.js.map +1 -0
  221. package/dist/shell-source-maps/assets/{reorder-button-BVceX7gP.js.map → reorder-button-NNfcfua7.js.map} +1 -1
  222. package/dist/shell-source-maps/assets/{run-trace-view-hxNAb9rR.js.map → run-trace-view-BoBj-5R0.js.map} +1 -1
  223. package/dist/shell-source-maps/assets/{runner-install-field-DnvAOzy5.js.map → runner-install-field-BdfsPY9H.js.map} +1 -1
  224. package/dist/shell-source-maps/assets/{runtime-update-qxsAz5M1.js.map → runtime-update-CRO1fS5O.js.map} +1 -1
  225. package/dist/shell-source-maps/assets/{sheet-source-BucFVhPg.js.map → sheet-source-DSJ73Heh.js.map} +1 -1
  226. package/dist/shell-source-maps/assets/{sign-in-policy-page-BEqYTjla.js.map → sign-in-policy-page-RaxuDREW.js.map} +1 -1
  227. package/dist/shell-source-maps/assets/{start-block-queries-CacU6Yef.js.map → start-block-queries-DTa6akPc.js.map} +1 -1
  228. package/dist/shell-source-maps/assets/{step-catalog-BzL3DkPx.js.map → step-catalog-UHxllpni.js.map} +1 -1
  229. package/dist/shell-source-maps/assets/{step-panel-CgBuE7Cg.js.map → step-panel-BkpaCVJd.js.map} +1 -1
  230. package/dist/shell-source-maps/assets/{timeline-display-_KfByRT4.js.map → timeline-display-CFIOdA59.js.map} +1 -1
  231. package/dist/shell-source-maps/assets/{trash-SlzmvtD1.js.map → trash-IV6Ox5bV.js.map} +1 -1
  232. package/dist/shell-source-maps/assets/{update-set-BWwQIjw7.js.map → update-set-BTHuLrBr.js.map} +1 -1
  233. package/dist/shell-source-maps/assets/{use-calendar-move-gwhvc-31.js.map → use-calendar-move-CaU_5smA.js.map} +1 -1
  234. package/dist/shell-source-maps/assets/{use-display-rows-D_VvQK1o.js.map → use-display-rows-C_H7lxLW.js.map} +1 -1
  235. package/dist/shell-source-maps/assets/{use-my-invitations-hkJuWwn6.js.map → use-my-invitations-DSp8OwP9.js.map} +1 -1
  236. package/dist/shell-source-maps/assets/{use-paged-search-PObuLo2W.js.map → use-paged-search-DOcO0Rbz.js.map} +1 -1
  237. package/dist/shell-source-maps/assets/{use-run-trace-Dfgd79SI.js.map → use-run-trace-BsH3vq5k.js.map} +1 -1
  238. package/dist/shell-source-maps/assets/{use-workflow-page-FEUfCpTS.js.map → use-workflow-page-DDl2MUPY.js.map} +1 -1
  239. package/dist/shell-source-maps/assets/{use-workflow-types-DdclcEcs.js.map → use-workflow-types-nJ6UhHeL.js.map} +1 -1
  240. package/dist/shell-source-maps/assets/{workflow-canvas-BFZlQrwq.js.map → workflow-canvas-xG0FmrJj.js.map} +1 -1
  241. package/dist/shell-source-maps/assets/{workflow-field-CNW_YsyC.js.map → workflow-field-fuI75chK.js.map} +1 -1
  242. package/dist/shell-source-maps/assets/{workflow-graph-editor-BWDihza8.js.map → workflow-graph-editor-DCCcZ5AP.js.map} +1 -1
  243. package/dist/shell-source-maps/assets/{workflow-run-field-Cn7yP92K.js.map → workflow-run-field-BxIU66mn.js.map} +1 -1
  244. package/dist/shell-source-maps/assets/{workflow-status-field-QuxS3MI_.js.map → workflow-status-field-Bnk5IHI5.js.map} +1 -1
  245. package/dist/shell-source-maps/assets/{workflow-workbench-Crm4s5S7.js.map → workflow-workbench-7EvpXFq6.js.map} +1 -1
  246. package/dist/status/messages.d.ts +2 -2
  247. package/dist/users/messages.d.ts +2 -2
  248. package/package.json +5 -5
  249. package/dist/shell/assets/en-DnsB2haa.js +0 -2
  250. package/dist/shell/assets/export-worker-DbK8hf_0.js +0 -15
  251. package/dist/shell/assets/nl-Ce2dHlet.js +0 -2
  252. package/dist/shell/assets/parse-worker-MvbeuzYJ.js +0 -35
  253. package/dist/shell-source-maps/assets/app-CONqqVEp.js.map +0 -1
  254. package/dist/shell-source-maps/assets/en-DnsB2haa.js.map +0 -1
  255. package/dist/shell-source-maps/assets/export-worker-DbK8hf_0.js.map +0 -1
  256. package/dist/shell-source-maps/assets/nl-Ce2dHlet.js.map +0 -1
  257. package/dist/shell-source-maps/assets/parse-worker-MvbeuzYJ.js.map +0 -1
  258. package/dist/shell-source-maps/assets/render-node-eUTdIPBj.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"mappings":";q4BAgBMA,GAAA,EAAsBC,kBAAW,OAAO,sCAA0B,CAAC,KAAM,IAAY,CAAE,QAASC,EAAO,mBAAoB,EAAE,6HAAC,EAC9HC,GAAA,EAAoBF,kBAAW,OAAO,mCAAsC,CAAC,KAAM,IAAY,CAAE,QAASC,EAAO,iBAAkB,EAAE,oIAAC,EAEtIE,OAAgB,EAAAC,EAAA,KAACC,EAAD,CAAU,UAAU,6BAA+B,GAGnEC,EAAc,CAAC,UAAW,kBAAmB,cAAe,OAAO,EAOnEC,GAAiB,EAAgB,IAA+C,CACpF,IAAMC,EAAQC,EAAe,EAEvBC,EAAS,GAAuC,CAEpD,GAAI,CAACF,GAAO,MAAM,OAAOG,GAAO,OAAO,KACvC,IAAMC,EAAOJ,EAAM,MAAMG,CAAI,EAC7B,GAAIC,IAAS,IAAMA,IAAS,OAAW,OAAO,KAC9C,GAAI,OAAOA,GAAS,UAAaD,IAAS,WAAaA,IAAS,cAAgB,OAAOC,EACvF,GAAI,CACF,OAAO,KAAK,MAAMA,CAAI,CACxB,MAAQ,CACN,OAAOA,CACT,CACF,EACMC,EAAa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3B,SAAA4B,GAAO,EAAA3B,EAAA,KAACF,EAAD,CAAyB,OAAa,QAAO,MAAO2B,EAAM,KAAM,GAAKX,GAAY,CAAE,UAAS,EAAI,GAAIe,CAAS,IAAI,EAAA7B,EAAA,KAACL,EAAD,CAA4B,QAAO,MAAO8B,EAAM,KAAM,GAAKX,GAAY,CAAE,UAAS,EAAI,GAAIe,CAAS,EACpN,EACkB,IAPR,EAAA7B,EAAA,KAACD,EAAD,CAAU,EASpC,EAGMqC,GAAmB,CAAE,YAA8B,EAAApC,EAAA,KAACsB,EAAD,CAAc,OAAQ,GAGzEe,GAAkB,CAAE,QAAO,eAAuC,EAAArC,EAAA,KAACsB,EAAD,CAAc,QAAiB,UAAW,GAG5GgB,GAAgB,CAAE,YAA8B,EAAAtC,EAAA,KAAC,OAAD,CAAM,UAAU,eAAgB,SAAAiC,EAAK,aAAc,CAAE,MAAOM,EAAS3B,EAAa,CAAE,aAAcD,CAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,MAAO,CAAC,CAAQ,GAOlL6B,EAA6B,CAAE,GAAI,CAAC,GAAGC,EAAkB,QAAQ,EAAG,QAASL,EAAiB,OAAQC,EAAgB,KAAMC,EAAc,KAAM,EAAK","names":["WorkflowGraphEditor","lazy","module","WorkflowWorkbench","Loading","import_jsx_runtime","Skeleton","otherFields","useDefinition","focus","useFocusRecord","draft","name","kept","definition","recordDefinition","value","definitionOf","change","onChange","fields","definitionRecord","next","field","toFieldDraft","layoutField","workflowLayoutOf","Graph","stateMachine","changeMachine","types","useWorkflowTypes","view","useWorkflowView","placed","layout","changeLayout","ErrorBanner","text","FieldControlContext","Suspense","WorkflowDisplay","WorkflowEditor","WorkflowCell","allNames","workflowField","builtInFieldTypes"],"ignoreList":[],"sources":["../../../src/app/field-types/workflow/workflow-field.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react'\nimport { builtInFieldTypes } from '@protobase/schema/internal'\nimport type { Definition } from '@protobase/workflows'\nimport { FieldControlContext } from '../../../primitives/field-control'\nimport { Skeleton } from '../../../primitives/skeleton'\nimport { ErrorBanner } from '../../error-banner'\nimport type { FieldWidget, FieldWidgetEditorProps, FieldWidgetProps } from '../field-widget'\nimport { useFocusRecord } from '../../focus/focus-record'\nimport { allNames, definitionOf, definitionRecord, recordDefinition } from './definition'\nimport { useWorkflowView } from '../workflow-page/use-workflow-page'\nimport { useWorkflowTypes } from './use-workflow-types'\nimport { text } from './messages'\nimport { toFieldDraft } from '../../../live/field-values'\nimport { workflowLayoutOf, type WorkflowLayout } from './manual-layout'\n\n// React Flow, ELK and the definition's check load with the first workflow drawn, not with the app.\nconst WorkflowGraphEditor = lazy(() => import('./workflow-graph-editor').then((module) => ({ default: module.WorkflowGraphEditor })))\nconst WorkflowWorkbench = lazy(() => import('../workflow-page/workflow-workbench').then((module) => ({ default: module.WorkflowWorkbench })))\n\nconst Loading = () => <Skeleton className=\"h-full min-h-[22rem] w-full\" />\n\n// The definition fields beside the state machine, which a workflow's page keeps in its record's draft\nconst otherFields = ['trigger', 'execution_order', 'connections', 'trace'] as const\n\n/**\n * The definition the state machine `value` is part of, and the way to change it: on a workflow's page with the trigger,\n * execution order, connections and trace of the record's draft, each change written to the fields it changed, and the\n * draft's layout beside it; elsewhere, as on the standard form, the state machine alone, run by hand in sequence.\n */\nconst useDefinition = (value: unknown, onChange?: (stateMachine: unknown) => void) => {\n const focus = useFocusRecord()\n // A draft keeps a JSON field as its text until it is changed, and an empty field as ''\n const draft = (name: (typeof otherFields)[number]) => {\n // A model from before these fields, as the start cache may hold until /meta is read again, has none of them\n if (!focus?.model.fields[name]) return null\n const kept = focus.value(name)\n if (kept === '' || kept === undefined) return null\n if (typeof kept !== 'string' || (name !== 'trigger' && name !== 'connections')) return kept\n try {\n return JSON.parse(kept) as unknown\n } catch {\n return kept\n }\n }\n const definition = focus ? recordDefinition({ ...Object.fromEntries(otherFields.map((name) => [name, draft(name)])), state_machine: value }) : definitionOf({ stateMachine: value })\n const change =\n onChange &&\n ((next: Definition) => {\n const fields = definitionRecord(next)\n onChange(fields.state_machine)\n if (!focus) return\n // As a field's editor writes it: a JSON field's value as its text, which the save reads back as JSON\n for (const name of otherFields) {\n const field = focus.model.fields[name]\n if (field && JSON.stringify(fields[name]) !== JSON.stringify(draft(name))) focus.change(name, toFieldDraft(field, fields[name]))\n }\n })\n // Where nodes were moved by hand, beside the definition: a field of the record, which a record from before it lacks\n const layoutField = focus?.model.fields.layout\n const layout = layoutField ? workflowLayoutOf(focus.value('layout')) : undefined\n const changeLayout = onChange && layoutField && ((next: WorkflowLayout) => focus.change('layout', toFieldDraft(layoutField, next)))\n return { definition, change, layout, changeLayout }\n}\n\n// The graph once the app's trigger and step types are read, which its menus, forms and check are drawn from: on a\n// focus page with the workflow's versions and runs, elsewhere, as on the create form, on its own\nconst Graph = ({ value: stateMachine, onChange: changeMachine }: { value: unknown; onChange?: (stateMachine: unknown) => void }) => {\n const types = useWorkflowTypes()\n const view = useWorkflowView()\n const { definition: value, change: onChange, layout, changeLayout } = useDefinition(stateMachine, changeMachine)\n const placed = { ...(layout && { layout }), ...(changeLayout && { onLayoutChange: changeLayout }) }\n if (types.error) return <ErrorBanner title={text('typesFailed')} error={types.error} />\n if (!types.data) return <Loading />\n // The graph holds many controls, each with a label of its own: none of them is the field's one control\n return (\n <FieldControlContext.Provider value={undefined}>\n <Suspense fallback={<Loading />}>\n {view ? <WorkflowWorkbench view={view} value={value} types={types.data} {...(onChange && { onChange })} {...placed} /> : <WorkflowGraphEditor value={value} types={types.data} {...(onChange && { onChange })} {...placed} />}\n </Suspense>\n </FieldControlContext.Provider>\n )\n}\n\n/** A workflow's graph, to look at: the chosen node's fields show beside it, unchangeable. */\nconst WorkflowDisplay = ({ value }: FieldWidgetProps) => <Graph value={value} />\n\n/** A workflow's graph to edit: each change is the definition the form saves. */\nconst WorkflowEditor = ({ value, onChange }: FieldWidgetEditorProps) => <Graph value={value} onChange={onChange} />\n\n/** In a list, how many states the workflow has. */\nconst WorkflowCell = ({ value }: FieldWidgetProps) => <span className=\"tabular-nums\">{text('stateCount', { count: allNames(definitionOf({ stateMachine: value }).stateMachine).length })}</span>\n\n/**\n * The built-in `workflow` field type, for a JSON field holding a workflow's state machine, as the `workflows` resource\n * does: `r.state_machine.widget('workflow')`. The record page draws the definition as a graph to edit, with the\n * workflow's versions and runs to show on it. See the workflows reference.\n */\nexport const workflowField: FieldWidget = { of: [...builtInFieldTypes.workflow], display: WorkflowDisplay, editor: WorkflowEditor, cell: WorkflowCell, wide: true }\n"],"file":"workflow-field-CNW_YsyC.js","debugId":"8d5bf62c-c822-4335-9c17-c58c3acef600"}
1
+ {"version":3,"mappings":";q4BAgBMA,GAAA,EAAsBC,kBAAW,OAAO,sCAA0B,CAAC,KAAM,IAAY,CAAE,QAASC,EAAO,mBAAoB,EAAE,6HAAC,EAC9HC,GAAA,EAAoBF,kBAAW,OAAO,mCAAsC,CAAC,KAAM,IAAY,CAAE,QAASC,EAAO,iBAAkB,EAAE,oIAAC,EAEtIE,OAAgB,EAAAC,EAAA,KAACC,EAAD,CAAU,UAAU,6BAA+B,GAGnEC,EAAc,CAAC,UAAW,kBAAmB,cAAe,OAAO,EAOnEC,GAAiB,EAAgB,IAA+C,CACpF,IAAMC,EAAQC,EAAe,EAEvBC,EAAS,GAAuC,CAEpD,GAAI,CAACF,GAAO,MAAM,OAAOG,GAAO,OAAO,KACvC,IAAMC,EAAOJ,EAAM,MAAMG,CAAI,EAC7B,GAAIC,IAAS,IAAMA,IAAS,OAAW,OAAO,KAC9C,GAAI,OAAOA,GAAS,UAAaD,IAAS,WAAaA,IAAS,cAAgB,OAAOC,EACvF,GAAI,CACF,OAAO,KAAK,MAAMA,CAAI,CACxB,MAAQ,CACN,OAAOA,CACT,CACF,EACMC,EAAaL,EAAQM,EAAiB,CAAE,GAAG,OAAO,YAAYR,EAAY,IAAK,GAAS,CAACK,EAAMD,EAAMC,CAAI,CAAC,CAAC,CAAC,EAAG,cAAeI,CAAM,CAAC,EAAIC,EAA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B,EAAA,KAACL,EAAD,CAA4B,QAAO,MAAO8B,EAAM,KAAM,GAAKX,GAAY,CAAE,UAAS,EAAI,GAAIe,CAAS,EACpN,EACkB,IAPR,EAAA7B,EAAA,KAACD,EAAD,CAAU,EASpC,EAGMqC,GAAmB,CAAE,YAA8B,EAAApC,EAAA,KAACsB,EAAD,CAAc,OAAQ,GAGzEe,GAAkB,CAAE,QAAO,eAAuC,EAAArC,EAAA,KAACsB,EAAD,CAAc,QAAiB,UAAW,GAG5GgB,GAAgB,CAAE,YAA8B,EAAAtC,EAAA,KAAC,OAAD,CAAM,UAAU,eAAgB,SAAAiC,EAAK,aAAc,CAAE,MAAOM,EAAS3B,EAAa,CAAE,aAAcD,CAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,MAAO,CAAC,CAAQ,GAOlL6B,EAA6B,CAAE,GAAI,CAAC,GAAGC,EAAkB,QAAQ,EAAG,QAASL,EAAiB,OAAQC,EAAgB,KAAMC,EAAc,KAAM,EAAK","names":["WorkflowGraphEditor","lazy","module","WorkflowWorkbench","Loading","import_jsx_runtime","Skeleton","otherFields","useDefinition","focus","useFocusRecord","draft","name","kept","definition","recordDefinition","value","definitionOf","change","onChange","fields","definitionRecord","next","field","toFieldDraft","layoutField","workflowLayoutOf","Graph","stateMachine","changeMachine","types","useWorkflowTypes","view","useWorkflowView","placed","layout","changeLayout","ErrorBanner","text","FieldControlContext","Suspense","WorkflowDisplay","WorkflowEditor","WorkflowCell","allNames","workflowField","builtInFieldTypes"],"ignoreList":[],"sources":["../../../src/app/field-types/workflow/workflow-field.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react'\nimport { builtInFieldTypes } from '@protobase/schema/internal'\nimport type { Definition } from '@protobase/workflows'\nimport { FieldControlContext } from '../../../primitives/field-control'\nimport { Skeleton } from '../../../primitives/skeleton'\nimport { ErrorBanner } from '../../error-banner'\nimport type { FieldWidget, FieldWidgetEditorProps, FieldWidgetProps } from '../field-widget'\nimport { useFocusRecord } from '../../focus/focus-record'\nimport { allNames, definitionOf, definitionRecord, recordDefinition } from './definition'\nimport { useWorkflowView } from '../workflow-page/use-workflow-page'\nimport { useWorkflowTypes } from './use-workflow-types'\nimport { text } from './messages'\nimport { toFieldDraft } from '../../../live/field-values'\nimport { workflowLayoutOf, type WorkflowLayout } from './manual-layout'\n\n// React Flow, ELK and the definition's check load with the first workflow drawn, not with the app.\nconst WorkflowGraphEditor = lazy(() => import('./workflow-graph-editor').then((module) => ({ default: module.WorkflowGraphEditor })))\nconst WorkflowWorkbench = lazy(() => import('../workflow-page/workflow-workbench').then((module) => ({ default: module.WorkflowWorkbench })))\n\nconst Loading = () => <Skeleton className=\"h-full min-h-[22rem] w-full\" />\n\n// The definition fields beside the state machine, which a workflow's page keeps in its record's draft\nconst otherFields = ['trigger', 'execution_order', 'connections', 'trace'] as const\n\n/**\n * The definition the state machine `value` is part of, and the way to change it: on a workflow's page with the trigger,\n * execution order, connections and trace of the record's draft, each change written to the fields it changed, and the\n * draft's layout beside it; elsewhere, as on the standard form, the state machine alone, run by hand in sequence.\n */\nconst useDefinition = (value: unknown, onChange?: (stateMachine: unknown) => void) => {\n const focus = useFocusRecord()\n // A draft keeps a JSON field as its text until it is changed, and an empty field as ''\n const draft = (name: (typeof otherFields)[number]) => {\n // A model from before these fields, as the start cache may hold until /meta is read again, has none of them\n if (!focus?.model.fields[name]) return null\n const kept = focus.value(name)\n if (kept === '' || kept === undefined) return null\n if (typeof kept !== 'string' || (name !== 'trigger' && name !== 'connections')) return kept\n try {\n return JSON.parse(kept) as unknown\n } catch {\n return kept\n }\n }\n const definition = focus ? recordDefinition({ ...Object.fromEntries(otherFields.map((name) => [name, draft(name)])), state_machine: value }) : definitionOf({ stateMachine: value })\n const change =\n onChange &&\n ((next: Definition) => {\n const fields = definitionRecord(next)\n onChange(fields.state_machine)\n if (!focus) return\n // As a field's editor writes it: a JSON field's value as its text, which the save reads back as JSON\n for (const name of otherFields) {\n const field = focus.model.fields[name]\n if (field && JSON.stringify(fields[name]) !== JSON.stringify(draft(name))) focus.change(name, toFieldDraft(field, fields[name]))\n }\n })\n // Where nodes were moved by hand, beside the definition: a field of the record, which a record from before it lacks\n const layoutField = focus?.model.fields.layout\n const layout = layoutField ? workflowLayoutOf(focus.value('layout')) : undefined\n const changeLayout = onChange && layoutField && ((next: WorkflowLayout) => focus.change('layout', toFieldDraft(layoutField, next)))\n return { definition, change, layout, changeLayout }\n}\n\n// The graph once the app's trigger and step types are read, which its menus, forms and check are drawn from: on a\n// focus page with the workflow's versions and runs, elsewhere, as on the create form, on its own\nconst Graph = ({ value: stateMachine, onChange: changeMachine }: { value: unknown; onChange?: (stateMachine: unknown) => void }) => {\n const types = useWorkflowTypes()\n const view = useWorkflowView()\n const { definition: value, change: onChange, layout, changeLayout } = useDefinition(stateMachine, changeMachine)\n const placed = { ...(layout && { layout }), ...(changeLayout && { onLayoutChange: changeLayout }) }\n if (types.error) return <ErrorBanner title={text('typesFailed')} error={types.error} />\n if (!types.data) return <Loading />\n // The graph holds many controls, each with a label of its own: none of them is the field's one control\n return (\n <FieldControlContext.Provider value={undefined}>\n <Suspense fallback={<Loading />}>\n {view ? <WorkflowWorkbench view={view} value={value} types={types.data} {...(onChange && { onChange })} {...placed} /> : <WorkflowGraphEditor value={value} types={types.data} {...(onChange && { onChange })} {...placed} />}\n </Suspense>\n </FieldControlContext.Provider>\n )\n}\n\n/** A workflow's graph, to look at: the chosen node's fields show beside it, unchangeable. */\nconst WorkflowDisplay = ({ value }: FieldWidgetProps) => <Graph value={value} />\n\n/** A workflow's graph to edit: each change is the definition the form saves. */\nconst WorkflowEditor = ({ value, onChange }: FieldWidgetEditorProps) => <Graph value={value} onChange={onChange} />\n\n/** In a list, how many states the workflow has. */\nconst WorkflowCell = ({ value }: FieldWidgetProps) => <span className=\"tabular-nums\">{text('stateCount', { count: allNames(definitionOf({ stateMachine: value }).stateMachine).length })}</span>\n\n/**\n * The built-in `workflow` field type, for a JSON field holding a workflow's state machine, as the `workflows` resource\n * does: `r.state_machine.widget('workflow')`. The record page draws the definition as a graph to edit, with the\n * workflow's versions and runs to show on it. See the workflows reference.\n */\nexport const workflowField: FieldWidget = { of: [...builtInFieldTypes.workflow], display: WorkflowDisplay, editor: WorkflowEditor, cell: WorkflowCell, wide: true }\n"],"file":"workflow-field-fuI75chK.js","debugId":"1fb88ef9-7212-4d36-b57b-992a1f52abbc"}
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-graph-editor-BWDihza8.js","names":["useMemo","useState","_Fragment","n","a","t","__toESM","require_react","require_jsx_runtime","Plus","Button","SearchPicker","freeName","addState","definitionProblems","canvasEdits","warningsByNode","ProblemList","usePinSchemas","scopeAt","stepGroups","pickedState","addStateAt","problemsByNode","WorkflowCanvas","stateAt","pathOf","holdsSteps","definitionOf","text","PanelHint","GraphFrame","import_react","import_jsx_runtime","scopeFor","selected","names","definition","WorkflowGraphEditor","json","value","schemas","types","checked","warned","chosen","setChosen","adding","setAdding","groups","scope","add","onChange","name","at","kind","notice","item","NodePanel"],"sources":["../../../src/app/field-types/workflow/workflow-graph-editor.tsx"],"sourcesContent":["import { useMemo, useState, type ReactNode } from 'react'\nimport type { WorkflowTypeList } from '@protobase/client'\nimport type { Definition } from '@protobase/workflows'\nimport { Plus } from 'lucide-react'\nimport { Button } from '../../../primitives/button'\nimport { SearchPicker } from '../../../search-picker'\nimport { pickedState, stepGroups } from '../workflow-page/step-catalog'\nimport { definitionOf, holdsSteps, pathOf, stateAt, triggerId } from './definition'\nimport { addState, addStateAt, freeName, scopeAt, type AddAt, type NewState } from './definition-edits'\nimport { GraphFrame, PanelHint } from './graph-frame'\nimport { NodePanel } from './node-panel'\nimport { ProblemList } from './problem-list'\nimport { definitionProblems, problemsByNode, warningsByNode } from './problems'\nimport { canvasEdits } from './canvas-edits'\nimport { WorkflowCanvas } from './workflow-canvas'\nimport { usePinSchemas } from './pins/pin-schemas'\nimport type { WorkflowLayout } from './manual-layout'\nimport { text } from './messages'\n\nexport type WorkflowGraphEditorProps = {\n /** The definition as the field holds it; none starts an empty workflow. */\n value: unknown\n /** The app's trigger and step types, its plugins' included, as the server lists them. */\n types: WorkflowTypeList\n /** Without it, the workflow is only shown. */\n onChange?: (definition: Definition) => void\n /** What the side panel says first, such as that the version shown is only read. */\n notice?: ReactNode\n /** Where nodes were moved by hand in each view. */\n layout?: WorkflowLayout\n /** Without it, nodes are not moved by hand. */\n onLayoutChange?: (layout: WorkflowLayout) => void\n}\n\n// A new state goes into the Map or Block chosen, or the one the chosen state is in, else into the workflow itself.\nconst scopeFor = (definition: Definition, selected: string | undefined): string[] => {\n if (selected === undefined || selected === triggerId) return []\n const names = selected.split('/')\n return holdsSteps(stateAt(definition, selected)) ? names : names.slice(0, -1)\n}\n\n/**\n * A workflow's definition as a graph to see and edit where it is one field of a form: the picker that adds a state, the canvas, which ELK lays out on\n * each change, and the chosen node's fields in the side panel beside it. Every problem the save's check would refuse it for shows on the\n * node it names as it is edited, and the rest above the canvas.\n */\nexport const WorkflowGraphEditor = ({ value, types, onChange, notice, layout, onLayoutChange }: WorkflowGraphEditorProps) => {\n // The form hands the value over anew on each render: the definition changes only when its JSON does\n const json = JSON.stringify(value ?? null)\n const definition = useMemo(() => definitionOf(JSON.parse(json)), [json])\n const schemas = usePinSchemas(types)\n const checked = useMemo(() => problemsByNode(definitionProblems(definition, types, schemas)), [definition, types, schemas])\n const warned = useMemo(() => warningsByNode(definition), [definition])\n const [chosen, setChosen] = useState<string>()\n // The step picker has the side panel, for a step at the handle clicked or, from Add step, in the scope chosen\n const [adding, setAdding] = useState<{ at?: AddAt }>()\n const groups = useMemo(() => stepGroups(types), [types])\n // A node the definition no longer has is no longer chosen\n const selected = chosen === triggerId || (chosen !== undefined && stateAt(definition, chosen)) ? chosen : undefined\n const scope = scopeFor(definition, selected)\n\n const add = (kind: NewState, at?: AddAt) => {\n if (!onChange) return\n const name = freeName(definition, text('newStep'))\n onChange(at ? addStateAt(definition, kind, name, text('newStep'), at) : addState(definition, scope, kind, name, text('newStep')))\n setChosen(pathOf(at ? scopeAt(at) : scope, name))\n setAdding(undefined)\n }\n\n return (\n <div className=\"flex flex-col gap-3\">\n {onChange && (\n <div className=\"flex flex-wrap items-center gap-2\">\n <Button onClick={() => setAdding(adding ? undefined : {})} aria-expanded={Boolean(adding)}>\n <Plus className=\"size-3.5\" aria-hidden />\n {scope.length > 0 ? text('addStepInside', { map: scope.join('/') }) : text('addStep')}\n </Button>\n <p className=\"text-xs text-muted-foreground\">{text('connectHelp')}</p>\n </div>\n )}\n <ProblemList problems={checked.whole} />\n <GraphFrame\n canvas={<WorkflowCanvas definition={definition} problems={checked.byNode} warnings={warned} selected={selected} onSelect={setChosen} onChange={onChange} edits={canvasEdits} onAddAt={(at) => setAdding({ at })} types={types} schemas={schemas} layout={layout} onLayoutChange={onLayoutChange} />}\n panel={\n <>\n {notice}\n {adding ? (\n <SearchPicker autoFocus groups={groups} onPick={(item) => add(pickedState(item.id), adding.at)} />\n ) : selected === undefined ? (\n <PanelHint>{text('pickNode')}</PanelHint>\n ) : (\n <NodePanel definition={definition} types={types} selected={selected} problems={checked.byNode.get(selected) ?? []} warnings={warned.get(selected) ?? []} onChange={onChange} onSelect={setChosen} />\n )}\n </>\n }\n />\n </div>\n )\n}\n"],"mappings":"w+BAmCMkC,GAAY,EAAwB,IAA2C,CACnF,GAAIC,IAAa,IAAA,IAAaA,IAAA,GAAwB,MAAO,CAAC,EAC9D,IAAMC,EAAQD,EAAS,MAAM,GAAG,EAChC,OAAOR,EAAWF,EAAQY,EAAYF,CAAQ,CAAC,EAAIC,EAAQA,EAAM,MAAM,EAAG,EAAE,CAC9E,EAOaE,GAAuB,CAAE,QAAO,QAAO,WAAU,SAAQ,SAAQ,oBAA+C,CAE3H,IAAMC,EAAO,KAAK,UAAUC,GAAS,IAAI,EACnCH,GAAA,EAAarC,EAAAA,QAAAA,KAAc4B,EAAa,KAAK,MAAMW,CAAI,CAAC,EAAG,CAACA,CAAI,CAAC,EACjEE,EAAUvB,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cAAA,EAAa,CAAA,EACvCyC,EAAM,OAAS,EAAIrB,EAAK,gBAAiB,CAAE,IAAKqB,EAAM,KAAK,GAAG,CAAE,CAAC,EAAIrB,EAAK,SAAS,CAC9E,CACR,CAAA,GAAA,EAAAI,EAAA,IAAA,CAAC,IAAD,CAAG,UAAU,gCAAiC,SAAAJ,EAAK,aAAa,CAAK,CAAA,CAClE,KAEP,EAAAI,EAAA,IAAA,CAAChB,EAAD,CAAa,SAAU0B,EAAQ,KAAQ,CAAA,GACvC,EAAAV,EAAA,IAAA,CAACF,EAAD,CACE,QAAQ,EAAAE,EAAA,IAAA,CAACT,EAAD,CAA4B,aAAY,SAAUmB,EAAQ,OAAQ,SAAUC,EAAkB,WAAU,SAAUE,EAAqB,WAAU,MAAO/B,EAAa,QAAU,GAAOiC,EAAU,CAAE,IAAG,CAAC,EAAU,QAAgB,UAAiB,SAAwB,gBAAiB,CAAA,EAClS,OACE,EAAAf,EAAA,KAAA,CAAA/B,EAAAA,SAAA,CAAA,SAAA,CACGsD,EACAT,GACC,EAAAd,EAAA,IAAA,CAACtB,EAAD,CAAc,UAAA,GAAkB,SAAQ,OAAS,GAASwC,EAAI9B,EAAYoC,EAAK,EAAE,EAAGV,EAAO,EAAE,CAAI,CAAA,EAC/FZ,IAAa,IAAA,IACf,EAAAF,EAAA,IAAA,CAACH,EAAD,CAAA,SAAYD,EAAK,UAAU,CAAa,CAAA,GAExC,EAAAI,EAAA,IAAA,CAACyB,EAAD,CAAuB,aAAmB,QAAiB,WAAU,SAAUf,EAAQ,OAAO,IAAIR,CAAQ,GAAK,CAAC,EAAG,SAAUS,EAAO,IAAIT,CAAQ,GAAK,CAAC,EAAa,WAAU,SAAUW,CAAY,CAAA,CAErM,CAAA,CAAA,CAEL,CAAA,CACE,GAET","debugId":"560e2873-6bc5-465d-9da1-f8451d00264c"}
1
+ {"version":3,"file":"workflow-graph-editor-DCCcZ5AP.js","names":["useMemo","useState","_Fragment","n","a","t","__toESM","require_react","require_jsx_runtime","Plus","Button","SearchPicker","freeName","addState","definitionProblems","canvasEdits","warningsByNode","ProblemList","usePinSchemas","scopeAt","stepGroups","pickedState","addStateAt","problemsByNode","WorkflowCanvas","stateAt","pathOf","holdsSteps","definitionOf","text","PanelHint","GraphFrame","import_react","import_jsx_runtime","scopeFor","selected","names","definition","WorkflowGraphEditor","json","value","schemas","types","checked","warned","chosen","setChosen","adding","setAdding","groups","scope","add","onChange","name","at","kind","notice","item","NodePanel"],"sources":["../../../src/app/field-types/workflow/workflow-graph-editor.tsx"],"sourcesContent":["import { useMemo, useState, type ReactNode } from 'react'\nimport type { WorkflowTypeList } from '@protobase/client'\nimport type { Definition } from '@protobase/workflows'\nimport { Plus } from 'lucide-react'\nimport { Button } from '../../../primitives/button'\nimport { SearchPicker } from '../../../search-picker'\nimport { pickedState, stepGroups } from '../workflow-page/step-catalog'\nimport { definitionOf, holdsSteps, pathOf, stateAt, triggerId } from './definition'\nimport { addState, addStateAt, freeName, scopeAt, type AddAt, type NewState } from './definition-edits'\nimport { GraphFrame, PanelHint } from './graph-frame'\nimport { NodePanel } from './node-panel'\nimport { ProblemList } from './problem-list'\nimport { definitionProblems, problemsByNode, warningsByNode } from './problems'\nimport { canvasEdits } from './canvas-edits'\nimport { WorkflowCanvas } from './workflow-canvas'\nimport { usePinSchemas } from './pins/pin-schemas'\nimport type { WorkflowLayout } from './manual-layout'\nimport { text } from './messages'\n\nexport type WorkflowGraphEditorProps = {\n /** The definition as the field holds it; none starts an empty workflow. */\n value: unknown\n /** The app's trigger and step types, its plugins' included, as the server lists them. */\n types: WorkflowTypeList\n /** Without it, the workflow is only shown. */\n onChange?: (definition: Definition) => void\n /** What the side panel says first, such as that the version shown is only read. */\n notice?: ReactNode\n /** Where nodes were moved by hand in each view. */\n layout?: WorkflowLayout\n /** Without it, nodes are not moved by hand. */\n onLayoutChange?: (layout: WorkflowLayout) => void\n}\n\n// A new state goes into the Map or Block chosen, or the one the chosen state is in, else into the workflow itself.\nconst scopeFor = (definition: Definition, selected: string | undefined): string[] => {\n if (selected === undefined || selected === triggerId) return []\n const names = selected.split('/')\n return holdsSteps(stateAt(definition, selected)) ? names : names.slice(0, -1)\n}\n\n/**\n * A workflow's definition as a graph to see and edit where it is one field of a form: the picker that adds a state, the canvas, which ELK lays out on\n * each change, and the chosen node's fields in the side panel beside it. Every problem the save's check would refuse it for shows on the\n * node it names as it is edited, and the rest above the canvas.\n */\nexport const WorkflowGraphEditor = ({ value, types, onChange, notice, layout, onLayoutChange }: WorkflowGraphEditorProps) => {\n // The form hands the value over anew on each render: the definition changes only when its JSON does\n const json = JSON.stringify(value ?? null)\n const definition = useMemo(() => definitionOf(JSON.parse(json)), [json])\n const schemas = usePinSchemas(types)\n const checked = useMemo(() => problemsByNode(definitionProblems(definition, types, schemas)), [definition, types, schemas])\n const warned = useMemo(() => warningsByNode(definition), [definition])\n const [chosen, setChosen] = useState<string>()\n // The step picker has the side panel, for a step at the handle clicked or, from Add step, in the scope chosen\n const [adding, setAdding] = useState<{ at?: AddAt }>()\n const groups = useMemo(() => stepGroups(types), [types])\n // A node the definition no longer has is no longer chosen\n const selected = chosen === triggerId || (chosen !== undefined && stateAt(definition, chosen)) ? chosen : undefined\n const scope = scopeFor(definition, selected)\n\n const add = (kind: NewState, at?: AddAt) => {\n if (!onChange) return\n const name = freeName(definition, text('newStep'))\n onChange(at ? addStateAt(definition, kind, name, text('newStep'), at) : addState(definition, scope, kind, name, text('newStep')))\n setChosen(pathOf(at ? scopeAt(at) : scope, name))\n setAdding(undefined)\n }\n\n return (\n <div className=\"flex flex-col gap-3\">\n {onChange && (\n <div className=\"flex flex-wrap items-center gap-2\">\n <Button onClick={() => setAdding(adding ? undefined : {})} aria-expanded={Boolean(adding)}>\n <Plus className=\"size-3.5\" aria-hidden />\n {scope.length > 0 ? text('addStepInside', { map: scope.join('/') }) : text('addStep')}\n </Button>\n <p className=\"text-xs text-muted-foreground\">{text('connectHelp')}</p>\n </div>\n )}\n <ProblemList problems={checked.whole} />\n <GraphFrame\n canvas={<WorkflowCanvas definition={definition} problems={checked.byNode} warnings={warned} selected={selected} onSelect={setChosen} onChange={onChange} edits={canvasEdits} onAddAt={(at) => setAdding({ at })} types={types} schemas={schemas} layout={layout} onLayoutChange={onLayoutChange} />}\n panel={\n <>\n {notice}\n {adding ? (\n <SearchPicker autoFocus groups={groups} onPick={(item) => add(pickedState(item.id), adding.at)} />\n ) : selected === undefined ? (\n <PanelHint>{text('pickNode')}</PanelHint>\n ) : (\n <NodePanel definition={definition} types={types} selected={selected} problems={checked.byNode.get(selected) ?? []} warnings={warned.get(selected) ?? []} onChange={onChange} onSelect={setChosen} />\n )}\n </>\n }\n />\n </div>\n )\n}\n"],"mappings":"w+BAmCMkC,GAAY,EAAwB,IAA2C,CACnF,GAAIC,IAAa,IAAA,IAAaA,IAAA,GAAwB,MAAO,CAAC,EAC9D,IAAMC,EAAQD,EAAS,MAAM,GAAG,EAChC,OAAOR,EAAWF,EAAQY,EAAYF,CAAQ,CAAC,EAAIC,EAAQA,EAAM,MAAM,EAAG,EAAE,CAC9E,EAOaE,GAAuB,CAAE,QAAO,QAAO,WAAU,SAAQ,SAAQ,oBAA+C,CAE3H,IAAMC,EAAO,KAAK,UAAUC,GAAS,IAAI,EACnCH,GAAA,EAAarC,EAAAA,QAAAA,KAAc4B,EAAa,KAAK,MAAMW,CAAI,CAAC,EAAG,CAACA,CAAI,CAAC,EACjEE,EAAUvB,EAAcwB,CAAK,EAC7BC,GAAA,EAAU3C,EAAAA,QAAAA,KAAcuB,EAAeT,EAAmBuB,EAAYK,EAAOD,CAAO,CAAC,EAAG,CAACJ,EAAYK,EAAOD,CAAO,CAAC,EACpHG,GAAA,EAAS5C,EAAAA,QAAAA,KAAcgB,EAAeqB,CAAU,EAAG,CAACA,CAAU,CAAC,EAC/D,CAACQ,EAAQC,IAAA,EAAa7C,EAAAA,SAAAA,CAAiB,EAEvC,CAAC8C,EAAQC,IAAA,EAAa/C,EAAAA,SAAAA,CAAyB,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I,CAAC,GAAGC,EAAkB,YAAY,EAAG,QAASP,EAAY,KAAMK,EAAS,KAAM,EAAK","names":["RunTrace","lazy","module","RunDisplay","value","import_jsx_runtime","Suspense","Skeleton","RunCell","workflowRunField","builtInFieldTypes"],"ignoreList":[],"sources":["../../../src/app/field-types/workflow-run/workflow-run-field.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react'\nimport { builtInFieldTypes } from '@protobase/schema/internal'\nimport { Skeleton } from '../../../primitives/skeleton'\nimport type { FieldWidget, FieldWidgetProps } from '../field-widget'\n\n// React Flow and ELK load with the first run drawn, not with the app.\nconst RunTrace = lazy(() => import('./run-trace-view').then((module) => ({ default: module.RunTrace })))\n\nconst RunDisplay = ({ value }: FieldWidgetProps<string>) =>\n value === null ? null : (\n <Suspense fallback={<Skeleton className=\"h-[28rem] w-full max-sm:h-[22rem]\" />}>\n <RunTrace runId={value} />\n </Suspense>\n )\n\nconst RunCell = ({ value }: FieldWidgetProps<string>) => <span className=\"font-mono text-xs\">{value}</span>\n\n/**\n * The built-in `workflow_run` field type, for a run's id, as the `workflow_runs` resource shows its own:\n * `r.id.widget('workflow_run')`. The record page draws the run's steps on its workflow's graph, followed live while the\n * run goes on, and the chosen step's input, output, logs, timing, tries and error under it. See the workflows reference.\n */\nexport const workflowRunField: FieldWidget = { of: [...builtInFieldTypes.workflow_run], display: RunDisplay, cell: RunCell, wide: true }\n"],"file":"workflow-run-field-Cn7yP92K.js","debugId":"a7ef23fd-d8af-4931-9c66-a8415cbde72f"}
1
+ {"version":3,"mappings":";2qBAMMA,GAAA,EAAWC,kBAAW,OAAO,+BAAmB,CAAC,KAAM,IAAY,CAAE,QAASC,EAAO,QAAS,EAAE,0HAAC,EAEjGC,GAAc,CAAE,WACpBC,IAAU,KAAO,MACf,EAAAC,EAAA,KAACC,WAAD,CAAU,UAAU,EAAAD,EAAA,KAACE,EAAD,CAAU,UAAU,mCAAqC,GAC3E,YAAAF,EAAA,KAACL,EAAD,CAAU,MAAOI,CAAQ,EACjB,GAGRI,GAAW,CAAE,YAAsC,EAAAH,EAAA,KAAC,OAAD,CAAM,UAAU,oBAAqB,SAAAD,CAAY,GAO7FK,EAAgC,CAAE,GAAI,CAAC,GAAGC,EAAkB,YAAY,EAAG,QAASP,EAAY,KAAMK,EAAS,KAAM,EAAK","names":["RunTrace","lazy","module","RunDisplay","value","import_jsx_runtime","Suspense","Skeleton","RunCell","workflowRunField","builtInFieldTypes"],"ignoreList":[],"sources":["../../../src/app/field-types/workflow-run/workflow-run-field.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react'\nimport { builtInFieldTypes } from '@protobase/schema/internal'\nimport { Skeleton } from '../../../primitives/skeleton'\nimport type { FieldWidget, FieldWidgetProps } from '../field-widget'\n\n// React Flow and ELK load with the first run drawn, not with the app.\nconst RunTrace = lazy(() => import('./run-trace-view').then((module) => ({ default: module.RunTrace })))\n\nconst RunDisplay = ({ value }: FieldWidgetProps<string>) =>\n value === null ? null : (\n <Suspense fallback={<Skeleton className=\"h-[28rem] w-full max-sm:h-[22rem]\" />}>\n <RunTrace runId={value} />\n </Suspense>\n )\n\nconst RunCell = ({ value }: FieldWidgetProps<string>) => <span className=\"font-mono text-xs\">{value}</span>\n\n/**\n * The built-in `workflow_run` field type, for a run's id, as the `workflow_runs` resource shows its own:\n * `r.id.widget('workflow_run')`. The record page draws the run's steps on its workflow's graph, followed live while the\n * run goes on, and the chosen step's input, output, logs, timing, tries and error under it. See the workflows reference.\n */\nexport const workflowRunField: FieldWidget = { of: [...builtInFieldTypes.workflow_run], display: RunDisplay, cell: RunCell, wide: true }\n"],"file":"workflow-run-field-BxIU66mn.js","debugId":"71214eba-9a74-482e-945d-eae39466f89f"}