@baseplate-dev/plugin-auth 0.1.3 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/dist/auth/core/node.d.ts.map +1 -1
  2. package/dist/auth/core/node.js +6 -3
  3. package/dist/auth/core/node.js.map +1 -1
  4. package/dist/auth/generators/fastify/auth-module/auth-module.generator.d.ts +13 -1
  5. package/dist/auth/generators/fastify/auth-module/auth-module.generator.d.ts.map +1 -1
  6. package/dist/auth/generators/fastify/auth-module/auth-module.generator.js +20 -8
  7. package/dist/auth/generators/fastify/auth-module/auth-module.generator.js.map +1 -1
  8. package/dist/auth/generators/fastify/auth-module/generated/index.d.ts +88 -0
  9. package/dist/auth/generators/fastify/auth-module/generated/index.d.ts.map +1 -0
  10. package/dist/auth/generators/fastify/auth-module/generated/index.js +9 -0
  11. package/dist/auth/generators/fastify/auth-module/generated/index.js.map +1 -0
  12. package/dist/auth/generators/fastify/auth-module/generated/template-paths.d.ts +16 -0
  13. package/dist/auth/generators/fastify/auth-module/generated/template-paths.d.ts.map +1 -0
  14. package/dist/auth/generators/fastify/auth-module/generated/template-paths.js +26 -0
  15. package/dist/auth/generators/fastify/auth-module/generated/template-paths.js.map +1 -0
  16. package/dist/auth/generators/fastify/auth-module/generated/ts-import-providers.d.ts +10 -0
  17. package/dist/auth/generators/fastify/auth-module/generated/ts-import-providers.d.ts.map +1 -0
  18. package/dist/auth/generators/fastify/auth-module/generated/ts-import-providers.js +23 -0
  19. package/dist/auth/generators/fastify/auth-module/generated/ts-import-providers.js.map +1 -0
  20. package/dist/auth/generators/fastify/auth-module/generated/{ts-templates.d.ts → typed-templates.d.ts} +26 -41
  21. package/dist/auth/generators/fastify/auth-module/generated/typed-templates.d.ts.map +1 -0
  22. package/dist/auth/generators/fastify/auth-module/generated/typed-templates.js +68 -0
  23. package/dist/auth/generators/fastify/auth-module/generated/typed-templates.js.map +1 -0
  24. package/dist/auth/generators/fastify/auth-module/index.d.ts +2 -0
  25. package/dist/auth/generators/fastify/auth-module/index.d.ts.map +1 -0
  26. package/dist/auth/generators/fastify/auth-module/index.js +2 -0
  27. package/dist/auth/generators/fastify/auth-module/index.js.map +1 -0
  28. package/dist/auth/generators/fastify/auth-module/templates/{utils → module/utils}/cookie-signer.ts +6 -0
  29. package/dist/auth/generators/fastify/index.d.ts +1 -1
  30. package/dist/auth/generators/fastify/index.d.ts.map +1 -1
  31. package/dist/auth/generators/fastify/index.js +1 -1
  32. package/dist/auth/generators/fastify/index.js.map +1 -1
  33. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts +14 -6
  34. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts.map +1 -1
  35. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js +11 -16
  36. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js.map +1 -1
  37. package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts +62 -0
  38. package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts.map +1 -0
  39. package/dist/auth0/generators/fastify/auth0-module/generated/index.js +9 -0
  40. package/dist/auth0/generators/fastify/auth0-module/generated/index.js.map +1 -0
  41. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts +13 -0
  42. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts.map +1 -0
  43. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js +23 -0
  44. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js.map +1 -0
  45. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.d.ts +10 -0
  46. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.d.ts.map +1 -0
  47. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.js +23 -0
  48. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.js.map +1 -0
  49. package/dist/auth0/generators/fastify/auth0-module/generated/{ts-templates.d.ts → typed-templates.d.ts} +2 -2
  50. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts.map +1 -0
  51. package/dist/auth0/generators/fastify/auth0-module/generated/{ts-templates.js → typed-templates.js} +11 -8
  52. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js.map +1 -0
  53. package/dist/auth0/generators/fastify/auth0-module/index.d.ts +2 -0
  54. package/dist/auth0/generators/fastify/auth0-module/index.d.ts.map +1 -0
  55. package/dist/auth0/generators/fastify/auth0-module/index.js +2 -0
  56. package/dist/auth0/generators/fastify/auth0-module/index.js.map +1 -0
  57. package/dist/auth0/generators/fastify/index.d.ts +1 -1
  58. package/dist/auth0/generators/fastify/index.d.ts.map +1 -1
  59. package/dist/auth0/generators/fastify/index.js +1 -1
  60. package/dist/auth0/generators/fastify/index.js.map +1 -1
  61. package/dist/auth0/generators/react/auth0-apollo/index.d.ts +2 -0
  62. package/dist/auth0/generators/react/auth0-apollo/index.d.ts.map +1 -0
  63. package/dist/auth0/generators/react/auth0-apollo/index.js +2 -0
  64. package/dist/auth0/generators/react/auth0-apollo/index.js.map +1 -0
  65. package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.d.ts +101 -8
  66. package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.d.ts.map +1 -1
  67. package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.js +10 -11
  68. package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.js.map +1 -1
  69. package/dist/auth0/generators/react/auth0-callback/generated/index.d.ts +290 -0
  70. package/dist/auth0/generators/react/auth0-callback/generated/index.d.ts.map +1 -0
  71. package/dist/auth0/generators/react/auth0-callback/generated/index.js +7 -0
  72. package/dist/auth0/generators/react/auth0-callback/generated/index.js.map +1 -0
  73. package/dist/auth0/generators/react/auth0-callback/generated/template-paths.d.ts +13 -0
  74. package/dist/auth0/generators/react/auth0-callback/generated/template-paths.d.ts.map +1 -0
  75. package/dist/auth0/generators/react/auth0-callback/generated/template-paths.js +23 -0
  76. package/dist/auth0/generators/react/auth0-callback/generated/template-paths.js.map +1 -0
  77. package/dist/auth0/generators/react/auth0-callback/generated/typed-templates.d.ts +280 -0
  78. package/dist/auth0/generators/react/auth0-callback/generated/typed-templates.d.ts.map +1 -0
  79. package/dist/auth0/generators/react/auth0-callback/generated/{ts-templates.js → typed-templates.js} +11 -9
  80. package/dist/auth0/generators/react/auth0-callback/generated/typed-templates.js.map +1 -0
  81. package/dist/auth0/generators/react/auth0-callback/index.d.ts +2 -0
  82. package/dist/auth0/generators/react/auth0-callback/index.d.ts.map +1 -0
  83. package/dist/auth0/generators/react/auth0-callback/index.js +2 -0
  84. package/dist/auth0/generators/react/auth0-callback/index.js.map +1 -0
  85. package/dist/auth0/generators/react/auth0-callback/templates/{auth0-callback.page.tsx → routes/auth0-callback.page.tsx} +3 -3
  86. package/dist/auth0/generators/react/auth0-callback/templates/{signup.page.tsx → routes/signup.page.tsx} +3 -3
  87. package/dist/auth0/generators/react/auth0-components/auth0-components.generator.d.ts +106 -12
  88. package/dist/auth0/generators/react/auth0-components/auth0-components.generator.d.ts.map +1 -1
  89. package/dist/auth0/generators/react/auth0-components/auth0-components.generator.js +12 -16
  90. package/dist/auth0/generators/react/auth0-components/auth0-components.generator.js.map +1 -1
  91. package/dist/auth0/generators/react/auth0-components/generated/index.d.ts +151 -0
  92. package/dist/auth0/generators/react/auth0-components/generated/index.d.ts.map +1 -0
  93. package/dist/auth0/generators/react/auth0-components/generated/index.js +9 -0
  94. package/dist/auth0/generators/react/auth0-components/generated/index.js.map +1 -0
  95. package/dist/auth0/generators/react/auth0-components/generated/template-paths.d.ts +12 -0
  96. package/dist/auth0/generators/react/auth0-components/generated/template-paths.d.ts.map +1 -0
  97. package/dist/auth0/generators/react/auth0-components/generated/template-paths.js +22 -0
  98. package/dist/auth0/generators/react/auth0-components/generated/template-paths.js.map +1 -0
  99. package/dist/auth0/generators/react/auth0-components/generated/ts-import-providers.d.ts +10 -0
  100. package/dist/auth0/generators/react/auth0-components/generated/ts-import-providers.d.ts.map +1 -0
  101. package/dist/auth0/generators/react/auth0-components/generated/ts-import-providers.js +25 -0
  102. package/dist/auth0/generators/react/auth0-components/generated/ts-import-providers.js.map +1 -0
  103. package/dist/auth0/generators/react/auth0-components/generated/typed-templates.d.ts +132 -0
  104. package/dist/auth0/generators/react/auth0-components/generated/typed-templates.d.ts.map +1 -0
  105. package/dist/auth0/generators/react/auth0-components/generated/typed-templates.js +17 -0
  106. package/dist/auth0/generators/react/auth0-components/generated/typed-templates.js.map +1 -0
  107. package/dist/auth0/generators/react/auth0-components/index.d.ts +2 -0
  108. package/dist/auth0/generators/react/auth0-components/index.d.ts.map +1 -0
  109. package/dist/auth0/generators/react/auth0-components/index.js +2 -0
  110. package/dist/auth0/generators/react/auth0-components/index.js.map +1 -0
  111. package/dist/auth0/generators/react/auth0-components/templates/{RequireAuth.tsx → src/components/require-auth/require-auth.tsx} +4 -4
  112. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts +10 -2
  113. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts.map +1 -1
  114. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +13 -24
  115. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +1 -1
  116. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts +51 -0
  117. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts.map +1 -0
  118. package/dist/auth0/generators/react/auth0-hooks/generated/index.js +9 -0
  119. package/dist/auth0/generators/react/auth0-hooks/generated/index.js.map +1 -0
  120. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts +16 -0
  121. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts.map +1 -0
  122. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js +26 -0
  123. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js.map +1 -0
  124. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts +16 -0
  125. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts.map +1 -0
  126. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js +27 -0
  127. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js.map +1 -0
  128. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts +44 -0
  129. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts.map +1 -0
  130. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js +67 -0
  131. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js.map +1 -0
  132. package/dist/auth0/generators/react/auth0-hooks/index.d.ts +2 -0
  133. package/dist/auth0/generators/react/auth0-hooks/index.d.ts.map +1 -0
  134. package/dist/auth0/generators/react/auth0-hooks/index.js +2 -0
  135. package/dist/auth0/generators/react/auth0-hooks/index.js.map +1 -0
  136. package/dist/auth0/generators/react/index.d.ts +5 -5
  137. package/dist/auth0/generators/react/index.d.ts.map +1 -1
  138. package/dist/auth0/generators/react/index.js +5 -5
  139. package/dist/auth0/generators/react/index.js.map +1 -1
  140. package/dist/auth0/generators/react/react-auth0/index.d.ts +2 -0
  141. package/dist/auth0/generators/react/react-auth0/index.d.ts.map +1 -0
  142. package/dist/auth0/generators/react/react-auth0/index.js +2 -0
  143. package/dist/auth0/generators/react/react-auth0/index.js.map +1 -0
  144. package/dist/web/assets/{__federation_expose_auth0CoreCommon-DCwCR5dZ.js → __federation_expose_auth0CoreCommon-BE50qa2_.js} +3 -3
  145. package/dist/web/assets/{__federation_expose_auth0CoreCommon-DCwCR5dZ.js.map → __federation_expose_auth0CoreCommon-BE50qa2_.js.map} +1 -1
  146. package/dist/web/assets/{__federation_expose_auth0CoreWeb-BlCwYpTq.js → __federation_expose_auth0CoreWeb-AdDVCP7O.js} +7 -9
  147. package/dist/web/assets/__federation_expose_auth0CoreWeb-AdDVCP7O.js.map +1 -0
  148. package/dist/web/assets/__federation_expose_authCoreCommon-DKyLSPCa.js +36 -0
  149. package/dist/web/assets/__federation_expose_authCoreCommon-DKyLSPCa.js.map +1 -0
  150. package/dist/web/assets/__federation_expose_authCoreWeb-CfCyOvUk.js +442 -0
  151. package/dist/web/assets/__federation_expose_authCoreWeb-CfCyOvUk.js.map +1 -0
  152. package/dist/web/assets/{__federation_fn_import-dzKjrTzS.js → __federation_fn_import-CxP86CUK.js} +2 -2
  153. package/dist/web/assets/{__federation_fn_import-dzKjrTzS.js.map → __federation_fn_import-CxP86CUK.js.map} +1 -1
  154. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-BXHJHUXP.js → web-BFCvL5ku.js} +5 -5
  155. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BFCvL5ku.js.map +1 -0
  156. package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-GtzVuDsM.js → project-builder-lib-BAwM_-SS.js} +150 -159
  157. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-BAwM_-SS.js.map +1 -0
  158. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-ChoqtPkg.js → ui-components-C3uzqK6u.js} +18156 -10210
  159. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-C3uzqK6u.js.map +1 -0
  160. package/dist/web/assets/{index-BxDOOHD-.js → index-scyXBD_d.js} +10 -4
  161. package/dist/web/assets/{index-BxDOOHD-.js.map → index-scyXBD_d.js.map} +1 -1
  162. package/dist/web/assets/{index.esm-BZEyAv4m.js → index.esm-DIgRm3lq.js} +3 -3
  163. package/dist/web/assets/{index.esm-BZEyAv4m.js.map → index.esm-DIgRm3lq.js.map} +1 -1
  164. package/dist/web/assets/{model-merger-CdV-7CWE.js → model-merger-gxuB007n.js} +33 -23
  165. package/dist/web/assets/model-merger-gxuB007n.js.map +1 -0
  166. package/dist/web/assets/plugin-definition-Bgi_XH0-.js +22 -0
  167. package/dist/web/assets/plugin-definition-Bgi_XH0-.js.map +1 -0
  168. package/dist/web/assets/plugin-definition-EtIvYJxn.js +34 -0
  169. package/dist/web/assets/plugin-definition-EtIvYJxn.js.map +1 -0
  170. package/dist/web/assets/{react-BfiX28GO.js → react-CAuz_DuX.js} +2 -2
  171. package/dist/web/assets/{react-BfiX28GO.js.map → react-CAuz_DuX.js.map} +1 -1
  172. package/dist/web/assets/remoteEntry.js +8 -2
  173. package/dist/web/assets/remoteEntry.js.map +1 -1
  174. package/dist/web/assets/{plugin-definition-C9Q-BrBQ.js → schema-BAfRBwYE.js} +16 -27
  175. package/dist/web/assets/schema-BAfRBwYE.js.map +1 -0
  176. package/dist/web/assets/styles-BpKIyKWd.js +8 -0
  177. package/dist/web/assets/styles-BpKIyKWd.js.map +1 -0
  178. package/manifest.json +1 -1
  179. package/package.json +18 -10
  180. package/dist/auth/generators/fastify/auth-module/generated/ts-templates.d.ts.map +0 -1
  181. package/dist/auth/generators/fastify/auth-module/generated/ts-templates.js +0 -94
  182. package/dist/auth/generators/fastify/auth-module/generated/ts-templates.js.map +0 -1
  183. package/dist/auth/generators/fastify/auth-module/templates/management.ts +0 -22
  184. package/dist/auth/generators/fastify/auth-module/templates/schema/user-session-payload.object-type.ts +0 -23
  185. package/dist/auth/generators/fastify/auth-module/templates/schema/user-session.mutations.ts +0 -22
  186. package/dist/auth/generators/fastify/auth-module/templates/schema/user-session.queries.ts +0 -20
  187. package/dist/auth/generators/fastify/auth-module/templates/user-session.service.ts +0 -101
  188. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-maps.d.ts +0 -3
  189. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-maps.d.ts.map +0 -1
  190. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-maps.js +0 -12
  191. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-maps.js.map +0 -1
  192. package/dist/auth0/generators/fastify/auth0-module/generated/ts-templates.d.ts.map +0 -1
  193. package/dist/auth0/generators/fastify/auth0-module/generated/ts-templates.js.map +0 -1
  194. package/dist/auth0/generators/react/auth0-callback/generated/ts-templates.d.ts +0 -106
  195. package/dist/auth0/generators/react/auth0-callback/generated/ts-templates.d.ts.map +0 -1
  196. package/dist/auth0/generators/react/auth0-callback/generated/ts-templates.js.map +0 -1
  197. package/dist/auth0/generators/react/auth0-components/generated/ts-import-maps.d.ts +0 -3
  198. package/dist/auth0/generators/react/auth0-components/generated/ts-import-maps.d.ts.map +0 -1
  199. package/dist/auth0/generators/react/auth0-components/generated/ts-import-maps.js +0 -12
  200. package/dist/auth0/generators/react/auth0-components/generated/ts-import-maps.js.map +0 -1
  201. package/dist/auth0/generators/react/auth0-components/generated/ts-templates.d.ts +0 -45
  202. package/dist/auth0/generators/react/auth0-components/generated/ts-templates.d.ts.map +0 -1
  203. package/dist/auth0/generators/react/auth0-components/generated/ts-templates.js +0 -13
  204. package/dist/auth0/generators/react/auth0-components/generated/ts-templates.js.map +0 -1
  205. package/dist/auth0/generators/react/auth0-hooks/generated/text-templates.d.ts +0 -8
  206. package/dist/auth0/generators/react/auth0-hooks/generated/text-templates.d.ts.map +0 -1
  207. package/dist/auth0/generators/react/auth0-hooks/generated/text-templates.js +0 -12
  208. package/dist/auth0/generators/react/auth0-hooks/generated/text-templates.js.map +0 -1
  209. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-maps.d.ts +0 -3
  210. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-maps.d.ts.map +0 -1
  211. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-maps.js +0 -16
  212. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-maps.js.map +0 -1
  213. package/dist/auth0/generators/react/auth0-hooks/generated/ts-templates.d.ts +0 -33
  214. package/dist/auth0/generators/react/auth0-hooks/generated/ts-templates.d.ts.map +0 -1
  215. package/dist/auth0/generators/react/auth0-hooks/generated/ts-templates.js +0 -50
  216. package/dist/auth0/generators/react/auth0-hooks/generated/ts-templates.js.map +0 -1
  217. package/dist/web/assets/__federation_expose_auth0CoreWeb-BlCwYpTq.js.map +0 -1
  218. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BXHJHUXP.js.map +0 -1
  219. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-GtzVuDsM.js.map +0 -1
  220. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-ChoqtPkg.js.map +0 -1
  221. package/dist/web/assets/model-merger-CdV-7CWE.js.map +0 -1
  222. package/dist/web/assets/plugin-definition-C9Q-BrBQ.js.map +0 -1
  223. /package/dist/auth/generators/fastify/auth-module/templates/{user-session.constants.ts → module/constants/user-session.constants.ts} +0 -0
  224. /package/dist/auth/generators/fastify/auth-module/templates/{services → module/services}/user-session.service.ts +0 -0
  225. /package/dist/auth/generators/fastify/auth-module/templates/{utils → module/utils}/session-cookie.ts +0 -0
  226. /package/dist/auth/generators/fastify/auth-module/templates/{utils → module/utils}/verify-request-origin.ts +0 -0
  227. /package/dist/auth0/generators/fastify/auth0-module/templates/{management.ts → module/services/management.ts} +0 -0
  228. /package/dist/auth0/generators/fastify/auth0-module/templates/{user-session.service.ts → module/services/user-session.service.ts} +0 -0
  229. /package/dist/auth0/generators/react/auth0-hooks/templates/{useCurrentUser.gql → src/hooks/useCurrentUser.gql} +0 -0
  230. /package/dist/auth0/generators/react/auth0-hooks/templates/{useCurrentUser.ts → src/hooks/useCurrentUser.ts} +0 -0
  231. /package/dist/auth0/generators/react/auth0-hooks/templates/{useLogOut.ts → src/hooks/useLogOut.ts} +0 -0
  232. /package/dist/auth0/generators/react/auth0-hooks/templates/{useRequiredUserId.ts → src/hooks/useRequiredUserId.ts} +0 -0
  233. /package/dist/auth0/generators/react/auth0-hooks/templates/{useSession.ts → src/hooks/useSession.ts} +0 -0
