@baseplate-dev/plugin-auth 1.0.6 → 1.0.7

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 (1405) hide show
  1. package/CHANGELOG.md +720 -0
  2. package/LICENSE +114 -123
  3. package/README.md +3 -3
  4. package/dist/auth/core/common.d.ts +2 -5
  5. package/dist/auth/core/common.d.ts.map +1 -1
  6. package/dist/auth/core/common.js +15 -18
  7. package/dist/auth/core/common.js.map +1 -1
  8. package/dist/auth/core/components/auth-definition-editor.d.ts.map +1 -1
  9. package/dist/auth/core/components/auth-definition-editor.js +44 -30
  10. package/dist/auth/core/components/auth-definition-editor.js.map +1 -1
  11. package/dist/auth/core/components/role-editor-form/role-dialog.d.ts +12 -0
  12. package/dist/auth/core/components/role-editor-form/role-dialog.d.ts.map +1 -0
  13. package/dist/auth/core/components/role-editor-form/role-dialog.js +29 -0
  14. package/dist/auth/core/components/role-editor-form/role-dialog.js.map +1 -0
  15. package/dist/auth/core/components/role-editor-form/role-editor-form.d.ts +10 -0
  16. package/dist/auth/core/components/role-editor-form/role-editor-form.d.ts.map +1 -0
  17. package/dist/auth/core/components/role-editor-form/role-editor-form.js +52 -0
  18. package/dist/auth/core/components/role-editor-form/role-editor-form.js.map +1 -0
  19. package/dist/auth/core/node.d.ts +3 -3
  20. package/dist/auth/core/node.d.ts.map +1 -1
  21. package/dist/auth/core/node.js +28 -40
  22. package/dist/auth/core/node.js.map +1 -1
  23. package/dist/auth/core/schema/plugin-definition.d.ts +6 -74
  24. package/dist/auth/core/schema/plugin-definition.d.ts.map +1 -1
  25. package/dist/auth/core/schema/plugin-definition.js +5 -20
  26. package/dist/auth/core/schema/plugin-definition.js.map +1 -1
  27. package/dist/auth/core/schema/roles/constants.d.ts.map +1 -0
  28. package/dist/auth/core/schema/roles/constants.js.map +1 -0
  29. package/dist/auth/core/schema/roles/index.d.ts +3 -0
  30. package/dist/auth/core/schema/roles/index.d.ts.map +1 -0
  31. package/dist/auth/core/schema/roles/index.js +3 -0
  32. package/dist/auth/core/schema/roles/index.js.map +1 -0
  33. package/dist/auth/core/schema/roles/schema.d.ts +54 -0
  34. package/dist/auth/core/schema/roles/schema.d.ts.map +1 -0
  35. package/dist/auth/core/schema/roles/schema.js +37 -0
  36. package/dist/auth/core/schema/roles/schema.js.map +1 -0
  37. package/dist/auth/core/web.d.ts +3 -3
  38. package/dist/auth/core/web.d.ts.map +1 -1
  39. package/dist/auth/core/web.js +5 -6
  40. package/dist/auth/core/web.js.map +1 -1
  41. package/dist/auth/index.d.ts +1 -1
  42. package/dist/auth/index.d.ts.map +1 -1
  43. package/dist/auth/index.js +1 -1
  44. package/dist/auth/index.js.map +1 -1
  45. package/dist/auth/plugin.json +8 -0
  46. package/dist/auth/utils/get-auth-plugin-definition.d.ts +9 -0
  47. package/dist/auth/utils/get-auth-plugin-definition.d.ts.map +1 -0
  48. package/dist/auth/utils/get-auth-plugin-definition.js +10 -0
  49. package/dist/auth/utils/get-auth-plugin-definition.js.map +1 -0
  50. package/dist/auth/utils/index.d.ts +2 -0
  51. package/dist/auth/utils/index.d.ts.map +1 -0
  52. package/dist/auth/utils/index.js +2 -0
  53. package/dist/auth/utils/index.js.map +1 -0
  54. package/dist/better-auth/constants/model-names.d.ts +8 -0
  55. package/dist/better-auth/constants/model-names.d.ts.map +1 -0
  56. package/dist/better-auth/constants/model-names.js +8 -0
  57. package/dist/better-auth/constants/model-names.js.map +1 -0
  58. package/dist/better-auth/constants/packages.d.ts +4 -0
  59. package/dist/better-auth/constants/packages.d.ts.map +1 -0
  60. package/dist/better-auth/constants/packages.js +4 -0
  61. package/dist/better-auth/constants/packages.js.map +1 -0
  62. package/dist/better-auth/core/common.d.ts +6 -0
  63. package/dist/better-auth/core/common.d.ts.map +1 -0
  64. package/dist/better-auth/core/common.js +17 -0
  65. package/dist/better-auth/core/common.js.map +1 -0
  66. package/dist/better-auth/core/components/better-auth-definition-editor.d.ts +5 -0
  67. package/dist/better-auth/core/components/better-auth-definition-editor.d.ts.map +1 -0
  68. package/dist/better-auth/core/components/better-auth-definition-editor.js +50 -0
  69. package/dist/better-auth/core/components/better-auth-definition-editor.js.map +1 -0
  70. package/dist/better-auth/core/index.d.ts +2 -0
  71. package/dist/better-auth/core/index.d.ts.map +1 -0
  72. package/dist/better-auth/core/index.js +2 -0
  73. package/dist/better-auth/core/index.js.map +1 -0
  74. package/dist/better-auth/core/node.d.ts +5 -0
  75. package/dist/better-auth/core/node.d.ts.map +1 -0
  76. package/dist/better-auth/core/node.js +47 -0
  77. package/dist/better-auth/core/node.js.map +1 -0
  78. package/dist/better-auth/core/schema/models.d.ts +3 -0
  79. package/dist/better-auth/core/schema/models.d.ts.map +1 -0
  80. package/dist/better-auth/core/schema/models.js +278 -0
  81. package/dist/better-auth/core/schema/models.js.map +1 -0
  82. package/dist/better-auth/core/schema/plugin-definition.d.ts +5 -0
  83. package/dist/better-auth/core/schema/plugin-definition.d.ts.map +1 -0
  84. package/dist/better-auth/core/schema/plugin-definition.js +4 -0
  85. package/dist/better-auth/core/schema/plugin-definition.js.map +1 -0
  86. package/dist/better-auth/core/web.d.ts +6 -0
  87. package/dist/better-auth/core/web.d.ts.map +1 -0
  88. package/dist/better-auth/core/web.js +13 -0
  89. package/dist/better-auth/core/web.js.map +1 -0
  90. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts +85 -0
  91. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts.map +1 -0
  92. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +75 -0
  93. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js.map +1 -0
  94. package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +142 -0
  95. package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts.map +1 -0
  96. package/dist/better-auth/generators/fastify/better-auth-module/generated/index.js +11 -0
  97. package/dist/better-auth/generators/fastify/better-auth-module/generated/index.js.map +1 -0
  98. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.d.ts +16 -0
  99. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.d.ts.map +1 -0
  100. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.js +28 -0
  101. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.js.map +1 -0
  102. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +73 -0
  103. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts.map +1 -0
  104. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js +84 -0
  105. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js.map +1 -0
  106. package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts +30 -0
  107. package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts.map +1 -0
  108. package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js +37 -0
  109. package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js.map +1 -0
  110. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts +65 -0
  111. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts.map +1 -0
  112. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js +72 -0
  113. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js.map +1 -0
  114. package/dist/better-auth/generators/fastify/better-auth-module/index.d.ts +4 -0
  115. package/dist/better-auth/generators/fastify/better-auth-module/index.d.ts.map +1 -0
  116. package/dist/better-auth/generators/fastify/better-auth-module/index.js +3 -0
  117. package/dist/better-auth/generators/fastify/better-auth-module/index.js.map +1 -0
  118. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/plugins/better-auth.plugin.ts +31 -0
  119. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/schema/user-session.queries.ts +22 -0
  120. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +62 -0
  121. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/user-session.service.ts +72 -0
  122. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/utils/headers.utils.ts +21 -0
  123. package/dist/better-auth/generators/fastify/index.d.ts +2 -0
  124. package/dist/better-auth/generators/fastify/index.d.ts.map +1 -0
  125. package/dist/better-auth/generators/fastify/index.js +2 -0
  126. package/dist/better-auth/generators/fastify/index.js.map +1 -0
  127. package/dist/better-auth/generators/index.d.ts.map +1 -0
  128. package/dist/better-auth/generators/index.js.map +1 -0
  129. package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts +43 -0
  130. package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts.map +1 -0
  131. package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.js +37 -0
  132. package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.js.map +1 -0
  133. package/dist/better-auth/generators/react/better-auth-hooks/generated/index.d.ts +72 -0
  134. package/dist/better-auth/generators/react/better-auth-hooks/generated/index.d.ts.map +1 -0
  135. package/dist/better-auth/generators/react/better-auth-hooks/generated/index.js +11 -0
  136. package/dist/better-auth/generators/react/better-auth-hooks/generated/index.js.map +1 -0
  137. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.d.ts +14 -0
  138. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.d.ts.map +1 -0
  139. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.js +26 -0
  140. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.js.map +1 -0
  141. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.d.ts +27 -0
  142. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.d.ts.map +1 -0
  143. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.js +43 -0
  144. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.js.map +1 -0
  145. package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.d.ts +18 -0
  146. package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.d.ts.map +1 -0
  147. package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.js +27 -0
  148. package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.js.map +1 -0
  149. package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.d.ts +51 -0
  150. package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.d.ts.map +1 -0
  151. package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.js +48 -0
  152. package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.js.map +1 -0
  153. package/dist/better-auth/generators/react/better-auth-hooks/index.d.ts +2 -0
  154. package/dist/better-auth/generators/react/better-auth-hooks/index.d.ts.map +1 -0
  155. package/dist/better-auth/generators/react/better-auth-hooks/index.js +2 -0
  156. package/dist/better-auth/generators/react/better-auth-hooks/index.js.map +1 -0
  157. package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/use-log-out.ts +16 -0
  158. package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/use-session.ts +29 -0
  159. package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +249 -0
  160. package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts.map +1 -0
  161. package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.js +26 -0
  162. package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.js.map +1 -0
  163. package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +724 -0
  164. package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts.map +1 -0
  165. package/dist/better-auth/generators/react/better-auth-pages/generated/index.js +9 -0
  166. package/dist/better-auth/generators/react/better-auth-pages/generated/index.js.map +1 -0
  167. package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.d.ts +13 -0
  168. package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.d.ts.map +1 -0
  169. package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.js +25 -0
  170. package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.js.map +1 -0
  171. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +250 -0
  172. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts.map +1 -0
  173. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.js +44 -0
  174. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.js.map +1 -0
  175. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +943 -0
  176. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts.map +1 -0
  177. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js +35 -0
  178. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js.map +1 -0
  179. package/dist/better-auth/generators/react/better-auth-pages/index.d.ts +2 -0
  180. package/dist/better-auth/generators/react/better-auth-pages/index.d.ts.map +1 -0
  181. package/dist/better-auth/generators/react/better-auth-pages/index.js +2 -0
  182. package/dist/better-auth/generators/react/better-auth-pages/index.js.map +1 -0
  183. package/dist/better-auth/generators/react/better-auth-pages/templates/routes/login.tsx +144 -0
  184. package/dist/better-auth/generators/react/better-auth-pages/templates/routes/register.tsx +160 -0
  185. package/dist/better-auth/generators/react/index.d.ts +4 -0
  186. package/dist/better-auth/generators/react/index.d.ts.map +1 -0
  187. package/dist/better-auth/generators/react/index.js +4 -0
  188. package/dist/better-auth/generators/react/index.js.map +1 -0
  189. package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +515 -0
  190. package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts.map +1 -0
  191. package/dist/better-auth/generators/react/react-better-auth/generated/index.js +11 -0
  192. package/dist/better-auth/generators/react/react-better-auth/generated/index.js.map +1 -0
  193. package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.d.ts +13 -0
  194. package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.d.ts.map +1 -0
  195. package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.js +25 -0
  196. package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.js.map +1 -0
  197. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +260 -0
  198. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts.map +1 -0
  199. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.js +51 -0
  200. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.js.map +1 -0
  201. package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.d.ts +21 -0
  202. package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.d.ts.map +1 -0
  203. package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.js +30 -0
  204. package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.js.map +1 -0
  205. package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +247 -0
  206. package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts.map +1 -0
  207. package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.js +33 -0
  208. package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.js.map +1 -0
  209. package/dist/better-auth/generators/react/react-better-auth/index.d.ts +4 -0
  210. package/dist/better-auth/generators/react/react-better-auth/index.d.ts.map +1 -0
  211. package/dist/better-auth/generators/react/react-better-auth/index.js +3 -0
  212. package/dist/better-auth/generators/react/react-better-auth/index.js.map +1 -0
  213. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +280 -0
  214. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts.map +1 -0
  215. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.js +74 -0
  216. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.js.map +1 -0
  217. package/dist/better-auth/generators/react/react-better-auth/templates/src/app/auth-loaded-gate.tsx +55 -0
  218. package/dist/better-auth/generators/react/react-better-auth/templates/src/services/auth-client.ts +13 -0
  219. package/dist/better-auth/index.d.ts +3 -0
  220. package/dist/better-auth/index.d.ts.map +1 -0
  221. package/dist/better-auth/index.js +2 -0
  222. package/dist/better-auth/index.js.map +1 -0
  223. package/dist/better-auth/plugin.json +9 -0
  224. package/dist/better-auth/static/icon.svg +10 -0
  225. package/dist/common/components/auth-config-tabs.d.ts +2 -0
  226. package/dist/common/components/auth-config-tabs.d.ts.map +1 -0
  227. package/dist/common/components/auth-config-tabs.js +21 -0
  228. package/dist/common/components/auth-config-tabs.js.map +1 -0
  229. package/dist/index.d.ts +2 -1
  230. package/dist/index.js +1 -1
  231. package/dist/local-auth/admin/common.d.ts +5 -0
  232. package/dist/local-auth/admin/common.d.ts.map +1 -0
  233. package/dist/local-auth/admin/common.js +29 -0
  234. package/dist/local-auth/admin/common.js.map +1 -0
  235. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +488 -0
  236. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts.map +1 -0
  237. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js +127 -0
  238. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js.map +1 -0
  239. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +488 -0
  240. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts.map +1 -0
  241. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.js +9 -0
  242. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.js.map +1 -0
  243. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts +12 -0
  244. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts.map +1 -0
  245. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js +24 -0
  246. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js.map +1 -0
  247. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +249 -0
  248. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts.map +1 -0
  249. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js +41 -0
  250. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js.map +1 -0
  251. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +238 -0
  252. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts.map +1 -0
  253. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js +20 -0
  254. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js.map +1 -0
  255. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.d.ts +2 -0
  256. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.d.ts.map +1 -0
  257. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.js +2 -0
  258. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.js.map +1 -0
  259. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts +22 -0
  260. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts.map +1 -0
  261. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +78 -0
  262. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js.map +1 -0
  263. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +164 -0
  264. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +487 -0
  265. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts.map +1 -0
  266. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js +119 -0
  267. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js.map +1 -0
  268. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +488 -0
  269. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts.map +1 -0
  270. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.js +9 -0
  271. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.js.map +1 -0
  272. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts +12 -0
  273. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts.map +1 -0
  274. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js +24 -0
  275. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js.map +1 -0
  276. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +249 -0
  277. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts.map +1 -0
  278. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js +41 -0
  279. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js.map +1 -0
  280. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +473 -0
  281. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts.map +1 -0
  282. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js +22 -0
  283. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js.map +1 -0
  284. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.d.ts +2 -0
  285. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.d.ts.map +1 -0
  286. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.js +2 -0
  287. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.js.map +1 -0
  288. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts +22 -0
  289. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts.map +1 -0
  290. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +89 -0
  291. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js.map +1 -0
  292. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +171 -0
  293. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +233 -0
  294. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts.map +1 -0
  295. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js +54 -0
  296. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js.map +1 -0
  297. package/dist/local-auth/admin/generators/admin-crud-roles-column/index.d.ts +2 -0
  298. package/dist/local-auth/admin/generators/admin-crud-roles-column/index.d.ts.map +1 -0
  299. package/dist/local-auth/admin/generators/admin-crud-roles-column/index.js +2 -0
  300. package/dist/local-auth/admin/generators/admin-crud-roles-column/index.js.map +1 -0
  301. package/dist/local-auth/admin/node.d.ts +5 -0
  302. package/dist/local-auth/admin/node.d.ts.map +1 -0
  303. package/dist/local-auth/admin/node.js +57 -0
  304. package/dist/local-auth/admin/node.js.map +1 -0
  305. package/dist/local-auth/admin/schema/manage-role-action.d.ts +12 -0
  306. package/dist/local-auth/admin/schema/manage-role-action.d.ts.map +1 -0
  307. package/dist/local-auth/admin/schema/manage-role-action.js +6 -0
  308. package/dist/local-auth/admin/schema/manage-role-action.js.map +1 -0
  309. package/dist/local-auth/admin/schema/reset-password-action.d.ts +12 -0
  310. package/dist/local-auth/admin/schema/reset-password-action.d.ts.map +1 -0
  311. package/dist/local-auth/admin/schema/reset-password-action.js +6 -0
  312. package/dist/local-auth/admin/schema/reset-password-action.js.map +1 -0
  313. package/dist/local-auth/admin/schema/roles-column.d.ts +9 -0
  314. package/dist/local-auth/admin/schema/roles-column.d.ts.map +1 -0
  315. package/dist/local-auth/admin/schema/roles-column.js +6 -0
  316. package/dist/local-auth/admin/schema/roles-column.js.map +1 -0
  317. package/dist/local-auth/admin/web.d.ts +5 -0
  318. package/dist/local-auth/admin/web.d.ts.map +1 -0
  319. package/dist/local-auth/admin/web.js +39 -0
  320. package/dist/local-auth/admin/web.js.map +1 -0
  321. package/dist/local-auth/constants/model-names.d.ts +23 -0
  322. package/dist/local-auth/constants/model-names.d.ts.map +1 -0
  323. package/dist/local-auth/constants/model-names.js +23 -0
  324. package/dist/local-auth/constants/model-names.js.map +1 -0
  325. package/dist/local-auth/core/common.d.ts +6 -0
  326. package/dist/local-auth/core/common.d.ts.map +1 -0
  327. package/dist/local-auth/core/common.js +17 -0
  328. package/dist/local-auth/core/common.js.map +1 -0
  329. package/dist/local-auth/core/components/local-auth-definition-editor.d.ts +5 -0
  330. package/dist/local-auth/core/components/local-auth-definition-editor.d.ts.map +1 -0
  331. package/dist/local-auth/core/components/local-auth-definition-editor.js +59 -0
  332. package/dist/local-auth/core/components/local-auth-definition-editor.js.map +1 -0
  333. package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts +14 -0
  334. package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts.map +1 -0
  335. package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.js +40 -0
  336. package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.js.map +1 -0
  337. package/dist/local-auth/core/generators/auth-apollo/index.d.ts.map +1 -0
  338. package/dist/local-auth/core/generators/auth-apollo/index.js.map +1 -0
  339. package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.d.ts.map +1 -0
  340. package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.js +20 -0
  341. package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.js.map +1 -0
  342. package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.ts +18 -0
  343. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +136 -0
  344. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +1 -0
  345. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +76 -0
  346. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js.map +1 -0
  347. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +359 -0
  348. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts.map +1 -0
  349. package/dist/local-auth/core/generators/auth-email-password/generated/index.js +11 -0
  350. package/dist/local-auth/core/generators/auth-email-password/generated/index.js.map +1 -0
  351. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts +18 -0
  352. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +1 -0
  353. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js +30 -0
  354. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js.map +1 -0
  355. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +110 -0
  356. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +1 -0
  357. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +93 -0
  358. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js.map +1 -0
  359. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts +45 -0
  360. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +1 -0
  361. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js +46 -0
  362. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +1 -0
  363. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +394 -0
  364. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +1 -0
  365. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +141 -0
  366. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js.map +1 -0
  367. package/dist/local-auth/core/generators/auth-email-password/index.d.ts.map +1 -0
  368. package/dist/local-auth/core/generators/auth-email-password/index.js.map +1 -0
  369. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +17 -0
  370. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +1 -0
  371. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js +18 -0
  372. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +1 -0
  373. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.ts +21 -0
  374. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.d.ts +2 -0
  375. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.d.ts.map +1 -0
  376. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.js +24 -0
  377. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.js.map +1 -0
  378. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.ts +35 -0
  379. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.d.ts +2 -0
  380. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.d.ts.map +1 -0
  381. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js +38 -0
  382. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js.map +1 -0
  383. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.ts +54 -0
  384. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts.map +1 -0
  385. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +72 -0
  386. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js.map +1 -0
  387. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +91 -0
  388. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts +24 -0
  389. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts.map +1 -0
  390. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +87 -0
  391. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js.map +1 -0
  392. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +140 -0
  393. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts +37 -0
  394. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts.map +1 -0
  395. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +161 -0
  396. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js.map +1 -0
  397. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +235 -0
  398. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts +60 -0
  399. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +1 -0
  400. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +207 -0
  401. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +1 -0
  402. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +330 -0
  403. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts +43 -0
  404. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts.map +1 -0
  405. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js +48 -0
  406. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js.map +1 -0
  407. package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts +96 -0
  408. package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts.map +1 -0
  409. package/dist/local-auth/core/generators/auth-email-templates/generated/index.js +11 -0
  410. package/dist/local-auth/core/generators/auth-email-templates/generated/index.js.map +1 -0
  411. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts +14 -0
  412. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts.map +1 -0
  413. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js +26 -0
  414. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js.map +1 -0
  415. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts +41 -0
  416. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts.map +1 -0
  417. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js +59 -0
  418. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js.map +1 -0
  419. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts +60 -0
  420. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts.map +1 -0
  421. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js +42 -0
  422. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js.map +1 -0
  423. package/dist/local-auth/core/generators/auth-email-templates/index.d.ts +2 -0
  424. package/dist/local-auth/core/generators/auth-email-templates/index.d.ts.map +1 -0
  425. package/dist/local-auth/core/generators/auth-email-templates/index.js +2 -0
  426. package/dist/local-auth/core/generators/auth-email-templates/index.js.map +1 -0
  427. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.d.ts +3 -0
  428. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.d.ts.map +1 -0
  429. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.js +14 -0
  430. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.js.map +1 -0
  431. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.tsx +55 -0
  432. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.d.ts +3 -0
  433. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.d.ts.map +1 -0
  434. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.js +12 -0
  435. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.js.map +1 -0
  436. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.tsx +44 -0
  437. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.d.ts +3 -0
  438. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.d.ts.map +1 -0
  439. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.js +14 -0
  440. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.js.map +1 -0
  441. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.tsx +55 -0
  442. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +57 -0
  443. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +1 -0
  444. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js +32 -0
  445. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js.map +1 -0
  446. package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts +93 -0
  447. package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts.map +1 -0
  448. package/dist/local-auth/core/generators/auth-hooks/generated/index.js +11 -0
  449. package/dist/local-auth/core/generators/auth-hooks/generated/index.js.map +1 -0
  450. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts +14 -0
  451. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +1 -0
  452. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js +26 -0
  453. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js.map +1 -0
  454. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts +35 -0
  455. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +1 -0
  456. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js +45 -0
  457. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js.map +1 -0
  458. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +29 -0
  459. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +1 -0
  460. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js +37 -0
  461. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +1 -0
  462. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts +71 -0
  463. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +1 -0
  464. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js +50 -0
  465. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js.map +1 -0
  466. package/dist/local-auth/core/generators/auth-hooks/index.d.ts +4 -0
  467. package/dist/local-auth/core/generators/auth-hooks/index.d.ts.map +1 -0
  468. package/dist/local-auth/core/generators/auth-hooks/index.js +3 -0
  469. package/dist/local-auth/core/generators/auth-hooks/index.js.map +1 -0
  470. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts +3 -0
  471. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +1 -0
  472. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +30 -0
  473. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +1 -0
  474. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +33 -0
  475. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +15 -0
  476. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +1 -0
  477. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js +16 -0
  478. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +1 -0
  479. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +32 -0
  480. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +1 -0
  481. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js +15 -0
  482. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +1 -0
  483. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.ts +16 -0
  484. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +117 -0
  485. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -0
  486. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +103 -0
  487. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -0
  488. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +281 -0
  489. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -0
  490. package/dist/local-auth/core/generators/auth-module/generated/index.js +11 -0
  491. package/dist/local-auth/core/generators/auth-module/generated/index.js.map +1 -0
  492. package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +24 -0
  493. package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts.map +1 -0
  494. package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +36 -0
  495. package/dist/local-auth/core/generators/auth-module/generated/template-paths.js.map +1 -0
  496. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +102 -0
  497. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts.map +1 -0
  498. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +109 -0
  499. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js.map +1 -0
  500. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts +30 -0
  501. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts.map +1 -0
  502. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js +37 -0
  503. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js.map +1 -0
  504. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +269 -0
  505. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -0
  506. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +192 -0
  507. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +1 -0
  508. package/dist/local-auth/core/generators/auth-module/index.d.ts.map +1 -0
  509. package/dist/local-auth/core/generators/auth-module/index.js.map +1 -0
  510. package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts.map +1 -0
  511. package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.js.map +1 -0
  512. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.d.ts +6 -0
  513. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.d.ts.map +1 -0
  514. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.js +17 -0
  515. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.js.map +1 -0
  516. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.ts +21 -0
  517. package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.d.ts +8 -0
  518. package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.d.ts.map +1 -0
  519. package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.js +16 -0
  520. package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.js.map +1 -0
  521. package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.ts +21 -0
  522. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.d.ts +2 -0
  523. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.d.ts.map +1 -0
  524. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.js +23 -0
  525. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.js.map +1 -0
  526. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.ts +26 -0
  527. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts.map +1 -0
  528. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js +19 -0
  529. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js.map +1 -0
  530. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.ts +25 -0
  531. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts.map +1 -0
  532. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js +18 -0
  533. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +1 -0
  534. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +22 -0
  535. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts.map +1 -0
  536. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js +36 -0
  537. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +1 -0
  538. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts +43 -0
  539. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.d.ts +40 -0
  540. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.d.ts.map +1 -0
  541. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.js +106 -0
  542. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.js.map +1 -0
  543. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.ts +146 -0
  544. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.d.ts +15 -0
  545. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.d.ts.map +1 -0
  546. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.js +35 -0
  547. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.js.map +1 -0
  548. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.ts +47 -0
  549. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts.map +1 -0
  550. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js +190 -0
  551. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js.map +1 -0
  552. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.ts +262 -0
  553. package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts.map +1 -0
  554. package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.js.map +1 -0
  555. package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.d.ts.map +1 -0
  556. package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.js +38 -0
  557. package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.js.map +1 -0
  558. package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts.map +1 -0
  559. package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.js.map +1 -0
  560. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +263 -0
  561. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -0
  562. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +32 -0
  563. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +1 -0
  564. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +1497 -0
  565. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +1 -0
  566. package/dist/local-auth/core/generators/auth-routes/generated/index.js +11 -0
  567. package/dist/local-auth/core/generators/auth-routes/generated/index.js.map +1 -0
  568. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +18 -0
  569. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts.map +1 -0
  570. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js +28 -0
  571. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js.map +1 -0
  572. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +264 -0
  573. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -0
  574. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +62 -0
  575. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +1 -0
  576. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts +21 -0
  577. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts.map +1 -0
  578. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js +30 -0
  579. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js.map +1 -0
  580. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +2206 -0
  581. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -0
  582. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +117 -0
  583. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +1 -0
  584. package/dist/local-auth/core/generators/auth-routes/index.d.ts +4 -0
  585. package/dist/local-auth/core/generators/auth-routes/index.d.ts.map +1 -0
  586. package/dist/local-auth/core/generators/auth-routes/index.js +3 -0
  587. package/dist/local-auth/core/generators/auth-routes/index.js.map +1 -0
  588. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.d.ts +10 -0
  589. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.d.ts.map +1 -0
  590. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.js +11 -0
  591. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.js.map +1 -0
  592. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.ts +12 -0
  593. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.d.ts +2 -0
  594. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.d.ts.map +1 -0
  595. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js +60 -0
  596. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js.map +1 -0
  597. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.tsx +127 -0
  598. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts +7 -0
  599. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +1 -0
  600. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +85 -0
  601. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +1 -0
  602. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +168 -0
  603. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts +7 -0
  604. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +1 -0
  605. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +82 -0
  606. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -0
  607. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +153 -0
  608. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.d.ts +7 -0
  609. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.d.ts.map +1 -0
  610. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +150 -0
  611. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js.map +1 -0
  612. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +283 -0
  613. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts +2 -0
  614. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts.map +1 -0
  615. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.js.map +1 -0
  616. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.d.ts +7 -0
  617. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.d.ts.map +1 -0
  618. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js +106 -0
  619. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js.map +1 -0
  620. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.tsx +206 -0
  621. package/dist/local-auth/core/generators/index.d.ts +10 -0
  622. package/dist/local-auth/core/generators/index.d.ts.map +1 -0
  623. package/dist/local-auth/core/generators/index.js +10 -0
  624. package/dist/local-auth/core/generators/index.js.map +1 -0
  625. package/dist/local-auth/core/generators/react-auth/index.d.ts.map +1 -0
  626. package/dist/local-auth/core/generators/react-auth/index.js.map +1 -0
  627. package/dist/local-auth/core/generators/react-auth/react-auth.generator.d.ts +9 -0
  628. package/dist/local-auth/core/generators/react-auth/react-auth.generator.d.ts.map +1 -0
  629. package/dist/local-auth/core/generators/react-auth/react-auth.generator.js +31 -0
  630. package/dist/local-auth/core/generators/react-auth/react-auth.generator.js.map +1 -0
  631. package/dist/local-auth/core/generators/react-session/generated/index.d.ts +546 -0
  632. package/dist/local-auth/core/generators/react-session/generated/index.d.ts.map +1 -0
  633. package/dist/local-auth/core/generators/react-session/generated/index.js +11 -0
  634. package/dist/local-auth/core/generators/react-session/generated/index.js.map +1 -0
  635. package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts +13 -0
  636. package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts.map +1 -0
  637. package/dist/local-auth/core/generators/react-session/generated/template-paths.js +25 -0
  638. package/dist/local-auth/core/generators/react-session/generated/template-paths.js.map +1 -0
  639. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +271 -0
  640. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts.map +1 -0
  641. package/dist/local-auth/core/generators/react-session/generated/template-renderers.js +51 -0
  642. package/dist/local-auth/core/generators/react-session/generated/template-renderers.js.map +1 -0
  643. package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts +21 -0
  644. package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts.map +1 -0
  645. package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js +30 -0
  646. package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js.map +1 -0
  647. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +525 -0
  648. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts.map +1 -0
  649. package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +35 -0
  650. package/dist/local-auth/core/generators/react-session/generated/typed-templates.js.map +1 -0
  651. package/dist/local-auth/core/generators/react-session/index.d.ts.map +1 -0
  652. package/dist/local-auth/core/generators/react-session/index.js.map +1 -0
  653. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +290 -0
  654. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts.map +1 -0
  655. package/dist/local-auth/core/generators/react-session/react-session.generator.js +48 -0
  656. package/dist/local-auth/core/generators/react-session/react-session.generator.js.map +1 -0
  657. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +1 -0
  658. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js +72 -0
  659. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +1 -0
  660. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +99 -0
  661. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.d.ts +58 -0
  662. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.d.ts.map +1 -0
  663. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js +103 -0
  664. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js.map +1 -0
  665. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.ts +122 -0
  666. package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +99 -0
  667. package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts.map +1 -0
  668. package/dist/local-auth/core/generators/seed-initial-user/generated/index.js +11 -0
  669. package/dist/local-auth/core/generators/seed-initial-user/generated/index.js.map +1 -0
  670. package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.d.ts +12 -0
  671. package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.d.ts.map +1 -0
  672. package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.js +24 -0
  673. package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.js.map +1 -0
  674. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts +50 -0
  675. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts.map +1 -0
  676. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.js +46 -0
  677. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.js.map +1 -0
  678. package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.d.ts +18 -0
  679. package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.d.ts.map +1 -0
  680. package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.js +26 -0
  681. package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.js.map +1 -0
  682. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts +39 -0
  683. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts.map +1 -0
  684. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js +21 -0
  685. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js.map +1 -0
  686. package/dist/local-auth/core/generators/seed-initial-user/index.d.ts +4 -0
  687. package/dist/local-auth/core/generators/seed-initial-user/index.d.ts.map +1 -0
  688. package/dist/local-auth/core/generators/seed-initial-user/index.js +3 -0
  689. package/dist/local-auth/core/generators/seed-initial-user/index.js.map +1 -0
  690. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts +58 -0
  691. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts.map +1 -0
  692. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js +57 -0
  693. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js.map +1 -0
  694. package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.d.ts +3 -0
  695. package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.d.ts.map +1 -0
  696. package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js +32 -0
  697. package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js.map +1 -0
  698. package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.ts +43 -0
  699. package/dist/local-auth/core/index.d.ts.map +1 -0
  700. package/dist/local-auth/core/index.js.map +1 -0
  701. package/dist/local-auth/core/node.d.ts +5 -0
  702. package/dist/local-auth/core/node.d.ts.map +1 -0
  703. package/dist/local-auth/core/node.js +69 -0
  704. package/dist/local-auth/core/node.js.map +1 -0
  705. package/dist/local-auth/core/schema/models.d.ts +3 -0
  706. package/dist/local-auth/core/schema/models.d.ts.map +1 -0
  707. package/dist/local-auth/core/schema/models.js +266 -0
  708. package/dist/local-auth/core/schema/models.js.map +1 -0
  709. package/dist/local-auth/core/schema/plugin-definition.d.ts +9 -0
  710. package/dist/local-auth/core/schema/plugin-definition.d.ts.map +1 -0
  711. package/dist/local-auth/core/schema/plugin-definition.js +13 -0
  712. package/dist/local-auth/core/schema/plugin-definition.js.map +1 -0
  713. package/dist/local-auth/core/web.d.ts +6 -0
  714. package/dist/local-auth/core/web.d.ts.map +1 -0
  715. package/dist/local-auth/core/web.js +13 -0
  716. package/dist/local-auth/core/web.js.map +1 -0
  717. package/dist/local-auth/index.d.ts +2 -0
  718. package/dist/local-auth/index.d.ts.map +1 -0
  719. package/dist/local-auth/index.js +2 -0
  720. package/dist/local-auth/index.js.map +1 -0
  721. package/dist/local-auth/plugin.json +9 -0
  722. package/dist/local-auth/static/icon.svg +1 -0
  723. package/dist/placeholder-auth/constants/model-names.d.ts +4 -0
  724. package/dist/placeholder-auth/constants/model-names.d.ts.map +1 -0
  725. package/dist/placeholder-auth/constants/model-names.js +4 -0
  726. package/dist/placeholder-auth/constants/model-names.js.map +1 -0
  727. package/dist/placeholder-auth/core/common.d.ts +2 -5
  728. package/dist/placeholder-auth/core/common.d.ts.map +1 -1
  729. package/dist/placeholder-auth/core/common.js +11 -20
  730. package/dist/placeholder-auth/core/common.js.map +1 -1
  731. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.d.ts.map +1 -1
  732. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js +21 -29
  733. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js.map +1 -1
  734. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts +3 -12
  735. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts.map +1 -1
  736. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts +0 -2
  737. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts.map +1 -1
  738. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js +0 -2
  739. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js.map +1 -1
  740. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts +1 -7
  741. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts.map +1 -1
  742. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js +2 -14
  743. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js.map +1 -1
  744. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts +3 -1
  745. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts.map +1 -1
  746. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js +1 -1
  747. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js.map +1 -1
  748. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts +0 -15
  749. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts.map +1 -1
  750. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +7 -32
  751. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js.map +1 -1
  752. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +4 -6
  753. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts.map +1 -1
  754. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js +1 -7
  755. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js.map +1 -1
  756. package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts +3 -1
  757. package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts.map +1 -1
  758. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts +4 -0
  759. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts.map +1 -1
  760. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts +2 -0
  761. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts.map +1 -1
  762. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts +2 -0
  763. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts.map +1 -1
  764. package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.d.ts +1 -1
  765. package/dist/placeholder-auth/core/node.d.ts +3 -3
  766. package/dist/placeholder-auth/core/node.d.ts.map +1 -1
  767. package/dist/placeholder-auth/core/node.js +11 -17
  768. package/dist/placeholder-auth/core/node.js.map +1 -1
  769. package/dist/placeholder-auth/core/schema/models.d.ts +2 -5
  770. package/dist/placeholder-auth/core/schema/models.d.ts.map +1 -1
  771. package/dist/placeholder-auth/core/schema/models.js +31 -28
  772. package/dist/placeholder-auth/core/schema/models.js.map +1 -1
  773. package/dist/placeholder-auth/core/schema/plugin-definition.d.ts +2 -79
  774. package/dist/placeholder-auth/core/schema/plugin-definition.d.ts.map +1 -1
  775. package/dist/placeholder-auth/core/schema/plugin-definition.js +2 -15
  776. package/dist/placeholder-auth/core/schema/plugin-definition.js.map +1 -1
  777. package/dist/placeholder-auth/core/web.d.ts +3 -3
  778. package/dist/placeholder-auth/core/web.d.ts.map +1 -1
  779. package/dist/placeholder-auth/core/web.js +5 -6
  780. package/dist/placeholder-auth/core/web.js.map +1 -1
  781. package/dist/placeholder-auth/plugin.json +10 -0
  782. package/dist/web/assets/__federation_expose_authCoreCommon-CnNoa4tF.js +30 -0
  783. package/dist/web/assets/__federation_expose_authCoreCommon-CnNoa4tF.js.map +1 -0
  784. package/dist/web/assets/__federation_expose_authCoreWeb-BL_U7yuj.js +433 -0
  785. package/dist/web/assets/__federation_expose_authCoreWeb-BL_U7yuj.js.map +1 -0
  786. package/dist/web/assets/__federation_expose_better-authCoreCommon-D-mTcxYO.js +20 -0
  787. package/dist/web/assets/__federation_expose_better-authCoreCommon-D-mTcxYO.js.map +1 -0
  788. package/dist/web/assets/__federation_expose_better-authCoreWeb-CXHL-Ghf.js +402 -0
  789. package/dist/web/assets/__federation_expose_better-authCoreWeb-CXHL-Ghf.js.map +1 -0
  790. package/dist/web/assets/__federation_expose_local-authAdminCommon-LIsARRNU.js +63 -0
  791. package/dist/web/assets/__federation_expose_local-authAdminCommon-LIsARRNU.js.map +1 -0
  792. package/dist/web/assets/__federation_expose_local-authAdminWeb-DyYUDLm9.js +41 -0
  793. package/dist/web/assets/__federation_expose_local-authAdminWeb-DyYUDLm9.js.map +1 -0
  794. package/dist/web/assets/__federation_expose_local-authCoreCommon-p_UbExc7.js +21 -0
  795. package/dist/web/assets/__federation_expose_local-authCoreCommon-p_UbExc7.js.map +1 -0
  796. package/dist/web/assets/__federation_expose_local-authCoreWeb-8TcUJFT6.js +432 -0
  797. package/dist/web/assets/__federation_expose_local-authCoreWeb-8TcUJFT6.js.map +1 -0
  798. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CtZXaDUc.js +23 -0
  799. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CtZXaDUc.js.map +1 -0
  800. package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-CZAKokTb.js +162 -0
  801. package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-CZAKokTb.js.map +1 -0
  802. package/dist/web/assets/__federation_fn_import-3DENgil8.js +421 -0
  803. package/dist/web/assets/__federation_fn_import-3DENgil8.js.map +1 -0
  804. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-B5bdbzFj.js +357 -0
  805. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-B5bdbzFj.js.map +1 -0
  806. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-DCA3vO4J.js +21478 -0
  807. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-DCA3vO4J.js.map +1 -0
  808. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BvL7RO9S.js +73599 -0
  809. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BvL7RO9S.js.map +1 -0
  810. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-0-N5BG4T.js +1822 -0
  811. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-0-N5BG4T.js.map +1 -0
  812. package/dist/web/assets/__federation_shared_@tanstack/react-router-DSniiJ6U.js +6565 -0
  813. package/dist/web/assets/__federation_shared_@tanstack/react-router-DSniiJ6U.js.map +1 -0
  814. package/dist/web/assets/__federation_shared_react-CJ2OfFKA.js +8 -0
  815. package/dist/web/assets/__federation_shared_react-CJ2OfFKA.js.map +1 -0
  816. package/dist/web/assets/__federation_shared_react-dom-B4vgf5Ln.js +251 -0
  817. package/dist/web/assets/__federation_shared_react-dom-B4vgf5Ln.js.map +1 -0
  818. package/dist/web/assets/__federation_shared_zod-Do7Aa1b5.js +13250 -0
  819. package/dist/web/assets/__federation_shared_zod-Do7Aa1b5.js.map +1 -0
  820. package/dist/web/assets/_commonjsHelpers-B85MJLTf.js +6 -0
  821. package/dist/web/assets/_commonjsHelpers-B85MJLTf.js.map +1 -0
  822. package/dist/web/assets/get-auth-plugin-definition-DHcbFujw.js +13 -0
  823. package/dist/web/assets/get-auth-plugin-definition-DHcbFujw.js.map +1 -0
  824. package/dist/web/assets/index-DQKNnI1w.js +103 -0
  825. package/dist/web/assets/index-DQKNnI1w.js.map +1 -0
  826. package/dist/web/assets/index-DUwCgkeV.js +570 -0
  827. package/dist/web/assets/index-DUwCgkeV.js.map +1 -0
  828. package/dist/web/assets/index.esm-Dpqxgpya.js +2676 -0
  829. package/dist/web/assets/index.esm-Dpqxgpya.js.map +1 -0
  830. package/dist/web/assets/isEqual-tnzoadW8.js +242 -0
  831. package/dist/web/assets/isEqual-tnzoadW8.js.map +1 -0
  832. package/dist/web/assets/jsx-runtime-XI9uIe3W.js +60 -0
  833. package/dist/web/assets/jsx-runtime-XI9uIe3W.js.map +1 -0
  834. package/dist/web/assets/mergeWith-VagwCqUi.js +76 -0
  835. package/dist/web/assets/mergeWith-VagwCqUi.js.map +1 -0
  836. package/dist/web/assets/model-names-DrcaRxt1.js +25 -0
  837. package/dist/web/assets/model-names-DrcaRxt1.js.map +1 -0
  838. package/dist/web/assets/model-utils-BFX3c3dn.js +694 -0
  839. package/dist/web/assets/model-utils-BFX3c3dn.js.map +1 -0
  840. package/dist/web/assets/plugin-definition-B86WQ7Ni.js +79 -0
  841. package/dist/web/assets/plugin-definition-B86WQ7Ni.js.map +1 -0
  842. package/dist/web/assets/plugin-definition-CEQb6mWV.js +20 -0
  843. package/dist/web/assets/plugin-definition-CEQb6mWV.js.map +1 -0
  844. package/dist/web/assets/plugin-definition-DrsKbcJc.js +31 -0
  845. package/dist/web/assets/plugin-definition-DrsKbcJc.js.map +1 -0
  846. package/dist/web/assets/plugin-definition-KEpaSB6p.js +16 -0
  847. package/dist/web/assets/plugin-definition-KEpaSB6p.js.map +1 -0
  848. package/dist/web/assets/react-hu8Hx0R4.js +47 -0
  849. package/dist/web/assets/react-hu8Hx0R4.js.map +1 -0
  850. package/dist/web/assets/registries-Tz_dluz3.js +1119 -0
  851. package/dist/web/assets/registries-Tz_dluz3.js.map +1 -0
  852. package/dist/web/assets/remoteEntry.js +26 -14
  853. package/dist/web/assets/remoteEntry.js.map +1 -1
  854. package/dist/web/assets/style-DiK_rD1L.css +120 -0
  855. package/dist/web/assets/styles-CpKtlIgU.js +69 -0
  856. package/dist/web/assets/styles-CpKtlIgU.js.map +1 -0
  857. package/dist/web/assets/with-selector-DTXBONcE.js +201 -0
  858. package/dist/web/assets/with-selector-DTXBONcE.js.map +1 -0
  859. package/dist/web/index.html +1 -1
  860. package/package.json +42 -36
  861. package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.d.ts +0 -28
  862. package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.d.ts.map +0 -1
  863. package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.js +0 -43
  864. package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.js.map +0 -1
  865. package/dist/auth/core/generators/auth-apollo/index.d.ts.map +0 -1
  866. package/dist/auth/core/generators/auth-apollo/index.js.map +0 -1
  867. package/dist/auth/core/generators/auth-apollo/templates/session-error-link.d.ts.map +0 -1
  868. package/dist/auth/core/generators/auth-apollo/templates/session-error-link.js +0 -15
  869. package/dist/auth/core/generators/auth-apollo/templates/session-error-link.js.map +0 -1
  870. package/dist/auth/core/generators/auth-apollo/templates/session-error-link.ts +0 -16
  871. package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +0 -73
  872. package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +0 -1
  873. package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.js +0 -40
  874. package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.js.map +0 -1
  875. package/dist/auth/core/generators/auth-email-password/generated/index.d.ts +0 -124
  876. package/dist/auth/core/generators/auth-email-password/generated/index.d.ts.map +0 -1
  877. package/dist/auth/core/generators/auth-email-password/generated/index.js +0 -11
  878. package/dist/auth/core/generators/auth-email-password/generated/index.js.map +0 -1
  879. package/dist/auth/core/generators/auth-email-password/generated/template-paths.d.ts +0 -14
  880. package/dist/auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +0 -1
  881. package/dist/auth/core/generators/auth-email-password/generated/template-paths.js +0 -26
  882. package/dist/auth/core/generators/auth-email-password/generated/template-paths.js.map +0 -1
  883. package/dist/auth/core/generators/auth-email-password/generated/template-renderers.d.ts +0 -58
  884. package/dist/auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +0 -1
  885. package/dist/auth/core/generators/auth-email-password/generated/template-renderers.js +0 -55
  886. package/dist/auth/core/generators/auth-email-password/generated/template-renderers.js.map +0 -1
  887. package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts +0 -25
  888. package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +0 -1
  889. package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.js +0 -32
  890. package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +0 -1
  891. package/dist/auth/core/generators/auth-email-password/generated/typed-templates.d.ts +0 -105
  892. package/dist/auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +0 -1
  893. package/dist/auth/core/generators/auth-email-password/generated/typed-templates.js +0 -58
  894. package/dist/auth/core/generators/auth-email-password/generated/typed-templates.js.map +0 -1
  895. package/dist/auth/core/generators/auth-email-password/index.d.ts.map +0 -1
  896. package/dist/auth/core/generators/auth-email-password/index.js.map +0 -1
  897. package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +0 -2
  898. package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +0 -1
  899. package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.js +0 -3
  900. package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +0 -1
  901. package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.ts +0 -3
  902. package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts.map +0 -1
  903. package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +0 -33
  904. package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js.map +0 -1
  905. package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +0 -44
  906. package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts +0 -21
  907. package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +0 -1
  908. package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +0 -74
  909. package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +0 -1
  910. package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +0 -121
  911. package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +0 -61
  912. package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +0 -1
  913. package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.js +0 -33
  914. package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.js.map +0 -1
  915. package/dist/auth/core/generators/auth-hooks/generated/index.d.ts +0 -127
  916. package/dist/auth/core/generators/auth-hooks/generated/index.d.ts.map +0 -1
  917. package/dist/auth/core/generators/auth-hooks/generated/index.js +0 -11
  918. package/dist/auth/core/generators/auth-hooks/generated/index.js.map +0 -1
  919. package/dist/auth/core/generators/auth-hooks/generated/template-paths.d.ts +0 -17
  920. package/dist/auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +0 -1
  921. package/dist/auth/core/generators/auth-hooks/generated/template-paths.js +0 -27
  922. package/dist/auth/core/generators/auth-hooks/generated/template-paths.js.map +0 -1
  923. package/dist/auth/core/generators/auth-hooks/generated/template-renderers.d.ts +0 -47
  924. package/dist/auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +0 -1
  925. package/dist/auth/core/generators/auth-hooks/generated/template-renderers.js +0 -50
  926. package/dist/auth/core/generators/auth-hooks/generated/template-renderers.js.map +0 -1
  927. package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +0 -16
  928. package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +0 -1
  929. package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.js +0 -27
  930. package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +0 -1
  931. package/dist/auth/core/generators/auth-hooks/generated/typed-templates.d.ts +0 -131
  932. package/dist/auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +0 -1
  933. package/dist/auth/core/generators/auth-hooks/generated/typed-templates.js +0 -83
  934. package/dist/auth/core/generators/auth-hooks/generated/typed-templates.js.map +0 -1
  935. package/dist/auth/core/generators/auth-hooks/index.d.ts +0 -2
  936. package/dist/auth/core/generators/auth-hooks/index.d.ts.map +0 -1
  937. package/dist/auth/core/generators/auth-hooks/index.js +0 -2
  938. package/dist/auth/core/generators/auth-hooks/index.js.map +0 -1
  939. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts +0 -18
  940. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts.map +0 -1
  941. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.gql +0 -10
  942. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js +0 -22
  943. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js.map +0 -1
  944. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.ts +0 -39
  945. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts +0 -2
  946. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +0 -1
  947. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.gql +0 -5
  948. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +0 -27
  949. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +0 -1
  950. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +0 -29
  951. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +0 -8
  952. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +0 -1
  953. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.js +0 -12
  954. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +0 -1
  955. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +0 -16
  956. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +0 -1
  957. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js +0 -15
  958. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +0 -1
  959. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.ts +0 -16
  960. package/dist/auth/core/generators/auth-module/auth-module.generator.d.ts +0 -94
  961. package/dist/auth/core/generators/auth-module/auth-module.generator.d.ts.map +0 -1
  962. package/dist/auth/core/generators/auth-module/auth-module.generator.js +0 -70
  963. package/dist/auth/core/generators/auth-module/auth-module.generator.js.map +0 -1
  964. package/dist/auth/core/generators/auth-module/generated/index.d.ts +0 -182
  965. package/dist/auth/core/generators/auth-module/generated/index.d.ts.map +0 -1
  966. package/dist/auth/core/generators/auth-module/generated/index.js +0 -11
  967. package/dist/auth/core/generators/auth-module/generated/index.js.map +0 -1
  968. package/dist/auth/core/generators/auth-module/generated/template-paths.d.ts +0 -19
  969. package/dist/auth/core/generators/auth-module/generated/template-paths.d.ts.map +0 -1
  970. package/dist/auth/core/generators/auth-module/generated/template-paths.js +0 -29
  971. package/dist/auth/core/generators/auth-module/generated/template-paths.js.map +0 -1
  972. package/dist/auth/core/generators/auth-module/generated/template-renderers.d.ts +0 -80
  973. package/dist/auth/core/generators/auth-module/generated/template-renderers.d.ts.map +0 -1
  974. package/dist/auth/core/generators/auth-module/generated/template-renderers.js +0 -79
  975. package/dist/auth/core/generators/auth-module/generated/template-renderers.js.map +0 -1
  976. package/dist/auth/core/generators/auth-module/generated/ts-import-providers.d.ts +0 -22
  977. package/dist/auth/core/generators/auth-module/generated/ts-import-providers.d.ts.map +0 -1
  978. package/dist/auth/core/generators/auth-module/generated/ts-import-providers.js +0 -31
  979. package/dist/auth/core/generators/auth-module/generated/ts-import-providers.js.map +0 -1
  980. package/dist/auth/core/generators/auth-module/generated/typed-templates.d.ts +0 -134
  981. package/dist/auth/core/generators/auth-module/generated/typed-templates.d.ts.map +0 -1
  982. package/dist/auth/core/generators/auth-module/generated/typed-templates.js +0 -113
  983. package/dist/auth/core/generators/auth-module/generated/typed-templates.js.map +0 -1
  984. package/dist/auth/core/generators/auth-module/index.d.ts.map +0 -1
  985. package/dist/auth/core/generators/auth-module/index.js.map +0 -1
  986. package/dist/auth/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts.map +0 -1
  987. package/dist/auth/core/generators/auth-module/templates/module/constants/user-session.constants.js.map +0 -1
  988. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts.map +0 -1
  989. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js +0 -17
  990. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js.map +0 -1
  991. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.ts +0 -23
  992. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts.map +0 -1
  993. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js +0 -18
  994. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +0 -1
  995. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +0 -22
  996. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts.map +0 -1
  997. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.js +0 -19
  998. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +0 -1
  999. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts +0 -23
  1000. package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts.map +0 -1
  1001. package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.js +0 -180
  1002. package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.js.map +0 -1
  1003. package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.ts +0 -250
  1004. package/dist/auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts.map +0 -1
  1005. package/dist/auth/core/generators/auth-module/templates/module/utils/cookie-signer.js.map +0 -1
  1006. package/dist/auth/core/generators/auth-module/templates/module/utils/session-cookie.d.ts.map +0 -1
  1007. package/dist/auth/core/generators/auth-module/templates/module/utils/session-cookie.js +0 -38
  1008. package/dist/auth/core/generators/auth-module/templates/module/utils/session-cookie.js.map +0 -1
  1009. package/dist/auth/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts.map +0 -1
  1010. package/dist/auth/core/generators/auth-module/templates/module/utils/verify-request-origin.js.map +0 -1
  1011. package/dist/auth/core/generators/auth-routes/auth-routes.generator.d.ts +0 -176
  1012. package/dist/auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +0 -1
  1013. package/dist/auth/core/generators/auth-routes/auth-routes.generator.js +0 -38
  1014. package/dist/auth/core/generators/auth-routes/auth-routes.generator.js.map +0 -1
  1015. package/dist/auth/core/generators/auth-routes/generated/index.d.ts +0 -495
  1016. package/dist/auth/core/generators/auth-routes/generated/index.d.ts.map +0 -1
  1017. package/dist/auth/core/generators/auth-routes/generated/index.js +0 -9
  1018. package/dist/auth/core/generators/auth-routes/generated/index.js.map +0 -1
  1019. package/dist/auth/core/generators/auth-routes/generated/template-paths.d.ts +0 -15
  1020. package/dist/auth/core/generators/auth-routes/generated/template-paths.d.ts.map +0 -1
  1021. package/dist/auth/core/generators/auth-routes/generated/template-paths.js +0 -25
  1022. package/dist/auth/core/generators/auth-routes/generated/template-paths.js.map +0 -1
  1023. package/dist/auth/core/generators/auth-routes/generated/template-renderers.d.ts +0 -176
  1024. package/dist/auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +0 -1
  1025. package/dist/auth/core/generators/auth-routes/generated/template-renderers.js +0 -55
  1026. package/dist/auth/core/generators/auth-routes/generated/template-renderers.js.map +0 -1
  1027. package/dist/auth/core/generators/auth-routes/generated/typed-templates.d.ts +0 -638
  1028. package/dist/auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +0 -1
  1029. package/dist/auth/core/generators/auth-routes/generated/typed-templates.js +0 -57
  1030. package/dist/auth/core/generators/auth-routes/generated/typed-templates.js.map +0 -1
  1031. package/dist/auth/core/generators/auth-routes/index.d.ts +0 -2
  1032. package/dist/auth/core/generators/auth-routes/index.d.ts.map +0 -1
  1033. package/dist/auth/core/generators/auth-routes/index.js +0 -2
  1034. package/dist/auth/core/generators/auth-routes/index.js.map +0 -1
  1035. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts +0 -2
  1036. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +0 -1
  1037. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.js +0 -85
  1038. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +0 -1
  1039. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +0 -161
  1040. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/queries.gql +0 -15
  1041. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts +0 -2
  1042. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +0 -1
  1043. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.js +0 -77
  1044. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +0 -1
  1045. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +0 -148
  1046. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts +0 -2
  1047. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts.map +0 -1
  1048. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.js.map +0 -1
  1049. package/dist/auth/core/generators/index.d.ts +0 -8
  1050. package/dist/auth/core/generators/index.d.ts.map +0 -1
  1051. package/dist/auth/core/generators/index.js +0 -8
  1052. package/dist/auth/core/generators/index.js.map +0 -1
  1053. package/dist/auth/core/generators/react-auth/index.d.ts.map +0 -1
  1054. package/dist/auth/core/generators/react-auth/index.js.map +0 -1
  1055. package/dist/auth/core/generators/react-auth/react-auth.generator.d.ts +0 -9
  1056. package/dist/auth/core/generators/react-auth/react-auth.generator.d.ts.map +0 -1
  1057. package/dist/auth/core/generators/react-auth/react-auth.generator.js +0 -31
  1058. package/dist/auth/core/generators/react-auth/react-auth.generator.js.map +0 -1
  1059. package/dist/auth/core/generators/react-session/generated/index.d.ts +0 -74
  1060. package/dist/auth/core/generators/react-session/generated/index.d.ts.map +0 -1
  1061. package/dist/auth/core/generators/react-session/generated/index.js +0 -11
  1062. package/dist/auth/core/generators/react-session/generated/index.js.map +0 -1
  1063. package/dist/auth/core/generators/react-session/generated/template-paths.d.ts +0 -16
  1064. package/dist/auth/core/generators/react-session/generated/template-paths.d.ts.map +0 -1
  1065. package/dist/auth/core/generators/react-session/generated/template-paths.js +0 -26
  1066. package/dist/auth/core/generators/react-session/generated/template-paths.js.map +0 -1
  1067. package/dist/auth/core/generators/react-session/generated/template-renderers.d.ts +0 -27
  1068. package/dist/auth/core/generators/react-session/generated/template-renderers.d.ts.map +0 -1
  1069. package/dist/auth/core/generators/react-session/generated/template-renderers.js +0 -49
  1070. package/dist/auth/core/generators/react-session/generated/template-renderers.js.map +0 -1
  1071. package/dist/auth/core/generators/react-session/generated/ts-import-providers.d.ts +0 -64
  1072. package/dist/auth/core/generators/react-session/generated/ts-import-providers.d.ts.map +0 -1
  1073. package/dist/auth/core/generators/react-session/generated/ts-import-providers.js +0 -42
  1074. package/dist/auth/core/generators/react-session/generated/ts-import-providers.js.map +0 -1
  1075. package/dist/auth/core/generators/react-session/generated/typed-templates.d.ts +0 -46
  1076. package/dist/auth/core/generators/react-session/generated/typed-templates.d.ts.map +0 -1
  1077. package/dist/auth/core/generators/react-session/generated/typed-templates.js +0 -82
  1078. package/dist/auth/core/generators/react-session/generated/typed-templates.js.map +0 -1
  1079. package/dist/auth/core/generators/react-session/index.d.ts.map +0 -1
  1080. package/dist/auth/core/generators/react-session/index.js.map +0 -1
  1081. package/dist/auth/core/generators/react-session/react-session.generator.d.ts +0 -58
  1082. package/dist/auth/core/generators/react-session/react-session.generator.d.ts.map +0 -1
  1083. package/dist/auth/core/generators/react-session/react-session.generator.js +0 -54
  1084. package/dist/auth/core/generators/react-session/react-session.generator.js.map +0 -1
  1085. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.d.ts +0 -7
  1086. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.d.ts.map +0 -1
  1087. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.gql +0 -6
  1088. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.js +0 -25
  1089. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.js.map +0 -1
  1090. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.tsx +0 -28
  1091. package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +0 -1
  1092. package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.js +0 -18
  1093. package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +0 -1
  1094. package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +0 -45
  1095. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.d.ts +0 -12
  1096. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.d.ts.map +0 -1
  1097. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.js +0 -15
  1098. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.js.map +0 -1
  1099. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.ts +0 -30
  1100. package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.d.ts +0 -79
  1101. package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.d.ts.map +0 -1
  1102. package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.js +0 -133
  1103. package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.js.map +0 -1
  1104. package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.ts +0 -153
  1105. package/dist/auth/core/index.d.ts.map +0 -1
  1106. package/dist/auth/core/index.js.map +0 -1
  1107. package/dist/auth/core/schema/models.d.ts +0 -9
  1108. package/dist/auth/core/schema/models.d.ts.map +0 -1
  1109. package/dist/auth/core/schema/models.js +0 -203
  1110. package/dist/auth/core/schema/models.js.map +0 -1
  1111. package/dist/auth/metadata.json +0 -8
  1112. package/dist/auth0/constants/packages.d.ts +0 -6
  1113. package/dist/auth0/constants/packages.d.ts.map +0 -1
  1114. package/dist/auth0/constants/packages.js +0 -6
  1115. package/dist/auth0/constants/packages.js.map +0 -1
  1116. package/dist/auth0/core/common.d.ts +0 -7
  1117. package/dist/auth0/core/common.d.ts.map +0 -1
  1118. package/dist/auth0/core/common.js +0 -28
  1119. package/dist/auth0/core/common.js.map +0 -1
  1120. package/dist/auth0/core/components/auth-definition-editor.d.ts +0 -5
  1121. package/dist/auth0/core/components/auth-definition-editor.d.ts.map +0 -1
  1122. package/dist/auth0/core/components/auth-definition-editor.js +0 -61
  1123. package/dist/auth0/core/components/auth-definition-editor.js.map +0 -1
  1124. package/dist/auth0/core/node.d.ts +0 -5
  1125. package/dist/auth0/core/node.d.ts.map +0 -1
  1126. package/dist/auth0/core/node.js +0 -49
  1127. package/dist/auth0/core/node.js.map +0 -1
  1128. package/dist/auth0/core/schema/migrations.d.ts +0 -3
  1129. package/dist/auth0/core/schema/migrations.d.ts.map +0 -1
  1130. package/dist/auth0/core/schema/migrations.js +0 -19
  1131. package/dist/auth0/core/schema/migrations.js.map +0 -1
  1132. package/dist/auth0/core/schema/models.d.ts +0 -6
  1133. package/dist/auth0/core/schema/models.d.ts.map +0 -1
  1134. package/dist/auth0/core/schema/models.js +0 -39
  1135. package/dist/auth0/core/schema/models.js.map +0 -1
  1136. package/dist/auth0/core/schema/plugin-definition.d.ts +0 -83
  1137. package/dist/auth0/core/schema/plugin-definition.d.ts.map +0 -1
  1138. package/dist/auth0/core/schema/plugin-definition.js +0 -17
  1139. package/dist/auth0/core/schema/plugin-definition.js.map +0 -1
  1140. package/dist/auth0/core/web.d.ts +0 -6
  1141. package/dist/auth0/core/web.d.ts.map +0 -1
  1142. package/dist/auth0/core/web.js +0 -14
  1143. package/dist/auth0/core/web.js.map +0 -1
  1144. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts +0 -75
  1145. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts.map +0 -1
  1146. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js +0 -120
  1147. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js.map +0 -1
  1148. package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts +0 -105
  1149. package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts.map +0 -1
  1150. package/dist/auth0/generators/fastify/auth0-module/generated/index.js +0 -11
  1151. package/dist/auth0/generators/fastify/auth0-module/generated/index.js.map +0 -1
  1152. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts +0 -13
  1153. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts.map +0 -1
  1154. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js +0 -23
  1155. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js.map +0 -1
  1156. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts +0 -55
  1157. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts.map +0 -1
  1158. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js +0 -52
  1159. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js.map +0 -1
  1160. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.d.ts +0 -10
  1161. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.d.ts.map +0 -1
  1162. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.js +0 -23
  1163. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.js.map +0 -1
  1164. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts +0 -43
  1165. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts.map +0 -1
  1166. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js +0 -28
  1167. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js.map +0 -1
  1168. package/dist/auth0/generators/fastify/auth0-module/index.d.ts +0 -2
  1169. package/dist/auth0/generators/fastify/auth0-module/index.d.ts.map +0 -1
  1170. package/dist/auth0/generators/fastify/auth0-module/index.js +0 -2
  1171. package/dist/auth0/generators/fastify/auth0-module/index.js.map +0 -1
  1172. package/dist/auth0/generators/fastify/auth0-module/templates/module/services/management.ts +0 -22
  1173. package/dist/auth0/generators/fastify/auth0-module/templates/module/services/user-session.service.ts +0 -101
  1174. package/dist/auth0/generators/fastify/index.d.ts +0 -2
  1175. package/dist/auth0/generators/fastify/index.d.ts.map +0 -1
  1176. package/dist/auth0/generators/fastify/index.js +0 -2
  1177. package/dist/auth0/generators/fastify/index.js.map +0 -1
  1178. package/dist/auth0/generators/index.d.ts.map +0 -1
  1179. package/dist/auth0/generators/index.js.map +0 -1
  1180. package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.d.ts +0 -10
  1181. package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.d.ts.map +0 -1
  1182. package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.js +0 -41
  1183. package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.js.map +0 -1
  1184. package/dist/auth0/generators/react/auth0-apollo/index.d.ts +0 -2
  1185. package/dist/auth0/generators/react/auth0-apollo/index.d.ts.map +0 -1
  1186. package/dist/auth0/generators/react/auth0-apollo/index.js +0 -2
  1187. package/dist/auth0/generators/react/auth0-apollo/index.js.map +0 -1
  1188. package/dist/auth0/generators/react/auth0-apollo/templates/auth-link.ts +0 -11
  1189. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts +0 -40
  1190. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts.map +0 -1
  1191. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +0 -40
  1192. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +0 -1
  1193. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts +0 -72
  1194. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts.map +0 -1
  1195. package/dist/auth0/generators/react/auth0-hooks/generated/index.js +0 -11
  1196. package/dist/auth0/generators/react/auth0-hooks/generated/index.js.map +0 -1
  1197. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts +0 -16
  1198. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts.map +0 -1
  1199. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js +0 -26
  1200. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js.map +0 -1
  1201. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts +0 -29
  1202. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts.map +0 -1
  1203. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js +0 -47
  1204. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js.map +0 -1
  1205. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts +0 -16
  1206. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts.map +0 -1
  1207. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js +0 -27
  1208. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js.map +0 -1
  1209. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts +0 -52
  1210. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts.map +0 -1
  1211. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js +0 -69
  1212. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js.map +0 -1
  1213. package/dist/auth0/generators/react/auth0-hooks/index.d.ts +0 -2
  1214. package/dist/auth0/generators/react/auth0-hooks/index.d.ts.map +0 -1
  1215. package/dist/auth0/generators/react/auth0-hooks/index.js +0 -2
  1216. package/dist/auth0/generators/react/auth0-hooks/index.js.map +0 -1
  1217. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-current-user.gql +0 -10
  1218. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-current-user.ts +0 -29
  1219. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-log-out.ts +0 -14
  1220. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-session.ts +0 -23
  1221. package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.d.ts +0 -143
  1222. package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.d.ts.map +0 -1
  1223. package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.js +0 -26
  1224. package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.js.map +0 -1
  1225. package/dist/auth0/generators/react/auth0-pages/generated/index.d.ts +0 -278
  1226. package/dist/auth0/generators/react/auth0-pages/generated/index.d.ts.map +0 -1
  1227. package/dist/auth0/generators/react/auth0-pages/generated/index.js +0 -9
  1228. package/dist/auth0/generators/react/auth0-pages/generated/index.js.map +0 -1
  1229. package/dist/auth0/generators/react/auth0-pages/generated/template-paths.d.ts +0 -12
  1230. package/dist/auth0/generators/react/auth0-pages/generated/template-paths.d.ts.map +0 -1
  1231. package/dist/auth0/generators/react/auth0-pages/generated/template-paths.js +0 -20
  1232. package/dist/auth0/generators/react/auth0-pages/generated/template-paths.js.map +0 -1
  1233. package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.d.ts +0 -144
  1234. package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.d.ts.map +0 -1
  1235. package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.js +0 -37
  1236. package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.js.map +0 -1
  1237. package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.d.ts +0 -263
  1238. package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.d.ts.map +0 -1
  1239. package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.js +0 -18
  1240. package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.js.map +0 -1
  1241. package/dist/auth0/generators/react/auth0-pages/index.d.ts +0 -2
  1242. package/dist/auth0/generators/react/auth0-pages/index.d.ts.map +0 -1
  1243. package/dist/auth0/generators/react/auth0-pages/index.js +0 -2
  1244. package/dist/auth0/generators/react/auth0-pages/index.js.map +0 -1
  1245. package/dist/auth0/generators/react/auth0-pages/templates/routes/login.tsx +0 -31
  1246. package/dist/auth0/generators/react/index.d.ts +0 -5
  1247. package/dist/auth0/generators/react/index.d.ts.map +0 -1
  1248. package/dist/auth0/generators/react/index.js +0 -5
  1249. package/dist/auth0/generators/react/index.js.map +0 -1
  1250. package/dist/auth0/generators/react/react-auth0/generated/index.d.ts +0 -286
  1251. package/dist/auth0/generators/react/react-auth0/generated/index.d.ts.map +0 -1
  1252. package/dist/auth0/generators/react/react-auth0/generated/index.js +0 -9
  1253. package/dist/auth0/generators/react/react-auth0/generated/index.js.map +0 -1
  1254. package/dist/auth0/generators/react/react-auth0/generated/template-paths.d.ts +0 -12
  1255. package/dist/auth0/generators/react/react-auth0/generated/template-paths.d.ts.map +0 -1
  1256. package/dist/auth0/generators/react/react-auth0/generated/template-paths.js +0 -22
  1257. package/dist/auth0/generators/react/react-auth0/generated/template-paths.js.map +0 -1
  1258. package/dist/auth0/generators/react/react-auth0/generated/template-renderers.d.ts +0 -149
  1259. package/dist/auth0/generators/react/react-auth0/generated/template-renderers.d.ts.map +0 -1
  1260. package/dist/auth0/generators/react/react-auth0/generated/template-renderers.js +0 -39
  1261. package/dist/auth0/generators/react/react-auth0/generated/template-renderers.js.map +0 -1
  1262. package/dist/auth0/generators/react/react-auth0/generated/typed-templates.d.ts +0 -136
  1263. package/dist/auth0/generators/react/react-auth0/generated/typed-templates.d.ts.map +0 -1
  1264. package/dist/auth0/generators/react/react-auth0/generated/typed-templates.js +0 -17
  1265. package/dist/auth0/generators/react/react-auth0/generated/typed-templates.js.map +0 -1
  1266. package/dist/auth0/generators/react/react-auth0/index.d.ts +0 -2
  1267. package/dist/auth0/generators/react/react-auth0/index.d.ts.map +0 -1
  1268. package/dist/auth0/generators/react/react-auth0/index.js +0 -2
  1269. package/dist/auth0/generators/react/react-auth0/index.js.map +0 -1
  1270. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts +0 -178
  1271. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts.map +0 -1
  1272. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.js +0 -107
  1273. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.js.map +0 -1
  1274. package/dist/auth0/generators/react/react-auth0/templates/src/app/auth-loaded-gate.tsx +0 -78
  1275. package/dist/auth0/metadata.json +0 -8
  1276. package/dist/auth0/static/icon.svg +0 -7
  1277. package/dist/common/compiler/generator-creators.d.ts +0 -18
  1278. package/dist/common/compiler/generator-creators.d.ts.map +0 -1
  1279. package/dist/common/compiler/generator-creators.js +0 -34
  1280. package/dist/common/compiler/generator-creators.js.map +0 -1
  1281. package/dist/common/compiler/index.d.ts +0 -2
  1282. package/dist/common/compiler/index.d.ts.map +0 -1
  1283. package/dist/common/compiler/index.js +0 -2
  1284. package/dist/common/compiler/index.js.map +0 -1
  1285. package/dist/common/index.d.ts +0 -3
  1286. package/dist/common/index.d.ts.map +0 -1
  1287. package/dist/common/index.js +0 -3
  1288. package/dist/common/index.js.map +0 -1
  1289. package/dist/common/roles/components/index.d.ts +0 -2
  1290. package/dist/common/roles/components/index.d.ts.map +0 -1
  1291. package/dist/common/roles/components/index.js +0 -2
  1292. package/dist/common/roles/components/index.js.map +0 -1
  1293. package/dist/common/roles/components/role-editor-form/role-dialog.d.ts +0 -14
  1294. package/dist/common/roles/components/role-editor-form/role-dialog.d.ts.map +0 -1
  1295. package/dist/common/roles/components/role-editor-form/role-dialog.js +0 -29
  1296. package/dist/common/roles/components/role-editor-form/role-dialog.js.map +0 -1
  1297. package/dist/common/roles/components/role-editor-form/role-editor-form.d.ts +0 -10
  1298. package/dist/common/roles/components/role-editor-form/role-editor-form.d.ts.map +0 -1
  1299. package/dist/common/roles/components/role-editor-form/role-editor-form.js +0 -49
  1300. package/dist/common/roles/components/role-editor-form/role-editor-form.js.map +0 -1
  1301. package/dist/common/roles/constants.d.ts.map +0 -1
  1302. package/dist/common/roles/constants.js.map +0 -1
  1303. package/dist/common/roles/index.d.ts +0 -4
  1304. package/dist/common/roles/index.d.ts.map +0 -1
  1305. package/dist/common/roles/index.js +0 -4
  1306. package/dist/common/roles/index.js.map +0 -1
  1307. package/dist/common/roles/schema.d.ts +0 -84
  1308. package/dist/common/roles/schema.d.ts.map +0 -1
  1309. package/dist/common/roles/schema.js +0 -44
  1310. package/dist/common/roles/schema.js.map +0 -1
  1311. package/dist/index.js.map +0 -1
  1312. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.d.ts +0 -14
  1313. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.d.ts.map +0 -1
  1314. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.gql +0 -10
  1315. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js +0 -23
  1316. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js.map +0 -1
  1317. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.ts +0 -34
  1318. package/dist/placeholder-auth/metadata.json +0 -9
  1319. package/dist/web/assets/__federation_expose_auth0CoreCommon-CSWdt8d_.js +0 -56
  1320. package/dist/web/assets/__federation_expose_auth0CoreCommon-CSWdt8d_.js.map +0 -1
  1321. package/dist/web/assets/__federation_expose_auth0CoreWeb-DjVw47sM.js +0 -201
  1322. package/dist/web/assets/__federation_expose_auth0CoreWeb-DjVw47sM.js.map +0 -1
  1323. package/dist/web/assets/__federation_expose_authCoreCommon-CvHJZFIq.js +0 -36
  1324. package/dist/web/assets/__federation_expose_authCoreCommon-CvHJZFIq.js.map +0 -1
  1325. package/dist/web/assets/__federation_expose_authCoreWeb-CrFEmZp3.js +0 -401
  1326. package/dist/web/assets/__federation_expose_authCoreWeb-CrFEmZp3.js.map +0 -1
  1327. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CmkiEJ6z.js +0 -39
  1328. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CmkiEJ6z.js.map +0 -1
  1329. package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-CpxfTdxv.js +0 -197
  1330. package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-CpxfTdxv.js.map +0 -1
  1331. package/dist/web/assets/__federation_fn_import-CGvRdRVe.js +0 -421
  1332. package/dist/web/assets/__federation_fn_import-CGvRdRVe.js.map +0 -1
  1333. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-D1kBtwsm.js +0 -341
  1334. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-D1kBtwsm.js.map +0 -1
  1335. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-B7442OYh.js +0 -10289
  1336. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-B7442OYh.js.map +0 -1
  1337. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-X318M5Ml.js +0 -23637
  1338. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-X318M5Ml.js.map +0 -1
  1339. package/dist/web/assets/__federation_shared_react-dom-Bwq4pLax.js +0 -250
  1340. package/dist/web/assets/__federation_shared_react-dom-Bwq4pLax.js.map +0 -1
  1341. package/dist/web/assets/__federation_shared_react-uocnGSER.js +0 -7
  1342. package/dist/web/assets/__federation_shared_react-uocnGSER.js.map +0 -1
  1343. package/dist/web/assets/__federation_shared_zod-BK7IELHt.js +0 -4380
  1344. package/dist/web/assets/__federation_shared_zod-BK7IELHt.js.map +0 -1
  1345. package/dist/web/assets/index-B1hOKVPw.js +0 -574
  1346. package/dist/web/assets/index-B1hOKVPw.js.map +0 -1
  1347. package/dist/web/assets/index-ydDQKauE.js +0 -101
  1348. package/dist/web/assets/index-ydDQKauE.js.map +0 -1
  1349. package/dist/web/assets/index.esm-DYWXRkn-.js +0 -2627
  1350. package/dist/web/assets/index.esm-DYWXRkn-.js.map +0 -1
  1351. package/dist/web/assets/model-merger-BVBtbNAj.js +0 -1708
  1352. package/dist/web/assets/model-merger-BVBtbNAj.js.map +0 -1
  1353. package/dist/web/assets/plugin-definition-Bdhuga1j.js +0 -36
  1354. package/dist/web/assets/plugin-definition-Bdhuga1j.js.map +0 -1
  1355. package/dist/web/assets/plugin-definition-C9d7ykhX.js +0 -24
  1356. package/dist/web/assets/plugin-definition-C9d7ykhX.js.map +0 -1
  1357. package/dist/web/assets/plugin-definition-QzgXWr1I.js +0 -24
  1358. package/dist/web/assets/plugin-definition-QzgXWr1I.js.map +0 -1
  1359. package/dist/web/assets/react-B23vKoD0.js +0 -47
  1360. package/dist/web/assets/react-B23vKoD0.js.map +0 -1
  1361. package/dist/web/assets/role-editor-form-BkcoVwtU.js +0 -319
  1362. package/dist/web/assets/role-editor-form-BkcoVwtU.js.map +0 -1
  1363. package/dist/web/assets/style-ZUYizAnf.css +0 -93
  1364. package/dist/web/assets/styles-Dfjm_ApH.js +0 -201
  1365. package/dist/web/assets/styles-Dfjm_ApH.js.map +0 -1
  1366. package/dist/web-export.js.map +0 -1
  1367. package/manifest.json +0 -4
  1368. /package/dist/{common → auth/core/schema}/roles/constants.d.ts +0 -0
  1369. /package/dist/{common → auth/core/schema}/roles/constants.js +0 -0
  1370. /package/dist/{auth0 → better-auth}/generators/index.d.ts +0 -0
  1371. /package/dist/{auth0 → better-auth}/generators/index.js +0 -0
  1372. /package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/templates/src/hooks/use-required-user-id.ts +0 -0
  1373. /package/dist/{auth → local-auth}/core/generators/auth-apollo/index.d.ts +0 -0
  1374. /package/dist/{auth → local-auth}/core/generators/auth-apollo/index.js +0 -0
  1375. /package/dist/{auth → local-auth}/core/generators/auth-apollo/templates/session-error-link.d.ts +0 -0
  1376. /package/dist/{auth → local-auth}/core/generators/auth-email-password/index.d.ts +0 -0
  1377. /package/dist/{auth → local-auth}/core/generators/auth-email-password/index.js +0 -0
  1378. /package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts +0 -0
  1379. /package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts +0 -0
  1380. /package/dist/{auth → local-auth}/core/generators/auth-module/index.d.ts +0 -0
  1381. /package/dist/{auth → local-auth}/core/generators/auth-module/index.js +0 -0
  1382. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts +0 -0
  1383. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/constants/user-session.constants.js +0 -0
  1384. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/constants/user-session.constants.ts +0 -0
  1385. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts +0 -0
  1386. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts +0 -0
  1387. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts +0 -0
  1388. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/services/user-session.service.d.ts +0 -0
  1389. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts +0 -0
  1390. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/cookie-signer.js +0 -0
  1391. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/cookie-signer.ts +0 -0
  1392. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/session-cookie.d.ts +0 -0
  1393. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/session-cookie.ts +0 -0
  1394. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts +0 -0
  1395. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/verify-request-origin.js +0 -0
  1396. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/verify-request-origin.ts +0 -0
  1397. /package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/route.js +0 -0
  1398. /package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/route.tsx +0 -0
  1399. /package/dist/{auth → local-auth}/core/generators/react-auth/index.d.ts +0 -0
  1400. /package/dist/{auth → local-auth}/core/generators/react-auth/index.js +0 -0
  1401. /package/dist/{auth → local-auth}/core/generators/react-session/index.d.ts +0 -0
  1402. /package/dist/{auth → local-auth}/core/generators/react-session/index.js +0 -0
  1403. /package/dist/{auth → local-auth}/core/generators/react-session/templates/src/app/user-session-provider.d.ts +0 -0
  1404. /package/dist/{auth → local-auth}/core/index.d.ts +0 -0
  1405. /package/dist/{auth → local-auth}/core/index.js +0 -0
