@baseplate-dev/plugin-auth 0.6.17 → 0.6.19
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.
- package/CHANGELOG.md +54 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +74 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +74 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +37 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +37 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +1 -2
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +1 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +74 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +74 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +37 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +74 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +1 -2
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +1 -1
- package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +37 -0
- package/dist/better-auth/core/node.js +7 -8
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.js +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts +20 -3
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +5 -24
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +40 -2
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +19 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js +6 -2
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts +20 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js +4 -1
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +16 -8
- package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts +1 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/index.d.ts +5 -4
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.d.ts +1 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.js +1 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.d.ts +2 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.js +2 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.d.ts +6 -6
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.js +13 -13
- package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/{use-required-user-id.ts → use-user-id-or-throw.ts} +1 -1
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +37 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +222 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +37 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +370 -0
- package/dist/better-auth/generators/react/better-auth-pages/templates/routes/forgot-password.tsx +1 -4
- package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +77 -2
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +38 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.d.ts +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.js +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +38 -1
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +38 -1
- package/dist/better-auth/generators/react/react-better-auth/templates/src/app/auth-loaded-gate.tsx +12 -3
- package/dist/local-auth/admin/common.js +6 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/admin-crud-invite-user-action.generator.d.ts +593 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/admin-crud-invite-user-action.generator.js +119 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/index.d.ts +602 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/index.js +11 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-paths.d.ts +12 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-paths.js +24 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-renderers.d.ts +307 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-renderers.js +45 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/typed-templates.d.ts +294 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/typed-templates.js +21 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/index.d.ts +2 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/index.js +2 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.d.ts +21 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.js +68 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.tsx +122 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +74 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +74 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +37 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +37 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +1 -2
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +74 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +74 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +37 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +74 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +1 -2
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +1 -1
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +37 -0
- package/dist/local-auth/admin/node.js +13 -0
- package/dist/local-auth/admin/schema/invite-user-action.d.ts +12 -0
- package/dist/local-auth/admin/schema/invite-user-action.js +6 -0
- package/dist/local-auth/admin/web.js +8 -0
- package/dist/local-auth/core/common.js +7 -2
- package/dist/local-auth/core/components/local-auth-definition-editor.js +2 -1
- package/dist/local-auth/core/components/local-auth-web-app-settings-form.d.ts +9 -0
- package/dist/local-auth/core/components/local-auth-web-app-settings-form.js +11 -0
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +16 -7
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +73 -16
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +222 -7
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts +5 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js +5 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +27 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +71 -4
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts +1 -3
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js +1 -2
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +226 -10
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +91 -7
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/otp.constants.d.ts +19 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/otp.constants.js +20 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/otp.constants.ts +22 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +12 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js +12 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.ts +14 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-otp.mutations.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-otp.mutations.js +30 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-otp.mutations.ts +38 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/invite.mutations.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/invite.mutations.js +42 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/invite.mutations.ts +54 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +2 -19
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +1 -22
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-otp.service.d.ts +37 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-otp.service.js +225 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-otp.service.ts +333 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +2 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +5 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.d.ts +39 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.js +142 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.ts +221 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +5 -6
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +8 -5
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts +3 -1
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js +18 -3
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts +40 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js +2 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts +6 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js +20 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts +40 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js +24 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/email-otp.email.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/email-otp.email.js +18 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/email-otp.email.tsx +57 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/invite.email.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/invite.email.js +14 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/invite.email.tsx +47 -0
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +272 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts +547 -4
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts +271 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js +4 -2
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +2 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js +2 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts +548 -6
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js +15 -14
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +1 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +1 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +7 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +23 -7
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +7 -26
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +65 -4
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +22 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +19 -2
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts +10 -0
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js +7 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +42 -4
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +24 -13
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.d.ts +4 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.js +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.ts +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.d.ts +67 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.js +140 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.ts +191 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js +8 -9
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.ts +10 -11
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +39 -0
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +38 -5
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +1089 -268
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js +3 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +49 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +51 -0
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +918 -283
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +69 -23
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-otp-constants.d.ts +9 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-otp-constants.js +10 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-otp-constants.ts +11 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.js +155 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.tsx +274 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js +1 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.tsx +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.js +184 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.tsx +312 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +5 -5
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +6 -12
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +4 -4
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +4 -3
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +1 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js +1 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.tsx +1 -1
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts +90 -7
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +38 -1
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts +1 -0
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js +1 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +102 -12
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +5 -2
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +54 -1
- package/dist/local-auth/core/generators/react-session/react-session.generator.js +35 -1
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js +17 -44
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +21 -49
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.d.ts +43 -34
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js +96 -80
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.ts +148 -82
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +0 -2
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts +0 -1
- package/dist/local-auth/core/node.js +30 -12
- package/dist/local-auth/core/schema/migrations.d.ts +3 -0
- package/dist/local-auth/core/schema/migrations.js +36 -0
- package/dist/local-auth/core/schema/models.js +8 -0
- package/dist/local-auth/core/schema/plugin-definition.d.ts +1 -0
- package/dist/local-auth/core/schema/plugin-definition.js +1 -0
- package/dist/local-auth/core/schema/web-app-schema.d.ts +15 -0
- package/dist/local-auth/core/schema/web-app-schema.js +16 -0
- package/dist/local-auth/core/web.js +8 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts +4 -3
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts +2 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js +2 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts +4 -4
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +13 -13
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.d.ts +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.ts +2 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts +1 -2
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/placeholder-auth-module.generator.d.ts +0 -1
- package/dist/web/assets/{_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-ChkXxpXe.js → _virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth__mf_owner__1-DUupKqD4.js} +42 -34
- package/dist/web/assets/{dist-DY7ZXvq4.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js} +16857 -381
- 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-37vlYRxk.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-mszeXpf-.js} +90 -38
- 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-DRSNXPPo.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CtIleM_e.js} +4095 -2399
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-DfiQqvVC.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-BckLhSjF.js} +212 -57
- package/dist/web/assets/auth-DR6QxrAW.js +1 -0
- package/dist/web/assets/{common-iHaemino.js → common-BsyRiQi3.js} +6 -6
- package/dist/web/assets/{common-TDf_PrjX.js → common-CRwNlCMn.js} +10 -10
- package/dist/web/assets/{common-ByxS61u8.js → common-CvqlRZC9.js} +12 -12
- package/dist/web/assets/common-D3atSs7O.js +70 -0
- package/dist/web/assets/common-DuFyXa6l.js +36 -0
- package/dist/web/assets/common-islduJTj.js +43 -0
- package/dist/web/assets/{dist-CrLSslv6.js → dist-DQd1TAJX.js} +273 -132
- package/dist/web/assets/{get-auth-plugin-definition-kDCtXq_6.js → get-auth-plugin-definition-BgWWHl_Y.js} +3 -3
- package/dist/web/assets/{hostInit-Cruek6c6.js → hostInit-DNA4kLRY.js} +32 -5
- package/dist/web/assets/{mf-entry-bootstrap-0-dfed0275.js → mf-entry-bootstrap-0-ea77c09b.js} +2 -1
- package/dist/web/assets/{mf-entry-bootstrap-1-5275674a.js → mf-entry-bootstrap-1-9dee3d8d.js} +3 -2
- package/dist/web/assets/{mf-entry-bootstrap-2-39fb9255.js → mf-entry-bootstrap-2-3179040b.js} +3 -2
- package/dist/web/assets/{mf-entry-bootstrap-3-49e64336.js → mf-entry-bootstrap-3-370d200d.js} +3 -2
- package/dist/web/assets/{models-DSvs_3bA.js → models-BOeSYfRn.js} +4 -5
- package/dist/web/assets/{models-BZmCbizK.js → models-DF6DoXt6.js} +11 -6
- package/dist/web/assets/{plugin-definition-CYj29S3q.js → plugin-definition--k0VAeK3.js} +9 -10
- package/dist/web/assets/plugin-definition-CMwSlxsJ.js +10 -0
- package/dist/web/assets/{styles-yjbHBTlw.js → styles-BQEcQHoR.js} +9 -10
- package/dist/web/assets/{virtualExposes-CbPBmicF.js → virtualExposes-C7fDiAmS.js} +1 -1
- package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-BZBRyml2.js +747 -0
- package/dist/web/assets/{virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-B6BXIeF1.js → virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-6SjVUCs8.js} +13 -13
- package/dist/web/assets/web-8wz0ad-V.js +59 -0
- package/dist/web/assets/{web-CXAHKjIY.js → web-BGixH_gT.js} +27 -27
- package/dist/web/assets/{web-1eTcxMhf.js → web-BxIwkN3O.js} +6 -6
- package/dist/web/assets/{web-VqBA3jxZ.js → web-CQMfABjr.js} +24 -24
- package/dist/web/assets/{web-CDAKPPK9.js → web-CcNpItSu.js} +22 -22
- package/dist/web/assets/web-CypPeiVv.js +148 -0
- package/dist/web/assets/{web-D0MSKfyv.js → web-CzK_la2_.js} +53 -53
- package/dist/web/index.html +5 -5
- package/dist/web/remoteEntry.js +1 -1
- package/package.json +14 -14
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts +0 -38
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.js +0 -71
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.ts +0 -77
- 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-CO5Pvo0y.js +0 -384
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-BEZ7A-cz.js +0 -13566
- package/dist/web/assets/auth-BxAE0rgh.js +0 -1
- package/dist/web/assets/common-CKl_XlvH.js +0 -37
- package/dist/web/assets/common-UpVCKZeW.js +0 -41
- package/dist/web/assets/common-crSwCD36.js +0 -37
- package/dist/web/assets/model-utils-C0WDb_Ec.js +0 -1599
- package/dist/web/assets/plugin-definition-DOMmPL2Z.js +0 -11
- package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-XM6iYVxf.js +0 -259
- package/dist/web/assets/virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-DGjg7Brm.js +0 -129
- package/dist/web/assets/web-DbeAaDTV.js +0 -118
- package/dist/web/assets/web-miDovYk_.js +0 -46
- package/dist/web/remoteEntry.ssr.js +0 -43
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { n as __mf_0 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-BEZ7A-cz.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-CO5Pvo0y.js";
|
|
3
|
-
//#region src/placeholder-auth/constants/model-names.ts
|
|
4
|
-
var PLACEHOLDER_AUTH_MODELS = { user: "User" };
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region src/placeholder-auth/core/schema/plugin-definition.ts
|
|
7
|
-
var createPlaceholderAuthPluginDefinitionSchema = __mf_163(() => __mf_0.object({}));
|
|
8
|
-
//#endregion
|
|
9
|
-
export { PLACEHOLDER_AUTH_MODELS as n, createPlaceholderAuthPluginDefinitionSchema as t };
|
|
10
|
-
|
|
11
|
-
//# sourceMappingURL=plugin-definition-DOMmPL2Z.js.map
|
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
import { t as __vitePreload } from "./vite-preload-helper-ARKYL6bp.js";
|
|
2
|
-
import { t as init$1 } from "./dist-CrLSslv6.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-ChkXxpXe.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-CbPBmicF.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-XM6iYVxf.js.map
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./styles-DIj1cIPB.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import { t as __vitePreload } from "./vite-preload-helper-ARKYL6bp.js";
|
|
3
|
-
//#region virtual:mf-exposes-ssr:__mfe_internal__plugin-auth__remoteEntry_js
|
|
4
|
-
var virtual_mf_exposes_ssr___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
5
|
-
"./auth/core/web": async () => {
|
|
6
|
-
const importModule = await __vitePreload(() => import("./web-D0MSKfyv.js"), __vite__mapDeps([0]), import.meta.url);
|
|
7
|
-
const exportModule = {};
|
|
8
|
-
Object.assign(exportModule, importModule);
|
|
9
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
10
|
-
value: true,
|
|
11
|
-
enumerable: false
|
|
12
|
-
});
|
|
13
|
-
return exportModule;
|
|
14
|
-
},
|
|
15
|
-
"./auth/core/common": async () => {
|
|
16
|
-
const importModule = await __vitePreload(() => import("./common-TDf_PrjX.js"), [], import.meta.url);
|
|
17
|
-
const exportModule = {};
|
|
18
|
-
Object.assign(exportModule, importModule);
|
|
19
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
20
|
-
value: true,
|
|
21
|
-
enumerable: false
|
|
22
|
-
});
|
|
23
|
-
return exportModule;
|
|
24
|
-
},
|
|
25
|
-
"./better-auth/core/web": async () => {
|
|
26
|
-
const importModule = await __vitePreload(() => import("./web-VqBA3jxZ.js"), __vite__mapDeps([0]), import.meta.url);
|
|
27
|
-
const exportModule = {};
|
|
28
|
-
Object.assign(exportModule, importModule);
|
|
29
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
30
|
-
value: true,
|
|
31
|
-
enumerable: false
|
|
32
|
-
});
|
|
33
|
-
return exportModule;
|
|
34
|
-
},
|
|
35
|
-
"./better-auth/core/common": async () => {
|
|
36
|
-
const importModule = await __vitePreload(() => import("./common-ByxS61u8.js"), [], import.meta.url);
|
|
37
|
-
const exportModule = {};
|
|
38
|
-
Object.assign(exportModule, importModule);
|
|
39
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
40
|
-
value: true,
|
|
41
|
-
enumerable: false
|
|
42
|
-
});
|
|
43
|
-
return exportModule;
|
|
44
|
-
},
|
|
45
|
-
"./better-auth/admin/web": async () => {
|
|
46
|
-
const importModule = await __vitePreload(() => import("./web-1eTcxMhf.js"), [], import.meta.url);
|
|
47
|
-
const exportModule = {};
|
|
48
|
-
Object.assign(exportModule, importModule);
|
|
49
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
50
|
-
value: true,
|
|
51
|
-
enumerable: false
|
|
52
|
-
});
|
|
53
|
-
return exportModule;
|
|
54
|
-
},
|
|
55
|
-
"./better-auth/admin/common": async () => {
|
|
56
|
-
const importModule = await __vitePreload(() => import("./common-crSwCD36.js"), [], import.meta.url);
|
|
57
|
-
const exportModule = {};
|
|
58
|
-
Object.assign(exportModule, importModule);
|
|
59
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
60
|
-
value: true,
|
|
61
|
-
enumerable: false
|
|
62
|
-
});
|
|
63
|
-
return exportModule;
|
|
64
|
-
},
|
|
65
|
-
"./local-auth/core/web": async () => {
|
|
66
|
-
const importModule = await __vitePreload(() => import("./web-DbeAaDTV.js"), __vite__mapDeps([0]), import.meta.url);
|
|
67
|
-
const exportModule = {};
|
|
68
|
-
Object.assign(exportModule, importModule);
|
|
69
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
70
|
-
value: true,
|
|
71
|
-
enumerable: false
|
|
72
|
-
});
|
|
73
|
-
return exportModule;
|
|
74
|
-
},
|
|
75
|
-
"./local-auth/core/common": async () => {
|
|
76
|
-
const importModule = await __vitePreload(() => import("./common-UpVCKZeW.js"), [], import.meta.url);
|
|
77
|
-
const exportModule = {};
|
|
78
|
-
Object.assign(exportModule, importModule);
|
|
79
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
80
|
-
value: true,
|
|
81
|
-
enumerable: false
|
|
82
|
-
});
|
|
83
|
-
return exportModule;
|
|
84
|
-
},
|
|
85
|
-
"./local-auth/admin/web": async () => {
|
|
86
|
-
const importModule = await __vitePreload(() => import("./web-miDovYk_.js"), [], import.meta.url);
|
|
87
|
-
const exportModule = {};
|
|
88
|
-
Object.assign(exportModule, importModule);
|
|
89
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
90
|
-
value: true,
|
|
91
|
-
enumerable: false
|
|
92
|
-
});
|
|
93
|
-
return exportModule;
|
|
94
|
-
},
|
|
95
|
-
"./local-auth/admin/common": async () => {
|
|
96
|
-
const importModule = await __vitePreload(() => import("./common-CKl_XlvH.js"), [], import.meta.url);
|
|
97
|
-
const exportModule = {};
|
|
98
|
-
Object.assign(exportModule, importModule);
|
|
99
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
100
|
-
value: true,
|
|
101
|
-
enumerable: false
|
|
102
|
-
});
|
|
103
|
-
return exportModule;
|
|
104
|
-
},
|
|
105
|
-
"./placeholder-auth/core/web": async () => {
|
|
106
|
-
const importModule = await __vitePreload(() => import("./web-CDAKPPK9.js"), __vite__mapDeps([0]), import.meta.url);
|
|
107
|
-
const exportModule = {};
|
|
108
|
-
Object.assign(exportModule, importModule);
|
|
109
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
110
|
-
value: true,
|
|
111
|
-
enumerable: false
|
|
112
|
-
});
|
|
113
|
-
return exportModule;
|
|
114
|
-
},
|
|
115
|
-
"./placeholder-auth/core/common": async () => {
|
|
116
|
-
const importModule = await __vitePreload(() => import("./common-iHaemino.js"), [], import.meta.url);
|
|
117
|
-
const exportModule = {};
|
|
118
|
-
Object.assign(exportModule, importModule);
|
|
119
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
120
|
-
value: true,
|
|
121
|
-
enumerable: false
|
|
122
|
-
});
|
|
123
|
-
return exportModule;
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
//#endregion
|
|
127
|
-
export { virtual_mf_exposes_ssr___mfe_internal__plugin_auth__remoteEntry_js_default as default };
|
|
128
|
-
|
|
129
|
-
//# sourceMappingURL=virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-DGjg7Brm.js.map
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { $ as __mf_2, Q as __mf_1, S as __mf_234, _ as __mf_180, g as __mf_179, h as __mf_178, ht as __mf_34, m as __mf_177, o as __mf_145, p as __mf_176, r as __mf_116, v as __mf_181, yt as init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__ } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-DRSNXPPo.js";
|
|
2
|
-
import { a as __mf_167, d as __mf_233, f as __mf_26, g as __mf_55, n as __mf_142, o as __mf_17, p as __mf_263 } 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-CO5Pvo0y.js";
|
|
3
|
-
import { a as __mf_26$1, i as __mf_25, n as __mf_20, r as __mf_23, t as __mf_0 } 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-37vlYRxk.js";
|
|
4
|
-
import { n as a, t as AuthConfigTabs } from "./styles-yjbHBTlw.js";
|
|
5
|
-
import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-kDCtXq_6.js";
|
|
6
|
-
import { n as createLocalAuthPluginDefinitionSchema, t as createLocalAuthPartialDefinition } from "./models-BZmCbizK.js";
|
|
7
|
-
//#region src/local-auth/core/components/local-auth-definition-editor.tsx
|
|
8
|
-
init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
|
|
9
|
-
function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
|
|
10
|
-
const { definition, definitionContainer, saveDefinitionWithFeedback } = __mf_25();
|
|
11
|
-
const authPluginDefinitionSchema = __mf_23(createLocalAuthPluginDefinitionSchema);
|
|
12
|
-
const authDefinition = getAuthPluginDefinition(definition);
|
|
13
|
-
const roles = authDefinition.roles.filter((role) => !role.builtIn).map((role) => ({
|
|
14
|
-
label: role.name,
|
|
15
|
-
value: role.id
|
|
16
|
-
}));
|
|
17
|
-
const defaultValues = __mf_34(() => {
|
|
18
|
-
if (pluginMetadata?.config) return pluginMetadata.config;
|
|
19
|
-
return {
|
|
20
|
-
additionalUserAdminRoles: [],
|
|
21
|
-
requireNameOnRegistration: false
|
|
22
|
-
};
|
|
23
|
-
}, [pluginMetadata?.config]);
|
|
24
|
-
const form = __mf_26$1({
|
|
25
|
-
resolver: a(authPluginDefinitionSchema),
|
|
26
|
-
defaultValues
|
|
27
|
-
});
|
|
28
|
-
const { control, reset, handleSubmit } = form;
|
|
29
|
-
const authFeature = definition.features.find((f) => f.id === authDefinition.authFeatureRef);
|
|
30
|
-
if (!authFeature) throw new Error(`Auth feature not found for ref: ${authDefinition.authFeatureRef}`);
|
|
31
|
-
const accountsFeature = definition.features.find((f) => f.id === authDefinition.accountsFeatureRef);
|
|
32
|
-
if (!accountsFeature) throw new Error(`Accounts feature not found for ref: ${authDefinition.accountsFeatureRef}`);
|
|
33
|
-
const partialDef = __mf_34(() => createLocalAuthPartialDefinition(authFeature.name, accountsFeature.name), [authFeature.name, accountsFeature.name]);
|
|
34
|
-
const diff = __mf_34(() => __mf_167(definitionContainer.schema, definitionContainer.definition, partialDef), [definitionContainer, partialDef]);
|
|
35
|
-
const onSubmit = handleSubmit((data) => saveDefinitionWithFeedback((draftConfig) => {
|
|
36
|
-
const updatedData = { ...data };
|
|
37
|
-
__mf_55(definitionContainer, partialDef)(draftConfig);
|
|
38
|
-
__mf_26.setPluginConfig(draftConfig, metadata, updatedData, definitionContainer);
|
|
39
|
-
}, {
|
|
40
|
-
successMessage: "Successfully saved auth plugin!",
|
|
41
|
-
onSuccess: () => {
|
|
42
|
-
onSave();
|
|
43
|
-
}
|
|
44
|
-
}));
|
|
45
|
-
__mf_20({
|
|
46
|
-
control,
|
|
47
|
-
reset,
|
|
48
|
-
onSubmit
|
|
49
|
-
});
|
|
50
|
-
return /* @__PURE__ */ __mf_2("div", {
|
|
51
|
-
className: "auth:relative auth:flex auth:h-full auth:flex-1 auth:flex-col auth:gap-4 auth:overflow-hidden",
|
|
52
|
-
children: [/* @__PURE__ */ __mf_1(AuthConfigTabs, {}), /* @__PURE__ */ __mf_1("div", {
|
|
53
|
-
className: "auth:mb-[--action-bar-height] auth:flex auth:flex-1 auth:overflow-y-auto",
|
|
54
|
-
style: { "--action-bar-height": "52px" },
|
|
55
|
-
children: /* @__PURE__ */ __mf_2("form", {
|
|
56
|
-
onSubmit,
|
|
57
|
-
className: "auth:max-w-6xl auth:flex-1",
|
|
58
|
-
children: [/* @__PURE__ */ __mf_1("div", {
|
|
59
|
-
className: "auth:pb-16",
|
|
60
|
-
children: /* @__PURE__ */ __mf_2(__mf_176, { children: [
|
|
61
|
-
/* @__PURE__ */ __mf_2(__mf_177, { children: [/* @__PURE__ */ __mf_2(__mf_180, { children: [/* @__PURE__ */ __mf_1(__mf_181, { children: "Local Auth User Models" }), /* @__PURE__ */ __mf_1(__mf_179, { children: "The plugin will automatically configure the models it needs." })] }), /* @__PURE__ */ __mf_1(__mf_178, {
|
|
62
|
-
className: "auth:space-y-6",
|
|
63
|
-
children: /* @__PURE__ */ __mf_1(__mf_0, { diff })
|
|
64
|
-
})] }),
|
|
65
|
-
/* @__PURE__ */ __mf_2(__mf_177, { children: [/* @__PURE__ */ __mf_2(__mf_180, { children: [/* @__PURE__ */ __mf_1(__mf_181, { children: "User Management Permissions" }), /* @__PURE__ */ __mf_1(__mf_179, { children: "The \"admin\" role always has user management permissions. Optionally add more roles that can manage users and assign roles in the admin interface." })] }), /* @__PURE__ */ __mf_1(__mf_178, {
|
|
66
|
-
className: "auth:space-y-6",
|
|
67
|
-
children: /* @__PURE__ */ __mf_1(__mf_145, {
|
|
68
|
-
label: "Additional User Admin Roles",
|
|
69
|
-
name: "additionalUserAdminRoles",
|
|
70
|
-
control,
|
|
71
|
-
options: roles,
|
|
72
|
-
description: "Additional roles (beyond admin) that can manage users and assign roles."
|
|
73
|
-
})
|
|
74
|
-
})] }),
|
|
75
|
-
/* @__PURE__ */ __mf_2(__mf_177, { children: [/* @__PURE__ */ __mf_2(__mf_180, { children: [/* @__PURE__ */ __mf_1(__mf_181, { children: "Registration Settings" }), /* @__PURE__ */ __mf_1(__mf_179, { children: "Configure what information is collected during user registration." })] }), /* @__PURE__ */ __mf_1(__mf_178, {
|
|
76
|
-
className: "auth:space-y-6",
|
|
77
|
-
children: /* @__PURE__ */ __mf_1(__mf_234, {
|
|
78
|
-
label: "Require Name on Registration",
|
|
79
|
-
name: "requireNameOnRegistration",
|
|
80
|
-
control,
|
|
81
|
-
description: "When enabled, users must provide their name when registering."
|
|
82
|
-
})
|
|
83
|
-
})] })
|
|
84
|
-
] })
|
|
85
|
-
}), /* @__PURE__ */ __mf_1(__mf_116, {
|
|
86
|
-
form,
|
|
87
|
-
allowSaveWithoutDirty: !pluginMetadata || diff.hasChanges
|
|
88
|
-
})]
|
|
89
|
-
})
|
|
90
|
-
})]
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
//#endregion
|
|
94
|
-
//#region src/local-auth/core/web.ts
|
|
95
|
-
var AUTH_FEATURE_NAME = "accounts/auth";
|
|
96
|
-
var ACCOUNTS_FEATURE_NAME = "accounts/users";
|
|
97
|
-
var web_default = __mf_142({
|
|
98
|
-
name: "web",
|
|
99
|
-
dependencies: {
|
|
100
|
-
webConfig: __mf_263,
|
|
101
|
-
pluginDefaults: __mf_233
|
|
102
|
-
},
|
|
103
|
-
initialize: ({ webConfig, pluginDefaults }, { pluginKey }) => {
|
|
104
|
-
webConfig.components.set(pluginKey, LocalAuthDefinitionEditor);
|
|
105
|
-
pluginDefaults.builders.set(pluginKey, ({ draft }) => {
|
|
106
|
-
__mf_17.ensureFeatureByNameRecursively(draft, AUTH_FEATURE_NAME);
|
|
107
|
-
__mf_17.ensureFeatureByNameRecursively(draft, ACCOUNTS_FEATURE_NAME);
|
|
108
|
-
return {
|
|
109
|
-
config: {},
|
|
110
|
-
partialDef: createLocalAuthPartialDefinition(AUTH_FEATURE_NAME, ACCOUNTS_FEATURE_NAME)
|
|
111
|
-
};
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
//#endregion
|
|
116
|
-
export { web_default as default };
|
|
117
|
-
|
|
118
|
-
//# sourceMappingURL=web-DbeAaDTV.js.map
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { l as __mf_22, n as __mf_142 } 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-CO5Pvo0y.js";
|
|
2
|
-
import { c as __mf_8, s as __mf_7 } 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-37vlYRxk.js";
|
|
3
|
-
import { t as LOCAL_AUTH_MODELS } from "./model-names-BluImOzu.js";
|
|
4
|
-
//#region src/local-auth/admin/web.ts
|
|
5
|
-
var web_default = __mf_142({
|
|
6
|
-
name: "web",
|
|
7
|
-
dependencies: {
|
|
8
|
-
adminCrudActionWeb: __mf_7,
|
|
9
|
-
adminCrudColumnWeb: __mf_8
|
|
10
|
-
},
|
|
11
|
-
initialize: ({ adminCrudActionWeb, adminCrudColumnWeb }, { pluginKey }) => {
|
|
12
|
-
adminCrudActionWeb.actions.addMany([{
|
|
13
|
-
pluginKey,
|
|
14
|
-
name: "manage-roles",
|
|
15
|
-
label: "Manage Roles",
|
|
16
|
-
isAvailableForModel: (definition, modelId) => __mf_22.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
|
|
17
|
-
getNewAction: () => ({
|
|
18
|
-
type: "manage-roles",
|
|
19
|
-
position: "dropdown"
|
|
20
|
-
})
|
|
21
|
-
}, {
|
|
22
|
-
pluginKey,
|
|
23
|
-
name: "reset-password",
|
|
24
|
-
label: "Reset Password",
|
|
25
|
-
isAvailableForModel: (definition, modelId) => __mf_22.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
|
|
26
|
-
getNewAction: () => ({
|
|
27
|
-
type: "reset-password",
|
|
28
|
-
position: "dropdown"
|
|
29
|
-
})
|
|
30
|
-
}]);
|
|
31
|
-
adminCrudColumnWeb.columns.add({
|
|
32
|
-
pluginKey,
|
|
33
|
-
name: "roles",
|
|
34
|
-
label: "Roles",
|
|
35
|
-
isAvailableForModel: (definition, modelId) => __mf_22.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
|
|
36
|
-
getNewColumn: () => ({
|
|
37
|
-
type: "roles",
|
|
38
|
-
label: "Roles"
|
|
39
|
-
})
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
//#endregion
|
|
44
|
-
export { web_default as default };
|
|
45
|
-
|
|
46
|
-
//# sourceMappingURL=web-miDovYk_.js.map
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { t as __vitePreload } from "./assets/vite-preload-helper-ARKYL6bp.js";
|
|
2
|
-
import { init as init$1 } from "@module-federation/runtime";
|
|
3
|
-
//#region virtual:mf-REMOTE_ENTRY_SSR_ID:__mfe_internal__plugin-auth__remoteEntry_js
|
|
4
|
-
var exposesMapPromise;
|
|
5
|
-
async function getExposesMap() {
|
|
6
|
-
exposesMapPromise ??= __vitePreload(() => import("./assets/virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-DGjg7Brm.js").then((mod) => mod.default ?? mod), [], import.meta.url);
|
|
7
|
-
return exposesMapPromise;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Called by the MF runtime on the host to register this remote's share scope.
|
|
11
|
-
* On the server the host has already initialised the runtime, so we just need
|
|
12
|
-
* to set up a minimal runtime instance for the remote container.
|
|
13
|
-
*/
|
|
14
|
-
async function init(shared = {}, initScope = []) {
|
|
15
|
-
const initRes = init$1({
|
|
16
|
-
name: "plugin-auth",
|
|
17
|
-
remotes: [],
|
|
18
|
-
shared: {}
|
|
19
|
-
});
|
|
20
|
-
const initToken = { from: "plugin-auth" };
|
|
21
|
-
if (initScope.indexOf(initToken) >= 0) return;
|
|
22
|
-
initScope.push(initToken);
|
|
23
|
-
initRes.initShareScopeMap("default", shared);
|
|
24
|
-
try {
|
|
25
|
-
await Promise.all(await initRes.initializeSharing("default", {
|
|
26
|
-
strategy: "version-first",
|
|
27
|
-
from: "build",
|
|
28
|
-
initScope
|
|
29
|
-
}));
|
|
30
|
-
} catch (e) {
|
|
31
|
-
console.error("[Module Federation SSR]", e);
|
|
32
|
-
}
|
|
33
|
-
return initRes;
|
|
34
|
-
}
|
|
35
|
-
async function getExposes(moduleName) {
|
|
36
|
-
const exposesMap = await getExposesMap();
|
|
37
|
-
if (!(moduleName in exposesMap)) throw new Error(`[Module Federation] Module ${moduleName} does not exist in container.`);
|
|
38
|
-
return exposesMap[moduleName]().then((res) => () => res);
|
|
39
|
-
}
|
|
40
|
-
//#endregion
|
|
41
|
-
export { getExposes as get, init };
|
|
42
|
-
|
|
43
|
-
//# sourceMappingURL=remoteEntry.ssr.js.map
|