@baseplate-dev/plugin-auth 0.6.12 → 0.6.14

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 (158) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +14 -0
  3. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +14 -0
  4. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +7 -0
  5. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +7 -0
  6. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +14 -0
  7. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +14 -0
  8. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +7 -0
  9. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +14 -0
  10. package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +7 -0
  11. package/dist/better-auth/constants/packages.d.ts +1 -1
  12. package/dist/better-auth/constants/packages.js +1 -1
  13. package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.d.ts +1 -0
  14. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.d.ts +2 -0
  15. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.d.ts +1 -0
  16. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.d.ts +1 -0
  17. package/dist/better-auth/generators/fastify/better-auth-email-templates/better-auth-email-templates.generator.d.ts +1 -0
  18. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.d.ts +4 -0
  19. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.d.ts +1 -0
  20. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.d.ts +3 -0
  21. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts +43 -6
  22. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +21 -2
  23. package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +46 -10
  24. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +18 -2
  25. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js +6 -2
  26. package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts +24 -6
  27. package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js +8 -5
  28. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts +20 -4
  29. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js +10 -5
  30. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/plugins/better-auth.plugin.ts +7 -4
  31. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +76 -59
  32. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/user-session.service.ts +58 -46
  33. package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +7 -0
  34. package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +42 -0
  35. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +7 -0
  36. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +70 -0
  37. package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +14 -0
  38. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +7 -0
  39. package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +7 -0
  40. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +7 -0
  41. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +14 -0
  42. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +14 -0
  43. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +7 -0
  44. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +7 -0
  45. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +14 -0
  46. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +14 -0
  47. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +7 -0
  48. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +14 -0
  49. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +7 -0
  50. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +7 -23
  51. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +28 -66
  52. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +7 -23
  53. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +2 -8
  54. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +35 -66
  55. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +1 -5
  56. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts +2 -2
  57. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +2 -2
  58. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +8 -4
  59. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts +3 -3
  60. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +4 -3
  61. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +9 -6
  62. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +2 -3
  63. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +5 -3
  64. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts +1 -0
  65. package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts +4 -0
  66. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts +1 -0
  67. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts +3 -0
  68. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +62 -8
  69. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +21 -11
  70. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +152 -10
  71. package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +1 -0
  72. package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +1 -0
  73. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +52 -2
  74. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +14 -4
  75. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts +9 -3
  76. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js +6 -3
  77. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +102 -8
  78. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +19 -5
  79. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.d.ts +0 -4
  80. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.js +2 -15
  81. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.ts +2 -16
  82. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.worker.d.ts +6 -0
  83. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.worker.js +18 -0
  84. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.worker.ts +22 -0
  85. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js +1 -2
  86. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +4 -2
  87. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts +0 -1
  88. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js +0 -1
  89. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.ts +0 -2
  90. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +9 -0
  91. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +52 -0
  92. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +9 -0
  93. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +77 -0
  94. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +1 -1
  95. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +1 -1
  96. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +1 -1
  97. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +1 -1
  98. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +2 -2
  99. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +2 -2
  100. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js +1 -1
  101. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.tsx +1 -1
  102. package/dist/local-auth/core/generators/react-session/generated/index.d.ts +14 -0
  103. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +7 -0
  104. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +14 -0
  105. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +7 -0
  106. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts +2 -2
  107. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts +10 -2
  108. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js +8 -5
  109. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.js +1 -1
  110. package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.d.ts +3 -1
  111. package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.js +2 -1
  112. package/dist/placeholder-auth/core/generators/placeholder-auth-module/{auth-module.generator.d.ts → placeholder-auth-module.generator.d.ts} +20 -3
  113. package/dist/placeholder-auth/core/generators/placeholder-auth-module/{auth-module.generator.js → placeholder-auth-module.generator.js} +16 -1
  114. package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.d.ts +5 -21
  115. package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.js +17 -26
  116. package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.ts +21 -31
  117. package/dist/web/assets/{_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-Bd_uRhIr.js → _virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-3sV-KVGF.js} +89 -73
  118. package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-BX1_Ngjt.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-0m3QgjSy.js} +50 -13
  119. package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-CQuBII8a.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-QrOyqu9V.js} +50 -14
  120. package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-DsLoA9K7.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-BTSgZGcl.js} +6932 -6106
  121. package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CGsbw2Lx.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CJ027_El.js} +72 -151
  122. package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-DE4UUe5K.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js} +30 -247
  123. package/dist/web/assets/auth-D8BnFQKk.js +1 -0
  124. package/dist/web/assets/{common-CLtpg163.js → common-7-ZtKO5B.js} +3 -3
  125. package/dist/web/assets/{common-ooa00sM_.js → common-Aq-HXybV.js} +6 -6
  126. package/dist/web/assets/{common-C0Hur22D.js → common-B8N9gx2s.js} +4 -4
  127. package/dist/web/assets/{common-BFKR_7HQ.js → common-BPbNs2A1.js} +6 -6
  128. package/dist/web/assets/{common-CTYcv1u_.js → common-B_XZ3l9w.js} +3 -3
  129. package/dist/web/assets/{common-B8Z1_D6-.js → common-CDrUdhRf.js} +4 -4
  130. package/dist/web/assets/{dist-DicVrB_Z.js → dist-D3CkiDKT.js} +387 -262
  131. package/dist/web/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-CtbvyMZJ.js → dist-SBfmsOB2.js} +43 -359
  132. package/dist/web/assets/{get-auth-plugin-definition-DBdchbBZ.js → get-auth-plugin-definition-D3ocnNxw.js} +2 -2
  133. package/dist/web/assets/hostInit-D3RxwboF.js +99 -0
  134. package/dist/web/assets/{index-CR54yoeW.js → index-CozZxQl1.js} +2 -2
  135. package/dist/web/assets/{mf-entry-bootstrap-0-4f84e81c.js → mf-entry-bootstrap-0-069a3ab2.js} +5 -2
  136. package/dist/web/assets/{model-utils-CQpTF3uf.js → model-utils-CYaLYwoX.js} +48 -14
  137. package/dist/web/assets/{models-Bc3L4Vsl.js → models-BX4xFiEn.js} +3 -3
  138. package/dist/web/assets/{models-BIKzGkW3.js → models-k-iaCft-.js} +3 -3
  139. package/dist/web/assets/{plugin-definition-33i4r91s.js → plugin-definition-BI565qFo.js} +3 -3
  140. package/dist/web/assets/{plugin-definition-BhNnSvrD.js → plugin-definition-CI1aEVGv.js} +3 -3
  141. package/dist/web/assets/{styles-BT_OTXuv.js → styles-f4jHVv0S.js} +15 -12
  142. package/dist/web/assets/{virtualExposes-B_hX31Ln.js → virtualExposes-BHQhgLE-.js} +1 -1
  143. package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-aH8n-Nbe.js +259 -0
  144. package/dist/web/assets/{virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-BVNjo6R7.js → virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-I_SxfvGj.js} +13 -13
  145. package/dist/web/assets/{virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-B_7IVc8D.js → virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-BQ0UMKSv.js} +50 -15
  146. package/dist/web/assets/{web-Dso6eI9u.js → web-BRvS0HRS.js} +17 -17
  147. package/dist/web/assets/{web-aKoJoBnQ.js → web-CkbTu31Q.js} +16 -16
  148. package/dist/web/assets/{web-DYbNyLPi.js → web-Cn3uvuFs.js} +35 -35
  149. package/dist/web/assets/{web-BDeHApaZ.js → web-DCK_tLVa.js} +31 -18
  150. package/dist/web/assets/{web-BXB-pvWJ.js → web-Dh6pUTrF.js} +20 -20
  151. package/dist/web/assets/{web-CJlCNegu.js → web-YXVJWeXy.js} +3 -3
  152. package/dist/web/assets/{web-BC9MejP0.js → web-nLSlkJy_.js} +3 -3
  153. package/dist/web/index.html +2 -2
  154. package/dist/web/remoteEntry.js +1 -1
  155. package/dist/web/remoteEntry.ssr.js +1 -1
  156. package/package.json +26 -26
  157. package/dist/web/assets/auth-DS8ZnZZr.js +0 -1
  158. package/dist/web/assets/hostInit-CDVLjNbq.js +0 -119
