@baseplate-dev/plugin-auth 4.0.1 → 4.0.2

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 (268) hide show
  1. package/CHANGELOG.md +621 -0
  2. package/dist/auth0/core/schema/plugin-definition.js +1 -1
  3. package/dist/auth0/core/schema/plugin-definition.js.map +1 -1
  4. package/dist/auth0/generators/fastify/auth0-module/templates/module/schema/user-session.queries.ts +1 -1
  5. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +1 -1
  6. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +1 -1
  7. package/dist/local-auth/constants/model-names.d.ts +4 -0
  8. package/dist/local-auth/constants/model-names.d.ts.map +1 -1
  9. package/dist/local-auth/constants/model-names.js +4 -0
  10. package/dist/local-auth/constants/model-names.js.map +1 -1
  11. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +49 -0
  12. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +1 -1
  13. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +17 -6
  14. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js.map +1 -1
  15. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +209 -0
  16. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts.map +1 -1
  17. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts +5 -0
  18. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +1 -1
  19. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js +5 -0
  20. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js.map +1 -1
  21. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +47 -1
  22. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +1 -1
  23. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +48 -2
  24. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js.map +1 -1
  25. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts +18 -0
  26. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +1 -1
  27. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js +12 -0
  28. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +1 -1
  29. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +253 -0
  30. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +1 -1
  31. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +102 -4
  32. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js.map +1 -1
  33. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +15 -0
  34. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +1 -1
  35. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js +15 -0
  36. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +1 -1
  37. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.ts +18 -0
  38. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.d.ts +2 -0
  39. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.d.ts.map +1 -0
  40. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.js +24 -0
  41. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.js.map +1 -0
  42. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.ts +35 -0
  43. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.d.ts +2 -0
  44. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.d.ts.map +1 -0
  45. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js +38 -0
  46. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js.map +1 -0
  47. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.ts +54 -0
  48. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.d.ts +40 -0
  49. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.d.ts.map +1 -0
  50. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.js +106 -0
  51. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.js.map +1 -0
  52. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.ts +146 -0
  53. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts +24 -0
  54. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts.map +1 -0
  55. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +88 -0
  56. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js.map +1 -0
  57. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +141 -0
  58. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts +35 -0
  59. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts.map +1 -0
  60. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +157 -0
  61. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js.map +1 -0
  62. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +233 -0
  63. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +1 -1
  64. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +48 -14
  65. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +1 -1
  66. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +79 -15
  67. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts +43 -0
  68. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts.map +1 -0
  69. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js +48 -0
  70. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js.map +1 -0
  71. package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts +96 -0
  72. package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts.map +1 -0
  73. package/dist/local-auth/core/generators/auth-email-templates/generated/index.js +11 -0
  74. package/dist/local-auth/core/generators/auth-email-templates/generated/index.js.map +1 -0
  75. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts +14 -0
  76. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts.map +1 -0
  77. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js +26 -0
  78. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js.map +1 -0
  79. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts +41 -0
  80. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts.map +1 -0
  81. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js +59 -0
  82. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js.map +1 -0
  83. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts +60 -0
  84. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts.map +1 -0
  85. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js +42 -0
  86. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js.map +1 -0
  87. package/dist/local-auth/core/generators/auth-email-templates/index.d.ts +2 -0
  88. package/dist/local-auth/core/generators/auth-email-templates/index.d.ts.map +1 -0
  89. package/dist/local-auth/core/generators/auth-email-templates/index.js +2 -0
  90. package/dist/local-auth/core/generators/auth-email-templates/index.js.map +1 -0
  91. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.d.ts +3 -0
  92. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.d.ts.map +1 -0
  93. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.js +14 -0
  94. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.js.map +1 -0
  95. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.tsx +55 -0
  96. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.d.ts +3 -0
  97. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.d.ts.map +1 -0
  98. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.js +12 -0
  99. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.js.map +1 -0
  100. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.tsx +44 -0
  101. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.d.ts +3 -0
  102. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.d.ts.map +1 -0
  103. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.js +14 -0
  104. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.js.map +1 -0
  105. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.tsx +55 -0
  106. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +1 -0
  107. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -1
  108. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +1 -1
  109. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -1
  110. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +2 -0
  111. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -1
  112. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +1 -0
  113. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts.map +1 -1
  114. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +1 -0
  115. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -1
  116. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js +1 -1
  117. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +1 -1
  118. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +1 -1
  119. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js +2 -2
  120. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +1 -1
  121. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts +2 -2
  122. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -1
  123. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +1 -0
  124. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +1 -1
  125. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +722 -4
  126. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +1 -1
  127. package/dist/local-auth/core/generators/auth-routes/generated/index.js +2 -0
  128. package/dist/local-auth/core/generators/auth-routes/generated/index.js.map +1 -1
  129. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +4 -0
  130. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts.map +1 -1
  131. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js +4 -0
  132. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js.map +1 -1
  133. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +4 -1
  134. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -1
  135. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +14 -0
  136. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +1 -1
  137. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts +21 -0
  138. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts.map +1 -0
  139. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js +30 -0
  140. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js.map +1 -0
  141. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +1216 -34
  142. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -1
  143. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +70 -2
  144. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +1 -1
  145. package/dist/local-auth/core/generators/auth-routes/index.d.ts +2 -0
  146. package/dist/local-auth/core/generators/auth-routes/index.d.ts.map +1 -1
  147. package/dist/local-auth/core/generators/auth-routes/index.js +1 -0
  148. package/dist/local-auth/core/generators/auth-routes/index.js.map +1 -1
  149. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.d.ts +10 -0
  150. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.d.ts.map +1 -0
  151. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.js +11 -0
  152. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.js.map +1 -0
  153. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.ts +12 -0
  154. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.d.ts +2 -0
  155. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.d.ts.map +1 -0
  156. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js +60 -0
  157. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js.map +1 -0
  158. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.tsx +127 -0
  159. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts +1 -1
  160. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +1 -1
  161. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +6 -11
  162. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +1 -1
  163. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +20 -19
  164. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts +1 -1
  165. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +1 -1
  166. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +2 -2
  167. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -1
  168. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +2 -3
  169. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.d.ts +7 -0
  170. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.d.ts.map +1 -0
  171. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +131 -0
  172. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js.map +1 -0
  173. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +240 -0
  174. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.d.ts +7 -0
  175. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.d.ts.map +1 -0
  176. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js +106 -0
  177. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js.map +1 -0
  178. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.tsx +206 -0
  179. package/dist/local-auth/core/generators/index.d.ts +1 -0
  180. package/dist/local-auth/core/generators/index.d.ts.map +1 -1
  181. package/dist/local-auth/core/generators/index.js +1 -0
  182. package/dist/local-auth/core/generators/index.js.map +1 -1
  183. package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +12 -0
  184. package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts.map +1 -1
  185. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts +6 -0
  186. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts.map +1 -1
  187. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts +6 -0
  188. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts.map +1 -1
  189. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts +6 -0
  190. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts.map +1 -1
  191. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js +1 -1
  192. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js.map +1 -1
  193. package/dist/local-auth/core/node.d.ts.map +1 -1
  194. package/dist/local-auth/core/node.js +11 -1
  195. package/dist/local-auth/core/node.js.map +1 -1
  196. package/dist/local-auth/core/schema/models.d.ts.map +1 -1
  197. package/dist/local-auth/core/schema/models.js +60 -0
  198. package/dist/local-auth/core/schema/models.js.map +1 -1
  199. package/dist/placeholder-auth/core/schema/plugin-definition.js +1 -1
  200. package/dist/placeholder-auth/core/schema/plugin-definition.js.map +1 -1
  201. package/dist/web/assets/{__federation_expose_auth0CoreCommon-DLSGXjCI.js → __federation_expose_auth0CoreCommon-DKJVe6Rd.js} +3 -3
  202. package/dist/web/assets/{__federation_expose_auth0CoreCommon-DLSGXjCI.js.map → __federation_expose_auth0CoreCommon-DKJVe6Rd.js.map} +1 -1
  203. package/dist/web/assets/{__federation_expose_auth0CoreWeb-C7FfhlmF.js → __federation_expose_auth0CoreWeb-CfhSWZsK.js} +5 -5
  204. package/dist/web/assets/{__federation_expose_auth0CoreWeb-C7FfhlmF.js.map → __federation_expose_auth0CoreWeb-CfhSWZsK.js.map} +1 -1
  205. package/dist/web/assets/{__federation_expose_authCoreCommon-BF58isGa.js → __federation_expose_authCoreCommon-D3-Gk9mI.js} +3 -3
  206. package/dist/web/assets/{__federation_expose_authCoreCommon-BF58isGa.js.map → __federation_expose_authCoreCommon-D3-Gk9mI.js.map} +1 -1
  207. package/dist/web/assets/{__federation_expose_authCoreWeb-DMq9M88g.js → __federation_expose_authCoreWeb-DZoAij9e.js} +6 -6
  208. package/dist/web/assets/{__federation_expose_authCoreWeb-DMq9M88g.js.map → __federation_expose_authCoreWeb-DZoAij9e.js.map} +1 -1
  209. package/dist/web/assets/{__federation_expose_local-authAdminCommon-sQw4q5YX.js → __federation_expose_local-authAdminCommon-BRHnF0Hn.js} +2 -2
  210. package/dist/web/assets/{__federation_expose_local-authAdminCommon-sQw4q5YX.js.map → __federation_expose_local-authAdminCommon-BRHnF0Hn.js.map} +1 -1
  211. package/dist/web/assets/{__federation_expose_local-authAdminWeb-9FbO89NR.js → __federation_expose_local-authAdminWeb-dYAIxuqC.js} +3 -3
  212. package/dist/web/assets/{__federation_expose_local-authAdminWeb-9FbO89NR.js.map → __federation_expose_local-authAdminWeb-dYAIxuqC.js.map} +1 -1
  213. package/dist/web/assets/{__federation_expose_local-authCoreCommon-CpUK09_4.js → __federation_expose_local-authCoreCommon-CIwvOx0d.js} +4 -4
  214. package/dist/web/assets/{__federation_expose_local-authCoreCommon-CpUK09_4.js.map → __federation_expose_local-authCoreCommon-CIwvOx0d.js.map} +1 -1
  215. package/dist/web/assets/{__federation_expose_local-authCoreWeb-Czp0GaY1.js → __federation_expose_local-authCoreWeb-Bwooi2qZ.js} +66 -6
  216. package/dist/web/assets/__federation_expose_local-authCoreWeb-Bwooi2qZ.js.map +1 -0
  217. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-CFDDdOMo.js → __federation_expose_placeholder-authCoreCommon-gFDSzGjB.js} +3 -3
  218. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-CFDDdOMo.js.map → __federation_expose_placeholder-authCoreCommon-gFDSzGjB.js.map} +1 -1
  219. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-Bcn1_oDP.js → __federation_expose_placeholder-authCoreWeb-BZLwIkLk.js} +5 -5
  220. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-Bcn1_oDP.js.map → __federation_expose_placeholder-authCoreWeb-BZLwIkLk.js.map} +1 -1
  221. package/dist/web/assets/{__federation_fn_import-DsXcpNlB.js → __federation_fn_import-pxYUpmb_.js} +2 -2
  222. package/dist/web/assets/{__federation_fn_import-DsXcpNlB.js.map → __federation_fn_import-pxYUpmb_.js.map} +1 -1
  223. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-zqe3PPcn.js → web-BXi2UCP-.js} +7 -7
  224. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BXi2UCP-.js.map +1 -0
  225. package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-CmgMfkI5.js → project-builder-lib-O0clDXMb.js} +7137 -136
  226. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-O0clDXMb.js.map +1 -0
  227. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BpuFQk6s.js +52536 -0
  228. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BpuFQk6s.js.map +1 -0
  229. package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-BO5VHrCf.js → utils-UiZ-8JBg.js} +5 -6
  230. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-UiZ-8JBg.js.map +1 -0
  231. package/dist/web/assets/__federation_shared_@tanstack/{react-router-CNzDweD5.js → react-router-BPEAtEJI.js} +1069 -746
  232. package/dist/web/assets/__federation_shared_@tanstack/react-router-BPEAtEJI.js.map +1 -0
  233. package/dist/web/assets/{get-auth-plugin-definition-BV2O8wTa.js → get-auth-plugin-definition-DPsrvQbo.js} +2 -2
  234. package/dist/web/assets/{get-auth-plugin-definition-BV2O8wTa.js.map → get-auth-plugin-definition-DPsrvQbo.js.map} +1 -1
  235. package/dist/web/assets/{index-BL7fotl7.js → index-CSfs0UAV.js} +2 -2
  236. package/dist/web/assets/{index-BL7fotl7.js.map → index-CSfs0UAV.js.map} +1 -1
  237. package/dist/web/assets/{index.esm-B4RpOlq_.js → index.esm-BoRQu8mM.js} +2 -2
  238. package/dist/web/assets/{index.esm-B4RpOlq_.js.map → index.esm-BoRQu8mM.js.map} +1 -1
  239. package/dist/web/assets/{model-merger-BwRNqcBu.js → model-merger-CdjliK9v.js} +80 -23
  240. package/dist/web/assets/model-merger-CdjliK9v.js.map +1 -0
  241. package/dist/web/assets/{model-names-CEoSIalq.js → model-names-DrcaRxt1.js} +6 -2
  242. package/dist/web/assets/{model-names-CEoSIalq.js.map → model-names-DrcaRxt1.js.map} +1 -1
  243. package/dist/web/assets/{plugin-definition-CHD5r-h7.js → plugin-definition-BG6tu7Hh.js} +3 -3
  244. package/dist/web/assets/plugin-definition-BG6tu7Hh.js.map +1 -0
  245. package/dist/web/assets/{plugin-definition-DA9rJBcS.js → plugin-definition-BMYDEj3f.js} +3 -3
  246. package/dist/web/assets/plugin-definition-BMYDEj3f.js.map +1 -0
  247. package/dist/web/assets/{plugin-definition-B9d2CoQL.js → plugin-definition-DRhTuQas.js} +2 -2
  248. package/dist/web/assets/{plugin-definition-B9d2CoQL.js.map → plugin-definition-DRhTuQas.js.map} +1 -1
  249. package/dist/web/assets/{plugin-definition-BMTsmwyH.js → plugin-definition-j1nJ0FFI.js} +2 -2
  250. package/dist/web/assets/{plugin-definition-BMTsmwyH.js.map → plugin-definition-j1nJ0FFI.js.map} +1 -1
  251. package/dist/web/assets/{react-B9vhIZMy.js → react-CBhSWxr_.js} +2 -2
  252. package/dist/web/assets/{react-B9vhIZMy.js.map → react-CBhSWxr_.js.map} +1 -1
  253. package/dist/web/assets/remoteEntry.js +20 -20
  254. package/dist/web/assets/{style-DZ-aOCkd.css → style-DiK_rD1L.css} +1 -1
  255. package/dist/web/assets/{styles-CEm5K1iU.js → styles-BbHyE-2h.js} +3 -3
  256. package/dist/web/assets/{styles-CEm5K1iU.js.map → styles-BbHyE-2h.js.map} +1 -1
  257. package/dist/web/index.html +1 -1
  258. package/package.json +21 -19
  259. package/dist/web/assets/__federation_expose_local-authCoreWeb-Czp0GaY1.js.map +0 -1
  260. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-zqe3PPcn.js.map +0 -1
  261. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CmgMfkI5.js.map +0 -1
  262. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-D1Dayhn9.js +0 -24082
  263. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-D1Dayhn9.js.map +0 -1
  264. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-BO5VHrCf.js.map +0 -1
  265. package/dist/web/assets/__federation_shared_@tanstack/react-router-CNzDweD5.js.map +0 -1
  266. package/dist/web/assets/model-merger-BwRNqcBu.js.map +0 -1
  267. package/dist/web/assets/plugin-definition-CHD5r-h7.js.map +0 -1
  268. package/dist/web/assets/plugin-definition-DA9rJBcS.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"__federation_expose_placeholder-authCoreWeb-Bcn1_oDP.js","sources":["../../../src/placeholder-auth/core/schema/models.ts","../../../src/placeholder-auth/core/components/placeholder-auth-definition-editor.tsx","../../../src/placeholder-auth/core/web.ts"],"sourcesContent":["import type { ModelMergerModelInput } from '@baseplate-dev/project-builder-lib';\n\nimport type { AuthPluginDefinition } from '#src/auth/core/schema/plugin-definition.js';\n\nimport { PLACEHOLDER_AUTH_MODELS } from '#src/placeholder-auth/constants/model-names.js';\n\nexport function createAuthModels({\n authFeatureRef,\n}: AuthPluginDefinition): Record<\n keyof typeof PLACEHOLDER_AUTH_MODELS,\n ModelMergerModelInput\n> {\n return {\n user: {\n name: PLACEHOLDER_AUTH_MODELS.user,\n featureRef: authFeatureRef,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { genUuid: true },\n },\n {\n name: 'email',\n type: 'string',\n isOptional: true,\n },\n ],\n primaryKeyFieldRefs: ['id'],\n uniqueConstraints: [\n {\n fields: [{ fieldRef: 'email' }],\n },\n ],\n },\n graphql: {\n objectType: {\n enabled: true,\n fields: ['id', 'email'],\n },\n },\n },\n };\n}\n","import type { WebConfigProps } from '@baseplate-dev/project-builder-lib';\nimport type React from 'react';\n\nimport {\n createAndApplyModelMergerResults,\n createModelMergerResults,\n doesModelMergerResultsHaveChanges,\n PluginUtils,\n} from '@baseplate-dev/project-builder-lib';\nimport {\n ModelMergerResultAlert,\n useBlockUnsavedChangesNavigate,\n useDefinitionSchema,\n useProjectDefinition,\n useResettableForm,\n} from '@baseplate-dev/project-builder-lib/web';\nimport {\n FormActionBar,\n SectionList,\n SectionListSection,\n SectionListSectionContent,\n SectionListSectionDescription,\n SectionListSectionHeader,\n SectionListSectionTitle,\n} from '@baseplate-dev/ui-components';\nimport { zodResolver } from '@hookform/resolvers/zod';\nimport { useMemo } from 'react';\n\nimport { getAuthPluginDefinition } from '#src/auth/index.js';\nimport { AuthConfigTabs } from '#src/common/components/auth-config-tabs.js';\nimport { PLACEHOLDER_AUTH_MODELS } from '#src/placeholder-auth/constants/model-names.js';\n\nimport type { PlaceholderAuthPluginDefinitionInput } from '../schema/plugin-definition.js';\n\nimport { createAuthModels } from '../schema/models.js';\nimport { createPlaceholderAuthPluginDefinitionSchema } from '../schema/plugin-definition.js';\n\nimport '#src/styles.css';\n\nexport function PlaceholderAuthDefinitionEditor({\n definition: pluginMetadata,\n metadata,\n onSave,\n}: WebConfigProps): React.JSX.Element {\n const { definition, definitionContainer, saveDefinitionWithFeedback } =\n useProjectDefinition();\n\n const authDefinition = getAuthPluginDefinition(definition);\n\n const authPluginDefinitionSchema = useDefinitionSchema(\n createPlaceholderAuthPluginDefinitionSchema,\n );\n\n const defaultValues = useMemo(() => {\n if (pluginMetadata?.config) {\n return pluginMetadata.config as PlaceholderAuthPluginDefinitionInput;\n }\n\n return {} satisfies PlaceholderAuthPluginDefinitionInput;\n }, [pluginMetadata?.config]);\n\n const form = useResettableForm({\n resolver: zodResolver(authPluginDefinitionSchema),\n defaultValues,\n });\n const { control, reset, handleSubmit } = form;\n\n const pendingModelChanges = useMemo(() => {\n const desiredModels = createAuthModels(authDefinition);\n\n return createModelMergerResults(\n PLACEHOLDER_AUTH_MODELS,\n desiredModels,\n definitionContainer,\n );\n }, [definitionContainer, authDefinition]);\n\n const onSubmit = handleSubmit((data) =>\n saveDefinitionWithFeedback(\n (draftConfig) => {\n const updatedData = {\n ...data,\n };\n createAndApplyModelMergerResults(\n draftConfig,\n PLACEHOLDER_AUTH_MODELS,\n createAuthModels(authDefinition),\n definitionContainer,\n );\n PluginUtils.setPluginConfig(\n draftConfig,\n metadata,\n updatedData,\n definitionContainer,\n );\n },\n {\n successMessage: 'Successfully saved placeholder auth plugin!',\n onSuccess: () => {\n onSave();\n },\n },\n ),\n );\n\n useBlockUnsavedChangesNavigate({ control, reset, onSubmit });\n\n return (\n <div className=\"auth:relative auth:flex auth:h-full auth:flex-1 auth:flex-col auth:gap-4 auth:overflow-hidden\">\n <AuthConfigTabs />\n <div\n className=\"auth:mb-[--action-bar-height] auth:flex auth:flex-1 auth:overflow-y-auto\"\n style={\n {\n '--action-bar-height': '52px',\n } as React.CSSProperties\n }\n >\n <form onSubmit={onSubmit} className=\"auth:max-w-6xl auth:flex-1\">\n <div className=\"auth:pb-16\">\n <SectionList>\n <SectionListSection>\n <SectionListSectionHeader>\n <SectionListSectionTitle>\n Placeholder Auth Configuration\n </SectionListSectionTitle>\n <SectionListSectionDescription>\n The plugin will automatically configure the models it needs.\n </SectionListSectionDescription>\n </SectionListSectionHeader>\n <SectionListSectionContent className=\"auth:space-y-6\">\n <ModelMergerResultAlert\n pendingModelChanges={pendingModelChanges}\n />\n </SectionListSectionContent>\n </SectionListSection>\n </SectionList>\n </div>\n\n <FormActionBar\n form={form}\n allowSaveWithoutDirty={\n !pluginMetadata ||\n doesModelMergerResultsHaveChanges(pendingModelChanges)\n }\n />\n </form>\n </div>\n </div>\n );\n}\n","import {\n createPluginModule,\n webConfigSpec,\n} from '@baseplate-dev/project-builder-lib';\n\nimport { PlaceholderAuthDefinitionEditor } from './components/placeholder-auth-definition-editor.js';\n\nimport '../../styles.css';\n\nexport default createPluginModule({\n name: 'web',\n dependencies: {\n webConfig: webConfigSpec,\n },\n initialize: ({ webConfig }, { pluginKey }) => {\n webConfig.components.set(pluginKey, PlaceholderAuthDefinitionEditor);\n },\n});\n"],"names":["zodResolver","jsxs","jsx"],"mappings":";;;;;;AAMO,SAAS,gBAAA,CAAiB;AAAA,EAC/B;AACF,CAAA,EAGE;AACA,EAAA,OAAO;AAAA,IACL,IAAA,EAAM;AAAA,MACJ,MAAM,uBAAA,CAAwB,IAAA;AAAA,MAC9B,UAAA,EAAY,cAAA;AAAA,MACZ,KAAA,EAAO;AAAA,QACL,MAAA,EAAQ;AAAA,UACN;AAAA,YACE,IAAA,EAAM,IAAA;AAAA,YACN,IAAA,EAAM,MAAA;AAAA,YACN,OAAA,EAAS,EAAE,OAAA,EAAS,IAAA;AAAK,WAC3B;AAAA,UACA;AAAA,YACE,IAAA,EAAM,OAAA;AAAA,YACN,IAAA,EAAM,QAAA;AAAA,YACN,UAAA,EAAY;AAAA;AACd,SACF;AAAA,QACA,mBAAA,EAAqB,CAAC,IAAI,CAAA;AAAA,QAC1B,iBAAA,EAAmB;AAAA,UACjB;AAAA,YACE,MAAA,EAAQ,CAAC,EAAE,QAAA,EAAU,SAAS;AAAA;AAChC;AACF,OACF;AAAA,MACA,OAAA,EAAS;AAAA,QACP,UAAA,EAAY;AAAA,UACV,OAAA,EAAS,IAAA;AAAA,UACT,MAAA,EAAQ,CAAC,IAAA,EAAM,OAAO;AAAA;AACxB;AACF;AACF,GACF;AACF;;ACzCA,MAAA,CAAA,gCAAA,CAAA,wBAAA,CAAA,iCAAA,CAAA,W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AC,wBAAA,EAAA,EACC,QAAA,EAAA;AAAA,8BAAAC,qBAAA,CAAC,2BAAwB,QAAA,EAAA,gCAAA,EAEzB,CAAA;AAAA,8BACAA,qBAAA,CAAC,iCAA8B,QAAA,EAAA,8DAAA,EAE/B;AAAA,aAAA,EACF,CAAA;AAAA,4BACAA,qBAAA,CAAC,yBAAA,EAAA,EAA0B,SAAA,EAAU,gBAAA,EACnC,QAAA,kBAAAA,qBAAA;AAAA,cAAC,sBAAA;AAAA,cAAA;AAAA,gBACC;AAAA;AAAA,aACF,EACF;AAAA,WAAA,EACF,GACF,CAAA,EACF,CAAA;AAAA,0BAEAA,qBAAA;AAAA,YAAC,aAAA;AAAA,YAAA;AAAA,cACC,IAAA;AAAA,cACA,qBAAA,EACE,CAAC,cAAA,IACD,iCAAA,CAAkC,mBAAmB;AAAA;AAAA;AAEzD,SAAA,EACF;AAAA;AAAA;AACF,GAAA,EACF,CAAA;AAEJ;;ACtJA,MAAA,CAAA,kBAAA,CAAA,aAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;AASA,YAAe,kBAAA,CAAmB;AAAA,EAChC,IAAA,EAAM,KAAA;AAAA,EACN,YAAA,EAAc;AAAA,IACZ,SAAA,EAAW;AAAA,GACb;AAAA,EACA,YAAY,CAAC,EAAE,WAAU,EAAG,EAAE,WAAU,KAAM;AAC5C,IAAA,SAAA,CAAU,UAAA,CAAW,GAAA,CAAI,SAAA,EAAW,+BAA+B,CAAA;AAAA,EACrE;AACF,CAAC,CAAA;;;;"}
