@baseplate-dev/plugin-auth 1.0.2 → 1.0.3

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 (688) hide show
  1. package/dist/auth/core/components/auth-definition-editor.d.ts.map +1 -1
  2. package/dist/auth/core/components/auth-definition-editor.js +8 -5
  3. package/dist/auth/core/components/auth-definition-editor.js.map +1 -1
  4. package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.d.ts +28 -0
  5. package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.d.ts.map +1 -0
  6. package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.js +43 -0
  7. package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.js.map +1 -0
  8. package/dist/auth/core/generators/auth-apollo/index.d.ts +2 -0
  9. package/dist/auth/core/generators/auth-apollo/index.d.ts.map +1 -0
  10. package/dist/auth/core/generators/auth-apollo/index.js +2 -0
  11. package/dist/auth/core/generators/auth-apollo/index.js.map +1 -0
  12. package/dist/auth/core/generators/auth-apollo/templates/session-error-link.d.ts +2 -0
  13. package/dist/auth/core/generators/auth-apollo/templates/session-error-link.d.ts.map +1 -0
  14. package/dist/auth/core/generators/auth-apollo/templates/session-error-link.js +15 -0
  15. package/dist/auth/core/generators/auth-apollo/templates/session-error-link.js.map +1 -0
  16. package/dist/auth/core/generators/auth-apollo/templates/session-error-link.ts +16 -0
  17. package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +73 -0
  18. package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +1 -0
  19. package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.js +40 -0
  20. package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.js.map +1 -0
  21. package/dist/auth/core/generators/auth-email-password/generated/index.d.ts +120 -0
  22. package/dist/auth/core/generators/auth-email-password/generated/index.d.ts.map +1 -0
  23. package/dist/auth/core/generators/auth-email-password/generated/index.js +11 -0
  24. package/dist/auth/core/generators/auth-email-password/generated/index.js.map +1 -0
  25. package/dist/auth/core/generators/auth-email-password/generated/template-paths.d.ts +14 -0
  26. package/dist/auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +1 -0
  27. package/dist/auth/core/generators/auth-email-password/generated/template-paths.js +26 -0
  28. package/dist/auth/core/generators/auth-email-password/generated/template-paths.js.map +1 -0
  29. package/dist/auth/core/generators/auth-email-password/generated/template-renderers.d.ts +58 -0
  30. package/dist/auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +1 -0
  31. package/dist/auth/core/generators/auth-email-password/generated/template-renderers.js +54 -0
  32. package/dist/auth/core/generators/auth-email-password/generated/template-renderers.js.map +1 -0
  33. package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts +25 -0
  34. package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +1 -0
  35. package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.js +32 -0
  36. package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +1 -0
  37. package/dist/auth/core/generators/auth-email-password/generated/typed-templates.d.ts +97 -0
  38. package/dist/auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +1 -0
  39. package/dist/auth/core/generators/auth-email-password/generated/typed-templates.js +56 -0
  40. package/dist/auth/core/generators/auth-email-password/generated/typed-templates.js.map +1 -0
  41. package/dist/auth/core/generators/auth-email-password/index.d.ts +4 -0
  42. package/dist/auth/core/generators/auth-email-password/index.d.ts.map +1 -0
  43. package/dist/auth/core/generators/auth-email-password/index.js +3 -0
  44. package/dist/auth/core/generators/auth-email-password/index.js.map +1 -0
  45. package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +2 -0
  46. package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +1 -0
  47. package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.js +3 -0
  48. package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +1 -0
  49. package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.ts +3 -0
  50. package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts +2 -0
  51. package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts.map +1 -0
  52. package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +33 -0
  53. package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js.map +1 -0
  54. package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +45 -0
  55. package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts +21 -0
  56. package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +1 -0
  57. package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +74 -0
  58. package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +1 -0
  59. package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +122 -0
  60. package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +62 -0
  61. package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +1 -0
  62. package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.js +38 -0
  63. package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.js.map +1 -0
  64. package/dist/auth/core/generators/auth-hooks/generated/index.d.ts +120 -0
  65. package/dist/auth/core/generators/auth-hooks/generated/index.d.ts.map +1 -0
  66. package/dist/auth/core/generators/auth-hooks/generated/index.js +11 -0
  67. package/dist/auth/core/generators/auth-hooks/generated/index.js.map +1 -0
  68. package/dist/auth/core/generators/auth-hooks/generated/template-paths.d.ts +16 -0
  69. package/dist/auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +1 -0
  70. package/dist/auth/core/generators/auth-hooks/generated/template-paths.js +26 -0
  71. package/dist/auth/core/generators/auth-hooks/generated/template-paths.js.map +1 -0
  72. package/dist/auth/core/generators/auth-hooks/generated/template-renderers.d.ts +47 -0
  73. package/dist/auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +1 -0
  74. package/dist/auth/core/generators/auth-hooks/generated/template-renderers.js +49 -0
  75. package/dist/auth/core/generators/auth-hooks/generated/template-renderers.js.map +1 -0
  76. package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +16 -0
  77. package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +1 -0
  78. package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.js +27 -0
  79. package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +1 -0
  80. package/dist/auth/core/generators/auth-hooks/generated/typed-templates.d.ts +116 -0
  81. package/dist/auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +1 -0
  82. package/dist/auth/core/generators/auth-hooks/generated/typed-templates.js +70 -0
  83. package/dist/auth/core/generators/auth-hooks/generated/typed-templates.js.map +1 -0
  84. package/dist/auth/core/generators/auth-hooks/index.d.ts +2 -0
  85. package/dist/auth/core/generators/auth-hooks/index.d.ts.map +1 -0
  86. package/dist/auth/core/generators/auth-hooks/index.js +2 -0
  87. package/dist/auth/core/generators/auth-hooks/index.js.map +1 -0
  88. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts +18 -0
  89. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts.map +1 -0
  90. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.gql +10 -0
  91. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js +22 -0
  92. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js.map +1 -0
  93. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.ts +40 -0
  94. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts +2 -0
  95. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +1 -0
  96. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +27 -0
  97. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +1 -0
  98. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +29 -0
  99. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +8 -0
  100. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +1 -0
  101. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.js +12 -0
  102. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +1 -0
  103. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +16 -0
  104. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts +7 -0
  105. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +1 -0
  106. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js +15 -0
  107. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +1 -0
  108. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.ts +16 -0
  109. package/dist/auth/{generators/fastify → core/generators}/auth-module/auth-module.generator.d.ts +45 -32
  110. package/dist/auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -0
  111. package/dist/auth/core/generators/auth-module/auth-module.generator.js +61 -0
  112. package/dist/auth/core/generators/auth-module/auth-module.generator.js.map +1 -0
  113. package/dist/auth/core/generators/auth-module/generated/index.d.ts +173 -0
  114. package/dist/auth/core/generators/auth-module/generated/index.d.ts.map +1 -0
  115. package/dist/auth/core/generators/auth-module/generated/index.js +11 -0
  116. package/dist/auth/core/generators/auth-module/generated/index.js.map +1 -0
  117. package/dist/auth/core/generators/auth-module/generated/template-paths.d.ts +19 -0
  118. package/dist/auth/core/generators/auth-module/generated/template-paths.d.ts.map +1 -0
  119. package/dist/auth/{generators/fastify → core/generators}/auth-module/generated/template-paths.js +10 -7
  120. package/dist/auth/core/generators/auth-module/generated/template-paths.js.map +1 -0
  121. package/dist/auth/core/generators/auth-module/generated/template-renderers.d.ts +80 -0
  122. package/dist/auth/core/generators/auth-module/generated/template-renderers.d.ts.map +1 -0
  123. package/dist/auth/core/generators/auth-module/generated/template-renderers.js +77 -0
  124. package/dist/auth/core/generators/auth-module/generated/template-renderers.js.map +1 -0
  125. package/dist/auth/core/generators/auth-module/generated/ts-import-providers.d.ts +22 -0
  126. package/dist/auth/core/generators/auth-module/generated/ts-import-providers.d.ts.map +1 -0
  127. package/dist/auth/core/generators/auth-module/generated/ts-import-providers.js +31 -0
  128. package/dist/auth/core/generators/auth-module/generated/ts-import-providers.js.map +1 -0
  129. package/dist/auth/{generators/fastify → core/generators}/auth-module/generated/typed-templates.d.ts +47 -7
  130. package/dist/auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -0
  131. package/dist/auth/{generators/fastify → core/generators}/auth-module/generated/typed-templates.js +40 -3
  132. package/dist/auth/core/generators/auth-module/generated/typed-templates.js.map +1 -0
  133. package/dist/auth/core/generators/auth-module/index.d.ts +4 -0
  134. package/dist/auth/core/generators/auth-module/index.d.ts.map +1 -0
  135. package/dist/auth/core/generators/auth-module/index.js +3 -0
  136. package/dist/auth/core/generators/auth-module/index.js.map +1 -0
  137. package/dist/auth/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts +16 -0
  138. package/dist/auth/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts.map +1 -0
  139. package/dist/auth/core/generators/auth-module/templates/module/constants/user-session.constants.js +17 -0
  140. package/dist/auth/core/generators/auth-module/templates/module/constants/user-session.constants.js.map +1 -0
  141. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts +2 -0
  142. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts.map +1 -0
  143. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js +17 -0
  144. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js.map +1 -0
  145. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.ts +23 -0
  146. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts +2 -0
  147. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts.map +1 -0
  148. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js +18 -0
  149. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +1 -0
  150. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +23 -0
  151. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts +2 -0
  152. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts.map +1 -0
  153. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.js +19 -0
  154. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +1 -0
  155. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts +24 -0
  156. package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts +43 -0
  157. package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts.map +1 -0
  158. package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.js +180 -0
  159. package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.js.map +1 -0
  160. package/dist/auth/{generators/fastify → core/generators}/auth-module/templates/module/services/user-session.service.ts +1 -1
  161. package/dist/auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts +38 -0
  162. package/dist/auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts.map +1 -0
  163. package/dist/auth/core/generators/auth-module/templates/module/utils/cookie-signer.js +71 -0
  164. package/dist/auth/core/generators/auth-module/templates/module/utils/cookie-signer.js.map +1 -0
  165. package/dist/auth/core/generators/auth-module/templates/module/utils/session-cookie.d.ts +11 -0
  166. package/dist/auth/core/generators/auth-module/templates/module/utils/session-cookie.d.ts.map +1 -0
  167. package/dist/auth/core/generators/auth-module/templates/module/utils/session-cookie.js +38 -0
  168. package/dist/auth/core/generators/auth-module/templates/module/utils/session-cookie.js.map +1 -0
  169. package/dist/auth/{generators/fastify → core/generators}/auth-module/templates/module/utils/session-cookie.ts +2 -2
  170. package/dist/auth/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts +10 -0
  171. package/dist/auth/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts.map +1 -0
  172. package/dist/auth/core/generators/auth-module/templates/module/utils/verify-request-origin.js +35 -0
  173. package/dist/auth/core/generators/auth-module/templates/module/utils/verify-request-origin.js.map +1 -0
  174. package/dist/{auth0/generators/react/auth0-components/auth0-components.generator.d.ts → auth/core/generators/auth-routes/auth-routes.generator.d.ts} +50 -20
  175. package/dist/auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -0
  176. package/dist/auth/core/generators/auth-routes/auth-routes.generator.js +38 -0
  177. package/dist/auth/core/generators/auth-routes/auth-routes.generator.js.map +1 -0
  178. package/dist/auth/core/generators/auth-routes/generated/index.d.ts +498 -0
  179. package/dist/{auth0/generators/react/auth0-callback → auth/core/generators/auth-routes}/generated/index.d.ts.map +1 -1
  180. package/dist/auth/core/generators/auth-routes/generated/index.js +9 -0
  181. package/dist/auth/core/generators/auth-routes/generated/index.js.map +1 -0
  182. package/dist/auth/core/generators/auth-routes/generated/template-paths.d.ts +15 -0
  183. package/dist/auth/core/generators/auth-routes/generated/template-paths.d.ts.map +1 -0
  184. package/dist/auth/core/generators/auth-routes/generated/template-paths.js +25 -0
  185. package/dist/auth/core/generators/auth-routes/generated/template-paths.js.map +1 -0
  186. package/dist/auth/core/generators/auth-routes/generated/template-renderers.d.ts +177 -0
  187. package/dist/auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -0
  188. package/dist/auth/core/generators/auth-routes/generated/template-renderers.js +55 -0
  189. package/dist/auth/core/generators/auth-routes/generated/template-renderers.js.map +1 -0
  190. package/dist/auth/core/generators/auth-routes/generated/typed-templates.d.ts +642 -0
  191. package/dist/auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -0
  192. package/dist/auth/core/generators/auth-routes/generated/typed-templates.js +57 -0
  193. package/dist/auth/core/generators/auth-routes/generated/typed-templates.js.map +1 -0
  194. package/dist/auth/core/generators/auth-routes/index.d.ts +2 -0
  195. package/dist/auth/core/generators/auth-routes/index.d.ts.map +1 -0
  196. package/dist/auth/core/generators/auth-routes/index.js +2 -0
  197. package/dist/auth/core/generators/auth-routes/index.js.map +1 -0
  198. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts +2 -0
  199. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +1 -0
  200. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.js +85 -0
  201. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +1 -0
  202. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +161 -0
  203. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/queries.gql +15 -0
  204. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts +2 -0
  205. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +1 -0
  206. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.js +77 -0
  207. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -0
  208. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +148 -0
  209. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts +2 -0
  210. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts.map +1 -0
  211. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.js +10 -0
  212. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.js.map +1 -0
  213. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.tsx +17 -0
  214. package/dist/auth/core/generators/index.d.ts +8 -0
  215. package/dist/auth/core/generators/index.d.ts.map +1 -0
  216. package/dist/auth/core/generators/index.js +8 -0
  217. package/dist/auth/core/generators/index.js.map +1 -0
  218. package/dist/auth/core/generators/react-auth/index.d.ts +2 -0
  219. package/dist/auth/core/generators/react-auth/index.d.ts.map +1 -0
  220. package/dist/auth/core/generators/react-auth/index.js +2 -0
  221. package/dist/auth/core/generators/react-auth/index.js.map +1 -0
  222. package/dist/auth/core/generators/react-auth/react-auth.generator.d.ts +9 -0
  223. package/dist/auth/core/generators/react-auth/react-auth.generator.d.ts.map +1 -0
  224. package/dist/auth/core/generators/react-auth/react-auth.generator.js +31 -0
  225. package/dist/auth/core/generators/react-auth/react-auth.generator.js.map +1 -0
  226. package/dist/auth/core/generators/react-session/generated/index.d.ts +67 -0
  227. package/dist/auth/core/generators/react-session/generated/index.d.ts.map +1 -0
  228. package/dist/auth/core/generators/react-session/generated/index.js +11 -0
  229. package/dist/auth/core/generators/react-session/generated/index.js.map +1 -0
  230. package/dist/auth/core/generators/react-session/generated/template-paths.d.ts +16 -0
  231. package/dist/auth/core/generators/react-session/generated/template-paths.d.ts.map +1 -0
  232. package/dist/auth/core/generators/react-session/generated/template-paths.js +26 -0
  233. package/dist/auth/core/generators/react-session/generated/template-paths.js.map +1 -0
  234. package/dist/auth/core/generators/react-session/generated/template-renderers.d.ts +27 -0
  235. package/dist/auth/core/generators/react-session/generated/template-renderers.d.ts.map +1 -0
  236. package/dist/auth/core/generators/react-session/generated/template-renderers.js +48 -0
  237. package/dist/auth/core/generators/react-session/generated/template-renderers.js.map +1 -0
  238. package/dist/auth/core/generators/react-session/generated/ts-import-providers.d.ts +64 -0
  239. package/dist/auth/core/generators/react-session/generated/ts-import-providers.d.ts.map +1 -0
  240. package/dist/auth/core/generators/react-session/generated/ts-import-providers.js +42 -0
  241. package/dist/auth/core/generators/react-session/generated/ts-import-providers.js.map +1 -0
  242. package/dist/auth/core/generators/react-session/generated/typed-templates.d.ts +32 -0
  243. package/dist/auth/core/generators/react-session/generated/typed-templates.d.ts.map +1 -0
  244. package/dist/auth/core/generators/react-session/generated/typed-templates.js +76 -0
  245. package/dist/auth/core/generators/react-session/generated/typed-templates.js.map +1 -0
  246. package/dist/auth/core/generators/react-session/index.d.ts +4 -0
  247. package/dist/auth/core/generators/react-session/index.d.ts.map +1 -0
  248. package/dist/auth/core/generators/react-session/index.js +3 -0
  249. package/dist/auth/core/generators/react-session/index.js.map +1 -0
  250. package/dist/auth/core/generators/react-session/react-session.generator.d.ts +49 -0
  251. package/dist/auth/core/generators/react-session/react-session.generator.d.ts.map +1 -0
  252. package/dist/auth/core/generators/react-session/react-session.generator.js +39 -0
  253. package/dist/auth/core/generators/react-session/react-session.generator.js.map +1 -0
  254. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.d.ts +7 -0
  255. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.d.ts.map +1 -0
  256. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.gql +6 -0
  257. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.js +25 -0
  258. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.js.map +1 -0
  259. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.tsx +29 -0
  260. package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts +7 -0
  261. package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +1 -0
  262. package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.js +18 -0
  263. package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +1 -0
  264. package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +47 -0
  265. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.d.ts +12 -0
  266. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.d.ts.map +1 -0
  267. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.js +15 -0
  268. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.js.map +1 -0
  269. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.ts +33 -0
  270. package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.d.ts +79 -0
  271. package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.d.ts.map +1 -0
  272. package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.js +133 -0
  273. package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.js.map +1 -0
  274. package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.ts +153 -0
  275. package/dist/auth/core/index.d.ts +2 -0
  276. package/dist/auth/core/index.d.ts.map +1 -0
  277. package/dist/auth/core/index.js +2 -0
  278. package/dist/auth/core/index.js.map +1 -0
  279. package/dist/auth/core/node.d.ts.map +1 -1
  280. package/dist/auth/core/node.js +29 -24
  281. package/dist/auth/core/node.js.map +1 -1
  282. package/dist/auth/core/schema/models.d.ts.map +1 -1
  283. package/dist/auth/core/schema/models.js +15 -10
  284. package/dist/auth/core/schema/models.js.map +1 -1
  285. package/dist/auth/core/schema/plugin-definition.js +1 -1
  286. package/dist/auth/core/schema/plugin-definition.js.map +1 -1
  287. package/dist/auth/index.d.ts +1 -1
  288. package/dist/auth/index.d.ts.map +1 -1
  289. package/dist/auth/index.js +1 -1
  290. package/dist/auth/index.js.map +1 -1
  291. package/dist/auth0/core/components/auth-definition-editor.d.ts.map +1 -1
  292. package/dist/auth0/core/components/auth-definition-editor.js +7 -4
  293. package/dist/auth0/core/components/auth-definition-editor.js.map +1 -1
  294. package/dist/auth0/core/node.d.ts.map +1 -1
  295. package/dist/auth0/core/node.js +19 -46
  296. package/dist/auth0/core/node.js.map +1 -1
  297. package/dist/auth0/core/schema/plugin-definition.js +1 -1
  298. package/dist/auth0/core/schema/plugin-definition.js.map +1 -1
  299. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts +0 -1
  300. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts.map +1 -1
  301. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +2 -4
  302. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +1 -1
  303. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts +5 -5
  304. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts +1 -1
  305. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts.map +1 -1
  306. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js +5 -5
  307. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js.map +1 -1
  308. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts +4 -1
  309. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts.map +1 -1
  310. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js +8 -1
  311. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js.map +1 -1
  312. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts +5 -5
  313. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts.map +1 -1
  314. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js +6 -6
  315. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js.map +1 -1
  316. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/{useCurrentUser.ts → use-current-user.ts} +4 -3
  317. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/{useRequiredUserId.ts → use-required-user-id.ts} +1 -1
  318. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/{useSession.ts → use-session.ts} +2 -2
  319. package/dist/auth0/generators/react/{auth0-callback/auth0-callback.generator.d.ts → auth0-pages/auth0-pages.generator.d.ts} +18 -27
  320. package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.d.ts.map +1 -0
  321. package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.js +26 -0
  322. package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.js.map +1 -0
  323. package/dist/auth0/generators/react/auth0-pages/generated/index.d.ts +280 -0
  324. package/dist/auth0/generators/react/{auth0-components → auth0-pages}/generated/index.d.ts.map +1 -1
  325. package/dist/auth0/generators/react/auth0-pages/generated/index.js +9 -0
  326. package/dist/auth0/generators/react/auth0-pages/generated/index.js.map +1 -0
  327. package/dist/auth0/generators/react/auth0-pages/generated/template-paths.d.ts +12 -0
  328. package/dist/auth0/generators/react/auth0-pages/generated/template-paths.d.ts.map +1 -0
  329. package/dist/auth0/generators/react/auth0-pages/generated/template-paths.js +20 -0
  330. package/dist/auth0/generators/react/auth0-pages/generated/template-paths.js.map +1 -0
  331. package/dist/auth0/generators/react/{auth0-components → auth0-pages}/generated/template-renderers.d.ts +16 -16
  332. package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.d.ts.map +1 -0
  333. package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.js +37 -0
  334. package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.js.map +1 -0
  335. package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.d.ts +265 -0
  336. package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.d.ts.map +1 -0
  337. package/dist/auth0/generators/react/{auth0-components → auth0-pages}/generated/typed-templates.js +6 -5
  338. package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.js.map +1 -0
  339. package/dist/auth0/generators/react/auth0-pages/index.d.ts +2 -0
  340. package/dist/auth0/generators/react/auth0-pages/index.d.ts.map +1 -0
  341. package/dist/auth0/generators/react/auth0-pages/index.js +2 -0
  342. package/dist/auth0/generators/react/auth0-pages/index.js.map +1 -0
  343. package/dist/auth0/generators/react/auth0-pages/templates/routes/login.tsx +31 -0
  344. package/dist/auth0/generators/react/index.d.ts +1 -2
  345. package/dist/auth0/generators/react/index.d.ts.map +1 -1
  346. package/dist/auth0/generators/react/index.js +1 -2
  347. package/dist/auth0/generators/react/index.js.map +1 -1
  348. package/dist/auth0/generators/react/{auth0-components → react-auth0}/generated/index.d.ts +31 -30
  349. package/dist/auth0/generators/react/react-auth0/generated/index.d.ts.map +1 -0
  350. package/dist/auth0/generators/react/react-auth0/generated/index.js +9 -0
  351. package/dist/auth0/generators/react/react-auth0/generated/index.js.map +1 -0
  352. package/dist/auth0/generators/react/react-auth0/generated/template-paths.d.ts +12 -0
  353. package/dist/auth0/generators/react/react-auth0/generated/template-paths.d.ts.map +1 -0
  354. package/dist/auth0/generators/react/react-auth0/generated/template-paths.js +22 -0
  355. package/dist/auth0/generators/react/react-auth0/generated/template-paths.js.map +1 -0
  356. package/dist/auth0/generators/react/{auth0-callback → react-auth0}/generated/template-renderers.d.ts +15 -27
  357. package/dist/auth0/generators/react/react-auth0/generated/template-renderers.d.ts.map +1 -0
  358. package/dist/auth0/generators/react/react-auth0/generated/template-renderers.js +39 -0
  359. package/dist/auth0/generators/react/react-auth0/generated/template-renderers.js.map +1 -0
  360. package/dist/auth0/generators/react/{auth0-components → react-auth0}/generated/typed-templates.d.ts +14 -9
  361. package/dist/auth0/generators/react/react-auth0/generated/typed-templates.d.ts.map +1 -0
  362. package/dist/auth0/generators/react/react-auth0/generated/typed-templates.js +17 -0
  363. package/dist/auth0/generators/react/react-auth0/generated/typed-templates.js.map +1 -0
  364. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts +159 -3
  365. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts.map +1 -1
  366. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.js +56 -13
  367. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.js.map +1 -1
  368. package/dist/auth0/generators/react/react-auth0/templates/src/app/auth-loaded-gate.tsx +78 -0
  369. package/dist/common/compiler/generator-creators.d.ts +18 -0
  370. package/dist/common/compiler/generator-creators.d.ts.map +1 -0
  371. package/dist/common/compiler/generator-creators.js +34 -0
  372. package/dist/common/compiler/generator-creators.js.map +1 -0
  373. package/dist/common/compiler/index.d.ts +2 -0
  374. package/dist/common/compiler/index.d.ts.map +1 -0
  375. package/dist/common/compiler/index.js +2 -0
  376. package/dist/common/compiler/index.js.map +1 -0
  377. package/dist/common/index.d.ts +3 -0
  378. package/dist/common/index.d.ts.map +1 -0
  379. package/dist/common/index.js +3 -0
  380. package/dist/common/index.js.map +1 -0
  381. package/dist/common/roles/components/index.d.ts +2 -0
  382. package/dist/common/roles/components/index.d.ts.map +1 -0
  383. package/dist/common/roles/components/index.js +2 -0
  384. package/dist/common/roles/components/index.js.map +1 -0
  385. package/dist/{auth0/core/components → common/roles/components/role-editor-form}/role-dialog.d.ts +1 -1
  386. package/dist/common/roles/components/role-editor-form/role-dialog.d.ts.map +1 -0
  387. package/dist/{auth0/core/components → common/roles/components/role-editor-form}/role-dialog.js +1 -1
  388. package/dist/common/roles/components/role-editor-form/role-dialog.js.map +1 -0
  389. package/dist/common/roles/components/role-editor-form/role-editor-form.d.ts +10 -0
  390. package/dist/common/roles/components/role-editor-form/role-editor-form.d.ts.map +1 -0
  391. package/dist/{auth0/core/components → common/roles/components/role-editor-form}/role-editor-form.js +5 -8
  392. package/dist/common/roles/components/role-editor-form/role-editor-form.js.map +1 -0
  393. package/dist/common/roles/constants.d.ts.map +1 -0
  394. package/dist/common/roles/constants.js.map +1 -0
  395. package/dist/common/roles/index.d.ts +4 -0
  396. package/dist/common/roles/index.d.ts.map +1 -0
  397. package/dist/common/roles/index.js +4 -0
  398. package/dist/common/roles/index.js.map +1 -0
  399. package/dist/common/roles/schema.d.ts.map +1 -0
  400. package/dist/common/roles/schema.js.map +1 -0
  401. package/dist/index.d.ts +1 -0
  402. package/dist/index.js +1 -0
  403. package/dist/index.js.map +1 -1
  404. package/dist/placeholder-auth/core/common.d.ts +8 -0
  405. package/dist/placeholder-auth/core/common.d.ts.map +1 -0
  406. package/dist/placeholder-auth/core/common.js +26 -0
  407. package/dist/placeholder-auth/core/common.js.map +1 -0
  408. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.d.ts +5 -0
  409. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.d.ts.map +1 -0
  410. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js +58 -0
  411. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js.map +1 -0
  412. package/dist/placeholder-auth/core/generators/index.d.ts +4 -0
  413. package/dist/placeholder-auth/core/generators/index.d.ts.map +1 -0
  414. package/dist/placeholder-auth/core/generators/index.js +4 -0
  415. package/dist/placeholder-auth/core/generators/index.js.map +1 -0
  416. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts +51 -0
  417. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts.map +1 -0
  418. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.js +11 -0
  419. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.js.map +1 -0
  420. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts +16 -0
  421. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts.map +1 -0
  422. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js +28 -0
  423. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js.map +1 -0
  424. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts +24 -0
  425. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts.map +1 -0
  426. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js +46 -0
  427. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js.map +1 -0
  428. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts +16 -0
  429. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts.map +1 -0
  430. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js +27 -0
  431. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js.map +1 -0
  432. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts +24 -0
  433. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts.map +1 -0
  434. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +68 -0
  435. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js.map +1 -0
  436. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/index.d.ts +2 -0
  437. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/index.d.ts.map +1 -0
  438. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/index.js +2 -0
  439. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/index.js.map +1 -0
  440. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +39 -0
  441. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts.map +1 -0
  442. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js +38 -0
  443. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js.map +1 -0
  444. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.d.ts +14 -0
  445. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.d.ts.map +1 -0
  446. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.gql +10 -0
  447. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js +23 -0
  448. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js.map +1 -0
  449. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.ts +35 -0
  450. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.d.ts +5 -0
  451. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.d.ts.map +1 -0
  452. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.js +8 -0
  453. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.js.map +1 -0
  454. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.ts +8 -0
  455. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.d.ts +9 -0
  456. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.d.ts.map +1 -0
  457. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.js +8 -0
  458. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.js.map +1 -0
  459. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.ts +13 -0
  460. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts +5 -0
  461. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +1 -0
  462. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.js +13 -0
  463. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +1 -0
  464. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.ts +14 -0
  465. package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts +45 -0
  466. package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts.map +1 -0
  467. package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.js +27 -0
  468. package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.js.map +1 -0
  469. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts +75 -0
  470. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts.map +1 -0
  471. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.js +11 -0
  472. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.js.map +1 -0
  473. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-paths.d.ts +12 -0
  474. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-paths.d.ts.map +1 -0
  475. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-paths.js +24 -0
  476. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-paths.js.map +1 -0
  477. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts +39 -0
  478. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts.map +1 -0
  479. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.js +41 -0
  480. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.js.map +1 -0
  481. package/dist/{auth/generators/fastify/auth-module → placeholder-auth/core/generators/placeholder-auth-module}/generated/ts-import-providers.d.ts +2 -2
  482. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts.map +1 -0
  483. package/dist/{auth/generators/fastify/auth-module → placeholder-auth/core/generators/placeholder-auth-module}/generated/ts-import-providers.js +5 -5
  484. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js.map +1 -0
  485. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts +26 -0
  486. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts.map +1 -0
  487. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.js +20 -0
  488. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.js.map +1 -0
  489. package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.d.ts.map +1 -0
  490. package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.js.map +1 -0
  491. package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.d.ts +23 -0
  492. package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.d.ts.map +1 -0
  493. package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.js +29 -0
  494. package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.js.map +1 -0
  495. package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.ts +41 -0
  496. package/dist/placeholder-auth/core/generators/placeholder-react-auth/index.d.ts +2 -0
  497. package/dist/placeholder-auth/core/generators/placeholder-react-auth/index.d.ts.map +1 -0
  498. package/dist/placeholder-auth/core/generators/placeholder-react-auth/index.js +2 -0
  499. package/dist/placeholder-auth/core/generators/placeholder-react-auth/index.js.map +1 -0
  500. package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.d.ts +9 -0
  501. package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.d.ts.map +1 -0
  502. package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.js +31 -0
  503. package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.js.map +1 -0
  504. package/dist/placeholder-auth/core/index.d.ts +2 -0
  505. package/dist/placeholder-auth/core/index.d.ts.map +1 -0
  506. package/dist/placeholder-auth/core/index.js +2 -0
  507. package/dist/placeholder-auth/core/index.js.map +1 -0
  508. package/dist/placeholder-auth/core/node.d.ts +5 -0
  509. package/dist/placeholder-auth/core/node.d.ts.map +1 -0
  510. package/dist/placeholder-auth/core/node.js +46 -0
  511. package/dist/placeholder-auth/core/node.js.map +1 -0
  512. package/dist/placeholder-auth/core/schema/models.d.ts +6 -0
  513. package/dist/placeholder-auth/core/schema/models.d.ts.map +1 -0
  514. package/dist/placeholder-auth/core/schema/models.js +35 -0
  515. package/dist/placeholder-auth/core/schema/models.js.map +1 -0
  516. package/dist/placeholder-auth/core/schema/plugin-definition.d.ts +82 -0
  517. package/dist/placeholder-auth/core/schema/plugin-definition.d.ts.map +1 -0
  518. package/dist/placeholder-auth/core/schema/plugin-definition.js +17 -0
  519. package/dist/placeholder-auth/core/schema/plugin-definition.js.map +1 -0
  520. package/dist/placeholder-auth/core/web.d.ts +6 -0
  521. package/dist/placeholder-auth/core/web.d.ts.map +1 -0
  522. package/dist/placeholder-auth/core/web.js +14 -0
  523. package/dist/placeholder-auth/core/web.js.map +1 -0
  524. package/dist/placeholder-auth/index.d.ts +2 -0
  525. package/dist/placeholder-auth/index.d.ts.map +1 -0
  526. package/dist/placeholder-auth/index.js +2 -0
  527. package/dist/placeholder-auth/index.js.map +1 -0
  528. package/dist/placeholder-auth/metadata.json +9 -0
  529. package/dist/placeholder-auth/static/icon.svg +1 -0
  530. package/dist/web/assets/{__federation_expose_auth0CoreCommon-BYomLcgs.js → __federation_expose_auth0CoreCommon-ClLdXltM.js} +3 -3
  531. package/dist/web/assets/{__federation_expose_auth0CoreCommon-BYomLcgs.js.map → __federation_expose_auth0CoreCommon-ClLdXltM.js.map} +1 -1
  532. package/dist/web/assets/__federation_expose_auth0CoreWeb-n4O5Eaci.js +201 -0
  533. package/dist/web/assets/__federation_expose_auth0CoreWeb-n4O5Eaci.js.map +1 -0
  534. package/dist/web/assets/{__federation_expose_authCoreCommon-CvirZ1-l.js → __federation_expose_authCoreCommon-DnPBC3Po.js} +3 -3
  535. package/dist/web/assets/{__federation_expose_authCoreCommon-CvirZ1-l.js.map → __federation_expose_authCoreCommon-DnPBC3Po.js.map} +1 -1
  536. package/dist/web/assets/{__federation_expose_authCoreWeb-BXQrtVzN.js → __federation_expose_authCoreWeb-xIZTC0Jm.js} +49 -93
  537. package/dist/web/assets/__federation_expose_authCoreWeb-xIZTC0Jm.js.map +1 -0
  538. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-B3uMizrx.js +39 -0
  539. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-B3uMizrx.js.map +1 -0
  540. package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-B_PIacU8.js +197 -0
  541. package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-B_PIacU8.js.map +1 -0
  542. package/dist/web/assets/{__federation_fn_import-5oUmvVro.js → __federation_fn_import-CktB8mRs.js} +2 -2
  543. package/dist/web/assets/{__federation_fn_import-5oUmvVro.js.map → __federation_fn_import-CktB8mRs.js.map} +1 -1
  544. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-DURp5OH4.js → web-CX2RIWJk.js} +5 -5
  545. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-DURp5OH4.js.map → web-CX2RIWJk.js.map} +1 -1
  546. package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-SOC0hDo0.js → project-builder-lib-CScAnw0t.js} +53 -78
  547. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CScAnw0t.js.map +1 -0
  548. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-BIPS02bW.js → ui-components-sv0OhmFj.js} +2970 -16
  549. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-sv0OhmFj.js.map +1 -0
  550. package/dist/web/assets/{index-BAu6L5Vh.js → index-C1wLMBlv.js} +2 -2
  551. package/dist/web/assets/{index-BAu6L5Vh.js.map → index-C1wLMBlv.js.map} +1 -1
  552. package/dist/web/assets/{index.esm-C_MMkPsN.js → index.esm-CGKugQk7.js} +90 -47
  553. package/dist/web/assets/index.esm-CGKugQk7.js.map +1 -0
  554. package/dist/web/assets/{model-merger-qTOhcMVY.js → model-merger-DYdmgijL.js} +72 -14
  555. package/dist/web/assets/model-merger-DYdmgijL.js.map +1 -0
  556. package/dist/web/assets/{plugin-definition-BHJF50Kq.js → plugin-definition-BRtH1ZCf.js} +3 -3
  557. package/dist/web/assets/plugin-definition-BRtH1ZCf.js.map +1 -0
  558. package/dist/web/assets/{plugin-definition-7hIqggth.js → plugin-definition-DSr4dqJI.js} +3 -3
  559. package/dist/web/assets/plugin-definition-DSr4dqJI.js.map +1 -0
  560. package/dist/web/assets/plugin-definition-DkPo-aBg.js +24 -0
  561. package/dist/web/assets/plugin-definition-DkPo-aBg.js.map +1 -0
  562. package/dist/web/assets/{react-8Ha9uuy8.js → react-S9chR6jh.js} +2 -2
  563. package/dist/web/assets/{react-8Ha9uuy8.js.map → react-S9chR6jh.js.map} +1 -1
  564. package/dist/web/assets/remoteEntry.js +14 -8
  565. package/dist/web/assets/remoteEntry.js.map +1 -1
  566. package/dist/web/assets/role-editor-form-BbHZ0ofl.js +319 -0
  567. package/dist/web/assets/role-editor-form-BbHZ0ofl.js.map +1 -0
  568. package/dist/web/assets/{style-BdgwWjAf.css → style-ZUYizAnf.css} +9 -11
  569. package/dist/web/assets/styles-Bqxfz3Ig.js +201 -0
  570. package/dist/web/assets/styles-Bqxfz3Ig.js.map +1 -0
  571. package/dist/web/index.html +1 -1
  572. package/manifest.json +1 -1
  573. package/package.json +12 -11
  574. package/dist/auth/core/components/role-editor-form.d.ts +0 -10
  575. package/dist/auth/core/components/role-editor-form.d.ts.map +0 -1
  576. package/dist/auth/core/components/role-editor-form.js +0 -27
  577. package/dist/auth/core/components/role-editor-form.js.map +0 -1
  578. package/dist/auth/generators/fastify/auth-module/auth-module.generator.d.ts.map +0 -1
  579. package/dist/auth/generators/fastify/auth-module/auth-module.generator.js +0 -74
  580. package/dist/auth/generators/fastify/auth-module/auth-module.generator.js.map +0 -1
  581. package/dist/auth/generators/fastify/auth-module/generated/index.d.ts +0 -88
  582. package/dist/auth/generators/fastify/auth-module/generated/index.d.ts.map +0 -1
  583. package/dist/auth/generators/fastify/auth-module/generated/index.js +0 -9
  584. package/dist/auth/generators/fastify/auth-module/generated/index.js.map +0 -1
  585. package/dist/auth/generators/fastify/auth-module/generated/template-paths.d.ts +0 -16
  586. package/dist/auth/generators/fastify/auth-module/generated/template-paths.d.ts.map +0 -1
  587. package/dist/auth/generators/fastify/auth-module/generated/template-paths.js.map +0 -1
  588. package/dist/auth/generators/fastify/auth-module/generated/ts-import-providers.d.ts.map +0 -1
  589. package/dist/auth/generators/fastify/auth-module/generated/ts-import-providers.js.map +0 -1
  590. package/dist/auth/generators/fastify/auth-module/generated/typed-templates.d.ts.map +0 -1
  591. package/dist/auth/generators/fastify/auth-module/generated/typed-templates.js.map +0 -1
  592. package/dist/auth/generators/fastify/auth-module/index.d.ts.map +0 -1
  593. package/dist/auth/generators/fastify/auth-module/index.js.map +0 -1
  594. package/dist/auth/generators/fastify/index.d.ts +0 -2
  595. package/dist/auth/generators/fastify/index.d.ts.map +0 -1
  596. package/dist/auth/generators/fastify/index.js +0 -2
  597. package/dist/auth/generators/fastify/index.js.map +0 -1
  598. package/dist/auth/generators/index.d.ts +0 -2
  599. package/dist/auth/generators/index.d.ts.map +0 -1
  600. package/dist/auth/generators/index.js +0 -2
  601. package/dist/auth/generators/index.js.map +0 -1
  602. package/dist/auth0/core/components/role-dialog.d.ts.map +0 -1
  603. package/dist/auth0/core/components/role-dialog.js.map +0 -1
  604. package/dist/auth0/core/components/role-editor-form.d.ts +0 -10
  605. package/dist/auth0/core/components/role-editor-form.d.ts.map +0 -1
  606. package/dist/auth0/core/components/role-editor-form.js.map +0 -1
  607. package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.d.ts.map +0 -1
  608. package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.js +0 -48
  609. package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.js.map +0 -1
  610. package/dist/auth0/generators/react/auth0-callback/generated/index.d.ts +0 -440
  611. package/dist/auth0/generators/react/auth0-callback/generated/index.js +0 -9
  612. package/dist/auth0/generators/react/auth0-callback/generated/index.js.map +0 -1
  613. package/dist/auth0/generators/react/auth0-callback/generated/template-paths.d.ts +0 -13
  614. package/dist/auth0/generators/react/auth0-callback/generated/template-paths.d.ts.map +0 -1
  615. package/dist/auth0/generators/react/auth0-callback/generated/template-paths.js +0 -23
  616. package/dist/auth0/generators/react/auth0-callback/generated/template-paths.js.map +0 -1
  617. package/dist/auth0/generators/react/auth0-callback/generated/template-renderers.d.ts.map +0 -1
  618. package/dist/auth0/generators/react/auth0-callback/generated/template-renderers.js +0 -54
  619. package/dist/auth0/generators/react/auth0-callback/generated/template-renderers.js.map +0 -1
  620. package/dist/auth0/generators/react/auth0-callback/generated/typed-templates.d.ts +0 -280
  621. package/dist/auth0/generators/react/auth0-callback/generated/typed-templates.d.ts.map +0 -1
  622. package/dist/auth0/generators/react/auth0-callback/generated/typed-templates.js +0 -30
  623. package/dist/auth0/generators/react/auth0-callback/generated/typed-templates.js.map +0 -1
  624. package/dist/auth0/generators/react/auth0-callback/index.d.ts +0 -2
  625. package/dist/auth0/generators/react/auth0-callback/index.d.ts.map +0 -1
  626. package/dist/auth0/generators/react/auth0-callback/index.js +0 -2
  627. package/dist/auth0/generators/react/auth0-callback/index.js.map +0 -1
  628. package/dist/auth0/generators/react/auth0-callback/templates/routes/auth0-callback.tsx +0 -63
  629. package/dist/auth0/generators/react/auth0-callback/templates/routes/signup.tsx +0 -48
  630. package/dist/auth0/generators/react/auth0-components/auth0-components.generator.d.ts.map +0 -1
  631. package/dist/auth0/generators/react/auth0-components/auth0-components.generator.js +0 -40
  632. package/dist/auth0/generators/react/auth0-components/auth0-components.generator.js.map +0 -1
  633. package/dist/auth0/generators/react/auth0-components/generated/index.js +0 -11
  634. package/dist/auth0/generators/react/auth0-components/generated/index.js.map +0 -1
  635. package/dist/auth0/generators/react/auth0-components/generated/template-paths.d.ts +0 -12
  636. package/dist/auth0/generators/react/auth0-components/generated/template-paths.d.ts.map +0 -1
  637. package/dist/auth0/generators/react/auth0-components/generated/template-paths.js +0 -22
  638. package/dist/auth0/generators/react/auth0-components/generated/template-paths.js.map +0 -1
  639. package/dist/auth0/generators/react/auth0-components/generated/template-renderers.d.ts.map +0 -1
  640. package/dist/auth0/generators/react/auth0-components/generated/template-renderers.js +0 -39
  641. package/dist/auth0/generators/react/auth0-components/generated/template-renderers.js.map +0 -1
  642. package/dist/auth0/generators/react/auth0-components/generated/ts-import-providers.d.ts +0 -10
  643. package/dist/auth0/generators/react/auth0-components/generated/ts-import-providers.d.ts.map +0 -1
  644. package/dist/auth0/generators/react/auth0-components/generated/ts-import-providers.js +0 -25
  645. package/dist/auth0/generators/react/auth0-components/generated/ts-import-providers.js.map +0 -1
  646. package/dist/auth0/generators/react/auth0-components/generated/typed-templates.d.ts.map +0 -1
  647. package/dist/auth0/generators/react/auth0-components/generated/typed-templates.js.map +0 -1
  648. package/dist/auth0/generators/react/auth0-components/index.d.ts +0 -2
  649. package/dist/auth0/generators/react/auth0-components/index.d.ts.map +0 -1
  650. package/dist/auth0/generators/react/auth0-components/index.js +0 -2
  651. package/dist/auth0/generators/react/auth0-components/index.js.map +0 -1
  652. package/dist/auth0/generators/react/auth0-components/templates/src/components/require-auth/require-auth.tsx +0 -22
  653. package/dist/roles/constants.d.ts.map +0 -1
  654. package/dist/roles/constants.js.map +0 -1
  655. package/dist/roles/index.d.ts +0 -3
  656. package/dist/roles/index.d.ts.map +0 -1
  657. package/dist/roles/index.js +0 -3
  658. package/dist/roles/index.js.map +0 -1
  659. package/dist/roles/schema.d.ts.map +0 -1
  660. package/dist/roles/schema.js.map +0 -1
  661. package/dist/utils/cn.d.ts +0 -2
  662. package/dist/utils/cn.d.ts.map +0 -1
  663. package/dist/utils/cn.js +0 -2
  664. package/dist/utils/cn.js.map +0 -1
  665. package/dist/web/assets/__federation_expose_auth0CoreWeb-T5lCcgD1.js +0 -387
  666. package/dist/web/assets/__federation_expose_auth0CoreWeb-T5lCcgD1.js.map +0 -1
  667. package/dist/web/assets/__federation_expose_authCoreWeb-BXQrtVzN.js.map +0 -1
  668. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-SOC0hDo0.js.map +0 -1
  669. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BIPS02bW.js.map +0 -1
  670. package/dist/web/assets/index.esm-C_MMkPsN.js.map +0 -1
  671. package/dist/web/assets/model-merger-qTOhcMVY.js.map +0 -1
  672. package/dist/web/assets/plugin-definition-7hIqggth.js.map +0 -1
  673. package/dist/web/assets/plugin-definition-BHJF50Kq.js.map +0 -1
  674. package/dist/web/assets/schema-BdX0t_km.js +0 -72
  675. package/dist/web/assets/schema-BdX0t_km.js.map +0 -1
  676. package/dist/web/assets/styles-3Wg6h_d_.js +0 -8
  677. package/dist/web/assets/styles-3Wg6h_d_.js.map +0 -1
  678. /package/dist/auth/{generators/fastify → core/generators}/auth-module/templates/module/constants/user-session.constants.ts +0 -0
  679. /package/dist/auth/{generators/fastify → core/generators}/auth-module/templates/module/utils/cookie-signer.ts +0 -0
  680. /package/dist/auth/{generators/fastify → core/generators}/auth-module/templates/module/utils/verify-request-origin.ts +0 -0
  681. /package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/{useCurrentUser.gql → use-current-user.gql} +0 -0
  682. /package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/{useLogOut.ts → use-log-out.ts} +0 -0
  683. /package/dist/{roles → common/roles}/constants.d.ts +0 -0
  684. /package/dist/{roles → common/roles}/constants.js +0 -0
  685. /package/dist/{roles → common/roles}/schema.d.ts +0 -0
  686. /package/dist/{roles → common/roles}/schema.js +0 -0
  687. /package/dist/{auth/generators/fastify/auth-module → placeholder-auth/core/generators/placeholder-auth-module}/index.d.ts +0 -0
  688. /package/dist/{auth/generators/fastify/auth-module → placeholder-auth/core/generators/placeholder-auth-module}/index.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"__federation_fn_import-5oUmvVro.js","sources":["../../../../../node_modules/.pnpm/@originjs+vite-plugin-federation@1.3.6/node_modules/@originjs/vite-plugin-federation/dist/satisfy.mjs"],"sourcesContent":["const buildIdentifier = \"[0-9A-Za-z-]+\";\nconst build = `(?:\\\\+(${buildIdentifier}(?:\\\\.${buildIdentifier})*))`;\nconst numericIdentifier = \"0|[1-9]\\\\d*\";\nconst numericIdentifierLoose = \"[0-9]+\";\nconst nonNumericIdentifier = \"\\\\d*[a-zA-Z-][a-zA-Z0-9-]*\";\nconst preReleaseIdentifierLoose = `(?:${numericIdentifierLoose}|${nonNumericIdentifier})`;\nconst preReleaseLoose = `(?:-?(${preReleaseIdentifierLoose}(?:\\\\.${preReleaseIdentifierLoose})*))`;\nconst preReleaseIdentifier = `(?:${numericIdentifier}|${nonNumericIdentifier})`;\nconst preRelease = `(?:-(${preReleaseIdentifier}(?:\\\\.${preReleaseIdentifier})*))`;\nconst xRangeIdentifier = `${numericIdentifier}|x|X|\\\\*`;\nconst xRangePlain = `[v=\\\\s]*(${xRangeIdentifier})(?:\\\\.(${xRangeIdentifier})(?:\\\\.(${xRangeIdentifier})(?:${preRelease})?${build}?)?)?`;\nconst hyphenRange = `^\\\\s*(${xRangePlain})\\\\s+-\\\\s+(${xRangePlain})\\\\s*$`;\nconst mainVersionLoose = `(${numericIdentifierLoose})\\\\.(${numericIdentifierLoose})\\\\.(${numericIdentifierLoose})`;\nconst loosePlain = `[v=\\\\s]*${mainVersionLoose}${preReleaseLoose}?${build}?`;\nconst gtlt = \"((?:<|>)?=?)\";\nconst comparatorTrim = `(\\\\s*)${gtlt}\\\\s*(${loosePlain}|${xRangePlain})`;\nconst loneTilde = \"(?:~>?)\";\nconst tildeTrim = `(\\\\s*)${loneTilde}\\\\s+`;\nconst loneCaret = \"(?:\\\\^)\";\nconst caretTrim = `(\\\\s*)${loneCaret}\\\\s+`;\nconst star = \"(<|>)?=?\\\\s*\\\\*\";\nconst caret = `^${loneCaret}${xRangePlain}$`;\nconst mainVersion = `(${numericIdentifier})\\\\.(${numericIdentifier})\\\\.(${numericIdentifier})`;\nconst fullPlain = `v?${mainVersion}${preRelease}?${build}?`;\nconst tilde = `^${loneTilde}${xRangePlain}$`;\nconst xRange = `^${gtlt}\\\\s*${xRangePlain}$`;\nconst comparator = `^${gtlt}\\\\s*(${fullPlain})$|^$`;\nconst gte0 = \"^\\\\s*>=\\\\s*0.0.0\\\\s*$\";\nfunction parseRegex(source) {\n return new RegExp(source);\n}\nfunction isXVersion(version) {\n return !version || version.toLowerCase() === \"x\" || version === \"*\";\n}\nfunction pipe(...fns) {\n return (x) => {\n return fns.reduce((v, f) => f(v), x);\n };\n}\nfunction extractComparator(comparatorString) {\n return comparatorString.match(parseRegex(comparator));\n}\nfunction combineVersion(major, minor, patch, preRelease2) {\n const mainVersion2 = `${major}.${minor}.${patch}`;\n if (preRelease2) {\n return `${mainVersion2}-${preRelease2}`;\n }\n return mainVersion2;\n}\nfunction parseHyphen(range) {\n return range.replace(\n parseRegex(hyphenRange),\n (_range, from, fromMajor, fromMinor, fromPatch, _fromPreRelease, _fromBuild, to, toMajor, toMinor, toPatch, toPreRelease) => {\n if (isXVersion(fromMajor)) {\n from = \"\";\n } else if (isXVersion(fromMinor)) {\n from = `>=${fromMajor}.0.0`;\n } else if (isXVersion(fromPatch)) {\n from = `>=${fromMajor}.${fromMinor}.0`;\n } else {\n from = `>=${from}`;\n }\n if (isXVersion(toMajor)) {\n to = \"\";\n } else if (isXVersion(toMinor)) {\n to = `<${+toMajor + 1}.0.0-0`;\n } else if (isXVersion(toPatch)) {\n to = `<${toMajor}.${+toMinor + 1}.0-0`;\n } else if (toPreRelease) {\n to = `<=${toMajor}.${toMinor}.${toPatch}-${toPreRelease}`;\n } else {\n to = `<=${to}`;\n }\n return `${from} ${to}`.trim();\n }\n );\n}\nfunction parseComparatorTrim(range) {\n return range.replace(parseRegex(comparatorTrim), \"$1$2$3\");\n}\nfunction parseTildeTrim(range) {\n return range.replace(parseRegex(tildeTrim), \"$1~\");\n}\nfunction parseCaretTrim(range) {\n return range.replace(parseRegex(caretTrim), \"$1^\");\n}\nfunction parseCarets(range) {\n return range.trim().split(/\\s+/).map((rangeVersion) => {\n return rangeVersion.replace(\n parseRegex(caret),\n (_, major, minor, patch, preRelease2) => {\n if (isXVersion(major)) {\n return \"\";\n } else if (isXVersion(minor)) {\n return `>=${major}.0.0 <${+major + 1}.0.0-0`;\n } else if (isXVersion(patch)) {\n if (major === \"0\") {\n return `>=${major}.${minor}.0 <${major}.${+minor + 1}.0-0`;\n } else {\n return `>=${major}.${minor}.0 <${+major + 1}.0.0-0`;\n }\n } else if (preRelease2) {\n if (major === \"0\") {\n if (minor === \"0\") {\n return `>=${major}.${minor}.${patch}-${preRelease2} <${major}.${minor}.${+patch + 1}-0`;\n } else {\n return `>=${major}.${minor}.${patch}-${preRelease2} <${major}.${+minor + 1}.0-0`;\n }\n } else {\n return `>=${major}.${minor}.${patch}-${preRelease2} <${+major + 1}.0.0-0`;\n }\n } else {\n if (major === \"0\") {\n if (minor === \"0\") {\n return `>=${major}.${minor}.${patch} <${major}.${minor}.${+patch + 1}-0`;\n } else {\n return `>=${major}.${minor}.${patch} <${major}.${+minor + 1}.0-0`;\n }\n }\n return `>=${major}.${minor}.${patch} <${+major + 1}.0.0-0`;\n }\n }\n );\n }).join(\" \");\n}\nfunction parseTildes(range) {\n return range.trim().split(/\\s+/).map((rangeVersion) => {\n return rangeVersion.replace(\n parseRegex(tilde),\n (_, major, minor, patch, preRelease2) => {\n if (isXVersion(major)) {\n return \"\";\n } else if (isXVersion(minor)) {\n return `>=${major}.0.0 <${+major + 1}.0.0-0`;\n } else if (isXVersion(patch)) {\n return `>=${major}.${minor}.0 <${major}.${+minor + 1}.0-0`;\n } else if (preRelease2) {\n return `>=${major}.${minor}.${patch}-${preRelease2} <${major}.${+minor + 1}.0-0`;\n }\n return `>=${major}.${minor}.${patch} <${major}.${+minor + 1}.0-0`;\n }\n );\n }).join(\" \");\n}\nfunction parseXRanges(range) {\n return range.split(/\\s+/).map((rangeVersion) => {\n return rangeVersion.trim().replace(\n parseRegex(xRange),\n (ret, gtlt2, major, minor, patch, preRelease2) => {\n const isXMajor = isXVersion(major);\n const isXMinor = isXMajor || isXVersion(minor);\n const isXPatch = isXMinor || isXVersion(patch);\n if (gtlt2 === \"=\" && isXPatch) {\n gtlt2 = \"\";\n }\n preRelease2 = \"\";\n if (isXMajor) {\n if (gtlt2 === \">\" || gtlt2 === \"<\") {\n return \"<0.0.0-0\";\n } else {\n return \"*\";\n }\n } else if (gtlt2 && isXPatch) {\n if (isXMinor) {\n minor = 0;\n }\n patch = 0;\n if (gtlt2 === \">\") {\n gtlt2 = \">=\";\n if (isXMinor) {\n major = +major + 1;\n minor = 0;\n patch = 0;\n } else {\n minor = +minor + 1;\n patch = 0;\n }\n } else if (gtlt2 === \"<=\") {\n gtlt2 = \"<\";\n if (isXMinor) {\n major = +major + 1;\n } else {\n minor = +minor + 1;\n }\n }\n if (gtlt2 === \"<\") {\n preRelease2 = \"-0\";\n }\n return `${gtlt2 + major}.${minor}.${patch}${preRelease2}`;\n } else if (isXMinor) {\n return `>=${major}.0.0${preRelease2} <${+major + 1}.0.0-0`;\n } else if (isXPatch) {\n return `>=${major}.${minor}.0${preRelease2} <${major}.${+minor + 1}.0-0`;\n }\n return ret;\n }\n );\n }).join(\" \");\n}\nfunction parseStar(range) {\n return range.trim().replace(parseRegex(star), \"\");\n}\nfunction parseGTE0(comparatorString) {\n return comparatorString.trim().replace(parseRegex(gte0), \"\");\n}\nfunction compareAtom(rangeAtom, versionAtom) {\n rangeAtom = +rangeAtom || rangeAtom;\n versionAtom = +versionAtom || versionAtom;\n if (rangeAtom > versionAtom) {\n return 1;\n }\n if (rangeAtom === versionAtom) {\n return 0;\n }\n return -1;\n}\nfunction comparePreRelease(rangeAtom, versionAtom) {\n const { preRelease: rangePreRelease } = rangeAtom;\n const { preRelease: versionPreRelease } = versionAtom;\n if (rangePreRelease === void 0 && !!versionPreRelease) {\n return 1;\n }\n if (!!rangePreRelease && versionPreRelease === void 0) {\n return -1;\n }\n if (rangePreRelease === void 0 && versionPreRelease === void 0) {\n return 0;\n }\n for (let i = 0, n = rangePreRelease.length; i <= n; i++) {\n const rangeElement = rangePreRelease[i];\n const versionElement = versionPreRelease[i];\n if (rangeElement === versionElement) {\n continue;\n }\n if (rangeElement === void 0 && versionElement === void 0) {\n return 0;\n }\n if (!rangeElement) {\n return 1;\n }\n if (!versionElement) {\n return -1;\n }\n return compareAtom(rangeElement, versionElement);\n }\n return 0;\n}\nfunction compareVersion(rangeAtom, versionAtom) {\n return compareAtom(rangeAtom.major, versionAtom.major) || compareAtom(rangeAtom.minor, versionAtom.minor) || compareAtom(rangeAtom.patch, versionAtom.patch) || comparePreRelease(rangeAtom, versionAtom);\n}\nfunction eq(rangeAtom, versionAtom) {\n return rangeAtom.version === versionAtom.version;\n}\nfunction compare(rangeAtom, versionAtom) {\n switch (rangeAtom.operator) {\n case \"\":\n case \"=\":\n return eq(rangeAtom, versionAtom);\n case \">\":\n return compareVersion(rangeAtom, versionAtom) < 0;\n case \">=\":\n return eq(rangeAtom, versionAtom) || compareVersion(rangeAtom, versionAtom) < 0;\n case \"<\":\n return compareVersion(rangeAtom, versionAtom) > 0;\n case \"<=\":\n return eq(rangeAtom, versionAtom) || compareVersion(rangeAtom, versionAtom) > 0;\n case void 0: {\n return true;\n }\n default:\n return false;\n }\n}\nfunction parseComparatorString(range) {\n return pipe(\n parseCarets,\n parseTildes,\n parseXRanges,\n parseStar\n )(range);\n}\nfunction parseRange(range) {\n return pipe(\n parseHyphen,\n parseComparatorTrim,\n parseTildeTrim,\n parseCaretTrim\n )(range.trim()).split(/\\s+/).join(\" \");\n}\nfunction satisfy(version, range) {\n if (!version) {\n return false;\n }\n const parsedRange = parseRange(range);\n const parsedComparator = parsedRange.split(\" \").map((rangeVersion) => parseComparatorString(rangeVersion)).join(\" \");\n const comparators = parsedComparator.split(/\\s+/).map((comparator2) => parseGTE0(comparator2));\n const extractedVersion = extractComparator(version);\n if (!extractedVersion) {\n return false;\n }\n const [\n ,\n versionOperator,\n ,\n versionMajor,\n versionMinor,\n versionPatch,\n versionPreRelease\n ] = extractedVersion;\n const versionAtom = {\n operator: versionOperator,\n version: combineVersion(\n versionMajor,\n versionMinor,\n versionPatch,\n versionPreRelease\n ),\n major: versionMajor,\n minor: versionMinor,\n patch: versionPatch,\n preRelease: versionPreRelease == null ? void 0 : versionPreRelease.split(\".\")\n };\n for (const comparator2 of comparators) {\n const extractedComparator = extractComparator(comparator2);\n if (!extractedComparator) {\n return false;\n }\n const [\n ,\n rangeOperator,\n ,\n rangeMajor,\n rangeMinor,\n rangePatch,\n rangePreRelease\n ] = extractedComparator;\n const rangeAtom = {\n operator: rangeOperator,\n version: combineVersion(\n rangeMajor,\n rangeMinor,\n rangePatch,\n rangePreRelease\n ),\n major: rangeMajor,\n minor: rangeMinor,\n patch: rangePatch,\n preRelease: rangePreRelease == null ? void 0 : rangePreRelease.split(\".\")\n };\n if (!compare(rangeAtom, versionAtom)) {\n return false;\n }\n }\n return true;\n}\nexport {\n satisfy\n};\n"],"names":[],"mappings":"AAAA,MAAM,eAAe,GAAG,eAAe;AACvC,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,eAAe,CAAC,MAAM,EAAE,eAAe,CAAC,IAAI,CAAC;AACrE,MAAM,iBAAiB,GAAG,aAAa;AACvC,MAAM,sBAAsB,GAAG,QAAQ;AACvC,MAAM,oBAAoB,GAAG,4BAA4B;AACzD,MAAM,yBAAyB,GAAG,CAAC,GAAG,EAAE,sBAAsB,CAAC,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC;AACzF,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,yBAAyB,CAAC,MAAM,EAAE,yBAAyB,CAAC,IAAI,CAAC;AAClG,MAAM,oBAAoB,GAAG,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC;AAC/E,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,oBAAoB,CAAC,MAAM,EAAE,oBAAoB,CAAC,IAAI,CAAC;AAClF,MAAM,gBAAgB,GAAG,CAAC,EAAE,iBAAiB,CAAC,QAAQ,CAAC;AACvD,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,gBAAgB,CAAC,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,EAAE,gBAAgB,CAAC,IAAI,EAAE,UAAU,CAA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,UAAU,EAAE,eAAe,IAAI,IAAI,GAAG,MAAM,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG;AAC9E,KAAK;AACL,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,WAAW,CAAC,EAAE;AAC1C,MAAM,OAAO,KAAK;AAClB;AACA;AACA,EAAE,OAAO,IAAI;AACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"__federation_fn_import-CktB8mRs.js","sources":["../../../../../node_modules/.pnpm/@originjs+vite-plugin-federation@1.3.6/node_modules/@originjs/vite-plugin-federation/dist/satisfy.mjs"],"sourcesContent":["const buildIdentifier = \"[0-9A-Za-z-]+\";\nconst build = `(?:\\\\+(${buildIdentifier}(?:\\\\.${buildIdentifier})*))`;\nconst numericIdentifier = \"0|[1-9]\\\\d*\";\nconst numericIdentifierLoose = \"[0-9]+\";\nconst nonNumericIdentifier = \"\\\\d*[a-zA-Z-][a-zA-Z0-9-]*\";\nconst preReleaseIdentifierLoose = `(?:${numericIdentifierLoose}|${nonNumericIdentifier})`;\nconst preReleaseLoose = `(?:-?(${preReleaseIdentifierLoose}(?:\\\\.${preReleaseIdentifierLoose})*))`;\nconst preReleaseIdentifier = `(?:${numericIdentifier}|${nonNumericIdentifier})`;\nconst preRelease = `(?:-(${preReleaseIdentifier}(?:\\\\.${preReleaseIdentifier})*))`;\nconst xRangeIdentifier = `${numericIdentifier}|x|X|\\\\*`;\nconst xRangePlain = `[v=\\\\s]*(${xRangeIdentifier})(?:\\\\.(${xRangeIdentifier})(?:\\\\.(${xRangeIdentifier})(?:${preRelease})?${build}?)?)?`;\nconst hyphenRange = `^\\\\s*(${xRangePlain})\\\\s+-\\\\s+(${xRangePlain})\\\\s*$`;\nconst mainVersionLoose = `(${numericIdentifierLoose})\\\\.(${numericIdentifierLoose})\\\\.(${numericIdentifierLoose})`;\nconst loosePlain = `[v=\\\\s]*${mainVersionLoose}${preReleaseLoose}?${build}?`;\nconst gtlt = \"((?:<|>)?=?)\";\nconst comparatorTrim = `(\\\\s*)${gtlt}\\\\s*(${loosePlain}|${xRangePlain})`;\nconst loneTilde = \"(?:~>?)\";\nconst tildeTrim = `(\\\\s*)${loneTilde}\\\\s+`;\nconst loneCaret = \"(?:\\\\^)\";\nconst caretTrim = `(\\\\s*)${loneCaret}\\\\s+`;\nconst star = \"(<|>)?=?\\\\s*\\\\*\";\nconst caret = `^${loneCaret}${xRangePlain}$`;\nconst mainVersion = `(${numericIdentifier})\\\\.(${numericIdentifier})\\\\.(${numericIdentifier})`;\nconst fullPlain = `v?${mainVersion}${preRelease}?${build}?`;\nconst tilde = `^${loneTilde}${xRangePlain}$`;\nconst xRange = `^${gtlt}\\\\s*${xRangePlain}$`;\nconst comparator = `^${gtlt}\\\\s*(${fullPlain})$|^$`;\nconst gte0 = \"^\\\\s*>=\\\\s*0.0.0\\\\s*$\";\nfunction parseRegex(source) {\n return new RegExp(source);\n}\nfunction isXVersion(version) {\n return !version || version.toLowerCase() === \"x\" || version === \"*\";\n}\nfunction pipe(...fns) {\n return (x) => {\n return fns.reduce((v, f) => f(v), x);\n };\n}\nfunction extractComparator(comparatorString) {\n return comparatorString.match(parseRegex(comparator));\n}\nfunction combineVersion(major, minor, patch, preRelease2) {\n const mainVersion2 = `${major}.${minor}.${patch}`;\n if (preRelease2) {\n return `${mainVersion2}-${preRelease2}`;\n }\n return mainVersion2;\n}\nfunction parseHyphen(range) {\n return range.replace(\n parseRegex(hyphenRange),\n (_range, from, fromMajor, fromMinor, fromPatch, _fromPreRelease, _fromBuild, to, toMajor, toMinor, toPatch, toPreRelease) => {\n if (isXVersion(fromMajor)) {\n from = \"\";\n } else if (isXVersion(fromMinor)) {\n from = `>=${fromMajor}.0.0`;\n } else if (isXVersion(fromPatch)) {\n from = `>=${fromMajor}.${fromMinor}.0`;\n } else {\n from = `>=${from}`;\n }\n if (isXVersion(toMajor)) {\n to = \"\";\n } else if (isXVersion(toMinor)) {\n to = `<${+toMajor + 1}.0.0-0`;\n } else if (isXVersion(toPatch)) {\n to = `<${toMajor}.${+toMinor + 1}.0-0`;\n } else if (toPreRelease) {\n to = `<=${toMajor}.${toMinor}.${toPatch}-${toPreRelease}`;\n } else {\n to = `<=${to}`;\n }\n return `${from} ${to}`.trim();\n }\n );\n}\nfunction parseComparatorTrim(range) {\n return range.replace(parseRegex(comparatorTrim), \"$1$2$3\");\n}\nfunction parseTildeTrim(range) {\n return range.replace(parseRegex(tildeTrim), \"$1~\");\n}\nfunction parseCaretTrim(range) {\n return range.replace(parseRegex(caretTrim), \"$1^\");\n}\nfunction parseCarets(range) {\n return range.trim().split(/\\s+/).map((rangeVersion) => {\n return rangeVersion.replace(\n parseRegex(caret),\n (_, major, minor, patch, preRelease2) => {\n if (isXVersion(major)) {\n return \"\";\n } else if (isXVersion(minor)) {\n return `>=${major}.0.0 <${+major + 1}.0.0-0`;\n } else if (isXVersion(patch)) {\n if (major === \"0\") {\n return `>=${major}.${minor}.0 <${major}.${+minor + 1}.0-0`;\n } else {\n return `>=${major}.${minor}.0 <${+major + 1}.0.0-0`;\n }\n } else if (preRelease2) {\n if (major === \"0\") {\n if (minor === \"0\") {\n return `>=${major}.${minor}.${patch}-${preRelease2} <${major}.${minor}.${+patch + 1}-0`;\n } else {\n return `>=${major}.${minor}.${patch}-${preRelease2} <${major}.${+minor + 1}.0-0`;\n }\n } else {\n return `>=${major}.${minor}.${patch}-${preRelease2} <${+major + 1}.0.0-0`;\n }\n } else {\n if (major === \"0\") {\n if (minor === \"0\") {\n return `>=${major}.${minor}.${patch} <${major}.${minor}.${+patch + 1}-0`;\n } else {\n return `>=${major}.${minor}.${patch} <${major}.${+minor + 1}.0-0`;\n }\n }\n return `>=${major}.${minor}.${patch} <${+major + 1}.0.0-0`;\n }\n }\n );\n }).join(\" \");\n}\nfunction parseTildes(range) {\n return range.trim().split(/\\s+/).map((rangeVersion) => {\n return rangeVersion.replace(\n parseRegex(tilde),\n (_, major, minor, patch, preRelease2) => {\n if (isXVersion(major)) {\n return \"\";\n } else if (isXVersion(minor)) {\n return `>=${major}.0.0 <${+major + 1}.0.0-0`;\n } else if (isXVersion(patch)) {\n return `>=${major}.${minor}.0 <${major}.${+minor + 1}.0-0`;\n } else if (preRelease2) {\n return `>=${major}.${minor}.${patch}-${preRelease2} <${major}.${+minor + 1}.0-0`;\n }\n return `>=${major}.${minor}.${patch} <${major}.${+minor + 1}.0-0`;\n }\n );\n }).join(\" \");\n}\nfunction parseXRanges(range) {\n return range.split(/\\s+/).map((rangeVersion) => {\n return rangeVersion.trim().replace(\n parseRegex(xRange),\n (ret, gtlt2, major, minor, patch, preRelease2) => {\n const isXMajor = isXVersion(major);\n const isXMinor = isXMajor || isXVersion(minor);\n const isXPatch = isXMinor || isXVersion(patch);\n if (gtlt2 === \"=\" && isXPatch) {\n gtlt2 = \"\";\n }\n preRelease2 = \"\";\n if (isXMajor) {\n if (gtlt2 === \">\" || gtlt2 === \"<\") {\n return \"<0.0.0-0\";\n } else {\n return \"*\";\n }\n } else if (gtlt2 && isXPatch) {\n if (isXMinor) {\n minor = 0;\n }\n patch = 0;\n if (gtlt2 === \">\") {\n gtlt2 = \">=\";\n if (isXMinor) {\n major = +major + 1;\n minor = 0;\n patch = 0;\n } else {\n minor = +minor + 1;\n patch = 0;\n }\n } else if (gtlt2 === \"<=\") {\n gtlt2 = \"<\";\n if (isXMinor) {\n major = +major + 1;\n } else {\n minor = +minor + 1;\n }\n }\n if (gtlt2 === \"<\") {\n preRelease2 = \"-0\";\n }\n return `${gtlt2 + major}.${minor}.${patch}${preRelease2}`;\n } else if (isXMinor) {\n return `>=${major}.0.0${preRelease2} <${+major + 1}.0.0-0`;\n } else if (isXPatch) {\n return `>=${major}.${minor}.0${preRelease2} <${major}.${+minor + 1}.0-0`;\n }\n return ret;\n }\n );\n }).join(\" \");\n}\nfunction parseStar(range) {\n return range.trim().replace(parseRegex(star), \"\");\n}\nfunction parseGTE0(comparatorString) {\n return comparatorString.trim().replace(parseRegex(gte0), \"\");\n}\nfunction compareAtom(rangeAtom, versionAtom) {\n rangeAtom = +rangeAtom || rangeAtom;\n versionAtom = +versionAtom || versionAtom;\n if (rangeAtom > versionAtom) {\n return 1;\n }\n if (rangeAtom === versionAtom) {\n return 0;\n }\n return -1;\n}\nfunction comparePreRelease(rangeAtom, versionAtom) {\n const { preRelease: rangePreRelease } = rangeAtom;\n const { preRelease: versionPreRelease } = versionAtom;\n if (rangePreRelease === void 0 && !!versionPreRelease) {\n return 1;\n }\n if (!!rangePreRelease && versionPreRelease === void 0) {\n return -1;\n }\n if (rangePreRelease === void 0 && versionPreRelease === void 0) {\n return 0;\n }\n for (let i = 0, n = rangePreRelease.length; i <= n; i++) {\n const rangeElement = rangePreRelease[i];\n const versionElement = versionPreRelease[i];\n if (rangeElement === versionElement) {\n continue;\n }\n if (rangeElement === void 0 && versionElement === void 0) {\n return 0;\n }\n if (!rangeElement) {\n return 1;\n }\n if (!versionElement) {\n return -1;\n }\n return compareAtom(rangeElement, versionElement);\n }\n return 0;\n}\nfunction compareVersion(rangeAtom, versionAtom) {\n return compareAtom(rangeAtom.major, versionAtom.major) || compareAtom(rangeAtom.minor, versionAtom.minor) || compareAtom(rangeAtom.patch, versionAtom.patch) || comparePreRelease(rangeAtom, versionAtom);\n}\nfunction eq(rangeAtom, versionAtom) {\n return rangeAtom.version === versionAtom.version;\n}\nfunction compare(rangeAtom, versionAtom) {\n switch (rangeAtom.operator) {\n case \"\":\n case \"=\":\n return eq(rangeAtom, versionAtom);\n case \">\":\n return compareVersion(rangeAtom, versionAtom) < 0;\n case \">=\":\n return eq(rangeAtom, versionAtom) || compareVersion(rangeAtom, versionAtom) < 0;\n case \"<\":\n return compareVersion(rangeAtom, versionAtom) > 0;\n case \"<=\":\n return eq(rangeAtom, versionAtom) || compareVersion(rangeAtom, versionAtom) > 0;\n case void 0: {\n return true;\n }\n default:\n return false;\n }\n}\nfunction parseComparatorString(range) {\n return pipe(\n parseCarets,\n parseTildes,\n parseXRanges,\n parseStar\n )(range);\n}\nfunction parseRange(range) {\n return pipe(\n parseHyphen,\n parseComparatorTrim,\n parseTildeTrim,\n parseCaretTrim\n )(range.trim()).split(/\\s+/).join(\" \");\n}\nfunction satisfy(version, range) {\n if (!version) {\n return false;\n }\n const parsedRange = parseRange(range);\n const parsedComparator = parsedRange.split(\" \").map((rangeVersion) => parseComparatorString(rangeVersion)).join(\" \");\n const comparators = parsedComparator.split(/\\s+/).map((comparator2) => parseGTE0(comparator2));\n const extractedVersion = extractComparator(version);\n if (!extractedVersion) {\n return false;\n }\n const [\n ,\n versionOperator,\n ,\n versionMajor,\n versionMinor,\n versionPatch,\n versionPreRelease\n ] = extractedVersion;\n const versionAtom = {\n operator: versionOperator,\n version: combineVersion(\n versionMajor,\n versionMinor,\n versionPatch,\n versionPreRelease\n ),\n major: versionMajor,\n minor: versionMinor,\n patch: versionPatch,\n preRelease: versionPreRelease == null ? void 0 : versionPreRelease.split(\".\")\n };\n for (const comparator2 of comparators) {\n const extractedComparator = extractComparator(comparator2);\n if (!extractedComparator) {\n return false;\n }\n const [\n ,\n rangeOperator,\n ,\n rangeMajor,\n rangeMinor,\n rangePatch,\n rangePreRelease\n ] = extractedComparator;\n const rangeAtom = {\n operator: rangeOperator,\n version: combineVersion(\n rangeMajor,\n rangeMinor,\n rangePatch,\n rangePreRelease\n ),\n major: rangeMajor,\n minor: rangeMinor,\n patch: rangePatch,\n preRelease: rangePreRelease == null ? void 0 : rangePreRelease.split(\".\")\n };\n if (!compare(rangeAtom, versionAtom)) {\n return false;\n }\n }\n return true;\n}\nexport {\n satisfy\n};\n"],"names":[],"mappings":"AAAA,MAAM,eAAe,GAAG,eAAe;AACvC,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,eAAe,CAAC,MAAM,EAAE,eAAe,CAAC,IAAI,CAAC;AACrE,MAAM,iBAAiB,GAAG,aAAa;AACvC,MAAM,sBA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GAAG,iBAAiB,CAAC,KAAK,CAAC,GAAG;AAChF,GAAG;AACH,EAAE,KAAK,MAAM,WAAW,IAAI,WAAW,EAAE;AACzC,IAAI,MAAM,mBAAmB,GAAG,iBAAiB,CAAC,WAAW,CAAC;AAC9D,IAAI,IAAI,CAAC,mBAAmB,EAAE;AAC9B,MAAM,OAAO,KAAK;AAClB;AACA,IAAI,MAAM;AACV;AACA,MAAM,aAAa;AACnB;AACA,MAAM,UAAU;AAChB,MAAM,UAAU;AAChB,MAAM,UAAU;AAChB,MAAM;AACN,KAAK,GAAG,mBAAmB;AAC3B,IAAI,MAAM,SAAS,GAAG;AACtB,MAAM,QAAQ,EAAE,aAAa;AAC7B,MAAM,OAAO,EAAE,cAAc;AAC7B,QAAQ,UAAU;AAClB,QAAQ,UAAU;AAClB,QAAQ,UAAU;AAClB,QAAQ;AACR,OAAO;AACP,MAAM,KAAK,EAAE,UAAU;AACvB,MAAM,KAAK,EAAE,UAAU;AACvB,MAAM,KAAK,EAAE,UAAU;AACvB,MAAM,UAAU,EAAE,eAAe,IAAI,IAAI,GAAG,MAAM,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG;AAC9E,KAAK;AACL,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,WAAW,CAAC,EAAE;AAC1C,MAAM,OAAO,KAAK;AAClB;AACA;AACA,EAAE,OAAO,IAAI;AACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
