@baseplate-dev/plugin-auth 1.0.5 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (763) hide show
  1. package/dist/auth/core/common.d.ts.map +1 -1
  2. package/dist/auth/core/common.js +3 -7
  3. package/dist/auth/core/common.js.map +1 -1
  4. package/dist/auth/core/components/auth-definition-editor.d.ts.map +1 -1
  5. package/dist/auth/core/components/auth-definition-editor.js +44 -30
  6. package/dist/auth/core/components/auth-definition-editor.js.map +1 -1
  7. package/dist/{common/roles → auth/core}/components/role-editor-form/role-dialog.d.ts +1 -1
  8. package/dist/auth/core/components/role-editor-form/role-dialog.d.ts.map +1 -0
  9. package/dist/{common/roles → auth/core}/components/role-editor-form/role-dialog.js +1 -1
  10. package/dist/auth/core/components/role-editor-form/role-dialog.js.map +1 -0
  11. package/dist/auth/core/components/role-editor-form/role-editor-form.d.ts +10 -0
  12. package/dist/auth/core/components/role-editor-form/role-editor-form.d.ts.map +1 -0
  13. package/dist/{common/roles → auth/core}/components/role-editor-form/role-editor-form.js +6 -3
  14. package/dist/auth/core/components/role-editor-form/role-editor-form.js.map +1 -0
  15. package/dist/auth/core/node.d.ts.map +1 -1
  16. package/dist/auth/core/node.js +24 -43
  17. package/dist/auth/core/node.js.map +1 -1
  18. package/dist/auth/core/schema/plugin-definition.d.ts +3 -28
  19. package/dist/auth/core/schema/plugin-definition.d.ts.map +1 -1
  20. package/dist/auth/core/schema/plugin-definition.js +5 -20
  21. package/dist/auth/core/schema/plugin-definition.js.map +1 -1
  22. package/dist/auth/core/schema/roles/constants.d.ts.map +1 -0
  23. package/dist/auth/core/schema/roles/constants.js.map +1 -0
  24. package/dist/auth/core/schema/roles/index.d.ts +3 -0
  25. package/dist/auth/core/schema/roles/index.d.ts.map +1 -0
  26. package/dist/auth/core/schema/roles/index.js +3 -0
  27. package/dist/auth/core/schema/roles/index.js.map +1 -0
  28. package/dist/auth/core/schema/roles/schema.d.ts.map +1 -0
  29. package/dist/auth/core/schema/roles/schema.js.map +1 -0
  30. package/dist/auth/core/web.js +2 -2
  31. package/dist/auth/core/web.js.map +1 -1
  32. package/dist/auth/index.d.ts +1 -1
  33. package/dist/auth/index.d.ts.map +1 -1
  34. package/dist/auth/index.js +1 -1
  35. package/dist/auth/index.js.map +1 -1
  36. package/dist/auth/plugin.json +8 -0
  37. package/dist/auth/utils/get-auth-plugin-definition.d.ts +9 -0
  38. package/dist/auth/utils/get-auth-plugin-definition.d.ts.map +1 -0
  39. package/dist/auth/utils/get-auth-plugin-definition.js +10 -0
  40. package/dist/auth/utils/get-auth-plugin-definition.js.map +1 -0
  41. package/dist/auth/utils/index.d.ts +2 -0
  42. package/dist/auth/utils/index.d.ts.map +1 -0
  43. package/dist/auth/utils/index.js +2 -0
  44. package/dist/auth/utils/index.js.map +1 -0
  45. package/dist/auth0/core/common.d.ts +2 -1
  46. package/dist/auth0/core/common.d.ts.map +1 -1
  47. package/dist/auth0/core/common.js +7 -11
  48. package/dist/auth0/core/common.js.map +1 -1
  49. package/dist/auth0/core/components/auth0-definition-editor.d.ts +5 -0
  50. package/dist/auth0/core/components/auth0-definition-editor.d.ts.map +1 -0
  51. package/dist/auth0/core/components/auth0-definition-editor.js +54 -0
  52. package/dist/auth0/core/components/auth0-definition-editor.js.map +1 -0
  53. package/dist/auth0/core/node.d.ts.map +1 -1
  54. package/dist/auth0/core/node.js +23 -30
  55. package/dist/auth0/core/node.js.map +1 -1
  56. package/dist/auth0/core/schema/models.d.ts +2 -1
  57. package/dist/auth0/core/schema/models.d.ts.map +1 -1
  58. package/dist/auth0/core/schema/models.js +1 -1
  59. package/dist/auth0/core/schema/models.js.map +1 -1
  60. package/dist/auth0/core/schema/plugin-definition.d.ts +0 -61
  61. package/dist/auth0/core/schema/plugin-definition.d.ts.map +1 -1
  62. package/dist/auth0/core/schema/plugin-definition.js +1 -7
  63. package/dist/auth0/core/schema/plugin-definition.js.map +1 -1
  64. package/dist/auth0/core/web.js +3 -3
  65. package/dist/auth0/core/web.js.map +1 -1
  66. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts +3 -0
  67. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts.map +1 -1
  68. package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts +6 -0
  69. package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts.map +1 -1
  70. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts +3 -0
  71. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts.map +1 -1
  72. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts +3 -0
  73. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts.map +1 -1
  74. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts +4 -0
  75. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts.map +1 -1
  76. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +7 -1
  77. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +1 -1
  78. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts +6 -1
  79. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts.map +1 -1
  80. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts +3 -0
  81. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts.map +1 -1
  82. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js +1 -0
  83. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js.map +1 -1
  84. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts +6 -2
  85. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts.map +1 -1
  86. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js +6 -2
  87. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js.map +1 -1
  88. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-session.ts +14 -1
  89. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts +2 -0
  90. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts.map +1 -1
  91. package/dist/auth0/{metadata.json → plugin.json} +2 -1
  92. package/dist/common/components/auth-config-tabs.d.ts +2 -0
  93. package/dist/common/components/auth-config-tabs.d.ts.map +1 -0
  94. package/dist/common/components/auth-config-tabs.js +21 -0
  95. package/dist/common/components/auth-config-tabs.js.map +1 -0
  96. package/dist/index.d.ts +1 -1
  97. package/dist/index.js +1 -1
  98. package/dist/index.js.map +1 -1
  99. package/dist/local-auth/core/common.d.ts +8 -0
  100. package/dist/local-auth/core/common.d.ts.map +1 -0
  101. package/dist/local-auth/core/common.js +22 -0
  102. package/dist/local-auth/core/common.js.map +1 -0
  103. package/dist/local-auth/core/components/local-auth-definition-editor.d.ts +5 -0
  104. package/dist/local-auth/core/components/local-auth-definition-editor.d.ts.map +1 -0
  105. package/dist/local-auth/core/components/local-auth-definition-editor.js +62 -0
  106. package/dist/local-auth/core/components/local-auth-definition-editor.js.map +1 -0
  107. package/dist/{auth → local-auth}/core/generators/auth-apollo/auth-apollo.generator.d.ts +1 -15
  108. package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts.map +1 -0
  109. package/dist/{auth → local-auth}/core/generators/auth-apollo/auth-apollo.generator.js +2 -6
  110. package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.js.map +1 -0
  111. package/dist/local-auth/core/generators/auth-apollo/index.d.ts.map +1 -0
  112. package/dist/local-auth/core/generators/auth-apollo/index.js.map +1 -0
  113. package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.d.ts.map +1 -0
  114. package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.js.map +1 -0
  115. package/dist/{auth → local-auth}/core/generators/auth-email-password/auth-email-password.generator.d.ts +7 -6
  116. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +1 -0
  117. package/dist/{auth → local-auth}/core/generators/auth-email-password/auth-email-password.generator.js +2 -2
  118. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js.map +1 -0
  119. package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/index.d.ts +8 -7
  120. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts.map +1 -0
  121. package/dist/local-auth/core/generators/auth-email-password/generated/index.js +11 -0
  122. package/dist/local-auth/core/generators/auth-email-password/generated/index.js.map +1 -0
  123. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts +14 -0
  124. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +1 -0
  125. package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/template-paths.js +7 -7
  126. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js.map +1 -0
  127. package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/template-renderers.d.ts +7 -7
  128. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +1 -0
  129. package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/template-renderers.js +12 -12
  130. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js.map +1 -0
  131. package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/ts-import-providers.d.ts +5 -2
  132. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +1 -0
  133. package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/ts-import-providers.js +7 -5
  134. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +1 -0
  135. package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/typed-templates.d.ts +1 -1
  136. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +1 -0
  137. package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/typed-templates.js +3 -2
  138. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js.map +1 -0
  139. package/dist/local-auth/core/generators/auth-email-password/index.d.ts.map +1 -0
  140. package/dist/local-auth/core/generators/auth-email-password/index.js.map +1 -0
  141. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +1 -0
  142. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +1 -0
  143. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts.map +1 -0
  144. package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +2 -2
  145. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js.map +1 -0
  146. package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +2 -2
  147. package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts +9 -1
  148. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +1 -0
  149. package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/services/user-password.service.js +6 -2
  150. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +1 -0
  151. package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/services/user-password.service.ts +17 -4
  152. package/dist/{auth → local-auth}/core/generators/auth-hooks/auth-hooks.generator.d.ts +12 -20
  153. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +1 -0
  154. package/dist/{auth → local-auth}/core/generators/auth-hooks/auth-hooks.generator.js +2 -2
  155. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js.map +1 -0
  156. package/dist/{auth → local-auth}/core/generators/auth-hooks/generated/index.d.ts +17 -54
  157. package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts.map +1 -0
  158. package/dist/local-auth/core/generators/auth-hooks/generated/index.js +11 -0
  159. package/dist/local-auth/core/generators/auth-hooks/generated/index.js.map +1 -0
  160. package/dist/{auth → local-auth}/core/generators/auth-hooks/generated/template-paths.d.ts +4 -4
  161. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +1 -0
  162. package/dist/{auth → local-auth}/core/generators/auth-hooks/generated/template-paths.js +9 -7
  163. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js.map +1 -0
  164. package/dist/{auth → local-auth}/core/generators/auth-hooks/generated/template-renderers.d.ts +9 -23
  165. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +1 -0
  166. package/dist/{auth → local-auth}/core/generators/auth-hooks/generated/template-renderers.js +15 -13
  167. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js.map +1 -0
  168. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +31 -0
  169. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +1 -0
  170. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js +38 -0
  171. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +1 -0
  172. package/dist/{auth → local-auth}/core/generators/auth-hooks/generated/typed-templates.d.ts +7 -65
  173. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +1 -0
  174. package/dist/{auth → local-auth}/core/generators/auth-hooks/generated/typed-templates.js +14 -4
  175. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js.map +1 -0
  176. package/dist/local-auth/core/generators/auth-hooks/index.d.ts +4 -0
  177. package/dist/local-auth/core/generators/auth-hooks/index.d.ts.map +1 -0
  178. package/dist/local-auth/core/generators/auth-hooks/index.js +3 -0
  179. package/dist/local-auth/core/generators/auth-hooks/index.js.map +1 -0
  180. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts.map +1 -0
  181. package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-current-user.js +4 -4
  182. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js.map +1 -0
  183. package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-current-user.ts +4 -4
  184. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +1 -0
  185. package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +3 -7
  186. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +1 -0
  187. package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +3 -7
  188. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +15 -0
  189. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +1 -0
  190. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js +16 -0
  191. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +1 -0
  192. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +32 -0
  193. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +1 -0
  194. package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js +1 -1
  195. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +1 -0
  196. package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.ts +1 -1
  197. package/dist/{auth → local-auth}/core/generators/auth-module/auth-module.generator.d.ts +12 -6
  198. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -0
  199. package/dist/{auth → local-auth}/core/generators/auth-module/auth-module.generator.js +3 -3
  200. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -0
  201. package/dist/{auth → local-auth}/core/generators/auth-module/generated/index.d.ts +38 -8
  202. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -0
  203. package/dist/local-auth/core/generators/auth-module/generated/index.js +11 -0
  204. package/dist/local-auth/core/generators/auth-module/generated/index.js.map +1 -0
  205. package/dist/{auth → local-auth}/core/generators/auth-module/generated/template-paths.d.ts +5 -4
  206. package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts.map +1 -0
  207. package/dist/{auth → local-auth}/core/generators/auth-module/generated/template-paths.js +10 -7
  208. package/dist/local-auth/core/generators/auth-module/generated/template-paths.js.map +1 -0
  209. package/dist/{auth → local-auth}/core/generators/auth-module/generated/template-renderers.d.ts +16 -10
  210. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts.map +1 -0
  211. package/dist/{auth → local-auth}/core/generators/auth-module/generated/template-renderers.js +19 -16
  212. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js.map +1 -0
  213. package/dist/{auth → local-auth}/core/generators/auth-module/generated/ts-import-providers.d.ts +2 -2
  214. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts.map +1 -0
  215. package/dist/{auth → local-auth}/core/generators/auth-module/generated/ts-import-providers.js +5 -5
  216. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js.map +1 -0
  217. package/dist/{auth → local-auth}/core/generators/auth-module/generated/typed-templates.d.ts +45 -3
  218. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -0
  219. package/dist/{auth → local-auth}/core/generators/auth-module/generated/typed-templates.js +19 -2
  220. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +1 -0
  221. package/dist/local-auth/core/generators/auth-module/index.d.ts.map +1 -0
  222. package/dist/local-auth/core/generators/auth-module/index.js.map +1 -0
  223. package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts.map +1 -0
  224. package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.js.map +1 -0
  225. package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.d.ts +8 -0
  226. package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.d.ts.map +1 -0
  227. package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.js +16 -0
  228. package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.js.map +1 -0
  229. package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.ts +21 -0
  230. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts.map +1 -0
  231. package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js +2 -0
  232. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js.map +1 -0
  233. package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.ts +2 -0
  234. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts.map +1 -0
  235. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +1 -0
  236. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts.map +1 -0
  237. package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.queries.js +1 -0
  238. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +1 -0
  239. package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.queries.ts +1 -0
  240. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts.map +1 -0
  241. package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/services/user-session.service.js +11 -1
  242. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js.map +1 -0
  243. package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/services/user-session.service.ts +13 -1
  244. package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts.map +1 -0
  245. package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.js.map +1 -0
  246. package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.d.ts.map +1 -0
  247. package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.js.map +1 -0
  248. package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts.map +1 -0
  249. package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.js.map +1 -0
  250. package/dist/{auth → local-auth}/core/generators/auth-routes/auth-routes.generator.d.ts +1 -15
  251. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -0
  252. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +1 -0
  253. package/dist/{auth → local-auth}/core/generators/auth-routes/generated/index.d.ts +3 -45
  254. package/dist/{auth → local-auth}/core/generators/auth-routes/generated/index.d.ts.map +1 -1
  255. package/dist/local-auth/core/generators/auth-routes/generated/index.js.map +1 -0
  256. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts.map +1 -0
  257. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js.map +1 -0
  258. package/dist/{auth → local-auth}/core/generators/auth-routes/generated/template-renderers.d.ts +1 -15
  259. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -0
  260. package/dist/{auth → local-auth}/core/generators/auth-routes/generated/template-renderers.js +1 -1
  261. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +1 -0
  262. package/dist/{auth → local-auth}/core/generators/auth-routes/generated/typed-templates.d.ts +4 -60
  263. package/dist/{auth → local-auth}/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -1
  264. package/dist/{auth → local-auth}/core/generators/auth-routes/generated/typed-templates.js +1 -1
  265. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +1 -0
  266. package/dist/local-auth/core/generators/auth-routes/index.d.ts.map +1 -0
  267. package/dist/local-auth/core/generators/auth-routes/index.js.map +1 -0
  268. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts +15 -0
  269. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +1 -0
  270. package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/login.js +2 -3
  271. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +1 -0
  272. package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/login.tsx +2 -3
  273. package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/queries.gql +2 -0
  274. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts +15 -0
  275. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +1 -0
  276. package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/register.js +2 -3
  277. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -0
  278. package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/register.tsx +2 -3
  279. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts +2 -0
  280. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts.map +1 -0
  281. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.js.map +1 -0
  282. package/dist/{auth → local-auth}/core/generators/index.d.ts +1 -0
  283. package/dist/local-auth/core/generators/index.d.ts.map +1 -0
  284. package/dist/{auth → local-auth}/core/generators/index.js +1 -0
  285. package/dist/local-auth/core/generators/index.js.map +1 -0
  286. package/dist/local-auth/core/generators/react-auth/index.d.ts.map +1 -0
  287. package/dist/local-auth/core/generators/react-auth/index.js.map +1 -0
  288. package/dist/local-auth/core/generators/react-auth/react-auth.generator.d.ts.map +1 -0
  289. package/dist/{auth → local-auth}/core/generators/react-auth/react-auth.generator.js +1 -1
  290. package/dist/local-auth/core/generators/react-auth/react-auth.generator.js.map +1 -0
  291. package/dist/local-auth/core/generators/react-session/generated/index.d.ts +345 -0
  292. package/dist/local-auth/core/generators/react-session/generated/index.d.ts.map +1 -0
  293. package/dist/local-auth/core/generators/react-session/generated/index.js +11 -0
  294. package/dist/{auth/core/generators/auth-email-password → local-auth/core/generators/react-session}/generated/index.js.map +1 -1
  295. package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts +14 -0
  296. package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts.map +1 -0
  297. package/dist/local-auth/core/generators/react-session/generated/template-paths.js +26 -0
  298. package/dist/local-auth/core/generators/react-session/generated/template-paths.js.map +1 -0
  299. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +173 -0
  300. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts.map +1 -0
  301. package/dist/local-auth/core/generators/react-session/generated/template-renderers.js +58 -0
  302. package/dist/local-auth/core/generators/react-session/generated/template-renderers.js.map +1 -0
  303. package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts +22 -0
  304. package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts.map +1 -0
  305. package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js +30 -0
  306. package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js.map +1 -0
  307. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +324 -0
  308. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts.map +1 -0
  309. package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +46 -0
  310. package/dist/local-auth/core/generators/react-session/generated/typed-templates.js.map +1 -0
  311. package/dist/local-auth/core/generators/react-session/index.d.ts.map +1 -0
  312. package/dist/local-auth/core/generators/react-session/index.js.map +1 -0
  313. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +189 -0
  314. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts.map +1 -0
  315. package/dist/{auth → local-auth}/core/generators/react-session/react-session.generator.js +6 -11
  316. package/dist/local-auth/core/generators/react-session/react-session.generator.js.map +1 -0
  317. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +1 -0
  318. package/dist/{auth/core/generators/react-session/templates/src/app/user-session-check.gql → local-auth/core/generators/react-session/templates/src/app/user-session-provider.gql} +1 -0
  319. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js +48 -0
  320. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +1 -0
  321. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +73 -0
  322. package/dist/{auth → local-auth}/core/generators/react-session/templates/src/services/user-session-client.d.ts +10 -31
  323. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.d.ts.map +1 -0
  324. package/dist/{auth → local-auth}/core/generators/react-session/templates/src/services/user-session-client.js +9 -25
  325. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js.map +1 -0
  326. package/dist/{auth → local-auth}/core/generators/react-session/templates/src/services/user-session-client.ts +15 -52
  327. package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +75 -0
  328. package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts.map +1 -0
  329. package/dist/local-auth/core/generators/seed-initial-user/generated/index.js +11 -0
  330. package/dist/local-auth/core/generators/seed-initial-user/generated/index.js.map +1 -0
  331. package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.d.ts +12 -0
  332. package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.d.ts.map +1 -0
  333. package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.js +24 -0
  334. package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.js.map +1 -0
  335. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts +38 -0
  336. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts.map +1 -0
  337. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.js +44 -0
  338. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.js.map +1 -0
  339. package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.d.ts +19 -0
  340. package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.d.ts.map +1 -0
  341. package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.js +26 -0
  342. package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.js.map +1 -0
  343. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts +27 -0
  344. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts.map +1 -0
  345. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js +20 -0
  346. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js.map +1 -0
  347. package/dist/local-auth/core/generators/seed-initial-user/index.d.ts +4 -0
  348. package/dist/local-auth/core/generators/seed-initial-user/index.d.ts.map +1 -0
  349. package/dist/local-auth/core/generators/seed-initial-user/index.js +3 -0
  350. package/dist/local-auth/core/generators/seed-initial-user/index.js.map +1 -0
  351. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts +46 -0
  352. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts.map +1 -0
  353. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js +57 -0
  354. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js.map +1 -0
  355. package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.d.ts +3 -0
  356. package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.d.ts.map +1 -0
  357. package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js +32 -0
  358. package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js.map +1 -0
  359. package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.ts +43 -0
  360. package/dist/local-auth/core/index.d.ts.map +1 -0
  361. package/dist/local-auth/core/index.js.map +1 -0
  362. package/dist/local-auth/core/node.d.ts +5 -0
  363. package/dist/local-auth/core/node.d.ts.map +1 -0
  364. package/dist/local-auth/core/node.js +59 -0
  365. package/dist/local-auth/core/node.js.map +1 -0
  366. package/dist/local-auth/core/schema/models.d.ts +10 -0
  367. package/dist/local-auth/core/schema/models.d.ts.map +1 -0
  368. package/dist/{auth → local-auth}/core/schema/models.js +1 -1
  369. package/dist/local-auth/core/schema/models.js.map +1 -0
  370. package/dist/local-auth/core/schema/plugin-definition.d.ts +40 -0
  371. package/dist/local-auth/core/schema/plugin-definition.d.ts.map +1 -0
  372. package/dist/local-auth/core/schema/plugin-definition.js +27 -0
  373. package/dist/local-auth/core/schema/plugin-definition.js.map +1 -0
  374. package/dist/local-auth/core/web.d.ts +6 -0
  375. package/dist/local-auth/core/web.d.ts.map +1 -0
  376. package/dist/local-auth/core/web.js +14 -0
  377. package/dist/local-auth/core/web.js.map +1 -0
  378. package/dist/local-auth/index.d.ts +2 -0
  379. package/dist/local-auth/index.d.ts.map +1 -0
  380. package/dist/local-auth/index.js +2 -0
  381. package/dist/local-auth/index.js.map +1 -0
  382. package/dist/{auth/metadata.json → local-auth/plugin.json} +4 -3
  383. package/dist/local-auth/static/icon.svg +1 -0
  384. package/dist/placeholder-auth/core/common.d.ts +1 -1
  385. package/dist/placeholder-auth/core/common.d.ts.map +1 -1
  386. package/dist/placeholder-auth/core/common.js +6 -10
  387. package/dist/placeholder-auth/core/common.js.map +1 -1
  388. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.d.ts.map +1 -1
  389. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js +12 -16
  390. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js.map +1 -1
  391. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts +3 -0
  392. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts.map +1 -1
  393. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts +3 -0
  394. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts.map +1 -1
  395. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js +1 -0
  396. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js.map +1 -1
  397. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts.map +1 -1
  398. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +5 -1
  399. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js.map +1 -1
  400. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +3 -0
  401. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts.map +1 -1
  402. package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts +2 -0
  403. package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts.map +1 -1
  404. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts +4 -0
  405. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts.map +1 -1
  406. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts +2 -0
  407. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts.map +1 -1
  408. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts +2 -0
  409. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts.map +1 -1
  410. package/dist/placeholder-auth/core/node.d.ts.map +1 -1
  411. package/dist/placeholder-auth/core/node.js +11 -22
  412. package/dist/placeholder-auth/core/node.js.map +1 -1
  413. package/dist/placeholder-auth/core/schema/models.d.ts +2 -1
  414. package/dist/placeholder-auth/core/schema/models.d.ts.map +1 -1
  415. package/dist/placeholder-auth/core/schema/models.js +1 -1
  416. package/dist/placeholder-auth/core/schema/models.js.map +1 -1
  417. package/dist/placeholder-auth/core/schema/plugin-definition.d.ts +0 -61
  418. package/dist/placeholder-auth/core/schema/plugin-definition.d.ts.map +1 -1
  419. package/dist/placeholder-auth/core/schema/plugin-definition.js +1 -7
  420. package/dist/placeholder-auth/core/schema/plugin-definition.js.map +1 -1
  421. package/dist/placeholder-auth/core/web.js +2 -2
  422. package/dist/placeholder-auth/core/web.js.map +1 -1
  423. package/dist/placeholder-auth/{metadata.json → plugin.json} +2 -1
  424. package/dist/web/assets/__federation_expose_auth0CoreCommon-lV5QSzvf.js +49 -0
  425. package/dist/web/assets/__federation_expose_auth0CoreCommon-lV5QSzvf.js.map +1 -0
  426. package/dist/web/assets/{__federation_expose_auth0CoreWeb-VnxlQY01.js → __federation_expose_auth0CoreWeb-5F0rTNis.js} +51 -78
  427. package/dist/web/assets/__federation_expose_auth0CoreWeb-5F0rTNis.js.map +1 -0
  428. package/dist/web/assets/__federation_expose_authCoreCommon-C5cVmNCH.js +29 -0
  429. package/dist/web/assets/__federation_expose_authCoreCommon-C5cVmNCH.js.map +1 -0
  430. package/dist/web/assets/__federation_expose_authCoreWeb-CJxY8hZC.js +439 -0
  431. package/dist/web/assets/__federation_expose_authCoreWeb-CJxY8hZC.js.map +1 -0
  432. package/dist/web/assets/__federation_expose_local-authCoreCommon-Dr_ngV2l.js +32 -0
  433. package/dist/web/assets/__federation_expose_local-authCoreCommon-Dr_ngV2l.js.map +1 -0
  434. package/dist/web/assets/{__federation_expose_authCoreWeb-CGWfg0Fb.js → __federation_expose_local-authCoreWeb-B5iBudnh.js} +109 -108
  435. package/dist/web/assets/__federation_expose_local-authCoreWeb-B5iBudnh.js.map +1 -0
  436. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-l8knzO7I.js +32 -0
  437. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-l8knzO7I.js.map +1 -0
  438. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-BunerD5g.js → __federation_expose_placeholder-authCoreWeb-DbI_bZsk.js} +50 -74
  439. package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-DbI_bZsk.js.map +1 -0
  440. package/dist/web/assets/{__federation_fn_import-BDimcZUI.js → __federation_fn_import-DReOsou_.js} +2 -2
  441. package/dist/web/assets/{__federation_fn_import-BDimcZUI.js.map → __federation_fn_import-DReOsou_.js.map} +1 -1
  442. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-oq9zm9eN.js → web-BlPKO2K7.js} +7 -5
  443. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-oq9zm9eN.js.map → web-BlPKO2K7.js.map} +1 -1
  444. package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-DqkNAXn3.js → project-builder-lib-CGEZr0YI.js} +470 -814
  445. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CGEZr0YI.js.map +1 -0
  446. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-BxXhpJ04.js → ui-components-RO_rk4f0.js} +2162 -1954
  447. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-RO_rk4f0.js.map +1 -0
  448. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-BbU_EX7_.js +1544 -0
  449. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-BbU_EX7_.js.map +1 -0
  450. package/dist/web/assets/__federation_shared_@tanstack/react-router-CNTPQj7N.js +6138 -0
  451. package/dist/web/assets/__federation_shared_@tanstack/react-router-CNTPQj7N.js.map +1 -0
  452. package/dist/web/assets/__federation_shared_react-CJ2OfFKA.js +8 -0
  453. package/dist/web/assets/{__federation_shared_react-uocnGSER.js.map → __federation_shared_react-CJ2OfFKA.js.map} +1 -1
  454. package/dist/web/assets/{__federation_shared_react-dom-Bwq4pLax.js → __federation_shared_react-dom-B4vgf5Ln.js} +3 -2
  455. package/dist/web/assets/{__federation_shared_react-dom-Bwq4pLax.js.map → __federation_shared_react-dom-B4vgf5Ln.js.map} +1 -1
  456. package/dist/web/assets/_commonjsHelpers-B85MJLTf.js +6 -0
  457. package/dist/web/assets/_commonjsHelpers-B85MJLTf.js.map +1 -0
  458. package/dist/web/assets/get-auth-plugin-definition-CQ6mWMZk.js +13 -0
  459. package/dist/web/assets/get-auth-plugin-definition-CQ6mWMZk.js.map +1 -0
  460. package/dist/web/assets/{index-D4PxvJ0z.js → index-BkOJzK_m.js} +3 -3
  461. package/dist/web/assets/{index-D4PxvJ0z.js.map → index-BkOJzK_m.js.map} +1 -1
  462. package/dist/web/assets/{index-B1hOKVPw.js → index-DUwCgkeV.js} +2 -6
  463. package/dist/web/assets/{index-B1hOKVPw.js.map → index-DUwCgkeV.js.map} +1 -1
  464. package/dist/web/assets/{index.esm-qm5h2Bmg.js → index.esm-UnRzlLlr.js} +3 -61
  465. package/dist/web/assets/index.esm-UnRzlLlr.js.map +1 -0
  466. package/dist/web/assets/isEqual-DAXqKRba.js +242 -0
  467. package/dist/web/assets/isEqual-DAXqKRba.js.map +1 -0
  468. package/dist/web/assets/jsx-runtime-XI9uIe3W.js +60 -0
  469. package/dist/web/assets/jsx-runtime-XI9uIe3W.js.map +1 -0
  470. package/dist/web/assets/{model-merger-CA2yaVFd.js → model-merger-BLEOsCIp.js} +46 -334
  471. package/dist/web/assets/model-merger-BLEOsCIp.js.map +1 -0
  472. package/dist/web/assets/plugin-definition-C935Xf1h.js +19 -0
  473. package/dist/web/assets/plugin-definition-C935Xf1h.js.map +1 -0
  474. package/dist/web/assets/plugin-definition-ChUKIqUg.js +40 -0
  475. package/dist/web/assets/plugin-definition-ChUKIqUg.js.map +1 -0
  476. package/dist/web/assets/plugin-definition-DH4QyCfv.js +86 -0
  477. package/dist/web/assets/plugin-definition-DH4QyCfv.js.map +1 -0
  478. package/dist/web/assets/plugin-definition-PCHsX2lR.js +19 -0
  479. package/dist/web/assets/plugin-definition-PCHsX2lR.js.map +1 -0
  480. package/dist/web/assets/{react-BLL9qrdY.js → react-ecPihYHK.js} +2 -2
  481. package/dist/web/assets/{react-BLL9qrdY.js.map → react-ecPihYHK.js.map} +1 -1
  482. package/dist/web/assets/remoteEntry.js +18 -12
  483. package/dist/web/assets/remoteEntry.js.map +1 -1
  484. package/dist/web/assets/sortBy-BPH_zRB8.js +34 -0
  485. package/dist/web/assets/sortBy-BPH_zRB8.js.map +1 -0
  486. package/dist/web/assets/{style-ZUYizAnf.css → style-BhUCMIWI.css} +51 -6
  487. package/dist/web/assets/styles-I6mpdfRm.js +58 -0
  488. package/dist/web/assets/styles-I6mpdfRm.js.map +1 -0
  489. package/dist/web/index.html +1 -1
  490. package/package.json +17 -16
  491. package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.d.ts.map +0 -1
  492. package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.js.map +0 -1
  493. package/dist/auth/core/generators/auth-apollo/index.d.ts.map +0 -1
  494. package/dist/auth/core/generators/auth-apollo/index.js.map +0 -1
  495. package/dist/auth/core/generators/auth-apollo/templates/session-error-link.d.ts.map +0 -1
  496. package/dist/auth/core/generators/auth-apollo/templates/session-error-link.js.map +0 -1
  497. package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +0 -1
  498. package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.js.map +0 -1
  499. package/dist/auth/core/generators/auth-email-password/generated/index.d.ts.map +0 -1
  500. package/dist/auth/core/generators/auth-email-password/generated/index.js +0 -11
  501. package/dist/auth/core/generators/auth-email-password/generated/template-paths.d.ts +0 -14
  502. package/dist/auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +0 -1
  503. package/dist/auth/core/generators/auth-email-password/generated/template-paths.js.map +0 -1
  504. package/dist/auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +0 -1
  505. package/dist/auth/core/generators/auth-email-password/generated/template-renderers.js.map +0 -1
  506. package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +0 -1
  507. package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +0 -1
  508. package/dist/auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +0 -1
  509. package/dist/auth/core/generators/auth-email-password/generated/typed-templates.js.map +0 -1
  510. package/dist/auth/core/generators/auth-email-password/index.d.ts.map +0 -1
  511. package/dist/auth/core/generators/auth-email-password/index.js.map +0 -1
  512. package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +0 -1
  513. package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +0 -1
  514. package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts.map +0 -1
  515. package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js.map +0 -1
  516. package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +0 -1
  517. package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +0 -1
  518. package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +0 -1
  519. package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.js.map +0 -1
  520. package/dist/auth/core/generators/auth-hooks/generated/index.d.ts.map +0 -1
  521. package/dist/auth/core/generators/auth-hooks/generated/index.js +0 -11
  522. package/dist/auth/core/generators/auth-hooks/generated/index.js.map +0 -1
  523. package/dist/auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +0 -1
  524. package/dist/auth/core/generators/auth-hooks/generated/template-paths.js.map +0 -1
  525. package/dist/auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +0 -1
  526. package/dist/auth/core/generators/auth-hooks/generated/template-renderers.js.map +0 -1
  527. package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +0 -16
  528. package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +0 -1
  529. package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.js +0 -27
  530. package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +0 -1
  531. package/dist/auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +0 -1
  532. package/dist/auth/core/generators/auth-hooks/generated/typed-templates.js.map +0 -1
  533. package/dist/auth/core/generators/auth-hooks/index.d.ts +0 -2
  534. package/dist/auth/core/generators/auth-hooks/index.d.ts.map +0 -1
  535. package/dist/auth/core/generators/auth-hooks/index.js +0 -2
  536. package/dist/auth/core/generators/auth-hooks/index.js.map +0 -1
  537. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts.map +0 -1
  538. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js.map +0 -1
  539. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +0 -1
  540. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +0 -1
  541. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +0 -8
  542. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +0 -1
  543. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.js +0 -12
  544. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +0 -1
  545. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +0 -16
  546. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +0 -1
  547. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +0 -1
  548. package/dist/auth/core/generators/auth-module/auth-module.generator.d.ts.map +0 -1
  549. package/dist/auth/core/generators/auth-module/auth-module.generator.js.map +0 -1
  550. package/dist/auth/core/generators/auth-module/generated/index.d.ts.map +0 -1
  551. package/dist/auth/core/generators/auth-module/generated/index.js +0 -11
  552. package/dist/auth/core/generators/auth-module/generated/index.js.map +0 -1
  553. package/dist/auth/core/generators/auth-module/generated/template-paths.d.ts.map +0 -1
  554. package/dist/auth/core/generators/auth-module/generated/template-paths.js.map +0 -1
  555. package/dist/auth/core/generators/auth-module/generated/template-renderers.d.ts.map +0 -1
  556. package/dist/auth/core/generators/auth-module/generated/template-renderers.js.map +0 -1
  557. package/dist/auth/core/generators/auth-module/generated/ts-import-providers.d.ts.map +0 -1
  558. package/dist/auth/core/generators/auth-module/generated/ts-import-providers.js.map +0 -1
  559. package/dist/auth/core/generators/auth-module/generated/typed-templates.d.ts.map +0 -1
  560. package/dist/auth/core/generators/auth-module/generated/typed-templates.js.map +0 -1
  561. package/dist/auth/core/generators/auth-module/index.d.ts.map +0 -1
  562. package/dist/auth/core/generators/auth-module/index.js.map +0 -1
  563. package/dist/auth/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts.map +0 -1
  564. package/dist/auth/core/generators/auth-module/templates/module/constants/user-session.constants.js.map +0 -1
  565. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts.map +0 -1
  566. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js.map +0 -1
  567. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts.map +0 -1
  568. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +0 -1
  569. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts.map +0 -1
  570. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +0 -1
  571. package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts.map +0 -1
  572. package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.js.map +0 -1
  573. package/dist/auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts.map +0 -1
  574. package/dist/auth/core/generators/auth-module/templates/module/utils/cookie-signer.js.map +0 -1
  575. package/dist/auth/core/generators/auth-module/templates/module/utils/session-cookie.d.ts.map +0 -1
  576. package/dist/auth/core/generators/auth-module/templates/module/utils/session-cookie.js.map +0 -1
  577. package/dist/auth/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts.map +0 -1
  578. package/dist/auth/core/generators/auth-module/templates/module/utils/verify-request-origin.js.map +0 -1
  579. package/dist/auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +0 -1
  580. package/dist/auth/core/generators/auth-routes/auth-routes.generator.js.map +0 -1
  581. package/dist/auth/core/generators/auth-routes/generated/index.js.map +0 -1
  582. package/dist/auth/core/generators/auth-routes/generated/template-paths.d.ts.map +0 -1
  583. package/dist/auth/core/generators/auth-routes/generated/template-paths.js.map +0 -1
  584. package/dist/auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +0 -1
  585. package/dist/auth/core/generators/auth-routes/generated/template-renderers.js.map +0 -1
  586. package/dist/auth/core/generators/auth-routes/generated/typed-templates.js.map +0 -1
  587. package/dist/auth/core/generators/auth-routes/index.d.ts.map +0 -1
  588. package/dist/auth/core/generators/auth-routes/index.js.map +0 -1
  589. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts +0 -2
  590. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +0 -1
  591. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +0 -1
  592. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts +0 -2
  593. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +0 -1
  594. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +0 -1
  595. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts +0 -2
  596. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts.map +0 -1
  597. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.js.map +0 -1
  598. package/dist/auth/core/generators/index.d.ts.map +0 -1
  599. package/dist/auth/core/generators/index.js.map +0 -1
  600. package/dist/auth/core/generators/react-auth/index.d.ts.map +0 -1
  601. package/dist/auth/core/generators/react-auth/index.js.map +0 -1
  602. package/dist/auth/core/generators/react-auth/react-auth.generator.d.ts.map +0 -1
  603. package/dist/auth/core/generators/react-auth/react-auth.generator.js.map +0 -1
  604. package/dist/auth/core/generators/react-session/generated/index.d.ts +0 -74
  605. package/dist/auth/core/generators/react-session/generated/index.d.ts.map +0 -1
  606. package/dist/auth/core/generators/react-session/generated/index.js +0 -11
  607. package/dist/auth/core/generators/react-session/generated/index.js.map +0 -1
  608. package/dist/auth/core/generators/react-session/generated/template-paths.d.ts +0 -16
  609. package/dist/auth/core/generators/react-session/generated/template-paths.d.ts.map +0 -1
  610. package/dist/auth/core/generators/react-session/generated/template-paths.js +0 -26
  611. package/dist/auth/core/generators/react-session/generated/template-paths.js.map +0 -1
  612. package/dist/auth/core/generators/react-session/generated/template-renderers.d.ts +0 -27
  613. package/dist/auth/core/generators/react-session/generated/template-renderers.d.ts.map +0 -1
  614. package/dist/auth/core/generators/react-session/generated/template-renderers.js +0 -49
  615. package/dist/auth/core/generators/react-session/generated/template-renderers.js.map +0 -1
  616. package/dist/auth/core/generators/react-session/generated/ts-import-providers.d.ts +0 -64
  617. package/dist/auth/core/generators/react-session/generated/ts-import-providers.d.ts.map +0 -1
  618. package/dist/auth/core/generators/react-session/generated/ts-import-providers.js +0 -42
  619. package/dist/auth/core/generators/react-session/generated/ts-import-providers.js.map +0 -1
  620. package/dist/auth/core/generators/react-session/generated/typed-templates.d.ts +0 -46
  621. package/dist/auth/core/generators/react-session/generated/typed-templates.d.ts.map +0 -1
  622. package/dist/auth/core/generators/react-session/generated/typed-templates.js +0 -82
  623. package/dist/auth/core/generators/react-session/generated/typed-templates.js.map +0 -1
  624. package/dist/auth/core/generators/react-session/index.d.ts.map +0 -1
  625. package/dist/auth/core/generators/react-session/index.js.map +0 -1
  626. package/dist/auth/core/generators/react-session/react-session.generator.d.ts +0 -58
  627. package/dist/auth/core/generators/react-session/react-session.generator.d.ts.map +0 -1
  628. package/dist/auth/core/generators/react-session/react-session.generator.js.map +0 -1
  629. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.d.ts +0 -7
  630. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.d.ts.map +0 -1
  631. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.js +0 -25
  632. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.js.map +0 -1
  633. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.tsx +0 -28
  634. package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +0 -1
  635. package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.js +0 -18
  636. package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +0 -1
  637. package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +0 -45
  638. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.d.ts +0 -12
  639. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.d.ts.map +0 -1
  640. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.js +0 -15
  641. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.js.map +0 -1
  642. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.ts +0 -30
  643. package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.d.ts.map +0 -1
  644. package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.js.map +0 -1
  645. package/dist/auth/core/index.d.ts.map +0 -1
  646. package/dist/auth/core/index.js.map +0 -1
  647. package/dist/auth/core/schema/models.d.ts +0 -9
  648. package/dist/auth/core/schema/models.d.ts.map +0 -1
  649. package/dist/auth/core/schema/models.js.map +0 -1
  650. package/dist/auth0/core/components/auth-definition-editor.d.ts +0 -5
  651. package/dist/auth0/core/components/auth-definition-editor.d.ts.map +0 -1
  652. package/dist/auth0/core/components/auth-definition-editor.js +0 -61
  653. package/dist/auth0/core/components/auth-definition-editor.js.map +0 -1
  654. package/dist/common/compiler/generator-creators.d.ts +0 -18
  655. package/dist/common/compiler/generator-creators.d.ts.map +0 -1
  656. package/dist/common/compiler/generator-creators.js +0 -34
  657. package/dist/common/compiler/generator-creators.js.map +0 -1
  658. package/dist/common/compiler/index.d.ts +0 -2
  659. package/dist/common/compiler/index.d.ts.map +0 -1
  660. package/dist/common/compiler/index.js +0 -2
  661. package/dist/common/compiler/index.js.map +0 -1
  662. package/dist/common/index.d.ts +0 -3
  663. package/dist/common/index.d.ts.map +0 -1
  664. package/dist/common/index.js +0 -3
  665. package/dist/common/index.js.map +0 -1
  666. package/dist/common/roles/components/index.d.ts +0 -2
  667. package/dist/common/roles/components/index.d.ts.map +0 -1
  668. package/dist/common/roles/components/index.js +0 -2
  669. package/dist/common/roles/components/index.js.map +0 -1
  670. package/dist/common/roles/components/role-editor-form/role-dialog.d.ts.map +0 -1
  671. package/dist/common/roles/components/role-editor-form/role-dialog.js.map +0 -1
  672. package/dist/common/roles/components/role-editor-form/role-editor-form.d.ts +0 -10
  673. package/dist/common/roles/components/role-editor-form/role-editor-form.d.ts.map +0 -1
  674. package/dist/common/roles/components/role-editor-form/role-editor-form.js.map +0 -1
  675. package/dist/common/roles/constants.d.ts.map +0 -1
  676. package/dist/common/roles/constants.js.map +0 -1
  677. package/dist/common/roles/index.d.ts +0 -4
  678. package/dist/common/roles/index.d.ts.map +0 -1
  679. package/dist/common/roles/index.js +0 -4
  680. package/dist/common/roles/index.js.map +0 -1
  681. package/dist/common/roles/schema.d.ts.map +0 -1
  682. package/dist/common/roles/schema.js.map +0 -1
  683. package/dist/web/assets/__federation_expose_auth0CoreCommon-BXcKWfCq.js +0 -56
  684. package/dist/web/assets/__federation_expose_auth0CoreCommon-BXcKWfCq.js.map +0 -1
  685. package/dist/web/assets/__federation_expose_auth0CoreWeb-VnxlQY01.js.map +0 -1
  686. package/dist/web/assets/__federation_expose_authCoreCommon-LrPwgIpw.js +0 -36
  687. package/dist/web/assets/__federation_expose_authCoreCommon-LrPwgIpw.js.map +0 -1
  688. package/dist/web/assets/__federation_expose_authCoreWeb-CGWfg0Fb.js.map +0 -1
  689. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-DCZZPRb7.js +0 -39
  690. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-DCZZPRb7.js.map +0 -1
  691. package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-BunerD5g.js.map +0 -1
  692. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-DqkNAXn3.js.map +0 -1
  693. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BxXhpJ04.js.map +0 -1
  694. package/dist/web/assets/__federation_shared_react-uocnGSER.js +0 -7
  695. package/dist/web/assets/index.esm-qm5h2Bmg.js.map +0 -1
  696. package/dist/web/assets/model-merger-CA2yaVFd.js.map +0 -1
  697. package/dist/web/assets/plugin-definition-BEHZirWF.js +0 -24
  698. package/dist/web/assets/plugin-definition-BEHZirWF.js.map +0 -1
  699. package/dist/web/assets/plugin-definition-CoiivnNt.js +0 -36
  700. package/dist/web/assets/plugin-definition-CoiivnNt.js.map +0 -1
  701. package/dist/web/assets/plugin-definition-X0d5-H4U.js +0 -24
  702. package/dist/web/assets/plugin-definition-X0d5-H4U.js.map +0 -1
  703. package/dist/web/assets/role-editor-form-lOkPZX7S.js +0 -319
  704. package/dist/web/assets/role-editor-form-lOkPZX7S.js.map +0 -1
  705. package/dist/web/assets/styles-B6SRrcui.js +0 -201
  706. package/dist/web/assets/styles-B6SRrcui.js.map +0 -1
  707. package/manifest.json +0 -4
  708. /package/dist/{common → auth/core/schema}/roles/constants.d.ts +0 -0
  709. /package/dist/{common → auth/core/schema}/roles/constants.js +0 -0
  710. /package/dist/{common → auth/core/schema}/roles/schema.d.ts +0 -0
  711. /package/dist/{common → auth/core/schema}/roles/schema.js +0 -0
  712. /package/dist/{auth → local-auth}/core/generators/auth-apollo/index.d.ts +0 -0
  713. /package/dist/{auth → local-auth}/core/generators/auth-apollo/index.js +0 -0
  714. /package/dist/{auth → local-auth}/core/generators/auth-apollo/templates/session-error-link.d.ts +0 -0
  715. /package/dist/{auth → local-auth}/core/generators/auth-apollo/templates/session-error-link.js +0 -0
  716. /package/dist/{auth → local-auth}/core/generators/auth-apollo/templates/session-error-link.ts +0 -0
  717. /package/dist/{auth → local-auth}/core/generators/auth-email-password/index.d.ts +0 -0
  718. /package/dist/{auth → local-auth}/core/generators/auth-email-password/index.js +0 -0
  719. /package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +0 -0
  720. /package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/constants/password.constants.js +0 -0
  721. /package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/constants/password.constants.ts +0 -0
  722. /package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts +0 -0
  723. /package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts +0 -0
  724. /package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-current-user.gql +0 -0
  725. /package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts +0 -0
  726. /package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-log-out.gql +0 -0
  727. /package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts +0 -0
  728. /package/dist/{auth → local-auth}/core/generators/auth-module/index.d.ts +0 -0
  729. /package/dist/{auth → local-auth}/core/generators/auth-module/index.js +0 -0
  730. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts +0 -0
  731. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/constants/user-session.constants.js +0 -0
  732. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/constants/user-session.constants.ts +0 -0
  733. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts +0 -0
  734. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts +0 -0
  735. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.mutations.js +0 -0
  736. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +0 -0
  737. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts +0 -0
  738. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/services/user-session.service.d.ts +0 -0
  739. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts +0 -0
  740. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/cookie-signer.js +0 -0
  741. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/cookie-signer.ts +0 -0
  742. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/session-cookie.d.ts +0 -0
  743. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/session-cookie.js +0 -0
  744. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/session-cookie.ts +0 -0
  745. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts +0 -0
  746. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/verify-request-origin.js +0 -0
  747. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/verify-request-origin.ts +0 -0
  748. /package/dist/{auth → local-auth}/core/generators/auth-routes/auth-routes.generator.js +0 -0
  749. /package/dist/{auth → local-auth}/core/generators/auth-routes/generated/index.js +0 -0
  750. /package/dist/{auth → local-auth}/core/generators/auth-routes/generated/template-paths.d.ts +0 -0
  751. /package/dist/{auth → local-auth}/core/generators/auth-routes/generated/template-paths.js +0 -0
  752. /package/dist/{auth → local-auth}/core/generators/auth-routes/index.d.ts +0 -0
  753. /package/dist/{auth → local-auth}/core/generators/auth-routes/index.js +0 -0
  754. /package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/route.js +0 -0
  755. /package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/route.tsx +0 -0
  756. /package/dist/{auth → local-auth}/core/generators/react-auth/index.d.ts +0 -0
  757. /package/dist/{auth → local-auth}/core/generators/react-auth/index.js +0 -0
  758. /package/dist/{auth → local-auth}/core/generators/react-auth/react-auth.generator.d.ts +0 -0
  759. /package/dist/{auth → local-auth}/core/generators/react-session/index.d.ts +0 -0
  760. /package/dist/{auth → local-auth}/core/generators/react-session/index.js +0 -0
  761. /package/dist/{auth → local-auth}/core/generators/react-session/templates/src/app/user-session-provider.d.ts +0 -0
  762. /package/dist/{auth → local-auth}/core/index.d.ts +0 -0
  763. /package/dist/{auth → local-auth}/core/index.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-merger-BLEOsCIp.js","sources":["../../../../../packages/project-builder-lib/dist/plugins/spec/types.js","../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/predicate/isPrimitive.mjs","../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/predicate/isTypedArray.mjs","../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/object/cloneDeepWith.mjs","../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/object/cloneDeep.mjs","../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/object/mapValues.mjs","../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/object/merge.mjs","../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/object/omit.mjs","../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/object/toMerged.mjs","../../../../../packages/project-builder-lib/dist/references/types.js","../../../../../packages/project-builder-lib/dist/references/markers.js","../../../../../packages/project-builder-lib/dist/references/extend-parser-context-with-refs.js","../../../../../packages/project-builder-lib/dist/schema/creator/extend-parser-context-with-defaults.js","../../../../../packages/project-builder-lib/dist/schema/creator/schema-creator.js","../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs","../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/compat/_internal/toKey.mjs","../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/compat/util/toPath.mjs","../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/compat/object/get.mjs","../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/compat/predicate/isObject.mjs","../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/compat/predicate/isMatch.mjs","../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs","../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/compat/object/set.mjs","../../../../../packages/project-builder-lib/dist/schema/features/feature.js","../../../../../packages/project-builder-lib/dist/schema/models/types.js","../../../../../packages/project-builder-lib/dist/definition/feature/feature-utils.js","../../../../../packages/project-builder-lib/dist/definition/model/model-utils.js","../../../../../packages/project-builder-lib/dist/utils/definition-diff/definition-diff.js","../../../../../packages/project-builder-lib/dist/tools/model-merger/model-merger.js"],"sourcesContent":["export function createInitializedPluginSpec(spec, implementation) {\n return { spec, implementation };\n}\nexport function createPluginSpec(name, options) {\n const { platforms, defaultInitializer } = options ?? {};\n return {\n type: 'plugin-spec',\n name,\n platforms: platforms && (Array.isArray(platforms) ? platforms : [platforms]),\n isOptional: false,\n optional() {\n return { ...this, isOptional: true };\n },\n defaultInitializer,\n };\n}\n//# sourceMappingURL=types.js.map","function isPrimitive(value) {\n return value == null || (typeof value !== 'object' && typeof value !== 'function');\n}\n\nexport { isPrimitive };\n","function isTypedArray(x) {\n return ArrayBuffer.isView(x) && !(x instanceof DataView);\n}\n\nexport { isTypedArray };\n","import { getSymbols } from '../compat/_internal/getSymbols.mjs';\nimport { isPrimitive } from '../predicate/isPrimitive.mjs';\nimport { isTypedArray } from '../predicate/isTypedArray.mjs';\n\nfunction cloneDeepWith(obj, cloneValue) {\n return cloneDeepWithImpl(obj, undefined, obj, new Map(), cloneValue);\n}\nfunction cloneDeepWithImpl(valueToClone, keyToClone, objectToClone, stack = new Map(), cloneValue = undefined) {\n const cloned = cloneValue?.(valueToClone, keyToClone, objectToClone, stack);\n if (cloned != null) {\n return cloned;\n }\n if (isPrimitive(valueToClone)) {\n return valueToClone;\n }\n if (stack.has(valueToClone)) {\n return stack.get(valueToClone);\n }\n if (Array.isArray(valueToClone)) {\n const result = new Array(valueToClone.length);\n stack.set(valueToClone, result);\n for (let i = 0; i < valueToClone.length; i++) {\n result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);\n }\n if (Object.hasOwn(valueToClone, 'index')) {\n result.index = valueToClone.index;\n }\n if (Object.hasOwn(valueToClone, 'input')) {\n result.input = valueToClone.input;\n }\n return result;\n }\n if (valueToClone instanceof Date) {\n return new Date(valueToClone.getTime());\n }\n if (valueToClone instanceof RegExp) {\n const result = new RegExp(valueToClone.source, valueToClone.flags);\n result.lastIndex = valueToClone.lastIndex;\n return result;\n }\n if (valueToClone instanceof Map) {\n const result = new Map();\n stack.set(valueToClone, result);\n for (const [key, value] of valueToClone) {\n result.set(key, cloneDeepWithImpl(value, key, objectToClone, stack, cloneValue));\n }\n return result;\n }\n if (valueToClone instanceof Set) {\n const result = new Set();\n stack.set(valueToClone, result);\n for (const value of valueToClone) {\n result.add(cloneDeepWithImpl(value, undefined, objectToClone, stack, cloneValue));\n }\n return result;\n }\n if (typeof Buffer !== 'undefined' && Buffer.isBuffer(valueToClone)) {\n return valueToClone.subarray();\n }\n if (isTypedArray(valueToClone)) {\n const result = new (Object.getPrototypeOf(valueToClone).constructor)(valueToClone.length);\n stack.set(valueToClone, result);\n for (let i = 0; i < valueToClone.length; i++) {\n result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);\n }\n return result;\n }\n if (valueToClone instanceof ArrayBuffer ||\n (typeof SharedArrayBuffer !== 'undefined' && valueToClone instanceof SharedArrayBuffer)) {\n return valueToClone.slice(0);\n }\n if (valueToClone instanceof DataView) {\n const result = new DataView(valueToClone.buffer.slice(0), valueToClone.byteOffset, valueToClone.byteLength);\n stack.set(valueToClone, result);\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n if (typeof File !== 'undefined' && valueToClone instanceof File) {\n const result = new File([valueToClone], valueToClone.name, {\n type: valueToClone.type,\n });\n stack.set(valueToClone, result);\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n if (valueToClone instanceof Blob) {\n const result = new Blob([valueToClone], { type: valueToClone.type });\n stack.set(valueToClone, result);\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n if (valueToClone instanceof Error) {\n const result = new valueToClone.constructor();\n stack.set(valueToClone, result);\n result.message = valueToClone.message;\n result.name = valueToClone.name;\n result.stack = valueToClone.stack;\n result.cause = valueToClone.cause;\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n if (typeof valueToClone === 'object' && valueToClone !== null) {\n const result = Object.create(Object.getPrototypeOf(valueToClone));\n stack.set(valueToClone, result);\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n return valueToClone;\n}\nfunction copyProperties(target, source, objectToClone = target, stack, cloneValue) {\n const keys = [...Object.keys(source), ...getSymbols(source)];\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n const descriptor = Object.getOwnPropertyDescriptor(target, key);\n if (descriptor == null || descriptor.writable) {\n target[key] = cloneDeepWithImpl(source[key], key, objectToClone, stack, cloneValue);\n }\n }\n}\n\nexport { cloneDeepWith, cloneDeepWithImpl, copyProperties };\n","import { cloneDeepWithImpl } from './cloneDeepWith.mjs';\n\nfunction cloneDeep(obj) {\n return cloneDeepWithImpl(obj, undefined, obj, new Map(), undefined);\n}\n\nexport { cloneDeep };\n","function mapValues(object, getNewValue) {\n const result = {};\n const keys = Object.keys(object);\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n const value = object[key];\n result[key] = getNewValue(value, key, object);\n }\n return result;\n}\n\nexport { mapValues };\n","import { isPlainObject } from '../predicate/isPlainObject.mjs';\n\nfunction merge(target, source) {\n const sourceKeys = Object.keys(source);\n for (let i = 0; i < sourceKeys.length; i++) {\n const key = sourceKeys[i];\n const sourceValue = source[key];\n const targetValue = target[key];\n if (Array.isArray(sourceValue)) {\n if (Array.isArray(targetValue)) {\n target[key] = merge(targetValue, sourceValue);\n }\n else {\n target[key] = merge([], sourceValue);\n }\n }\n else if (isPlainObject(sourceValue)) {\n if (isPlainObject(targetValue)) {\n target[key] = merge(targetValue, sourceValue);\n }\n else {\n target[key] = merge({}, sourceValue);\n }\n }\n else if (targetValue === undefined || sourceValue !== undefined) {\n target[key] = sourceValue;\n }\n }\n return target;\n}\n\nexport { merge };\n","function omit(obj, keys) {\n const result = { ...obj };\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n delete result[key];\n }\n return result;\n}\n\nexport { omit };\n","import { cloneDeep } from './cloneDeep.mjs';\nimport { merge } from './merge.mjs';\n\nfunction toMerged(target, source) {\n return merge(cloneDeep(target), source);\n}\n\nexport { toMerged };\n","import { randomKey } from '@baseplate-dev/utils';\n/**\n * Definition of an entity type.\n */\nexport class DefinitionEntityType {\n /**\n * Creates a new entity type.\n *\n * @param name - The name of the entity type.\n * @param prefix - The prefix of the entity type to use in the ID, defaults to the name.\n * @param parentType - The type of the parent entity if any\n */\n constructor(name, prefix, parentType) {\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: name\n });\n Object.defineProperty(this, \"parentType\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: parentType\n });\n Object.defineProperty(this, \"prefix\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n this.prefix = prefix ?? name.split('/').pop() ?? name;\n }\n /**\n * Generates a new ID for the entity type.\n *\n * @returns The new ID.\n */\n generateNewId() {\n return `${this.prefix}:${randomKey()}`;\n }\n idFromKey(key) {\n if (!key) {\n return undefined;\n }\n return `${this.prefix}:${key}`;\n }\n keyFromId(id) {\n return id.split(':')[1];\n }\n isId(id) {\n return id.startsWith(`${this.prefix}:`);\n }\n}\nexport function createEntityType(name, options) {\n const { parentType, prefix } = options ?? {};\n return new DefinitionEntityType(name, prefix, parentType);\n}\n//# sourceMappingURL=types.js.map","export class DefinitionReferenceMarker {\n constructor(value, reference) {\n Object.defineProperty(this, \"value\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: value\n });\n Object.defineProperty(this, \"reference\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: reference\n });\n }\n toString() {\n return this.value ?? '';\n }\n}\nexport const REF_ANNOTATIONS_MARKER_SYMBOL = Symbol('refAnnotationsMarker');\n//# sourceMappingURL=markers.js.map","import { z } from 'zod';\nimport { DefinitionReferenceMarker, REF_ANNOTATIONS_MARKER_SYMBOL, } from './markers.js';\nexport function extendParserContextWithRefs({ transformReferences, }) {\n function withRef(reference) {\n return z.string().transform((value) => {\n if (transformReferences && value) {\n return new DefinitionReferenceMarker(value, reference);\n }\n return value;\n });\n }\n function withEnt(schema, entity) {\n if (!('id' in schema.shape)) {\n throw new Error(`Entity must have an id field. Entity type: ${entity.type.name}. Schema keys: ${Object.keys(schema.shape).join(', ')}`);\n }\n return schema.transform((value) => {\n // Check if the id is valid\n if (!('id' in value) || !entity.type.isId(value.id)) {\n throw new Error(`Invalid id for entity ${entity.type.name}. Id: ${value.id}`);\n }\n if (transformReferences) {\n const existingAnnotations = REF_ANNOTATIONS_MARKER_SYMBOL in value\n ? value[REF_ANNOTATIONS_MARKER_SYMBOL]\n : undefined;\n return {\n ...value,\n [REF_ANNOTATIONS_MARKER_SYMBOL]: {\n entities: [...(existingAnnotations?.entities ?? []), entity],\n references: existingAnnotations?.references ?? [],\n contextPaths: existingAnnotations?.contextPaths ?? [],\n },\n };\n }\n return value;\n });\n }\n function withRefBuilder(schema, builder) {\n return schema.transform((value) => {\n if (!value) {\n return value;\n }\n if (typeof value !== 'object') {\n throw new TypeError(`refBuilder requires an object, but got ${typeof value}`);\n }\n const existingAnnotations = REF_ANNOTATIONS_MARKER_SYMBOL in value\n ? value[REF_ANNOTATIONS_MARKER_SYMBOL]\n : undefined;\n const entities = existingAnnotations?.entities ?? [];\n const references = existingAnnotations?.references ?? [];\n const contextPaths = existingAnnotations?.contextPaths ?? [];\n const refBuilder = {\n addReference: (reference) => {\n references.push(reference);\n },\n addEntity: (entity) => {\n entities.push(entity);\n },\n addPathToContext: (path, type, context) => {\n contextPaths.push({ path, type, context });\n },\n };\n builder?.(refBuilder, value);\n if (transformReferences) {\n return {\n ...value,\n [REF_ANNOTATIONS_MARKER_SYMBOL]: {\n entities,\n references,\n contextPaths,\n },\n };\n }\n return value;\n });\n }\n return {\n withRef,\n withEnt,\n withRefBuilder,\n };\n}\n//# sourceMappingURL=extend-parser-context-with-refs.js.map","import { z } from 'zod';\nfunction isEmpty(value) {\n if (Array.isArray(value)) {\n return value.length === 0;\n }\n if (typeof value === 'object' && value !== null) {\n return Object.values(value).every((val) => val === undefined);\n }\n return value === false || value === '';\n}\n/**\n * Extends the parser context with default value handling functionality.\n *\n * @param options - The schema creator options containing the defaultMode\n * @returns An object containing the withDefault method\n */\nexport function extendParserContextWithDefaults(options) {\n const mode = options.defaultMode ?? 'populate';\n return {\n withDefault: function withDefault(schema, defaultValue) {\n // Auto-add .optional() to the schema\n const optionalSchema = schema.optional();\n switch (mode) {\n case 'populate': {\n // Use preprocess to inject defaults before validation\n return z.preprocess((value) => {\n if (value === undefined) {\n return defaultValue;\n }\n return value;\n }, optionalSchema);\n }\n case 'strip': {\n // Use transform to remove values matching defaults after validation\n return optionalSchema.transform((value) => {\n if (isEmpty(value)) {\n return undefined;\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return -- it's typed to a generic\n return value;\n });\n }\n case 'preserve': {\n // Return schema with .optional() added\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return -- it's typed to a generic\n return optionalSchema.transform((x) => x);\n }\n }\n },\n };\n}\n//# sourceMappingURL=extend-parser-context-with-defaults.js.map","import { extendParserContextWithRefs } from '#src/references/extend-parser-context-with-refs.js';\nimport { extendParserContextWithDefaults } from './extend-parser-context-with-defaults.js';\nexport function createDefinitionSchemaParserContext(options) {\n return {\n ...options,\n ...extendParserContextWithRefs(options),\n ...extendParserContextWithDefaults(options),\n };\n}\nexport function definitionSchema(creator) {\n return (context) => creator(context);\n}\n//# sourceMappingURL=schema-creator.js.map","function isDeepKey(key) {\n switch (typeof key) {\n case 'number':\n case 'symbol': {\n return false;\n }\n case 'string': {\n return key.includes('.') || key.includes('[') || key.includes(']');\n }\n }\n}\n\nexport { isDeepKey };\n","function toKey(value) {\n if (Object.is(value, -0)) {\n return '-0';\n }\n return value.toString();\n}\n\nexport { toKey };\n","function toPath(deepKey) {\n const result = [];\n const length = deepKey.length;\n if (length === 0) {\n return result;\n }\n let index = 0;\n let key = '';\n let quoteChar = '';\n let bracket = false;\n if (deepKey.charCodeAt(0) === 46) {\n result.push('');\n index++;\n }\n while (index < length) {\n const char = deepKey[index];\n if (quoteChar) {\n if (char === '\\\\' && index + 1 < length) {\n index++;\n key += deepKey[index];\n }\n else if (char === quoteChar) {\n quoteChar = '';\n }\n else {\n key += char;\n }\n }\n else if (bracket) {\n if (char === '\"' || char === \"'\") {\n quoteChar = char;\n }\n else if (char === ']') {\n bracket = false;\n result.push(key);\n key = '';\n }\n else {\n key += char;\n }\n }\n else {\n if (char === '[') {\n bracket = true;\n if (key) {\n result.push(key);\n key = '';\n }\n }\n else if (char === '.') {\n if (key) {\n result.push(key);\n key = '';\n }\n }\n else {\n key += char;\n }\n }\n index++;\n }\n if (key) {\n result.push(key);\n }\n return result;\n}\n\nexport { toPath };\n","import { isDeepKey } from '../_internal/isDeepKey.mjs';\nimport { toKey } from '../_internal/toKey.mjs';\nimport { toPath } from '../util/toPath.mjs';\n\nfunction get(object, path, defaultValue) {\n if (object == null) {\n return defaultValue;\n }\n switch (typeof path) {\n case 'string': {\n const result = object[path];\n if (result === undefined) {\n if (isDeepKey(path)) {\n return get(object, toPath(path), defaultValue);\n }\n else {\n return defaultValue;\n }\n }\n return result;\n }\n case 'number':\n case 'symbol': {\n if (typeof path === 'number') {\n path = toKey(path);\n }\n const result = object[path];\n if (result === undefined) {\n return defaultValue;\n }\n return result;\n }\n default: {\n if (Array.isArray(path)) {\n return getWithPath(object, path, defaultValue);\n }\n if (Object.is(path?.valueOf(), -0)) {\n path = '-0';\n }\n else {\n path = String(path);\n }\n const result = object[path];\n if (result === undefined) {\n return defaultValue;\n }\n return result;\n }\n }\n}\nfunction getWithPath(object, path, defaultValue) {\n if (path.length === 0) {\n return defaultValue;\n }\n let current = object;\n for (let index = 0; index < path.length; index++) {\n if (current == null) {\n return defaultValue;\n }\n current = current[path[index]];\n }\n if (current === undefined) {\n return defaultValue;\n }\n return current;\n}\n\nexport { get };\n","function isObject(value) {\n return value !== null && (typeof value === 'object' || typeof value === 'function');\n}\n\nexport { isObject };\n","import { isObject } from './isObject.mjs';\nimport { isPrimitive } from '../../predicate/isPrimitive.mjs';\nimport { eq } from '../util/eq.mjs';\n\nfunction isMatch(target, source) {\n if (source === target) {\n return true;\n }\n switch (typeof source) {\n case 'object': {\n if (source == null) {\n return true;\n }\n const keys = Object.keys(source);\n if (target == null) {\n return keys.length === 0;\n }\n if (Array.isArray(source)) {\n return isArrayMatch(target, source);\n }\n if (source instanceof Map) {\n return isMapMatch(target, source);\n }\n if (source instanceof Set) {\n return isSetMatch(target, source);\n }\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n if (!isPrimitive(target) && !(key in target)) {\n return false;\n }\n if (source[key] === undefined && target[key] !== undefined) {\n return false;\n }\n if (source[key] === null && target[key] !== null) {\n return false;\n }\n if (!isMatch(target[key], source[key])) {\n return false;\n }\n }\n return true;\n }\n case 'function': {\n if (Object.keys(source).length > 0) {\n return isMatch(target, { ...source });\n }\n return false;\n }\n default: {\n if (!isObject(target)) {\n return eq(target, source);\n }\n return !source;\n }\n }\n}\nfunction isMapMatch(target, source) {\n if (source.size === 0) {\n return true;\n }\n if (!(target instanceof Map)) {\n return false;\n }\n for (const [key, value] of source.entries()) {\n if (!isMatch(target.get(key), value)) {\n return false;\n }\n }\n return true;\n}\nfunction isArrayMatch(target, source) {\n if (source.length === 0) {\n return true;\n }\n if (!Array.isArray(target)) {\n return false;\n }\n const countedIndex = new Set();\n for (let i = 0; i < source.length; i++) {\n const sourceItem = source[i];\n const index = target.findIndex((targetItem, index) => {\n return isMatch(targetItem, sourceItem) && !countedIndex.has(index);\n });\n if (index === -1) {\n return false;\n }\n countedIndex.add(index);\n }\n return true;\n}\nfunction isSetMatch(target, source) {\n if (source.size === 0) {\n return true;\n }\n if (!(target instanceof Set)) {\n return false;\n }\n return isArrayMatch([...target], [...source]);\n}\n\nexport { isArrayMatch, isMapMatch, isMatch, isSetMatch };\n","const IS_UNSIGNED_INTEGER = /^(?:0|[1-9]\\d*)$/;\nfunction isIndex(value, length = Number.MAX_SAFE_INTEGER) {\n switch (typeof value) {\n case 'number': {\n return Number.isInteger(value) && value >= 0 && value < length;\n }\n case 'symbol': {\n return false;\n }\n case 'string': {\n return IS_UNSIGNED_INTEGER.test(value);\n }\n }\n}\n\nexport { isIndex };\n","import { isIndex } from '../_internal/isIndex.mjs';\nimport { toPath } from '../util/toPath.mjs';\n\nfunction set(obj, path, value) {\n const resolvedPath = Array.isArray(path) ? path : typeof path === 'string' ? toPath(path) : [path];\n let current = obj;\n for (let i = 0; i < resolvedPath.length - 1; i++) {\n const key = resolvedPath[i];\n const nextKey = resolvedPath[i + 1];\n if (current[key] == null) {\n current[key] = isIndex(nextKey) ? [] : {};\n }\n current = current[key];\n }\n const lastKey = resolvedPath[resolvedPath.length - 1];\n current[lastKey] = value;\n return obj;\n}\n\nexport { set };\n","import { CASE_VALIDATORS } from '@baseplate-dev/utils';\nimport { z } from 'zod';\nimport { createEntityType } from '#src/references/types.js';\nimport { definitionSchema } from '#src/schema/creator/schema-creator.js';\nexport const featureEntityType = createEntityType('feature');\nexport const featureNameSchema = CASE_VALIDATORS.KEBAB_CASE;\nexport const createFeatureSchema = definitionSchema((ctx) => ctx.withEnt(z.object({\n id: z.string(),\n name: z\n .string()\n .min(1)\n .refine((name) => name\n .split('/')\n .every((part) => featureNameSchema.safeParse(part).success), {\n message: 'Feature name must be lowercase and contain only letters, numbers, and dashes',\n }),\n parentRef: ctx\n .withRef({\n type: featureEntityType,\n onDelete: 'DELETE_PARENT',\n })\n .optional(),\n}), { type: featureEntityType }));\nexport const createFeaturesSchema = definitionSchema((ctx) => z.array(createFeatureSchema(ctx)).default([]));\n//# sourceMappingURL=feature.js.map","import { createEntityType } from '#src/references/index.js';\nexport const modelEntityType = createEntityType('model');\nexport const modelScalarFieldEntityType = createEntityType('model-scalar-field', {\n parentType: modelEntityType,\n});\nexport const modelLocalRelationEntityType = createEntityType('model-local-relation', { parentType: modelEntityType });\nexport const modelForeignRelationEntityType = createEntityType('model-foreign-relation', { parentType: modelEntityType });\nexport const modelUniqueConstraintEntityType = createEntityType('model-unique-constraint', { parentType: modelEntityType });\nexport const modelTransformerEntityType = createEntityType('model-transformer', { parentType: modelEntityType });\nexport const modelEnumEntityType = createEntityType('model-enum');\nexport const modelEnumValueEntityType = createEntityType('model-enum-value', {\n parentType: modelEnumEntityType,\n});\n//# sourceMappingURL=types.js.map","import { featureEntityType, featureNameSchema } from '#src/schema/index.js';\nfunction getRootFeatures(projectDefinition) {\n return projectDefinition.features.filter((f) => !f.parentRef);\n}\nfunction getFeatureById(projectDefinition, featureId) {\n return projectDefinition.features.find((f) => f.id === featureId);\n}\nfunction getFeatureByIdOrThrow(projectDefinition, featureId) {\n const feature = getFeatureById(projectDefinition, featureId);\n if (!feature) {\n throw new Error(`Could not find feature with ID ${featureId}`);\n }\n return feature;\n}\nfunction getFeatureChildren(projectDefinition, featureId) {\n return projectDefinition.features.filter((f) => f.parentRef === featureId);\n}\nfunction getFeatureName(featureConfig) {\n return featureConfig.name.split('/').pop() ?? '';\n}\nfunction getFeatureNameById(projectDefinition, featureId) {\n const feature = getFeatureByIdOrThrow(projectDefinition, featureId);\n return getFeatureName(feature);\n}\nfunction getFeaturePathById(projectDefinition, featureId) {\n const feature = getFeatureByIdOrThrow(projectDefinition, featureId);\n return feature.name;\n}\nfunction validateFeatureName(name) {\n const nameParts = name.split('/');\n return nameParts.every((part) => featureNameSchema.safeParse(part).success);\n}\nfunction ensureFeatureByNameRecursively(projectDefinition, nameOrId) {\n if (featureEntityType.isId(nameOrId)) {\n return nameOrId;\n }\n const nameParts = nameOrId.split('/');\n let lastName = '';\n let parentRef = undefined;\n for (const part of nameParts) {\n const feature = projectDefinition.features.find((f) => f.name === part && f.parentRef === parentRef);\n const name = [lastName, part].filter(Boolean).join('/');\n if (feature) {\n parentRef = feature.id;\n }\n else {\n const newFeature = {\n id: featureEntityType.generateNewId(),\n name,\n parentRef,\n };\n projectDefinition.features.push(newFeature);\n parentRef = newFeature.id;\n }\n lastName = name;\n }\n if (!parentRef) {\n throw new Error('Failed to create feature');\n }\n return parentRef;\n}\nfunction getFeatureByName(projectDefinition, name) {\n return projectDefinition.features.find((f) => f.name === name);\n}\nfunction getFeatureIdByNameOrDefault(projectDefinition, name) {\n return getFeatureByName(projectDefinition, name)?.id ?? name;\n}\nexport const FeatureUtils = {\n getRootFeatures,\n getFeatureById,\n getFeatureByIdOrThrow,\n getFeatureChildren,\n getFeatureName,\n getFeatureNameById,\n getFeaturePathById,\n validateFeatureName,\n ensureFeatureByNameRecursively,\n getFeatureByName,\n getFeatureIdByNameOrDefault,\n};\n//# sourceMappingURL=feature-utils.js.map","import { PASCAL_CASE_REGEX } from '@baseplate-dev/utils';\nfunction byId(projectDefinition, id) {\n return projectDefinition.models.find((m) => m.id === id);\n}\nfunction byIdOrThrow(projectDefinition, id) {\n const model = byId(projectDefinition, id);\n if (!model) {\n throw new Error(`Could not find model with ID ${id}`);\n }\n return model;\n}\nfunction getScalarFieldById(model, id) {\n const field = model.model.fields.find((f) => f.id === id);\n if (!field) {\n throw new Error(`Could not find field with ID ${id}`);\n }\n return field;\n}\nfunction getRelationsToModel(projectDefinition, modelId) {\n return projectDefinition.models.flatMap((m) => m.model.relations\n ?.filter((r) => r.modelRef === modelId)\n .map((r) => ({ model: m, relation: r })) ?? []);\n}\nfunction getModelsForFeature(projectDefinition, featureId) {\n return projectDefinition.models.filter((m) => m.featureRef === featureId);\n}\nfunction getModelIdFields(model) {\n return model.model.primaryKeyFieldRefs;\n}\nfunction hasService(model) {\n return (!!model.service.create.enabled ||\n !!model.service.update.enabled ||\n !!model.service.delete.enabled ||\n model.service.transformers.length > 0);\n}\nfunction validateModelName(name) {\n return PASCAL_CASE_REGEX.test(name);\n}\n/**\n * Returns the ID of a model by name, or the name if no model is found.\n * @param projectDefinition - The project definition.\n * @param name - The name of the model.\n * @returns The ID of the model, or the name if no model is found.\n */\nfunction getModelIdByNameOrDefault(projectDefinition, name) {\n return projectDefinition.models.find((m) => m.name === name)?.id ?? name;\n}\nexport const ModelUtils = {\n byId,\n byIdOrThrow,\n getScalarFieldById,\n getRelationsToModel,\n getModelsForFeature,\n getModelIdFields,\n hasService,\n validateModelName,\n getModelIdByNameOrDefault,\n};\n//# sourceMappingURL=model-utils.js.map","/**\n * Allows diffing of arbitrary JSON objects.\n */\nimport { cloneDeep, mapValues, omit, toMerged } from 'es-toolkit';\nimport { get, isMatch, set } from 'es-toolkit/compat';\nclass DefinitionDiffField {\n constructor(\n /**\n * The name of the field to be presented to the user.\n */\n name) {\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: name\n });\n }\n}\n/**\n * A field that is an array of objects with a unique key.\n */\nexport class DefinitionDiffKeyedArrayField extends DefinitionDiffField {\n constructor(name, getKey, options = {}) {\n super(name);\n Object.defineProperty(this, \"getKey\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: getKey\n });\n Object.defineProperty(this, \"options\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: options\n });\n this.getKey = getKey;\n }\n diff(current, desired) {\n const currentValue = current ?? [];\n const desiredValue = desired ?? [];\n if (!Array.isArray(currentValue) || !Array.isArray(desiredValue)) {\n throw new TypeError('Current and desired must be arrays');\n }\n const ops = [];\n const { allowRemove, ignoreFields = ['id'] } = this.options;\n const currentByKey = new Map(currentValue.map((item) => [this.getKey(item), item]));\n const desiredByKey = new Map(desiredValue.map((item) => [this.getKey(item), item]));\n for (const [key, desiredItem] of desiredByKey) {\n const currentItem = currentByKey.get(key);\n if (!currentItem) {\n ops.push({ type: 'add', key, item: desiredItem });\n continue;\n }\n if (!isMatch(omit(currentItem, ignoreFields), omit(desiredItem, ignoreFields))) {\n ops.push({ type: 'update', key, item: desiredItem });\n }\n }\n if (allowRemove) {\n for (const [key, currentItem] of currentByKey) {\n if (!desiredByKey.has(key)) {\n ops.push({ type: 'remove', key, item: currentItem });\n }\n }\n }\n return ops;\n }\n apply(current, diff) {\n const patch = diff;\n const currentValue = current ?? [];\n if (!Array.isArray(currentValue)) {\n throw new TypeError('Current must be array');\n }\n const items = [...currentValue];\n for (const { type, key, item } of patch) {\n const index = items.findIndex((i) => this.getKey(i) === key);\n switch (type) {\n case 'add': {\n items.push(item);\n break;\n }\n case 'update': {\n if (index === -1) {\n throw new Error(`Cannot apply patch. Item with key \"${key}\" not found.`);\n }\n // Preserve existing id if present.\n items[index] = toMerged(items[index], item);\n break;\n }\n case 'remove': {\n if (index !== -1) {\n items.splice(index, 1);\n }\n break;\n }\n }\n }\n return items;\n }\n getActionVerb(isNew) {\n return isNew ? 'created' : 'added or updated';\n }\n}\n/**\n * A field that is a replacement for the entire object or array.\n */\nexport class DefinitionDiffReplacementField extends DefinitionDiffField {\n diff(current, desired) {\n if (desired === undefined) {\n return [];\n }\n if (!isMatch(current, desired)) {\n return [{ type: 'update', key: '*', item: desired }];\n }\n return [];\n }\n apply(current, diff) {\n if (diff.length === 0)\n return current;\n return diff[0].item;\n }\n getActionVerb(isNew) {\n return isNew ? 'set' : 'replaced';\n }\n}\n/**\n * A field that ensures an array contains certain values.\n * This field type only adds items, never removes them.\n */\nexport class DefinitionDiffArrayIncludesField extends DefinitionDiffField {\n constructor(name, getKey) {\n super(name);\n Object.defineProperty(this, \"getKey\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: getKey\n });\n }\n diff(current, desired) {\n const currentValue = current ?? [];\n const desiredValue = desired ?? [];\n if (!Array.isArray(currentValue) || !Array.isArray(desiredValue)) {\n throw new TypeError('Current and desired must be arrays');\n }\n const ops = [];\n const currentSet = new Set(this.getKey ? currentValue.map(this.getKey) : currentValue);\n for (const item of desiredValue) {\n const key = this.getKey ? this.getKey(item) : String(item);\n if (!currentSet.has(key)) {\n ops.push({ type: 'add', key, item });\n }\n }\n return ops;\n }\n apply(current, diff) {\n const currentValue = (current ?? []);\n if (!Array.isArray(currentValue)) {\n throw new TypeError('Current must be array');\n }\n const items = [...currentValue];\n for (const { type, item } of diff) {\n if (type === 'add') {\n items.push(item);\n }\n }\n return items;\n }\n getActionVerb(isNew) {\n return isNew ? 'created' : 'added';\n }\n}\nexport function createDefinitionDiffConfig(config) {\n return config;\n}\n/**\n * Creates a diff between two objects.\n */\nexport function createDefinitionDiff(current, desired, configuration) {\n const ops = mapValues(configuration, (field, key) => {\n if (!field)\n return [];\n return field.diff(get(current, key), get(desired, key));\n });\n if (Object.values(ops).every((ops) => ops.length === 0)) {\n return undefined;\n }\n return ops;\n}\n/**\n * Applies a diff to an object.\n */\nexport function applyDefinitionDiff(current, diff, configuration) {\n const clonedCurrent = cloneDeep(current);\n for (const [key, ops] of Object.entries(diff)) {\n if (!ops)\n continue;\n const field = configuration[key];\n const currentValue = get(clonedCurrent, key);\n set(clonedCurrent, key, field.apply(currentValue, ops));\n }\n return clonedCurrent;\n}\n//# sourceMappingURL=definition-diff.js.map","import { mapValues } from 'es-toolkit';\nimport { ModelUtils } from '#src/definition/index.js';\nimport { modelEntityType, modelForeignRelationEntityType, modelLocalRelationEntityType, modelScalarFieldEntityType, modelUniqueConstraintEntityType, } from '#src/schema/index.js';\nimport { applyDefinitionDiff, createDefinitionDiff, createDefinitionDiffConfig, DefinitionDiffArrayIncludesField, DefinitionDiffKeyedArrayField, DefinitionDiffReplacementField, } from '#src/utils/definition-diff/definition-diff.js';\n/**\n * Computes a unique key for a unique constraint by sorting its field refs.\n *\n * @param constraint - Unique constraint input.\n * @returns A key string.\n */\nfunction getUniqueConstraintKey(constraint) {\n const fields = constraint.fields.map((f) => f.fieldRef).sort();\n return fields.join('|');\n}\nexport const modelMergerDefinitionDiffConfig = createDefinitionDiffConfig({\n 'model.fields': new DefinitionDiffKeyedArrayField('fields', (f) => f.name),\n 'model.relations': new DefinitionDiffKeyedArrayField('relations', (r) => r.name),\n 'model.uniqueConstraints': new DefinitionDiffKeyedArrayField('unique constraints', (c) => getUniqueConstraintKey(c)),\n 'model.primaryKeyFieldRefs': new DefinitionDiffReplacementField('primary key fields'),\n 'graphql.objectType.enabled': new DefinitionDiffReplacementField('GraphQL object type enabled'),\n 'graphql.objectType.fields': new DefinitionDiffArrayIncludesField('GraphQL object type fields'),\n 'graphql.objectType.localRelations': new DefinitionDiffArrayIncludesField('GraphQL object type local relations'),\n 'graphql.objectType.foreignRelations': new DefinitionDiffArrayIncludesField('GraphQL object type foreign relations'),\n});\n/**\n * Serializes a model merger model input such that all IDs are replaced with\n * names.\n *\n * @param input - The model merger model input.\n * @param definitionContainer - The definition container.\n * @returns The serialized model merger model input.\n */\nfunction serializeModelMergerModelInput(input, definitionContainer, siblingModels) {\n const siblingModelFieldIdMap = new Map([\n ...input.model.fields.map((f) => [f.id, f.name]),\n ...siblingModels.flatMap((m) => m.model.fields.map((f) => [f.id, f.name])),\n ]);\n const siblingModelRelationIdMap = new Map([\n ...(input.model.relations ?? []).map((r) => [r.id, r.name]),\n ...siblingModels.flatMap((m) => (m.model.relations ?? []).map((r) => [r.id, r.name])),\n ...(input.model.relations ?? []).map((r) => [r.foreignId, r.foreignRelationName]),\n ...siblingModels.flatMap((m) => (m.model.relations ?? []).map((r) => [r.foreignId, r.foreignRelationName])),\n ]);\n const fieldNameFromId = (id) => siblingModelFieldIdMap.get(id) ?? definitionContainer.nameFromId(id);\n const relationNameFromId = (id) => siblingModelRelationIdMap.get(id) ?? definitionContainer.nameFromId(id);\n return {\n ...input,\n model: {\n ...input.model,\n relations: input.model.relations?.map((r) => ({\n ...r,\n references: r.references.map((reference) => ({\n ...reference,\n localRef: fieldNameFromId(reference.localRef),\n foreignRef: fieldNameFromId(reference.foreignRef),\n })),\n })),\n uniqueConstraints: input.model.uniqueConstraints?.map((c) => ({\n ...c,\n fields: c.fields.map((f) => ({\n ...f,\n fieldRef: fieldNameFromId(f.fieldRef),\n })),\n })),\n primaryKeyFieldRefs: input.model.primaryKeyFieldRefs.map(fieldNameFromId),\n },\n graphql: {\n ...input.graphql,\n objectType: {\n ...input.graphql?.objectType,\n fields: input.graphql?.objectType?.fields?.map(fieldNameFromId) ?? [],\n localRelations: input.graphql?.objectType?.localRelations?.map(relationNameFromId) ??\n [],\n foreignRelations: input.graphql?.objectType?.foreignRelations?.map(relationNameFromId) ?? [],\n },\n },\n };\n}\n/**\n * Attaches IDs to the model merger model input.\n *\n * @param input - The model merger model input.\n * @returns The model merger model input with IDs attached.\n */\nfunction attachIdsToModelMergerModelInput(input) {\n return {\n ...input,\n model: {\n ...input.model,\n fields: input.model.fields.map((f) => ({\n ...f,\n id: f.id ?? modelScalarFieldEntityType.generateNewId(),\n })),\n relations: input.model.relations?.map((r) => ({\n ...r,\n id: r.id ?? modelLocalRelationEntityType.generateNewId(),\n foreignId: r.foreignId ?? modelForeignRelationEntityType.generateNewId(),\n })),\n uniqueConstraints: input.model.uniqueConstraints?.map((c) => ({\n ...c,\n id: c.id ?? modelUniqueConstraintEntityType.generateNewId(),\n })),\n },\n };\n}\n/**\n * Deserializes a model merger model input converting all names to IDs.\n *\n * @param input - The model merger model input.\n * @param resolveForeignFieldRef - A function that resolves the foreign field ref.\n * @returns The deserialized model merger model input.\n */\nfunction deserializeModelMergerModelInput(input, resolveForeignFieldRef, resolveForeignRelationRef, resolveModelRef) {\n const inputWithIds = attachIdsToModelMergerModelInput(input);\n const resolveLocalFieldName = (name) => {\n const field = inputWithIds.model.fields.find((f) => f.name === name);\n if (!field) {\n throw new Error(`Field ${name} not found`);\n }\n return field.id;\n };\n const resolveLocalRelationName = (name) => {\n const relation = inputWithIds.model.relations?.find((r) => r.name === name);\n if (!relation) {\n throw new Error(`Relation ${name} not found`);\n }\n return relation.id;\n };\n return {\n ...inputWithIds,\n model: {\n ...inputWithIds.model,\n relations: inputWithIds.model.relations?.map((relation) => ({\n ...relation,\n modelRef: resolveModelRef(relation.modelRef),\n references: relation.references.map((reference) => ({\n ...reference,\n localRef: resolveLocalFieldName(reference.localRef),\n foreignRef: resolveForeignFieldRef(relation.modelRef, reference.foreignRef),\n })),\n })),\n uniqueConstraints: inputWithIds.model.uniqueConstraints?.map((constraint) => ({\n ...constraint,\n fields: constraint.fields.map((field) => ({\n ...field,\n fieldRef: resolveLocalFieldName(field.fieldRef),\n })),\n })),\n primaryKeyFieldRefs: inputWithIds.model.primaryKeyFieldRefs.map((fieldRef) => resolveLocalFieldName(fieldRef)),\n },\n graphql: {\n ...inputWithIds.graphql,\n objectType: {\n ...inputWithIds.graphql?.objectType,\n fields: inputWithIds.graphql?.objectType?.fields?.map((fieldRef) => resolveLocalFieldName(fieldRef)) ?? [],\n localRelations: inputWithIds.graphql?.objectType?.localRelations?.map((relationRef) => resolveLocalRelationName(relationRef)) ?? [],\n foreignRelations: inputWithIds.graphql?.objectType?.foreignRelations?.map((relationRef) => resolveForeignRelationRef(relationRef)) ?? [],\n },\n },\n };\n}\n/**\n * Creates a new blank model config input from a name and feature ref.\n *\n * @param name - The name of the model.\n * @param featureRef - The feature ref of the model.\n * @returns The new model config input.\n */\nfunction createNewModelConfigInput(name, featureRef, id) {\n return {\n id,\n name,\n featureRef,\n model: {\n fields: [],\n primaryKeyFieldRefs: [],\n },\n };\n}\n/**\n * Diff the model definition.\n *\n * @param current - The current model definition or a new model to be created.\n * @param desired - The desired model definition.\n * @param definitionContainer - Project definition container.\n * @param options - Diff options.\n * @returns A diff output or undefined if there are no differences.\n */\nexport function createModelMergerResult(current, desired, definitionContainer, { siblingModels = [] } = {}) {\n const currentModel = current ??\n createNewModelConfigInput(desired.name, desired.featureRef, modelEntityType.generateNewId());\n // resolves all the names of the current model config input\n const resolvedCurrent = serializeModelMergerModelInput(currentModel, definitionContainer, siblingModels);\n const diff = createDefinitionDiff(resolvedCurrent, desired, modelMergerDefinitionDiffConfig);\n if (!diff) {\n return undefined;\n }\n return {\n isNewModel: !current,\n id: currentModel.id,\n name: currentModel.name,\n featureRef: currentModel.featureRef,\n changes: diff,\n };\n}\nexport function doesModelMergerResultsHaveChanges(results) {\n return Object.values(results).some((result) => result?.changes);\n}\n/**\n * Creates a model merger result for a set of models.\n *\n * @param current - A map of model IDs\n * @param desired - The desired model definition.\n * @param definitionContainer - Project definition container.\n * @param options - Diff options.\n * @returns A model merger result for a set of models.\n */\nexport function createModelMergerResults(current, desired, definitionContainer, { siblingModels = [] } = {}) {\n return mapValues(desired, (desired, key) => createModelMergerResult(current[key] && modelEntityType.isId(current[key])\n ? ModelUtils.byIdOrThrow(definitionContainer.definition, current[key])\n : undefined, desired, definitionContainer, {\n siblingModels,\n }));\n}\nexport function applyModelMergerDiff(model, diff, definitionContainer, siblingModels = []) {\n const resolvedCurrent = serializeModelMergerModelInput(model, definitionContainer, siblingModels);\n const patchedCurrent = applyDefinitionDiff(resolvedCurrent, diff, modelMergerDefinitionDiffConfig);\n return {\n ...model,\n ...deserializeModelMergerModelInput(patchedCurrent, (modelId, fieldName) => {\n const siblingModel = siblingModels.find((m) => m.id === modelId || m.name === modelId);\n if (siblingModel) {\n const field = siblingModel.model.fields.find((f) => f.name === fieldName);\n if (!field) {\n throw new Error(`Field ${fieldName} not found in sibling model ${modelId}`);\n }\n return field.id;\n }\n const model = ModelUtils.byIdOrThrow(definitionContainer.definition, modelId);\n const field = model.model.fields.find((f) => f.name === fieldName);\n if (!field) {\n throw new Error(`Field ${fieldName} not found in model ${model.name}`);\n }\n return field.id;\n }, (relationName) => {\n // Search sibling model first\n let relationId;\n for (const siblingModel of siblingModels) {\n const relation = siblingModel.model.relations?.find((r) => r.foreignRelationName === relationName);\n if (relation) {\n relationId = relation.foreignId;\n break;\n }\n }\n if (relationId) {\n return relationId;\n }\n const relations = ModelUtils.getRelationsToModel(definitionContainer.definition, model.id);\n const relation = relations.find((r) => r.relation.foreignRelationName === relationName &&\n r.relation.modelRef === model.id);\n if (!relation) {\n throw new Error(`Relation ${relationName} not found in model ${model.name}`);\n }\n return relation.relation.foreignId;\n }, (modelRef) => {\n const siblingModel = siblingModels.find((m) => m.id === modelRef || m.name === modelRef);\n if (siblingModel) {\n return siblingModel.id;\n }\n return modelRef;\n }),\n };\n}\nexport function applyModelMergerResultInPlace(draftConfig, currentModel, result, definitionContainer, { siblingModels = [] } = {}) {\n const newModel = applyModelMergerDiff(currentModel, result.changes, definitionContainer, siblingModels);\n if (result.isNewModel) {\n draftConfig.models.push(newModel);\n }\n else {\n const index = draftConfig.models.findIndex((m) => m.id === result.id);\n if (index === -1) {\n throw new Error(`Model ${result.id} not found`);\n }\n draftConfig.models[index] = newModel;\n }\n return newModel.id;\n}\nexport function createAndApplyModelMergerResults(draftConfig, current, desired, definitionContainer, { siblingModels = [] } = {}) {\n const results = createModelMergerResults(current, desired, definitionContainer, { siblingModels });\n const newModels = [];\n const resultIds = {};\n // Apply model mergers in order\n for (const [key, result] of Object.entries(results)) {\n if (result) {\n const model = result.isNewModel\n ? createNewModelConfigInput(result.name, result.featureRef, result.id)\n : ModelUtils.byIdOrThrow(definitionContainer.definition, result.id);\n applyModelMergerResultInPlace(draftConfig, model, result, definitionContainer, {\n siblingModels: newModels,\n });\n const newModel = draftConfig.models.find((m) => m.id === result.id);\n if (newModel) {\n newModels.push(newModel);\n }\n resultIds[key] = model.id;\n }\n else {\n resultIds[key] = desired[key].name;\n }\n }\n return resultIds;\n}\n//# sourceMappingURL=model-merger.js.map"],"names":["z"],"mappings":";;;AAAO,SAAS,2BAA2B,CAAC,IAAI,EAAE,cAAc,EAAE;AAClE,IAAI,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE;AACnC;AACO,SAAS,gBAAgB,CAAC,IAAI,EAAE,OAAO,EAAE;AAChD,IAAI,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,GAAG,OAAO,IAAI,EAAE;AAC3D,IAAI,OAAO;AACX,Q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,CAAC,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,mBAAmB,EAAE;AAC3F,gBAAgB,aAAa,EAAE,SAAS;AACxC,aAAa,CAAC;AACd,YAAY,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,CAAC;AAC/E,YAAY,IAAI,QAAQ,EAAE;AAC1B,gBAAgB,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;AACxC;AACA,YAAY,SAAS,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,EAAE;AACrC;AACA,aAAa;AACb,YAAY,SAAS,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI;AAC9C;AACA;AACA,IAAI,OAAO,SAAS;AACpB;;;;","x_google_ignoreList":[1,2,3,4,5,6,7,8,14,15,16,17,18,19,20,21]}