1
+ {"version":3,"file":"__federation_expose_placeholder-authCoreWeb-BZLwIkLk.js","sources":["../../../src/placeholder-auth/core/schema/models.ts","../../../src/placeholder-auth/core/components/placeholder-auth-definition-editor.tsx","../../../src/placeholder-auth/core/web.ts"],"sourcesContent":["import type { ModelMergerModelInput } from '@baseplate-dev/project-builder-lib';\n\nimport type { AuthPluginDefinition } from '#src/auth/core/schema/plugin-definition.js';\n\nimport { PLACEHOLDER_AUTH_MODELS } from '#src/placeholder-auth/constants/model-names.js';\n\nexport function createAuthModels({\n authFeatureRef,\n}: AuthPluginDefinition): Record<\n keyof typeof PLACEHOLDER_AUTH_MODELS,\n ModelMergerModelInput\n> {\n return {\n user: {\n name: PLACEHOLDER_AUTH_MODELS.user,\n featureRef: authFeatureRef,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { genUuid: true },\n },\n {\n name: 'email',\n type: 'string',\n isOptional: true,\n },\n ],\n primaryKeyFieldRefs: ['id'],\n uniqueConstraints: [\n {\n fields: [{ fieldRef: 'email' }],\n },\n ],\n },\n graphql: {\n objectType: {\n enabled: true,\n fields: ['id', 'email'],\n },\n },\n },\n };\n}\n","import type { WebConfigProps } from '@baseplate-dev/project-builder-lib';\nimport type React from 'react';\n\nimport {\n createAndApplyModelMergerResults,\n createModelMergerResults,\n doesModelMergerResultsHaveChanges,\n PluginUtils,\n} from '@baseplate-dev/project-builder-lib';\nimport {\n ModelMergerResultAlert,\n useBlockUnsavedChangesNavigate,\n useDefinitionSchema,\n useProjectDefinition,\n useResettableForm,\n} from '@baseplate-dev/project-builder-lib/web';\nimport {\n FormActionBar,\n SectionList,\n SectionListSection,\n SectionListSectionContent,\n SectionListSectionDescription,\n SectionListSectionHeader,\n SectionListSectionTitle,\n} from '@baseplate-dev/ui-components';\nimport { zodResolver } from '@hookform/resolvers/zod';\nimport { useMemo } from 'react';\n\nimport { getAuthPluginDefinition } from '#src/auth/index.js';\nimport { AuthConfigTabs } from '#src/common/components/auth-config-tabs.js';\nimport { PLACEHOLDER_AUTH_MODELS } from '#src/placeholder-auth/constants/model-names.js';\n\nimport type { PlaceholderAuthPluginDefinitionInput } from '../schema/plugin-definition.js';\n\nimport { createAuthModels } from '../schema/models.js';\nimport { createPlaceholderAuthPluginDefinitionSchema } from '../schema/plugin-definition.js';\n\nimport '#src/styles.css';\n\nexport function PlaceholderAuthDefinitionEditor({\n definition: pluginMetadata,\n metadata,\n onSave,\n}: WebConfigProps): React.JSX.Element {\n const { definition, definitionContainer, saveDefinitionWithFeedback } =\n useProjectDefinition();\n\n const authDefinition = getAuthPluginDefinition(definition);\n\n const authPluginDefinitionSchema = useDefinitionSchema(\n createPlaceholderAuthPluginDefinitionSchema,\n );\n\n const defaultValues = useMemo(() => {\n if (pluginMetadata?.config) {\n return pluginMetadata.config as PlaceholderAuthPluginDefinitionInput;\n }\n\n return {} satisfies PlaceholderAuthPluginDefinitionInput;\n }, [pluginMetadata?.config]);\n\n const form = useResettableForm({\n resolver: zodResolver(authPluginDefinitionSchema),\n defaultValues,\n });\n const { control, reset, handleSubmit } = form;\n\n const pendingModelChanges = useMemo(() => {\n const desiredModels = createAuthModels(authDefinition);\n\n return createModelMergerResults(\n PLACEHOLDER_AUTH_MODELS,\n desiredModels,\n definitionContainer,\n );\n }, [definitionContainer, authDefinition]);\n\n const onSubmit = handleSubmit((data) =>\n saveDefinitionWithFeedback(\n (draftConfig) => {\n const updatedData = {\n ...data,\n };\n createAndApplyModelMergerResults(\n draftConfig,\n PLACEHOLDER_AUTH_MODELS,\n createAuthModels(authDefinition),\n definitionContainer,\n );\n PluginUtils.setPluginConfig(\n draftConfig,\n metadata,\n updatedData,\n definitionContainer,\n );\n },\n {\n successMessage: 'Successfully saved placeholder auth plugin!',\n onSuccess: () => {\n onSave();\n },\n },\n ),\n );\n\n useBlockUnsavedChangesNavigate({ control, reset, onSubmit });\n\n return (\n <div className=\"auth:relative auth:flex auth:h-full auth:flex-1 auth:flex-col auth:gap-4 auth:overflow-hidden\">\n <AuthConfigTabs />\n <div\n className=\"auth:mb-[--action-bar-height] auth:flex auth:flex-1 auth:overflow-y-auto\"\n style={\n {\n '--action-bar-height': '52px',\n } as React.CSSProperties\n }\n >\n <form onSubmit={onSubmit} className=\"auth:max-w-6xl auth:flex-1\">\n <div className=\"auth:pb-16\">\n <SectionList>\n <SectionListSection>\n <SectionListSectionHeader>\n <SectionListSectionTitle>\n Placeholder Auth Configuration\n </SectionListSectionTitle>\n <SectionListSectionDescription>\n The plugin will automatically configure the models it needs.\n </SectionListSectionDescription>\n </SectionListSectionHeader>\n <SectionListSectionContent className=\"auth:space-y-6\">\n <ModelMergerResultAlert\n pendingModelChanges={pendingModelChanges}\n />\n </SectionListSectionContent>\n </SectionListSection>\n </SectionList>\n </div>\n\n <FormActionBar\n form={form}\n allowSaveWithoutDirty={\n !pluginMetadata ||\n doesModelMergerResultsHaveChanges(pendingModelChanges)\n }\n />\n </form>\n </div>\n </div>\n );\n}\n","import {\n createPluginModule,\n webConfigSpec,\n} from '@baseplate-dev/project-builder-lib';\n\nimport { PlaceholderAuthDefinitionEditor } from './components/placeholder-auth-definition-editor.js';\n\nimport '../../styles.css';\n\nexport default createPluginModule({\n name: 'web',\n dependencies: {\n webConfig: webConfigSpec,\n },\n initialize: ({ webConfig }, { pluginKey }) => {\n webConfig.components.set(pluginKey, PlaceholderAuthDefinitionEditor);\n },\n});\n"],"names":["zodResolver","jsxs","jsx"],"mappings":";;;;;;AAMO,SAAS,gBAAA,CAAiB;AAAA,EAC/B;AACF,CAAA,EAGE;AACA,EAAA,OAAO;AAAA,IACL,IAAA,EAAM;AAAA,MACJ,MAAM,uBAAA,CAAwB,IAAA;AAAA,MAC9B,UAAA,EAAY,cAAA;AAAA,MACZ,KAAA,EAAO;AAAA,QACL,MAAA,EAAQ;AAAA,UACN;AAAA,YACE,IAAA,EAAM,IAAA;AAAA,YACN,IAAA,EAAM,MAAA;AAAA,YACN,OAAA,EAAS,EAAE,OAAA,EAAS,IAAA;AAAK,WAC3B;AAAA,UACA;AAAA,YACE,IAAA,EAAM,OAAA;AAAA,YACN,IAAA,EAAM,QAAA;AAAA,YACN,UAAA,EAAY;AAAA;AACd,SACF;AAAA,QACA,mBAAA,EAAqB,CAAC,IAAI,CAAA;AAAA,QAC1B,iBAAA,EAAmB;AAAA,UACjB;AAAA,YACE,MAAA,EAAQ,CAAC,EAAE,QAAA,EAAU,SAAS;AAAA;AAChC;AACF,OACF;AAAA,MACA,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-line no-undef
359
- const moduleMap = {'react':{get:()=>()=>__federation_import(new URL('__federation_shared_react-CJ2OfFKA.js', import.meta.url).href),import:true},'react-dom':{get:()=>()=>__federation_import(new URL('__federation_shared_react-dom-B4vgf5Ln.js', import.meta.url).href),import:true},'zod':{get:()=>()=>__federation_import(new URL('__federation_shared_zod-B6wbpZ4f.js', import.meta.url).href),import:true},'@baseplate-dev/project-builder-lib':{get:()=>()=>__federation_import(new URL('__federation_shared_@baseplate-dev/project-builder-lib-CmgMfkI5.js', import.meta.url).href),import:true},'@baseplate-dev/project-builder-lib/web':{get:()=>()=>__federation_import(new URL('__federation_shared_@baseplate-dev/project-builder-lib/web-zqe3PPcn.js', import.meta.url).href),import:true},'@baseplate-dev/utils':{get:()=>()=>__federation_import(new URL('__federation_shared_@baseplate-dev/utils-BO5VHrCf.js', import.meta.url).href),import:true},'@baseplate-dev/ui-components':{get:()=>()=>__federation_import(new URL('__federation_shared_@baseplate-dev/ui-components-D1Dayhn9.js', import.meta.url).href),import:true},'@tanstack/react-router':{get:()=>()=>__federation_import(new URL('__federation_shared_@tanstack/react-router-CNzDweD5.js', import.meta.url).href),import:true}};
359
+ const moduleMap = {'react':{get:()=>()=>__federation_import(new URL('__federation_shared_react-CJ2OfFKA.js', import.meta.url).href),import:true},'react-dom':{get:()=>()=>__federation_import(new URL('__federation_shared_react-dom-B4vgf5Ln.js', import.meta.url).href),import:true},'zod':{get:()=>()=>__federation_import(new URL('__federation_shared_zod-B6wbpZ4f.js', import.meta.url).href),import:true},'@baseplate-dev/project-builder-lib':{get:()=>()=>__federation_import(new URL('__federation_shared_@baseplate-dev/project-builder-lib-O0clDXMb.js', import.meta.url).href),import:true},'@baseplate-dev/project-builder-lib/web':{get:()=>()=>__federation_import(new URL('__federation_shared_@baseplate-dev/project-builder-lib/web-BXi2UCP-.js', import.meta.url).href),import:true},'@baseplate-dev/utils':{get:()=>()=>__federation_import(new URL('__federation_shared_@baseplate-dev/utils-UiZ-8JBg.js', import.meta.url).href),import:true},'@baseplate-dev/ui-components':{get:()=>()=>__federation_import(new URL('__federation_shared_@baseplate-dev/ui-components-BpuFQk6s.js', import.meta.url).href),import:true},'@tanstack/react-router':{get:()=>()=>__federation_import(new URL('__federation_shared_@tanstack/react-router-BPEAtEJI.js', import.meta.url).href),import:true}};
360
360
  const moduleCache = Object.create(null);
361
361
  async function importShared(name, shareScope = 'default') {
362
362
  return moduleCache[name]
@@ -418,4 +418,4 @@ function flattenModule(module, name) {
418
418
  }
419
419
 
420
420
  export { importShared, getSharedFromLocal as importSharedLocal, getSharedFromRuntime as importSharedRuntime };
421
- //# sourceMappingURL=__federation_fn_import-DsXcpNlB.js.map
421
+ //# sourceMappingURL=__federation_fn_import-pxYUpmb_.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"__federation_fn_import-DsXcpNlB.js","sources":["../../../../../node_modules/.pnpm/@originjs+vite-plugin-federation@1.3.6/node_modules/@originjs/vite-plugin-federation/dist/satisfy.mjs"],"sourcesContent":["const buildIdentifier = \"[0-9A-Za-z-]+\";\nconst build = `(?:\\\\+(${buildIdentifier}(?:\\\\.${buildIdentifier})*))`;\nconst numericIdentifier = \"0|[1-9]\\\\d*\";\nconst numericIdentifierLoose = \"[0-9]+\";\nconst nonNumericIdentifier = \"\\\\d*[a-zA-Z-][a-zA-Z0-9-]*\";\nconst preReleaseIdentifierLoose = `(?:${numericIdentifierLoose}|${nonNumericIdentifier})`;\nconst preReleaseLoose = `(?:-?(${preReleaseIdentifierLoose}(?:\\\\.${preReleaseIdentifierLoose})*))`;\nconst preReleaseIdentifier = `(?:${numericIdentifier}|${nonNumericIdentifier})`;\nconst preRelease = `(?:-(${preReleaseIdentifier}(?:\\\\.${preReleaseIdentifier})*))`;\nconst xRangeIdentifier = `${numericIdentifier}|x|X|\\\\*`;\nconst xRangePlain = `[v=\\\\s]*(${xRangeIdentifier})(?:\\\\.(${xRangeIdentifier})(?:\\\\.(${xRangeIdentifier})(?:${preRelease})?${build}?)?)?`;\nconst hyphenRange = `^\\\\s*(${xRangePlain})\\\\s+-\\\\s+(${xRangePlain})\\\\s*$`;\nconst mainVersionLoose = `(${numericIdentifierLoose})\\\\.(${numericIdentifierLoose})\\\\.(${numericIdentifierLoose})`;\nconst loosePlain = `[v=\\\\s]*${mainVersionLoose}${preReleaseLoose}?${build}?`;\nconst gtlt = \"((?:<|>)?=?)\";\nconst comparatorTrim = `(\\\\s*)${gtlt}\\\\s*(${loosePlain}|${xRangePlain})`;\nconst loneTilde = \"(?:~>?)\";\nconst tildeTrim = `(\\\\s*)${loneTilde}\\\\s+`;\nconst loneCaret = \"(?:\\\\^)\";\nconst caretTrim = `(\\\\s*)${loneCaret}\\\\s+`;\nconst star = \"(<|>)?=?\\\\s*\\\\*\";\nconst caret = `^${loneCaret}${xRangePlain}$`;\nconst mainVersion = `(${numericIdentifier})\\\\.(${numericIdentifier})\\\\.(${numericIdentifier})`;\nconst fullPlain = `v?${mainVersion}${preRelease}?${build}?`;\nconst tilde = `^${loneTilde}${xRangePlain}$`;\nconst xRange = `^${gtlt}\\\\s*${xRangePlain}$`;\nconst comparator = `^${gtlt}\\\\s*(${fullPlain})$|^$`;\nconst gte0 = \"^\\\\s*>=\\\\s*0.0.0\\\\s*$\";\nfunction parseRegex(source) {\n return new RegExp(source);\n}\nfunction isXVersion(version) {\n return !version || version.toLowerCase() === \"x\" || version === \"*\";\n}\nfunction pipe(...fns) {\n return (x) => {\n return fns.reduce((v, f) => f(v), x);\n };\n}\nfunction extractComparator(comparatorString) {\n return comparatorString.match(parseRegex(comparator));\n}\nfunction combineVersion(major, minor, patch, preRelease2) {\n const mainVersion2 = `${major}.${minor}.${patch}`;\n if (preRelease2) {\n return `${mainVersion2}-${preRelease2}`;\n }\n return mainVersion2;\n}\nfunction parseHyphen(range) {\n return range.replace(\n parseRegex(hyphenRange),\n (_range, from, fromMajor, fromMinor, fromPatch, _fromPreRelease, _fromBuild, to, toMajor, toMinor, toPatch, toPreRelease) => {\n if (isXVersion(fromMajor)) {\n from = \"\";\n } else if (isXVersion(fromMinor)) {\n from = `>=${fromMajor}.0.0`;\n } else if (isXVersion(fromPatch)) {\n from = `>=${fromMajor}.${fromMinor}.0`;\n } else {\n from = `>=${from}`;\n }\n if (isXVersion(toMajor)) {\n to = \"\";\n } else if (isXVersion(toMinor)) {\n to = `<${+toMajor + 1}.0.0-0`;\n } else if (isXVersion(toPatch)) {\n to = `<${toMajor}.${+toMinor + 1}.0-0`;\n } else if (toPreRelease) {\n to = `<=${toMajor}.${toMinor}.${toPatch}-${toPreRelease}`;\n } else {\n to = `<=${to}`;\n }\n return `${from} ${to}`.trim();\n }\n );\n}\nfunction parseComparatorTrim(range) {\n return range.replace(parseRegex(comparatorTrim), \"$1$2$3\");\n}\nfunction parseTildeTrim(range) {\n return range.replace(parseRegex(tildeTrim), \"$1~\");\n}\nfunction parseCaretTrim(range) {\n return range.replace(parseRegex(caretTrim), \"$1^\");\n}\nfunction parseCarets(range) {\n return range.trim().split(/\\s+/).map((rangeVersion) => {\n return rangeVersion.replace(\n parseRegex(caret),\n (_, major, minor, patch, preRelease2) => {\n if (isXVersion(major)) {\n return \"\";\n } else if (isXVersion(minor)) {\n return `>=${major}.0.0 <${+major + 1}.0.0-0`;\n } else if (isXVersion(patch)) {\n if (major === \"0\") {\n return `>=${major}.${minor}.0 <${major}.${+minor + 1}.0-0`;\n } else {\n return `>=${major}.${minor}.0 <${+major + 1}.0.0-0`;\n }\n } else if (preRelease2) {\n if (major === \"0\") {\n if (minor === \"0\") {\n return `>=${major}.${minor}.${patch}-${preRelease2} <${major}.${minor}.${+patch + 1}-0`;\n } else {\n return `>=${major}.${minor}.${patch}-${preRelease2} <${major}.${+minor + 1}.0-0`;\n }\n } else {\n return `>=${major}.${minor}.${patch}-${preRelease2} <${+major + 1}.0.0-0`;\n }\n } else {\n if (major === \"0\") {\n if (minor === \"0\") {\n return `>=${major}.${minor}.${patch} <${major}.${minor}.${+patch + 1}-0`;\n } else {\n return `>=${major}.${minor}.${patch} <${major}.${+minor + 1}.0-0`;\n }\n }\n return `>=${major}.${minor}.${patch} <${+major + 1}.0.0-0`;\n }\n }\n );\n }).join(\" \");\n}\nfunction parseTildes(range) {\n return range.trim().split(/\\s+/).map((rangeVersion) => {\n return rangeVersion.replace(\n parseRegex(tilde),\n (_, major, minor, patch, preRelease2) => {\n if (isXVersion(major)) {\n return \"\";\n } else if (isXVersion(minor)) {\n return `>=${major}.0.0 <${+major + 1}.0.0-0`;\n } else if (isXVersion(patch)) {\n return `>=${major}.${minor}.0 <${major}.${+minor + 1}.0-0`;\n } else if (preRelease2) {\n return `>=${major}.${minor}.${patch}-${preRelease2} <${major}.${+minor + 1}.0-0`;\n }\n return `>=${major}.${minor}.${patch} <${major}.${+minor + 1}.0-0`;\n }\n );\n }).join(\" \");\n}\nfunction parseXRanges(range) {\n return range.split(/\\s+/).map((rangeVersion) => {\n return rangeVersion.trim().replace(\n parseRegex(xRange),\n (ret, gtlt2, major, minor, patch, preRelease2) => {\n const isXMajor = isXVersion(major);\n const isXMinor = isXMajor || isXVersion(minor);\n const isXPatch = isXMinor || isXVersion(patch);\n if (gtlt2 === \"=\" && isXPatch) {\n gtlt2 = \"\";\n }\n preRelease2 = \"\";\n if (isXMajor) {\n if (gtlt2 === \">\" || gtlt2 === \"<\") {\n return \"<0.0.0-0\";\n } else {\n return \"*\";\n }\n } else if (gtlt2 && isXPatch) {\n if (isXMinor) {\n minor = 0;\n }\n patch = 0;\n if (gtlt2 === \">\") {\n gtlt2 = \">=\";\n if (isXMinor) {\n major = +major + 1;\n minor = 0;\n patch = 0;\n } else {\n minor = +minor + 1;\n patch = 0;\n }\n } else if (gtlt2 === \"<=\") {\n gtlt2 = \"<\";\n if (isXMinor) {\n major = +major + 1;\n } else {\n minor = +minor + 1;\n }\n }\n if (gtlt2 === \"<\") {\n preRelease2 = \"-0\";\n }\n return `${gtlt2 + major}.${minor}.${patch}${preRelease2}`;\n } else if (isXMinor) {\n return `>=${major}.0.0${preRelease2} <${+major + 1}.0.0-0`;\n } else if (isXPatch) {\n return `>=${major}.${minor}.0${preRelease2} <${major}.${+minor + 1}.0-0`;\n }\n return ret;\n }\n );\n }).join(\" \");\n}\nfunction parseStar(range) {\n return range.trim().replace(parseRegex(star), \"\");\n}\nfunction parseGTE0(comparatorString) {\n return comparatorString.trim().replace(parseRegex(gte0), \"\");\n}\nfunction compareAtom(rangeAtom, versionAtom) {\n rangeAtom = +rangeAtom || rangeAtom;\n versionAtom = +versionAtom || versionAtom;\n if (rangeAtom > versionAtom) {\n return 1;\n }\n if (rangeAtom === versionAtom) {\n return 0;\n }\n return -1;\n}\nfunction comparePreRelease(rangeAtom, versionAtom) {\n const { preRelease: rangePreRelease } = rangeAtom;\n const { preRelease: versionPreRelease } = versionAtom;\n if (rangePreRelease === void 0 && !!versionPreRelease) {\n return 1;\n }\n if (!!rangePreRelease && versionPreRelease === void 0) {\n return -1;\n }\n if (rangePreRelease === void 0 && versionPreRelease === void 0) {\n return 0;\n }\n for (let i = 0, n = rangePreRelease.length; i <= n; i++) {\n const rangeElement = rangePreRelease[i];\n const versionElement = versionPreRelease[i];\n if (rangeElement === versionElement) {\n continue;\n }\n if (rangeElement === void 0 && versionElement === void 0) {\n return 0;\n }\n if (!rangeElement) {\n return 1;\n }\n if (!versionElement) {\n return -1;\n }\n return compareAtom(rangeElement, versionElement);\n }\n return 0;\n}\nfunction compareVersion(rangeAtom, versionAtom) {\n return compareAtom(rangeAtom.major, versionAtom.major) || compareAtom(rangeAtom.minor, versionAtom.minor) || compareAtom(rangeAtom.patch, versionAtom.patch) || comparePreRelease(rangeAtom, versionAtom);\n}\nfunction eq(rangeAtom, versionAtom) {\n return rangeAtom.version === versionAtom.version;\n}\nfunction compare(rangeAtom, versionAtom) {\n switch (rangeAtom.operator) {\n case \"\":\n case \"=\":\n return eq(rangeAtom, versionAtom);\n case \">\":\n return compareVersion(rangeAtom, versionAtom) < 0;\n case \">=\":\n return eq(rangeAtom, versionAtom) || compareVersion(rangeAtom, versionAtom) < 0;\n case \"<\":\n return compareVersion(rangeAtom, versionAtom) > 0;\n case \"<=\":\n return eq(rangeAtom, versionAtom) || compareVersion(rangeAtom, versionAtom) > 0;\n case void 0: {\n return true;\n }\n default:\n return false;\n }\n}\nfunction parseComparatorString(range) {\n return pipe(\n parseCarets,\n parseTildes,\n parseXRanges,\n parseStar\n )(range);\n}\nfunction parseRange(range) {\n return pipe(\n parseHyphen,\n parseComparatorTrim,\n parseTildeTrim,\n parseCaretTrim\n )(range.trim()).split(/\\s+/).join(\" \");\n}\nfunction satisfy(version, range) {\n if (!version) {\n return false;\n }\n const parsedRange = parseRange(range);\n const parsedComparator = parsedRange.split(\" \").map((rangeVersion) => parseComparatorString(rangeVersion)).join(\" \");\n const comparators = parsedComparator.split(/\\s+/).map((comparator2) => parseGTE0(comparator2));\n const extractedVersion = extractComparator(version);\n if (!extractedVersion) {\n return false;\n }\n const [\n ,\n versionOperator,\n ,\n versionMajor,\n versionMinor,\n versionPatch,\n versionPreRelease\n ] = extractedVersion;\n const versionAtom = {\n operator: versionOperator,\n version: combineVersion(\n versionMajor,\n versionMinor,\n versionPatch,\n versionPreRelease\n ),\n major: versionMajor,\n minor: versionMinor,\n patch: versionPatch,\n preRelease: versionPreRelease == null ? void 0 : versionPreRelease.split(\".\")\n };\n for (const comparator2 of comparators) {\n const extractedComparator = extractComparator(comparator2);\n if (!extractedComparator) {\n return false;\n }\n const [\n ,\n rangeOperator,\n ,\n rangeMajor,\n rangeMinor,\n rangePatch,\n rangePreRelease\n ] = extractedComparator;\n const rangeAtom = {\n operator: rangeOperator,\n version: combineVersion(\n rangeMajor,\n rangeMinor,\n rangePatch,\n rangePreRelease\n ),\n major: rangeMajor,\n minor: rangeMinor,\n patch: rangePatch,\n preRelease: rangePreRelease == null ? void 0 : rangePreRelease.split(\".\")\n };\n if (!compare(rangeAtom, versionAtom)) {\n return false;\n }\n }\n return true;\n}\nexport {\n satisfy\n};\n"],"names":[],"mappings":"AAAA,MAAM,eA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,IAAI,IAAI,GAAG,MAAM,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG;AAC9E,KAAK;AACL,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,WAAW,CAAC,EAAE;AAC1C,MAAM,OAAO,KAAK;AAClB,IAAI;AACJ,EAAE;AACF,EAAE,OAAO,IAAI;AACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"__federation_fn_import-pxYUpmb_.js","sources":["../../../../../node_modules/.pnpm/@originjs+vite-plugin-federation@1.3.6/node_modules/@originjs/vite-plugin-federation/dist/satisfy.mjs"],"sourcesContent":["const buildIdentifier = \"[0-9A-Za-z-]+\";\nconst build = `(?:\\\\+(${buildIdentifier}(?:\\\\.${buildIdentifier})*))`;\nconst numericIdentifier = \"0|[1-9]\\\\d*\";\nconst numericIdentifierLoose = \"[0-9]+\";\nconst nonNumericIdentifier = \"\\\\d*[a-zA-Z-][a-zA-Z0-9-]*\";\nconst preReleaseIdentifierLoose = `(?:${numericIdentifierLoose}|${nonNumericIdentifier})`;\nconst preReleaseLoose = `(?:-?(${preReleaseIdentifierLoose}(?:\\\\.${preReleaseIdentifierLoose})*))`;\nconst preReleaseIdentifier = `(?:${numericIdentifier}|${nonNumericIdentifier})`;\nconst preRelease = `(?:-(${preReleaseIdentifier}(?:\\\\.${preReleaseIdentifier})*))`;\nconst xRangeIdentifier = `${numericIdentifier}|x|X|\\\\*`;\nconst xRangePlain = `[v=\\\\s]*(${xRangeIdentifier})(?:\\\\.(${xRangeIdentifier})(?:\\\\.(${xRangeIdentifier})(?:${preRelease})?${build}?)?)?`;\nconst hyphenRange = `^\\\\s*(${xRangePlain})\\\\s+-\\\\s+(${xRangePlain})\\\\s*$`;\nconst mainVersionLoose = `(${numericIdentifierLoose})\\\\.(${numericIdentifierLoose})\\\\.(${numericIdentifierLoose})`;\nconst loosePlain = `[v=\\\\s]*${mainVersionLoose}${preReleaseLoose}?${build}?`;\nconst gtlt = \"((?:<|>)?=?)\";\nconst comparatorTrim = `(\\\\s*)${gtlt}\\\\s*(${loosePlain}|${xRangePlain})`;\nconst loneTilde = \"(?:~>?)\";\nconst tildeTrim = `(\\\\s*)${loneTilde}\\\\s+`;\nconst loneCaret = \"(?:\\\\^)\";\nconst caretTrim = `(\\\\s*)${loneCaret}\\\\s+`;\nconst star = \"(<|>)?=?\\\\s*\\\\*\";\nconst caret = `^${loneCaret}${xRangePlain}$`;\nconst mainVersion = `(${numericIdentifier})\\\\.(${numericIdentifier})\\\\.(${numericIdentifier})`;\nconst fullPlain = `v?${mainVersion}${preRelease}?${build}?`;\nconst tilde = `^${loneTilde}${xRangePlain}$`;\nconst xRange = `^${gtlt}\\\\s*${xRangePlain}$`;\nconst comparator = `^${gtlt}\\\\s*(${fullPlain})$|^$`;\nconst gte0 = \"^\\\\s*>=\\\\s*0.0.0\\\\s*$\";\nfunction parseRegex(source) {\n return new RegExp(source);\n}\nfunction isXVersion(version) {\n return !version || version.toLowerCase() === \"x\" || version === \"*\";\n}\nfunction pipe(...fns) {\n return (x) => {\n return fns.reduce((v, f) => f(v), x);\n };\n}\nfunction extractComparator(comparatorString) {\n return comparatorString.match(parseRegex(comparator));\n}\nfunction combineVersion(major, minor, patch, preRelease2) {\n const mainVersion2 = `${major}.${minor}.${patch}`;\n if (preRelease2) {\n return `${mainVersion2}-${preRelease2}`;\n }\n return mainVersion2;\n}\nfunction parseHyphen(range) {\n return range.replace(\n parseRegex(hyphenRange),\n (_range, from, fromMajor, fromMinor, fromPatch, _fromPreRelease, _fromBuild, to, toMajor, toMinor, toPatch, toPreRelease) => {\n if (isXVersion(fromMajor)) {\n from = \"\";\n } else if (isXVersion(fromMinor)) {\n from = `>=${fromMajor}.0.0`;\n } else if (isXVersion(fromPatch)) {\n from = `>=${fromMajor}.${fromMinor}.0`;\n } else {\n from = `>=${from}`;\n }\n if (isXVersion(toMajor)) {\n to = \"\";\n } else if (isXVersion(toMinor)) {\n to = `<${+toMajor + 1}.0.0-0`;\n } else if (isXVersion(toPatch)) {\n to = `<${toMajor}.${+toMinor + 1}.0-0`;\n } else if (toPreRelease) {\n to = `<=${toMajor}.${toMinor}.${toPatch}-${toPreRelease}`;\n } else {\n to = `<=${to}`;\n }\n return `${from} ${to}`.trim();\n }\n );\n}\nfunction parseComparatorTrim(range) {\n return range.replace(parseRegex(comparatorTrim), \"$1$2$3\");\n}\nfunction parseTildeTrim(range) {\n return range.replace(parseRegex(tildeTrim), \"$1~\");\n}\nfunction parseCaretTrim(range) {\n return range.replace(parseRegex(caretTrim), \"$1^\");\n}\nfunction parseCarets(range) {\n return range.trim().split(/\\s+/).map((rangeVersion) => {\n return rangeVersion.replace(\n parseRegex(caret),\n (_, major, minor, patch, preRelease2) => {\n if (isXVersion(major)) {\n return \"\";\n } else if (isXVersion(minor)) {\n return `>=${major}.0.0 <${+major + 1}.0.0-0`;\n } else if (isXVersion(patch)) {\n if (major === \"0\") {\n return `>=${major}.${minor}.0 <${major}.${+minor + 1}.0-0`;\n } else {\n return `>=${major}.${minor}.0 <${+major + 1}.0.0-0`;\n }\n } else if (preRelease2) {\n if (major === \"0\") {\n if (minor === \"0\") {\n return `>=${major}.${minor}.${patch}-${preRelease2} <${major}.${minor}.${+patch + 1}-0`;\n } else {\n return `>=${major}.${minor}.${patch}-${preRelease2} <${major}.${+minor + 1}.0-0`;\n }\n } else {\n return `>=${major}.${minor}.${patch}-${preRelease2} <${+major + 1}.0.0-0`;\n }\n } else {\n if (major === \"0\") {\n if (minor === \"0\") {\n return `>=${major}.${minor}.${patch} <${major}.${minor}.${+patch + 1}-0`;\n } else {\n return `>=${major}.${minor}.${patch} <${major}.${+minor + 1}.0-0`;\n }\n }\n return `>=${major}.${minor}.${patch} <${+major + 1}.0.0-0`;\n }\n }\n );\n }).join(\" \");\n}\nfunction parseTildes(range) {\n return range.trim().split(/\\s+/).map((rangeVersion) => {\n return rangeVersion.replace(\n parseRegex(tilde),\n (_, major, minor, patch, preRelease2) => {\n if (isXVersion(major)) {\n return \"\";\n } else if (isXVersion(minor)) {\n return `>=${major}.0.0 <${+major + 1}.0.0-0`;\n } else if (isXVersion(patch)) {\n return `>=${major}.${minor}.0 <${major}.${+minor + 1}.0-0`;\n } else if (preRelease2) {\n return `>=${major}.${minor}.${patch}-${preRelease2} <${major}.${+minor + 1}.0-0`;\n }\n return `>=${major}.${minor}.${patch} <${major}.${+minor + 1}.0-0`;\n }\n );\n }).join(\" \");\n}\nfunction parseXRanges(range) {\n return range.split(/\\s+/).map((rangeVersion) => {\n return rangeVersion.trim().replace(\n parseRegex(xRange),\n (ret, gtlt2, major, minor, patch, preRelease2) => {\n const isXMajor = isXVersion(major);\n const isXMinor = isXMajor || isXVersion(minor);\n const isXPatch = isXMinor || isXVersion(patch);\n if (gtlt2 === \"=\" && isXPatch) {\n gtlt2 = \"\";\n }\n preRelease2 = \"\";\n if (isXMajor) {\n if (gtlt2 === \">\" || gtlt2 === \"<\") {\n return \"<0.0.0-0\";\n } else {\n return \"*\";\n }\n } else if (gtlt2 && isXPatch) {\n if (isXMinor) {\n minor = 0;\n }\n patch = 0;\n if (gtlt2 === \">\") {\n gtlt2 = \">=\";\n if (isXMinor) {\n major = +major + 1;\n minor = 0;\n patch = 0;\n } else {\n minor = +minor + 1;\n patch = 0;\n }\n } else if (gtlt2 === \"<=\") {\n gtlt2 = \"<\";\n if (isXMinor) {\n major = +major + 1;\n } else {\n minor = +minor + 1;\n }\n }\n if (gtlt2 === \"<\") {\n preRelease2 = \"-0\";\n }\n return `${gtlt2 + major}.${minor}.${patch}${preRelease2}`;\n } else if (isXMinor) {\n return `>=${major}.0.0${preRelease2} <${+major + 1}.0.0-0`;\n } else if (isXPatch) {\n return `>=${major}.${minor}.0${preRelease2} <${major}.${+minor + 1}.0-0`;\n }\n return ret;\n }\n );\n }).join(\" \");\n}\nfunction parseStar(range) {\n return range.trim().replace(parseRegex(star), \"\");\n}\nfunction parseGTE0(comparatorString) {\n return comparatorString.trim().replace(parseRegex(gte0), \"\");\n}\nfunction compareAtom(rangeAtom, versionAtom) {\n rangeAtom = +rangeAtom || rangeAtom;\n versionAtom = +versionAtom || versionAtom;\n if (rangeAtom > versionAtom) {\n return 1;\n }\n if (rangeAtom === versionAtom) {\n return 0;\n }\n return -1;\n}\nfunction comparePreRelease(rangeAtom, versionAtom) {\n const { preRelease: rangePreRelease } = rangeAtom;\n const { preRelease: versionPreRelease } = versionAtom;\n if (rangePreRelease === void 0 && !!versionPreRelease) {\n return 1;\n }\n if (!!rangePreRelease && versionPreRelease === void 0) {\n return -1;\n }\n if (rangePreRelease === void 0 && versionPreRelease === void 0) {\n return 0;\n }\n for (let i = 0, n = rangePreRelease.length; i <= n; i++) {\n const rangeElement = rangePreRelease[i];\n const versionElement = versionPreRelease[i];\n if (rangeElement === versionElement) {\n continue;\n }\n if (rangeElement === void 0 && versionElement === void 0) {\n return 0;\n }\n if (!rangeElement) {\n return 1;\n }\n if (!versionElement) {\n return -1;\n }\n return compareAtom(rangeElement, versionElement);\n }\n return 0;\n}\nfunction compareVersion(rangeAtom, versionAtom) {\n return compareAtom(rangeAtom.major, versionAtom.major) || compareAtom(rangeAtom.minor, versionAtom.minor) || compareAtom(rangeAtom.patch, versionAtom.patch) || comparePreRelease(rangeAtom, versionAtom);\n}\nfunction eq(rangeAtom, versionAtom) {\n return rangeAtom.version === versionAtom.version;\n}\nfunction compare(rangeAtom, versionAtom) {\n switch (rangeAtom.operator) {\n case \"\":\n case \"=\":\n return eq(rangeAtom, versionAtom);\n case \">\":\n return compareVersion(rangeAtom, versionAtom) < 0;\n case \">=\":\n return eq(rangeAtom, versionAtom) || compareVersion(rangeAtom, versionAtom) < 0;\n case \"<\":\n return compareVersion(rangeAtom, versionAtom) > 0;\n case \"<=\":\n return eq(rangeAtom, versionAtom) || compareVersion(rangeAtom, versionAtom) > 0;\n case void 0: {\n return true;\n }\n default:\n return false;\n }\n}\nfunction parseComparatorString(range) {\n return pipe(\n parseCarets,\n parseTildes,\n parseXRanges,\n parseStar\n )(range);\n}\nfunction parseRange(range) {\n return pipe(\n parseHyphen,\n parseComparatorTrim,\n parseTildeTrim,\n parseCaretTrim\n )(range.trim()).split(/\\s+/).join(\" \");\n}\nfunction satisfy(version, range) {\n if (!version) {\n return false;\n }\n const parsedRange = parseRange(range);\n const parsedComparator = parsedRange.split(\" \").map((rangeVersion) => parseComparatorString(rangeVersion)).join(\" \");\n const comparators = parsedComparator.split(/\\s+/).map((comparator2) => parseGTE0(comparator2));\n const extractedVersion = extractComparator(version);\n if (!extractedVersion) {\n return false;\n }\n const [\n ,\n versionOperator,\n ,\n versionMajor,\n versionMinor,\n versionPatch,\n versionPreRelease\n ] = extractedVersion;\n const versionAtom = {\n operator: versionOperator,\n version: combineVersion(\n versionMajor,\n versionMinor,\n versionPatch,\n versionPreRelease\n ),\n major: versionMajor,\n minor: versionMinor,\n patch: versionPatch,\n preRelease: versionPreRelease == null ? void 0 : versionPreRelease.split(\".\")\n };\n for (const comparator2 of comparators) {\n const extractedComparator = extractComparator(comparator2);\n if (!extractedComparator) {\n return false;\n }\n const [\n ,\n rangeOperator,\n ,\n rangeMajor,\n rangeMinor,\n rangePatch,\n rangePreRelease\n ] = extractedComparator;\n const rangeAtom = {\n operator: rangeOperator,\n version: combineVersion(\n rangeMajor,\n rangeMinor,\n rangePatch,\n rangePreRelease\n ),\n major: rangeMajor,\n minor: rangeMinor,\n patch: rangePatch,\n preRelease: rangePreRelease == null ? void 0 : rangePreRelease.split(\".\")\n };\n if (!compare(rangeAtom, versionAtom)) {\n return false;\n }\n }\n return true;\n}\nexport {\n satisfy\n};\n"],"names":[],"mappings":"AAAA,MAAM,eAAe,GAAG,eAAe;AACvC,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,eAAe,CAAC,MAAM,EAAE,eAAe,CAAC,IAAI,CAAC;AACrE,MAAM,iBAAiB,GAAG,aAAa;AACvC,MAAM,sBAAsB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,KAAK;AAClB,IAAI;AACJ,EAAE;AACF,EAAE,OAAO,IAAI;AACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
@@ -1,8 +1,8 @@
1
- import { importShared } from '../../__federation_fn_import-DsXcpNlB.js';
1
+ import { importShared } from '../../__federation_fn_import-pxYUpmb_.js';
2
2
  import { j as jsxRuntimeExports } from '../../jsx-runtime-XI9uIe3W.js';
3
- import { F as FeatureUtils, M as ModelUtils, H as modelMergerDefinitionDiffConfig, C as withPlaceholderSlots, c as createFieldMapSpec } from '../../model-merger-BwRNqcBu.js';
4
- import { c as create } from '../../react-B9vhIZMy.js';
5
- import { u as useFormState, a as useForm } from '../../index.esm-B4RpOlq_.js';
3
+ import { F as FeatureUtils, M as ModelUtils, I as modelMergerDefinitionDiffConfig, E as withPlaceholderSlots, c as createFieldMapSpec } from '../../model-merger-CdjliK9v.js';
4
+ import { c as create } from '../../react-CBhSWxr_.js';
5
+ import { u as useFormState, a as useForm } from '../../index.esm-BoRQu8mM.js';
6
6
  import { i as isEqual } from '../../isEqual-BQtm2LNT.js';
7
7
 
8
8
  function capitalize(str) {
@@ -40,7 +40,7 @@ function FeatureComboboxField({ canCreate, value, ...rest }) {
40
40
  if (!canCreate)
41
41
  return baseFeatures;
42
42
  const newFeatureName = searchQuery ? searchQuery : value;
43
- const doesNewFeatureExist = !!baseFeatures.some((option) => option.label === newFeatureName || option.value === newFeatureName);
43
+ const doesNewFeatureExist = baseFeatures.some((option) => option.label === newFeatureName || option.value === newFeatureName);
44
44
  return !doesNewFeatureExist &&
45
45
  newFeatureName &&
46
46
  FeatureUtils.validateFeatureName(newFeatureName)
@@ -75,7 +75,7 @@ function ModelComboboxField({ canCreate, value, ...rest }) {
75
75
  if (!canCreate)
76
76
  return baseModels;
77
77
  const newModelName = searchQuery ? searchQuery : value;
78
- const doesNewModelExist = !!baseModels.some((option) => option.label === newModelName || option.value === newModelName);
78
+ const doesNewModelExist = baseModels.some((option) => option.label === newModelName || option.value === newModelName);
79
79
  return !doesNewModelExist &&
80
80
  newModelName &&
81
81
  ModelUtils.validateModelName(newModelName)
@@ -332,4 +332,4 @@ function setUndefinedIfEmpty(value) {
332
332
  }
333
333
 
334
334
  export { ErrorHandlerContext, FeatureComboboxField, FeatureComboboxFieldController, ModelComboboxField, ModelComboboxFieldController, ModelMergerResultAlert, ProjectDefinitionContext, adminCrudActionWebSpec, adminCrudColumnWebSpec, adminCrudInputWebSpec, createAdminCrudActionWebConfig, createAdminCrudColumnWebConfig, createAdminCrudInputWebConfig, createModelTransformerWebConfig, modelTransformerWebSpec, setUndefinedIfEmpty, useBlockBeforeContinue, useBlockDirtyFormNavigate, useBlockUnsavedChangesNavigate, useBlockerDialog, useBlockerDialogState, useDefinitionSchema, useErrorHandler, useProjectDefinition, useResettableForm };
335
- //# sourceMappingURL=web-zqe3PPcn.js.map
335
+ //# sourceMappingURL=web-BXi2UCP-.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-BXi2UCP-.js","sources":["../../../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/string/capitalize.mjs","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-project-definition.js","../../../../../../../packages/project-builder-lib/dist/web/components/feature-combobox-field.js","../../../../../../../packages/project-builder-lib/dist/web/components/model-combobox-field.js","../../../../../../../packages/project-builder-lib/dist/web/components/model-merger-result-alert.js","../../../../../../../packages/project-builder-lib/dist/web/contexts/error-handler.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-blocker-dialog.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-block-dirty-form-navigate.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-block-unsaved-changes-navigate.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-definition-schema.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-error-handler.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-resettable-form.js","../../../../../../../packages/project-builder-lib/dist/web/specs/admin-crud-action-web-spec.js","../../../../../../../packages/project-builder-lib/dist/web/specs/admin-crud-column-web-spec.js","../../../../../../../packages/project-builder-lib/dist/web/specs/admin-crud-input-web-spec.js","../../../../../../../packages/project-builder-lib/dist/web/specs/model-transformer-web-spec.js","../../../../../../../packages/project-builder-lib/dist/web/utils/form.js"],"sourcesContent":["function capitalize(str) {\n return (str.charAt(0).toUpperCase() + str.slice(1).toLowerCase());\n}\n\nexport { capitalize };\n","import React from 'react';\nexport const ProjectDefinitionContext = React.createContext(null);\nexport function useProjectDefinition() {\n const result = React.useContext(ProjectDefinitionContext);\n if (!result) {\n throw new Error(`useProjectDefinition must be used within a <ProjectDefinitionProvider>`);\n }\n return result;\n}\n//# sourceMappingURL=use-project-definition.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { ComboboxField, useControllerMerged, } from '@baseplate-dev/ui-components';\nimport { useMemo, useState } from 'react';\nimport { FeatureUtils } from '#src/definition/index.js';\nimport { useProjectDefinition } from '../hooks/use-project-definition.js';\nfunction createCreateOption(value) {\n return {\n label: `Create \"${value}\"`,\n value,\n };\n}\nfunction FeatureComboboxField({ canCreate, value, ...rest }) {\n const { definition } = useProjectDefinition();\n const [searchQuery, setSearchQuery] = useState('');\n const featureOptions = useMemo(() => {\n const baseFeatures = definition.features.map((feature) => ({\n label: feature.name,\n value: feature.id,\n }));\n if (!canCreate)\n return baseFeatures;\n const newFeatureName = searchQuery ? searchQuery : value;\n const doesNewFeatureExist = baseFeatures.some((option) => option.label === newFeatureName || option.value === newFeatureName);\n return !doesNewFeatureExist &&\n newFeatureName &&\n FeatureUtils.validateFeatureName(newFeatureName)\n ? [...baseFeatures, createCreateOption(newFeatureName)]\n : baseFeatures;\n }, [definition.features, searchQuery, value, canCreate]);\n return (_jsx(ComboboxField, { placeholder: \"Select a feature\", ...rest, searchQuery: canCreate ? searchQuery : undefined, onSearchQueryChange: setSearchQuery, options: featureOptions, value: value }));\n}\nfunction FeatureComboboxFieldController({ name, control, ...rest }) {\n const { field, fieldState: { error }, } = useControllerMerged({ name, control }, rest);\n const restProps = rest;\n return (_jsx(FeatureComboboxField, { error: error?.message, ...restProps, ...field, value: field.value ?? null }));\n}\nexport { FeatureComboboxField, FeatureComboboxFieldController };\n//# sourceMappingURL=feature-combobox-field.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { ComboboxField, useControllerMerged, } from '@baseplate-dev/ui-components';\nimport { useMemo, useState } from 'react';\nimport { ModelUtils } from '#src/definition/index.js';\nimport { useProjectDefinition } from '../hooks/use-project-definition.js';\nfunction createCreateOption(value) {\n return {\n label: `Create \"${value}\"`,\n value,\n };\n}\nfunction ModelComboboxField({ canCreate, value, ...rest }) {\n const { definition } = useProjectDefinition();\n const [searchQuery, setSearchQuery] = useState('');\n const modelOptions = useMemo(() => {\n const baseModels = definition.models.map((model) => ({\n label: model.name,\n value: model.id,\n }));\n if (!canCreate)\n return baseModels;\n const newModelName = searchQuery ? searchQuery : value;\n const doesNewModelExist = baseModels.some((option) => option.label === newModelName || option.value === newModelName);\n return !doesNewModelExist &&\n newModelName &&\n ModelUtils.validateModelName(newModelName)\n ? [...baseModels, createCreateOption(newModelName)]\n : baseModels;\n }, [definition.models, searchQuery, value, canCreate]);\n return (_jsx(ComboboxField, { placeholder: \"Select a model\", ...rest, searchQuery: canCreate ? searchQuery : undefined, onSearchQueryChange: setSearchQuery, options: modelOptions, value: value }));\n}\nfunction ModelComboboxFieldController({ name, control, ...rest }) {\n const { field, fieldState: { error }, } = useControllerMerged({ name, control }, rest);\n const restProps = rest;\n return (_jsx(ModelComboboxField, { error: error?.message, ...restProps, ...field, value: field.value ?? null }));\n}\nexport { ModelComboboxField, ModelComboboxFieldController };\n//# sourceMappingURL=model-combobox-field.js.map","import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { Alert, AlertDescription, AlertTitle, } from '@baseplate-dev/ui-components';\nimport { capitalize } from 'es-toolkit';\nimport { modelMergerDefinitionDiffConfig } from '#src/tools/index.js';\nexport function ModelMergerResultAlert({ pendingModelChanges, }) {\n const changes = Object.values(pendingModelChanges).filter((change) => change !== undefined);\n if (changes.length === 0) {\n return (_jsxs(Alert, { variant: \"default\", children: [_jsx(AlertTitle, { children: \"Models Up to Date\" }), _jsx(AlertDescription, { children: \"All required models are already configured correctly. No changes needed.\" })] }));\n }\n return (_jsx(\"div\", { className: \"space-y-4\", children: changes.map((change) => (_jsxs(Alert, { variant: change.isNewModel ? 'default' : 'warning', children: [_jsxs(AlertTitle, { children: [change.isNewModel ? 'New Model' : 'Model Changes', \": \", change.name] }), _jsx(AlertDescription, { children: _jsxs(\"div\", { className: \"mt-2 space-y-2\", children: [change.isNewModel ? (_jsx(\"p\", { children: \"This is a new model that will be created with the following configuration:\" })) : (_jsx(\"p\", { children: \"The following changes will be applied to the model:\" })), _jsx(\"ul\", { className: \"list-disc pl-4 space-y-1\", children: Object.entries(change.changes).map(([key, value]) => {\n const field = modelMergerDefinitionDiffConfig[key];\n if (!field) {\n return null;\n }\n if (value?.length) {\n return (_jsxs(\"li\", { children: [value.length === 1 ? (capitalize(field.name)) : (_jsxs(_Fragment, { children: [_jsx(\"span\", { className: \"font-medium\", children: value.length }), ' ', field.name, \"(s)\"] })), ' ', \"will be \", field.getActionVerb(change.isNewModel)] }, key));\n }\n }) })] }) })] }, change.name))) }));\n}\n//# sourceMappingURL=model-merger-result-alert.js.map","import { createContext } from 'react';\nexport const ErrorHandlerContext = createContext(null);\n//# sourceMappingURL=error-handler.js.map","import { useEffect, useId } from 'react';\nimport { create } from 'zustand';\nexport const useBlockerDialogState = create((set) => ({\n activeBlockers: [],\n addBlocker: (options) => {\n set((state) => ({\n activeBlockers: [...state.activeBlockers, options],\n }));\n },\n removeBlocker: (id) => {\n set((state) => ({\n activeBlockers: state.activeBlockers.filter((blocker) => blocker.id !== id),\n }));\n },\n requestedBlockers: [],\n requestBlocker(options) {\n set((state) => ({\n requestedBlockers: [...state.requestedBlockers, options],\n }));\n },\n clearRequestedBlockers: () => {\n set(() => ({\n requestedBlockers: [],\n }));\n },\n}));\nexport function useBlockBeforeContinue() {\n const hasActiveBlockers = useBlockerDialogState((state) => state.activeBlockers.length > 0);\n const clearRequestedBlockers = useBlockerDialogState((state) => state.clearRequestedBlockers);\n // make sure we clear any blocker requests if we navigate away\n useEffect(() => () => {\n clearRequestedBlockers();\n }, [clearRequestedBlockers]);\n const requestBlocker = useBlockerDialogState((state) => state.requestBlocker);\n // if no blockers, continue immediately\n if (!hasActiveBlockers) {\n return ({ onContinue }) => {\n onContinue();\n };\n }\n return requestBlocker;\n}\nexport function useBlockerDialog(options) {\n const id = useId();\n const addBlocker = useBlockerDialogState((state) => state.addBlocker);\n const removeBlocker = useBlockerDialogState((state) => state.removeBlocker);\n useEffect(() => {\n if (options.disableBlock) {\n return;\n }\n addBlocker({\n disableBlock: options.disableBlock,\n title: options.title,\n content: options.content,\n buttonContinueWithoutSaveText: options.buttonContinueWithoutSaveText,\n onContinueWithoutSave: options.onContinueWithoutSave,\n buttonContinueText: options.buttonContinueText,\n onContinue: options.onContinue,\n id,\n });\n return () => {\n removeBlocker(id);\n };\n }, [\n addBlocker,\n removeBlocker,\n options.disableBlock,\n options.buttonContinueWithoutSaveText,\n options.onContinueWithoutSave,\n options.buttonContinueText,\n options.content,\n options.title,\n options.onContinue,\n id,\n ]);\n}\n//# sourceMappingURL=use-blocker-dialog.js.map","import { useBlockerDialog } from './use-blocker-dialog.js';\nexport function useBlockDirtyFormNavigate(formState, reset) {\n useBlockerDialog({\n disableBlock: !formState.isDirty,\n title: 'Unsaved Changes',\n content: 'You have unsaved changes. Are you sure you want to continue?',\n buttonContinueText: 'Discard Changes',\n onContinue: () => {\n reset();\n return true;\n },\n });\n}\n//# sourceMappingURL=use-block-dirty-form-navigate.js.map","import { toast } from '@baseplate-dev/ui-components';\nimport { flattenObject } from 'es-toolkit';\nimport { useEffect, useRef } from 'react';\nimport { useFormState } from 'react-hook-form';\nimport { useBlockerDialog } from './use-blocker-dialog.js';\nexport function useBlockUnsavedChangesNavigate({ control, reset, onSubmit, }) {\n const isDirtyRef = useRef(false);\n const formState = useFormState({ control });\n isDirtyRef.current = formState.isDirty;\n if (import.meta.env.DEV) {\n // eslint-disable-next-line react-hooks/rules-of-hooks -- only want to run this check in dev mode for performance/usability reasons\n useEffect(() => {\n if (Object.keys(formState.dirtyFields).length === 0 &&\n formState.isDirty) {\n // a bit of a hack to figure out what the issue is but OK since we only do this in dev mode\n const { _formValues, _defaultValues } = control;\n const formValueKeys = Object.keys(flattenObject(_formValues));\n const defaultValueKeys = Object.keys(flattenObject(_defaultValues));\n const missingKeys = formValueKeys.filter((key) => !defaultValueKeys.includes(key));\n toast.error(`Form is dirty but no fields are marked as dirty. This implies that there is likely a field ` +\n `is controlled but not set in defaultValues. This can be fixed by setting the default value to the field. ` +\n `Note: You will only see this error if you are running the app in dev mode. ` +\n `Missing fields: ${missingKeys.join(', ')}`);\n }\n }, [formState.dirtyFields, formState.isDirty, control]);\n }\n useBlockerDialog({\n disableBlock: !formState.isDirty,\n title: 'Unsaved Changes',\n content: 'You have unsaved changes. Do you want to save your changes?',\n buttonContinueWithoutSaveText: 'Discard Changes',\n onContinueWithoutSave: () => {\n reset();\n return true;\n },\n buttonContinueText: 'Save',\n onContinue: async () => {\n await onSubmit();\n // a bit of a hack to make sure we get the latest form state before continuing\n // there's not an easy way of figuring out if the submission was successful or not\n // so we wait for a React re-render and then check if the form is still dirty\n await new Promise((resolve) => setTimeout(resolve, 1));\n return !isDirtyRef.current;\n },\n });\n}\n//# sourceMappingURL=use-block-unsaved-changes-navigate.js.map","import { useMemo } from 'react';\nimport { withPlaceholderSlots } from '#src/schema/index.js';\nimport { useProjectDefinition } from './use-project-definition.js';\nexport function useDefinitionSchema(schemaCreator) {\n const { definitionSchemaParserContext } = useProjectDefinition();\n return useMemo(() => {\n if ('slotDefinition' in schemaCreator) {\n return withPlaceholderSlots(schemaCreator)(definitionSchemaParserContext);\n }\n return schemaCreator(definitionSchemaParserContext);\n }, [definitionSchemaParserContext, schemaCreator]);\n}\n//# sourceMappingURL=use-definition-schema.js.map","import { useContext } from 'react';\nimport { ErrorHandlerContext } from '../contexts/error-handler.js';\nexport function useErrorHandler() {\n const context = useContext(ErrorHandlerContext);\n if (!context) {\n throw new Error('useErrorHandler must be used within an ErrorHandlerContext');\n }\n return context;\n}\n//# sourceMappingURL=use-error-handler.js.map","import { toast } from '@baseplate-dev/ui-components';\nimport { isEqual } from 'es-toolkit';\nimport { useEffect, useRef } from 'react';\nimport { useForm } from 'react-hook-form';\nimport { useProjectDefinition } from './use-project-definition.js';\nexport function useResettableForm(props) {\n const formProps = useForm(props);\n const { reset, formState } = formProps;\n const { isDirty } = formState;\n const { updatedExternally } = useProjectDefinition();\n const oldValues = useRef(undefined);\n useEffect(() => {\n if (oldValues.current &&\n !isEqual(oldValues.current.oldDefaultValues, props?.defaultValues)) {\n reset(props?.defaultValues);\n if (isDirty && updatedExternally) {\n toast.warning('Contents were updated externally so form was reset!');\n }\n }\n if (!oldValues.current ||\n !isEqual(oldValues.current.oldDefaultValues, props?.defaultValues)) {\n oldValues.current = {\n oldDefaultValues: props?.defaultValues,\n };\n }\n }, [props?.defaultValues, reset, updatedExternally, isDirty]);\n return formProps;\n}\n//# sourceMappingURL=use-resettable-form.js.map","import { createFieldMapSpec } from '#src/plugins/utils/create-field-map-spec.js';\nexport function createAdminCrudActionWebConfig(config) {\n return config;\n}\n/**\n * Spec for registering admin CRUD action web configs\n */\nexport const adminCrudActionWebSpec = createFieldMapSpec('core/admin-crud-action-web', (t) => ({\n // eslint-disable-next-line @typescript-eslint/no-explicit-any -- plugins register varying action types at runtime\n actions: t.namedArrayToMap(),\n}));\n//# sourceMappingURL=admin-crud-action-web-spec.js.map","import { createFieldMapSpec } from '#src/plugins/utils/create-field-map-spec.js';\nexport function createAdminCrudColumnWebConfig(config) {\n return config;\n}\n/**\n * Spec for registering admin CRUD column web configs\n */\nexport const adminCrudColumnWebSpec = createFieldMapSpec('core/admin-crud-column-web', (t) => ({\n // eslint-disable-next-line @typescript-eslint/no-explicit-any -- plugins register varying column types at runtime\n columns: t.namedArrayToMap(),\n}));\n//# sourceMappingURL=admin-crud-column-web-spec.js.map","import { createFieldMapSpec } from '#src/plugins/utils/create-field-map-spec.js';\nexport function createAdminCrudInputWebConfig(config) {\n return config;\n}\n/**\n * Spec for registering admin CRUD input web configs\n */\nexport const adminCrudInputWebSpec = createFieldMapSpec('core/admin-crud-input-web', (t) => ({\n // eslint-disable-next-line @typescript-eslint/no-explicit-any -- plugins register varying input types at runtime\n inputs: t.namedArrayToMap(),\n}));\n//# sourceMappingURL=admin-crud-input-web-spec.js.map","import { createFieldMapSpec } from '#src/plugins/utils/create-field-map-spec.js';\nexport function createModelTransformerWebConfig(config) {\n return config;\n}\n/**\n * Spec for adding web config for transformers\n */\nexport const modelTransformerWebSpec = createFieldMapSpec('core/model-transformer-web', (t) => ({\n // eslint-disable-next-line @typescript-eslint/no-explicit-any -- plugins register varying transformer types at runtime\n transformers: t.namedArrayToMap(),\n}), {\n use: (values) => ({\n getWebConfigOrThrow(name) {\n const transformer = values.transformers.get(name);\n if (!transformer) {\n throw new Error(`Transformer ${name} not found`);\n }\n return transformer;\n },\n getWebConfigs: () => [...values.transformers.values()],\n }),\n});\n//# sourceMappingURL=model-transformer-web-spec.js.map","export function setUndefinedIfEmpty(value) {\n if (value === '')\n return undefined;\n return value;\n}\n//# sourceMappingURL=form.js.map"],"names":["ComboboxField","useControllerMerged","useMemo","useState","createCreateOption","_jsx","_jsxs","_Fragment","useEffect","toast","useRef"],"mappings":";;;;;;;AAAA,SAAS,UAAU,CAAC,GAAG,EAAE;AACzB,IAAI,QAAQ,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;AACpE;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