@@ -1,7 +1,7 @@
1
- import { importShared } from '../../__federation_fn_import-5oUmvVro.js';
2
- import { j as jsxRuntimeExports, u as useFormState, a as useForm } from '../../index.esm-C_MMkPsN.js';
3
- import { F as FeatureUtils, M as ModelUtils, y as modelMergerDefinitionDiffConfig, i as isEqual, c as createPluginSpec } from '../../model-merger-qTOhcMVY.js';
4
- import { c as create } from '../../react-8Ha9uuy8.js';
1
+ import { importShared } from '../../__federation_fn_import-CktB8mRs.js';
2
+ import { j as jsxRuntimeExports, u as useFormState, a as useForm } from '../../index.esm-CGKugQk7.js';
3
+ import { F as FeatureUtils, M as ModelUtils, y as modelMergerDefinitionDiffConfig, i as isEqual, c as createPluginSpec } from '../../model-merger-DYdmgijL.js';
4
+ import { c as create } from '../../react-S9chR6jh.js';
5
5
 
6
6
  function capitalize(str) {
7
7
  return (str.charAt(0).toUpperCase() + str.slice(1).toLowerCase());
@@ -338,4 +338,4 @@ function setUndefinedIfEmpty(value) {
338
338
  }
339
339
 
340
340
  export { ErrorHandlerContext, FeatureComboboxField, FeatureComboboxFieldController, ModelComboboxField, ModelComboboxFieldController, ModelMergerResultAlert, ProjectDefinitionContext, adminCrudInputWebSpec, createAdminCrudInputWebConfig, createAdminCrudInputWebImplementation, createModelTransformerWebImplementation, createNewModelTransformerWebConfig, modelTransformerWebSpec, setUndefinedIfEmpty, useBlockBeforeContinue, useBlockDirtyFormNavigate, useBlockUnsavedChangesNavigate, useBlockerDialog, useBlockerDialogState, useDefinitionSchema, useErrorHandler, useProjectDefinition, useResettableForm };
341
- //# sourceMappingURL=web-DURp5OH4.js.map
341
+ //# sourceMappingURL=web-CX2RIWJk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"web-DURp5OH4.js","sources":["../../../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/string/capitalize.mjs","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-project-definition.js","../../../../../../../packages/project-builder-lib/dist/web/components/feature-combobox-field.js","../../../../../../../packages/project-builder-lib/dist/web/components/model-combobox-field.js","../../../../../../../packages/project-builder-lib/dist/web/components/model-merger-result-alert.js","../../../../../../../packages/project-builder-lib/dist/web/contexts/error-handler.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-blocker-dialog.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-block-dirty-form-navigate.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-block-unsaved-changes-navigate.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-definition-schema.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-error-handler.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-resettable-form.js","../../../../../../../packages/project-builder-lib/dist/web/specs/admin-crud-input-web-spec.js","../../../../../../../packages/project-builder-lib/dist/web/specs/model-transformer-web-spec.js","../../../../../../../packages/project-builder-lib/dist/web/utils/form.js"],"sourcesContent":["function capitalize(str) {\n return (str.charAt(0).toUpperCase() + str.slice(1).toLowerCase());\n}\n\nexport { capitalize };\n","import React from 'react';\nexport const ProjectDefinitionContext = React.createContext(null);\nexport function useProjectDefinition() {\n const result = React.useContext(ProjectDefinitionContext);\n if (!result) {\n throw new Error(`useProjectDefinition must be used within a <ProjectDefinitionProvider>`);\n }\n return result;\n}\n//# sourceMappingURL=use-project-definition.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { ComboboxField, useControllerMerged, } from '@baseplate-dev/ui-components';\nimport { useMemo, useState } from 'react';\nimport { FeatureUtils } from '#src/definition/index.js';\nimport { useProjectDefinition } from '../hooks/use-project-definition.js';\nfunction createCreateOption(value) {\n return {\n label: `Create \"${value}\"`,\n value,\n };\n}\nfunction FeatureComboboxField({ canCreate, value, ...rest }) {\n const { definition } = useProjectDefinition();\n const [searchQuery, setSearchQuery] = useState('');\n const featureOptions = useMemo(() => {\n const baseFeatures = definition.features.map((feature) => ({\n label: feature.name,\n value: feature.id,\n }));\n if (!canCreate)\n return baseFeatures;\n const newFeatureName = searchQuery ? searchQuery : value;\n const doesNewFeatureExist = !!baseFeatures.some((option) => option.label === newFeatureName || option.value === newFeatureName);\n return !doesNewFeatureExist &&\n newFeatureName &&\n FeatureUtils.validateFeatureName(newFeatureName)\n ? [...baseFeatures, createCreateOption(newFeatureName)]\n : baseFeatures;\n }, [definition.features, searchQuery, value, canCreate]);\n return (_jsx(ComboboxField, { placeholder: \"Select a feature\", ...rest, searchQuery: canCreate ? searchQuery : undefined, onSearchQueryChange: setSearchQuery, options: featureOptions, value: value }));\n}\nfunction FeatureComboboxFieldController({ name, control, ...rest }) {\n const { field, fieldState: { error }, } = useControllerMerged({ name, control }, rest);\n const restProps = rest;\n return (_jsx(FeatureComboboxField, { error: error?.message, ...restProps, ...field, value: field.value ?? null }));\n}\nexport { FeatureComboboxField, FeatureComboboxFieldController };\n//# sourceMappingURL=feature-combobox-field.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { ComboboxField, useControllerMerged, } from '@baseplate-dev/ui-components';\nimport { useMemo, useState } from 'react';\nimport { ModelUtils } from '#src/definition/index.js';\nimport { useProjectDefinition } from '../hooks/use-project-definition.js';\nfunction createCreateOption(value) {\n return {\n label: `Create \"${value}\"`,\n value,\n };\n}\nfunction ModelComboboxField({ canCreate, value, ...rest }) {\n const { definition } = useProjectDefinition();\n const [searchQuery, setSearchQuery] = useState('');\n const modelOptions = useMemo(() => {\n const baseModels = definition.models.map((model) => ({\n label: model.name,\n value: model.id,\n }));\n if (!canCreate)\n return baseModels;\n const newModelName = searchQuery ? searchQuery : value;\n const doesNewModelExist = !!baseModels.some((option) => option.label === newModelName || option.value === newModelName);\n return !doesNewModelExist &&\n newModelName &&\n ModelUtils.validateModelName(newModelName)\n ? [...baseModels, createCreateOption(newModelName)]\n : baseModels;\n }, [definition.models, searchQuery, value, canCreate]);\n return (_jsx(ComboboxField, { placeholder: \"Select a model\", ...rest, searchQuery: canCreate ? searchQuery : undefined, onSearchQueryChange: setSearchQuery, options: modelOptions, value: value }));\n}\nfunction ModelComboboxFieldController({ name, control, ...rest }) {\n const { field, fieldState: { error }, } = useControllerMerged({ name, control }, rest);\n const restProps = rest;\n return (_jsx(ModelComboboxField, { error: error?.message, ...restProps, ...field, value: field.value ?? null }));\n}\nexport { ModelComboboxField, ModelComboboxFieldController };\n//# sourceMappingURL=model-combobox-field.js.map","import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { Alert, AlertDescription, AlertTitle, } from '@baseplate-dev/ui-components';\nimport { capitalize } from 'es-toolkit';\nimport { modelMergerDefinitionDiffConfig } from '#src/tools/index.js';\nexport function ModelMergerResultAlert({ pendingModelChanges, }) {\n const changes = Object.values(pendingModelChanges).filter((change) => change !== undefined);\n if (changes.length === 0) {\n return null;\n }\n return (_jsx(\"div\", { className: \"space-y-4\", children: changes.map((change) => (_jsxs(Alert, { variant: change.isNewModel ? 'default' : 'warning', children: [_jsxs(AlertTitle, { children: [change.isNewModel ? 'New Model' : 'Model Changes', \": \", change.name] }), _jsx(AlertDescription, { children: _jsxs(\"div\", { className: \"mt-2 space-y-2\", children: [change.isNewModel ? (_jsx(\"p\", { children: \"This is a new model that will be created with the following configuration:\" })) : (_jsx(\"p\", { children: \"The following changes will be applied to the model:\" })), _jsx(\"ul\", { className: \"list-disc pl-4 space-y-1\", children: Object.entries(change.changes).map(([key, value]) => {\n const field = modelMergerDefinitionDiffConfig[key];\n if (!field) {\n return null;\n }\n if (value?.length) {\n return (_jsxs(\"li\", { children: [value.length === 1 ? (capitalize(field.name)) : (_jsxs(_Fragment, { children: [_jsx(\"span\", { className: \"font-medium\", children: value.length }), ' ', field.name, \"(s)\"] })), ' ', \"will be \", field.getActionVerb(change.isNewModel)] }, key));\n }\n }) })] }) })] }, change.name))) }));\n}\n//# sourceMappingURL=model-merger-result-alert.js.map","import { createContext } from 'react';\nexport const ErrorHandlerContext = createContext(null);\n//# sourceMappingURL=error-handler.js.map","import { useEffect, useId } from 'react';\nimport { create } from 'zustand';\nexport const useBlockerDialogState = create((set) => ({\n activeBlockers: [],\n addBlocker: (options) => {\n set((state) => ({\n activeBlockers: [...state.activeBlockers, options],\n }));\n },\n removeBlocker: (id) => {\n set((state) => ({\n activeBlockers: state.activeBlockers.filter((blocker) => blocker.id !== id),\n }));\n },\n requestedBlockers: [],\n requestBlocker(options) {\n set((state) => ({\n requestedBlockers: [...state.requestedBlockers, options],\n }));\n },\n clearRequestedBlockers: () => {\n set(() => ({\n requestedBlockers: [],\n }));\n },\n}));\nexport function useBlockBeforeContinue() {\n const hasActiveBlockers = useBlockerDialogState((state) => state.activeBlockers.length > 0);\n const clearRequestedBlockers = useBlockerDialogState((state) => state.clearRequestedBlockers);\n // make sure we clear any blocker requests if we navigate away\n useEffect(() => () => {\n clearRequestedBlockers();\n }, [clearRequestedBlockers]);\n const requestBlocker = useBlockerDialogState((state) => state.requestBlocker);\n // if no blockers, continue immediately\n if (!hasActiveBlockers) {\n return ({ onContinue }) => {\n onContinue();\n };\n }\n return requestBlocker;\n}\nexport function useBlockerDialog(options) {\n const id = useId();\n const addBlocker = useBlockerDialogState((state) => state.addBlocker);\n const removeBlocker = useBlockerDialogState((state) => state.removeBlocker);\n useEffect(() => {\n if (options.disableBlock) {\n return;\n }\n addBlocker({\n disableBlock: options.disableBlock,\n title: options.title,\n content: options.content,\n buttonContinueWithoutSaveText: options.buttonContinueWithoutSaveText,\n onContinueWithoutSave: options.onContinueWithoutSave,\n buttonContinueText: options.buttonContinueText,\n onContinue: options.onContinue,\n id,\n });\n return () => {\n removeBlocker(id);\n };\n }, [\n addBlocker,\n removeBlocker,\n options.disableBlock,\n options.buttonContinueWithoutSaveText,\n options.onContinueWithoutSave,\n options.buttonContinueText,\n options.content,\n options.title,\n options.onContinue,\n id,\n ]);\n}\n//# sourceMappingURL=use-blocker-dialog.js.map","import { useBlockerDialog } from './use-blocker-dialog.js';\nexport function useBlockDirtyFormNavigate(formState, reset) {\n useBlockerDialog({\n disableBlock: !formState.isDirty,\n title: 'Unsaved Changes',\n content: 'You have unsaved changes. Are you sure you want to continue?',\n buttonContinueText: 'Discard Changes',\n onContinue: () => {\n reset();\n return true;\n },\n });\n}\n//# sourceMappingURL=use-block-dirty-form-navigate.js.map","import { toast } from '@baseplate-dev/ui-components';\nimport { flattenObject } from 'es-toolkit';\nimport { useEffect, useRef } from 'react';\nimport { useFormState } from 'react-hook-form';\nimport { useBlockerDialog } from './use-blocker-dialog.js';\nexport function useBlockUnsavedChangesNavigate({ control, reset, onSubmit, }) {\n const isDirtyRef = useRef(false);\n const formState = useFormState({ control });\n isDirtyRef.current = formState.isDirty;\n if (import.meta.env.DEV) {\n // eslint-disable-next-line react-hooks/rules-of-hooks -- only want to run this check in dev mode for performance/usability reasons\n useEffect(() => {\n if (Object.keys(formState.dirtyFields).length === 0 &&\n formState.isDirty) {\n // a bit of a hack to figure out what the issue is but OK since we only do this in dev mode\n const { _formValues, _defaultValues } = control;\n const formValueKeys = Object.keys(flattenObject(_formValues));\n const defaultValueKeys = Object.keys(flattenObject(_defaultValues));\n const missingKeys = formValueKeys.filter((key) => !defaultValueKeys.includes(key));\n toast.error(`Form is dirty but no fields are marked as dirty. This implies that there is likely a field ` +\n `is controlled but not set in defaultValues. This can be fixed by setting the default value to the field. ` +\n `Note: You will only see this error if you are running the app in dev mode. ` +\n `Missing fields: ${missingKeys.join(', ')}`);\n }\n }, [formState.dirtyFields, formState.isDirty, control]);\n }\n useBlockerDialog({\n disableBlock: !formState.isDirty,\n title: 'Unsaved Changes',\n content: 'You have unsaved changes. Do you want to save your changes?',\n buttonContinueWithoutSaveText: 'Discard Changes',\n onContinueWithoutSave: () => {\n reset();\n return true;\n },\n buttonContinueText: 'Save',\n onContinue: async () => {\n await onSubmit();\n // a bit of a hack to make sure we get the latest form state before continuing\n // there's not an easy way of figuring out if the submission was successful or not\n // so we wait for a React re-render and then check if the form is still dirty\n await new Promise((resolve) => setTimeout(resolve, 1));\n return !isDirtyRef.current;\n },\n });\n}\n//# sourceMappingURL=use-block-unsaved-changes-navigate.js.map","import { useMemo } from 'react';\nimport { useProjectDefinition } from './use-project-definition.js';\nexport function useDefinitionSchema(schemaCreator) {\n const { definitionSchemaParserContext } = useProjectDefinition();\n return useMemo(() => schemaCreator(definitionSchemaParserContext), [definitionSchemaParserContext, schemaCreator]);\n}\n//# sourceMappingURL=use-definition-schema.js.map","import { useContext } from 'react';\nimport { ErrorHandlerContext } from '../contexts/error-handler.js';\nexport function useErrorHandler() {\n const context = useContext(ErrorHandlerContext);\n if (!context) {\n throw new Error('useErrorHandler must be used within an ErrorHandlerContext');\n }\n return context;\n}\n//# sourceMappingURL=use-error-handler.js.map","import { toast } from '@baseplate-dev/ui-components';\nimport { isEqual } from 'es-toolkit';\nimport { useEffect, useRef } from 'react';\nimport { useForm } from 'react-hook-form';\nimport { useProjectDefinition } from './use-project-definition.js';\nexport function useResettableForm(props) {\n const formProps = useForm(props);\n const { reset, formState } = formProps;\n const { isDirty } = formState;\n const { updatedExternally } = useProjectDefinition();\n const oldValues = useRef(undefined);\n useEffect(() => {\n if (oldValues.current &&\n !isEqual(oldValues.current.oldDefaultValues, props?.defaultValues)) {\n reset(props?.defaultValues);\n if (isDirty && updatedExternally) {\n toast.warning('Contents were updated externally so form was reset!');\n }\n }\n if (!oldValues.current ||\n !isEqual(oldValues.current.oldDefaultValues, props?.defaultValues)) {\n oldValues.current = {\n oldDefaultValues: props?.defaultValues,\n };\n }\n }, [props?.defaultValues, reset, updatedExternally, isDirty]);\n return formProps;\n}\n//# sourceMappingURL=use-resettable-form.js.map","import { createPluginSpec } from '#src/plugins/spec/types.js';\nexport function createAdminCrudInputWebConfig(config) {\n return config;\n}\nexport function createAdminCrudInputWebImplementation() {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const inputs = new Map();\n return {\n registerInputWebConfig(input) {\n if (inputs.has(input.name)) {\n throw new Error(`Admin CRUD input with name ${input.name} is already registered`);\n }\n inputs.set(input.name, input);\n },\n getInputWebConfig(name, builtInInputs = []) {\n const builtInInput = builtInInputs.find((b) => b.name === name);\n if (builtInInput) {\n return builtInInput;\n }\n const input = inputs.get(name);\n if (!input) {\n throw new Error(`Unable to find input with name ${name}`);\n }\n return input;\n },\n getInputWebConfigs(builtInInputs = []) {\n return [...builtInInputs, ...inputs.values()];\n },\n };\n}\n/**\n * Spec for adding config component for plugin\n */\nexport const adminCrudInputWebSpec = createPluginSpec('core/admin-crud-input-web', { defaultInitializer: createAdminCrudInputWebImplementation });\n//# sourceMappingURL=admin-crud-input-web-spec.js.map","import { createPluginSpec } from '#src/plugins/spec/types.js';\nexport function createNewModelTransformerWebConfig(config) {\n return config;\n}\nexport function createModelTransformerWebImplementation() {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const transformers = new Map();\n return {\n registerTransformerWebConfig(transformer) {\n if (transformers.has(transformer.name)) {\n throw new Error(`Model transformer with name ${transformer.name} is already registered`);\n }\n transformers.set(transformer.name, transformer);\n },\n getTransformerWebConfig(name, builtInTransformers = []) {\n const builtInTransformer = builtInTransformers.find((b) => b.name === name);\n if (builtInTransformer) {\n return builtInTransformer;\n }\n const transformer = transformers.get(name);\n if (!transformer) {\n throw new Error(`Unable to find transformer with name ${name}`);\n }\n return transformer;\n },\n getTransformerWebConfigs(builtInTransformers = []) {\n return [...builtInTransformers, ...transformers.values()];\n },\n };\n}\n/**\n * Spec for adding config component for plugin\n */\nexport const modelTransformerWebSpec = createPluginSpec('core/model-transformer-web', { defaultInitializer: createModelTransformerWebImplementation });\n//# sourceMappingURL=model-transformer-web-spec.js.map","export function setUndefinedIfEmpty(value) {\n if (value === '')\n return undefined;\n return value;\n}\n//# sourceMappingURL=form.js.map"],"names":["ComboboxField","useControllerMerged","useMemo","useState","createCreateOption","_jsx","_jsxs","_Fragment","useEffect","toast","useRef"],"mappings":";;;;;AAAA,SAAS,UAAU,CAAC,GAAG,EAAE;AACzB,IAAI,QAAQ,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;AACpE;;ACFA,MAAA,KAAA,GAAA,MAAA,YAAA,CAAA,OAAA,CAAA;;AACY,MAAC,wBAAwB,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI;AACzD,SAAS,oBAAoB,GAAG;AACvC,IAAI,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAAC,wBAAwB,CAAC;AAC7D,IAAI,I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,WAAW,CAAC;AAC3D,SAAS;AACT,QAAQ,uBAAuB,CAAC,IAAI,EAAE,mBAAmB,GAAG,EAAE,EAAE;AAChE,YAAY,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC;AACvF,YAAY,IAAI,kBAAkB,EAAE;AACpC,gBAAgB,OAAO,kBAAkB;AACzC;AACA,YAAY,MAAM,WAAW,GAAG,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC;AACtD,YAAY,IAAI,CAAC,WAAW,EAAE;AAC9B,gBAAgB,MAAM,IAAI,KAAK,CAAC,CAAC,qCAAqC,EAAE,IAAI,CAAC,CAAC,CAAC;AAC/E;AACA,YAAY,OAAO,WAAW;AAC9B,SAAS;AACT,QAAQ,wBAAwB,CAAC,mBAAmB,GAAG,EAAE,EAAE;AAC3D,YAAY,OAAO,CAAC,GAAG,mBAAmB,EAAE,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC;AACrE,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACY,MAAC,uBAAuB,GAAG,gBAAgB,CAAC,4BAA4B,EAAE,EAAE,kBAAkB,EAAE,uCAAuC,EAAE;;ACjC9I,SAAS,mBAAmB,CAAC,KAAK,EAAE;AAC3C,IAAI,IAAI,KAAK,KAAK,EAAE;AACpB,QAAQ,OAAO,SAAS;AACxB,IAAI,OAAO,KAAK;AAChB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"web-CX2RIWJk.js","sources":["../../../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/string/capitalize.mjs","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-project-definition.js","../../../../../../../packages/project-builder-lib/dist/web/components/feature-combobox-field.js","../../../../../../../packages/project-builder-lib/dist/web/components/model-combobox-field.js","../../../../../../../packages/project-builder-lib/dist/web/components/model-merger-result-alert.js","../../../../../../../packages/project-builder-lib/dist/web/contexts/error-handler.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-blocker-dialog.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-block-dirty-form-navigate.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-block-unsaved-changes-navigate.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-definition-schema.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-error-handler.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-resettable-form.js","../../../../../../../packages/project-builder-lib/dist/web/specs/admin-crud-input-web-spec.js","../../../../../../../packages/project-builder-lib/dist/web/specs/model-transformer-web-spec.js","../../../../../../../packages/project-builder-lib/dist/web/utils/form.js"],"sourcesContent":["function capitalize(str) {\n return (str.charAt(0).toUpperCase() + str.slice(1).toLowerCase());\n}\n\nexport { capitalize };\n","import React from 'react';\nexport const ProjectDefinitionContext = React.createContext(null);\nexport function useProjectDefinition() {\n const result = React.useContext(ProjectDefinitionContext);\n if (!result) {\n throw new Error(`useProjectDefinition must be used within a <ProjectDefinitionProvider>`);\n }\n return result;\n}\n//# sourceMappingURL=use-project-definition.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { ComboboxField, useControllerMerged, } from '@baseplate-dev/ui-components';\nimport { useMemo, useState } from 'react';\nimport { FeatureUtils } from '#src/definition/index.js';\nimport { useProjectDefinition } from '../hooks/use-project-definition.js';\nfunction createCreateOption(value) {\n return {\n label: `Create \"${value}\"`,\n value,\n };\n}\nfunction FeatureComboboxField({ canCreate, value, ...rest }) {\n const { definition } = useProjectDefinition();\n const [searchQuery, setSearchQuery] = useState('');\n const featureOptions = useMemo(() => {\n const baseFeatures = definition.features.map((feature) => ({\n label: feature.name,\n value: feature.id,\n }));\n if (!canCreate)\n return baseFeatures;\n const newFeatureName = searchQuery ? searchQuery : value;\n const doesNewFeatureExist = !!baseFeatures.some((option) => option.label === newFeatureName || option.value === newFeatureName);\n return !doesNewFeatureExist &&\n newFeatureName &&\n FeatureUtils.validateFeatureName(newFeatureName)\n ? [...baseFeatures, createCreateOption(newFeatureName)]\n : baseFeatures;\n }, [definition.features, searchQuery, value, canCreate]);\n return (_jsx(ComboboxField, { placeholder: \"Select a feature\", ...rest, searchQuery: canCreate ? searchQuery : undefined, onSearchQueryChange: setSearchQuery, options: featureOptions, value: value }));\n}\nfunction FeatureComboboxFieldController({ name, control, ...rest }) {\n const { field, fieldState: { error }, } = useControllerMerged({ name, control }, rest);\n const restProps = rest;\n return (_jsx(FeatureComboboxField, { error: error?.message, ...restProps, ...field, value: field.value ?? null }));\n}\nexport { FeatureComboboxField, FeatureComboboxFieldController };\n//# sourceMappingURL=feature-combobox-field.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { ComboboxField, useControllerMerged, } from '@baseplate-dev/ui-components';\nimport { useMemo, useState } from 'react';\nimport { ModelUtils } from '#src/definition/index.js';\nimport { useProjectDefinition } from '../hooks/use-project-definition.js';\nfunction createCreateOption(value) {\n return {\n label: `Create \"${value}\"`,\n value,\n };\n}\nfunction ModelComboboxField({ canCreate, value, ...rest }) {\n const { definition } = useProjectDefinition();\n const [searchQuery, setSearchQuery] = useState('');\n const modelOptions = useMemo(() => {\n const baseModels = definition.models.map((model) => ({\n label: model.name,\n value: model.id,\n }));\n if (!canCreate)\n return baseModels;\n const newModelName = searchQuery ? searchQuery : value;\n const doesNewModelExist = !!baseModels.some((option) => option.label === newModelName || option.value === newModelName);\n return !doesNewModelExist &&\n newModelName &&\n ModelUtils.validateModelName(newModelName)\n ? [...baseModels, createCreateOption(newModelName)]\n : baseModels;\n }, [definition.models, searchQuery, value, canCreate]);\n return (_jsx(ComboboxField, { placeholder: \"Select a model\", ...rest, searchQuery: canCreate ? searchQuery : undefined, onSearchQueryChange: setSearchQuery, options: modelOptions, value: value }));\n}\nfunction ModelComboboxFieldController({ name, control, ...rest }) {\n const { field, fieldState: { error }, } = useControllerMerged({ name, control }, rest);\n const restProps = rest;\n return (_jsx(ModelComboboxField, { error: error?.message, ...restProps, ...field, value: field.value ?? null }));\n}\nexport { ModelComboboxField, ModelComboboxFieldController };\n//# sourceMappingURL=model-combobox-field.js.map","import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { Alert, AlertDescription, AlertTitle, } from '@baseplate-dev/ui-components';\nimport { capitalize } from 'es-toolkit';\nimport { modelMergerDefinitionDiffConfig } from '#src/tools/index.js';\nexport function ModelMergerResultAlert({ pendingModelChanges, }) {\n const changes = Object.values(pendingModelChanges).filter((change) => change !== undefined);\n if (changes.length === 0) {\n return null;\n }\n return (_jsx(\"div\", { className: \"space-y-4\", children: changes.map((change) => (_jsxs(Alert, { variant: change.isNewModel ? 'default' : 'warning', children: [_jsxs(AlertTitle, { children: [change.isNewModel ? 'New Model' : 'Model Changes', \": \", change.name] }), _jsx(AlertDescription, { children: _jsxs(\"div\", { className: \"mt-2 space-y-2\", children: [change.isNewModel ? (_jsx(\"p\", { children: \"This is a new model that will be created with the following configuration:\" })) : (_jsx(\"p\", { children: \"The following changes will be applied to the model:\" })), _jsx(\"ul\", { className: \"list-disc pl-4 space-y-1\", children: Object.entries(change.changes).map(([key, value]) => {\n const field = modelMergerDefinitionDiffConfig[key];\n if (!field) {\n return null;\n }\n if (value?.length) {\n return (_jsxs(\"li\", { children: [value.length === 1 ? (capitalize(field.name)) : (_jsxs(_Fragment, { children: [_jsx(\"span\", { className: \"font-medium\", children: value.length }), ' ', field.name, \"(s)\"] })), ' ', \"will be \", field.getActionVerb(change.isNewModel)] }, key));\n }\n }) })] }) })] }, change.name))) }));\n}\n//# sourceMappingURL=model-merger-result-alert.js.map","import { createContext } from 'react';\nexport const ErrorHandlerContext = createContext(null);\n//# sourceMappingURL=error-handler.js.map","import { useEffect, useId } from 'react';\nimport { create } from 'zustand';\nexport const useBlockerDialogState = create((set) => ({\n activeBlockers: [],\n addBlocker: (options) => {\n set((state) => ({\n activeBlockers: [...state.activeBlockers, options],\n }));\n },\n removeBlocker: (id) => {\n set((state) => ({\n activeBlockers: state.activeBlockers.filter((blocker) => blocker.id !== id),\n }));\n },\n requestedBlockers: [],\n requestBlocker(options) {\n set((state) => ({\n requestedBlockers: [...state.requestedBlockers, options],\n }));\n },\n clearRequestedBlockers: () => {\n set(() => ({\n requestedBlockers: [],\n }));\n },\n}));\nexport function useBlockBeforeContinue() {\n const hasActiveBlockers = useBlockerDialogState((state) => state.activeBlockers.length > 0);\n const clearRequestedBlockers = useBlockerDialogState((state) => state.clearRequestedBlockers);\n // make sure we clear any blocker requests if we navigate away\n useEffect(() => () => {\n clearRequestedBlockers();\n }, [clearRequestedBlockers]);\n const requestBlocker = useBlockerDialogState((state) => state.requestBlocker);\n // if no blockers, continue immediately\n if (!hasActiveBlockers) {\n return ({ onContinue }) => {\n onContinue();\n };\n }\n return requestBlocker;\n}\nexport function useBlockerDialog(options) {\n const id = useId();\n const addBlocker = useBlockerDialogState((state) => state.addBlocker);\n const removeBlocker = useBlockerDialogState((state) => state.removeBlocker);\n useEffect(() => {\n if (options.disableBlock) {\n return;\n }\n addBlocker({\n disableBlock: options.disableBlock,\n title: options.title,\n content: options.content,\n buttonContinueWithoutSaveText: options.buttonContinueWithoutSaveText,\n onContinueWithoutSave: options.onContinueWithoutSave,\n buttonContinueText: options.buttonContinueText,\n onContinue: options.onContinue,\n id,\n });\n return () => {\n removeBlocker(id);\n };\n }, [\n addBlocker,\n removeBlocker,\n options.disableBlock,\n options.buttonContinueWithoutSaveText,\n options.onContinueWithoutSave,\n options.buttonContinueText,\n options.content,\n options.title,\n options.onContinue,\n id,\n ]);\n}\n//# sourceMappingURL=use-blocker-dialog.js.map","import { useBlockerDialog } from './use-blocker-dialog.js';\nexport function useBlockDirtyFormNavigate(formState, reset) {\n useBlockerDialog({\n disableBlock: !formState.isDirty,\n title: 'Unsaved Changes',\n content: 'You have unsaved changes. Are you sure you want to continue?',\n buttonContinueText: 'Discard Changes',\n onContinue: () => {\n reset();\n return true;\n },\n });\n}\n//# sourceMappingURL=use-block-dirty-form-navigate.js.map","import { toast } from '@baseplate-dev/ui-components';\nimport { flattenObject } from 'es-toolkit';\nimport { useEffect, useRef } from 'react';\nimport { useFormState } from 'react-hook-form';\nimport { useBlockerDialog } from './use-blocker-dialog.js';\nexport function useBlockUnsavedChangesNavigate({ control, reset, onSubmit, }) {\n const isDirtyRef = useRef(false);\n const formState = useFormState({ control });\n isDirtyRef.current = formState.isDirty;\n if (import.meta.env.DEV) {\n // eslint-disable-next-line react-hooks/rules-of-hooks -- only want to run this check in dev mode for performance/usability reasons\n useEffect(() => {\n if (Object.keys(formState.dirtyFields).length === 0 &&\n formState.isDirty) {\n // a bit of a hack to figure out what the issue is but OK since we only do this in dev mode\n const { _formValues, _defaultValues } = control;\n const formValueKeys = Object.keys(flattenObject(_formValues));\n const defaultValueKeys = Object.keys(flattenObject(_defaultValues));\n const missingKeys = formValueKeys.filter((key) => !defaultValueKeys.includes(key));\n toast.error(`Form is dirty but no fields are marked as dirty. This implies that there is likely a field ` +\n `is controlled but not set in defaultValues. This can be fixed by setting the default value to the field. ` +\n `Note: You will only see this error if you are running the app in dev mode. ` +\n `Missing fields: ${missingKeys.join(', ')}`);\n }\n }, [formState.dirtyFields, formState.isDirty, control]);\n }\n useBlockerDialog({\n disableBlock: !formState.isDirty,\n title: 'Unsaved Changes',\n content: 'You have unsaved changes. Do you want to save your changes?',\n buttonContinueWithoutSaveText: 'Discard Changes',\n onContinueWithoutSave: () => {\n reset();\n return true;\n },\n buttonContinueText: 'Save',\n onContinue: async () => {\n await onSubmit();\n // a bit of a hack to make sure we get the latest form state before continuing\n // there's not an easy way of figuring out if the submission was successful or not\n // so we wait for a React re-render and then check if the form is still dirty\n await new Promise((resolve) => setTimeout(resolve, 1));\n return !isDirtyRef.current;\n },\n });\n}\n//# sourceMappingURL=use-block-unsaved-changes-navigate.js.map","import { useMemo } from 'react';\nimport { useProjectDefinition } from './use-project-definition.js';\nexport function useDefinitionSchema(schemaCreator) {\n const { definitionSchemaParserContext } = useProjectDefinition();\n return useMemo(() => schemaCreator(definitionSchemaParserContext), [definitionSchemaParserContext, schemaCreator]);\n}\n//# sourceMappingURL=use-definition-schema.js.map","import { useContext } from 'react';\nimport { ErrorHandlerContext } from '../contexts/error-handler.js';\nexport function useErrorHandler() {\n const context = useContext(ErrorHandlerContext);\n if (!context) {\n throw new Error('useErrorHandler must be used within an ErrorHandlerContext');\n }\n return context;\n}\n//# sourceMappingURL=use-error-handler.js.map","import { toast } from '@baseplate-dev/ui-components';\nimport { isEqual } from 'es-toolkit';\nimport { useEffect, useRef } from 'react';\nimport { useForm } from 'react-hook-form';\nimport { useProjectDefinition } from './use-project-definition.js';\nexport function useResettableForm(props) {\n const formProps = useForm(props);\n const { reset, formState } = formProps;\n const { isDirty } = formState;\n const { updatedExternally } = useProjectDefinition();\n const oldValues = useRef(undefined);\n useEffect(() => {\n if (oldValues.current &&\n !isEqual(oldValues.current.oldDefaultValues, props?.defaultValues)) {\n reset(props?.defaultValues);\n if (isDirty && updatedExternally) {\n toast.warning('Contents were updated externally so form was reset!');\n }\n }\n if (!oldValues.current ||\n !isEqual(oldValues.current.oldDefaultValues, props?.defaultValues)) {\n oldValues.current = {\n oldDefaultValues: props?.defaultValues,\n };\n }\n }, [props?.defaultValues, reset, updatedExternally, isDirty]);\n return formProps;\n}\n//# sourceMappingURL=use-resettable-form.js.map","import { createPluginSpec } from '#src/plugins/spec/types.js';\nexport function createAdminCrudInputWebConfig(config) {\n return config;\n}\nexport function createAdminCrudInputWebImplementation() {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const inputs = new Map();\n return {\n registerInputWebConfig(input) {\n if (inputs.has(input.name)) {\n throw new Error(`Admin CRUD input with name ${input.name} is already registered`);\n }\n inputs.set(input.name, input);\n },\n getInputWebConfig(name, builtInInputs = []) {\n const builtInInput = builtInInputs.find((b) => b.name === name);\n if (builtInInput) {\n return builtInInput;\n }\n const input = inputs.get(name);\n if (!input) {\n throw new Error(`Unable to find input with name ${name}`);\n }\n return input;\n },\n getInputWebConfigs(builtInInputs = []) {\n return [...builtInInputs, ...inputs.values()];\n },\n };\n}\n/**\n * Spec for adding config component for plugin\n */\nexport const adminCrudInputWebSpec = createPluginSpec('core/admin-crud-input-web', { defaultInitializer: createAdminCrudInputWebImplementation });\n//# sourceMappingURL=admin-crud-input-web-spec.js.map","import { createPluginSpec } from '#src/plugins/spec/types.js';\nexport function createNewModelTransformerWebConfig(config) {\n return config;\n}\nexport function createModelTransformerWebImplementation() {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const transformers = new Map();\n return {\n registerTransformerWebConfig(transformer) {\n if (transformers.has(transformer.name)) {\n throw new Error(`Model transformer with name ${transformer.name} is already registered`);\n }\n transformers.set(transformer.name, transformer);\n },\n getTransformerWebConfig(name, builtInTransformers = []) {\n const builtInTransformer = builtInTransformers.find((b) => b.name === name);\n if (builtInTransformer) {\n return builtInTransformer;\n }\n const transformer = transformers.get(name);\n if (!transformer) {\n throw new Error(`Unable to find transformer with name ${name}`);\n }\n return transformer;\n },\n getTransformerWebConfigs(builtInTransformers = []) {\n return [...builtInTransformers, ...transformers.values()];\n },\n };\n}\n/**\n * Spec for adding config component for plugin\n */\nexport const modelTransformerWebSpec = createPluginSpec('core/model-transformer-web', { defaultInitializer: createModelTransformerWebImplementation });\n//# sourceMappingURL=model-transformer-web-spec.js.map","export function setUndefinedIfEmpty(value) {\n if (value === '')\n return undefined;\n return value;\n}\n//# sourceMappingURL=form.js.map"],"names":["ComboboxField","useControllerMerged","useMemo","useState","createCreateOption","_jsx","_jsxs","_Fragment","useEffect","toast","useRef"],"mappings":";;;;;AAAA,SAAS,UAAU,CAAC,GAAG,EAAE;AACzB,IAAI,QAAQ,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;AACpE;;ACFA,MAAA,KAAA,GAAA,MAAA,YAAA,CAAA,OAAA,CAAA;;AACY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gBAAgB,MAAM,IAAI,KAAK,CAAC,CAAC,4BAA4B,EAAE,WAAW,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;AACxG;AACA,YAAY,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC;AAC3D,SAAS;AACT,QAAQ,uBAAuB,CAAC,IAAI,EAAE,mBAAmB,GAAG,EAAE,EAAE;AAChE,YAAY,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC;AACvF,YAAY,IAAI,kBAAkB,EAAE;AACpC,gBAAgB,OAAO,kBAAkB;AACzC;AACA,YAAY,MAAM,WAAW,GAAG,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC;AACtD,YAAY,IAAI,CAAC,WAAW,EAAE;AAC9B,gBAAgB,MAAM,IAAI,KAAK,CAAC,CAAC,qCAAqC,EAAE,IAAI,CAAC,CAAC,CAAC;AAC/E;AACA,YAAY,OAAO,WAAW;AAC9B,SAAS;AACT,QAAQ,wBAAwB,CAAC,mBAAmB,GAAG,EAAE,EAAE;AAC3D,YAAY,OAAO,CAAC,GAAG,mBAAmB,EAAE,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC;AACrE,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACY,MAAC,uBAAuB,GAAG,gBAAgB,CAAC,4BAA4B,EAAE,EAAE,kBAAkB,EAAE,uCAAuC,EAAE;;ACjC9I,SAAS,mBAAmB,CAAC,KAAK,EAAE;AAC3C,IAAI,IAAI,KAAK,KAAK,EAAE;AACpB,QAAQ,OAAO,SAAS;AACxB,IAAI,OAAO,KAAK;AAChB;;;;","x_google_ignoreList":[0]}
@@ -1,6 +1,6 @@
1
- import { c as createPluginSpec, i as isEqual, m as mapValues, a as createEntityType, C as CASE_VALIDATORS, D as DefinitionReferenceMarker, g as get$1, R as REF_ANNOTATIONS_MARKER_SYMBOL, b as createDefinitionSchemaParserContext, s as set$1, d as definitionSchema, e as modelForeignRelationEntityType, f as modelLocalRelationEntityType, h as modelScalarFieldEntityType, j as modelTransformerEntityType, k as modelEntityType, l as modelEnumValueEntityType, n as featureEntityType, o as modelEnumEntityType, p as modelUniqueConstraintEntityType, q as createFeaturesSchema, M as ModelUtils, r as omit, t as cloneDeep } from '../model-merger-qTOhcMVY.js';
2
- export { J as DefinitionDiffArrayIncludesField, H as DefinitionDiffKeyedArrayField, I as DefinitionDiffReplacementField, v as DefinitionEntityType, F as FeatureUtils, N as applyDefinitionDiff, B as applyModelMergerDiff, E as applyModelMergerResultInPlace, G as createAndApplyModelMergerResults, L as createDefinitionDiff, K as createDefinitionDiffConfig, x as createFeatureSchema, u as createInitializedPluginSpec, z as createModelMergerResult, A as createModelMergerResults, w as featureNameSchema, y as modelMergerDefinitionDiffConfig } from '../model-merger-qTOhcMVY.js';
3
- import { importShared } from '../__federation_fn_import-5oUmvVro.js';
1
+ import { c as createPluginSpec, i as isEqual, m as mapValues, a as createEntityType, C as CASE_VALIDATORS, D as DefinitionReferenceMarker, g as get$1, R as REF_ANNOTATIONS_MARKER_SYMBOL, b as createDefinitionSchemaParserContext, s as set$1, d as definitionSchema, e as modelForeignRelationEntityType, f as modelLocalRelationEntityType, h as modelScalarFieldEntityType, j as modelTransformerEntityType, k as modelEntityType, l as modelEnumValueEntityType, n as featureEntityType, o as modelEnumEntityType, p as modelUniqueConstraintEntityType, q as createFeaturesSchema, M as ModelUtils, r as omit, t as cloneDeep } from '../model-merger-DYdmgijL.js';
2
+ export { K as DefinitionDiffArrayIncludesField, I as DefinitionDiffKeyedArrayField, J as DefinitionDiffReplacementField, v as DefinitionEntityType, F as FeatureUtils, O as applyDefinitionDiff, E as applyModelMergerDiff, G as applyModelMergerResultInPlace, H as createAndApplyModelMergerResults, N as createDefinitionDiff, L as createDefinitionDiffConfig, x as createFeatureSchema, u as createInitializedPluginSpec, z as createModelMergerResult, B as createModelMergerResults, A as doesModelMergerResultsHaveChanges, w as featureNameSchema, y as modelMergerDefinitionDiffConfig } from '../model-merger-DYdmgijL.js';
3
+ import { importShared } from '../__federation_fn_import-CktB8mRs.js';
4
4
 
5
5
  function createAdminCrudInputCompilerImplementation() {
6
6
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -831,6 +831,12 @@ const pluginMetadataSchema = z$k.object({
831
831
  dependencies: z$k.array(pluginSpecDependencySchema).optional(),
832
832
  })
833
833
  .optional(),
834
+ /**
835
+ * Whether the plugin should be hidden in the project builder UI
836
+ *
837
+ * (It can be used once in the definition but cannot be added)
838
+ */
839
+ hidden: z$k.boolean().optional(),
834
840
  });
