@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.
- package/CHANGELOG.md +40 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +14 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +14 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +7 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +7 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +14 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +14 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +7 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +14 -0
- package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +7 -0
- package/dist/better-auth/constants/packages.d.ts +1 -1
- package/dist/better-auth/constants/packages.js +1 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.d.ts +2 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/better-auth-email-templates.generator.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.d.ts +4 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.d.ts +3 -0
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts +43 -6
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +21 -2
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +46 -10
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +18 -2
- 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 +24 -6
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js +8 -5
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts +20 -4
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js +10 -5
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/plugins/better-auth.plugin.ts +7 -4
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +76 -59
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/user-session.service.ts +58 -46
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +7 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +42 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +7 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +70 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +14 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +7 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +7 -0
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +7 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +14 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +14 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +7 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +7 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +14 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +14 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +7 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +14 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +7 -23
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +28 -66
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +7 -23
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +2 -8
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +35 -66
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +1 -5
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts +2 -2
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +2 -2
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +8 -4
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts +3 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +4 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +9 -6
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +2 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +5 -3
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts +4 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +62 -8
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +21 -11
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +152 -10
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +52 -2
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +14 -4
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts +9 -3
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js +6 -3
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +102 -8
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +19 -5
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.d.ts +0 -4
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.js +2 -15
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.ts +2 -16
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.worker.d.ts +6 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.worker.js +18 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.worker.ts +22 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js +1 -2
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +4 -2
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.ts +0 -2
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +9 -0
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +52 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +9 -0
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +77 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +2 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +2 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js +1 -1
- 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 +14 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +7 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +14 -0
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +7 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts +2 -2
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts +10 -2
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js +8 -5
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.js +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.d.ts +3 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.js +2 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/{auth-module.generator.d.ts → placeholder-auth-module.generator.d.ts} +20 -3
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/{auth-module.generator.js → placeholder-auth-module.generator.js} +16 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.d.ts +5 -21
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.js +17 -26
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.ts +21 -31
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/web/assets/auth-D8BnFQKk.js +1 -0
- package/dist/web/assets/{common-CLtpg163.js → common-7-ZtKO5B.js} +3 -3
- package/dist/web/assets/{common-ooa00sM_.js → common-Aq-HXybV.js} +6 -6
- package/dist/web/assets/{common-C0Hur22D.js → common-B8N9gx2s.js} +4 -4
- package/dist/web/assets/{common-BFKR_7HQ.js → common-BPbNs2A1.js} +6 -6
- package/dist/web/assets/{common-CTYcv1u_.js → common-B_XZ3l9w.js} +3 -3
- package/dist/web/assets/{common-B8Z1_D6-.js → common-CDrUdhRf.js} +4 -4
- package/dist/web/assets/{dist-DicVrB_Z.js → dist-D3CkiDKT.js} +387 -262
- package/dist/web/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-CtbvyMZJ.js → dist-SBfmsOB2.js} +43 -359
- package/dist/web/assets/{get-auth-plugin-definition-DBdchbBZ.js → get-auth-plugin-definition-D3ocnNxw.js} +2 -2
- package/dist/web/assets/hostInit-D3RxwboF.js +99 -0
- package/dist/web/assets/{index-CR54yoeW.js → index-CozZxQl1.js} +2 -2
- package/dist/web/assets/{mf-entry-bootstrap-0-4f84e81c.js → mf-entry-bootstrap-0-069a3ab2.js} +5 -2
- package/dist/web/assets/{model-utils-CQpTF3uf.js → model-utils-CYaLYwoX.js} +48 -14
- package/dist/web/assets/{models-Bc3L4Vsl.js → models-BX4xFiEn.js} +3 -3
- package/dist/web/assets/{models-BIKzGkW3.js → models-k-iaCft-.js} +3 -3
- package/dist/web/assets/{plugin-definition-33i4r91s.js → plugin-definition-BI565qFo.js} +3 -3
- package/dist/web/assets/{plugin-definition-BhNnSvrD.js → plugin-definition-CI1aEVGv.js} +3 -3
- package/dist/web/assets/{styles-BT_OTXuv.js → styles-f4jHVv0S.js} +15 -12
- package/dist/web/assets/{virtualExposes-B_hX31Ln.js → virtualExposes-BHQhgLE-.js} +1 -1
- package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-aH8n-Nbe.js +259 -0
- 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
- 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
- package/dist/web/assets/{web-Dso6eI9u.js → web-BRvS0HRS.js} +17 -17
- package/dist/web/assets/{web-aKoJoBnQ.js → web-CkbTu31Q.js} +16 -16
- package/dist/web/assets/{web-DYbNyLPi.js → web-Cn3uvuFs.js} +35 -35
- package/dist/web/assets/{web-BDeHApaZ.js → web-DCK_tLVa.js} +31 -18
- package/dist/web/assets/{web-BXB-pvWJ.js → web-Dh6pUTrF.js} +20 -20
- package/dist/web/assets/{web-CJlCNegu.js → web-YXVJWeXy.js} +3 -3
- package/dist/web/assets/{web-BC9MejP0.js → web-nLSlkJy_.js} +3 -3
- package/dist/web/index.html +2 -2
- package/dist/web/remoteEntry.js +1 -1
- package/dist/web/remoteEntry.ssr.js +1 -1
- package/package.json +26 -26
- package/dist/web/assets/auth-DS8ZnZZr.js +0 -1
- package/dist/web/assets/hostInit-CDVLjNbq.js +0 -119
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as __mf_88, 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-
|
|
2
|
-
import {
|
|
3
|
-
import { c as __mf_189, d as
|
|
4
|
-
import { n as createAuthRoleSchema, r as createDefaultAuthRoles, t as createAuthPluginDefinitionSchema } from "./plugin-definition-
|
|
5
|
-
import { a as
|
|
6
|
-
import { n as a, t as AuthConfigTabs } from "./styles-
|
|
1
|
+
import { n as __mf_88, 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 { A as __mf_76, E as __mf_27$1, K as useWatch, L as MdAdd, M as __mf_78, N as __mf_81, O as __mf_73, R as MdDeleteOutline, U as useFieldArray$1, W as useForm, _ as __mf_176, b as __mf_19, bt as __mf_2, ct as __mf_27, d as __mf_168, dt as __mf_31, f as __mf_169, g as __mf_175, h as __mf_174, ht as init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__, i as __mf_124, j as __mf_77, k as __mf_75, l as __mf_166, m as __mf_173, n as __mf_1$1, p as __mf_172, pt as __mf_35, r as __mf_116, t as __mf_0$1, u as __mf_167, v as __mf_177, vt as __mf_0, w as __mf_266, x as __mf_2$1, y as __mf_181, yt as __mf_1, z as MdEdit } 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 { c as __mf_189, d as __mf_233, f as __mf_26, n as __mf_142, o as __mf_17, p as __mf_262, 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";
|
|
4
|
+
import { n as createAuthRoleSchema, r as createDefaultAuthRoles, t as createAuthPluginDefinitionSchema } from "./plugin-definition-CI1aEVGv.js";
|
|
5
|
+
import { a as __mf_26$1, i as __mf_25, n as __mf_20, o as __mf_3, r as __mf_23 } 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
|
+
import { n as a, t as AuthConfigTabs } from "./styles-f4jHVv0S.js";
|
|
7
7
|
//#region ../../node_modules/.pnpm/@hookform+lenses@0.8.1_react-hook-form@7.71.1_react@19.1.0/node_modules/@hookform/lenses/dist/rhf/index.js
|
|
8
8
|
init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
|
|
9
9
|
function useFieldArray(props) {
|
|
@@ -48,7 +48,7 @@ function useFieldArray(props) {
|
|
|
48
48
|
init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
|
|
49
49
|
function RoleDialog({ open, onOpenChange, role, isNew = false, onSave }) {
|
|
50
50
|
const { control, handleSubmit } = useForm({
|
|
51
|
-
resolver: a(
|
|
51
|
+
resolver: a(__mf_23(createAuthRoleSchema)),
|
|
52
52
|
values: role
|
|
53
53
|
});
|
|
54
54
|
const onSubmit = handleSubmit((data) => {
|
|
@@ -56,39 +56,39 @@ function RoleDialog({ open, onOpenChange, role, isNew = false, onSave }) {
|
|
|
56
56
|
onOpenChange?.(false);
|
|
57
57
|
});
|
|
58
58
|
const formId = __mf_27();
|
|
59
|
-
return /* @__PURE__ */ __mf_1(
|
|
59
|
+
return /* @__PURE__ */ __mf_1(__mf_73, {
|
|
60
60
|
open,
|
|
61
61
|
onOpenChange,
|
|
62
|
-
children: /* @__PURE__ */ __mf_1(
|
|
62
|
+
children: /* @__PURE__ */ __mf_1(__mf_75, { children: /* @__PURE__ */ __mf_2("form", {
|
|
63
63
|
id: formId,
|
|
64
64
|
onSubmit: (e) => {
|
|
65
65
|
e.stopPropagation();
|
|
66
66
|
return onSubmit(e);
|
|
67
67
|
},
|
|
68
68
|
children: [
|
|
69
|
-
/* @__PURE__ */ __mf_2(
|
|
69
|
+
/* @__PURE__ */ __mf_2(__mf_78, { children: [/* @__PURE__ */ __mf_1(__mf_81, { children: isNew ? "Add Role" : "Edit Role" }), /* @__PURE__ */ __mf_1(__mf_76, { children: isNew ? "Enter the details for the new role." : "Update the role details below." })] }),
|
|
70
70
|
/* @__PURE__ */ __mf_2("div", {
|
|
71
71
|
className: "auth:space-y-4 auth:py-4",
|
|
72
|
-
children: [/* @__PURE__ */ __mf_1(
|
|
72
|
+
children: [/* @__PURE__ */ __mf_1(__mf_124, {
|
|
73
73
|
label: "Role Name",
|
|
74
74
|
name: "name",
|
|
75
75
|
control,
|
|
76
76
|
placeholder: "Enter role name"
|
|
77
|
-
}), /* @__PURE__ */ __mf_1(
|
|
77
|
+
}), /* @__PURE__ */ __mf_1(__mf_124, {
|
|
78
78
|
label: "Description",
|
|
79
79
|
name: "comment",
|
|
80
80
|
control,
|
|
81
81
|
placeholder: "Describe this role's purpose"
|
|
82
82
|
})]
|
|
83
83
|
}),
|
|
84
|
-
/* @__PURE__ */ __mf_2(
|
|
84
|
+
/* @__PURE__ */ __mf_2(__mf_77, { children: [/* @__PURE__ */ __mf_1(__mf_27$1, {
|
|
85
85
|
type: "button",
|
|
86
86
|
variant: "outline",
|
|
87
87
|
onClick: () => {
|
|
88
88
|
onOpenChange?.(false);
|
|
89
89
|
},
|
|
90
90
|
children: "Cancel"
|
|
91
|
-
}), /* @__PURE__ */ __mf_2(
|
|
91
|
+
}), /* @__PURE__ */ __mf_2(__mf_27$1, {
|
|
92
92
|
form: formId,
|
|
93
93
|
type: "submit",
|
|
94
94
|
children: [isNew ? "Add" : "Update", " Role"]
|
|
@@ -101,7 +101,7 @@ function RoleDialog({ open, onOpenChange, role, isNew = false, onSave }) {
|
|
|
101
101
|
//#region src/auth/core/components/role-editor-form/role-editor-form.tsx
|
|
102
102
|
init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
|
|
103
103
|
function RoleEditorForm({ className, control }) {
|
|
104
|
-
const { requestConfirm } =
|
|
104
|
+
const { requestConfirm } = __mf_266();
|
|
105
105
|
const { append, update, remove } = useFieldArray({
|
|
106
106
|
control,
|
|
107
107
|
name: "roles"
|
|
@@ -127,27 +127,27 @@ function RoleEditorForm({ className, control }) {
|
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
|
-
return /* @__PURE__ */ __mf_2(
|
|
130
|
+
return /* @__PURE__ */ __mf_2(__mf_173, {
|
|
131
131
|
className,
|
|
132
|
-
children: [/* @__PURE__ */ __mf_2(
|
|
132
|
+
children: [/* @__PURE__ */ __mf_2(__mf_176, { children: [/* @__PURE__ */ __mf_1(__mf_177, { children: "User Roles" }), /* @__PURE__ */ __mf_1(__mf_175, { children: "Define roles for your application. Default roles are protected and cannot be removed." })] }), /* @__PURE__ */ __mf_2(__mf_174, {
|
|
133
133
|
className: "auth:space-y-4",
|
|
134
134
|
children: [
|
|
135
|
-
roles.map((role, roleIdx) => /* @__PURE__ */ __mf_2(
|
|
135
|
+
roles.map((role, roleIdx) => /* @__PURE__ */ __mf_2(__mf_166, { children: [/* @__PURE__ */ __mf_2(__mf_169, { children: [/* @__PURE__ */ __mf_1(__mf_168, {
|
|
136
136
|
title: "Name",
|
|
137
137
|
children: /* @__PURE__ */ __mf_1("div", {
|
|
138
138
|
className: "auth:flex auth:items-center auth:gap-2",
|
|
139
139
|
children: /* @__PURE__ */ __mf_1("span", { children: role.name })
|
|
140
140
|
})
|
|
141
|
-
}), /* @__PURE__ */ __mf_1(
|
|
141
|
+
}), /* @__PURE__ */ __mf_1(__mf_168, {
|
|
142
142
|
title: "Description",
|
|
143
143
|
children: role.comment.trim() || /* @__PURE__ */ __mf_1("span", {
|
|
144
144
|
className: "auth:text-muted-foreground",
|
|
145
145
|
children: "No description"
|
|
146
146
|
})
|
|
147
|
-
})] }), /* @__PURE__ */ __mf_2(
|
|
147
|
+
})] }), /* @__PURE__ */ __mf_2(__mf_167, { children: [role.builtIn && /* @__PURE__ */ __mf_1(__mf_19, {
|
|
148
148
|
variant: "secondary",
|
|
149
149
|
children: "Default Role"
|
|
150
|
-
}), !role.builtIn && /* @__PURE__ */ __mf_2(__mf_0, { children: [/* @__PURE__ */ __mf_1(
|
|
150
|
+
}), !role.builtIn && /* @__PURE__ */ __mf_2(__mf_0, { children: [/* @__PURE__ */ __mf_1(__mf_27$1, {
|
|
151
151
|
variant: "ghost",
|
|
152
152
|
size: "icon",
|
|
153
153
|
title: "Edit",
|
|
@@ -157,7 +157,7 @@ function RoleEditorForm({ className, control }) {
|
|
|
157
157
|
setIsEditing(true);
|
|
158
158
|
},
|
|
159
159
|
children: /* @__PURE__ */ __mf_1(MdEdit, {})
|
|
160
|
-
}), /* @__PURE__ */ __mf_1(
|
|
160
|
+
}), /* @__PURE__ */ __mf_1(__mf_27$1, {
|
|
161
161
|
variant: "ghostDestructive",
|
|
162
162
|
size: "icon",
|
|
163
163
|
title: "Delete",
|
|
@@ -174,7 +174,7 @@ function RoleEditorForm({ className, control }) {
|
|
|
174
174
|
isNew: roleToEdit ? !roles.some((r) => r.id === roleToEdit.id) : true,
|
|
175
175
|
onSave: handleSaveRole
|
|
176
176
|
}),
|
|
177
|
-
/* @__PURE__ */ __mf_2(
|
|
177
|
+
/* @__PURE__ */ __mf_2(__mf_27$1, {
|
|
178
178
|
variant: "secondary",
|
|
179
179
|
size: "sm",
|
|
180
180
|
onClick: () => {
|
|
@@ -196,8 +196,8 @@ function RoleEditorForm({ className, control }) {
|
|
|
196
196
|
//#region src/auth/core/components/auth-definition-editor.tsx
|
|
197
197
|
init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
|
|
198
198
|
function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
|
|
199
|
-
const { definition, definitionContainer, schemaParserContext, saveDefinitionWithFeedback } =
|
|
200
|
-
const authPluginDefinitionSchema =
|
|
199
|
+
const { definition, definitionContainer, schemaParserContext, saveDefinitionWithFeedback } = __mf_25();
|
|
200
|
+
const authPluginDefinitionSchema = __mf_23(createAuthPluginDefinitionSchema);
|
|
201
201
|
const availableImplementations = __mf_189(schemaParserContext.pluginStore, metadata.key);
|
|
202
202
|
const defaultImplementation = availableImplementations.find((i) => i.fullyQualifiedName === "@baseplate-dev/plugin-auth:local-auth") ?? availableImplementations[0];
|
|
203
203
|
const defaultValues = __mf_31(() => {
|
|
@@ -215,7 +215,7 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
|
|
|
215
215
|
pluginMetadata?.config,
|
|
216
216
|
defaultImplementation
|
|
217
217
|
]);
|
|
218
|
-
const form =
|
|
218
|
+
const form = __mf_26$1({
|
|
219
219
|
resolver: a(authPluginDefinitionSchema),
|
|
220
220
|
defaultValues
|
|
221
221
|
});
|
|
@@ -245,7 +245,7 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
|
|
|
245
245
|
}, 100);
|
|
246
246
|
}
|
|
247
247
|
}));
|
|
248
|
-
|
|
248
|
+
__mf_20({
|
|
249
249
|
control,
|
|
250
250
|
reset,
|
|
251
251
|
onSubmit
|
|
@@ -260,9 +260,9 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
|
|
|
260
260
|
className: "auth:max-w-6xl auth:flex-1",
|
|
261
261
|
children: [/* @__PURE__ */ __mf_2("div", {
|
|
262
262
|
className: "auth:pb-16",
|
|
263
|
-
children: [!isSelectedImplementationActive && selectedPlugin && !hasSelectedImplementationChanged && /* @__PURE__ */ __mf_2(
|
|
263
|
+
children: [!isSelectedImplementationActive && selectedPlugin && !hasSelectedImplementationChanged && /* @__PURE__ */ __mf_2(__mf_0$1, {
|
|
264
264
|
variant: "warning",
|
|
265
|
-
children: [/* @__PURE__ */ __mf_1(
|
|
265
|
+
children: [/* @__PURE__ */ __mf_1(__mf_2$1, { children: "Implementation Provider Not Active" }), /* @__PURE__ */ __mf_1(__mf_1$1, { children: /* @__PURE__ */ __mf_2("p", { children: [
|
|
266
266
|
"The selected implementation provider is not active. Please make sure",
|
|
267
267
|
" ",
|
|
268
268
|
/* @__PURE__ */ __mf_1(__mf_53, {
|
|
@@ -273,7 +273,7 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
|
|
|
273
273
|
" ",
|
|
274
274
|
"before syncing."
|
|
275
275
|
] }) })]
|
|
276
|
-
}), /* @__PURE__ */ __mf_2(
|
|
276
|
+
}), /* @__PURE__ */ __mf_2(__mf_172, { children: [/* @__PURE__ */ __mf_2(__mf_173, { children: [/* @__PURE__ */ __mf_2(__mf_176, { children: [/* @__PURE__ */ __mf_1(__mf_177, { children: "General Settings" }), /* @__PURE__ */ __mf_1(__mf_175, { children: "Configure the general settings for the auth plugin." })] }), /* @__PURE__ */ __mf_2(__mf_174, {
|
|
277
277
|
className: "auth:space-y-6",
|
|
278
278
|
children: [
|
|
279
279
|
/* @__PURE__ */ __mf_1(__mf_3, {
|
|
@@ -290,7 +290,7 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
|
|
|
290
290
|
canCreate: true,
|
|
291
291
|
description: "Specify the feature path where user account models will be generated"
|
|
292
292
|
}),
|
|
293
|
-
/* @__PURE__ */ __mf_1(
|
|
293
|
+
/* @__PURE__ */ __mf_1(__mf_181, {
|
|
294
294
|
label: "Authentication Provider",
|
|
295
295
|
name: "implementationPluginKey",
|
|
296
296
|
control,
|
|
@@ -311,7 +311,7 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
|
|
|
311
311
|
})
|
|
312
312
|
]
|
|
313
313
|
})] }), /* @__PURE__ */ __mf_1(RoleEditorForm, { control })] })]
|
|
314
|
-
}), /* @__PURE__ */ __mf_1(
|
|
314
|
+
}), /* @__PURE__ */ __mf_1(__mf_116, {
|
|
315
315
|
form,
|
|
316
316
|
allowSaveWithoutDirty: !pluginMetadata
|
|
317
317
|
})]
|
|
@@ -328,8 +328,8 @@ var PARENT_AUTH_FQN = "@baseplate-dev/plugin-auth:auth";
|
|
|
328
328
|
var web_default = __mf_142({
|
|
329
329
|
name: "web",
|
|
330
330
|
dependencies: {
|
|
331
|
-
webConfig:
|
|
332
|
-
pluginDefaults:
|
|
331
|
+
webConfig: __mf_262,
|
|
332
|
+
pluginDefaults: __mf_233
|
|
333
333
|
},
|
|
334
334
|
initialize: ({ webConfig, pluginDefaults }, { pluginKey }) => {
|
|
335
335
|
webConfig.components.set(pluginKey, AuthDefinitionEditor);
|
|
@@ -352,4 +352,4 @@ var web_default = __mf_142({
|
|
|
352
352
|
//#endregion
|
|
353
353
|
export { web_default as default };
|
|
354
354
|
|
|
355
|
-
//# sourceMappingURL=web-
|
|
355
|
+
//# sourceMappingURL=web-Cn3uvuFs.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { O as isEqual, S as createFieldMapSpec, f as withPlaceholderSlots, n as FeatureUtils, nt as createPluginSpec, t as ModelUtils } from "./model-utils-
|
|
1
|
+
import { $ as __mf_11, C as __mf_263, D as __mf_57, E as __mf_27, G as useFormState, I as create, M as __mf_78, N as __mf_81, O as __mf_73, P as __mf_82, T as __mf_268, W as useForm, Z as __mfDefaultExport, a as __mf_141, b as __mf_19, bt as __mf_2, ct as __mf_27$1, dt as __mf_31, ft as __mf_34, ht as init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__, k as __mf_75, n as __mf_1$1, ot as __mf_23, pt as __mf_35, st as __mf_26, t as __mf_0, x as __mf_2$1, 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";
|
|
2
|
+
import { O as isEqual, S as createFieldMapSpec, f as withPlaceholderSlots, n as FeatureUtils, nt as createPluginSpec, t as ModelUtils } from "./model-utils-CYaLYwoX.js";
|
|
3
3
|
//#region ../../packages/project-builder-lib/dist/web/components/definition-diff-alert.js
|
|
4
4
|
var CHANGE_TYPE_BADGE_VARIANT = {
|
|
5
5
|
added: "default",
|
|
@@ -14,18 +14,18 @@ function DefinitionDiffEntryRow({ entry }) {
|
|
|
14
14
|
children: entry.label
|
|
15
15
|
}), __mf_2("div", {
|
|
16
16
|
className: "flex items-center gap-2",
|
|
17
|
-
children: [__mf_1(
|
|
17
|
+
children: [__mf_1(__mf_19, {
|
|
18
18
|
variant: CHANGE_TYPE_BADGE_VARIANT[entry.type],
|
|
19
19
|
children: entry.type
|
|
20
|
-
}), __mf_2(
|
|
21
|
-
render: __mf_1(
|
|
20
|
+
}), __mf_2(__mf_73, { children: [__mf_1(__mf_82, {
|
|
21
|
+
render: __mf_1(__mf_27, {
|
|
22
22
|
variant: "ghost",
|
|
23
23
|
size: "sm"
|
|
24
24
|
}),
|
|
25
25
|
children: "Details"
|
|
26
|
-
}), __mf_2(
|
|
26
|
+
}), __mf_2(__mf_75, {
|
|
27
27
|
width: "xl",
|
|
28
|
-
children: [__mf_1(
|
|
28
|
+
children: [__mf_1(__mf_78, { children: __mf_2(__mf_81, { children: [
|
|
29
29
|
entry.label,
|
|
30
30
|
" — ",
|
|
31
31
|
entry.type
|
|
@@ -37,7 +37,7 @@ function DefinitionDiffEntryRow({ entry }) {
|
|
|
37
37
|
}) : entry.type === "removed" ? __mf_1("pre", {
|
|
38
38
|
className: "text-xs whitespace-pre-wrap",
|
|
39
39
|
children: JSON.stringify(entry.current, null, 2)
|
|
40
|
-
}) : __mf_1(
|
|
40
|
+
}) : __mf_1(__mf_141, {
|
|
41
41
|
oldValue: entry.current,
|
|
42
42
|
newValue: entry.merged
|
|
43
43
|
})
|
|
@@ -47,9 +47,9 @@ function DefinitionDiffEntryRow({ entry }) {
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
function DefinitionDiffAlert({ diff, upToDateMessage = "All changes are up to date. No changes needed." }) {
|
|
50
|
-
if (!diff.hasChanges) return __mf_2(
|
|
50
|
+
if (!diff.hasChanges) return __mf_2(__mf_0, {
|
|
51
51
|
variant: "default",
|
|
52
|
-
children: [__mf_1(
|
|
52
|
+
children: [__mf_1(__mf_2$1, { children: "Up to Date" }), __mf_1(__mf_1$1, { children: upToDateMessage })]
|
|
53
53
|
});
|
|
54
54
|
return __mf_2("div", {
|
|
55
55
|
className: "overflow-hidden rounded-lg border",
|
|
@@ -105,7 +105,7 @@ function FeatureComboboxField({ canCreate, value, ...rest }) {
|
|
|
105
105
|
value,
|
|
106
106
|
canCreate
|
|
107
107
|
]);
|
|
108
|
-
return __mf_1(
|
|
108
|
+
return __mf_1(__mf_57, {
|
|
109
109
|
placeholder: "Select a feature",
|
|
110
110
|
...rest,
|
|
111
111
|
inputValue: searchQuery,
|
|
@@ -116,7 +116,7 @@ function FeatureComboboxField({ canCreate, value, ...rest }) {
|
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
function FeatureComboboxFieldController({ name, control, ...rest }) {
|
|
119
|
-
const { field, fieldState: { error } } =
|
|
119
|
+
const { field, fieldState: { error } } = __mf_268({
|
|
120
120
|
name,
|
|
121
121
|
control
|
|
122
122
|
}, rest);
|
|
@@ -154,7 +154,7 @@ function ModelComboboxField({ canCreate, value, ...rest }) {
|
|
|
154
154
|
value,
|
|
155
155
|
canCreate
|
|
156
156
|
]);
|
|
157
|
-
return __mf_1(
|
|
157
|
+
return __mf_1(__mf_57, {
|
|
158
158
|
placeholder: "Select a model",
|
|
159
159
|
...rest,
|
|
160
160
|
onInputValueChange: canCreate ? setSearchQuery : void 0,
|
|
@@ -163,7 +163,7 @@ function ModelComboboxField({ canCreate, value, ...rest }) {
|
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
function ModelComboboxFieldController({ name, control, ...rest }) {
|
|
166
|
-
const { field, fieldState: { error } } =
|
|
166
|
+
const { field, fieldState: { error } } = __mf_268({
|
|
167
167
|
name,
|
|
168
168
|
control
|
|
169
169
|
}, rest);
|
|
@@ -211,7 +211,7 @@ function useBlockBeforeContinue() {
|
|
|
211
211
|
return requestBlocker;
|
|
212
212
|
}
|
|
213
213
|
function useBlockerDialog(options) {
|
|
214
|
-
const id = __mf_27();
|
|
214
|
+
const id = __mf_27$1();
|
|
215
215
|
const addBlocker = useBlockerDialogState((state) => state.addBlocker);
|
|
216
216
|
const removeBlocker = useBlockerDialogState((state) => state.removeBlocker);
|
|
217
217
|
__mf_26(() => {
|
|
@@ -310,7 +310,7 @@ function useResettableForm(props) {
|
|
|
310
310
|
__mf_26(() => {
|
|
311
311
|
if (oldValues.current && !isEqual(oldValues.current.oldDefaultValues, props?.defaultValues)) {
|
|
312
312
|
reset(props?.defaultValues);
|
|
313
|
-
if (isDirty && updatedExternally)
|
|
313
|
+
if (isDirty && updatedExternally) __mf_263.warning("Contents were updated externally so form was reset!");
|
|
314
314
|
}
|
|
315
315
|
if (!oldValues.current || !isEqual(oldValues.current.oldDefaultValues, props?.defaultValues)) oldValues.current = { oldDefaultValues: props?.defaultValues };
|
|
316
316
|
}, [
|
|
@@ -386,12 +386,25 @@ var modelTransformerWebSpec = createFieldMapSpec("core/model-transformer-web", (
|
|
|
386
386
|
getWebConfigs: () => [...values.transformers.values()]
|
|
387
387
|
}) });
|
|
388
388
|
//#endregion
|
|
389
|
+
//#region ../../packages/project-builder-lib/dist/web/specs/web-app-schema-extension-web-spec.js
|
|
390
|
+
function createWebAppSettingsWebConfig(config) {
|
|
391
|
+
return config;
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Spec for registering plugin-contributed UI on the web app settings page.
|
|
395
|
+
*
|
|
396
|
+
* Keyed by plugin key; each entry supplies a React component rendered in the
|
|
397
|
+
* Features section, bound to the shared web app form. The schema counterpart is
|
|
398
|
+
* `webAppSchemaExtensionSpec`, which stores the values under `pluginData`.
|
|
399
|
+
*/
|
|
400
|
+
var webAppSchemaExtensionWebSpec = createFieldMapSpec("core/web-app-schema-extension-web", (t) => ({ configs: t.map() }));
|
|
401
|
+
//#endregion
|
|
389
402
|
//#region ../../packages/project-builder-lib/dist/web/utils/form.js
|
|
390
403
|
function setUndefinedIfEmpty(value) {
|
|
391
404
|
if (value === "") return void 0;
|
|
392
405
|
return value;
|
|
393
406
|
}
|
|
394
407
|
//#endregion
|
|
395
|
-
export { DefinitionDiffAlert, ErrorHandlerContext, FeatureComboboxField, FeatureComboboxFieldController, ModelComboboxField, ModelComboboxFieldController, ProjectDefinitionContext, adminCrudActionWebSpec, adminCrudColumnWebSpec, adminCrudInputWebSpec, createAdminCrudActionWebConfig, createAdminCrudColumnWebConfig, createAdminCrudInputWebConfig, createModelTransformerWebConfig, entityTypeUrlWebSpec, modelTransformerWebSpec, setUndefinedIfEmpty, useBlockBeforeContinue, useBlockDirtyFormNavigate, useBlockUnsavedChangesNavigate, useBlockerDialog, useBlockerDialogState, useDefinitionSchema, useErrorHandler, useProjectDefinition, useResettableForm };
|
|
408
|
+
export { DefinitionDiffAlert, ErrorHandlerContext, FeatureComboboxField, FeatureComboboxFieldController, ModelComboboxField, ModelComboboxFieldController, ProjectDefinitionContext, adminCrudActionWebSpec, adminCrudColumnWebSpec, adminCrudInputWebSpec, createAdminCrudActionWebConfig, createAdminCrudColumnWebConfig, createAdminCrudInputWebConfig, createModelTransformerWebConfig, createWebAppSettingsWebConfig, entityTypeUrlWebSpec, modelTransformerWebSpec, setUndefinedIfEmpty, useBlockBeforeContinue, useBlockDirtyFormNavigate, useBlockUnsavedChangesNavigate, useBlockerDialog, useBlockerDialogState, useDefinitionSchema, useErrorHandler, useProjectDefinition, useResettableForm, webAppSchemaExtensionWebSpec };
|
|
396
409
|
|
|
397
|
-
//# sourceMappingURL=web-
|
|
410
|
+
//# sourceMappingURL=web-DCK_tLVa.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as __mf_167, d as
|
|
3
|
-
import { a as
|
|
4
|
-
import { n as a, t as AuthConfigTabs } from "./styles-
|
|
5
|
-
import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-
|
|
6
|
-
import { n as createLocalAuthPluginDefinitionSchema, t as createLocalAuthPartialDefinition } from "./models-
|
|
1
|
+
import { S as __mf_230, _ as __mf_176, bt as __mf_2, dt as __mf_31, g as __mf_175, h as __mf_174, ht as init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__, m as __mf_173, o as __mf_145, p as __mf_172, r as __mf_116, v as __mf_177, 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";
|
|
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_262 } 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
|
+
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-QrOyqu9V.js";
|
|
4
|
+
import { n as a, t as AuthConfigTabs } from "./styles-f4jHVv0S.js";
|
|
5
|
+
import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-D3ocnNxw.js";
|
|
6
|
+
import { n as createLocalAuthPluginDefinitionSchema, t as createLocalAuthPartialDefinition } from "./models-k-iaCft-.js";
|
|
7
7
|
//#region src/local-auth/core/components/local-auth-definition-editor.tsx
|
|
8
8
|
init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
|
|
9
9
|
function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
|
|
10
|
-
const { definition, definitionContainer, saveDefinitionWithFeedback } =
|
|
11
|
-
const authPluginDefinitionSchema =
|
|
10
|
+
const { definition, definitionContainer, saveDefinitionWithFeedback } = __mf_25();
|
|
11
|
+
const authPluginDefinitionSchema = __mf_23(createLocalAuthPluginDefinitionSchema);
|
|
12
12
|
const authDefinition = getAuthPluginDefinition(definition);
|
|
13
13
|
const roles = authDefinition.roles.filter((role) => !role.builtIn).map((role) => ({
|
|
14
14
|
label: role.name,
|
|
@@ -21,7 +21,7 @@ function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSav
|
|
|
21
21
|
requireNameOnRegistration: false
|
|
22
22
|
};
|
|
23
23
|
}, [pluginMetadata?.config]);
|
|
24
|
-
const form =
|
|
24
|
+
const form = __mf_26$1({
|
|
25
25
|
resolver: a(authPluginDefinitionSchema),
|
|
26
26
|
defaultValues
|
|
27
27
|
});
|
|
@@ -42,7 +42,7 @@ function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSav
|
|
|
42
42
|
onSave();
|
|
43
43
|
}
|
|
44
44
|
}));
|
|
45
|
-
|
|
45
|
+
__mf_20({
|
|
46
46
|
control,
|
|
47
47
|
reset,
|
|
48
48
|
onSubmit
|
|
@@ -57,14 +57,14 @@ function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSav
|
|
|
57
57
|
className: "auth:max-w-6xl auth:flex-1",
|
|
58
58
|
children: [/* @__PURE__ */ __mf_1("div", {
|
|
59
59
|
className: "auth:pb-16",
|
|
60
|
-
children: /* @__PURE__ */ __mf_2(
|
|
61
|
-
/* @__PURE__ */ __mf_2(
|
|
60
|
+
children: /* @__PURE__ */ __mf_2(__mf_172, { children: [
|
|
61
|
+
/* @__PURE__ */ __mf_2(__mf_173, { children: [/* @__PURE__ */ __mf_2(__mf_176, { children: [/* @__PURE__ */ __mf_1(__mf_177, { children: "Local Auth User Models" }), /* @__PURE__ */ __mf_1(__mf_175, { children: "The plugin will automatically configure the models it needs." })] }), /* @__PURE__ */ __mf_1(__mf_174, {
|
|
62
62
|
className: "auth:space-y-6",
|
|
63
63
|
children: /* @__PURE__ */ __mf_1(__mf_0, { diff })
|
|
64
64
|
})] }),
|
|
65
|
-
/* @__PURE__ */ __mf_2(
|
|
65
|
+
/* @__PURE__ */ __mf_2(__mf_173, { children: [/* @__PURE__ */ __mf_2(__mf_176, { children: [/* @__PURE__ */ __mf_1(__mf_177, { children: "User Management Permissions" }), /* @__PURE__ */ __mf_1(__mf_175, { 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_174, {
|
|
66
66
|
className: "auth:space-y-6",
|
|
67
|
-
children: /* @__PURE__ */ __mf_1(
|
|
67
|
+
children: /* @__PURE__ */ __mf_1(__mf_145, {
|
|
68
68
|
label: "Additional User Admin Roles",
|
|
69
69
|
name: "additionalUserAdminRoles",
|
|
70
70
|
control,
|
|
@@ -72,9 +72,9 @@ function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSav
|
|
|
72
72
|
description: "Additional roles (beyond admin) that can manage users and assign roles."
|
|
73
73
|
})
|
|
74
74
|
})] }),
|
|
75
|
-
/* @__PURE__ */ __mf_2(
|
|
75
|
+
/* @__PURE__ */ __mf_2(__mf_173, { children: [/* @__PURE__ */ __mf_2(__mf_176, { children: [/* @__PURE__ */ __mf_1(__mf_177, { children: "Registration Settings" }), /* @__PURE__ */ __mf_1(__mf_175, { children: "Configure what information is collected during user registration." })] }), /* @__PURE__ */ __mf_1(__mf_174, {
|
|
76
76
|
className: "auth:space-y-6",
|
|
77
|
-
children: /* @__PURE__ */ __mf_1(
|
|
77
|
+
children: /* @__PURE__ */ __mf_1(__mf_230, {
|
|
78
78
|
label: "Require Name on Registration",
|
|
79
79
|
name: "requireNameOnRegistration",
|
|
80
80
|
control,
|
|
@@ -82,7 +82,7 @@ function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSav
|
|
|
82
82
|
})
|
|
83
83
|
})] })
|
|
84
84
|
] })
|
|
85
|
-
}), /* @__PURE__ */ __mf_1(
|
|
85
|
+
}), /* @__PURE__ */ __mf_1(__mf_116, {
|
|
86
86
|
form,
|
|
87
87
|
allowSaveWithoutDirty: !pluginMetadata || diff.hasChanges
|
|
88
88
|
})]
|
|
@@ -97,8 +97,8 @@ var ACCOUNTS_FEATURE_NAME = "accounts/users";
|
|
|
97
97
|
var web_default = __mf_142({
|
|
98
98
|
name: "web",
|
|
99
99
|
dependencies: {
|
|
100
|
-
webConfig:
|
|
101
|
-
pluginDefaults:
|
|
100
|
+
webConfig: __mf_262,
|
|
101
|
+
pluginDefaults: __mf_233
|
|
102
102
|
},
|
|
103
103
|
initialize: ({ webConfig, pluginDefaults }, { pluginKey }) => {
|
|
104
104
|
webConfig.components.set(pluginKey, LocalAuthDefinitionEditor);
|
|
@@ -115,4 +115,4 @@ var web_default = __mf_142({
|
|
|
115
115
|
//#endregion
|
|
116
116
|
export { web_default as default };
|
|
117
117
|
|
|
118
|
-
//# sourceMappingURL=web-
|
|
118
|
+
//# sourceMappingURL=web-Dh6pUTrF.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
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-
|
|
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-0m3QgjSy.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-QrOyqu9V.js";
|
|
3
3
|
import { t as BETTER_AUTH_MODELS } from "./model-names-CUS5rSei.js";
|
|
4
4
|
//#region src/better-auth/admin/web.ts
|
|
5
5
|
var web_default = __mf_142({
|
|
@@ -43,4 +43,4 @@ var web_default = __mf_142({
|
|
|
43
43
|
//#endregion
|
|
44
44
|
export { web_default as default };
|
|
45
45
|
|
|
46
|
-
//# sourceMappingURL=web-
|
|
46
|
+
//# sourceMappingURL=web-YXVJWeXy.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
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-
|
|
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-0m3QgjSy.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-QrOyqu9V.js";
|
|
3
3
|
import { t as LOCAL_AUTH_MODELS } from "./model-names-BluImOzu.js";
|
|
4
4
|
//#region src/local-auth/admin/web.ts
|
|
5
5
|
var web_default = __mf_142({
|
|
@@ -43,4 +43,4 @@ var web_default = __mf_142({
|
|
|
43
43
|
//#endregion
|
|
44
44
|
export { web_default as default };
|
|
45
45
|
|
|
46
|
-
//# sourceMappingURL=web-
|
|
46
|
+
//# sourceMappingURL=web-nLSlkJy_.js.map
|
package/dist/web/index.html
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
<meta charset="UTF-8" />
|
|
16
16
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
17
17
|
<title>React Remote</title>
|
|
18
|
-
<script type="module" crossorigin src="./assets/mf-entry-bootstrap-0-
|
|
19
|
-
<link rel="modulepreload" crossorigin href="./assets/hostInit-
|
|
18
|
+
<script type="module" crossorigin src="./assets/mf-entry-bootstrap-0-069a3ab2.js"></script>
|
|
19
|
+
<link rel="modulepreload" crossorigin href="./assets/hostInit-D3RxwboF.js"><link rel="modulepreload" crossorigin href="./assets/index-CozZxQl1.js"><link rel="modulepreload" crossorigin href="./remoteEntry.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-3sV-KVGF.js"><link rel="modulepreload" crossorigin href="./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-0m3QgjSy.js"><link rel="modulepreload" crossorigin href="./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-QrOyqu9V.js"><link rel="modulepreload" crossorigin href="./assets/_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"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CJ027_El.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js"></head>
|
|
20
20
|
|
|
21
21
|
<body>
|
|
22
22
|
<div id="root"></div>
|
package/dist/web/remoteEntry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as init, t as getExposes } from "./assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-
|
|
1
|
+
import { n as init, t as getExposes } from "./assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-aH8n-Nbe.js";
|
|
2
2
|
export { getExposes as get, init };
|
|
@@ -3,7 +3,7 @@ import { init as init$1 } from "@module-federation/runtime";
|
|
|
3
3
|
//#region virtual:mf-REMOTE_ENTRY_SSR_ID:__mfe_internal__plugin-auth__remoteEntry_js
|
|
4
4
|
var exposesMapPromise;
|
|
5
5
|
async function getExposesMap() {
|
|
6
|
-
exposesMapPromise ??= __vitePreload(() => import("./assets/virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-
|
|
6
|
+
exposesMapPromise ??= __vitePreload(() => import("./assets/virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-I_SxfvGj.js").then((mod) => mod.default ?? mod), [], import.meta.url);
|
|
7
7
|
return exposesMapPromise;
|
|
8
8
|
}
|
|
9
9
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baseplate-dev/plugin-auth",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.14",
|
|
4
4
|
"description": "Contains the auth plugin for Baseplate",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"authentication",
|
|
@@ -31,43 +31,43 @@
|
|
|
31
31
|
"!dist/**/*.tsbuildinfo"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@hookform/lenses": "0.8.1",
|
|
35
|
-
"@hookform/resolvers": "5.2.2",
|
|
36
|
-
"@tanstack/react-router": "1.159.5",
|
|
37
|
-
"react": "19.1.0",
|
|
38
|
-
"react-dom": "19.1.0",
|
|
39
|
-
"react-hook-form": "7.71.1",
|
|
40
|
-
"react-icons": "5.5.0",
|
|
34
|
+
"@hookform/lenses": "^0.8.1",
|
|
35
|
+
"@hookform/resolvers": "^5.2.2",
|
|
36
|
+
"@tanstack/react-router": "^1.159.5",
|
|
37
|
+
"react": "^19.1.0",
|
|
38
|
+
"react-dom": "^19.1.0",
|
|
39
|
+
"react-hook-form": "^7.71.1",
|
|
40
|
+
"react-icons": "^5.5.0",
|
|
41
41
|
"zod": "^4.3.6",
|
|
42
|
-
"@baseplate-dev/core-generators": "0.6.
|
|
43
|
-
"@baseplate-dev/fastify-generators": "0.6.
|
|
44
|
-
"@baseplate-dev/plugin-email": "0.6.
|
|
45
|
-
"@baseplate-dev/plugin-queue": "0.6.
|
|
46
|
-
"@baseplate-dev/plugin-rate-limit": "0.6.
|
|
47
|
-
"@baseplate-dev/project-builder-lib": "0.6.
|
|
48
|
-
"@baseplate-dev/react-generators": "0.6.
|
|
49
|
-
"@baseplate-dev/sync": "0.6.
|
|
50
|
-
"@baseplate-dev/ui-components": "0.6.
|
|
51
|
-
"@baseplate-dev/utils": "0.6.
|
|
42
|
+
"@baseplate-dev/core-generators": "0.6.14",
|
|
43
|
+
"@baseplate-dev/fastify-generators": "0.6.14",
|
|
44
|
+
"@baseplate-dev/plugin-email": "0.6.14",
|
|
45
|
+
"@baseplate-dev/plugin-queue": "0.6.14",
|
|
46
|
+
"@baseplate-dev/plugin-rate-limit": "0.6.14",
|
|
47
|
+
"@baseplate-dev/project-builder-lib": "0.6.14",
|
|
48
|
+
"@baseplate-dev/react-generators": "0.6.14",
|
|
49
|
+
"@baseplate-dev/sync": "0.6.14",
|
|
50
|
+
"@baseplate-dev/ui-components": "0.6.14",
|
|
51
|
+
"@baseplate-dev/utils": "0.6.14"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@module-federation/vite": "1.
|
|
54
|
+
"@module-federation/vite": "1.17.0",
|
|
55
55
|
"@tailwindcss/vite": "4.3.1",
|
|
56
56
|
"@types/node": "^24.12.0",
|
|
57
|
-
"@types/react": "19.1.3",
|
|
58
|
-
"@types/react-dom": "19.1.3",
|
|
57
|
+
"@types/react": "^19.1.3",
|
|
58
|
+
"@types/react-dom": "^19.1.3",
|
|
59
59
|
"@vitejs/plugin-react": "6.0.3",
|
|
60
|
-
"concurrently": "10.0.
|
|
60
|
+
"concurrently": "10.0.4",
|
|
61
61
|
"cpx2": "8.0.0",
|
|
62
|
-
"eslint": "9.39.2",
|
|
62
|
+
"eslint": "^9.39.2",
|
|
63
63
|
"nodemon": "3.1.11",
|
|
64
64
|
"oxlint": "1.67.0",
|
|
65
|
-
"prettier": "3.8.1",
|
|
65
|
+
"prettier": "^3.8.1",
|
|
66
66
|
"tailwindcss": "4.3.1",
|
|
67
|
-
"typescript": "
|
|
67
|
+
"typescript": "6.0.3",
|
|
68
68
|
"vite": "8.1.0",
|
|
69
69
|
"vitest": "4.1.7",
|
|
70
|
-
"@baseplate-dev/tools": "0.6.
|
|
70
|
+
"@baseplate-dev/tools": "0.6.14"
|
|
71
71
|
},
|
|
72
72
|
"engines": {
|
|
73
73
|
"node": "^24.0.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./get-auth-plugin-definition-DBdchbBZ.js";
|