@@ -1,4 +1,4 @@
1
- import { p as __mf_26 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-BX1_Ngjt.js";
1
+ import { f as __mf_26 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-0m3QgjSy.js";
2
2
  //#region src/auth/utils/get-auth-plugin-definition.ts
3
3
  /**
4
4
  * Get the auth plugin definition from the project definition.
@@ -11,4 +11,4 @@ function getAuthPluginDefinition(definition) {
11
11
  //#endregion
12
12
  export { getAuthPluginDefinition as t };
13
13
 
14
- //# sourceMappingURL=get-auth-plugin-definition-DBdchbBZ.js.map
14
+ //# sourceMappingURL=get-auth-plugin-definition-D3ocnNxw.js.map
@@ -0,0 +1,99 @@
1
+ import { t as __vitePreload } from "./vite-preload-helper-iIio8xkS.js";
2
+ //#region \0virtual:mf:__mfe_internal__plugin_mf_2_auth__H_A_I__hostAutoInit__H_A_I__.js
3
+ var __mfCacheGlobalKey = "__mf_module_cache__";
4
+ globalThis[__mfCacheGlobalKey] ||= {
5
+ share: {},
6
+ remote: {}
7
+ };
8
+ globalThis[__mfCacheGlobalKey].share ||= {};
9
+ globalThis[__mfCacheGlobalKey].remote ||= {};
10
+ var __mfModuleCache = globalThis[__mfCacheGlobalKey];
11
+ for (const __mfShareKey of Object.keys(__mfModuleCache.share)) if (__mfShareKey.startsWith("default:")) {
12
+ const __mfLegacyShareKey = __mfShareKey.slice(8);
13
+ if (__mfModuleCache.share[__mfLegacyShareKey] === void 0) __mfModuleCache.share[__mfLegacyShareKey] = __mfModuleCache.share[__mfShareKey];
14
+ } else if (!__mfShareKey.includes(":")) {
15
+ const __mfDefaultShareKey = "default:" + __mfShareKey;
16
+ if (__mfModuleCache.share[__mfDefaultShareKey] === void 0) __mfModuleCache.share[__mfDefaultShareKey] = __mfModuleCache.share[__mfShareKey];
17
+ }
18
+ var hostInitPromise;
19
+ async function initHost() {
20
+ if (!hostInitPromise) hostInitPromise = (async () => {
21
+ const __mfGetSharedCacheDescriptor = (pkg, singleton, version, scope) => {
22
+ const scopeName = (Array.isArray(scope) ? scope[0] : scope) || "default";
23
+ const id = singleton || !version ? pkg : pkg + "@" + version;
24
+ const descriptor = { canonical: scopeName + ":" + id };
25
+ if (scopeName === "default") descriptor.aliases = [id];
26
+ return descriptor;
27
+ };
28
+ const __mfReadSharedCache = (cache, descriptor) => {
29
+ const value = cache[descriptor.canonical];
30
+ if (value !== void 0) return value;
31
+ const aliases = descriptor.aliases || [];
32
+ for (const alias of aliases) {
33
+ const aliasValue = cache[alias];
34
+ if (aliasValue !== void 0) {
35
+ cache[descriptor.canonical] = aliasValue;
36
+ return aliasValue;
37
+ }
38
+ }
39
+ };
40
+ const __mfWriteSharedCache = (cache, descriptor, value) => {
41
+ cache[descriptor.canonical] = value;
42
+ const aliases = descriptor.aliases || [];
43
+ for (const alias of aliases) if (cache[alias] === void 0) cache[alias] = value;
44
+ return value;
45
+ };
46
+ const runtime = await (await __vitePreload(() => import("../remoteEntry.js"), [], import.meta.url)).init();
47
+ const { usedShared } = await __vitePreload(async () => {
48
+ const { usedShared } = await import("./_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-3sV-KVGF.js");
49
+ return { usedShared };
50
+ }, [], import.meta.url);
51
+ const __mfNormalizeRuntimeShare = (mod) => {
52
+ let current = mod;
53
+ for (let i = 0; i < 5; i++) {
54
+ const defaultExport = current?.default;
55
+ if (!defaultExport || typeof defaultExport !== "object" || Object.keys(defaultExport).length === 0) break;
56
+ const namedValues = Object.keys(current).filter((key) => key !== "default").map((key) => current[key]);
57
+ if (namedValues.length > 0 && namedValues.some((value) => value !== void 0)) break;
58
+ current = defaultExport;
59
+ }
60
+ return current;
61
+ };
62
+ const __mfHostInitShareOrder = [
63
+ "react",
64
+ "react-dom",
65
+ "zod",
66
+ "@baseplate-dev/ui-components",
67
+ "@baseplate-dev/project-builder-lib/web",
68
+ "@baseplate-dev/project-builder-lib",
69
+ "@tanstack/react-router"
70
+ ].concat(Object.keys(usedShared).filter((pkg) => ![
71
+ "react",
72
+ "react-dom",
73
+ "zod",
74
+ "@baseplate-dev/ui-components",
75
+ "@baseplate-dev/project-builder-lib/web",
76
+ "@baseplate-dev/project-builder-lib",
77
+ "@tanstack/react-router"
78
+ ].includes(pkg)));
79
+ for (const pkg of __mfHostInitShareOrder) {
80
+ const share = usedShared[pkg];
81
+ if (!share) continue;
82
+ if (share.treeShaking) continue;
83
+ const cacheDescriptor = __mfGetSharedCacheDescriptor(pkg, share.shareConfig?.singleton, share.version, share.scope);
84
+ if (__mfReadSharedCache(__mfModuleCache.share, cacheDescriptor) !== void 0) continue;
85
+ await runtime.loadShare(pkg, { customShareInfo: { shareConfig: share.shareConfig } }).then((factory) => {
86
+ const mod = typeof factory === "function" ? factory() : factory;
87
+ return Promise.resolve(mod).then((resolved) => {
88
+ __mfWriteSharedCache(__mfModuleCache.share, cacheDescriptor, __mfNormalizeRuntimeShare(resolved));
89
+ });
90
+ });
91
+ }
92
+ await Promise.all([]);
93
+ return runtime;
94
+ })();
95
+ return hostInitPromise;
96
+ }
97
+ hostInitPromise = initHost();
98
+ //#endregion
99
+ export { hostInitPromise, initHost };
@@ -1,2 +1,2 @@
1
- import "./virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-B_7IVc8D.js";
2
- import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-CtbvyMZJ.js";
1
+ import "./virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-BQ0UMKSv.js";
2
+ import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-aH8n-Nbe.js";
@@ -25,8 +25,11 @@ const __mfImport = (src) =>
25
25
 
26
26
 
27
27
  (async () => {
28
- const __mfHostInit = await __mfImport("./hostInit-CDVLjNbq.js");
28
+ const __mfHostInit = await __mfImport("./hostInit-D3RxwboF.js");
29
29
  await __mfHostInit.__tla;
30
30
  const { initHost } = __mfHostInit;
31
31
  await initHost();
32
- })().then(() => __mfImport("./index-CR54yoeW.js"));
32
+ if (__mfModuleCache.pendingShareLoads) {
33
+ await Promise.all(__mfModuleCache.pendingShareLoads);
34
+ }
35
+ })().then(() => __mfImport("./index-CozZxQl1.js"));
@@ -1,4 +1,4 @@
1
- import { n as __mf_0 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-DE4UUe5K.js";
1
+ import { n as __mf_0 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js";
2
2
  //#region ../../packages/project-builder-lib/dist/plugins/spec/types.js
3
3
  /**
4
4
  * Creates a plugin spec with init and use phases.
@@ -61,13 +61,8 @@ function sortBy(arr, criteria) {
61
61
  return orderBy(arr, criteria, ["asc"]);
62
62
  }
63
63
  //#endregion
64
- //#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
65
- function isPlainObject(value) {
66
- if (!value || typeof value !== "object") return false;
67
- const proto = Object.getPrototypeOf(value);
68
- if (!(proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null)) return false;
69
- return Object.prototype.toString.call(value) === "[object Object]";
70
- }
64
+ //#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/function/noop.mjs
65
+ function noop() {}
71
66
  //#endregion
72
67
  //#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
73
68
  function getSymbols(object) {
@@ -108,6 +103,14 @@ var bigInt64ArrayTag = "[object BigInt64Array]";
108
103
  var float32ArrayTag = "[object Float32Array]";
109
104
  var float64ArrayTag = "[object Float64Array]";
110
105
  //#endregion
106
+ //#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
107
+ function isPlainObject(value) {
108
+ if (!value || typeof value !== "object") return false;
109
+ const proto = Object.getPrototypeOf(value);
110
+ if (!(proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null)) return false;
111
+ return Object.prototype.toString.call(value) === "[object Object]";
112
+ }
113
+ //#endregion
111
114
  //#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/_internal/isEqualsSameValueZero.mjs
112
115
  function isEqualsSameValueZero(value, other) {
113
116
  return value === other || Number.isNaN(value) && Number.isNaN(other);
@@ -219,9 +222,6 @@ function areObjectsEqual(a, b, stack, areValuesEqual) {
219
222
  }
220
223
  }
221
224
  //#endregion
222
- //#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/function/noop.mjs
223
- function noop() {}
224
- //#endregion
225
225
  //#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/predicate/isEqual.mjs
226
226
  function isEqual(a, b) {
227
227
  return isEqualWith(a, b, noop);
@@ -735,6 +735,12 @@ var expressionParserSpec = createFieldMapSpec("core/expression-parsers", (t) =>
735
735
  * ```
736
736
  */
737
737
  var RefExpressionParser = class {
738
+ /**
739
+ * One-line summary of the expression language, surfaced to MCP consumers by
740
+ * `get-entity-schema` so an agent editing this field knows it is a DSL rather
741
+ * than free-form text. Point at fuller docs rather than restating the grammar.
742
+ */
743
+ description;
738
744
  /**
739
745
  * Convenience method that combines parse() and getWarnings() into a single call.
740
746
  * Parses the expression and returns all validation warnings (including parse errors).
@@ -1267,6 +1273,33 @@ function getModelIdByNameOrDefault(projectDefinition, name) {
1267
1273
  function getPrimaryKeyFields(model) {
1268
1274
  return model.model.primaryKeyFieldRefs.map((id) => getScalarFieldById(model, id));
1269
1275
  }
1276
+ /**
1277
+ * Whether a field with the given read-role restriction is safe to expose as
1278
+ * a where-filter operand on a query with the given read-role restriction.
1279
+ *
1280
+ * A field is safe to filter on only if every principal who can call the
1281
+ * query can also read the field's value — i.e. the field's own restriction
1282
+ * (if any) is no narrower than the query's. Role lists are OR'd (holding
1283
+ * *any* listed role grants access), and an EMPTY role list means
1284
+ * "unrestricted" (everyone), not "no one" — the widest grant, not the
1285
+ * narrowest. So:
1286
+ * - field unrestricted (empty) -> always safe, regardless of the query.
1287
+ * - query unrestricted (empty) but field restricted -> never safe (the
1288
+ * query admits everyone; the field doesn't).
1289
+ * - both restricted -> safe only if every query role is also a field role
1290
+ * (the query's role set is a SUBSET of the field's), so no principal can
1291
+ * pass the query's gate without also passing the field's.
1292
+ *
1293
+ * @param field - The field's `globalRoles`/`instanceRoles` restriction.
1294
+ * @param query - The query's `globalRoles`/`instanceRoles` restriction.
1295
+ * @returns Whether the field is safe to filter on given the query's gate.
1296
+ */
1297
+ function isFieldSafeToFilter(field, query) {
1298
+ if (!(field.globalRoles.length > 0 || field.instanceRoles.length > 0)) return true;
1299
+ if (!(query.globalRoles.length > 0 || query.instanceRoles.length > 0)) return false;
1300
+ const isSubset = (subset, superset) => subset.every((role) => superset.includes(role));
1301
+ return isSubset(query.globalRoles, field.globalRoles) && isSubset(query.instanceRoles, field.instanceRoles);
1302
+ }
1270
1303
  var ModelUtils = {
1271
1304
  byId,
1272
1305
  byIdOrThrow,
@@ -1279,9 +1312,10 @@ var ModelUtils = {
1279
1312
  hasService,
1280
1313
  validateModelName,
1281
1314
  getModelIdByNameOrDefault,
1282
- getPrimaryKeyFields
1315
+ getPrimaryKeyFields,
1316
+ isFieldSafeToFilter
1283
1317
  };
1284
1318
  //#endregion
1285
- export { getSymbols as $, argumentsTag as A, int8ArrayTag as B, createPluginFieldMap as C, validationHintRegistry as D, CASE_VALIDATORS as E, dateTag as F, setTag as G, numberTag as H, float32ArrayTag as I, uint16ArrayTag as J, stringTag as K, float64ArrayTag as L, arrayTag as M, booleanTag as N, isEqual as O, dataViewTag as P, getTag as Q, int16ArrayTag as R, createFieldMapSpec as S, runInPluginContext as T, objectTag as U, mapTag as V, regexpTag as W, uint8ArrayTag as X, uint32ArrayTag as Y, uint8ClampedArrayTag as Z, createRefContextSlot as _, featureEntityType as a, expressionParserSpec as b, createEntityType as c, definitionSchemaWithSlots as d, isPlainObject as et, withPlaceholderSlots as f, withRef as g, withEnt as h, createFeaturesSchema as i, arrayBufferTag as j, isEqualsSameValueZero as k, createDefinitionSchemaParserContext as l, definitionDefaultRegistry as m, FeatureUtils as n, createPluginSpec as nt, featureNameSchema as o, withDefault as p, symbolTag as q, createFeatureSchema as r, DefinitionEntityType as s, ModelUtils as t, sortBy as tt, definitionSchema as u, createRefContextSlotMap as v, getPluginContext as w, definitionRefRegistry as x, RefExpressionParser as y, int32ArrayTag as z };
1319
+ export { getTag as $, isPlainObject as A, int32ArrayTag as B, createPluginFieldMap as C, validationHintRegistry as D, CASE_VALIDATORS as E, dataViewTag as F, regexpTag as G, mapTag as H, dateTag as I, symbolTag as J, setTag as K, float32ArrayTag as L, arrayBufferTag as M, arrayTag as N, isEqual as O, booleanTag as P, uint8ClampedArrayTag as Q, float64ArrayTag as R, createFieldMapSpec as S, runInPluginContext as T, numberTag as U, int8ArrayTag as V, objectTag as W, uint32ArrayTag as X, uint16ArrayTag as Y, uint8ArrayTag as Z, createRefContextSlot as _, featureEntityType as a, expressionParserSpec as b, createEntityType as c, definitionSchemaWithSlots as d, getSymbols as et, withPlaceholderSlots as f, withRef as g, withEnt as h, createFeaturesSchema as i, argumentsTag as j, isEqualsSameValueZero as k, createDefinitionSchemaParserContext as l, definitionDefaultRegistry as m, FeatureUtils as n, createPluginSpec as nt, featureNameSchema as o, withDefault as p, stringTag as q, createFeatureSchema as r, DefinitionEntityType as s, ModelUtils as t, sortBy as tt, definitionSchema as u, createRefContextSlotMap as v, getPluginContext as w, definitionRefRegistry as x, RefExpressionParser as y, int16ArrayTag as z };
1286
1320
 
1287
- //# sourceMappingURL=model-utils-CQpTF3uf.js.map
1321
+ //# sourceMappingURL=model-utils-CYaLYwoX.js.map
@@ -1,5 +1,5 @@
1
- import { n as __mf_0 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-DE4UUe5K.js";
2
- import { i as __mf_163, y as __mf_59 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-BX1_Ngjt.js";
1
+ import { n as __mf_0 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js";
2
+ import { i as __mf_163, y as __mf_59 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-0m3QgjSy.js";
3
3
  import { t as BETTER_AUTH_MODELS } from "./model-names-CUS5rSei.js";
4
4
  //#region src/better-auth/core/schema/plugin-definition.ts
5
5
  var createBetterAuthPluginDefinitionSchema = __mf_163((ctx) => __mf_0.object({ additionalUserAdminRoles: ctx.withDefault(__mf_0.array(ctx.withRef({
@@ -301,4 +301,4 @@ function createBetterAuthPartialDefinition(authFeatureName, accountsFeatureName)
301
301
  //#endregion
302
302
  export { createBetterAuthPluginDefinitionSchema as n, createBetterAuthPartialDefinition as t };
303
303
 
304
- //# sourceMappingURL=models-Bc3L4Vsl.js.map
304
+ //# sourceMappingURL=models-BX4xFiEn.js.map
@@ -1,5 +1,5 @@
1
- import { n as __mf_0 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-DE4UUe5K.js";
2
- import { i as __mf_163, y as __mf_59 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-BX1_Ngjt.js";
1
+ import { n as __mf_0 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js";
2
+ import { i as __mf_163, y as __mf_59 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-0m3QgjSy.js";
3
3
  import { t as LOCAL_AUTH_MODELS } from "./model-names-BluImOzu.js";
4
4
  //#region src/local-auth/core/schema/plugin-definition.ts
5
5
  var createLocalAuthPluginDefinitionSchema = __mf_163((ctx) => __mf_0.object({
@@ -282,4 +282,4 @@ function createLocalAuthPartialDefinition(authFeatureName, accountsFeatureName)
282
282
  //#endregion
283
283
  export { createLocalAuthPluginDefinitionSchema as n, createLocalAuthPartialDefinition as t };
284
284
 
285
- //# sourceMappingURL=models-BIKzGkW3.js.map
285
+ //# sourceMappingURL=models-k-iaCft-.js.map
@@ -1,5 +1,5 @@
1
- import { n as __mf_0 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-DE4UUe5K.js";
2
- import { i as __mf_163 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-BX1_Ngjt.js";
1
+ import { n as __mf_0 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js";
2
+ import { i as __mf_163 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-0m3QgjSy.js";
3
3
  //#region src/placeholder-auth/constants/model-names.ts
4
4
  var PLACEHOLDER_AUTH_MODELS = { user: "User" };
5
5
  //#endregion
@@ -8,4 +8,4 @@ var createPlaceholderAuthPluginDefinitionSchema = __mf_163(() => __mf_0.object({
8
8
  //#endregion
9
9
  export { PLACEHOLDER_AUTH_MODELS as n, createPlaceholderAuthPluginDefinitionSchema as t };
10
10
 
11
- //# sourceMappingURL=plugin-definition-33i4r91s.js.map
11
+ //# sourceMappingURL=plugin-definition-BI565qFo.js.map
@@ -1,5 +1,5 @@
1
- import { n as __mf_0 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-DE4UUe5K.js";
2
- import { i as __mf_163, s as __mf_172, y as __mf_59 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-BX1_Ngjt.js";
1
+ import { n as __mf_0 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js";
2
+ import { i as __mf_163, s as __mf_172, y as __mf_59 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-0m3QgjSy.js";
3
3
  //#region src/auth/core/schema/roles/constants.ts
4
4
  var AUTH_DEFAULT_ROLES = [
5
5
  {
@@ -75,4 +75,4 @@ var createAuthPluginDefinitionSchema = __mf_163((ctx) => __mf_0.object({
75
75
  //#endregion
76
76
  export { createAuthRoleSchema as n, createDefaultAuthRoles as r, createAuthPluginDefinitionSchema as t };
77
77
 
78
- //# sourceMappingURL=plugin-definition-BhNnSvrD.js.map
78
+ //# sourceMappingURL=plugin-definition-CI1aEVGv.js.map
@@ -1,20 +1,22 @@
1
- import { t as __mf_53 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CGsbw2Lx.js";
2
- import { L as appendErrors, R as get, St as __mf_2, h as NavigationTabsItem, m as NavigationTabs, xt as __mf_1, z as set } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-DsLoA9K7.js";
3
- import { a as parse, o as parseAsync, s as $ZodError } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-DE4UUe5K.js";
4
- import { p as __mf_26 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-BX1_Ngjt.js";
5
- import { i as __mf_24 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-CQuBII8a.js";
1
+ import { t as __mf_53 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CJ027_El.js";
2
+ import { B as appendErrors, H as set, V as get, bt as __mf_2, c as __mf_157, s as __mf_156, yt as __mf_1 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-BTSgZGcl.js";
3
+ import { a as parseAsync, i as parse, o as $ZodError } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js";
4
+ import { f as __mf_26 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-0m3QgjSy.js";
5
+ import { i as __mf_25 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-QrOyqu9V.js";
6
6
  //#region ../../node_modules/.pnpm/@hookform+resolvers@5.2.2_react-hook-form@7.71.1/node_modules/@hookform/resolvers/dist/resolvers.mjs
7
7
  var r = (t, r, o) => {
8
8
  if (t && "reportValidity" in t) {
9
9
  const s = get(o, r);
10
10
  t.setCustomValidity(s && s.message || ""), t.reportValidity();
11
11
  }
12
- }, o = (e, t) => {
12
+ };
13
+ var o = (e, t) => {
13
14
  for (const o in t.fields) {
14
15
  const s = t.fields[o];
15
16
  s && s.ref && "reportValidity" in s.ref ? r(s.ref, o, e) : s && s.refs && s.refs.forEach((t) => r(t, o, e));
16
17
  }
17
- }, s$1 = (r, s) => {
18
+ };
19
+ var s$1 = (r, s) => {
18
20
  s.shouldUseNativeValidation && o(r, s);
19
21
  const n = {};
20
22
  for (const o in r) {
@@ -25,7 +27,8 @@ var r = (t, r, o) => {
25
27
  } else set(n, o, c);
26
28
  }
27
29
  return n;
28
- }, i$1 = (e, t) => {
30
+ };
31
+ var i$1 = (e, t) => {
29
32
  const r = n(t);
30
33
  return e.some((e) => n(e).match(`^${r}\\.\\d+`));
31
34
  };
@@ -146,20 +149,20 @@ function a(o$1, a, u) {
146
149
  //#endregion
147
150
  //#region src/common/components/auth-config-tabs.tsx
148
151
  function AuthConfigTabs() {
149
- const { definition, schemaParserContext } = __mf_24();
152
+ const { definition, schemaParserContext } = __mf_25();
150
153
  const authPlugin = schemaParserContext.pluginStore.availablePlugins.find((p) => p.metadata.packageName === "@baseplate-dev/plugin-auth" && p.metadata.name === "auth");
151
154
  if (!authPlugin) return null;
152
155
  const implementationPluginKey = __mf_26.configByKey(definition, authPlugin.metadata.key)?.implementationPluginKey;
153
156
  const authImplementationPlugin = schemaParserContext.pluginStore.availablePlugins.find((p) => p.metadata.key === implementationPluginKey);
154
157
  if (!authImplementationPlugin) return null;
155
- return /* @__PURE__ */ __mf_2(NavigationTabs, { children: [/* @__PURE__ */ __mf_1(NavigationTabsItem, {
158
+ return /* @__PURE__ */ __mf_2(__mf_156, { children: [/* @__PURE__ */ __mf_1(__mf_157, {
156
159
  render: /* @__PURE__ */ __mf_1(__mf_53, {
157
160
  to: "/plugins/edit/$key",
158
161
  params: { key: authPlugin.metadata.key },
159
162
  activeOptions: { exact: true }
160
163
  }),
161
164
  children: "Auth"
162
- }), /* @__PURE__ */ __mf_1(NavigationTabsItem, {
165
+ }), /* @__PURE__ */ __mf_1(__mf_157, {
163
166
  render: /* @__PURE__ */ __mf_1(__mf_53, {
164
167
  to: `/plugins/edit/${authImplementationPlugin.metadata.key}`,
165
168
  activeOptions: { exact: true }
@@ -170,4 +173,4 @@ function AuthConfigTabs() {
170
173
  //#endregion
171
174
  export { a as n, AuthConfigTabs as t };
172
175
 
173
- //# sourceMappingURL=styles-BT_OTXuv.js.map
176
+ //# sourceMappingURL=styles-f4jHVv0S.js.map
@@ -1,2 +1,2 @@
1
- import { t as virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default } from "./virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-B_7IVc8D.js";
1
+ import { t as virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default } from "./virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-BQ0UMKSv.js";
2
2
  export { virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default as default };
@@ -0,0 +1,259 @@
1
+ import { t as __vitePreload } from "./vite-preload-helper-iIio8xkS.js";
2
+ import { t as init$1 } from "./dist-SBfmsOB2.js";
3
+ //#region virtual:mf-REMOTE_ENTRY_ID:__mfe_internal__plugin-auth__remoteEntry_js
4
+ if (typeof __VUE_HMR_RUNTIME__ === "undefined") globalThis.__VUE_HMR_RUNTIME__ = {
5
+ createRecord() {},
6
+ rerender() {},
7
+ reload() {}
8
+ };
9
+ var __mfResolveGlobalKey = "__mf_init__virtual:mf:__mfe_internal__plugin_mf_2_auth__mf_v__runtimeInit__mf_v__.js__";
10
+ var __mfResolveState = globalThis[__mfResolveGlobalKey];
11
+ if (!__mfResolveState) {
12
+ let initResolve, initReject;
13
+ const initPromise = new Promise((re, rj) => {
14
+ initResolve = re;
15
+ initReject = rj;
16
+ });
17
+ __mfResolveState = globalThis[__mfResolveGlobalKey] = {
18
+ initPromise,
19
+ initResolve,
20
+ initReject
21
+ };
22
+ }
23
+ var initResolve = __mfResolveState.initResolve;
24
+ var __mfCacheGlobalKey = "__mf_module_cache__";
25
+ globalThis[__mfCacheGlobalKey] ||= {
26
+ share: {},
27
+ remote: {}
28
+ };
29
+ globalThis[__mfCacheGlobalKey].share ||= {};
30
+ globalThis[__mfCacheGlobalKey].remote ||= {};
31
+ var __mfModuleCache = globalThis[__mfCacheGlobalKey];
32
+ for (const __mfShareKey of Object.keys(__mfModuleCache.share)) if (__mfShareKey.startsWith("default:")) {
33
+ const __mfLegacyShareKey = __mfShareKey.slice(8);
34
+ if (__mfModuleCache.share[__mfLegacyShareKey] === void 0) __mfModuleCache.share[__mfLegacyShareKey] = __mfModuleCache.share[__mfShareKey];
35
+ } else if (!__mfShareKey.includes(":")) {
36
+ const __mfDefaultShareKey = "default:" + __mfShareKey;
37
+ if (__mfModuleCache.share[__mfDefaultShareKey] === void 0) __mfModuleCache.share[__mfDefaultShareKey] = __mfModuleCache.share[__mfShareKey];
38
+ }
39
+ var initTokens = {};
40
+ var shareScopeName = "default";
41
+ var mfName = "plugin-auth";
42
+ var localSharedImportMapPromise;
43
+ var exposesMapPromise;
44
+ async function retrySharedInit(fn) {
45
+ for (let attempt = 0;; attempt++) try {
46
+ return await fn();
47
+ } catch (e) {
48
+ throw e;
49
+ }
50
+ }
51
+ async function getLocalSharedImportMap() {
52
+ if (!localSharedImportMapPromise) localSharedImportMapPromise = retrySharedInit(() => __vitePreload(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-3sV-KVGF.js"), [], import.meta.url)).catch((e) => {
53
+ localSharedImportMapPromise = void 0;
54
+ throw e;
55
+ });
56
+ return localSharedImportMapPromise;
57
+ }
58
+ async function getExposesMap() {
59
+ if (!exposesMapPromise) exposesMapPromise = retrySharedInit(() => __vitePreload(() => import("./virtualExposes-BHQhgLE-.js"), [], import.meta.url)).then((mod) => mod.default ?? mod).catch((e) => {
60
+ exposesMapPromise = void 0;
61
+ throw e;
62
+ });
63
+ return exposesMapPromise;
64
+ }
65
+ async function init(shared = {}, initScope = []) {
66
+ const __mfGetSharedCacheDescriptor = (pkg, singleton, version, scope) => {
67
+ const scopeName = (Array.isArray(scope) ? scope[0] : scope) || "default";
68
+ const id = singleton || !version ? pkg : pkg + "@" + version;
69
+ const descriptor = { canonical: scopeName + ":" + id };
70
+ if (scopeName === "default") descriptor.aliases = [id];
71
+ return descriptor;
72
+ };
73
+ const __mfReadSharedCache = (cache, descriptor) => {
74
+ const value = cache[descriptor.canonical];
75
+ if (value !== void 0) return value;
76
+ const aliases = descriptor.aliases || [];
77
+ for (const alias of aliases) {
78
+ const aliasValue = cache[alias];
79
+ if (aliasValue !== void 0) {
80
+ cache[descriptor.canonical] = aliasValue;
81
+ return aliasValue;
82
+ }
83
+ }
84
+ };
85
+ const __mfWriteSharedCache = (cache, descriptor, value) => {
86
+ cache[descriptor.canonical] = value;
87
+ const aliases = descriptor.aliases || [];
88
+ for (const alias of aliases) if (cache[alias] === void 0) cache[alias] = value;
89
+ return value;
90
+ };
91
+ const __mfTreeShakingSelectionCacheKey = Symbol.for("module-federation.tree-shaking-shared-selection-cache");
92
+ const __mfReadTreeShakingSharedSelection = (cache, descriptor, consumer) => {
93
+ const fullModule = __mfReadSharedCache(cache, descriptor);
94
+ if (fullModule !== void 0) return fullModule;
95
+ return cache[__mfTreeShakingSelectionCacheKey]?.[descriptor.canonical]?.[consumer];
96
+ };
97
+ const { usedShared, usedRemotes } = await getLocalSharedImportMap();
98
+ try {
99
+ const allInstances = globalThis.__FEDERATION__?.__SHARE__;
100
+ if (allInstances) {
101
+ const __mfNormalizeRuntimeShare = (mod) => {
102
+ let current = mod;
103
+ for (let i = 0; i < 5; i++) {
104
+ const defaultExport = current?.default;
105
+ if (!defaultExport || typeof defaultExport !== "object" || Object.keys(defaultExport).length === 0) break;
106
+ const namedValues = Object.keys(current).filter((key) => key !== "default").map((key) => current[key]);
107
+ if (namedValues.length > 0 && namedValues.some((value) => value !== void 0)) break;
108
+ current = defaultExport;
109
+ }
110
+ return current;
111
+ };
112
+ for (const [, scopes] of Object.entries(allInstances)) {
113
+ const scopeShare = scopes?.["default"];
114
+ if (!scopeShare) continue;
115
+ for (const [pkg, versionMap] of Object.entries(scopeShare)) {
116
+ const usedShare = usedShared?.[pkg];
117
+ const selectedProvider = usedShare?.shareConfig?.import === false ? __mfSelectSharedProvider(versionMap, pkg, usedShare, "version-first") : void 0;
118
+ const providerEntries = usedShare?.shareConfig?.import === false ? Object.entries(versionMap).filter(([, provider]) => provider === selectedProvider) : Object.entries(versionMap);
119
+ for (const [version, provider] of providerEntries) {
120
+ if (!provider.lib) continue;
121
+ const cacheDescriptor = __mfGetSharedCacheDescriptor(pkg, provider.shareConfig?.singleton, version, "default");
122
+ if (__mfReadSharedCache(__mfModuleCache.share, cacheDescriptor) !== void 0) continue;
123
+ const mod = typeof provider.lib === "function" ? provider.lib() : provider.lib;
124
+ const normalized = __mfNormalizeRuntimeShare(await Promise.resolve(mod));
125
+ __mfWriteSharedCache(__mfModuleCache.share, cacheDescriptor, normalized);
126
+ if (provider.shareConfig?.singleton && usedShare) {
127
+ const usedCacheDescriptor = __mfGetSharedCacheDescriptor(pkg, usedShare.shareConfig?.singleton, usedShare.version, usedShare.scope);
128
+ if (__mfReadSharedCache(__mfModuleCache.share, usedCacheDescriptor) === void 0) __mfWriteSharedCache(__mfModuleCache.share, usedCacheDescriptor, normalized);
129
+ }
130
+ }
131
+ }
132
+ }
133
+ }
134
+ } catch (e) {
135
+ console.error("[Module Federation] Failed to bridge external shared modules", e);
136
+ }
137
+ for (const [pkg, share] of Object.entries(usedShared)) {
138
+ const cacheDescriptor = __mfGetSharedCacheDescriptor(pkg, share.shareConfig?.singleton, share.version, share.scope);
139
+ if (__mfReadSharedCache(__mfModuleCache.share, cacheDescriptor) !== void 0) continue;
140
+ const singletonCacheDescriptor = __mfGetSharedCacheDescriptor(pkg, true, share.version, share.scope);
141
+ const singletonModule = __mfReadSharedCache(__mfModuleCache.share, singletonCacheDescriptor);
142
+ if (singletonModule !== void 0) __mfWriteSharedCache(__mfModuleCache.share, cacheDescriptor, singletonModule);
143
+ }
144
+ const __mfSeedKeys = [
145
+ "react/jsx-runtime",
146
+ "react",
147
+ "react-dom",
148
+ "zod",
149
+ "@baseplate-dev/ui-components",
150
+ "@baseplate-dev/project-builder-lib/web",
151
+ "@baseplate-dev/project-builder-lib",
152
+ "@tanstack/react-router"
153
+ ].filter((pkg) => usedShared[pkg] !== void 0);
154
+ const __mfSeedPackageName = (pkg) => pkg.startsWith("@") ? pkg.split("/").slice(0, 2).join("/") : pkg.split("/")[0];
155
+ for (const pkg of Object.keys(usedShared)) {
156
+ if (__mfSeedKeys.includes(pkg)) continue;
157
+ const packageName = __mfSeedPackageName(pkg);
158
+ const rootIndex = __mfSeedKeys.indexOf(packageName);
159
+ if (rootIndex === -1) {
160
+ __mfSeedKeys.push(pkg);
161
+ continue;
162
+ }
163
+ let insertIndex = rootIndex;
164
+ while (insertIndex > 0 && __mfSeedPackageName(__mfSeedKeys[insertIndex - 1]) === packageName && __mfSeedKeys[insertIndex - 1] !== packageName) insertIndex--;
165
+ __mfSeedKeys.splice(insertIndex, 0, pkg);
166
+ }
167
+ for (const pkg of __mfSeedKeys) {
168
+ const share = usedShared[pkg];
169
+ const cacheDescriptor = __mfGetSharedCacheDescriptor(pkg, share.shareConfig?.singleton, share.version, share.scope);
170
+ if (share.shareConfig?.import === false || Boolean(share.treeShaking) || __mfReadSharedCache(__mfModuleCache.share, cacheDescriptor) !== void 0) continue;
171
+ const singletonCacheDescriptor = __mfGetSharedCacheDescriptor(pkg, true, share.version, share.scope);
172
+ const singletonModule = __mfReadSharedCache(__mfModuleCache.share, singletonCacheDescriptor);
173
+ if (singletonModule !== void 0) {
174
+ __mfWriteSharedCache(__mfModuleCache.share, cacheDescriptor, singletonModule);
175
+ continue;
176
+ }
177
+ const factory = await share.get();
178
+ const mod = typeof factory === "function" ? factory() : factory;
179
+ const resolved = await Promise.resolve(mod);
180
+ const __mfNormalizeRuntimeShare = (mod) => {
181
+ let current = mod;
182
+ for (let i = 0; i < 5; i++) {
183
+ const defaultExport = current?.default;
184
+ if (!defaultExport || typeof defaultExport !== "object" || Object.keys(defaultExport).length === 0) break;
185
+ const namedValues = Object.keys(current).filter((key) => key !== "default").map((key) => current[key]);
186
+ if (namedValues.length > 0 && namedValues.some((value) => value !== void 0)) break;
187
+ current = defaultExport;
188
+ }
189
+ return current;
190
+ };
191
+ const normalizedModule = __mfNormalizeRuntimeShare(resolved);
192
+ const exportModule = normalizedModule === resolved ? { ...resolved } : normalizedModule;
193
+ Object.defineProperty(exportModule, "__esModule", {
194
+ value: true,
195
+ enumerable: false
196
+ });
197
+ __mfWriteSharedCache(__mfModuleCache.share, cacheDescriptor, exportModule);
198
+ }
199
+ const __browserPlugins = [];
200
+ const __ssrPlugins = typeof globalThis.window === "undefined" ? await Promise.all([]) : [];
201
+ const initRes = init$1({
202
+ name: mfName,
203
+ remotes: usedRemotes,
204
+ shared: usedShared,
205
+ plugins: [...__browserPlugins, ...__ssrPlugins],
206
+ shareStrategy: "version-first"
207
+ });
208
+ var initToken = initTokens[shareScopeName];
209
+ if (!initToken) initToken = initTokens[shareScopeName] = { from: mfName };
210
+ if (initScope.indexOf(initToken) >= 0) return;
211
+ initScope.push(initToken);
212
+ initRes.initShareScopeMap("default", shared);
213
+ try {
214
+ await retrySharedInit(async () => {
215
+ await Promise.all(await initRes.initializeSharing("default", {
216
+ strategy: "version-first",
217
+ from: "build",
218
+ initScope
219
+ }));
220
+ });
221
+ } catch (e) {
222
+ console.error("[Module Federation]", e);
223
+ }
224
+ for (const [pkg, share] of Object.entries(usedShared)) {
225
+ const cacheDescriptor = __mfGetSharedCacheDescriptor(pkg, share.shareConfig?.singleton, share.version, share.scope);
226
+ const cachedShare = share.treeShaking ? __mfReadTreeShakingSharedSelection(__mfModuleCache.share, cacheDescriptor, mfName) : __mfReadSharedCache(__mfModuleCache.share, cacheDescriptor);
227
+ if (share.shareConfig?.import !== false || cachedShare !== void 0) continue;
228
+ const __mfNormalizeRuntimeShare = (mod) => {
229
+ let current = mod;
230
+ for (let i = 0; i < 5; i++) {
231
+ const defaultExport = current?.default;
232
+ if (!defaultExport || typeof defaultExport !== "object" || Object.keys(defaultExport).length === 0) break;
233
+ const namedValues = Object.keys(current).filter((key) => key !== "default").map((key) => current[key]);
234
+ if (namedValues.length > 0 && namedValues.some((value) => value !== void 0)) break;
235
+ current = defaultExport;
236
+ }
237
+ return current;
238
+ };
239
+ const versions = shared?.[pkg];
240
+ const provider = __mfSelectSharedProvider(versions, pkg, share, "version-first");
241
+ if (!provider) continue;
242
+ const factory = provider.lib || (provider.loading ? await provider.loading : await provider.get?.());
243
+ const mod = typeof factory === "function" ? factory() : factory;
244
+ const resolved = await Promise.resolve(mod);
245
+ __mfWriteSharedCache(__mfModuleCache.share, cacheDescriptor, __mfNormalizeRuntimeShare(resolved));
246
+ }
247
+ initResolve(initRes);
248
+ return initRes;
249
+ }
250
+ async function getExposes(moduleName) {
251
+ const exposesMap = await getExposesMap();
252
+ if (!(moduleName in exposesMap)) throw new Error(`[Module Federation] Module ${moduleName} does not exist in container.`);
253
+ if (__mfModuleCache.pendingShareLoads) await Promise.all(__mfModuleCache.pendingShareLoads);
254
+ return exposesMap[moduleName]().then((res) => () => res);
255
+ }
256
+ //#endregion
257
+ export { init as n, getExposes as t };
258
+
259
+ //# sourceMappingURL=virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-aH8n-Nbe.js.map