@baseplate-dev/plugin-auth 2.0.1 → 2.0.2
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/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.d.ts +88 -3
- package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-pages/generated/index.d.ts +176 -6
- package/dist/auth0/generators/react/auth0-pages/generated/index.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.d.ts +88 -3
- package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.d.ts +176 -6
- package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.d.ts.map +1 -1
- package/dist/auth0/generators/react/react-auth0/generated/index.d.ts +176 -6
- package/dist/auth0/generators/react/react-auth0/generated/index.d.ts.map +1 -1
- package/dist/auth0/generators/react/react-auth0/generated/template-renderers.d.ts +88 -3
- package/dist/auth0/generators/react/react-auth0/generated/template-renderers.d.ts.map +1 -1
- package/dist/auth0/generators/react/react-auth0/generated/typed-templates.d.ts +88 -3
- package/dist/auth0/generators/react/react-auth0/generated/typed-templates.d.ts.map +1 -1
- package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts +88 -3
- package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts.map +1 -1
- package/dist/local-auth/admin/common.d.ts +4 -0
- package/dist/local-auth/admin/common.d.ts.map +1 -0
- package/dist/local-auth/admin/common.js +30 -0
- package/dist/local-auth/admin/common.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +453 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js +121 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +457 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.js +9 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts +13 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js +25 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +235 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js +48 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +224 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js +29 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.d.ts +2 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.js +2 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts +21 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.gql +7 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +59 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +145 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +452 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js +107 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +457 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.js +9 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts +13 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js +25 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +235 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js +48 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +442 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js +31 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.d.ts +2 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.js +2 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts +21 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.gql +7 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +73 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +155 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +221 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js +58 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/index.d.ts +2 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/index.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/index.js +2 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/index.js.map +1 -0
- package/dist/local-auth/admin/node.d.ts +8 -0
- package/dist/local-auth/admin/node.d.ts.map +1 -0
- package/dist/local-auth/admin/node.js +60 -0
- package/dist/local-auth/admin/node.js.map +1 -0
- package/dist/local-auth/admin/schema/manage-role-action.d.ts +19 -0
- package/dist/local-auth/admin/schema/manage-role-action.d.ts.map +1 -0
- package/dist/local-auth/admin/schema/manage-role-action.js +6 -0
- package/dist/local-auth/admin/schema/manage-role-action.js.map +1 -0
- package/dist/local-auth/admin/schema/reset-password-action.d.ts +19 -0
- package/dist/local-auth/admin/schema/reset-password-action.d.ts.map +1 -0
- package/dist/local-auth/admin/schema/reset-password-action.js +6 -0
- package/dist/local-auth/admin/schema/reset-password-action.js.map +1 -0
- package/dist/local-auth/admin/schema/roles-column.d.ts +19 -0
- package/dist/local-auth/admin/schema/roles-column.d.ts.map +1 -0
- package/dist/local-auth/admin/schema/roles-column.js +6 -0
- package/dist/local-auth/admin/schema/roles-column.js.map +1 -0
- package/dist/local-auth/admin/web.d.ts +6 -0
- package/dist/local-auth/admin/web.d.ts.map +1 -0
- package/dist/local-auth/admin/web.js +43 -0
- package/dist/local-auth/admin/web.js.map +1 -0
- package/dist/local-auth/core/components/local-auth-definition-editor.d.ts.map +1 -1
- package/dist/local-auth/core/components/local-auth-definition-editor.js +5 -2
- package/dist/local-auth/core/components/local-auth-definition-editor.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +5 -1
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +20 -5
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +4 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +8 -2
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +40 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +47 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts +31 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +97 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +133 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +2 -1
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +9 -3
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +26 -0
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +2 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +52 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +28 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.js +23 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.ts +26 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.d.ts +15 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.js +35 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.ts +47 -0
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +88 -3
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +264 -9
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +88 -3
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +352 -12
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts +176 -6
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +88 -3
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +176 -6
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +88 -3
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts.map +1 -1
- package/dist/local-auth/core/node.d.ts.map +1 -1
- package/dist/local-auth/core/node.js +5 -1
- package/dist/local-auth/core/node.js.map +1 -1
- package/dist/local-auth/core/schema/plugin-definition.d.ts +3 -0
- package/dist/local-auth/core/schema/plugin-definition.d.ts.map +1 -1
- package/dist/local-auth/core/schema/plugin-definition.js +4 -0
- package/dist/local-auth/core/schema/plugin-definition.js.map +1 -1
- package/dist/local-auth/plugin.json +1 -1
- package/dist/web/assets/{__federation_expose_auth0CoreCommon-lV5QSzvf.js → __federation_expose_auth0CoreCommon-Dd4OxG3J.js} +3 -3
- package/dist/web/assets/{__federation_expose_auth0CoreCommon-lV5QSzvf.js.map → __federation_expose_auth0CoreCommon-Dd4OxG3J.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_auth0CoreWeb-5F0rTNis.js → __federation_expose_auth0CoreWeb-C_de43BE.js} +5 -5
- package/dist/web/assets/{__federation_expose_auth0CoreWeb-5F0rTNis.js.map → __federation_expose_auth0CoreWeb-C_de43BE.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_authCoreCommon-C5cVmNCH.js → __federation_expose_authCoreCommon-BAF30G9e.js} +3 -3
- package/dist/web/assets/{__federation_expose_authCoreCommon-C5cVmNCH.js.map → __federation_expose_authCoreCommon-BAF30G9e.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_authCoreWeb-CJxY8hZC.js → __federation_expose_authCoreWeb-B26BFarY.js} +6 -6
- package/dist/web/assets/{__federation_expose_authCoreWeb-CJxY8hZC.js.map → __federation_expose_authCoreWeb-B26BFarY.js.map} +1 -1
- package/dist/web/assets/__federation_expose_local-authAdminCommon-DLbuTALX.js +64 -0
- package/dist/web/assets/__federation_expose_local-authAdminCommon-DLbuTALX.js.map +1 -0
- package/dist/web/assets/__federation_expose_local-authAdminWeb-bT8Js4V6.js +58 -0
- package/dist/web/assets/__federation_expose_local-authAdminWeb-bT8Js4V6.js.map +1 -0
- package/dist/web/assets/{__federation_expose_local-authCoreCommon-Dr_ngV2l.js → __federation_expose_local-authCoreCommon-D9tovFrj.js} +3 -3
- package/dist/web/assets/{__federation_expose_local-authCoreCommon-Dr_ngV2l.js.map → __federation_expose_local-authCoreCommon-D9tovFrj.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authCoreWeb-B5iBudnh.js → __federation_expose_local-authCoreWeb-DKVkRzEo.js} +24 -7
- package/dist/web/assets/__federation_expose_local-authCoreWeb-DKVkRzEo.js.map +1 -0
- package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-l8knzO7I.js → __federation_expose_placeholder-authCoreCommon-D1fszuKq.js} +3 -3
- package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-l8knzO7I.js.map → __federation_expose_placeholder-authCoreCommon-D1fszuKq.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-DbI_bZsk.js → __federation_expose_placeholder-authCoreWeb-tw3UiMLM.js} +5 -5
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-DbI_bZsk.js.map → __federation_expose_placeholder-authCoreWeb-tw3UiMLM.js.map} +1 -1
- package/dist/web/assets/{__federation_fn_import-DReOsou_.js → __federation_fn_import-B_QMlAIe.js} +2 -2
- package/dist/web/assets/{__federation_fn_import-DReOsou_.js.map → __federation_fn_import-B_QMlAIe.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-BlPKO2K7.js → web-DdrB9jrq.js} +74 -6
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-DdrB9jrq.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-CGEZr0YI.js → project-builder-lib-BvG5Zcxb.js} +567 -184
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-BvG5Zcxb.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-RO_rk4f0.js → ui-components-CjIA8Av2.js} +873 -624
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-CjIA8Av2.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-BbU_EX7_.js → utils-LpAGNm5N.js} +2 -2
- package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-BbU_EX7_.js.map → utils-LpAGNm5N.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@tanstack/{react-router-CNTPQj7N.js → react-router-CEcQRiV1.js} +2 -2
- package/dist/web/assets/__federation_shared_@tanstack/{react-router-CNTPQj7N.js.map → react-router-CEcQRiV1.js.map} +1 -1
- package/dist/web/assets/{get-auth-plugin-definition-CQ6mWMZk.js → get-auth-plugin-definition-BrApugiB.js} +2 -2
- package/dist/web/assets/{get-auth-plugin-definition-CQ6mWMZk.js.map → get-auth-plugin-definition-BrApugiB.js.map} +1 -1
- package/dist/web/assets/{index-BkOJzK_m.js → index-DAcyTb_o.js} +5 -3
- package/dist/web/assets/{index-BkOJzK_m.js.map → index-DAcyTb_o.js.map} +1 -1
- package/dist/web/assets/{index.esm-UnRzlLlr.js → index.esm-BFQQfZNu.js} +2 -2
- package/dist/web/assets/{index.esm-UnRzlLlr.js.map → index.esm-BFQQfZNu.js.map} +1 -1
- package/dist/web/assets/{model-merger-BLEOsCIp.js → model-merger-boZDknXa.js} +11 -4
- package/dist/web/assets/model-merger-boZDknXa.js.map +1 -0
- package/dist/web/assets/{plugin-definition-PCHsX2lR.js → plugin-definition-B7A-hS1o.js} +2 -2
- package/dist/web/assets/{plugin-definition-PCHsX2lR.js.map → plugin-definition-B7A-hS1o.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-ChUKIqUg.js → plugin-definition-BeK0C-OP.js} +11 -2
- package/dist/web/assets/plugin-definition-BeK0C-OP.js.map +1 -0
- package/dist/web/assets/{plugin-definition-DH4QyCfv.js → plugin-definition-CyqVivit.js} +2 -2
- package/dist/web/assets/{plugin-definition-DH4QyCfv.js.map → plugin-definition-CyqVivit.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-C935Xf1h.js → plugin-definition-DfsGhMRb.js} +2 -2
- package/dist/web/assets/{plugin-definition-C935Xf1h.js.map → plugin-definition-DfsGhMRb.js.map} +1 -1
- package/dist/web/assets/{react-ecPihYHK.js → react-CKjL52W8.js} +2 -2
- package/dist/web/assets/{react-ecPihYHK.js.map → react-CKjL52W8.js.map} +1 -1
- package/dist/web/assets/remoteEntry.js +14 -8
- package/dist/web/assets/remoteEntry.js.map +1 -1
- package/dist/web/assets/{styles-I6mpdfRm.js → styles-CyTaudys.js} +3 -3
- package/dist/web/assets/{styles-I6mpdfRm.js.map → styles-CyTaudys.js.map} +1 -1
- package/package.json +12 -12
- package/dist/web/assets/__federation_expose_local-authCoreWeb-B5iBudnh.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BlPKO2K7.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CGEZr0YI.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-RO_rk4f0.js.map +0 -1
- package/dist/web/assets/model-merger-BLEOsCIp.js.map +0 -1
- package/dist/web/assets/plugin-definition-ChUKIqUg.js.map +0 -1
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import type { RenderTextTemplateFileActionInput, RenderTsTemplateFileActionInput } from '@baseplate-dev/core-generators';
|
|
2
|
+
import type { BuilderAction } from '@baseplate-dev/sync';
|
|
3
|
+
import { LOCAL_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_TEMPLATES } from './typed-templates.js';
|
|
4
|
+
export interface LocalAuthAdminAdminCrudManageRolesActionRenderers {
|
|
5
|
+
roleManagerDialog: {
|
|
6
|
+
render: (options: Omit<RenderTsTemplateFileActionInput<typeof LOCAL_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_TEMPLATES.roleManagerDialog>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
|
|
7
|
+
};
|
|
8
|
+
roleManagerDialogGql: {
|
|
9
|
+
render: (options: Omit<RenderTextTemplateFileActionInput<typeof LOCAL_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_TEMPLATES.roleManagerDialogGql>, 'destination' | 'template'>) => BuilderAction;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare const LOCAL_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_RENDERERS: {
|
|
13
|
+
provider: import("@baseplate-dev/sync").ProviderType<LocalAuthAdminAdminCrudManageRolesActionRenderers>;
|
|
14
|
+
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
15
|
+
localAuthAdminAdminCrudManageRolesActionRenderers: import("@baseplate-dev/sync").ProviderExport<LocalAuthAdminAdminCrudManageRolesActionRenderers>;
|
|
16
|
+
}, {
|
|
17
|
+
generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
18
|
+
'*': {};
|
|
19
|
+
}>>;
|
|
20
|
+
paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").LocalAuthAdminAdminCrudManageRolesActionPaths>;
|
|
21
|
+
reactComponentsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
22
|
+
AddOptionRequiredFields: {
|
|
23
|
+
isTypeOnly: true;
|
|
24
|
+
};
|
|
25
|
+
Alert: {};
|
|
26
|
+
AlertDescription: {};
|
|
27
|
+
AlertTitle: {};
|
|
28
|
+
Badge: {};
|
|
29
|
+
badgeVariants: {};
|
|
30
|
+
BadgeWithIcon: {};
|
|
31
|
+
BadgeWithIconProps: {
|
|
32
|
+
isTypeOnly: true;
|
|
33
|
+
};
|
|
34
|
+
Breadcrumb: {};
|
|
35
|
+
BreadcrumbEllipsis: {};
|
|
36
|
+
BreadcrumbItem: {};
|
|
37
|
+
BreadcrumbLink: {};
|
|
38
|
+
BreadcrumbList: {};
|
|
39
|
+
BreadcrumbPage: {};
|
|
40
|
+
BreadcrumbSeparator: {};
|
|
41
|
+
Button: {};
|
|
42
|
+
buttonVariants: {};
|
|
43
|
+
Calendar: {};
|
|
44
|
+
Card: {};
|
|
45
|
+
CardContent: {};
|
|
46
|
+
CardDescription: {};
|
|
47
|
+
CardFooter: {};
|
|
48
|
+
CardHeader: {};
|
|
49
|
+
CardTitle: {};
|
|
50
|
+
Checkbox: {};
|
|
51
|
+
CheckboxField: {};
|
|
52
|
+
CheckboxFieldController: {};
|
|
53
|
+
CheckedInput: {};
|
|
54
|
+
CircularProgress: {};
|
|
55
|
+
cn: {};
|
|
56
|
+
Combobox: {};
|
|
57
|
+
ComboboxField: {};
|
|
58
|
+
ComboboxFieldController: {};
|
|
59
|
+
Command: {};
|
|
60
|
+
CommandDialog: {};
|
|
61
|
+
CommandEmpty: {};
|
|
62
|
+
CommandGroup: {};
|
|
63
|
+
CommandInput: {};
|
|
64
|
+
CommandItem: {};
|
|
65
|
+
CommandList: {};
|
|
66
|
+
CommandSeparator: {};
|
|
67
|
+
CommandShortcut: {};
|
|
68
|
+
ConfirmDialog: {};
|
|
69
|
+
DatePickerField: {};
|
|
70
|
+
DatePickerFieldController: {};
|
|
71
|
+
DateTimePickerField: {};
|
|
72
|
+
DateTimePickerFieldController: {};
|
|
73
|
+
Dialog: {};
|
|
74
|
+
DialogClose: {};
|
|
75
|
+
DialogContent: {};
|
|
76
|
+
DialogDescription: {};
|
|
77
|
+
DialogFooter: {};
|
|
78
|
+
DialogHeader: {};
|
|
79
|
+
DialogOverlay: {};
|
|
80
|
+
DialogPortal: {};
|
|
81
|
+
DialogTitle: {};
|
|
82
|
+
DialogTrigger: {};
|
|
83
|
+
DialogWidth: {
|
|
84
|
+
isTypeOnly: true;
|
|
85
|
+
};
|
|
86
|
+
DropdownMenu: {};
|
|
87
|
+
DropdownMenuCheckboxItem: {};
|
|
88
|
+
DropdownMenuContent: {};
|
|
89
|
+
DropdownMenuGroup: {};
|
|
90
|
+
DropdownMenuItem: {};
|
|
91
|
+
DropdownMenuLabel: {};
|
|
92
|
+
DropdownMenuPortal: {};
|
|
93
|
+
DropdownMenuRadioGroup: {};
|
|
94
|
+
DropdownMenuRadioItem: {};
|
|
95
|
+
DropdownMenuSeparator: {};
|
|
96
|
+
DropdownMenuShortcut: {};
|
|
97
|
+
DropdownMenuSub: {};
|
|
98
|
+
DropdownMenuSubContent: {};
|
|
99
|
+
DropdownMenuSubTrigger: {};
|
|
100
|
+
DropdownMenuTrigger: {};
|
|
101
|
+
EmptyDisplay: {};
|
|
102
|
+
ErrorableLoader: {};
|
|
103
|
+
ErrorDisplay: {};
|
|
104
|
+
FormControl: {};
|
|
105
|
+
FormDescription: {};
|
|
106
|
+
FormFieldProps: {
|
|
107
|
+
isTypeOnly: true;
|
|
108
|
+
};
|
|
109
|
+
FormItem: {};
|
|
110
|
+
FormLabel: {};
|
|
111
|
+
FormMessage: {};
|
|
112
|
+
IconElement: {
|
|
113
|
+
isTypeOnly: true;
|
|
114
|
+
};
|
|
115
|
+
Input: {};
|
|
116
|
+
InputField: {};
|
|
117
|
+
InputFieldController: {};
|
|
118
|
+
inputVariants: {};
|
|
119
|
+
Label: {};
|
|
120
|
+
LinkButton: {};
|
|
121
|
+
Loader: {};
|
|
122
|
+
mergeRefs: {};
|
|
123
|
+
Modal: {};
|
|
124
|
+
MultiCombobox: {};
|
|
125
|
+
MultiComboboxContent: {};
|
|
126
|
+
MultiComboboxEmpty: {};
|
|
127
|
+
MultiComboboxField: {};
|
|
128
|
+
MultiComboboxFieldController: {};
|
|
129
|
+
MultiComboboxFieldProps: {
|
|
130
|
+
isTypeOnly: true;
|
|
131
|
+
};
|
|
132
|
+
MultiComboboxGroup: {};
|
|
133
|
+
MultiComboboxInput: {};
|
|
134
|
+
MultiComboboxItem: {};
|
|
135
|
+
MultiSelectOptionProps: {
|
|
136
|
+
isTypeOnly: true;
|
|
137
|
+
};
|
|
138
|
+
NavigationMenu: {};
|
|
139
|
+
NavigationMenuContent: {};
|
|
140
|
+
NavigationMenuIndicator: {};
|
|
141
|
+
NavigationMenuItem: {};
|
|
142
|
+
NavigationMenuItemWithLink: {};
|
|
143
|
+
NavigationMenuLink: {};
|
|
144
|
+
NavigationMenuList: {};
|
|
145
|
+
NavigationMenuTrigger: {};
|
|
146
|
+
navigationMenuTriggerStyle: {};
|
|
147
|
+
NavigationMenuViewport: {};
|
|
148
|
+
NotFoundCard: {};
|
|
149
|
+
Popover: {};
|
|
150
|
+
PopoverAnchor: {};
|
|
151
|
+
PopoverContent: {};
|
|
152
|
+
PopoverTrigger: {};
|
|
153
|
+
ReactDatePickerInput: {};
|
|
154
|
+
ReactSelectInput: {};
|
|
155
|
+
ScrollArea: {};
|
|
156
|
+
Select: {};
|
|
157
|
+
selectCheckVariants: {};
|
|
158
|
+
selectContentVariants: {};
|
|
159
|
+
SelectField: {};
|
|
160
|
+
SelectFieldController: {};
|
|
161
|
+
SelectInput: {};
|
|
162
|
+
selectItemVariants: {};
|
|
163
|
+
SelectOptionProps: {
|
|
164
|
+
isTypeOnly: true;
|
|
165
|
+
};
|
|
166
|
+
selectTriggerVariants: {};
|
|
167
|
+
Separator: {};
|
|
168
|
+
Sheet: {};
|
|
169
|
+
SheetClose: {};
|
|
170
|
+
SheetContent: {};
|
|
171
|
+
SheetDescription: {};
|
|
172
|
+
SheetFooter: {};
|
|
173
|
+
SheetHeader: {};
|
|
174
|
+
SheetTitle: {};
|
|
175
|
+
SheetTrigger: {};
|
|
176
|
+
Sidebar: {};
|
|
177
|
+
SidebarContent: {};
|
|
178
|
+
SidebarFooter: {};
|
|
179
|
+
SidebarGroup: {};
|
|
180
|
+
SidebarGroupAction: {};
|
|
181
|
+
SidebarGroupContent: {};
|
|
182
|
+
SidebarGroupLabel: {};
|
|
183
|
+
SidebarHeader: {};
|
|
184
|
+
SidebarInput: {};
|
|
185
|
+
SidebarInset: {};
|
|
186
|
+
SidebarMenu: {};
|
|
187
|
+
SidebarMenuAction: {};
|
|
188
|
+
SidebarMenuBadge: {};
|
|
189
|
+
SidebarMenuButton: {};
|
|
190
|
+
SidebarMenuItem: {};
|
|
191
|
+
SidebarMenuSkeleton: {};
|
|
192
|
+
SidebarMenuSub: {};
|
|
193
|
+
SidebarMenuSubButton: {};
|
|
194
|
+
SidebarMenuSubItem: {};
|
|
195
|
+
SidebarProvider: {};
|
|
196
|
+
SidebarRail: {};
|
|
197
|
+
SidebarSeparator: {};
|
|
198
|
+
SidebarTrigger: {};
|
|
199
|
+
Skeleton: {};
|
|
200
|
+
Switch: {};
|
|
201
|
+
SwitchField: {};
|
|
202
|
+
SwitchFieldController: {};
|
|
203
|
+
Table: {};
|
|
204
|
+
TableBody: {};
|
|
205
|
+
TableCaption: {};
|
|
206
|
+
TableCell: {};
|
|
207
|
+
TableFooter: {};
|
|
208
|
+
TableHead: {};
|
|
209
|
+
TableHeader: {};
|
|
210
|
+
TableRow: {};
|
|
211
|
+
Textarea: {};
|
|
212
|
+
TextareaField: {};
|
|
213
|
+
TextareaFieldController: {};
|
|
214
|
+
TextAreaInput: {};
|
|
215
|
+
TextInput: {};
|
|
216
|
+
Toaster: {};
|
|
217
|
+
Tooltip: {};
|
|
218
|
+
TooltipContent: {};
|
|
219
|
+
TooltipProvider: {};
|
|
220
|
+
TooltipTrigger: {};
|
|
221
|
+
useConfirmDialog: {};
|
|
222
|
+
UseConfirmDialogRequestOptions: {
|
|
223
|
+
isTypeOnly: true;
|
|
224
|
+
};
|
|
225
|
+
useConfirmDialogState: {};
|
|
226
|
+
useControlledState: {};
|
|
227
|
+
useControllerMerged: {};
|
|
228
|
+
useIsMobile: {};
|
|
229
|
+
useMultiComboboxContext: {};
|
|
230
|
+
useSidebar: {};
|
|
231
|
+
}>>;
|
|
232
|
+
typescriptFile: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").TypescriptFileProvider>;
|
|
233
|
+
}, undefined>;
|
|
234
|
+
};
|
|
235
|
+
//# sourceMappingURL=template-renderers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,+BAA+B,EAChC,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAazD,OAAO,EAAE,yDAAyD,EAAE,MAAM,sBAAsB,CAAC;AAEjG,MAAM,WAAW,iDAAiD;IAChE,iBAAiB,EAAE;QACjB,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,yDAAyD,CAAC,iBAAiB,CACnF,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;IACF,oBAAoB,EAAE;QACpB,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,iCAAiC,CAC/B,OAAO,yDAAyD,CAAC,oBAAoB,CACtF,EACD,aAAa,GAAG,UAAU,CAC3B,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AAwDD,eAAO,MAAM,yDAAyD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGrE,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { renderTextTemplateFileAction, typescriptFileProvider, } from '@baseplate-dev/core-generators';
|
|
2
|
+
import { generatedGraphqlImportsProvider, reactComponentsImportsProvider, } from '@baseplate-dev/react-generators';
|
|
3
|
+
import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync';
|
|
4
|
+
import { LOCAL_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_PATHS } from './template-paths.js';
|
|
5
|
+
import { LOCAL_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_TEMPLATES } from './typed-templates.js';
|
|
6
|
+
const localAuthAdminAdminCrudManageRolesActionRenderers = createProviderType('local-auth-admin-admin-crud-manage-roles-action-renderers');
|
|
7
|
+
const localAuthAdminAdminCrudManageRolesActionRenderersTask = createGeneratorTask({
|
|
8
|
+
dependencies: {
|
|
9
|
+
generatedGraphqlImports: generatedGraphqlImportsProvider,
|
|
10
|
+
paths: LOCAL_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_PATHS.provider,
|
|
11
|
+
reactComponentsImports: reactComponentsImportsProvider,
|
|
12
|
+
typescriptFile: typescriptFileProvider,
|
|
13
|
+
},
|
|
14
|
+
exports: {
|
|
15
|
+
localAuthAdminAdminCrudManageRolesActionRenderers: localAuthAdminAdminCrudManageRolesActionRenderers.export(),
|
|
16
|
+
},
|
|
17
|
+
run({ generatedGraphqlImports, paths, reactComponentsImports, typescriptFile, }) {
|
|
18
|
+
return {
|
|
19
|
+
providers: {
|
|
20
|
+
localAuthAdminAdminCrudManageRolesActionRenderers: {
|
|
21
|
+
roleManagerDialog: {
|
|
22
|
+
render: (options) => typescriptFile.renderTemplateFile({
|
|
23
|
+
template: LOCAL_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_TEMPLATES.roleManagerDialog,
|
|
24
|
+
destination: paths.roleManagerDialog,
|
|
25
|
+
importMapProviders: {
|
|
26
|
+
generatedGraphqlImports,
|
|
27
|
+
reactComponentsImports,
|
|
28
|
+
},
|
|
29
|
+
...options,
|
|
30
|
+
}),
|
|
31
|
+
},
|
|
32
|
+
roleManagerDialogGql: {
|
|
33
|
+
render: (options) => renderTextTemplateFileAction({
|
|
34
|
+
template: LOCAL_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_TEMPLATES.roleManagerDialogGql,
|
|
35
|
+
destination: paths.roleManagerDialogGql,
|
|
36
|
+
...options,
|
|
37
|
+
}),
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
export const LOCAL_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_RENDERERS = {
|
|
45
|
+
provider: localAuthAdminAdminCrudManageRolesActionRenderers,
|
|
46
|
+
task: localAuthAdminAdminCrudManageRolesActionRenderersTask,
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=template-renderers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,+BAA+B,EAC/B,8BAA8B,GAC/B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,qDAAqD,EAAE,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAAE,yDAAyD,EAAE,MAAM,sBAAsB,CAAC;AAyBjG,MAAM,iDAAiD,GACrD,kBAAkB,CAChB,2DAA2D,CAC5D,CAAC;AAEJ,MAAM,qDAAqD,GACzD,mBAAmB,CAAC;IAClB,YAAY,EAAE;QACZ,uBAAuB,EAAE,+BAA+B;QACxD,KAAK,EAAE,qDAAqD,CAAC,QAAQ;QACrE,sBAAsB,EAAE,8BAA8B;QACtD,cAAc,EAAE,sBAAsB;KACvC;IACD,OAAO,EAAE;QACP,iDAAiD,EAC/C,iDAAiD,CAAC,MAAM,EAAE;KAC7D;IACD,GAAG,CAAC,EACF,uBAAuB,EACvB,KAAK,EACL,sBAAsB,EACtB,cAAc,GACf;QACC,OAAO;YACL,SAAS,EAAE;gBACT,iDAAiD,EAAE;oBACjD,iBAAiB,EAAE;wBACjB,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,kBAAkB,CAAC;4BAChC,QAAQ,EACN,yDAAyD,CAAC,iBAAiB;4BAC7E,WAAW,EAAE,KAAK,CAAC,iBAAiB;4BACpC,kBAAkB,EAAE;gCAClB,uBAAuB;gCACvB,sBAAsB;6BACvB;4BACD,GAAG,OAAO;yBACX,CAAC;qBACL;oBACD,oBAAoB,EAAE;wBACpB,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,4BAA4B,CAAC;4BAC3B,QAAQ,EACN,yDAAyD,CAAC,oBAAoB;4BAChF,WAAW,EAAE,KAAK,CAAC,oBAAoB;4BACvC,GAAG,OAAO;yBACX,CAAC;qBACL;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,yDAAyD,GAAG;IACvE,QAAQ,EAAE,iDAAiD;IAC3D,IAAI,EAAE,qDAAqD;CAC5D,CAAC"}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
export declare const LOCAL_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_TEMPLATES: {
|
|
2
|
+
roleManagerDialog: import("@baseplate-dev/core-generators").TsTemplateFile<{
|
|
3
|
+
TPL_AVAILABLE_ROLES: {};
|
|
4
|
+
}, {
|
|
5
|
+
generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
6
|
+
'*': {};
|
|
7
|
+
}>>;
|
|
8
|
+
reactComponentsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
9
|
+
AddOptionRequiredFields: {
|
|
10
|
+
isTypeOnly: true;
|
|
11
|
+
};
|
|
12
|
+
Alert: {};
|
|
13
|
+
AlertDescription: {};
|
|
14
|
+
AlertTitle: {};
|
|
15
|
+
Badge: {};
|
|
16
|
+
badgeVariants: {};
|
|
17
|
+
BadgeWithIcon: {};
|
|
18
|
+
BadgeWithIconProps: {
|
|
19
|
+
isTypeOnly: true;
|
|
20
|
+
};
|
|
21
|
+
Breadcrumb: {};
|
|
22
|
+
BreadcrumbEllipsis: {};
|
|
23
|
+
BreadcrumbItem: {};
|
|
24
|
+
BreadcrumbLink: {};
|
|
25
|
+
BreadcrumbList: {};
|
|
26
|
+
BreadcrumbPage: {};
|
|
27
|
+
BreadcrumbSeparator: {};
|
|
28
|
+
Button: {};
|
|
29
|
+
buttonVariants: {};
|
|
30
|
+
Calendar: {};
|
|
31
|
+
Card: {};
|
|
32
|
+
CardContent: {};
|
|
33
|
+
CardDescription: {};
|
|
34
|
+
CardFooter: {};
|
|
35
|
+
CardHeader: {};
|
|
36
|
+
CardTitle: {};
|
|
37
|
+
Checkbox: {};
|
|
38
|
+
CheckboxField: {};
|
|
39
|
+
CheckboxFieldController: {};
|
|
40
|
+
CheckedInput: {};
|
|
41
|
+
CircularProgress: {};
|
|
42
|
+
cn: {};
|
|
43
|
+
Combobox: {};
|
|
44
|
+
ComboboxField: {};
|
|
45
|
+
ComboboxFieldController: {};
|
|
46
|
+
Command: {};
|
|
47
|
+
CommandDialog: {};
|
|
48
|
+
CommandEmpty: {};
|
|
49
|
+
CommandGroup: {};
|
|
50
|
+
CommandInput: {};
|
|
51
|
+
CommandItem: {};
|
|
52
|
+
CommandList: {};
|
|
53
|
+
CommandSeparator: {};
|
|
54
|
+
CommandShortcut: {};
|
|
55
|
+
ConfirmDialog: {};
|
|
56
|
+
DatePickerField: {};
|
|
57
|
+
DatePickerFieldController: {};
|
|
58
|
+
DateTimePickerField: {};
|
|
59
|
+
DateTimePickerFieldController: {};
|
|
60
|
+
Dialog: {};
|
|
61
|
+
DialogClose: {};
|
|
62
|
+
DialogContent: {};
|
|
63
|
+
DialogDescription: {};
|
|
64
|
+
DialogFooter: {};
|
|
65
|
+
DialogHeader: {};
|
|
66
|
+
DialogOverlay: {};
|
|
67
|
+
DialogPortal: {};
|
|
68
|
+
DialogTitle: {};
|
|
69
|
+
DialogTrigger: {};
|
|
70
|
+
DialogWidth: {
|
|
71
|
+
isTypeOnly: true;
|
|
72
|
+
};
|
|
73
|
+
DropdownMenu: {};
|
|
74
|
+
DropdownMenuCheckboxItem: {};
|
|
75
|
+
DropdownMenuContent: {};
|
|
76
|
+
DropdownMenuGroup: {};
|
|
77
|
+
DropdownMenuItem: {};
|
|
78
|
+
DropdownMenuLabel: {};
|
|
79
|
+
DropdownMenuPortal: {};
|
|
80
|
+
DropdownMenuRadioGroup: {};
|
|
81
|
+
DropdownMenuRadioItem: {};
|
|
82
|
+
DropdownMenuSeparator: {};
|
|
83
|
+
DropdownMenuShortcut: {};
|
|
84
|
+
DropdownMenuSub: {};
|
|
85
|
+
DropdownMenuSubContent: {};
|
|
86
|
+
DropdownMenuSubTrigger: {};
|
|
87
|
+
DropdownMenuTrigger: {};
|
|
88
|
+
EmptyDisplay: {};
|
|
89
|
+
ErrorableLoader: {};
|
|
90
|
+
ErrorDisplay: {};
|
|
91
|
+
FormControl: {};
|
|
92
|
+
FormDescription: {};
|
|
93
|
+
FormFieldProps: {
|
|
94
|
+
isTypeOnly: true;
|
|
95
|
+
};
|
|
96
|
+
FormItem: {};
|
|
97
|
+
FormLabel: {};
|
|
98
|
+
FormMessage: {};
|
|
99
|
+
IconElement: {
|
|
100
|
+
isTypeOnly: true;
|
|
101
|
+
};
|
|
102
|
+
Input: {};
|
|
103
|
+
InputField: {};
|
|
104
|
+
InputFieldController: {};
|
|
105
|
+
inputVariants: {};
|
|
106
|
+
Label: {};
|
|
107
|
+
LinkButton: {};
|
|
108
|
+
Loader: {};
|
|
109
|
+
mergeRefs: {};
|
|
110
|
+
Modal: {};
|
|
111
|
+
MultiCombobox: {};
|
|
112
|
+
MultiComboboxContent: {};
|
|
113
|
+
MultiComboboxEmpty: {};
|
|
114
|
+
MultiComboboxField: {};
|
|
115
|
+
MultiComboboxFieldController: {};
|
|
116
|
+
MultiComboboxFieldProps: {
|
|
117
|
+
isTypeOnly: true;
|
|
118
|
+
};
|
|
119
|
+
MultiComboboxGroup: {};
|
|
120
|
+
MultiComboboxInput: {};
|
|
121
|
+
MultiComboboxItem: {};
|
|
122
|
+
MultiSelectOptionProps: {
|
|
123
|
+
isTypeOnly: true;
|
|
124
|
+
};
|
|
125
|
+
NavigationMenu: {};
|
|
126
|
+
NavigationMenuContent: {};
|
|
127
|
+
NavigationMenuIndicator: {};
|
|
128
|
+
NavigationMenuItem: {};
|
|
129
|
+
NavigationMenuItemWithLink: {};
|
|
130
|
+
NavigationMenuLink: {};
|
|
131
|
+
NavigationMenuList: {};
|
|
132
|
+
NavigationMenuTrigger: {};
|
|
133
|
+
navigationMenuTriggerStyle: {};
|
|
134
|
+
NavigationMenuViewport: {};
|
|
135
|
+
NotFoundCard: {};
|
|
136
|
+
Popover: {};
|
|
137
|
+
PopoverAnchor: {};
|
|
138
|
+
PopoverContent: {};
|
|
139
|
+
PopoverTrigger: {};
|
|
140
|
+
ReactDatePickerInput: {};
|
|
141
|
+
ReactSelectInput: {};
|
|
142
|
+
ScrollArea: {};
|
|
143
|
+
Select: {};
|
|
144
|
+
selectCheckVariants: {};
|
|
145
|
+
selectContentVariants: {};
|
|
146
|
+
SelectField: {};
|
|
147
|
+
SelectFieldController: {};
|
|
148
|
+
SelectInput: {};
|
|
149
|
+
selectItemVariants: {};
|
|
150
|
+
SelectOptionProps: {
|
|
151
|
+
isTypeOnly: true;
|
|
152
|
+
};
|
|
153
|
+
selectTriggerVariants: {};
|
|
154
|
+
Separator: {};
|
|
155
|
+
Sheet: {};
|
|
156
|
+
SheetClose: {};
|
|
157
|
+
SheetContent: {};
|
|
158
|
+
SheetDescription: {};
|
|
159
|
+
SheetFooter: {};
|
|
160
|
+
SheetHeader: {};
|
|
161
|
+
SheetTitle: {};
|
|
162
|
+
SheetTrigger: {};
|
|
163
|
+
Sidebar: {};
|
|
164
|
+
SidebarContent: {};
|
|
165
|
+
SidebarFooter: {};
|
|
166
|
+
SidebarGroup: {};
|
|
167
|
+
SidebarGroupAction: {};
|
|
168
|
+
SidebarGroupContent: {};
|
|
169
|
+
SidebarGroupLabel: {};
|
|
170
|
+
SidebarHeader: {};
|
|
171
|
+
SidebarInput: {};
|
|
172
|
+
SidebarInset: {};
|
|
173
|
+
SidebarMenu: {};
|
|
174
|
+
SidebarMenuAction: {};
|
|
175
|
+
SidebarMenuBadge: {};
|
|
176
|
+
SidebarMenuButton: {};
|
|
177
|
+
SidebarMenuItem: {};
|
|
178
|
+
SidebarMenuSkeleton: {};
|
|
179
|
+
SidebarMenuSub: {};
|
|
180
|
+
SidebarMenuSubButton: {};
|
|
181
|
+
SidebarMenuSubItem: {};
|
|
182
|
+
SidebarProvider: {};
|
|
183
|
+
SidebarRail: {};
|
|
184
|
+
SidebarSeparator: {};
|
|
185
|
+
SidebarTrigger: {};
|
|
186
|
+
Skeleton: {};
|
|
187
|
+
Switch: {};
|
|
188
|
+
SwitchField: {};
|
|
189
|
+
SwitchFieldController: {};
|
|
190
|
+
Table: {};
|
|
191
|
+
TableBody: {};
|
|
192
|
+
TableCaption: {};
|
|
193
|
+
TableCell: {};
|
|
194
|
+
TableFooter: {};
|
|
195
|
+
TableHead: {};
|
|
196
|
+
TableHeader: {};
|
|
197
|
+
TableRow: {};
|
|
198
|
+
Textarea: {};
|
|
199
|
+
TextareaField: {};
|
|
200
|
+
TextareaFieldController: {};
|
|
201
|
+
TextAreaInput: {};
|
|
202
|
+
TextInput: {};
|
|
203
|
+
Toaster: {};
|
|
204
|
+
Tooltip: {};
|
|
205
|
+
TooltipContent: {};
|
|
206
|
+
TooltipProvider: {};
|
|
207
|
+
TooltipTrigger: {};
|
|
208
|
+
useConfirmDialog: {};
|
|
209
|
+
UseConfirmDialogRequestOptions: {
|
|
210
|
+
isTypeOnly: true;
|
|
211
|
+
};
|
|
212
|
+
useConfirmDialogState: {};
|
|
213
|
+
useControlledState: {};
|
|
214
|
+
useControllerMerged: {};
|
|
215
|
+
useIsMobile: {};
|
|
216
|
+
useMultiComboboxContext: {};
|
|
217
|
+
useSidebar: {};
|
|
218
|
+
}>>;
|
|
219
|
+
}, Record<never, Record<never, never>>>;
|
|
220
|
+
roleManagerDialogGql: import("@baseplate-dev/core-generators").TextTemplateFile<{
|
|
221
|
+
TPL_USER_ROW_FRAGMENT: {};
|
|
222
|
+
}>;
|
|
223
|
+
};
|
|
224
|
+
//# sourceMappingURL=typed-templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.ts"],"names":[],"mappings":"AAuCA,eAAO,MAAM,yDAAyD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGrE,CAAC"}
|
package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createTextTemplateFile, createTsTemplateFile, } from '@baseplate-dev/core-generators';
|
|
2
|
+
import { generatedGraphqlImportsProvider, reactComponentsImportsProvider, } from '@baseplate-dev/react-generators';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
const roleManagerDialog = createTsTemplateFile({
|
|
5
|
+
fileOptions: { kind: 'singleton' },
|
|
6
|
+
importMapProviders: {
|
|
7
|
+
generatedGraphqlImports: generatedGraphqlImportsProvider,
|
|
8
|
+
reactComponentsImports: reactComponentsImportsProvider,
|
|
9
|
+
},
|
|
10
|
+
name: 'role-manager-dialog',
|
|
11
|
+
projectExports: {},
|
|
12
|
+
source: {
|
|
13
|
+
path: path.join(import.meta.dirname, '../templates/routes/-components/role-manager-dialog.tsx'),
|
|
14
|
+
},
|
|
15
|
+
variables: { TPL_AVAILABLE_ROLES: {} },
|
|
16
|
+
});
|
|
17
|
+
const roleManagerDialogGql = createTextTemplateFile({
|
|
18
|
+
fileOptions: { kind: 'singleton' },
|
|
19
|
+
name: 'role-manager-dialog-gql',
|
|
20
|
+
source: {
|
|
21
|
+
path: path.join(import.meta.dirname, '../templates/routes/-components/role-manager-dialog.gql'),
|
|
22
|
+
},
|
|
23
|
+
variables: { TPL_USER_ROW_FRAGMENT: {} },
|
|
24
|
+
});
|
|
25
|
+
export const LOCAL_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_TEMPLATES = {
|
|
26
|
+
roleManagerDialog,
|
|
27
|
+
roleManagerDialogGql,
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=typed-templates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,+BAA+B,EAC/B,8BAA8B,GAC/B,MAAM,iCAAiC,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;IAC7C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,kBAAkB,EAAE;QAClB,uBAAuB,EAAE,+BAA+B;QACxD,sBAAsB,EAAE,8BAA8B;KACvD;IACD,IAAI,EAAE,qBAAqB;IAC3B,cAAc,EAAE,EAAE;IAClB,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,yDAAyD,CAC1D;KACF;IACD,SAAS,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAAE;CACvC,CAAC,CAAC;AAEH,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;IAClD,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,IAAI,EAAE,yBAAyB;IAC/B,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,yDAAyD,CAC1D;KACF;IACD,SAAS,EAAE,EAAE,qBAAqB,EAAE,EAAE,EAAE;CACzC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yDAAyD,GAAG;IACvE,iBAAiB;IACjB,oBAAoB;CACrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/admin/generators/admin-crud-manage-roles-action/index.ts"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/local-auth/admin/generators/admin-crud-manage-roles-action/index.ts"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { UserRowFragment } from '%generatedGraphqlImports';
|
|
2
|
+
import type { ReactElement } from 'react';
|
|
3
|
+
interface RoleManagerDialogProps {
|
|
4
|
+
user: UserRowFragment;
|
|
5
|
+
open: boolean;
|
|
6
|
+
onOpenChange: (open: boolean) => void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Dialog for managing user roles.
|
|
10
|
+
* Allows admins to assign or remove roles from users.
|
|
11
|
+
* Self-contained component that handles its own mutation logic.
|
|
12
|
+
*
|
|
13
|
+
* @param props - The component props
|
|
14
|
+
* @param props.user - The user whose roles are being managed
|
|
15
|
+
* @param props.open - Whether the dialog is open
|
|
16
|
+
* @param props.onOpenChange - Callback when dialog open state changes
|
|
17
|
+
* @returns The role manager dialog component
|
|
18
|
+
*/
|
|
19
|
+
export declare function RoleManagerDialog({ user, open, onOpenChange, }: RoleManagerDialogProps): ReactElement;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=role-manager-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-manager-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAsC1C,UAAU,sBAAsB;IAC9B,IAAI,EAAE,eAAe,CAAC;IACtB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,IAAI,EACJ,YAAY,GACb,EAAE,sBAAsB,GAAG,YAAY,CAkFvC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { GetUsersDocument, UpdateUserRolesDocument, } from '%generatedGraphqlImports';
|
|
3
|
+
import { Button, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, MultiComboboxFieldController, } from '%reactComponentsImports';
|
|
4
|
+
import { useMutation } from '@apollo/client';
|
|
5
|
+
import { zodResolver } from '@hookform/resolvers/zod';
|
|
6
|
+
import { useState } from 'react';
|
|
7
|
+
import { useForm } from 'react-hook-form';
|
|
8
|
+
import { toast } from 'sonner';
|
|
9
|
+
import { z } from 'zod';
|
|
10
|
+
const roleFormSchema = z.object({
|
|
11
|
+
roles: z.array(z.string()),
|
|
12
|
+
});
|
|
13
|
+
// Define available roles (excluding built-in roles)
|
|
14
|
+
const AVAILABLE_ROLES = TPL_AVAILABLE_ROLES;
|
|
15
|
+
/**
|
|
16
|
+
* Dialog for managing user roles.
|
|
17
|
+
* Allows admins to assign or remove roles from users.
|
|
18
|
+
* Self-contained component that handles its own mutation logic.
|
|
19
|
+
*
|
|
20
|
+
* @param props - The component props
|
|
21
|
+
* @param props.user - The user whose roles are being managed
|
|
22
|
+
* @param props.open - Whether the dialog is open
|
|
23
|
+
* @param props.onOpenChange - Callback when dialog open state changes
|
|
24
|
+
* @returns The role manager dialog component
|
|
25
|
+
*/
|
|
26
|
+
export function RoleManagerDialog({ user, open, onOpenChange, }) {
|
|
27
|
+
const [isSaving, setIsSaving] = useState(false);
|
|
28
|
+
const [updateUserRoles] = useMutation(UpdateUserRolesDocument, {
|
|
29
|
+
refetchQueries: [{ query: GetUsersDocument }],
|
|
30
|
+
});
|
|
31
|
+
const form = useForm({
|
|
32
|
+
resolver: zodResolver(roleFormSchema),
|
|
33
|
+
defaultValues: {
|
|
34
|
+
roles: user.roles.map((r) => r.role),
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
const handleSubmit = async (data) => {
|
|
38
|
+
setIsSaving(true);
|
|
39
|
+
try {
|
|
40
|
+
await updateUserRoles({
|
|
41
|
+
variables: {
|
|
42
|
+
input: { userId: user.id, roles: data.roles },
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
toast.success('Roles updated successfully');
|
|
46
|
+
onOpenChange(false);
|
|
47
|
+
}
|
|
48
|
+
catch {
|
|
49
|
+
toast.error('Failed to update roles');
|
|
50
|
+
}
|
|
51
|
+
finally {
|
|
52
|
+
setIsSaving(false);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
return (_jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: _jsxs(DialogContent, { className: "sm:max-w-[500px]", children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { children: "Manage Roles" }), _jsxs(DialogDescription, { children: ["Assign roles to ", user.name ?? user.email] })] }), _jsxs("form", { onSubmit: form.handleSubmit(handleSubmit), children: [_jsx("div", { className: "py-4", children: _jsx(MultiComboboxFieldController, { control: form.control, name: "roles", label: "User Roles", description: "Select one or more roles for this user. Built-in roles like 'user' and 'public' are automatically assigned.", placeholder: "Search and select roles...", options: AVAILABLE_ROLES, getOptionLabel: (option) => option.label, getOptionValue: (option) => option.value, renderItemLabel: (option) => (_jsxs("div", { className: "flex flex-col", children: [_jsx("span", { children: option.label }), _jsx("span", { className: "text-xs text-muted-foreground", children: option.description })] })), noResultsText: "No roles found" }) }), _jsxs(DialogFooter, { children: [_jsx(Button, { type: "button", variant: "outline", onClick: () => {
|
|
56
|
+
onOpenChange(false);
|
|
57
|
+
}, children: "Cancel" }), _jsx(Button, { type: "submit", disabled: isSaving, children: "Save Roles" })] })] })] }) }));
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=role-manager-dialog.js.map
|