835
841
 
836
842
  var NOTHING = Symbol.for("immer-nothing");
@@ -2586,6 +2592,14 @@ function extractDefinitionRefs(value) {
2586
2592
  entitiesWithNameResolver: [],
2587
2593
  };
2588
2594
  const cleanData = extractDefinitionRefsRecursive(value, refContext, []);
2595
+ // Simple sanity check to make sure we don't have duplicate IDs
2596
+ const idSet = new Set();
2597
+ for (const entity of refContext.entitiesWithNameResolver) {
2598
+ if (idSet.has(entity.id)) {
2599
+ throw new Error(`Duplicate ID found: ${entity.id}`);
2600
+ }
2601
+ idSet.add(entity.id);
2602
+ }
2589
2603
  return {
2590
2604
  data: cleanData,
2591
2605
  references: refContext.references,
@@ -2938,96 +2952,53 @@ const VALIDATORS = {
2938
2952
  };
2939
2953
 
2940
2954
  const {z: z$g} = await importShared('zod');
2941
- const createRoleArray = definitionSchema((ctx) => z$g
2942
- .array(ctx.withRef({
2955
+ const createRoleArray = definitionSchema((ctx) => ctx.withDefault(z$g.array(ctx.withRef({
2943
2956
  type: authRoleEntityType,
2944
2957
  onDelete: 'DELETE',
2945
- }))
2946
- .optional());
2958
+ })), []));
2947
2959
  const createModelGraphqlSchema = definitionSchema((ctx) => z$g.object({
2948
- objectType: z$g
2949
- .object({
2950
- enabled: z$g.boolean().default(false),
2951
- fields: z$g.array(ctx.withRef({
2960
+ objectType: ctx.withDefault(z$g.object({
2961
+ enabled: ctx.withDefault(z$g.boolean(), false),
2962
+ fields: ctx.withDefault(z$g.array(ctx.withRef({
2952
2963
  type: modelScalarFieldEntityType,
2953
2964
  onDelete: 'DELETE',
2954
2965
  parentPath: { context: 'model' },
2955
- })),
2956
- localRelations: z$g
2957
- .array(ctx.withRef({
2966
+ })), []),
2967
+ localRelations: ctx.withDefault(z$g.array(ctx.withRef({
2958
2968
  type: modelLocalRelationEntityType,
2959
2969
  onDelete: 'DELETE',
2960
2970
  parentPath: { context: 'model' },
2961
- }))
2962
- .optional(),
2963
- foreignRelations: z$g
2964
- .array(ctx.withRef({
2971
+ })), []),
2972
+ foreignRelations: ctx.withDefault(z$g.array(ctx.withRef({
2965
2973
  type: modelForeignRelationEntityType,
2966
2974
  onDelete: 'DELETE',
2967
2975
  parentPath: { context: 'model' },
2968
- }))
2969
- .optional(),
2970
- })
2971
- .default({
2972
- enabled: false,
2973
- fields: [],
2974
- }),
2975
- queries: z$g
2976
- .object({
2977
- get: z$g
2978
- .object({
2979
- enabled: z$g.boolean().optional(),
2976
+ })), []),
2977
+ }), {}),
2978
+ queries: ctx.withDefault(z$g.object({
2979
+ get: ctx.withDefault(z$g.object({
2980
+ enabled: ctx.withDefault(z$g.boolean(), false),
2980
2981
  roles: createRoleArray(ctx),
2981
- })
2982
- .optional(),
2983
- list: z$g
2984
- .object({
2985
- enabled: z$g.boolean().optional(),
2982
+ }), {}),
2983
+ list: ctx.withDefault(z$g.object({
2984
+ enabled: ctx.withDefault(z$g.boolean(), false),
2986
2985
  roles: createRoleArray(ctx),
2987
- })
2988
- .optional(),
2989
- })
2990
- .default({
2991
- get: {
2992
- enabled: false,
2993
- roles: [],
2994
- },
2995
- list: {
2996
- enabled: false,
2997
- roles: [],
2998
- },
2999
- }),
3000
- mutations: z$g
3001
- .object({
3002
- create: z$g
3003
- .object({
3004
- enabled: z$g.boolean().optional(),
2986
+ }), {}),
2987
+ }), {}),
2988
+ mutations: ctx.withDefault(z$g.object({
2989
+ create: ctx.withDefault(z$g.object({
2990
+ enabled: ctx.withDefault(z$g.boolean(), false),
3005
2991
  roles: createRoleArray(ctx),
3006
- })
3007
- .default({
3008
- enabled: false,
3009
- roles: [],
3010
- }),
3011
- update: z$g
3012
- .object({
3013
- enabled: z$g.boolean().optional(),
2992
+ }), {}),
2993
+ update: ctx.withDefault(z$g.object({
2994
+ enabled: ctx.withDefault(z$g.boolean(), false),
3014
2995
  roles: createRoleArray(ctx),
3015
- })
3016
- .default({
3017
- enabled: false,
3018
- roles: [],
3019
- }),
3020
- delete: z$g
3021
- .object({
3022
- enabled: z$g.boolean().optional(),
2996
+ }), {}),
2997
+ delete: ctx.withDefault(z$g.object({
2998
+ enabled: ctx.withDefault(z$g.boolean(), false),
3023
2999
  roles: createRoleArray(ctx),
3024
- })
3025
- .default({
3026
- enabled: false,
3027
- roles: [],
3028
- }),
3029
- })
3030
- .default({}),
3000
+ }), {}),
3001
+ }), {}),
3031
3002
  }));
3032
3003
 
3033
3004
  const {z: z$f} = await importShared('zod');
@@ -4117,7 +4088,11 @@ class ProjectDefinitionContainer {
4117
4088
  * @returns The serialized contents of the project definition
4118
4089
  */
4119
4090
  toSerializedContents() {
4120
- return stringifyPrettyStable(serializeSchemaFromRefPayload(this.refPayload));
4091
+ const serializedContents = serializeSchema(createProjectDefinitionSchema, this.definition, {
4092
+ defaultMode: 'strip',
4093
+ plugins: this.pluginStore,
4094
+ });
4095
+ return stringifyPrettyStable(serializedContents);
4121
4096
  }
4122
4097
  /**
4123
4098
  * Creates a new ProjectDefinitionContainer from a raw project definition.
@@ -10268,4 +10243,4 @@ function generateDefaultTheme() {
10268
10243
  }
10269
10244
 
10270
10245
  export { AVAILABLE_FLAGS, AppUtils, BUILT_IN_ADMIN_CRUD_INPUTS, BUILT_IN_TRANSFORMERS, COLOR_PALETTES, DefinitionRefBuilder, EnumUtils, FIXED_COLOR_MAPPINGS, ModelFieldUtils, ModelTransformerUtils, ModelUtils, PALETTE_SHADES, PluginImplementationStore, PluginUtils, ProjectDefinitionContainer, REFERENTIAL_ACTIONS, SCALAR_FIELD_TYPES, SCHEMA_MIGRATIONS, SchemaMigrationError, THEME_COLORS, THEME_COLOR_KEYS, VALIDATORS, adminAppEntryType, adminCrudDisplayTypes, adminCrudEmbeddedFormEntityType, adminCrudEmbeddedInputType, adminCrudEmbeddedLocalInputType, adminCrudInputCompilerSpec, adminCrudInputSpec, adminSectionEntityType, appCompilerSpec, appEntityType, authConfigSpec, authRoleEntityType, backendAppEntryType, baseAdminCrudInputSchema, baseAppSchema, baseAppValidators, basePluginDefinitionSchema, baseTransformerFields, baseTransformerSchema, convertColorNameToOklch, convertHexToOklch, convertOklchToColorName, convertOklchToHex, createAdminAppSchema, createAdminCrudDisplaySchema, createAdminCrudEmbeddedFormSchema, createAdminCrudEmbeddedInputSchema, createAdminCrudEmbeddedListSchema, createAdminCrudEmbeddedLocalInputSchema, createAdminCrudEmbeddedObjectSchema, createAdminCrudEnumInputSchema, createAdminCrudForeignDisplaySchema, createAdminCrudForeignInputSchema, createAdminCrudInputCompilerImplementation, createAdminCrudInputImplementation, createAdminCrudInputSchema, createAdminCrudInputType, createAdminCrudPasswordInputSchema, createAdminCrudSectionSchema, createAdminCrudTableColumnSchema, createAdminCrudTextDisplaySchema, createAdminCrudTextInputSchema, createAdminSectionSchema, createAppCompiler, createAppCompilerPlugin, createAppEntryType, createAppSchema, createBackendAppSchema, createBaseAdminSectionValidators, createDefinitionEntityNameResolver, createDefinitionSchemaParserContext, createEmbeddedRelationTransformerSchema, createEntityType, createEnumBaseSchema, createEnumSchema, createEnumValueSchema, createFeaturesSchema, createModelBaseSchema, createModelGraphqlSchema, createModelRelationFieldSchema, createModelScalarFieldSchema, createModelSchema, createModelServiceSchema, createModelTransformerCompilerImplementation, createModelTransformerImplementation, createModelTransformerType, createModelUniqueConstraintSchema, createPasswordTransformerSchema, createPlatformPluginExport, createPluginConfigImplementation, createPluginImplementationStore, createPluginSpec, createPluginWithConfigSchema, createPluginsSchema, createProjectDefinitionSchema, createProjectDefinitionSchemaWithContext, createSettingsSchema, createTemplateExtractorSchema, createTestProjectDefinition, createTestProjectDefinitionContainer, createTestProjectDefinitionInput, createThemeSchema, createTransformerSchema, createWebAppSchema, createWebConfigImplementation, definitionSchema, deserializeSchemaWithTransformedReferences, extractDefinitionRefs, extractDefinitionRefsRecursive, featureEntityType, fixRefDeletions, generalSettingsSchema, generateCssFromThemeConfig, generateDefaultTheme, generateThemeColorsFromShade, getBackendRelativePath, getDefaultThemeColorFromShade, getLatestMigrationVersion, initializePlugins, isMigrateableProjectDefinition, modelEntityType, modelEnumEntityType, modelEnumValueEntityType, modelForeignRelationEntityType, modelLocalRelationEntityType, modelScalarFieldEntityType, modelTransformerCompilerSpec, modelTransformerEntityType, modelTransformerSpec, modelUniqueConstraintEntityType, oklchColor, paletteSchema, palettesSchema, parseOklch, parseProjectDefinitionWithContext, parseProjectDefinitionWithReferences, pluginConfigSpec, pluginEntityType, pluginManifestJsonSchema, pluginMetadataSchema, pluginSpecDependencySchema, pluginSpecSupportSchema, runPluginMigrations, runSchemaMigrations, serializeSchema, serializeSchemaFromRefPayload, stripEmptyGeneratorChildren, stripUndefinedValues, themeColorSchema, undefinedIfEmpty, undefinedIfFalsy, webAppEntryType, webConfigSpec };
10271
- //# sourceMappingURL=project-builder-lib-SOC0hDo0.js.map
10246
+ //# sourceMappingURL=project-builder-lib-CScAnw0t.js.map