@@ -1,7 +1,7 @@
1
- import { importShared } from '../../__federation_fn_import-dzKjrTzS.js';
2
- import { j as jsxRuntimeExports, u as useFormState, a as useForm } from '../../index.esm-BZEyAv4m.js';
3
- import { F as FeatureUtils, M as ModelUtils, I as modelMergerDefinitionDiffConfig, w as zPluginWrapper, i as isEqual, c as createPluginSpec } from '../../model-merger-CdV-7CWE.js';
4
- import { c as create } from '../../react-BfiX28GO.js';
1
+ import { importShared } from '../../__federation_fn_import-CxP86CUK.js';
2
+ import { j as jsxRuntimeExports, u as useFormState, a as useForm } from '../../index.esm-DIgRm3lq.js';
3
+ import { F as FeatureUtils, M as ModelUtils, J as modelMergerDefinitionDiffConfig, w as zPluginWrapper, i as isEqual, c as createPluginSpec } from '../../model-merger-gxuB007n.js';
4
+ import { c as create } from '../../react-CAuz_DuX.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, useErrorHandler, usePluginEnhancedSchema, useProjectDefinition, useResettableForm };
341
- //# sourceMappingURL=web-BXHJHUXP.js.map
341
+ //# sourceMappingURL=web-BFCvL5ku.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-BFCvL5ku.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-error-handler.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-plugin-enhanced-schema.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 { 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 { useMemo } from 'react';\nimport { zPluginWrapper } from '#src/plugins/index.js';\nimport { useProjectDefinition } from './use-project-definition.js';\nexport function usePluginEnhancedSchema(schema) {\n const { pluginContainer } = useProjectDefinition();\n return useMemo(() => zPluginWrapper(schema, pluginContainer), [schema, pluginContainer]);\n}\n//# sourceMappingURL=use-plugin-enhanced-schema.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,G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