@@ -0,0 +1,19 @@
1
+ import { importShared } from './__federation_fn_import-DReOsou_.js';
2
+
3
+ const {definitionSchema,modelEntityType} = await importShared('@baseplate-dev/project-builder-lib');
4
+
5
+ const {z} = await importShared('zod');
6
+
7
+ const createAuth0PluginDefinitionSchema = definitionSchema(
8
+ (ctx) => z.object({
9
+ modelRefs: z.object({
10
+ user: ctx.withRef({
11
+ type: modelEntityType,
12
+ onDelete: "RESTRICT"
13
+ })
14
+ })
15
+ })
16
+ );
17
+
18
+ export { createAuth0PluginDefinitionSchema as c };
19
+ //# sourceMappingURL=plugin-definition-C935Xf1h.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-definition-C935Xf1h.js","sources":["../../../src/auth0/core/schema/plugin-definition.ts"],"sourcesContent":["import type { def } from '@baseplate-dev/project-builder-lib';\n\nimport {\n definitionSchema,\n modelEntityType,\n} from '@baseplate-dev/project-builder-lib';\nimport { z } from 'zod';\n\nexport const createAuth0PluginDefinitionSchema = definitionSchema((ctx) =>\n z.object({\n modelRefs: z.object({\n user: ctx.withRef({\n type: modelEntityType,\n onDelete: 'RESTRICT',\n }),\n }),\n }),\n);\n\nexport type Auth0PluginDefinition = def.InferOutput<\n typeof createAuth0PluginDefinitionSchema\n>;\n\nexport type Auth0PluginDefinitionInput = def.InferInput<\n typeof createAuth0PluginDefinitionSchema\n>;\n"],"names":[],"mappings":";;AAEA,MAAA,CAAA,gBAAA,CAAA,eAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;;AAIA,MAAA,CAAA,CAAA,CAAA,GAAA,MAAA,YAAA,CAAA,KAAA,CAAA;;AAEO,MAAM,iCAAoC,GAAA,gBAAA;AAAA,EAAiB,CAAC,GACjE,KAAA,CAAA,CAAE,MAAO,CAAA;AAAA,IACP,SAAA,EAAW,EAAE,MAAO,CAAA;AAAA,MAClB,IAAA,EAAM,IAAI,OAAQ,CAAA;AAAA,QAChB,IAAM,EAAA,eAAA;AAAA,QACN,QAAU,EAAA;AAAA,OACX;AAAA,KACF;AAAA,GACF;AACH;;;;"}
@@ -0,0 +1,40 @@
1
+ import { importShared } from './__federation_fn_import-DReOsou_.js';
2
+
3
+ const {authRoleEntityType,definitionSchema,modelEntityType} = await importShared('@baseplate-dev/project-builder-lib');
4
+
5
+ const {z} = await importShared('zod');
6
+
7
+ const createLocalAuthPluginDefinitionSchema = definitionSchema(
8
+ (ctx) => z.object({
9
+ modelRefs: z.object({
10
+ user: ctx.withRef({
11
+ type: modelEntityType,
12
+ onDelete: "RESTRICT"
13
+ }),
14
+ userAccount: ctx.withRef({
15
+ type: modelEntityType,
16
+ onDelete: "RESTRICT"
17
+ }),
18
+ userRole: ctx.withRef({
19
+ type: modelEntityType,
20
+ onDelete: "RESTRICT"
21
+ }),
22
+ userSession: ctx.withRef({
23
+ type: modelEntityType,
24
+ onDelete: "RESTRICT"
25
+ })
26
+ }),
27
+ initialUserRoles: ctx.withDefault(
28
+ z.array(
29
+ ctx.withRef({
30
+ type: authRoleEntityType,
31
+ onDelete: "DELETE"
32
+ })
33
+ ),
34
+ []
35
+ )
36
+ })
37
+ );
38
+
39
+ export { createLocalAuthPluginDefinitionSchema as c };
40
+ //# sourceMappingURL=plugin-definition-ChUKIqUg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-definition-ChUKIqUg.js","sources":["../../../src/local-auth/core/schema/plugin-definition.ts"],"sourcesContent":["import type { def } from '@baseplate-dev/project-builder-lib';\n\nimport {\n authRoleEntityType,\n definitionSchema,\n modelEntityType,\n} from '@baseplate-dev/project-builder-lib';\nimport { z } from 'zod';\n\nexport const createLocalAuthPluginDefinitionSchema = definitionSchema((ctx) =>\n z.object({\n modelRefs: z.object({\n user: ctx.withRef({\n type: modelEntityType,\n onDelete: 'RESTRICT',\n }),\n userAccount: ctx.withRef({\n type: modelEntityType,\n onDelete: 'RESTRICT',\n }),\n userRole: ctx.withRef({\n type: modelEntityType,\n onDelete: 'RESTRICT',\n }),\n userSession: ctx.withRef({\n type: modelEntityType,\n onDelete: 'RESTRICT',\n }),\n }),\n initialUserRoles: ctx.withDefault(\n z.array(\n ctx.withRef({\n type: authRoleEntityType,\n onDelete: 'DELETE',\n }),\n ),\n [],\n ),\n }),\n);\n\nexport type LocalAuthPluginDefinition = def.InferOutput<\n typeof createLocalAuthPluginDefinitionSchema\n>;\n\nexport type LocalAuthPluginDefinitionInput = def.InferInput<\n typeof createLocalAuthPluginDefinitionSchema\n>;\n"],"names":[],"mappings":";;AAEA,MAAA,CAAA,kBAAA,CAAA,gBAAA,CAAA,eAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;;AAKA,MAAA,CAAA,CAAA,CAAA,GAAA,MAAA,YAAA,CAAA,KAAA,CAAA;;AAEO,MAAM,qCAAwC,GAAA,gBAAA;AAAA,EAAiB,CAAC,GACrE,KAAA,CAAA,CAAE,MAAO,CAAA;AAAA,IACP,SAAA,EAAW,EAAE,MAAO,CAAA;AAAA,MAClB,IAAA,EAAM,IAAI,OAAQ,CAAA;AAAA,QAChB,IAAM,EAAA,eAAA;AAAA,QACN,QAAU,EAAA;AAAA,OACX,CAAA;AAAA,MACD,WAAA,EAAa,IAAI,OAAQ,CAAA;AAAA,QACvB,IAAM,EAAA,eAAA;AAAA,QACN,QAAU,EAAA;AAAA,OACX,CAAA;AAAA,MACD,QAAA,EAAU,IAAI,OAAQ,CAAA;AAAA,QACpB,IAAM,EAAA,eAAA;AAAA,QACN,QAAU,EAAA;AAAA,OACX,CAAA;AAAA,MACD,WAAA,EAAa,IAAI,OAAQ,CAAA;AAAA,QACvB,IAAM,EAAA,eAAA;AAAA,QACN,QAAU,EAAA;AAAA,OACX;AAAA,KACF,CAAA;AAAA,IACD,kBAAkB,GAAI,CAAA,WAAA;AAAA,MACpB,CAAE,CAAA,KAAA;AAAA,QACA,IAAI,OAAQ,CAAA;AAAA,UACV,IAAM,EAAA,kBAAA;AAAA,UACN,QAAU,EAAA;AAAA,SACX;AAAA,OACH;AAAA,MACA;AAAC;AACH,GACD;AACH;;;;"}
@@ -0,0 +1,86 @@
1
+ import { importShared } from './__federation_fn_import-DReOsou_.js';
2
+
3
+ const {authRoleEntityType: authRoleEntityType$1} = await importShared('@baseplate-dev/project-builder-lib');
4
+
5
+ const AUTH_DEFAULT_ROLES = [
6
+ {
7
+ name: "public",
8
+ comment: "All users (including unauthenticated and authenticated users)",
9
+ builtIn: true
10
+ },
11
+ {
12
+ name: "user",
13
+ comment: "All authenticated users",
14
+ builtIn: true
15
+ },
16
+ {
17
+ name: "system",
18
+ comment: "System processes without a user context, e.g. background jobs",
19
+ builtIn: true
20
+ }
21
+ ];
22
+ function createDefaultAuthRoles() {
23
+ return AUTH_DEFAULT_ROLES.map((role) => ({
24
+ ...role,
25
+ id: authRoleEntityType$1.generateNewId()
26
+ }));
27
+ }
28
+
29
+ const {authRoleEntityType,definitionSchema: definitionSchema$1} = await importShared('@baseplate-dev/project-builder-lib');
30
+
31
+ const {z: z$1} = await importShared('zod');
32
+ const createAuthRoleSchema = definitionSchema$1(
33
+ (ctx) => ctx.withEnt(
34
+ z$1.object({
35
+ id: z$1.string(),
36
+ name: z$1.string().min(1),
37
+ comment: z$1.string().min(1),
38
+ builtIn: z$1.boolean().default(false)
39
+ }),
40
+ { type: authRoleEntityType }
41
+ )
42
+ );
43
+ const createAuthRolesSchema = definitionSchema$1(
44
+ (ctx) => z$1.array(createAuthRoleSchema(ctx)).superRefine((roles, ctx2) => {
45
+ const dup = roles.map((r) => r.name).filter((v, i, a) => a.indexOf(v) !== i);
46
+ if (dup.length > 0) {
47
+ ctx2.addIssue({
48
+ code: z$1.ZodIssueCode.custom,
49
+ message: `Duplicate role name(s): ${dup.join(", ")}`
50
+ });
51
+ }
52
+ }).transform((roles) => [
53
+ ...AUTH_DEFAULT_ROLES.map((r) => {
54
+ const existingRole = roles.find((role) => role.name === r.name);
55
+ return existingRole ? {
56
+ ...existingRole,
57
+ builtIn: true
58
+ } : {
59
+ ...r,
60
+ builtIn: true,
61
+ id: authRoleEntityType.generateNewId()
62
+ };
63
+ }),
64
+ // Filter out the built-in roles
65
+ ...roles.filter(
66
+ (r) => !AUTH_DEFAULT_ROLES.map((v) => v.name).includes(r.name)
67
+ )
68
+ ])
69
+ );
70
+
71
+ const {definitionSchema,featureEntityType} = await importShared('@baseplate-dev/project-builder-lib');
72
+
73
+ const {z} = await importShared('zod');
74
+ const createAuthPluginDefinitionSchema = definitionSchema(
75
+ (ctx) => z.object({
76
+ implementationPluginKey: z.string().min(1, "Auth implementation plugin must be selected"),
77
+ authFeatureRef: ctx.withRef({
78
+ type: featureEntityType,
79
+ onDelete: "RESTRICT"
80
+ }),
81
+ roles: createAuthRolesSchema(ctx)
82
+ })
83
+ );
84
+
85
+ export { createAuthPluginDefinitionSchema as a, createDefaultAuthRoles as b, createAuthRoleSchema as c };
86
+ //# sourceMappingURL=plugin-definition-DH4QyCfv.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-definition-DH4QyCfv.js","sources":["../../../src/auth/core/schema/roles/constants.ts","../../../src/auth/core/schema/roles/schema.ts","../../../src/auth/core/schema/plugin-definition.ts"],"sourcesContent":["import { authRoleEntityType } from '@baseplate-dev/project-builder-lib';\n\nimport type { AuthRoleDefinition } from './schema.js';\n\nexport const AUTH_DEFAULT_ROLES: Omit<AuthRoleDefinition, 'id'>[] = [\n {\n name: 'public',\n comment: 'All users (including unauthenticated and authenticated users)',\n builtIn: true,\n },\n {\n name: 'user',\n comment: 'All authenticated users',\n builtIn: true,\n },\n {\n name: 'system',\n comment: 'System processes without a user context, e.g. background jobs',\n builtIn: true,\n },\n];\n\nexport function createDefaultAuthRoles(): AuthRoleDefinition[] {\n return AUTH_DEFAULT_ROLES.map((role) => ({\n ...role,\n id: authRoleEntityType.generateNewId(),\n }));\n}\n","import type { def } from '@baseplate-dev/project-builder-lib';\n\nimport {\n authRoleEntityType,\n definitionSchema,\n} from '@baseplate-dev/project-builder-lib';\nimport { z } from 'zod';\n\nimport { AUTH_DEFAULT_ROLES } from './constants.js';\n\nexport const createAuthRoleSchema = definitionSchema((ctx) =>\n ctx.withEnt(\n z.object({\n id: z.string(),\n name: z.string().min(1),\n comment: z.string().min(1),\n builtIn: z.boolean().default(false),\n }),\n { type: authRoleEntityType },\n ),\n);\n\n/**\n * Defines the schema for a role.\n */\nexport type AuthRoleDefinition = def.InferOutput<typeof createAuthRoleSchema>;\n\nexport type AuthRoleInput = def.InferInput<typeof createAuthRoleSchema>;\n\n/**\n * Defines the schema for an array of roles ensuring that there are no duplicate\n * role names and that the built-in roles are included.\n */\nexport const createAuthRolesSchema = definitionSchema((ctx) =>\n z\n .array(createAuthRoleSchema(ctx))\n .superRefine((roles, ctx) => {\n const dup = roles\n .map((r) => r.name)\n .filter((v, i, a) => a.indexOf(v) !== i);\n if (dup.length > 0) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: `Duplicate role name(s): ${dup.join(', ')}`,\n });\n }\n })\n .transform((roles) => [\n ...AUTH_DEFAULT_ROLES.map((r) => {\n const existingRole = roles.find((role) => role.name === r.name);\n return existingRole\n ? {\n ...existingRole,\n builtIn: true,\n }\n : {\n ...r,\n builtIn: true,\n id: authRoleEntityType.generateNewId(),\n };\n }),\n // Filter out the built-in roles\n ...roles.filter(\n (r) => !AUTH_DEFAULT_ROLES.map((v) => v.name).includes(r.name),\n ),\n ]),\n);\n","import type { def } from '@baseplate-dev/project-builder-lib';\n\nimport {\n definitionSchema,\n featureEntityType,\n} from '@baseplate-dev/project-builder-lib';\nimport { z } from 'zod';\n\nimport { createAuthRolesSchema } from './roles/index.js';\n\nexport const createAuthPluginDefinitionSchema = definitionSchema((ctx) =>\n z.object({\n implementationPluginKey: z\n .string()\n .min(1, 'Auth implementation plugin must be selected'),\n authFeatureRef: ctx.withRef({\n type: featureEntityType,\n onDelete: 'RESTRICT',\n }),\n roles: createAuthRolesSchema(ctx),\n }),\n);\n\nexport type AuthPluginDefinition = def.InferOutput<\n typeof createAuthPluginDefinitionSchema\n>;\n\nexport type AuthPluginDefinitionInput = def.InferInput<\n typeof createAuthPluginDefinitionSchema\n>;\n"],"names":["authRoleEntityType","definitionSchema","z","ctx"],"mappings":";;AAAA,MAAA,qBAAAA,oBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;;AAIO,MAAM,kBAAuD,GAAA;AAAA,EAClE;AAAA,IACE,IAAM,EAAA,QAAA;AAAA,IACN,OAAS,EAAA,+DAAA;AAAA,IACT,OAAS,EAAA;AAAA,GACX;AAAA,EACA;AAAA,IACE,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,yBAAA;AAAA,IACT,OAAS,EAAA;AAAA,GACX;AAAA,EACA;AAAA,IACE,IAAM,EAAA,QAAA;AAAA,IACN,OAAS,EAAA,+DAAA;AAAA,IACT,OAAS,EAAA;AAAA;AAEb,CAAA;AAEO,SAAS,sBAA+C,GAAA;AAC7D,EAAO,OAAA,kBAAA,CAAmB,GAAI,CAAA,CAAC,IAAU,MAAA;AAAA,IACvC,GAAG,IAAA;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ityType} = await importShared('@baseplate-dev/project-builder-lib');
4
+
5
+ const {z} = await importShared('zod');
6
+
7
+ const createPlaceholderAuthPluginDefinitionSchema = definitionSchema(
8
+ (ctx) => z.object({
9
+ modelRefs: z.object({
10
+ user: ctx.withRef({
11
+ type: modelEntityType,
12
+ onDelete: "RESTRICT"
13
+ })
14
+ })
15
+ })
16
+ );
17
+
18
+ export { createPlaceholderAuthPluginDefinitionSchema as c };
19
+ //# sourceMappingURL=plugin-definition-PCHsX2lR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-definition-PCHsX2lR.js","sources":["../../../src/placeholder-auth/core/schema/plugin-definition.ts"],"sourcesContent":["import type { def } from '@baseplate-dev/project-builder-lib';\n\nimport {\n definitionSchema,\n modelEntityType,\n} from '@baseplate-dev/project-builder-lib';\nimport { z } from 'zod';\n\nexport const createPlaceholderAuthPluginDefinitionSchema = definitionSchema(\n (ctx) =>\n z.object({\n modelRefs: z.object({\n user: ctx.withRef({\n type: modelEntityType,\n onDelete: 'RESTRICT',\n }),\n }),\n }),\n);\n\nexport type PlaceholderAuthPluginDefinition = def.InferOutput<\n typeof createPlaceholderAuthPluginDefinitionSchema\n>;\n"],"names":[],"mappings":";;AAEA,MAAA,CAAA,gBAAA,CAAA,eAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;;AAIA,MAAA,CAAA,CAAA,CAAA,GAAA,MAAA,YAAA,CAAA,KAAA,CAAA;;AAEO,MAAM,2CAA8C,GAAA,gBAAA;AAAA,EACzD,CAAC,GACC,KAAA,CAAA,CAAE,MAAO,CAAA;AAAA,IACP,SAAA,EAAW,EAAE,MAAO,CAAA;AAAA,MAClB,IAAA,EAAM,IAAI,OAAQ,CAAA;AAAA,QAChB,IAAM,EAAA,eAAA;AAAA,QACN,QAAU,EAAA;AAAA,OACX;AAAA,KACF;AAAA,GACF;AACL;;;;"}
@@ -1,4 +1,4 @@
1
- import { importShared } from './__federation_fn_import-BDimcZUI.js';
1
+ import { importShared } from './__federation_fn_import-DReOsou_.js';
2
2
 