@@ -0,0 +1,1822 @@
1
+ import { s as sortBy, m as mergeWith } from '../mergeWith-VagwCqUi.js';
2
+ import { importShared } from '../__federation_fn_import-3DENgil8.js';
3
+ import { A as isEqual, y as isPlainObject$1 } from '../isEqual-tnzoadW8.js';
4
+
5
+ /**
6
+ * Asserts that an array has no duplicate values based on an optional key function.
7
+ * Throws an error if duplicates are found, listing all duplicate keys.
8
+ *
9
+ * @template T The type of elements in the array.
10
+ * @param items The array to check for duplicates.
11
+ * @param context A string describing the context for the error message (e.g., "route loader fields").
12
+ * @param keyFn A function that extracts the comparison key from each element. Defaults to identity.
13
+ * @throws Error if duplicate keys are found.
14
+ */
15
+ function assertNoDuplicates(items, context, keyFn) {
16
+ const getKey = keyFn ?? ((item) => item);
17
+ const seen = new Map();
18
+ const duplicates = [];
19
+ for (const item of items) {
20
+ const key = getKey(item);
21
+ const count = seen.get(key) ?? 0;
22
+ seen.set(key, count + 1);
23
+ if (count === 1) {
24
+ // First time we see a duplicate
25
+ duplicates.push(key);
26
+ }
27
+ }
28
+ if (duplicates.length > 0) {
29
+ const duplicateList = duplicates
30
+ .map((key) => JSON.stringify(key))
31
+ .join(', ');
32
+ throw new Error(`Duplicate ${context} found: ${duplicateList}`);
33
+ }
34
+ }
35
+
36
+ function normalizeContent(content) {
37
+ if (typeof content === 'string') {
38
+ const encoder = new TextEncoder();
39
+ const { buffer } = encoder.encode(content);
40
+ if (!(buffer instanceof ArrayBuffer)) {
41
+ throw new TypeError('Buffer is not an ArrayBuffer');
42
+ }
43
+ return buffer;
44
+ }
45
+ return content;
46
+ }
47
+ async function hashWithSHA256(content) {
48
+ const data = normalizeContent(content);
49
+ const hashBuffer = await crypto.subtle.digest('SHA-256', data);
50
+ const hashArray = [...new Uint8Array(hashBuffer)];
51
+ return hashArray.map((b) => b.toString(16).padStart(2, '0')).join('');
52
+ }
53
+
54
+ /**
55
+ * Enhances an error with additional context while preserving the original stack trace
56
+ * @param {Error} originalError - The original error that was caught
57
+ * @param {string} contextMessage - Additional context to prepend to the error message
58
+ * @param {Object} [additionalProps] - Optional object with additional properties to add to the error
59
+ * @returns {Error} - Enhanced error with preserved stack trace
60
+ */
61
+ function enhanceErrorWithContext(originalError, contextMessage) {
62
+ // Create a new error with combined message
63
+ const enhancedError = new Error(`${contextMessage}:\n${originalError instanceof Error
64
+ ? originalError.message
65
+ : String(originalError)}`);
66
+ // Preserve the original stack if possible
67
+ if (originalError instanceof Error) {
68
+ enhancedError.stack = originalError.stack;
69
+ }
70
+ return enhancedError;
71
+ }
72
+
73
+ /**
74
+ * Class providing typed event emitter functionality.
75
+ *
76
+ * @template T - Mapping of event names to payload types.
77
+ */
78
+ class TypedEventEmitter {
79
+ listenerMap = new Map();
80
+ /**
81
+ * Abort controller for the event emitter to terminate all async generator listeners.
82
+ */
83
+ eventEmitterAbortController = new AbortController();
84
+ /**
85
+ * Registers a listener for an event.
86
+ *
87
+ * @template K - The event name.
88
+ * @param eventName - Name of the event.
89
+ * @param listener - Callback invoked with the event payload.
90
+ * @param options - Options for the listener.
91
+ * @returns Function to unregister the listener.
92
+ */
93
+ on(eventName, listener, options) {
94
+ const { signal } = options ?? {};
95
+ const existingListeners = this.listenerMap.get(eventName) ?? [];
96
+ this.listenerMap.set(eventName, [
97
+ ...existingListeners,
98
+ listener,
99
+ ]);
100
+ // Returns a function that unregisters this listener.
101
+ const unregister = () => {
102
+ const updatedListeners = (this.listenerMap.get(eventName) ?? []).filter((l) => l !== listener);
103
+ if (updatedListeners.length > 0) {
104
+ this.listenerMap.set(eventName, updatedListeners);
105
+ }
106
+ else {
107
+ this.listenerMap.delete(eventName);
108
+ }
109
+ };
110
+ signal?.addEventListener('abort', unregister, {
111
+ once: true,
112
+ });
113
+ return unregister;
114
+ }
115
+ /**
116
+ * Creates an async generator for an event.
117
+ *
118
+ * @template K - The event name.
119
+ * @param eventName - Name of the event.
120
+ * @param options - Additional options.
121
+ * @returns An async generator yielding event payloads.
122
+ */
123
+ async *onAsync(eventName, options) {
124
+ // Create a queue to store events when consumer isn't ready
125
+ const queue = [];
126
+ let pendingNext;
127
+ let isDone = false;
128
+ // Return early if the signal is aborted
129
+ const eventEmitterAbortSignal = this.eventEmitterAbortController.signal;
130
+ if (options.signal?.aborted || eventEmitterAbortSignal.aborted)
131
+ return;
132
+ function abortHandler() {
133
+ isDone = true;
134
+ // trigger dummy event to unblock the consumer
135
+ pendingNext?.(undefined);
136
+ }
137
+ options.signal?.addEventListener('abort', abortHandler, { once: true });
138
+ eventEmitterAbortSignal.addEventListener('abort', abortHandler, {
139
+ once: true,
140
+ });
141
+ this.on(eventName, (payload) => {
142
+ if (pendingNext) {
143
+ pendingNext(payload);
144
+ pendingNext = undefined;
145
+ }
146
+ else {
147
+ queue.push(payload);
148
+ }
149
+ }, { signal: options.signal });
150
+ // Keep yielding events until done
151
+ // oxlint-disable-next-line no-unmodified-loop-condition -- false positive since isDone is set to true in the abort handler
152
+ while (!isDone) {
153
+ const payload = queue.shift() ??
154
+ (await new Promise((resolve) => {
155
+ pendingNext = resolve;
156
+ }));
157
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- false positive since isDone is set to true in the abort handler
158
+ if (isDone)
159
+ break;
160
+ yield payload;
161
+ }
162
+ }
163
+ /**
164
+ * Emits an event with the given payload.
165
+ *
166
+ * @template K - The event name.
167
+ * @param eventName - Name of the event.
168
+ * @param payload - Payload for the event.
169
+ */
170
+ emit(eventName, payload) {
171
+ const listeners = this.listenerMap.get(eventName) ?? [];
172
+ for (const listener of listeners) {
173
+ listener(payload);
174
+ }
175
+ }
176
+ /**
177
+ * Removes all registered event listeners.
178
+ *
179
+ * Note: This is dangerous and should only be used in testing.
180
+ */
181
+ clearListeners() {
182
+ this.listenerMap.clear();
183
+ this.eventEmitterAbortController.abort();
184
+ }
185
+ /**
186
+ * Aborts the event emitter to terminate all async generator listeners.
187
+ */
188
+ abortEventEmitter() {
189
+ this.eventEmitterAbortController.abort();
190
+ }
191
+ }
192
+ /**
193
+ * Creates a typed event emitter that supports event listening and emitting.
194
+ *
195
+ * @template T - Mapping of event names to payload types.
196
+ * @returns An emitter with `on`, `emit`, and `clear` methods.
197
+ */
198
+ function createTypedEventEmitter() {
199
+ return new TypedEventEmitter();
200
+ }
201
+
202
+ /**
203
+ * Field container for a single value that cannot be overridden once set
204
+ */
205
+ class ScalarContainer {
206
+ _value;
207
+ defaultValue;
208
+ isSet = false;
209
+ setBySource;
210
+ getDynamicSource;
211
+ constructor(defaultValue, options) {
212
+ this.defaultValue = defaultValue;
213
+ this.getDynamicSource = options?.getDynamicSource;
214
+ }
215
+ getValue() {
216
+ return this._value === undefined ? this.defaultValue : this._value;
217
+ }
218
+ set(value, source) {
219
+ const setBySource = source ?? this.getDynamicSource?.() ?? 'unknown';
220
+ if (this.isSet) {
221
+ throw new Error(`Value has already been set by ${this.setBySource} and cannot be overwritten by ${setBySource}`);
222
+ }
223
+ this._value = value;
224
+ this.isSet = true;
225
+ this.setBySource = setBySource;
226
+ }
227
+ }
228
+ // Array field container
229
+ class ArrayContainer {
230
+ _stripDuplicates;
231
+ _value;
232
+ constructor(initialValue, options) {
233
+ this._stripDuplicates = options?.stripDuplicates ?? false;
234
+ this._value = initialValue ?? [];
235
+ }
236
+ push(...items) {
237
+ let currentValue = this._value;
238
+ if (this._stripDuplicates) {
239
+ // Add items without duplicates
240
+ const set = new Set([...currentValue, ...items]);
241
+ currentValue = [...set];
242
+ }
243
+ else {
244
+ // Add all items
245
+ currentValue = [...currentValue, ...items];
246
+ }
247
+ this._value = currentValue;
248
+ }
249
+ getValue() {
250
+ return this._value;
251
+ }
252
+ }
253
+ class ObjectContainer {
254
+ map;
255
+ getDynamicSource;
256
+ constructor(initialValue, options) {
257
+ this.getDynamicSource = options?.getDynamicSource;
258
+ this.map = new Map(Object.entries(initialValue).map(([key, value]) => [
259
+ key,
260
+ { value, setBySource: this.getDynamicSource?.() },
261
+ ]));
262
+ }
263
+ set(key, value, source) {
264
+ const existingValue = this.map.get(key);
265
+ const setBySource = source ?? this.getDynamicSource?.() ?? 'unknown';
266
+ if (existingValue?.setBySource) {
267
+ throw new Error(`Value for key ${key} has already been set by ${existingValue.setBySource} and cannot be overwritten by ${setBySource}`);
268
+ }
269
+ this.map.set(key, {
270
+ value,
271
+ setBySource,
272
+ });
273
+ }
274
+ merge(value, source) {
275
+ const mergeSource = source ?? this.getDynamicSource?.();
276
+ for (const [key, val] of Object.entries(value)) {
277
+ this.set(key, val, mergeSource);
278
+ }
279
+ }
280
+ getValue() {
281
+ return Object.fromEntries([...this.map.entries()].map(([key, value]) => [key, value.value]));
282
+ }
283
+ }
284
+ // Map field container
285
+ class MapContainer {
286
+ _value;
287
+ getDynamicSource;
288
+ constructor(initialValue, options) {
289
+ this.getDynamicSource = options?.getDynamicSource;
290
+ const initialMap = initialValue ?? new Map();
291
+ this._value = new Map([...initialMap.entries()].map(([key, value]) => [
292
+ key,
293
+ { value, setBySource: this.getDynamicSource?.() },
294
+ ]));
295
+ }
296
+ set(key, value, source) {
297
+ const existingValue = this._value.get(key);
298
+ const setBySource = source ?? this.getDynamicSource?.() ?? 'unknown';
299
+ if (existingValue?.setBySource) {
300
+ throw new Error(`Value for key ${key} has already been set by ${existingValue.setBySource} and cannot be overwritten by ${setBySource}`);
301
+ }
302
+ this._value.set(key, {
303
+ value,
304
+ setBySource,
305
+ });
306
+ }
307
+ merge(value, source) {
308
+ const mergeSource = source ?? this.getDynamicSource?.();
309
+ for (const [key, val] of value.entries()) {
310
+ this.set(key, val, mergeSource);
311
+ }
312
+ }
313
+ mergeObj(value, source) {
314
+ const mergeSource = source ?? this.getDynamicSource?.();
315
+ for (const [key, val] of Object.entries(value)) {
316
+ this.set(key, val, mergeSource);
317
+ }
318
+ }
319
+ getValue() {
320
+ return new Map([...this._value.entries()].map(([key, value]) => [key, value.value]));
321
+ }
322
+ }
323
+ /**
324
+ * Named field container
325
+ *
326
+ * This container stores objects that contains a name field that can be used for
327
+ * detecting duplicate names.
328
+ */
329
+ class NamedArrayFieldContainer {
330
+ _value;
331
+ getDynamicSource;
332
+ constructor(initialValue, options) {
333
+ this.getDynamicSource = options?.getDynamicSource;
334
+ const value = initialValue ?? [];
335
+ this._value = new Map(value.map((val) => [
336
+ val.name,
337
+ { value: val, setBySource: this.getDynamicSource?.() },
338
+ ]));
339
+ }
340
+ add(value, source) {
341
+ const existingValue = this._value.get(value.name);
342
+ const setBySource = source ?? this.getDynamicSource?.() ?? 'unknown';
343
+ if (existingValue?.setBySource) {
344
+ throw new Error(`Value for name ${value.name} has already been set by ${existingValue.setBySource} and cannot be overwritten by ${setBySource}`);
345
+ }
346
+ this._value.set(value.name, {
347
+ value,
348
+ setBySource,
349
+ });
350
+ }
351
+ addMany(values, source) {
352
+ for (const value of values) {
353
+ this.add(value, source);
354
+ }
355
+ }
356
+ getValue() {
357
+ return sortBy([...this._value.values()].map((value) => value.value), [(v) => v.name]);
358
+ }
359
+ }
360
+ /**
361
+ * Named array field container that returns a map of names to values
362
+ */
363
+ class NamedArrayToMapFieldContainer {
364
+ _namedFieldContainer;
365
+ constructor(initialValue, options) {
366
+ this._namedFieldContainer = new NamedArrayFieldContainer(initialValue, options);
367
+ }
368
+ add(value, source) {
369
+ this._namedFieldContainer.add(value, source);
370
+ }
371
+ addMany(values, source) {
372
+ this._namedFieldContainer.addMany(values, source);
373
+ }
374
+ getValue() {
375
+ return new Map(this._namedFieldContainer.getValue().map((value) => [value.name, value]));
376
+ }
377
+ }
378
+ // Map of maps field container
379
+ class MapOfMapsContainer {
380
+ _value;
381
+ getDynamicSource;
382
+ constructor(initialValue, options) {
383
+ this.getDynamicSource = options?.getDynamicSource;
384
+ const initialMap = initialValue ?? new Map();
385
+ this._value = new Map([...initialMap.entries()].map(([key1, innerMap]) => [
386
+ key1,
387
+ {
388
+ value: new Map([...innerMap.entries()].map(([key2, value]) => [
389
+ key2,
390
+ { value, setBySource: this.getDynamicSource?.() },
391
+ ])),
392
+ setBySource: this.getDynamicSource?.(),
393
+ },
394
+ ]));
395
+ }
396
+ set(key1, key2, value, source) {
397
+ const existingOuterValue = this._value.get(key1);
398
+ const setBySource = source ?? this.getDynamicSource?.() ?? 'unknown';
399
+ // If the outer key doesn't exist yet, create a new map for it
400
+ if (!existingOuterValue) {
401
+ const newInnerMap = new Map([[key2, { value, setBySource }]]);
402
+ this._value.set(key1, {
403
+ value: newInnerMap,
404
+ setBySource,
405
+ });
406
+ return;
407
+ }
408
+ // Check if this specific key1+key2 combination has already been set
409
+ const existingInnerValue = existingOuterValue.value.get(key2);
410
+ if (existingInnerValue?.setBySource) {
411
+ throw new Error(`Value for keys ${key1}+${key2} has already been set by ${existingInnerValue.setBySource} and cannot be overwritten by ${setBySource}`);
412
+ }
413
+ // Add the new value to the existing inner map
414
+ existingOuterValue.value.set(key2, {
415
+ value,
416
+ setBySource,
417
+ });
418
+ }
419
+ merge(key1, value, source) {
420
+ const mergeSource = source ?? this.getDynamicSource?.() ?? 'unknown';
421
+ for (const [key2, val] of value.entries()) {
422
+ this.set(key1, key2, val, mergeSource);
423
+ }
424
+ }
425
+ mergeObj(key1, value, source) {
426
+ const mergeSource = source ?? this.getDynamicSource?.() ?? 'unknown';
427
+ for (const [key2, val] of Object.entries(value)) {
428
+ this.set(key1, key2, val, mergeSource);
429
+ }
430
+ }
431
+ getValue() {
432
+ return new Map([...this._value.entries()].map(([key1, outerValue]) => [
433
+ key1,
434
+ new Map([...outerValue.value.entries()].map(([key2, innerValue]) => [
435
+ key2,
436
+ innerValue.value,
437
+ ])),
438
+ ]));
439
+ }
440
+ }
441
+ // Schema builder class
442
+ class FieldMapSchemaBuilder {
443
+ options;
444
+ constructor(options) {
445
+ this.options = options;
446
+ }
447
+ scalar(defaultValue) {
448
+ return new ScalarContainer(defaultValue, this.options);
449
+ }
450
+ string(defaultValue) {
451
+ return new ScalarContainer(defaultValue, this.options);
452
+ }
453
+ number(defaultValue) {
454
+ return new ScalarContainer(defaultValue, this.options);
455
+ }
456
+ boolean(defaultValue) {
457
+ return new ScalarContainer(defaultValue, this.options);
458
+ }
459
+ array(initialValue, options) {
460
+ return new ArrayContainer(initialValue, options);
461
+ }
462
+ object(defaultValue) {
463
+ return new ObjectContainer(defaultValue, this.options);
464
+ }
465
+ map(initialValue) {
466
+ return new MapContainer(initialValue ?? new Map(), this.options);
467
+ }
468
+ mapFromObj(initialValue) {
469
+ return new MapContainer(new Map(Object.entries(initialValue ?? {})), this.options);
470
+ }
471
+ namedArray(initialValue) {
472
+ return new NamedArrayFieldContainer(initialValue, this.options);
473
+ }
474
+ namedArrayToMap(initialValue) {
475
+ return new NamedArrayToMapFieldContainer(initialValue, this.options);
476
+ }
477
+ mapOfMaps(initialValue) {
478
+ return new MapOfMapsContainer(initialValue ?? new Map(), this.options);
479
+ }
480
+ mapOfMapsFromObj(initialValue) {
481
+ const map = new Map();
482
+ if (initialValue) {
483
+ for (const [key1, innerObj] of Object.entries(initialValue)) {
484
+ map.set(key1, new Map(Object.entries(innerObj)));
485
+ }
486
+ }
487
+ return new MapOfMapsContainer(map, this.options);
488
+ }
489
+ }
490
+ function createFieldMapSchemaBuilder(schemaBuilder) {
491
+ return schemaBuilder;
492
+ }
493
+ /**
494
+ * Creates a field map with type-safe field definitions
495
+ */
496
+ function createFieldMap(schemaBuilder, options) {
497
+ const schema = schemaBuilder(new FieldMapSchemaBuilder(options));
498
+ // Add getValues method
499
+ return {
500
+ ...schema,
501
+ getValues: () => {
502
+ const values = {};
503
+ for (const key of Object.keys(schema)) {
504
+ const container = schema[key];
505
+ values[key] = container.getValue();
506
+ }
507
+ return values;
508
+ },
509
+ };
510
+ }
511
+
512
+ /**
513
+ * Recursively deep clones JSON-compatible values.
514
+ * Throws if the value is not JSON-serializable.
515
+ *
516
+ * @param value - The value to clone
517
+ * @returns A deep-cloned copy of the value
518
+ * @throws Error if a non-JSON value is encountered
519
+ */
520
+ function jsonDeepClone(value) {
521
+ if (value === undefined ||
522
+ value === null ||
523
+ typeof value === 'boolean' ||
524
+ typeof value === 'string') {
525
+ return value;
526
+ }
527
+ if (typeof value === 'number') {
528
+ return value;
529
+ }
530
+ if (typeof value === 'object') {
531
+ if (value instanceof Date || value instanceof RegExp) {
532
+ throw new TypeError(`Cannot clone value of unsupported type: ${value.constructor.name}`);
533
+ }
534
+ if (Array.isArray(value)) {
535
+ // Clone array elements
536
+ const copy = [];
537
+ for (const [i, element] of value.entries()) {
538
+ copy[i] = jsonDeepClone(element);
539
+ }
540
+ return copy;
541
+ }
542
+ // Clone plain object properties
543
+ const copy = {};
544
+ for (const key in value) {
545
+ if (Object.prototype.hasOwnProperty.call(value, key)) {
546
+ const prop = value[key];
547
+ copy[key] = jsonDeepClone(prop);
548
+ }
549
+ }
550
+ return copy;
551
+ }
552
+ // Reject functions, symbols, BigInt, etc.
553
+ throw new Error(`Cannot clone value of unsupported type: ${typeof value}`);
554
+ }
555
+
556
+ // adapted from https://github.com/AitoDotAI/json-stringify-pretty-compact
557
+ // allows { } to be presented as {} to better mirror prettier formatting
558
+ function isObject(obj) {
559
+ return typeof obj === 'object' && obj !== null;
560
+ }
561
+ function forEach(obj, cb) {
562
+ if (Array.isArray(obj)) {
563
+ // eslint-disable-next-line unicorn/no-array-for-each
564
+ obj.forEach(cb);
565
+ }
566
+ else if (isObject(obj)) {
567
+ for (const key of Object.keys(obj)) {
568
+ const val = obj[key];
569
+ cb(val, key);
570
+ }
571
+ }
572
+ }
573
+ function getTreeDepth(obj) {
574
+ let depth = 0;
575
+ if (Array.isArray(obj) || isObject(obj)) {
576
+ forEach(obj, (val) => {
577
+ if (Array.isArray(val) || isObject(val)) {
578
+ const tmpDepth = getTreeDepth(val);
579
+ if (tmpDepth > depth) {
580
+ depth = tmpDepth;
581
+ }
582
+ }
583
+ });
584
+ return depth + 1;
585
+ }
586
+ return depth;
587
+ }
588
+ function get(options, name, defaultValue) {
589
+ return (name in options ? options[name] : defaultValue);
590
+ }
591
+ // Note: This regex matches even invalid JSON strings, but since we’re
592
+ // working on the output of `JSON.stringify` we know that only valid strings
593
+ // are present (unless the user supplied a weird `options.indent` but in
594
+ // that case we don’t care since the output would be invalid anyway).
595
+ // This regex has been adjusted to allow replacement of { } and [ ] with {} and []
596
+ // to better mirror prettier formatting.
597
+ const stringOrChar = /("(?:[^\\"]|\\.)*")|[:,]|\{(?!})|(?<!\{)}|\[(?!])|(?<!\[)]/g;
598
+ function prettify(str, options = {}) {
599
+ const tokens = {
600
+ '{': '{',
601
+ '}': '}',
602
+ '[': '[',
603
+ ']': ']',
604
+ ',': ', ',
605
+ ':': ': ',
606
+ };
607
+ if (!!options.addMargin || !!options.addObjectMargin) {
608
+ tokens['{'] = '{ ';
609
+ tokens['}'] = ' }';
610
+ }
611
+ if (!!options.addMargin || !!options.addArrayMargin) {
612
+ tokens['['] = '[ ';
613
+ tokens[']'] = ' ]';
614
+ }
615
+ return str.replaceAll(stringOrChar, (match, string) => string ? match : tokens[match]);
616
+ }
617
+ function stringifyPrettyCompact(rootObj, options = {}) {
618
+ const indent = JSON.stringify([1], null, get(options, 'indent', 2)).slice(2, -3);
619
+ const addMargin = get(options, 'margins', false);
620
+ const addArrayMargin = get(options, 'arrayMargins', false);
621
+ const addObjectMargin = get(options, 'objectMargins', true);
622
+ const maxLength = indent === '' ? Infinity : get(options, 'maxLength', 80);
623
+ const maxNesting = get(options, 'maxNesting', Infinity);
624
+ return (function stringifyRecursive(obj, currentIndent, reserved) {
625
+ if (obj &&
626
+ typeof obj === 'object' &&
627
+ typeof obj.toJSON === 'function') {
628
+ // eslint-disable-next-line @typescript-eslint/no-confusing-void-expression
629
+ obj = obj.toJSON();
630
+ }
631
+ const string = JSON.stringify(obj);
632
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
633
+ if (string === undefined) {
634
+ return string;
635
+ }
636
+ const length = maxLength - currentIndent.length - reserved;
637
+ const treeDepth = getTreeDepth(obj);
638
+ if (treeDepth <= maxNesting && string.length <= length) {
639
+ const prettified = prettify(string, {
640
+ addMargin,
641
+ addArrayMargin,
642
+ addObjectMargin,
643
+ });
644
+ if (prettified.length <= length) {
645
+ return prettified;
646
+ }
647
+ }
648
+ if (isObject(obj)) {
649
+ const nextIndent = currentIndent + indent;
650
+ const items = [];
651
+ let delimiters;
652
+ const atEndOfArray = (array, index) => index === array.length - 1 ? 0 : 1;
653
+ if (Array.isArray(obj)) {
654
+ for (let index = 0; index < obj.length; index += 1) {
655
+ items.push(stringifyRecursive(obj[index], nextIndent, atEndOfArray(obj, index)) || 'null');
656
+ }
657
+ delimiters = '[]';
658
+ }
659
+ else {
660
+ // eslint-disable-next-line unicorn/no-array-for-each
661
+ Object.keys(obj).forEach((key, index, array) => {
662
+ const keyPart = `${JSON.stringify(key)}: `;
663
+ const value = stringifyRecursive(obj[key], nextIndent, keyPart.length + atEndOfArray(array, index));
664
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
665
+ if (value !== undefined) {
666
+ items.push(keyPart + value);
667
+ }
668
+ });
669
+ delimiters = '{}';
670
+ }
671
+ if (items.length > 0) {
672
+ return [
673
+ delimiters[0],
674
+ indent + items.join(`,\n${nextIndent}`),
675
+ delimiters[1],
676
+ ].join(`\n${currentIndent}`);
677
+ }
678
+ }
679
+ return string;
680
+ })(rootObj, '', 0);
681
+ }
682
+
683
+ function isPlainObject(value) {
684
+ if (typeof value !== 'object' || value === null) {
685
+ return false;
686
+ }
687
+
688
+ const prototype = Object.getPrototypeOf(value);
689
+ return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
690
+ }
691
+
692
+ function sortKeys(object, options = {}) {
693
+ if (!isPlainObject(object) && !Array.isArray(object)) {
694
+ throw new TypeError('Expected a plain object or array');
695
+ }
696
+
697
+ const {deep, compare} = options;
698
+ const cache = new WeakMap();
699
+
700
+ const deepSortArray = array => {
701
+ const resultFromCache = cache.get(array);
702
+ if (resultFromCache !== undefined) {
703
+ return resultFromCache;
704
+ }
705
+
706
+ const result = [];
707
+ cache.set(array, result);
708
+
709
+ result.push(...array.map(item => {
710
+ if (Array.isArray(item)) {
711
+ return deepSortArray(item);
712
+ }
713
+
714
+ if (isPlainObject(item)) {
715
+ return _sortKeys(item);
716
+ }
717
+
718
+ return item;
719
+ }));
720
+
721
+ return result;
722
+ };
723
+
724
+ const _sortKeys = object => {
725
+ const resultFromCache = cache.get(object);
726
+ if (resultFromCache !== undefined) {
727
+ return resultFromCache;
728
+ }
729
+
730
+ const result = {};
731
+ const keys = Object.keys(object).sort(compare);
732
+
733
+ cache.set(object, result);
734
+
735
+ for (const key of keys) {
736
+ const value = object[key];
737
+ let newValue;
738
+
739
+ if (deep && Array.isArray(value)) {
740
+ newValue = deepSortArray(value);
741
+ } else {
742
+ newValue = deep && isPlainObject(value) ? _sortKeys(value) : value;
743
+ }
744
+
745
+ Object.defineProperty(result, key, {
746
+ ...Object.getOwnPropertyDescriptor(object, key),
747
+ value: newValue,
748
+ });
749
+ }
750
+
751
+ return result;
752
+ };
753
+
754
+ if (Array.isArray(object)) {
755
+ return deep ? deepSortArray(object) : [...object];
756
+ }
757
+
758
+ return _sortKeys(object);
759
+ }
760
+
761
+ /**
762
+ * Stringifies a value with stable pretty printing.
763
+ *
764
+ * That means the keys are sorted and the value is pretty printed.
765
+ *
766
+ * @param value - The value to stringify.
767
+ * @returns The stringified value.
768
+ */
769
+ function stringifyPrettyStable(value) {
770
+ const sortedValue = sortKeys(value, {
771
+ deep: true,
772
+ });
773
+ return `${stringifyPrettyCompact(sortedValue)}\n`;
774
+ }
775
+
776
+ /**
777
+ * Groups values of an iterable using a key-generating function and returns a Map.
778
+ *
779
+ * Mimics the behavior of ES2025 `Map.groupBy`.
780
+ *
781
+ * @template T The type of elements in the iterable.
782
+ * @template K The key type returned by the key function.
783
+ * @param iterable The iterable to group.
784
+ * @param keyFn A function that returns a grouping key for each element.
785
+ * @returns A Map where each key maps to an array of elements with that key.
786
+ */
787
+ function mapGroupBy(iterable, keyFn) {
788
+ const result = new Map();
789
+ for (const item of iterable) {
790
+ const key = keyFn(item);
791
+ const group = result.get(key);
792
+ if (group) {
793
+ group.push(item);
794
+ }
795
+ else {
796
+ result.set(key, [item]);
797
+ }
798
+ }
799
+ return result;
800
+ }
801
+
802
+ /**
803
+ * Creates a Map from an iterable, using a key-generating function.
804
+ * If multiple elements generate the same key, later elements override earlier ones.
805
+ *
806
+ * Analogous to lodash's keyBy function, but returns a Map instead of an object.
807
+ *
808
+ * @template T The type of elements in the iterable.
809
+ * @template K The key type returned by the key function.
810
+ * @param iterable The iterable to transform.
811
+ * @param keyFn A function that returns a unique key for each element.
812
+ * @returns A Map where each key maps to a single element.
813
+ */
814
+ function mapKeyBy(iterable, keyFn) {
815
+ const result = new Map();
816
+ for (const item of iterable) {
817
+ const key = keyFn(item);
818
+ result.set(key, item);
819
+ }
820
+ return result;
821
+ }
822
+
823
+ /**
824
+ * Maps the values of a Map to a new Map with the same keys.
825
+ *
826
+ * @template K - Type of keys in the map.
827
+ * @template V - Original value type.
828
+ * @template R - Resulting value type.
829
+ * @param map - The input Map to transform.
830
+ * @param fn - A function to transform each value, receiving the value, key, and original map.
831
+ * @returns A new Map with the same keys and transformed values.
832
+ */
833
+ function mapValuesOfMap(map, fn) {
834
+ const result = new Map();
835
+ for (const [key, value] of map.entries()) {
836
+ result.set(key, fn(value, key, map));
837
+ }
838
+ return result;
839
+ }
840
+
841
+ /**
842
+ * Merges an array of maps, throwing an error if any keys overlap (unless the values are deeply equal and allowed).
843
+ *
844
+ * @param maps - The array of maps to merge.
845
+ * @param options - Options to control merge behavior.
846
+ * @returns The merged map.
847
+ */
848
+ function safeMergeMapsWithOptions(maps, options = {}) {
849
+ const result = new Map();
850
+ for (const map of maps) {
851
+ for (const [key, value] of map) {
852
+ if (result.has(key)) {
853
+ const existing = result.get(key);
854
+ if (!options.allowEqualValues || !isEqual(existing, value)) {
855
+ throw new Error(`Cannot merge key ${String(key)} because it already exists.`);
856
+ }
857
+ }
858
+ result.set(key, value);
859
+ }
860
+ }
861
+ return result;
862
+ }
863
+ /**
864
+ * Merges two maps, throwing an error if any keys overlap.
865
+ *
866
+ * @param mapOne - The first map to merge.
867
+ * @param mapTwo - The second map to merge.
868
+ * @param options - Options to control merge behavior
869
+ * @returns The merged map.
870
+ */
871
+ function safeMergeMap(mapOne, mapTwo, options = {}) {
872
+ return safeMergeMapsWithOptions([mapOne, mapTwo], options);
873
+ }
874
+ /**
875
+ * Merges an array of maps, throwing an error if any keys overlap (unless the values are deeply equal and allowed).
876
+ * This function delegates to safeMergeMapsWithOptions.
877
+ *
878
+ * @param maps - The array of maps to merge.
879
+ * @returns The merged map.
880
+ */
881
+ function safeMergeMaps(...maps) {
882
+ return safeMergeMapsWithOptions(maps);
883
+ }
884
+
885
+ /**
886
+ * Sets a value at a given path in an object or array immutably.
887
+ *
888
+ * Mimics lodash set but returns a new object/array and throws on invalid paths.
889
+ * Only operates on JSON-stringifyable data (objects and arrays).
890
+ *
891
+ * It navigates the path and recursively copies objects/arrays along the path.
892
+ *
893
+ * @param obj - The object or array to modify
894
+ * @param path - The path to set the value at
895
+ * @param value - The value to set
896
+ * @returns A new object or array with the value set
897
+ * @throws Error if the path is invalid (e.g., trying to set a property on a non-object)
898
+ */
899
+ function immutableSet(obj, path, value) {
900
+ if (path.length === 0) {
901
+ return value;
902
+ }
903
+ const [head, ...tail] = path;
904
+ if (Array.isArray(obj)) {
905
+ if (typeof head !== 'number') {
906
+ throw new TypeError(`Invalid path: expected number index for array, got "${head}"`);
907
+ }
908
+ const newArr = [...obj];
909
+ newArr[head] =
910
+ tail.length === 0
911
+ ? value
912
+ : immutableSet(obj[head], tail, value);
913
+ return newArr;
914
+ }
915
+ if (isPlainObject$1(obj)) {
916
+ const newObj = { ...obj };
917
+ const key = String(head);
918
+ newObj[key] =
919
+ tail.length === 0
920
+ ? value
921
+ : immutableSet(obj[key], tail, value);
922
+ return newObj;
923
+ }
924
+ throw new Error(`Invalid path: cannot set property "${head}" on non-object value`);
925
+ }
926
+
927
+ /**
928
+ * Merges two objects, throwing an error if any keys overlap.
929
+ *
930
+ * @param itemOne - The first object to merge.
931
+ * @param itemTwo - The second object to merge.
932
+ * @param options - Options to control merge behavior
933
+ * @returns The merged object.
934
+ */
935
+ function safeMerge(itemOne, itemTwo, options = {}) {
936
+ return mergeWith(itemOne, itemTwo, (targetValue, sourceValue, key) => {
937
+ if (key in itemOne && key in itemTwo) {
938
+ if (options.allowEqualValues && isEqual(targetValue, sourceValue)) {
939
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return -- we're just using the sourceValue
940
+ return sourceValue;
941
+ }
942
+ throw new Error(`Cannot merge key ${key} because it already exists.`);
943
+ }
944
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return -- we're just using the sourceValue
945
+ return sourceValue;
946
+ });
947
+ }
948
+ /**
949
+ * Merges an array of objects, throwing an error if any keys overlap.
950
+ *
951
+ * @param items - The array of objects to merge.
952
+ * @param options - Options to control merge behavior
953
+ * @returns The merged object.
954
+ */
955
+ function safeMergeAllWithOptions(items, options = {}) {
956
+ const targetValue = {};
957
+ for (const item of items.flat()) {
958
+ safeMerge(targetValue, item, options);
959
+ }
960
+ return targetValue;
961
+ }
962
+ /**
963
+ * Merges an array of objects, throwing an error if any keys overlap.
964
+ *
965
+ * @param items - The array of objects to merge.
966
+ * @returns The merged object.
967
+ */
968
+ function safeMergeAll(...items) {
969
+ return safeMergeAllWithOptions(items);
970
+ }
971
+
972
+ /**
973
+ * Stable string comparison function that uses case-insensitive lexicographic ordering
974
+ * with a case-sensitive tiebreaker for determinism.
975
+ *
976
+ * This matches the default behavior of `localeCompare` (case-insensitive) while
977
+ * providing consistent results across different operating systems and locales.
978
+ * Use this for deterministic sorting where locale-aware comparison is not required.
979
+ *
980
+ * @param a - First string to compare
981
+ * @param b - Second string to compare
982
+ * @returns Negative if a < b, positive if a > b, zero if equal
983
+ *
984
+ * @example
985
+ * ```ts
986
+ * const items = ['Banana', 'apple', 'Cherry', 'cherry'];
987
+ * items.sort(compareStrings); // ['apple', 'Banana', 'Cherry', 'cherry']
988
+ * ```
989
+ */
990
+ function compareStrings(a, b) {
991
+ const aLower = a.toLowerCase();
992
+ const bLower = b.toLowerCase();
993
+ if (aLower < bLower)
994
+ return -1;
995
+ if (aLower > bLower)
996
+ return 1;
997
+ // Tiebreaker: case-sensitive comparison for determinism
998
+ if (a < b)
999
+ return -1;
1000
+ if (a > b)
1001
+ return 1;
1002
+ return 0;
1003
+ }
1004
+
1005
+ /**
1006
+ * Recursively sorts all keys in an object, including nested objects and arrays.
1007
+ *
1008
+ * @param obj - The object to sort recursively.
1009
+ * @returns A new object with all keys sorted recursively.
1010
+ */
1011
+ function sortKeysRecursive(obj) {
1012
+ if (obj === null || typeof obj !== 'object') {
1013
+ return obj;
1014
+ }
1015
+ if (Array.isArray(obj)) {
1016
+ return obj.map(sortKeysRecursive);
1017
+ }
1018
+ return Object.fromEntries(Object.entries(obj)
1019
+ .toSorted(([a], [b]) => compareStrings(a, b))
1020
+ .map(([key, value]) => [key, sortKeysRecursive(value)]));
1021
+ }
1022
+
1023
+ /**
1024
+ * Sorts the keys of an object.
1025
+ *
1026
+ * @param obj - The object to sort.
1027
+ * @returns The sorted object.
1028
+ */
1029
+ function sortObjectKeys(obj) {
1030
+ return Object.fromEntries(Object.entries(obj).toSorted(([a], [b]) => compareStrings(a, b)));
1031
+ }
1032
+
1033
+ /**
1034
+ * Returns a new Set containing values in `setA` that are not in `setB`.
1035
+ *
1036
+ * @param setA - The original set
1037
+ * @param setB - The set of values to exclude
1038
+ * @returns A new Set with the difference
1039
+ */
1040
+ function differenceSet(setA, setB) {
1041
+ const result = new Set();
1042
+ for (const value of setA) {
1043
+ if (!setB.has(value)) {
1044
+ result.add(value);
1045
+ }
1046
+ }
1047
+ return result;
1048
+ }
1049
+
1050
+ /**
1051
+ * Lowercase the first character of a string, leaving the remainder unchanged.
1052
+ *
1053
+ * - Returns the input unchanged when it's an empty string
1054
+ * - Non-alphabetic first characters are returned as-is
1055
+ *
1056
+ * @param str - The input string
1057
+ * @returns The string with the first character lowercased
1058
+ * @example
1059
+ * lowercaseFirstChar('Hello') // 'hello'
1060
+ * lowercaseFirstChar('hello') // 'hello'
1061
+ * lowercaseFirstChar('1World') // '1World'
1062
+ */
1063
+ function lowercaseFirstChar(str) {
1064
+ if (str.length === 0) {
1065
+ return str;
1066
+ }
1067
+ return str.charAt(0).toLowerCase() + str.slice(1);
1068
+ }
1069
+ /**
1070
+ * Uppercase the first character of a string, leaving the remainder unchanged.
1071
+ *
1072
+ * - Returns the input unchanged when it's an empty string
1073
+ * - Non-alphabetic first characters are returned as-is
1074
+ *
1075
+ * @param str - The input string
1076
+ * @returns The string with the first character uppercased
1077
+ * @example
1078
+ * uppercaseFirstChar('hello') // 'Hello'
1079
+ * uppercaseFirstChar('Hello') // 'Hello'
1080
+ * uppercaseFirstChar('#tag') // '#tag'
1081
+ */
1082
+ function uppercaseFirstChar(str) {
1083
+ if (str.length === 0) {
1084
+ return str;
1085
+ }
1086
+ return str.charAt(0).toUpperCase() + str.slice(1);
1087
+ }
1088
+
1089
+ /**
1090
+ * Converts a string to the specified case while preserving non-alphanumeric prefixes and suffixes.
1091
+ *
1092
+ * @param input - The string to convert
1093
+ * @param caseConverter - The case conversion function to apply
1094
+ * @returns The converted string with preserved prefix and suffix
1095
+ *
1096
+ * @example
1097
+ * ```typescript
1098
+ * convertCaseWithPrefix('_layoutTest', kebabCase)
1099
+ * // Returns: '_layout-test'
1100
+ *
1101
+ * convertCaseWithPrefix('__privateHelper', kebabCase)
1102
+ * // Returns: '__private-helper'
1103
+ *
1104
+ * convertCaseWithPrefix('[id]', kebabCase)
1105
+ * // Returns: '[id]'
1106
+ * ```
1107
+ */
1108
+ function convertCaseWithPrefix(input, caseConverter) {
1109
+ // Handle special pattern where the entire string is non-alphanumeric (like "[id]")
1110
+ if (!/[a-zA-Z0-9]/.test(input)) {
1111
+ return input;
1112
+ }
1113
+ // Extract non-alphanumeric prefix
1114
+ const prefixMatch = /^([^a-zA-Z0-9]*)/.exec(input);
1115
+ const prefix = prefixMatch?.[1] ?? '';
1116
+ // Extract non-alphanumeric suffix
1117
+ const suffixMatch = /([^a-zA-Z0-9]*)$/.exec(input);
1118
+ const suffix = suffixMatch?.[1] ?? '';
1119
+ // Get the middle part (everything between prefix and suffix)
1120
+ const startIndex = prefix.length;
1121
+ const endIndex = input.length - suffix.length;
1122
+ const middlePart = input.slice(startIndex, endIndex);
1123
+ // Only apply case conversion to the middle part if it contains alphanumeric characters
1124
+ const convertedMiddlePart = middlePart && /[a-zA-Z0-9]/.test(middlePart)
1125
+ ? caseConverter(middlePart)
1126
+ : middlePart;
1127
+ return prefix + convertedMiddlePart + suffix;
1128
+ }
1129
+
1130
+ const peq = new Uint32Array(0x10000);
1131
+ const myers_32 = (a, b) => {
1132
+ const n = a.length;
1133
+ const m = b.length;
1134
+ const lst = 1 << (n - 1);
1135
+ let pv = -1;
1136
+ let mv = 0;
1137
+ let sc = n;
1138
+ let i = n;
1139
+ while (i--) {
1140
+ peq[a.charCodeAt(i)] |= 1 << i;
1141
+ }
1142
+ for (i = 0; i < m; i++) {
1143
+ let eq = peq[b.charCodeAt(i)];
1144
+ const xv = eq | mv;
1145
+ eq |= ((eq & pv) + pv) ^ pv;
1146
+ mv |= ~(eq | pv);
1147
+ pv &= eq;
1148
+ if (mv & lst) {
1149
+ sc++;
1150
+ }
1151
+ if (pv & lst) {
1152
+ sc--;
1153
+ }
1154
+ mv = (mv << 1) | 1;
1155
+ pv = (pv << 1) | ~(xv | mv);
1156
+ mv &= xv;
1157
+ }
1158
+ i = n;
1159
+ while (i--) {
1160
+ peq[a.charCodeAt(i)] = 0;
1161
+ }
1162
+ return sc;
1163
+ };
1164
+ const myers_x = (b, a) => {
1165
+ const n = a.length;
1166
+ const m = b.length;
1167
+ const mhc = [];
1168
+ const phc = [];
1169
+ const hsize = Math.ceil(n / 32);
1170
+ const vsize = Math.ceil(m / 32);
1171
+ for (let i = 0; i < hsize; i++) {
1172
+ phc[i] = -1;
1173
+ mhc[i] = 0;
1174
+ }
1175
+ let j = 0;
1176
+ for (; j < vsize - 1; j++) {
1177
+ let mv = 0;
1178
+ let pv = -1;
1179
+ const start = j * 32;
1180
+ const vlen = Math.min(32, m) + start;
1181
+ for (let k = start; k < vlen; k++) {
1182
+ peq[b.charCodeAt(k)] |= 1 << k;
1183
+ }
1184
+ for (let i = 0; i < n; i++) {
1185
+ const eq = peq[a.charCodeAt(i)];
1186
+ const pb = (phc[(i / 32) | 0] >>> i) & 1;
1187
+ const mb = (mhc[(i / 32) | 0] >>> i) & 1;
1188
+ const xv = eq | mv;
1189
+ const xh = ((((eq | mb) & pv) + pv) ^ pv) | eq | mb;
1190
+ let ph = mv | ~(xh | pv);
1191
+ let mh = pv & xh;
1192
+ if ((ph >>> 31) ^ pb) {
1193
+ phc[(i / 32) | 0] ^= 1 << i;
1194
+ }
1195
+ if ((mh >>> 31) ^ mb) {
1196
+ mhc[(i / 32) | 0] ^= 1 << i;
1197
+ }
1198
+ ph = (ph << 1) | pb;
1199
+ mh = (mh << 1) | mb;
1200
+ pv = mh | ~(xv | ph);
1201
+ mv = ph & xv;
1202
+ }
1203
+ for (let k = start; k < vlen; k++) {
1204
+ peq[b.charCodeAt(k)] = 0;
1205
+ }
1206
+ }
1207
+ let mv = 0;
1208
+ let pv = -1;
1209
+ const start = j * 32;
1210
+ const vlen = Math.min(32, m - start) + start;
1211
+ for (let k = start; k < vlen; k++) {
1212
+ peq[b.charCodeAt(k)] |= 1 << k;
1213
+ }
1214
+ let score = m;
1215
+ for (let i = 0; i < n; i++) {
1216
+ const eq = peq[a.charCodeAt(i)];
1217
+ const pb = (phc[(i / 32) | 0] >>> i) & 1;
1218
+ const mb = (mhc[(i / 32) | 0] >>> i) & 1;
1219
+ const xv = eq | mv;
1220
+ const xh = ((((eq | mb) & pv) + pv) ^ pv) | eq | mb;
1221
+ let ph = mv | ~(xh | pv);
1222
+ let mh = pv & xh;
1223
+ score += (ph >>> (m - 1)) & 1;
1224
+ score -= (mh >>> (m - 1)) & 1;
1225
+ if ((ph >>> 31) ^ pb) {
1226
+ phc[(i / 32) | 0] ^= 1 << i;
1227
+ }
1228
+ if ((mh >>> 31) ^ mb) {
1229
+ mhc[(i / 32) | 0] ^= 1 << i;
1230
+ }
1231
+ ph = (ph << 1) | pb;
1232
+ mh = (mh << 1) | mb;
1233
+ pv = mh | ~(xv | ph);
1234
+ mv = ph & xv;
1235
+ }
1236
+ for (let k = start; k < vlen; k++) {
1237
+ peq[b.charCodeAt(k)] = 0;
1238
+ }
1239
+ return score;
1240
+ };
1241
+ const distance = (a, b) => {
1242
+ if (a.length < b.length) {
1243
+ const tmp = b;
1244
+ b = a;
1245
+ a = tmp;
1246
+ }
1247
+ if (b.length === 0) {
1248
+ return a.length;
1249
+ }
1250
+ if (a.length <= 32) {
1251
+ return myers_32(a, b);
1252
+ }
1253
+ return myers_x(a, b);
1254
+ };
1255
+
1256
+ /**
1257
+ * Finds the n closest matches to a target string from an array of strings using Levenshtein distance.
1258
+ *
1259
+ * @param target - The string to find matches for
1260
+ * @param candidates - Array of candidate strings to search through
1261
+ * @param n - Number of closest matches to return (defaults to 1)
1262
+ * @returns Array of the n closest matches, sorted by distance (closest first)
1263
+ *
1264
+ * @example
1265
+ * ```typescript
1266
+ * const candidates = ['apple', 'banana', 'orange', 'grape'];
1267
+ * const matches = findClosestMatch('aple', candidates, 2);
1268
+ * // Returns: ['apple', 'grape'] (assuming these are the 2 closest matches)
1269
+ * ```
1270
+ */
1271
+ function findClosestMatch(target, candidates, n = 1) {
1272
+ if (candidates.length === 0) {
1273
+ return [];
1274
+ }
1275
+ if (n <= 0) {
1276
+ return [];
1277
+ }
1278
+ // Calculate distances for all candidates
1279
+ const distances = candidates.map((candidate, index) => ({
1280
+ candidate,
1281
+ distance: distance(target, candidate),
1282
+ index,
1283
+ }));
1284
+ // Sort by distance (ascending) and then by original index for stable sorting
1285
+ distances.sort((a, b) => {
1286
+ if (a.distance !== b.distance) {
1287
+ return a.distance - b.distance;
1288
+ }
1289
+ return a.index - b.index;
1290
+ });
1291
+ // Return the n closest matches
1292
+ return distances.slice(0, n).map((item) => item.candidate);
1293
+ }
1294
+
1295
+ /**
1296
+ * Quotes a string with single quotes and escapes single quotes.
1297
+ * @param value - The string to quote.
1298
+ * @returns The quoted string.
1299
+ */
1300
+ function quot(value) {
1301
+ return `'${value.replaceAll("'", String.raw `\'`)}'`;
1302
+ }
1303
+ /**
1304
+ * Quotes a string with double quotes and escapes double quotes.
1305
+ * @param value - The string to quote.
1306
+ * @returns The quoted string.
1307
+ */
1308
+ function doubleQuot(value) {
1309
+ return `"${value.replaceAll('"', String.raw `\"`)}"`;
1310
+ }
1311
+
1312
+ let random = bytes => crypto.getRandomValues(new Uint8Array(bytes));
1313
+ let customRandom = (alphabet, defaultSize, getRandom) => {
1314
+ let mask = (2 << Math.log2(alphabet.length - 1)) - 1;
1315
+ let step = -~((1.6 * mask * defaultSize) / alphabet.length);
1316
+ return (size = defaultSize) => {
1317
+ let id = '';
1318
+ while (true) {
1319
+ let bytes = getRandom(step);
1320
+ let j = step | 0;
1321
+ while (j--) {
1322
+ id += alphabet[bytes[j] & mask] || '';
1323
+ if (id.length >= size) return id
1324
+ }
1325
+ }
1326
+ }
1327
+ };
1328
+ let customAlphabet = (alphabet, size = 21) =>
1329
+ customRandom(alphabet, size | 0, random);
1330
+
1331
+ const NUMBERS = '0123456789';
1332
+ const LOWERCASE = 'abcdefghijklmnopqrstuvwxyz';
1333
+ const UPPERCASE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
1334
+ /**
1335
+ * Use custom ID generator for characters that be easily selected
1336
+ */
1337
+ const customNanoid = customAlphabet(`${NUMBERS}${LOWERCASE}${UPPERCASE}_`, 12);
1338
+ /**
1339
+ * Generate a random key string made up of numbers, lowercase, and uppercase letters
1340
+ * @returns A random key string
1341
+ */
1342
+ function randomKey(length = 12) {
1343
+ return customNanoid(length);
1344
+ }
1345
+
1346
+ class ToposortCyclicalDependencyError extends Error {
1347
+ cyclePath;
1348
+ constructor(nodes) {
1349
+ super(`Cyclical dependency detected: ${nodes.map((n) => JSON.stringify(n)).join(' -> ')}`);
1350
+ this.name = 'ToposortCyclicalDependencyError';
1351
+ this.cyclePath = nodes; // Store the path for potential inspection
1352
+ }
1353
+ }
1354
+ class ToposortUnknownNodeError extends Error {
1355
+ unknownNode;
1356
+ constructor(node) {
1357
+ super(`Unknown node referenced in edges: ${JSON.stringify(node)}`);
1358
+ this.name = 'ToposortUnknownNodeError';
1359
+ this.unknownNode = node; // Store the node for potential inspection
1360
+ }
1361
+ }
1362
+
1363
+ /**
1364
+ * Creates a map of inbound edges from node indices to their source indices
1365
+ */
1366
+ function makeInboundEdges(nodes, edgeArr) {
1367
+ const inboundEdgesMap = new Map();
1368
+ for (const edge of edgeArr) {
1369
+ const [source, target] = edge;
1370
+ const sourceIndex = nodes.get(source);
1371
+ const targetIndex = nodes.get(target);
1372
+ // Check both source and target exist in the provided nodes set
1373
+ if (sourceIndex === undefined)
1374
+ throw new ToposortUnknownNodeError(source);
1375
+ if (targetIndex === undefined)
1376
+ throw new ToposortUnknownNodeError(target);
1377
+ const targetEdges = inboundEdgesMap.get(targetIndex);
1378
+ if (targetEdges) {
1379
+ targetEdges.add(sourceIndex);
1380
+ }
1381
+ else {
1382
+ inboundEdgesMap.set(targetIndex, new Set([sourceIndex]));
1383
+ }
1384
+ }
1385
+ return inboundEdgesMap;
1386
+ }
1387
+ /**
1388
+ * Creates a map of node indices to their out-degree
1389
+ */
1390
+ function makeNodeOutDegrees(inboundEdgesMap, nodeLength) {
1391
+ const nodeOutDegrees = Array.from({ length: nodeLength }, () => 0);
1392
+ for (const [, sources] of inboundEdgesMap.entries()) {
1393
+ for (const source of sources) {
1394
+ nodeOutDegrees[source]++;
1395
+ }
1396
+ }
1397
+ return nodeOutDegrees;
1398
+ }
1399
+ /**
1400
+ * Detects a cycle in a graph and returns the path of the first cycle found.
1401
+ */
1402
+ function detectCycle$1(nodes,
1403
+ // Set of nodes already processed by a prior algorithm (e.g., a topological sort).
1404
+ // This function will only search for cycles among the remaining nodes.
1405
+ initialVisited, edges) {
1406
+ // Tracks nodes visited by ANY DFS traversal within this function.
1407
+ const cycleCheckVisited = new Set();
1408
+ for (let i = 0; i < nodes.length; i++) {
1409
+ if (!initialVisited.has(i) && !cycleCheckVisited.has(i)) {
1410
+ const path = [];
1411
+ const recursionStack = new Set();
1412
+ const cyclePath = dfs(i, path, recursionStack);
1413
+ if (cyclePath) {
1414
+ // A cycle was found, convert indices to nodes and return immediately.
1415
+ return cyclePath.map((idx) => nodes[idx]);
1416
+ }
1417
+ }
1418
+ }
1419
+ // No cycles were found in any of the graph's components.
1420
+ return [];
1421
+ /**
1422
+ * Performs a DFS from a starting node to find a cycle.
1423
+ * @returns The cycle path as an array of indices if found, otherwise null.
1424
+ */
1425
+ function dfs(node, path, recursionStack) {
1426
+ path.push(node);
1427
+ recursionStack.add(node);
1428
+ cycleCheckVisited.add(node);
1429
+ const neighbors = edges.get(node) ?? new Set();
1430
+ for (const neighbor of neighbors) {
1431
+ if (recursionStack.has(neighbor)) {
1432
+ const cycleStartIndex = path.indexOf(neighbor);
1433
+ const cycle = path.slice(cycleStartIndex);
1434
+ cycle.push(neighbor);
1435
+ return cycle;
1436
+ }
1437
+ // If the neighbor hasn't been visited by any DFS run yet, recurse.
1438
+ if (!cycleCheckVisited.has(neighbor)) {
1439
+ const result = dfs(neighbor, path, recursionStack);
1440
+ if (result) {
1441
+ // A cycle was found deeper in the traversal; propagate the result up.
1442
+ return result;
1443
+ }
1444
+ }
1445
+ }
1446
+ // Backtrack: No cycle found from this node.
1447
+ recursionStack.delete(node);
1448
+ path.pop();
1449
+ return null;
1450
+ }
1451
+ }
1452
+ /**
1453
+ * Default comparison function for stable topological sort
1454
+ */
1455
+ function defaultCompareFunc$1(a, b) {
1456
+ if (typeof a === 'string' && typeof b === 'string') {
1457
+ return compareStrings(a, b);
1458
+ }
1459
+ if (a === b)
1460
+ return 0;
1461
+ return a < b ? -1 : 1;
1462
+ }
1463
+ /**
1464
+ * Performs a locality-based topological sort on a directed acyclic graph.
1465
+ *
1466
+ * This is a variant of Kahn's algorithm that starts from nodes with no outbound edges first,
1467
+ * and then works its way back.
1468
+ *
1469
+ * This is useful for tasks where we want to process nodes in a way that is consistent with their locality in the graph
1470
+ * such as sorting fragments of a generated code file that depend on each other.
1471
+ *
1472
+ * @param nodes - The nodes to sort
1473
+ * @param edges - The edges of the graph
1474
+ * @param options - Optional options for the topological sort
1475
+ * @returns The sorted nodes
1476
+ */
1477
+ function toposortLocal(nodes, edges, options = {}) {
1478
+ const { compareFunc = defaultCompareFunc$1 } = options;
1479
+ const compareIdx = (a, b) => compareFunc(nodes[a], nodes[b]);
1480
+ // Map each node to its index
1481
+ const nodeIndexMap = new Map(nodes.map((node, index) => [node, index]));
1482
+ // Create a map of outgoing edges from each node
1483
+ const inboundEdgesMap = makeInboundEdges(nodeIndexMap, edges);
1484
+ const nodeOutDegrees = makeNodeOutDegrees(inboundEdgesMap, nodes.length);
1485
+ // Create a stack of nodes with no incoming edges (in-degree == 0)
1486
+ // We use a stack so that the most recently added nodes are processed first
1487
+ const zeroOutDegreeStack = [];
1488
+ for (const [i, nodeOutDegree] of nodeOutDegrees.entries()) {
1489
+ if (nodeOutDegree === 0) {
1490
+ zeroOutDegreeStack.push(i);
1491
+ }
1492
+ }
1493
+ zeroOutDegreeStack.sort(compareIdx);
1494
+ const reverseResult = [];
1495
+ const visited = new Set();
1496
+ // Process nodes in BFS order
1497
+ while (zeroOutDegreeStack.length > 0) {
1498
+ const current = zeroOutDegreeStack.pop();
1499
+ if (current === undefined)
1500
+ break;
1501
+ visited.add(current);
1502
+ reverseResult.push(nodes[current]);
1503
+ // Process all outgoing edges from the current node
1504
+ const incomingEdges = inboundEdgesMap.get(current);
1505
+ const newZeroOutDegreeNodes = [];
1506
+ if (incomingEdges) {
1507
+ for (const source of incomingEdges) {
1508
+ nodeOutDegrees[source]--;
1509
+ // If the target node now has no incoming edges, add it to the queue
1510
+ if (nodeOutDegrees[source] === 0) {
1511
+ newZeroOutDegreeNodes.push(source);
1512
+ }
1513
+ }
1514
+ }
1515
+ newZeroOutDegreeNodes.sort(compareIdx);
1516
+ zeroOutDegreeStack.push(...newZeroOutDegreeNodes);
1517
+ }
1518
+ // Check for cycles
1519
+ if (reverseResult.length !== nodes.length) {
1520
+ const cyclePath = detectCycle$1(nodes, visited, inboundEdgesMap);
1521
+ throw new ToposortCyclicalDependencyError(cyclePath.toReversed());
1522
+ }
1523
+ return reverseResult.toReversed();
1524
+ }
1525
+
1526
+ class TinyQueue {
1527
+ constructor(data = [], compare = (a, b) => (a < b ? -1 : a > b ? 1 : 0)) {
1528
+ this.data = data;
1529
+ this.length = this.data.length;
1530
+ this.compare = compare;
1531
+
1532
+ if (this.length > 0) {
1533
+ for (let i = (this.length >> 1) - 1; i >= 0; i--) this._down(i);
1534
+ }
1535
+ }
1536
+
1537
+ push(item) {
1538
+ this.data.push(item);
1539
+ this._up(this.length++);
1540
+ }
1541
+
1542
+ pop() {
1543
+ if (this.length === 0) return undefined;
1544
+
1545
+ const top = this.data[0];
1546
+ const bottom = this.data.pop();
1547
+
1548
+ if (--this.length > 0) {
1549
+ this.data[0] = bottom;
1550
+ this._down(0);
1551
+ }
1552
+
1553
+ return top;
1554
+ }
1555
+
1556
+ peek() {
1557
+ return this.data[0];
1558
+ }
1559
+
1560
+ _up(pos) {
1561
+ const {data, compare} = this;
1562
+ const item = data[pos];
1563
+
1564
+ while (pos > 0) {
1565
+ const parent = (pos - 1) >> 1;
1566
+ const current = data[parent];
1567
+ if (compare(item, current) >= 0) break;
1568
+ data[pos] = current;
1569
+ pos = parent;
1570
+ }
1571
+
1572
+ data[pos] = item;
1573
+ }
1574
+
1575
+ _down(pos) {
1576
+ const {data, compare} = this;
1577
+ const halfLength = this.length >> 1;
1578
+ const item = data[pos];
1579
+
1580
+ while (pos < halfLength) {
1581
+ let bestChild = (pos << 1) + 1; // initially it is the left child
1582
+ const right = bestChild + 1;
1583
+
1584
+ if (right < this.length && compare(data[right], data[bestChild]) < 0) {
1585
+ bestChild = right;
1586
+ }
1587
+ if (compare(data[bestChild], item) >= 0) break;
1588
+
1589
+ data[pos] = data[bestChild];
1590
+ pos = bestChild;
1591
+ }
1592
+
1593
+ data[pos] = item;
1594
+ }
1595
+ }
1596
+
1597
+ /**
1598
+ * Creates a map of outgoing edges from node indices to their target indices
1599
+ */
1600
+ function makeOutgoingEdges(nodes, edgeArr) {
1601
+ const outgoingEdgesMap = new Map();
1602
+ for (const edge of edgeArr) {
1603
+ const [source, target] = edge;
1604
+ const sourceIndex = nodes.get(source);
1605
+ const targetIndex = nodes.get(target);
1606
+ // Check both source and target exist in the provided nodes set
1607
+ if (sourceIndex === undefined)
1608
+ throw new ToposortUnknownNodeError(source);
1609
+ if (targetIndex === undefined)
1610
+ throw new ToposortUnknownNodeError(target);
1611
+ const sourceEdges = outgoingEdgesMap.get(sourceIndex);
1612
+ if (sourceEdges) {
1613
+ sourceEdges.add(targetIndex);
1614
+ }
1615
+ else {
1616
+ outgoingEdgesMap.set(sourceIndex, new Set([targetIndex]));
1617
+ }
1618
+ }
1619
+ return outgoingEdgesMap;
1620
+ }
1621
+ /**
1622
+ * Creates a map of node indices to their in-degree
1623
+ */
1624
+ function makeNodeInDegrees(outgoingEdgesMap, nodeLength) {
1625
+ const nodeInDegrees = Array.from({ length: nodeLength }, () => 0);
1626
+ for (const [, targets] of outgoingEdgesMap.entries()) {
1627
+ for (const target of targets) {
1628
+ nodeInDegrees[target]++;
1629
+ }
1630
+ }
1631
+ return nodeInDegrees;
1632
+ }
1633
+ /**
1634
+ * Detects cycles in a graph by checking if all nodes are included in the topological sort
1635
+ */
1636
+ function detectCycle(nodes, visited, edges) {
1637
+ // If all nodes were visited, no cycle exists
1638
+ if (visited.size === nodes.length) {
1639
+ return [];
1640
+ }
1641
+ // Run DFS from any unvisited node to find a cycle
1642
+ const path = [];
1643
+ const visitSet = new Set();
1644
+ function dfs(node) {
1645
+ if (visitSet.has(node)) {
1646
+ path.push(node);
1647
+ return true;
1648
+ }
1649
+ if (visited.has(node)) {
1650
+ return false;
1651
+ }
1652
+ visitSet.add(node);
1653
+ path.push(node);
1654
+ const neighbors = edges.get(node) ?? new Set();
1655
+ for (const neighbor of neighbors) {
1656
+ if (dfs(neighbor)) {
1657
+ return true;
1658
+ }
1659
+ }
1660
+ path.pop();
1661
+ visitSet.delete(node);
1662
+ return false;
1663
+ }
1664
+ // For cycle detection, we need to try all unvisited nodes
1665
+ for (let i = 0; i < nodes.length; i++) {
1666
+ if (!visited.has(i)) {
1667
+ // Reset path and visitSet for each starting node
1668
+ path.length = 0;
1669
+ visitSet.clear();
1670
+ const cycleFound = dfs(i);
1671
+ if (cycleFound) {
1672
+ // Convert path indices to actual nodes
1673
+ return path.map((idx) => nodes[idx]);
1674
+ }
1675
+ }
1676
+ }
1677
+ return [];
1678
+ }
1679
+ /**
1680
+ * Default comparison function for stable topological sort
1681
+ */
1682
+ function defaultCompareFunc(a, b) {
1683
+ if (typeof a === 'string' && typeof b === 'string') {
1684
+ return compareStrings(a, b);
1685
+ }
1686
+ if (a === b)
1687
+ return 0;
1688
+ return a < b ? -1 : 1;
1689
+ }
1690
+ /**
1691
+ * Performs a topological sort on a directed acyclic graph.
1692
+ *
1693
+ * @param nodes - The nodes to sort
1694
+ * @param edges - The edges of the graph
1695
+ * @param options - Optional options for the topological sort
1696
+ * @returns The sorted nodes
1697
+ */
1698
+ function toposort(nodes, edges, options = {}) {
1699
+ const { compareFunc } = options;
1700
+ // Map each node to its index
1701
+ const nodeIndexMap = new Map(nodes.map((node, index) => [node, index]));
1702
+ // Create a map of outgoing edges from each node
1703
+ const outgoingEdgesMap = makeOutgoingEdges(nodeIndexMap, edges);
1704
+ const nodeInDegrees = makeNodeInDegrees(outgoingEdgesMap, nodes.length);
1705
+ // Create a queue of nodes with no incoming edges (in-degree == 0)
1706
+ const zeroInDegreeQueue = compareFunc
1707
+ ? new TinyQueue([], (a, b) => compareFunc(nodes[a], nodes[b]))
1708
+ : [];
1709
+ for (const [i, nodeInDegree] of nodeInDegrees.entries()) {
1710
+ if (nodeInDegree === 0) {
1711
+ zeroInDegreeQueue.push(i);
1712
+ }
1713
+ }
1714
+ const result = [];
1715
+ const visited = new Set();
1716
+ // Process nodes in BFS order
1717
+ while (zeroInDegreeQueue.length > 0) {
1718
+ const current = zeroInDegreeQueue.pop();
1719
+ if (current === undefined)
1720
+ break;
1721
+ visited.add(current);
1722
+ result.push(nodes[current]);
1723
+ // Process all outgoing edges from the current node
1724
+ const outgoingEdges = outgoingEdgesMap.get(current);
1725
+ if (outgoingEdges) {
1726
+ for (const target of outgoingEdges) {
1727
+ nodeInDegrees[target]--;
1728
+ // If the target node now has no incoming edges, add it to the queue
1729
+ if (nodeInDegrees[target] === 0) {
1730
+ zeroInDegreeQueue.push(target);
1731
+ }
1732
+ }
1733
+ }
1734
+ }
1735
+ // Check for cycles
1736
+ if (result.length !== nodes.length) {
1737
+ const cyclePath = detectCycle(nodes, visited, outgoingEdgesMap);
1738
+ throw new ToposortCyclicalDependencyError(cyclePath);
1739
+ }
1740
+ return result;
1741
+ }
1742
+ /**
1743
+ * Performs a topological sort on a directed acyclic graph, always selecting
1744
+ * the smallest available node according to the provided comparison function,
1745
+ * yielding the lexicographically minimal ordering.
1746
+ *
1747
+ * @param nodes - The nodes to sort
1748
+ * @param edges - The edges of the graph
1749
+ * @param compareFunc - Optional custom comparison function to break ties between nodes with the same topological level (default is string comparison)
1750
+ * @returns The sorted nodes
1751
+ */
1752
+ function toposortOrdered(nodes, edges, compareFunc = defaultCompareFunc) {
1753
+ return toposort(nodes, edges, { compareFunc });
1754
+ }
1755
+
1756
+ /**
1757
+ * Type guard to check if a value is not null or undefined.
1758
+ */
1759
+ function notEmpty(value) {
1760
+ return value !== null && value !== undefined;
1761
+ }
1762
+
1763
+ const {z: z$1} = await importShared('zod');
1764
+
1765
+ /**
1766
+ * Regex for validating kebab case, e.g. "my-project".
1767
+ */
1768
+ const KEBAB_CASE_REGEX = /^[a-z0-9-]+$/;
1769
+ /**
1770
+ * Regex for validating pascal case, e.g. "MyProject".
1771
+ */
1772
+ const PASCAL_CASE_REGEX = /^[A-Z][a-zA-Z0-9]*$/;
1773
+ /**
1774
+ * Regex for validating camel case, e.g. "myProject".
1775
+ */
1776
+ const CAMEL_CASE_REGEX = /^[a-z][a-zA-Z0-9]*$/;
1777
+ /**
1778
+ * Regex for validating constant case, e.g. "MY_PROJECT".
1779
+ */
1780
+ const CONSTANT_CASE_REGEX = /^[A-Z][A-Z0-9_]*$/;
1781
+ const CASE_VALIDATORS = {
1782
+ /**
1783
+ * Zod validator for validating kebab case, e.g. "my-project".
1784
+ */
1785
+ KEBAB_CASE: z$1.string().regex(KEBAB_CASE_REGEX, {
1786
+ message: 'Must be kebab case (e.g. "my-project")',
1787
+ }),
1788
+ /**
1789
+ * Zod validator for validating pascal case, e.g. "MyProject".
1790
+ */
1791
+ PASCAL_CASE: z$1.string().regex(PASCAL_CASE_REGEX, {
1792
+ message: 'Must be pascal case (e.g. "MyProject")',
1793
+ }),
1794
+ /**
1795
+ * Zod validator for validating camel case, e.g. "myProject".
1796
+ */
1797
+ CAMEL_CASE: z$1.string().regex(CAMEL_CASE_REGEX, {
1798
+ message: 'Must be camel case (e.g. "myProject")',
1799
+ }),
1800
+ /**
1801
+ * Zod validator for validating constant case, e.g. "MY_PROJECT".
1802
+ */
1803
+ CONSTANT_CASE: z$1.string().regex(CONSTANT_CASE_REGEX, {
1804
+ message: 'Must be constant case (e.g. "MY_PROJECT")',
1805
+ }),
1806
+ };
1807
+
1808
+ const {z} = await importShared('zod');
1809
+
1810
+ /**
1811
+ * Zod validator for a positive integer.
1812
+ */
1813
+ const POSITIVE_INT = z.int().positive();
1814
+ /**
1815
+ * Zod number validators.
1816
+ */
1817
+ const NUMBER_VALIDATORS = {
1818
+ POSITIVE_INT,
1819
+ };
1820
+
1821
+ export { ArrayContainer, CAMEL_CASE_REGEX, CASE_VALIDATORS, CONSTANT_CASE_REGEX, FieldMapSchemaBuilder, KEBAB_CASE_REGEX, MapContainer, MapOfMapsContainer, NUMBER_VALIDATORS, NamedArrayFieldContainer, NamedArrayToMapFieldContainer, ObjectContainer, PASCAL_CASE_REGEX, ScalarContainer, ToposortCyclicalDependencyError, ToposortUnknownNodeError, TypedEventEmitter, assertNoDuplicates, compareStrings, convertCaseWithPrefix, createFieldMap, createFieldMapSchemaBuilder, createTypedEventEmitter, differenceSet, doubleQuot, enhanceErrorWithContext, findClosestMatch, hashWithSHA256, immutableSet, jsonDeepClone, lowercaseFirstChar, mapGroupBy, mapKeyBy, mapValuesOfMap, notEmpty, quot, randomKey, safeMerge, safeMergeAll, safeMergeAllWithOptions, safeMergeMap, safeMergeMaps, safeMergeMapsWithOptions, sortKeysRecursive, sortObjectKeys, stringifyPrettyCompact, stringifyPrettyStable, toposort, toposortLocal, toposortOrdered, uppercaseFirstChar };
1822
+ //# sourceMappingURL=utils-0-N5BG4T.js.map