@baseplate-dev/plugin-auth 1.0.6 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +21 -32
  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 +12 -11
  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 +7 -10
  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-DjVw47sM.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-CrFEmZp3.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-CpxfTdxv.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-CGvRdRVe.js → __federation_fn_import-DReOsou_.js} +2 -2
  441. package/dist/web/assets/{__federation_fn_import-CGvRdRVe.js.map → __federation_fn_import-DReOsou_.js.map} +1 -1
  442. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-D1kBtwsm.js → web-BlPKO2K7.js} +7 -5
  443. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-D1kBtwsm.js.map → web-BlPKO2K7.js.map} +1 -1
  444. package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-B7442OYh.js → project-builder-lib-CGEZr0YI.js} +232 -614
  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-X318M5Ml.js → ui-components-RO_rk4f0.js} +2224 -2030
  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-ydDQKauE.js → index-BkOJzK_m.js} +3 -3
  461. package/dist/web/assets/{index-ydDQKauE.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-DYWXRkn-.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-BVBtbNAj.js → model-merger-BLEOsCIp.js} +9 -321
  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-B23vKoD0.js → react-ecPihYHK.js} +2 -2
  481. package/dist/web/assets/{react-B23vKoD0.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-CSWdt8d_.js +0 -56
  684. package/dist/web/assets/__federation_expose_auth0CoreCommon-CSWdt8d_.js.map +0 -1
  685. package/dist/web/assets/__federation_expose_auth0CoreWeb-DjVw47sM.js.map +0 -1
  686. package/dist/web/assets/__federation_expose_authCoreCommon-CvHJZFIq.js +0 -36
  687. package/dist/web/assets/__federation_expose_authCoreCommon-CvHJZFIq.js.map +0 -1
  688. package/dist/web/assets/__federation_expose_authCoreWeb-CrFEmZp3.js.map +0 -1
  689. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CmkiEJ6z.js +0 -39
  690. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CmkiEJ6z.js.map +0 -1
  691. package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-CpxfTdxv.js.map +0 -1
  692. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-B7442OYh.js.map +0 -1
  693. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-X318M5Ml.js.map +0 -1
  694. package/dist/web/assets/__federation_shared_react-uocnGSER.js +0 -7
  695. package/dist/web/assets/index.esm-DYWXRkn-.js.map +0 -1
  696. package/dist/web/assets/model-merger-BVBtbNAj.js.map +0 -1
  697. package/dist/web/assets/plugin-definition-Bdhuga1j.js +0 -36
  698. package/dist/web/assets/plugin-definition-Bdhuga1j.js.map +0 -1
  699. package/dist/web/assets/plugin-definition-C9d7ykhX.js +0 -24
  700. package/dist/web/assets/plugin-definition-C9d7ykhX.js.map +0 -1
  701. package/dist/web/assets/plugin-definition-QzgXWr1I.js +0 -24
  702. package/dist/web/assets/plugin-definition-QzgXWr1I.js.map +0 -1
  703. package/dist/web/assets/role-editor-form-BkcoVwtU.js +0 -319
  704. package/dist/web/assets/role-editor-form-BkcoVwtU.js.map +0 -1
  705. package/dist/web/assets/styles-Dfjm_ApH.js +0 -201
  706. package/dist/web/assets/styles-Dfjm_ApH.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
@@ -1,319 +0,0 @@
1
- import { importShared } from './__federation_fn_import-CGvRdRVe.js';
2
- import { g as get, s as set, c as appendErrors, d as useFieldArray$1, a as useForm, j as jsxRuntimeExports, e as useWatch } from './index.esm-DYWXRkn-.js';
3
- import { n as MdEdit, o as MdDeleteOutline, p as MdAdd } from './index-ydDQKauE.js';
4
-
5
- const r=(t,r,o)=>{if(t&&"reportValidity"in t){const s=get(o,r);t.setCustomValidity(s&&s.message||""),t.reportValidity();}},o=(e,t)=>{for(const o in t.fields){const s=t.fields[o];s&&s.ref&&"reportValidity"in s.ref?r(s.ref,o,e):s&&s.refs&&s.refs.forEach(t=>r(t,o,e));}},s$1=(r,s)=>{s.shouldUseNativeValidation&&o(r,s);const n={};for(const o in r){const f=get(s.fields,o),c=Object.assign(r[o]||{},{ref:f&&f.ref});if(i(s.names||Object.keys(r),o)){const r=Object.assign({},get(n,o));set(r,"root",c),set(n,o,r);}else set(n,o,c);}return n},i=(e,t)=>{const r=n$1(t);return e.some(e=>n$1(e).match(`^${r}\\.\\d+`))};function n$1(e){return e.replace(/\]|\[/g,"")}
6
-
7
- function n(r,e){for(var n={};r.length;){var s=r[0],t=s.code,i=s.message,a=s.path.join(".");if(!n[a])if("unionErrors"in s){var u=s.unionErrors[0].errors[0];n[a]={message:u.message,type:u.code};}else n[a]={message:i,type:t};if("unionErrors"in s&&s.unionErrors.forEach(function(e){return e.errors.forEach(function(e){return r.push(e)})}),e){var c=n[a].types,f=c&&c[s.code];n[a]=appendErrors(a,e,n,t,f?[].concat(f,s.message):s.message);}r.shift();}return n}function s(o$1,s,t){return void 0===t&&(t={}),function(i,a,u){try{return Promise.resolve(function(e,n){try{var a=Promise.resolve(o$1["sync"===t.mode?"parse":"parseAsync"](i,s)).then(function(e){return u.shouldUseNativeValidation&&o({},u),{errors:{},values:t.raw?Object.assign({},i):e}});}catch(r){return n(r)}return a&&a.then?a.then(void 0,n):a}(0,function(r){if(function(r){return Array.isArray(null==r?void 0:r.errors)}(r))return {values:{},errors:s$1(n(r.errors,!u.shouldUseNativeValidation&&"all"===u.criteriaMode),u)};throw r}))}catch(r){return Promise.reject(r)}}}
8
-
9
- // src/rhf/useFieldArray.ts
10
- const {useMemo} = await importShared('react');
11
- function useFieldArray(props) {
12
- const original = useFieldArray$1(props);
13
- const newFields = useMemo(() => {
14
- if (!props.getTransformer) {
15
- return original.fields;
16
- }
17
- return original.fields.map(props.getTransformer);
18
- }, [original.fields, props.getTransformer]);
19
- return {
20
- fields: newFields,
21
- move: original.move,
22
- remove: original.remove,
23
- swap: original.swap,
24
- prepend: (value, options) => {
25
- if (!props.setTransformer) {
26
- return original.prepend(value, options);
27
- }
28
- const newValue = Array.isArray(value) ? value.map(props.setTransformer) : props.setTransformer(value);
29
- original.prepend(newValue, options);
30
- },
31
- append: (value, options) => {
32
- if (!props.setTransformer) {
33
- return original.append(value, options);
34
- }
35
- const newValue = Array.isArray(value) ? value.map(props.setTransformer) : props.setTransformer(value);
36
- original.append(newValue, options);
37
- },
38
- insert: (index, value, options) => {
39
- if (!props.setTransformer) {
40
- return original.insert(index, value, options);
41
- }
42
- const newValue = Array.isArray(value) ? value.map(props.setTransformer) : props.setTransformer(value);
43
- original.insert(index, newValue, options);
44
- },
45
- update: (index, value) => {
46
- if (!props.setTransformer) {
47
- return original.update(index, value);
48
- }
49
- const newValue = props.setTransformer(value);
50
- original.update(index, newValue);
51
- },
52
- replace: (value) => {
53
- if (!props.setTransformer) {
54
- return original.replace(value);
55
- }
56
- const newValue = props.setTransformer(value);
57
- original.replace(newValue);
58
- }
59
- };
60
- }
61
-
62
- const {authRoleEntityType: authRoleEntityType$2} = await importShared('@baseplate-dev/project-builder-lib');
63
-
64
- const AUTH_DEFAULT_ROLES = [
65
- {
66
- name: "public",
67
- comment: "All users (including unauthenticated and authenticated users)",
68
- builtIn: true
69
- },
70
- {
71
- name: "user",
72
- comment: "All authenticated users",
73
- builtIn: true
74
- },
75
- {
76
- name: "system",
77
- comment: "System processes without a user context, e.g. background jobs",
78
- builtIn: true
79
- }
80
- ];
81
- function createDefaultAuthRoles() {
82
- return AUTH_DEFAULT_ROLES.map((role) => ({
83
- ...role,
84
- id: authRoleEntityType$2.generateNewId()
85
- }));
86
- }
87
-
88
- const {authRoleEntityType: authRoleEntityType$1,definitionSchema} = await importShared('@baseplate-dev/project-builder-lib');
89
-
90
- const {z} = await importShared('zod');
91
- const createAuthRoleSchema = definitionSchema(
92
- (ctx) => ctx.withEnt(
93
- z.object({
94
- id: z.string(),
95
- name: z.string().min(1),
96
- comment: z.string().min(1),
97
- builtIn: z.boolean().default(false)
98
- }),
99
- { type: authRoleEntityType$1 }
100
- )
101
- );
102
- const createAuthRolesSchema = definitionSchema(
103
- (ctx) => z.array(createAuthRoleSchema(ctx)).superRefine((roles, ctx2) => {
104
- const dup = roles.map((r) => r.name).filter((v, i, a) => a.indexOf(v) !== i);
105
- if (dup.length > 0) {
106
- ctx2.addIssue({
107
- code: z.ZodIssueCode.custom,
108
- message: `Duplicate role name(s): ${dup.join(", ")}`
109
- });
110
- }
111
- }).transform((roles) => [
112
- ...AUTH_DEFAULT_ROLES.map((r) => {
113
- const existingRole = roles.find((role) => role.name === r.name);
114
- return existingRole ? {
115
- ...existingRole,
116
- builtIn: true
117
- } : {
118
- ...r,
119
- builtIn: true,
120
- id: authRoleEntityType$1.generateNewId()
121
- };
122
- }),
123
- // Filter out the built-in roles
124
- ...roles.filter(
125
- (r) => !AUTH_DEFAULT_ROLES.map((v) => v.name).includes(r.name)
126
- )
127
- ])
128
- );
129
-
130
- const {useDefinitionSchema} = await importShared('@baseplate-dev/project-builder-lib/web');
131
-
132
- const {Button: Button$1,Dialog,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogTitle,DialogTrigger,InputFieldController} = await importShared('@baseplate-dev/ui-components');
133
- const {useId} = await importShared('react');
134
- function RoleDialog({
135
- open,
136
- onOpenChange,
137
- role,
138
- isNew = false,
139
- onSave,
140
- asChild,
141
- children
142
- }) {
143
- const authRoleSchema = useDefinitionSchema(createAuthRoleSchema);
144
- const form = useForm({
145
- resolver: s(authRoleSchema),
146
- values: role
147
- });
148
- const { control, handleSubmit } = form;
149
- const onSubmit = handleSubmit((data) => {
150
- onSave(data);
151
- onOpenChange?.(false);
152
- });
153
- const formId = useId();
154
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Dialog, { open, onOpenChange, children: [
155
- /* @__PURE__ */ jsxRuntimeExports.jsx(DialogTrigger, { asChild, children }),
156
- /* @__PURE__ */ jsxRuntimeExports.jsx(DialogContent, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
157
- "form",
158
- {
159
- id: formId,
160
- onSubmit: (e) => {
161
- e.stopPropagation();
162
- return onSubmit(e);
163
- },
164
- children: [
165
- /* @__PURE__ */ jsxRuntimeExports.jsxs(DialogHeader, { children: [
166
- /* @__PURE__ */ jsxRuntimeExports.jsx(DialogTitle, { children: isNew ? "Add Role" : "Edit Role" }),
167
- /* @__PURE__ */ jsxRuntimeExports.jsx(DialogDescription, { children: isNew ? "Enter the details for the new role." : "Update the role details below." })
168
- ] }),
169
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "auth:space-y-4 auth:py-4", children: [
170
- /* @__PURE__ */ jsxRuntimeExports.jsx(
171
- InputFieldController,
172
- {
173
- label: "Role Name",
174
- name: "name",
175
- control,
176
- placeholder: "Enter role name"
177
- }
178
- ),
179
- /* @__PURE__ */ jsxRuntimeExports.jsx(
180
- InputFieldController,
181
- {
182
- label: "Description",
183
- name: "comment",
184
- control,
185
- placeholder: "Describe this role's purpose"
186
- }
187
- )
188
- ] }),
189
- /* @__PURE__ */ jsxRuntimeExports.jsxs(DialogFooter, { children: [
190
- /* @__PURE__ */ jsxRuntimeExports.jsx(
191
- Button$1,
192
- {
193
- type: "button",
194
- variant: "outline",
195
- onClick: () => {
196
- onOpenChange?.(false);
197
- },
198
- children: "Cancel"
199
- }
200
- ),
201
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Button$1, { form: formId, type: "submit", children: [
202
- isNew ? "Add" : "Update",
203
- " Role"
204
- ] })
205
- ] })
206
- ]
207
- }
208
- ) })
209
- ] });
210
- }
211
-
212
- const {authRoleEntityType} = await importShared('@baseplate-dev/project-builder-lib');
213
-
214
- const {Badge,Button,RecordView,RecordViewActions,RecordViewItem,RecordViewItemList,SectionListSection,SectionListSectionContent,SectionListSectionDescription,SectionListSectionHeader,SectionListSectionTitle,useConfirmDialog} = await importShared('@baseplate-dev/ui-components');
215
- const {useState} = await importShared('react');
216
- function RoleEditorForm({ className, lens }) {
217
- const { requestConfirm } = useConfirmDialog();
218
- const { append, update, remove } = useFieldArray(lens.interop());
219
- const [roleToEdit, setRoleToEdit] = useState();
220
- const [isEditing, setIsEditing] = useState(false);
221
- const roles = useWatch(lens.interop());
222
- function handleSaveRole(newRole) {
223
- const existingIndex = roles.findIndex((role) => role.id === newRole.id);
224
- if (existingIndex === -1) {
225
- append(newRole);
226
- } else {
227
- update(existingIndex, newRole);
228
- }
229
- }
230
- function handleDeleteRole(roleIdx) {
231
- const role = roles[roleIdx];
232
- requestConfirm({
233
- title: "Delete Role",
234
- content: `Are you sure you want to delete the role "${role.name}"?`,
235
- onConfirm: () => {
236
- remove(roleIdx);
237
- }
238
- });
239
- }
240
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(SectionListSection, { className, children: [
241
- /* @__PURE__ */ jsxRuntimeExports.jsxs(SectionListSectionHeader, { children: [
242
- /* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionTitle, { children: "User Roles" }),
243
- /* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionDescription, { children: "Define roles for your application. Default roles are protected and cannot be removed." })
244
- ] }),
245
- /* @__PURE__ */ jsxRuntimeExports.jsxs(SectionListSectionContent, { className: "auth:space-y-4", children: [
246
- roles.map((role, roleIdx) => /* @__PURE__ */ jsxRuntimeExports.jsxs(RecordView, { children: [
247
- /* @__PURE__ */ jsxRuntimeExports.jsxs(RecordViewItemList, { children: [
248
- /* @__PURE__ */ jsxRuntimeExports.jsx(RecordViewItem, { title: "Name", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "auth:flex auth:items-center auth:gap-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: role.name }) }) }),
249
- /* @__PURE__ */ jsxRuntimeExports.jsx(RecordViewItem, { title: "Description", children: role.comment.trim() || /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "auth:text-muted-foreground", children: "No description" }) })
250
- ] }),
251
- /* @__PURE__ */ jsxRuntimeExports.jsxs(RecordViewActions, { children: [
252
- role.builtIn && /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { variant: "secondary", children: "Default Role" }),
253
- !role.builtIn && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
254
- /* @__PURE__ */ jsxRuntimeExports.jsx(
255
- Button,
256
- {
257
- variant: "ghost",
258
- size: "icon",
259
- title: "Edit",
260
- "aria-label": "Edit role",
261
- onClick: () => {
262
- setRoleToEdit(role);
263
- setIsEditing(true);
264
- },
265
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(MdEdit, {})
266
- }
267
- ),
268
- /* @__PURE__ */ jsxRuntimeExports.jsx(
269
- Button,
270
- {
271
- variant: "ghostDestructive",
272
- size: "icon",
273
- title: "Delete",
274
- "aria-label": "Delete role",
275
- onClick: () => {
276
- handleDeleteRole(roleIdx);
277
- },
278
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(MdDeleteOutline, {})
279
- }
280
- )
281
- ] })
282
- ] })
283
- ] }, role.id)),
284
- /* @__PURE__ */ jsxRuntimeExports.jsx(
285
- RoleDialog,
286
- {
287
- open: isEditing,
288
- onOpenChange: setIsEditing,
289
- role: roleToEdit,
290
- isNew: roleToEdit ? !roles.some((r) => r.id === roleToEdit.id) : true,
291
- onSave: handleSaveRole
292
- }
293
- ),
294
- /* @__PURE__ */ jsxRuntimeExports.jsxs(
295
- Button,
296
- {
297
- variant: "secondary",
298
- size: "sm",
299
- onClick: () => {
300
- setRoleToEdit({
301
- id: authRoleEntityType.generateNewId(),
302
- name: "",
303
- comment: "",
304
- builtIn: false
305
- });
306
- setIsEditing(true);
307
- },
308
- children: [
309
- /* @__PURE__ */ jsxRuntimeExports.jsx(MdAdd, {}),
310
- "Add Role"
311
- ]
312
- }
313
- )
314
- ] })
315
- ] });
316
- }
317
-
318
- export { AUTH_DEFAULT_ROLES as A, RoleEditorForm as R, createAuthRolesSchema as a, createDefaultAuthRoles as c, s };
319
- //# sourceMappingURL=role-editor-form-BkcoVwtU.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"role-editor-form-BkcoVwtU.js","sources":["../../../../../node_modules/.pnpm/@hookform+resolvers@5.0.1_react-hook-form@7.60.0_react@19.1.0_/node_modules/@hookform/resolvers/dist/resolvers.mjs","../../../../../node_modules/.pnpm/@hookform+resolvers@5.0.1_react-hook-form@7.60.0_react@19.1.0_/node_modules/@hookform/resolvers/zod/dist/zod.mjs","../../../../../node_modules/.pnpm/@hookform+lenses@0.7.1_react-hook-form@7.60.0_react@19.1.0__react@19.1.0/node_modules/@hookform/lenses/dist/rhf/index.js","../../../src/common/roles/constants.ts","../../../src/common/roles/schema.ts","../../../src/common/roles/components/role-editor-form/role-dialog.tsx","../../../src/common/roles/components/role-editor-form/role-editor-form.tsx"],"sourcesContent":["import{get as e,set as t}from\"react-hook-form\";const r=(t,r,o)=>{if(t&&\"reportValidity\"in t){const s=e(o,r);t.setCustomValidity(s&&s.message||\"\"),t.reportValidity()}},o=(e,t)=>{for(const o in t.fields){const s=t.fields[o];s&&s.ref&&\"reportValidity\"in s.ref?r(s.ref,o,e):s&&s.refs&&s.refs.forEach(t=>r(t,o,e))}},s=(r,s)=>{s.shouldUseNativeValidation&&o(r,s);const n={};for(const o in r){const f=e(s.fields,o),c=Object.assign(r[o]||{},{ref:f&&f.ref});if(i(s.names||Object.keys(r),o)){const r=Object.assign({},e(n,o));t(r,\"root\",c),t(n,o,r)}else t(n,o,c)}return n},i=(e,t)=>{const r=n(t);return e.some(e=>n(e).match(`^${r}\\\\.\\\\d+`))};function n(e){return e.replace(/\\]|\\[/g,\"\")}export{s as toNestErrors,o as validateFieldsNatively};\n//# sourceMappingURL=resolvers.mjs.map\n","import{validateFieldsNatively as r,toNestErrors as e}from\"@hookform/resolvers\";import{appendErrors as o}from\"react-hook-form\";function n(r,e){for(var n={};r.length;){var s=r[0],t=s.code,i=s.message,a=s.path.join(\".\");if(!n[a])if(\"unionErrors\"in s){var u=s.unionErrors[0].errors[0];n[a]={message:u.message,type:u.code}}else n[a]={message:i,type:t};if(\"unionErrors\"in s&&s.unionErrors.forEach(function(e){return e.errors.forEach(function(e){return r.push(e)})}),e){var c=n[a].types,f=c&&c[s.code];n[a]=o(a,e,n,t,f?[].concat(f,s.message):s.message)}r.shift()}return n}function s(o,s,t){return void 0===t&&(t={}),function(i,a,u){try{return Promise.resolve(function(e,n){try{var a=Promise.resolve(o[\"sync\"===t.mode?\"parse\":\"parseAsync\"](i,s)).then(function(e){return u.shouldUseNativeValidation&&r({},u),{errors:{},values:t.raw?Object.assign({},i):e}})}catch(r){return n(r)}return a&&a.then?a.then(void 0,n):a}(0,function(r){if(function(r){return Array.isArray(null==r?void 0:r.errors)}(r))return{values:{},errors:e(n(r.errors,!u.shouldUseNativeValidation&&\"all\"===u.criteriaMode),u)};throw r}))}catch(r){return Promise.reject(r)}}}export{s as zodResolver};\n//# sourceMappingURL=zod.module.js.map\n","// src/rhf/useFieldArray.ts\nimport { useMemo } from \"react\";\nimport {\n useFieldArray as useFieldArrayOriginal\n} from \"react-hook-form\";\nfunction useFieldArray(props) {\n const original = useFieldArrayOriginal(props);\n const newFields = useMemo(() => {\n if (!props.getTransformer) {\n return original.fields;\n }\n return original.fields.map(props.getTransformer);\n }, [original.fields, props.getTransformer]);\n return {\n fields: newFields,\n move: original.move,\n remove: original.remove,\n swap: original.swap,\n prepend: (value, options) => {\n if (!props.setTransformer) {\n return original.prepend(value, options);\n }\n const newValue = Array.isArray(value) ? value.map(props.setTransformer) : props.setTransformer(value);\n original.prepend(newValue, options);\n },\n append: (value, options) => {\n if (!props.setTransformer) {\n return original.append(value, options);\n }\n const newValue = Array.isArray(value) ? value.map(props.setTransformer) : props.setTransformer(value);\n original.append(newValue, options);\n },\n insert: (index, value, options) => {\n if (!props.setTransformer) {\n return original.insert(index, value, options);\n }\n const newValue = Array.isArray(value) ? value.map(props.setTransformer) : props.setTransformer(value);\n original.insert(index, newValue, options);\n },\n update: (index, value) => {\n if (!props.setTransformer) {\n return original.update(index, value);\n }\n const newValue = props.setTransformer(value);\n original.update(index, newValue);\n },\n replace: (value) => {\n if (!props.setTransformer) {\n return original.replace(value);\n }\n const newValue = props.setTransformer(value);\n original.replace(newValue);\n }\n };\n}\nexport {\n useFieldArray\n};\n//# sourceMappingURL=index.js.map","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 React from 'react';\n\nimport { useDefinitionSchema } from '@baseplate-dev/project-builder-lib/web';\nimport {\n Button,\n Dialog,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n InputFieldController,\n} from '@baseplate-dev/ui-components';\nimport { zodResolver } from '@hookform/resolvers/zod';\nimport { useId } from 'react';\nimport { useForm } from 'react-hook-form';\n\nimport type { AuthRoleInput } from '#src/common/roles/schema.js';\n\nimport { createAuthRoleSchema } from '#src/common/roles/schema.js';\n\ninterface RoleDialogProps {\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n role?: AuthRoleInput;\n isNew?: boolean;\n onSave: (role: AuthRoleInput) => void;\n asChild?: boolean;\n children?: React.ReactNode;\n}\n\nexport function RoleDialog({\n open,\n onOpenChange,\n role,\n isNew = false,\n onSave,\n asChild,\n children,\n}: RoleDialogProps): React.JSX.Element {\n const authRoleSchema = useDefinitionSchema(createAuthRoleSchema);\n const form = useForm({\n resolver: zodResolver(authRoleSchema),\n values: role,\n });\n\n const { control, handleSubmit } = form;\n\n const onSubmit = handleSubmit((data) => {\n onSave(data);\n onOpenChange?.(false);\n });\n\n const formId = useId();\n\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogTrigger asChild={asChild}>{children}</DialogTrigger>\n <DialogContent>\n <form\n id={formId}\n onSubmit={(e) => {\n e.stopPropagation();\n return onSubmit(e);\n }}\n >\n <DialogHeader>\n <DialogTitle>{isNew ? 'Add Role' : 'Edit Role'}</DialogTitle>\n <DialogDescription>\n {isNew\n ? 'Enter the details for the new role.'\n : 'Update the role details below.'}\n </DialogDescription>\n </DialogHeader>\n <div className=\"auth:space-y-4 auth:py-4\">\n <InputFieldController\n label=\"Role Name\"\n name=\"name\"\n control={control}\n placeholder=\"Enter role name\"\n />\n <InputFieldController\n label=\"Description\"\n name=\"comment\"\n control={control}\n placeholder=\"Describe this role's purpose\"\n />\n </div>\n <DialogFooter>\n <Button\n type=\"button\"\n variant=\"outline\"\n onClick={() => {\n onOpenChange?.(false);\n }}\n >\n Cancel\n </Button>\n <Button form={formId} type=\"submit\">\n {isNew ? 'Add' : 'Update'} Role\n </Button>\n </DialogFooter>\n </form>\n </DialogContent>\n </Dialog>\n );\n}\n","import type { Lens } from '@hookform/lenses';\nimport type React from 'react';\n\nimport { authRoleEntityType } from '@baseplate-dev/project-builder-lib';\nimport {\n Badge,\n Button,\n RecordView,\n RecordViewActions,\n RecordViewItem,\n RecordViewItemList,\n SectionListSection,\n SectionListSectionContent,\n SectionListSectionDescription,\n SectionListSectionHeader,\n SectionListSectionTitle,\n useConfirmDialog,\n} from '@baseplate-dev/ui-components';\nimport { useFieldArray } from '@hookform/lenses/rhf';\nimport { useState } from 'react';\nimport { useWatch } from 'react-hook-form';\nimport { MdAdd, MdDeleteOutline, MdEdit } from 'react-icons/md';\n\nimport type { AuthRoleInput } from '#src/common/roles/index.js';\n\nimport { RoleDialog } from './role-dialog.js';\n\ninterface Props {\n className?: string;\n lens: Lens<AuthRoleInput[]>;\n}\n\nexport function RoleEditorForm({ className, lens }: Props): React.JSX.Element {\n const { requestConfirm } = useConfirmDialog();\n const { append, update, remove } = useFieldArray(lens.interop());\n const [roleToEdit, setRoleToEdit] = useState<AuthRoleInput | undefined>();\n const [isEditing, setIsEditing] = useState(false);\n\n const roles = useWatch(lens.interop());\n\n function handleSaveRole(newRole: AuthRoleInput): void {\n const existingIndex = roles.findIndex((role) => role.id === newRole.id);\n if (existingIndex === -1) {\n append(newRole);\n } else {\n update(existingIndex, newRole);\n }\n }\n\n function handleDeleteRole(roleIdx: number): void {\n const role = roles[roleIdx];\n requestConfirm({\n title: 'Delete Role',\n content: `Are you sure you want to delete the role \"${role.name}\"?`,\n onConfirm: () => {\n remove(roleIdx);\n },\n });\n }\n\n return (\n <SectionListSection className={className}>\n <SectionListSectionHeader>\n <SectionListSectionTitle>User Roles</SectionListSectionTitle>\n <SectionListSectionDescription>\n Define roles for your application. Default roles are protected and\n cannot be removed.\n </SectionListSectionDescription>\n </SectionListSectionHeader>\n <SectionListSectionContent className=\"auth:space-y-4\">\n {roles.map((role, roleIdx) => (\n <RecordView key={role.id}>\n <RecordViewItemList>\n <RecordViewItem title=\"Name\">\n <div className=\"auth:flex auth:items-center auth:gap-2\">\n <span>{role.name}</span>\n </div>\n </RecordViewItem>\n <RecordViewItem title=\"Description\">\n {role.comment.trim() || (\n <span className=\"auth:text-muted-foreground\">\n No description\n </span>\n )}\n </RecordViewItem>\n </RecordViewItemList>\n <RecordViewActions>\n {role.builtIn && <Badge variant=\"secondary\">Default Role</Badge>}\n {!role.builtIn && (\n <>\n <Button\n variant=\"ghost\"\n size=\"icon\"\n title=\"Edit\"\n aria-label=\"Edit role\"\n onClick={() => {\n setRoleToEdit(role);\n setIsEditing(true);\n }}\n >\n <MdEdit />\n </Button>\n <Button\n variant=\"ghostDestructive\"\n size=\"icon\"\n title=\"Delete\"\n aria-label=\"Delete role\"\n onClick={() => {\n handleDeleteRole(roleIdx);\n }}\n >\n <MdDeleteOutline />\n </Button>\n </>\n )}\n </RecordViewActions>\n </RecordView>\n ))}\n <RoleDialog\n open={isEditing}\n onOpenChange={setIsEditing}\n role={roleToEdit}\n isNew={roleToEdit ? !roles.some((r) => r.id === roleToEdit.id) : true}\n onSave={handleSaveRole}\n />\n <Button\n variant=\"secondary\"\n size=\"sm\"\n onClick={() => {\n setRoleToEdit({\n id: authRoleEntityType.generateNewId(),\n name: '',\n comment: '',\n builtIn: false,\n });\n setIsEditing(true);\n }}\n >\n <MdAdd />\n Add Role\n </Button>\n </SectionListSectionContent>\n </SectionListSection>\n );\n}\n"],"names":["e","s","t","n","o","r","useFieldArrayOriginal","authRoleEntityType","ctx","Button","zodResolver","jsxs","jsx","Fragment"],"mappings":";;;;AAA+C,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,gBAAgB,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAACA,GAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,cAAc,GAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,gBAAgB,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC,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,IAAM,EAAA,UAAA;AAAA,UACN,KAAA,EAAO,UAAa,GAAA,CAAC,KAAM,CAAA,IAAA,CAAK,CAAC,CAAA,KAAM,CAAE,CAAA,EAAA,KAAO,UAAW,CAAA,EAAE,CAAI,GAAA,IAAA;AAAA,UACjE,MAAQ,EAAA;AAAA;AAAA,OACV;AAAA,sBACAD,sBAAA;AAAA,QAAC,MAAA;AAAA,QAAA;AAAA,UACC,OAAQ,EAAA,WAAA;AAAA,UACR,IAAK,EAAA,IAAA;AAAA,UACL,SAAS,MAAM;AACb,YAAc,aAAA,CAAA;AAAA,cACZ,EAAA,EAAI,mBAAmB,aAAc,EAAA;AAAA,cACrC,IAAM,EAAA,EAAA;AAAA,cACN,OAAS,EAAA,EAAA;AAAA,cACT,OAAS,EAAA;AAAA,aACV,CAAA;AACD,YAAA,YAAA,CAAa,IAAI,CAAA;AAAA,WACnB;AAAA,UAEA,QAAA,EAAA;AAAA,4BAAAC,qBAAA,CAAC,KAAM,EAAA,EAAA,CAAA;AAAA,YAAE;AAAA;AAAA;AAAA;AAEX,KACF,EAAA;AAAA,GACF,EAAA,CAAA;AAEJ;;;;","x_google_ignoreList":[0,1,2]}
@@ -1,201 +0,0 @@
1
- import { importShared } from './__federation_fn_import-CGvRdRVe.js';
2
- import { g as get, s as set } from './index.esm-DYWXRkn-.js';
3
-
4
- var LensCore = class _LensCore {
5
- constructor(control, path, cache) {
6
- this.control = control;
7
- this.path = path;
8
- this.cache = cache;
9
- }
10
- static create(control, cache) {
11
- return new _LensCore(control, "", cache);
12
- }
13
- focus(prop) {
14
- var _a, _b, _c, _d, _e, _f;
15
- const propString = prop.toString();
16
- const nestedPath = this.path ? `${this.path}.${propString}` : propString;
17
- const fromCache = (_a = this.cache) == null ? void 0 : _a.get(nestedPath);
18
- if (fromCache) {
19
- return fromCache;
20
- }
21
- if (Array.isArray(this.override)) {
22
- const [template] = this.override;
23
- const result2 = new _LensCore(this.control, nestedPath, this.cache);
24
- result2.isArrayItemReflection = true;
25
- result2.override = template;
26
- (_b = this.cache) == null ? void 0 : _b.set(result2, nestedPath);
27
- return result2;
28
- } else if (this.override) {
29
- const overriddenLens = get(this.override, propString);
30
- if (!overriddenLens) {
31
- const result2 = new _LensCore(this.control, nestedPath, this.cache);
32
- (_c = this.cache) == null ? void 0 : _c.set(result2, nestedPath);
33
- return result2;
34
- }
35
- if (this.isArrayItemReflection) {
36
- const arrayItemNestedPath = `${this.path}.${overriddenLens.path}`;
37
- const result2 = new _LensCore(this.control, arrayItemNestedPath, this.cache);
38
- (_d = this.cache) == null ? void 0 : _d.set(result2, arrayItemNestedPath);
39
- return result2;
40
- } else {
41
- (_e = this.cache) == null ? void 0 : _e.set(overriddenLens, nestedPath);
42
- return overriddenLens;
43
- }
44
- }
45
- const result = new _LensCore(this.control, nestedPath, this.cache);
46
- (_f = this.cache) == null ? void 0 : _f.set(result, nestedPath);
47
- return result;
48
- }
49
- reflect(getter) {
50
- var _a, _b, _c;
51
- const fromCache = (_a = this.cache) == null ? void 0 : _a.get(this.path, getter);
52
- if (fromCache) {
53
- return fromCache;
54
- }
55
- const template = new _LensCore(this.control, this.path, this.cache);
56
- const dictionary = new Proxy(
57
- {},
58
- {
59
- get: (target, prop) => {
60
- if (typeof prop === "string") {
61
- return template.focus(prop);
62
- }
63
- return target;
64
- }
65
- }
66
- );
67
- const override = getter(dictionary, template);
68
- if (Array.isArray(override)) {
69
- const result = new _LensCore(this.control, this.path, this.cache);
70
- template.path = "";
71
- result.override = getter(dictionary, template);
72
- (_b = this.cache) == null ? void 0 : _b.set(result, this.path, getter);
73
- return result;
74
- } else {
75
- template.override = override;
76
- template.path = this.path;
77
- (_c = this.cache) == null ? void 0 : _c.set(template, this.path, getter);
78
- return template;
79
- }
80
- }
81
- map(fields, mapper) {
82
- return fields.map((value, index, array) => {
83
- const item = this.focus(index.toString());
84
- const res = mapper(value, item, index, array, this);
85
- return res;
86
- });
87
- }
88
- interop(cb) {
89
- var _a;
90
- if (cb) {
91
- return cb(this.control, this.path);
92
- }
93
- (_a = this.interopCache) != null ? _a : this.interopCache = {
94
- control: this.control,
95
- name: this.path,
96
- ...this.override ? { getTransformer: this.getTransformer.bind(this), setTransformer: this.setTransformer.bind(this) } : {}
97
- };
98
- return this.interopCache;
99
- }
100
- getTransformer(value) {
101
- const [template] = Array.isArray(this.override) ? this.override : [this.override];
102
- if (!value || !template) {
103
- return value;
104
- }
105
- const newValue = {};
106
- Object.entries(template).forEach(([key, valueTemplate]) => {
107
- const restructuredLens = valueTemplate;
108
- if (!restructuredLens) {
109
- return;
110
- }
111
- const v = get(value, restructuredLens.path);
112
- set(newValue, key, v);
113
- });
114
- return newValue;
115
- }
116
- setTransformer(value) {
117
- const [template] = Array.isArray(this.override) ? this.override : [this.override];
118
- if (!value || !template) {
119
- return value;
120
- }
121
- const newValue = {};
122
- Object.entries(value).forEach(([key, value2]) => {
123
- const restructuredLens = template[key];
124
- if (!restructuredLens) {
125
- return;
126
- }
127
- set(newValue, restructuredLens.path, value2);
128
- });
129
- return newValue;
130
- }
131
- };
132
-
133
- // src/LensesStorage.ts
134
- var LensesStorage = class {
135
- constructor(control) {
136
- var _a, _b, _c;
137
- this.cache = /* @__PURE__ */ new Map();
138
- (_c = (_b = (_a = control == null ? void 0 : control._subjects) == null ? void 0 : _a.values) == null ? void 0 : _b.subscribe) == null ? void 0 : _c.call(_b, {
139
- next: () => {
140
- control._names.unMount.forEach((name) => {
141
- this.delete(name);
142
- });
143
- }
144
- });
145
- }
146
- get(path, complexKey) {
147
- const cached = this.cache.get(path);
148
- if (cached) {
149
- if (complexKey) {
150
- return cached.complex.get(complexKey);
151
- }
152
- return cached.plain;
153
- }
154
- return void 0;
155
- }
156
- set(lens, path, complexKey) {
157
- let cached = this.cache.get(path);
158
- if (!cached) {
159
- cached = {
160
- complex: /* @__PURE__ */ new WeakMap()
161
- };
162
- this.cache.set(path, cached);
163
- }
164
- if (complexKey) {
165
- cached.complex.set(complexKey, lens);
166
- } else {
167
- cached.plain = lens;
168
- }
169
- }
170
- has(path, complexKey) {
171
- var _a, _b;
172
- if (complexKey) {
173
- return (_b = (_a = this.cache.get(path)) == null ? void 0 : _a.complex.has(complexKey)) != null ? _b : false;
174
- }
175
- return this.cache.has(path);
176
- }
177
- delete(path) {
178
- for (const key of this.cache.keys()) {
179
- if (key.startsWith(path)) {
180
- this.cache.delete(key);
181
- }
182
- }
183
- }
184
- clear() {
185
- this.cache.clear();
186
- }
187
- };
188
-
189
- // src/useLens.ts
190
- const {useMemo} = await importShared('react');
191
-
192
- function useLens(props, deps = []) {
193
- return useMemo(() => {
194
- const cache = new LensesStorage(props.control);
195
- const lens = LensCore.create(props.control, cache);
196
- return lens;
197
- }, [props.control, ...deps]);
198
- }
199
-
200
- export { useLens as u };
201
- //# sourceMappingURL=styles-Dfjm_ApH.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles-Dfjm_ApH.js","sources":["../../../../../node_modules/.pnpm/@hookform+lenses@0.7.1_react-hook-form@7.60.0_react@19.1.0__react@19.1.0/node_modules/@hookform/lenses/dist/index.js"],"sourcesContent":["// src/LensCore.ts\nimport { get, set } from \"react-hook-form\";\nvar LensCore = class _LensCore {\n constructor(control, path, cache) {\n this.control = control;\n this.path = path;\n this.cache = cache;\n }\n static create(control, cache) {\n return new _LensCore(control, \"\", cache);\n }\n focus(prop) {\n var _a, _b, _c, _d, _e, _f;\n const propString = prop.toString();\n const nestedPath = this.path ? `${this.path}.${propString}` : propString;\n const fromCache = (_a = this.cache) == null ? void 0 : _a.get(nestedPath);\n if (fromCache) {\n return fromCache;\n }\n if (Array.isArray(this.override)) {\n const [template] = this.override;\n const result2 = new _LensCore(this.control, nestedPath, this.cache);\n result2.isArrayItemReflection = true;\n result2.override = template;\n (_b = this.cache) == null ? void 0 : _b.set(result2, nestedPath);\n return result2;\n } else if (this.override) {\n const overriddenLens = get(this.override, propString);\n if (!overriddenLens) {\n const result2 = new _LensCore(this.control, nestedPath, this.cache);\n (_c = this.cache) == null ? void 0 : _c.set(result2, nestedPath);\n return result2;\n }\n if (this.isArrayItemReflection) {\n const arrayItemNestedPath = `${this.path}.${overriddenLens.path}`;\n const result2 = new _LensCore(this.control, arrayItemNestedPath, this.cache);\n (_d = this.cache) == null ? void 0 : _d.set(result2, arrayItemNestedPath);\n return result2;\n } else {\n (_e = this.cache) == null ? void 0 : _e.set(overriddenLens, nestedPath);\n return overriddenLens;\n }\n }\n const result = new _LensCore(this.control, nestedPath, this.cache);\n (_f = this.cache) == null ? void 0 : _f.set(result, nestedPath);\n return result;\n }\n reflect(getter) {\n var _a, _b, _c;\n const fromCache = (_a = this.cache) == null ? void 0 : _a.get(this.path, getter);\n if (fromCache) {\n return fromCache;\n }\n const template = new _LensCore(this.control, this.path, this.cache);\n const dictionary = new Proxy(\n {},\n {\n get: (target, prop) => {\n if (typeof prop === \"string\") {\n return template.focus(prop);\n }\n return target;\n }\n }\n );\n const override = getter(dictionary, template);\n if (Array.isArray(override)) {\n const result = new _LensCore(this.control, this.path, this.cache);\n template.path = \"\";\n result.override = getter(dictionary, template);\n (_b = this.cache) == null ? void 0 : _b.set(result, this.path, getter);\n return result;\n } else {\n template.override = override;\n template.path = this.path;\n (_c = this.cache) == null ? void 0 : _c.set(template, this.path, getter);\n return template;\n }\n }\n map(fields, mapper) {\n return fields.map((value, index, array) => {\n const item = this.focus(index.toString());\n const res = mapper(value, item, index, array, this);\n return res;\n });\n }\n interop(cb) {\n var _a;\n if (cb) {\n return cb(this.control, this.path);\n }\n (_a = this.interopCache) != null ? _a : this.interopCache = {\n control: this.control,\n name: this.path,\n ...this.override ? { getTransformer: this.getTransformer.bind(this), setTransformer: this.setTransformer.bind(this) } : {}\n };\n return this.interopCache;\n }\n getTransformer(value) {\n const [template] = Array.isArray(this.override) ? this.override : [this.override];\n if (!value || !template) {\n return value;\n }\n const newValue = {};\n Object.entries(template).forEach(([key, valueTemplate]) => {\n const restructuredLens = valueTemplate;\n if (!restructuredLens) {\n return;\n }\n const v = get(value, restructuredLens.path);\n set(newValue, key, v);\n });\n return newValue;\n }\n setTransformer(value) {\n const [template] = Array.isArray(this.override) ? this.override : [this.override];\n if (!value || !template) {\n return value;\n }\n const newValue = {};\n Object.entries(value).forEach(([key, value2]) => {\n const restructuredLens = template[key];\n if (!restructuredLens) {\n return;\n }\n set(newValue, restructuredLens.path, value2);\n });\n return newValue;\n }\n};\n\n// src/LensesStorage.ts\nvar LensesStorage = class {\n constructor(control) {\n var _a, _b, _c;\n this.cache = /* @__PURE__ */ new Map();\n (_c = (_b = (_a = control == null ? void 0 : control._subjects) == null ? void 0 : _a.values) == null ? void 0 : _b.subscribe) == null ? void 0 : _c.call(_b, {\n next: () => {\n control._names.unMount.forEach((name) => {\n this.delete(name);\n });\n }\n });\n }\n get(path, complexKey) {\n const cached = this.cache.get(path);\n if (cached) {\n if (complexKey) {\n return cached.complex.get(complexKey);\n }\n return cached.plain;\n }\n return void 0;\n }\n set(lens, path, complexKey) {\n let cached = this.cache.get(path);\n if (!cached) {\n cached = {\n complex: /* @__PURE__ */ new WeakMap()\n };\n this.cache.set(path, cached);\n }\n if (complexKey) {\n cached.complex.set(complexKey, lens);\n } else {\n cached.plain = lens;\n }\n }\n has(path, complexKey) {\n var _a, _b;\n if (complexKey) {\n return (_b = (_a = this.cache.get(path)) == null ? void 0 : _a.complex.has(complexKey)) != null ? _b : false;\n }\n return this.cache.has(path);\n }\n delete(path) {\n for (const key of this.cache.keys()) {\n if (key.startsWith(path)) {\n this.cache.delete(key);\n }\n }\n }\n clear() {\n this.cache.clear();\n }\n};\n\n// src/useLens.ts\nimport { useMemo } from \"react\";\nfunction useLens(props, deps = []) {\n return useMemo(() => {\n const cache = new LensesStorage(props.control);\n const lens = LensCore.create(props.control, cache);\n return lens;\n }, [props.control, ...deps]);\n}\nexport {\n LensCore,\n LensesStorage,\n useLens\n};\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;AAEA,IAAI,QAAQ,GAAG,MAAM,SAAS,CAAC;AAC/B,EAAE,W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