3
3
  const createStoreImpl = (createState) => {
4
4
  let state;
@@ -44,4 +44,4 @@ const createImpl = (createState) => {
44
44
  const create = (createState) => createState ? createImpl(createState) : createImpl;
45
45
 
46
46
  export { create as c };
47
- //# sourceMappingURL=react-BLL9qrdY.js.map
47
+ //# sourceMappingURL=react-ecPihYHK.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-BLL9qrdY.js","sources":["../../../../../node_modules/.pnpm/zustand@5.0.3_@types+react@19.1.3_immer@10.1.1_react@19.1.0_use-sync-external-store@1.5.0_react@19.1.0_/node_modules/zustand/esm/vanilla.mjs","../../../../../node_modules/.pnpm/zustand@5.0.3_@types+react@19.1.3_immer@10.1.1_react@19.1.0_use-sync-external-store@1.5.0_react@19.1.0_/node_modules/zustand/esm/react.mjs"],"sourcesContent":["const createStoreImpl = (createState) => {\n let state;\n const listeners = /* @__PURE__ */ new Set();\n const setState = (partial, replace) => {\n const nextState = typeof partial === \"function\" ? partial(state) : partial;\n if (!Object.is(nextState, state)) {\n const previousState = state;\n state = (replace != null ? replace : typeof nextState !== \"object\" || nextState === null) ? nextState : Object.assign({}, state, nextState);\n listeners.forEach((listener) => listener(state, previousState));\n }\n };\n const getState = () => state;\n const getInitialState = () => initialState;\n const subscribe = (listener) => {\n listeners.add(listener);\n return () => listeners.delete(listener);\n };\n const api = { setState, getState, getInitialState, subscribe };\n const initialState = state = createState(setState, getState, api);\n return api;\n};\nconst createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;\n\nexport { createStore };\n","import React from 'react';\nimport { createStore } from 'zustand/vanilla';\n\nconst identity = (arg) => arg;\nfunction useStore(api, selector = identity) {\n const slice = React.useSyncExternalStore(\n api.subscribe,\n () => selector(api.getState()),\n () => selector(api.getInitialState())\n );\n React.useDebugValue(slice);\n return slice;\n}\nconst createImpl = (createState) => {\n const api = createStore(createState);\n const useBoundStore = (selector) => useStore(api, selector);\n Object.assign(useBoundStore, api);\n return useBoundStore;\n};\nconst create = (createState) => createState ? createImpl(createState) : createImpl;\n\nexport { create, useStore };\n"],"names":[],"mappings":";;AAAA,MAAM,eAAe,GAAG,CAAC,WAAW,KAAK;AACzC,EAAE,IAAI,KAAK;AACX,EAAE,MAAM,SAAS,mBAAmB,IAAI,GAAG,EAAE;AAC7C,EAAE,MAAM,QAAQ,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK;AACzC,IAAI,MAAM,SAAS,GAAG,OAAO,OAAO,KAAK,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,OAAO;AAC9E,IAAI,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC,EAAE;AACtC,MAAM,MAAM,aAAa,GAAG,KAAK;AACjC,MAAM,KAAK,GAAG,CAAC,OAAO,IAAI,IAAI,GAAG,OAAO,GAAG,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,IAAI,IAAI,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC;AACjJ,MAAM,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;AACrE;AACA,GAAG;AACH,EAAE,MAAM,QAAQ,GAAG,MAAM,KAAK;AAC9B,EAAE,MAAM,eAAe,GAAG,MAAM,YAAY;AAC5C,EAAE,MAAM,SAAS,GAAG,CAAC,QAAQ,KAAK;AAClC,IAAI,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC;AAC3B,IAAI,OAAO,MAAM,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC;AAC3C,GAAG;AACH,EAAE,MAAM,GAAG,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE;AAChE,EAAE,MAAM,YAAY,GAAG,KAAK,GAAG,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE,GAAG,CAAC;AACnE,EAAE,OAAO,GAAG;AACZ,CAAC;AACD,MAAM,WAAW,GAAG,CAAC,WAAW,KAAK,WAAW,GAAG,eAAe,CAAC,WAAW,CAAC,GAAG,eAAe;;ACrBjG,MAAA,KAAA,GAAA,MAAA,YAAA,CAAA,OAAA,CAAA;;AAGA,MAAM,QAAQ,GAAG,CAAC,GAAG,KAAK,GAAG;AAC7B,SAAS,QAAQ,CAAC,GAAG,EAAE,QAAQ,GAAG,QAAQ,EAAE;AAC5C,EAAE,MAAM,KAAK,GAAG,KAAK,CAAC,oBAAoB;AAC1C,IAAI,GAAG,CAAC,SAAS;AACjB,IAAI,MAAM,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;AAClC,IAAI,MAAM,QAAQ,CAAC,GAAG,CAAC,eAAe,EAAE;AACxC,GAAG;AACH,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC;AAC5B,EAAE,OAAO,KAAK;AACd;AACA,MAAM,UAAU,GAAG,CAAC,WAAW,KAAK;AACpC,EAAE,MAAM,GAAG,GAAG,WAAW,CAAC,WAAW,CAAC;AACtC,EAAE,MAAM,aAAa,GAAG,CAAC,QAAQ,KAAK,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC;AAC7D,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,GAAG,CAAC;AACnC,EAAE,OAAO,aAAa;AACtB,CAAC;AACI,MAAC,MAAM,GAAG,CAAC,WAAW,KAAK,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC,GAAG;;;;","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"react-ecPihYHK.js","sources":["../../../../../node_modules/.pnpm/zustand@5.0.3_@types+react@19.1.3_immer@10.1.1_react@19.1.0_use-sync-external-store@1.5.0_react@19.1.0_/node_modules/zustand/esm/vanilla.mjs","../../../../../node_modules/.pnpm/zustand@5.0.3_@types+react@19.1.3_immer@10.1.1_react@19.1.0_use-sync-external-store@1.5.0_react@19.1.0_/node_modules/zustand/esm/react.mjs"],"sourcesContent":["const createStoreImpl = (createState) => {\n let state;\n const listeners = /* @__PURE__ */ new Set();\n const setState = (partial, replace) => {\n const nextState = typeof partial === \"function\" ? partial(state) : partial;\n if (!Object.is(nextState, state)) {\n const previousState = state;\n state = (replace != null ? replace : typeof nextState !== \"object\" || nextState === null) ? nextState : Object.assign({}, state, nextState);\n listeners.forEach((listener) => listener(state, previousState));\n }\n };\n const getState = () => state;\n const getInitialState = () => initialState;\n const subscribe = (listener) => {\n listeners.add(listener);\n return () => listeners.delete(listener);\n };\n const api = { setState, getState, getInitialState, subscribe };\n const initialState = state = createState(setState, getState, api);\n return api;\n};\nconst createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;\n\nexport { createStore };\n","import React from 'react';\nimport { createStore } from 'zustand/vanilla';\n\nconst identity = (arg) => arg;\nfunction useStore(api, selector = identity) {\n const slice = React.useSyncExternalStore(\n api.subscribe,\n () => selector(api.getState()),\n () => selector(api.getInitialState())\n );\n React.useDebugValue(slice);\n return slice;\n}\nconst createImpl = (createState) => {\n const api = createStore(createState);\n const useBoundStore = (selector) => useStore(api, selector);\n Object.assign(useBoundStore, api);\n return useBoundStore;\n};\nconst create = (createState) => createState ? createImpl(createState) : createImpl;\n\nexport { create, useStore };\n"],"names":[],"mappings":";;AAAA,MAAM,eAAe,GAAG,CAAC,WAAW,KAAK;AACzC,EAAE,IAAI,KAAK;AACX,EAAE,MAAM,SAAS,mBAAmB,IAAI,GAAG,EAAE;AAC7C,EAAE,MAAM,QAAQ,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK;AACzC,IAAI,MAAM,SAAS,GAAG,OAAO,OAAO,KAAK,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,OAAO;AAC9E,IAAI,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC,EAAE;AACtC,MAAM,MAAM,aAAa,GAAG,KAAK;AACjC,MAAM,KAAK,GAAG,CAAC,OAAO,IAA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KAAK,CAAC,aAAa,CAAC,KAAK,CAAC;AAC5B,EAAE,OAAO,KAAK;AACd;AACA,MAAM,UAAU,GAAG,CAAC,WAAW,KAAK;AACpC,EAAE,MAAM,GAAG,GAAG,WAAW,CAAC,WAAW,CAAC;AACtC,EAAE,MAAM,aAAa,GAAG,CAAC,QAAQ,KAAK,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC;AAC7D,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,GAAG,CAAC;AACnC,EAAE,OAAO,aAAa;AACtB,CAAC;AACI,MAAC,MAAM,GAAG,CAAC,WAAW,KAAK,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC,GAAG;;;;","x_google_ignoreList":[0,1]}
@@ -2,23 +2,29 @@ const currentImports = {};
2
2
  const exportSet = new Set(['Module', '__esModule', 'default', '_export_sfc']);
3
3
  let moduleMap = {
4
4
  "auth/core/web":()=>{
5
- dynamicLoadingCss(["style-ZUYizAnf.css"], false, 'auth/core/web');
6
- return __federation_import('./__federation_expose_authCoreWeb-CGWfg0Fb.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
5
+ dynamicLoadingCss(["style-BhUCMIWI.css"], false, 'auth/core/web');
6
+ return __federation_import('./__federation_expose_authCoreWeb-CJxY8hZC.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
7
7
  "auth/core/common":()=>{
8
- dynamicLoadingCss(["style-ZUYizAnf.css"], false, 'auth/core/common');
9
- return __federation_import('./__federation_expose_authCoreCommon-LrPwgIpw.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
8
+ dynamicLoadingCss(["style-BhUCMIWI.css"], false, 'auth/core/common');
9
+ return __federation_import('./__federation_expose_authCoreCommon-C5cVmNCH.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
10
10
  "auth0/core/web":()=>{
11
- dynamicLoadingCss(["style-ZUYizAnf.css"], false, 'auth0/core/web');
12
- return __federation_import('./__federation_expose_auth0CoreWeb-VnxlQY01.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
11
+ dynamicLoadingCss(["style-BhUCMIWI.css"], false, 'auth0/core/web');
12
+ return __federation_import('./__federation_expose_auth0CoreWeb-5F0rTNis.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
13
13
  "auth0/core/common":()=>{
14
- dynamicLoadingCss(["style-ZUYizAnf.css"], false, 'auth0/core/common');
15
- return __federation_import('./__federation_expose_auth0CoreCommon-BXcKWfCq.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
14
+ dynamicLoadingCss(["style-BhUCMIWI.css"], false, 'auth0/core/common');
15
+ return __federation_import('./__federation_expose_auth0CoreCommon-lV5QSzvf.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
16
+ "local-auth/core/web":()=>{
17
+ dynamicLoadingCss(["style-BhUCMIWI.css"], false, 'local-auth/core/web');
18
+ return __federation_import('./__federation_expose_local-authCoreWeb-B5iBudnh.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
19
+ "local-auth/core/common":()=>{
20
+ dynamicLoadingCss(["style-BhUCMIWI.css"], false, 'local-auth/core/common');
21
+ return __federation_import('./__federation_expose_local-authCoreCommon-Dr_ngV2l.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
16
22
  "placeholder-auth/core/web":()=>{
17
- dynamicLoadingCss(["style-ZUYizAnf.css"], false, 'placeholder-auth/core/web');
18
- return __federation_import('./__federation_expose_placeholder-authCoreWeb-BunerD5g.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
23
+ dynamicLoadingCss(["style-BhUCMIWI.css"], false, 'placeholder-auth/core/web');
24
+ return __federation_import('./__federation_expose_placeholder-authCoreWeb-DbI_bZsk.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
19
25
  "placeholder-auth/core/common":()=>{
20
- dynamicLoadingCss(["style-ZUYizAnf.css"], false, 'placeholder-auth/core/common');
21
- return __federation_import('./__federation_expose_placeholder-authCoreCommon-DCZZPRb7.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},};
26
+ dynamicLoadingCss(["style-BhUCMIWI.css"], false, 'placeholder-auth/core/common');
27
+ return __federation_import('./__federation_expose_placeholder-authCoreCommon-l8knzO7I.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},};
22
28
  const seen = {};
23
29
  const dynamicLoadingCss = (cssFilePaths, dontAppendStylesToHead, exposeItemName) => {
24
30
  const metaUrl = import.meta.url;
@@ -1 +1 @@
1
- {"version":3,"file":"remoteEntry.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"remoteEntry.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,34 @@
1
+ function compareValues(a, b, order) {
2
+ if (a < b) {
3
+ return order === 'asc' ? -1 : 1;
4
+ }
5
+ if (a > b) {
6
+ return order === 'asc' ? 1 : -1;
7
+ }
8
+ return 0;
9
+ }
10
+
11
+ function orderBy(arr, criteria, orders) {
12
+ return arr.slice().sort((a, b) => {
13
+ const ordersLength = orders.length;
14
+ for (let i = 0; i < criteria.length; i++) {
15
+ const order = ordersLength > i ? orders[i] : orders[ordersLength - 1];
16
+ const criterion = criteria[i];
17
+ const criterionIsFunction = typeof criterion === 'function';
18
+ const valueA = criterionIsFunction ? criterion(a) : a[criterion];
19
+ const valueB = criterionIsFunction ? criterion(b) : b[criterion];
20
+ const result = compareValues(valueA, valueB, order);
21
+ if (result !== 0) {
22
+ return result;
23
+ }
24
+ }
25
+ return 0;
26
+ });
27
+ }
28
+
29
+ function sortBy(arr, criteria) {
30
+ return orderBy(arr, criteria, ['asc']);
31
+ }
32
+
33
+ export { sortBy as s };
34
+ //# sourceMappingURL=sortBy-BPH_zRB8.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sortBy-BPH_zRB8.js","sources":["../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/_internal/compareValues.mjs","../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/array/orderBy.mjs","../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/array/sortBy.mjs"],"sourcesContent":["function compareValues(a, b, order) {\n if (a < b) {\n return order === 'asc' ? -1 : 1;\n }\n if (a > b) {\n return order === 'asc' ? 1 : -1;\n }\n return 0;\n}\n\nexport { compareValues };\n","import { compareValues } from '../_internal/compareValues.mjs';\n\nfunction orderBy(arr, criteria, orders) {\n return arr.slice().sort((a, b) => {\n const ordersLength = orders.length;\n for (let i = 0; i < criteria.length; i++) {\n const order = ordersLength > i ? orders[i] : orders[ordersLength - 1];\n const criterion = criteria[i];\n const criterionIsFunction = typeof criterion === 'function';\n const valueA = criterionIsFunction ? criterion(a) : a[criterion];\n const valueB = criterionIsFunction ? criterion(b) : b[criterion];\n const result = compareValues(valueA, valueB, order);\n if (result !== 0) {\n return result;\n }\n }\n return 0;\n });\n}\n\nexport { orderBy };\n","import { orderBy } from './orderBy.mjs';\n\nfunction sortBy(arr, criteria) {\n return orderBy(arr, criteria, ['asc']);\n}\n\nexport { sortBy };\n"],"names":[],"mappings":"AAAA,SAAS,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE;AACpC,IAAI,IAAI,CAAC,GAAG,CAAC,EAAE;AACf,QAAQ,OAAO,KAAK,KAAK,KAAK,GAAG,EAAE,GAAG,CAAC;AACvC;AACA,IAAI,IAAI,CAAC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