@baseplate-dev/plugin-auth 0.6.8 → 0.6.10
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 +38 -0
- package/dist/auth/core/web.js +31 -2
- package/dist/better-auth/constants/packages.d.ts +1 -1
- package/dist/better-auth/constants/packages.js +1 -1
- package/dist/better-auth/core/web.js +15 -2
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts +0 -1
- package/dist/local-auth/core/web.js +15 -2
- package/dist/placeholder-auth/core/web.js +13 -2
- package/dist/web/assets/_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-ClIdhDoz.js +218 -0
- 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__.mjs-DMKuehfC.js +100 -0
- 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__.mjs-D-Ap1aU9.js +38 -0
- 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__.mjs-BwkXxd-B.js +38 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__-D-_Nu6mi.js +2 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.mjs-CCE3BH4R.js +7061 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__-Bed38hA6.js +3 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react_mf_2_dom__loadShare__-Bixm3Wfj.js +2 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__-BArWH8PX.js +2 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.mjs-BalS-ZNe.js +13533 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__prebuild___mf_0_tanstack_mf_1_react_mf_2_router__prebuild__-C01b4AWM.js +2 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__prebuild__react__prebuild__-D4n2cb00.js +3 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__prebuild__react_mf_1_jsx_mf_2_runtime__prebuild__-BkswA-5f.js +2 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__prebuild__react_mf_2_dom__prebuild__-CiX5bkAg.js +2 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__prebuild__zod__prebuild__-BnF6dd62.js +2 -0
- package/dist/web/assets/auth-B91ghZtH.js +1 -0
- package/dist/web/assets/common-C7yhhy8-.js +39 -0
- package/dist/web/assets/common-DiDohcsR.js +37 -0
- package/dist/web/assets/common-DpbhYjND.js +39 -0
- package/dist/web/assets/common-DsAJIAWm.js +63 -0
- package/dist/web/assets/common-ERn8TuKQ.js +37 -0
- package/dist/web/assets/common-KNIYXbku.js +18 -0
- package/dist/web/assets/dist-B0GpYPx6.js +18145 -0
- package/dist/web/assets/dist-BhvYza4J.js +69565 -0
- package/dist/web/assets/dist-CEUHjZe8.js +3017 -0
- package/dist/web/assets/get-auth-plugin-definition-Bu_lkrUz.js +14 -0
- package/dist/web/assets/hostInit-BeM6xnlw.js +72 -0
- package/dist/web/assets/index-D5GoD4M0.js +2 -0
- package/dist/web/assets/index.esm-iUXrvsTx.js +2003 -0
- package/dist/web/assets/md-BLjaL5ZD.js +439 -0
- package/dist/web/assets/model-names-BluImOzu.js +27 -0
- package/dist/web/assets/model-names-CUS5rSei.js +12 -0
- package/dist/web/assets/model-utils-BPfI0c3Y.js +1287 -0
- package/dist/web/assets/models-BTYxwDyB.js +304 -0
- package/dist/web/assets/models-BufWBHGv.js +285 -0
- package/dist/web/assets/plugin-definition-BTHzuXv5.js +78 -0
- package/dist/web/assets/plugin-definition-D5s4GTfd.js +11 -0
- package/dist/web/assets/react-B4hMnLhV.js +49 -0
- package/dist/web/assets/rolldown-runtime-_TIqcEvS.js +35 -0
- package/dist/web/assets/stringify-pretty-stable-ByfjYf8u.js +155 -0
- package/dist/web/assets/styles-BpmWykfT.js +174 -0
- package/dist/web/assets/{style-DiK_rD1L.css → styles-CAm3HyKx.css} +1 -1
- package/dist/web/assets/virtualExposes-Bru0eAhP.js +2 -0
- package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-DK03x1PZ.js +270 -0
- package/dist/web/assets/virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DBiKf3iL.js +168 -0
- package/dist/web/assets/web-BUa3uD-P.js +400 -0
- package/dist/web/assets/web-BmHd5WWD.js +124 -0
- package/dist/web/assets/web-CgosRRUN.js +119 -0
- package/dist/web/assets/web-DhTqWxxL.js +46 -0
- package/dist/web/assets/web-DlJyNEbj.js +357 -0
- package/dist/web/assets/web-ffSErgfF.js +46 -0
- package/dist/web/assets/web-nADEuz1b.js +107 -0
- package/dist/web/index.html +1 -1
- package/dist/web/mf-entry-bootstrap-0.js +17 -0
- package/dist/web/remoteEntry.js +2 -0
- package/package.json +23 -20
- package/dist/auth/core/common.d.ts.map +0 -1
- package/dist/auth/core/common.js.map +0 -1
- package/dist/auth/core/components/auth-definition-editor.d.ts.map +0 -1
- package/dist/auth/core/components/auth-definition-editor.js.map +0 -1
- package/dist/auth/core/components/role-editor-form/role-dialog.d.ts.map +0 -1
- package/dist/auth/core/components/role-editor-form/role-dialog.js.map +0 -1
- package/dist/auth/core/components/role-editor-form/role-editor-form.d.ts.map +0 -1
- package/dist/auth/core/components/role-editor-form/role-editor-form.js.map +0 -1
- package/dist/auth/core/node.d.ts.map +0 -1
- package/dist/auth/core/node.js.map +0 -1
- package/dist/auth/core/schema/migrations.d.ts.map +0 -1
- package/dist/auth/core/schema/migrations.js.map +0 -1
- package/dist/auth/core/schema/plugin-definition.d.ts.map +0 -1
- package/dist/auth/core/schema/plugin-definition.js.map +0 -1
- package/dist/auth/core/schema/roles/constants.d.ts.map +0 -1
- package/dist/auth/core/schema/roles/constants.js.map +0 -1
- package/dist/auth/core/schema/roles/index.d.ts.map +0 -1
- package/dist/auth/core/schema/roles/index.js.map +0 -1
- package/dist/auth/core/schema/roles/schema.d.ts.map +0 -1
- package/dist/auth/core/schema/roles/schema.js.map +0 -1
- package/dist/auth/core/web.d.ts.map +0 -1
- package/dist/auth/core/web.js.map +0 -1
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/auth/index.js.map +0 -1
- package/dist/auth/utils/get-auth-plugin-definition.d.ts.map +0 -1
- package/dist/auth/utils/get-auth-plugin-definition.js.map +0 -1
- package/dist/auth/utils/index.d.ts.map +0 -1
- package/dist/auth/utils/index.js.map +0 -1
- package/dist/better-auth/admin/common.d.ts.map +0 -1
- package/dist/better-auth/admin/common.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/index.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/index.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/index.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/index.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-roles-column/index.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-roles-column/index.js.map +0 -1
- package/dist/better-auth/admin/node.d.ts.map +0 -1
- package/dist/better-auth/admin/node.js.map +0 -1
- package/dist/better-auth/admin/schema/manage-role-action.d.ts.map +0 -1
- package/dist/better-auth/admin/schema/manage-role-action.js.map +0 -1
- package/dist/better-auth/admin/schema/reset-password-action.d.ts.map +0 -1
- package/dist/better-auth/admin/schema/reset-password-action.js.map +0 -1
- package/dist/better-auth/admin/schema/roles-column.d.ts.map +0 -1
- package/dist/better-auth/admin/schema/roles-column.js.map +0 -1
- package/dist/better-auth/admin/web.d.ts.map +0 -1
- package/dist/better-auth/admin/web.js.map +0 -1
- package/dist/better-auth/constants/model-names.d.ts.map +0 -1
- package/dist/better-auth/constants/model-names.js.map +0 -1
- package/dist/better-auth/constants/packages.d.ts.map +0 -1
- package/dist/better-auth/constants/packages.js.map +0 -1
- package/dist/better-auth/core/common.d.ts.map +0 -1
- package/dist/better-auth/core/common.js.map +0 -1
- package/dist/better-auth/core/components/better-auth-definition-editor.d.ts.map +0 -1
- package/dist/better-auth/core/components/better-auth-definition-editor.js.map +0 -1
- package/dist/better-auth/core/index.d.ts.map +0 -1
- package/dist/better-auth/core/index.js.map +0 -1
- package/dist/better-auth/core/node.d.ts.map +0 -1
- package/dist/better-auth/core/node.js.map +0 -1
- package/dist/better-auth/core/schema/models.d.ts.map +0 -1
- package/dist/better-auth/core/schema/models.js.map +0 -1
- package/dist/better-auth/core/schema/plugin-definition.d.ts.map +0 -1
- package/dist/better-auth/core/schema/plugin-definition.js.map +0 -1
- package/dist/better-auth/core/schema/schema-issue-checker.d.ts.map +0 -1
- package/dist/better-auth/core/schema/schema-issue-checker.js.map +0 -1
- package/dist/better-auth/core/web.d.ts.map +0 -1
- package/dist/better-auth/core/web.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-paths.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/index.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/index.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/better-auth-email-templates.generator.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/better-auth-email-templates.generator.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-paths.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/index.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/index.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/index.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/index.js.map +0 -1
- package/dist/better-auth/generators/fastify/index.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/index.js.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/index.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/index.js.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-paths.js.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/index.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/index.js.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/seed-initial-user.generator.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/seed-initial-user.generator.js.map +0 -1
- package/dist/better-auth/generators/index.d.ts.map +0 -1
- package/dist/better-auth/generators/index.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/index.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/index.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/index.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/index.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/index.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/index.js.map +0 -1
- package/dist/better-auth/generators/react/index.d.ts.map +0 -1
- package/dist/better-auth/generators/react/index.js.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/index.js.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.js.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.js.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/index.d.ts.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/index.js.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.js.map +0 -1
- package/dist/better-auth/index.d.ts.map +0 -1
- package/dist/better-auth/index.js.map +0 -1
- package/dist/common/components/auth-config-tabs.d.ts.map +0 -1
- package/dist/common/components/auth-config-tabs.js.map +0 -1
- package/dist/local-auth/admin/common.d.ts.map +0 -1
- package/dist/local-auth/admin/common.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-roles-column/index.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-roles-column/index.js.map +0 -1
- package/dist/local-auth/admin/node.d.ts.map +0 -1
- package/dist/local-auth/admin/node.js.map +0 -1
- package/dist/local-auth/admin/schema/manage-role-action.d.ts.map +0 -1
- package/dist/local-auth/admin/schema/manage-role-action.js.map +0 -1
- package/dist/local-auth/admin/schema/reset-password-action.d.ts.map +0 -1
- package/dist/local-auth/admin/schema/reset-password-action.js.map +0 -1
- package/dist/local-auth/admin/schema/roles-column.d.ts.map +0 -1
- package/dist/local-auth/admin/schema/roles-column.js.map +0 -1
- package/dist/local-auth/admin/web.d.ts.map +0 -1
- package/dist/local-auth/admin/web.js.map +0 -1
- package/dist/local-auth/constants/model-names.d.ts.map +0 -1
- package/dist/local-auth/constants/model-names.js.map +0 -1
- package/dist/local-auth/core/common.d.ts.map +0 -1
- package/dist/local-auth/core/common.js.map +0 -1
- package/dist/local-auth/core/components/local-auth-definition-editor.d.ts.map +0 -1
- package/dist/local-auth/core/components/local-auth-definition-editor.js.map +0 -1
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.js.map +0 -1
- package/dist/local-auth/core/generators/auth-apollo/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-apollo/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js.map +0 -1
- package/dist/local-auth/core/generators/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/index.js.map +0 -1
- package/dist/local-auth/core/generators/react-auth/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-auth/index.js.map +0 -1
- package/dist/local-auth/core/generators/react-auth/react-auth.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-auth/react-auth.generator.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/index.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/template-paths.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/index.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/react-session.generator.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/index.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js.map +0 -1
- package/dist/local-auth/core/index.d.ts.map +0 -1
- package/dist/local-auth/core/index.js.map +0 -1
- package/dist/local-auth/core/node.d.ts.map +0 -1
- package/dist/local-auth/core/node.js.map +0 -1
- package/dist/local-auth/core/schema/models.d.ts.map +0 -1
- package/dist/local-auth/core/schema/models.js.map +0 -1
- package/dist/local-auth/core/schema/plugin-definition.d.ts.map +0 -1
- package/dist/local-auth/core/schema/plugin-definition.js.map +0 -1
- package/dist/local-auth/core/schema/schema-issue-checker.d.ts.map +0 -1
- package/dist/local-auth/core/schema/schema-issue-checker.js.map +0 -1
- package/dist/local-auth/core/web.d.ts.map +0 -1
- package/dist/local-auth/core/web.js.map +0 -1
- package/dist/local-auth/index.d.ts.map +0 -1
- package/dist/local-auth/index.js.map +0 -1
- package/dist/placeholder-auth/constants/model-names.d.ts.map +0 -1
- package/dist/placeholder-auth/constants/model-names.js.map +0 -1
- package/dist/placeholder-auth/core/common.d.ts.map +0 -1
- package/dist/placeholder-auth/core/common.js.map +0 -1
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.d.ts.map +0 -1
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js.map +0 -1
- package/dist/placeholder-auth/core/generators/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-paths.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-paths.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.js.map +0 -1
- package/dist/placeholder-auth/core/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/index.js.map +0 -1
- package/dist/placeholder-auth/core/node.d.ts.map +0 -1
- package/dist/placeholder-auth/core/node.js.map +0 -1
- package/dist/placeholder-auth/core/schema/models.d.ts.map +0 -1
- package/dist/placeholder-auth/core/schema/models.js.map +0 -1
- package/dist/placeholder-auth/core/schema/plugin-definition.d.ts.map +0 -1
- package/dist/placeholder-auth/core/schema/plugin-definition.js.map +0 -1
- package/dist/placeholder-auth/core/web.d.ts.map +0 -1
- package/dist/placeholder-auth/core/web.js.map +0 -1
- package/dist/placeholder-auth/index.d.ts.map +0 -1
- package/dist/placeholder-auth/index.js.map +0 -1
- package/dist/web/assets/__federation_expose_authCoreCommon-Chd1hkDj.js +0 -85
- package/dist/web/assets/__federation_expose_authCoreCommon-Chd1hkDj.js.map +0 -1
- package/dist/web/assets/__federation_expose_authCoreWeb-B6MMIRwe.js +0 -453
- package/dist/web/assets/__federation_expose_authCoreWeb-B6MMIRwe.js.map +0 -1
- package/dist/web/assets/__federation_expose_better-authAdminCommon-BTbhl15Q.js +0 -63
- package/dist/web/assets/__federation_expose_better-authAdminCommon-BTbhl15Q.js.map +0 -1
- package/dist/web/assets/__federation_expose_better-authAdminWeb-CwKP2Fwx.js +0 -41
- package/dist/web/assets/__federation_expose_better-authAdminWeb-CwKP2Fwx.js.map +0 -1
- package/dist/web/assets/__federation_expose_better-authCoreCommon-DHvNg16x.js +0 -54
- package/dist/web/assets/__federation_expose_better-authCoreCommon-DHvNg16x.js.map +0 -1
- package/dist/web/assets/__federation_expose_better-authCoreWeb-DcL0DNwe.js +0 -157
- package/dist/web/assets/__federation_expose_better-authCoreWeb-DcL0DNwe.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authAdminCommon-BTbhl15Q.js +0 -63
- package/dist/web/assets/__federation_expose_local-authAdminCommon-BTbhl15Q.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authAdminWeb-DeDTjgfy.js +0 -41
- package/dist/web/assets/__federation_expose_local-authAdminWeb-DeDTjgfy.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authCoreCommon-CaB76kZh.js +0 -54
- package/dist/web/assets/__federation_expose_local-authCoreCommon-CaB76kZh.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authCoreWeb-J0GrCM1P.js +0 -167
- package/dist/web/assets/__federation_expose_local-authCoreWeb-J0GrCM1P.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-DEOS_PRC.js +0 -23
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-DEOS_PRC.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-xpLN9suD.js +0 -177
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-xpLN9suD.js.map +0 -1
- package/dist/web/assets/__federation_fn_import-DboThXN4.js +0 -421
- package/dist/web/assets/__federation_fn_import-DboThXN4.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-wm-FNH7x.js +0 -359
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-wm-FNH7x.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CDRCjvEd.js +0 -22532
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CDRCjvEd.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-Bwy1GWne.js +0 -78637
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-Bwy1GWne.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-Cs-QtWzA.js +0 -1855
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-Cs-QtWzA.js.map +0 -1
- package/dist/web/assets/__federation_shared_@tanstack/react-router-_N2czGX0.js +0 -6565
- package/dist/web/assets/__federation_shared_@tanstack/react-router-_N2czGX0.js.map +0 -1
- package/dist/web/assets/__federation_shared_react-CJ2OfFKA.js +0 -8
- package/dist/web/assets/__federation_shared_react-CJ2OfFKA.js.map +0 -1
- package/dist/web/assets/__federation_shared_react-dom-B4vgf5Ln.js +0 -251
- package/dist/web/assets/__federation_shared_react-dom-B4vgf5Ln.js.map +0 -1
- package/dist/web/assets/__federation_shared_zod-Do7Aa1b5.js +0 -13250
- package/dist/web/assets/__federation_shared_zod-Do7Aa1b5.js.map +0 -1
- package/dist/web/assets/_commonjsHelpers-B85MJLTf.js +0 -6
- package/dist/web/assets/_commonjsHelpers-B85MJLTf.js.map +0 -1
- package/dist/web/assets/get-auth-plugin-definition-Dy9T0JTI.js +0 -13
- package/dist/web/assets/get-auth-plugin-definition-Dy9T0JTI.js.map +0 -1
- package/dist/web/assets/index-DN2TTEo8.js +0 -101
- package/dist/web/assets/index-DN2TTEo8.js.map +0 -1
- package/dist/web/assets/index-DUwCgkeV.js +0 -570
- package/dist/web/assets/index-DUwCgkeV.js.map +0 -1
- package/dist/web/assets/index-l0sNRNKZ.js.map +0 -1
- package/dist/web/assets/index.esm-BMmVLbge.js +0 -2676
- package/dist/web/assets/index.esm-BMmVLbge.js.map +0 -1
- package/dist/web/assets/isEqual-tnzoadW8.js +0 -242
- package/dist/web/assets/isEqual-tnzoadW8.js.map +0 -1
- package/dist/web/assets/jsx-runtime-XI9uIe3W.js +0 -60
- package/dist/web/assets/jsx-runtime-XI9uIe3W.js.map +0 -1
- package/dist/web/assets/mergeWith-VagwCqUi.js +0 -76
- package/dist/web/assets/mergeWith-VagwCqUi.js.map +0 -1
- package/dist/web/assets/model-names-D7UT0B8x.js +0 -10
- package/dist/web/assets/model-names-D7UT0B8x.js.map +0 -1
- package/dist/web/assets/model-names-DrcaRxt1.js +0 -25
- package/dist/web/assets/model-names-DrcaRxt1.js.map +0 -1
- package/dist/web/assets/model-utils-DVlh_mZg.js +0 -840
- package/dist/web/assets/model-utils-DVlh_mZg.js.map +0 -1
- package/dist/web/assets/plugin-definition-BA3dR1I6.js +0 -16
- package/dist/web/assets/plugin-definition-BA3dR1I6.js.map +0 -1
- package/dist/web/assets/plugin-definition-DqIciiTP.js +0 -93
- package/dist/web/assets/plugin-definition-DqIciiTP.js.map +0 -1
- package/dist/web/assets/plugin-definition-TuWj1Cbs.js +0 -315
- package/dist/web/assets/plugin-definition-TuWj1Cbs.js.map +0 -1
- package/dist/web/assets/plugin-definition-YXnH0eeN.js +0 -304
- package/dist/web/assets/plugin-definition-YXnH0eeN.js.map +0 -1
- package/dist/web/assets/react-BFk_Rnee.js +0 -47
- package/dist/web/assets/react-BFk_Rnee.js.map +0 -1
- package/dist/web/assets/registries-Tz_dluz3.js +0 -1119
- package/dist/web/assets/registries-Tz_dluz3.js.map +0 -1
- package/dist/web/assets/remoteEntry.js +0 -84
- package/dist/web/assets/remoteEntry.js.map +0 -1
- package/dist/web/assets/styles-CdKqeRZD.js +0 -69
- package/dist/web/assets/styles-CdKqeRZD.js.map +0 -1
- package/dist/web/assets/with-selector-DTXBONcE.js +0 -201
- package/dist/web/assets/with-selector-DTXBONcE.js.map +0 -1
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { importShared } from './__federation_fn_import-DboThXN4.js';
|
|
2
|
-
import { c as createPlaceholderAuthPluginDefinitionSchema, P as PLACEHOLDER_AUTH_MODELS } from './plugin-definition-BA3dR1I6.js';
|
|
3
|
-
|
|
4
|
-
const {authModelsSpec,createPluginModule,pluginConfigSpec} = await importShared('@baseplate-dev/project-builder-lib');
|
|
5
|
-
const common = createPluginModule({
|
|
6
|
-
name: "common",
|
|
7
|
-
dependencies: {
|
|
8
|
-
pluginConfig: pluginConfigSpec,
|
|
9
|
-
authModels: authModelsSpec
|
|
10
|
-
},
|
|
11
|
-
initialize: ({ pluginConfig, authModels }, { pluginKey }) => {
|
|
12
|
-
pluginConfig.schemas.set(
|
|
13
|
-
pluginKey,
|
|
14
|
-
createPlaceholderAuthPluginDefinitionSchema
|
|
15
|
-
);
|
|
16
|
-
authModels.getAuthModels.set(() => ({
|
|
17
|
-
user: PLACEHOLDER_AUTH_MODELS.user
|
|
18
|
-
}));
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
export { common as default };
|
|
23
|
-
//# sourceMappingURL=__federation_expose_placeholder-authCoreCommon-DEOS_PRC.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__federation_expose_placeholder-authCoreCommon-DEOS_PRC.js","sources":["../../../src/placeholder-auth/core/common.ts"],"sourcesContent":["import {\n authModelsSpec,\n createPluginModule,\n pluginConfigSpec,\n} from '@baseplate-dev/project-builder-lib';\n\nimport { PLACEHOLDER_AUTH_MODELS } from '#src/placeholder-auth/constants/model-names.js';\n\nimport { createPlaceholderAuthPluginDefinitionSchema } from './schema/plugin-definition.js';\n\nexport default createPluginModule({\n name: 'common',\n dependencies: {\n pluginConfig: pluginConfigSpec,\n authModels: authModelsSpec,\n },\n initialize: ({ pluginConfig, authModels }, { pluginKey }) => {\n pluginConfig.schemas.set(\n pluginKey,\n createPlaceholderAuthPluginDefinitionSchema,\n );\n authModels.getAuthModels.set(() => ({\n user: PLACEHOLDER_AUTH_MODELS.user,\n }));\n },\n});\n"],"names":[],"mappings":";;;AAAA,MAAA,CAAA,cAAA,CAAA,kBAAA,CAAA,gBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;AAUA,eAAe,kBAAA,CAAmB;AAAA,EAChC,IAAA,EAAM,QAAA;AAAA,EACN,YAAA,EAAc;AAAA,IACZ,YAAA,EAAc,gBAAA;AAAA,IACd,UAAA,EAAY;AAAA,GACd;AAAA,EACA,UAAA,EAAY,CAAC,EAAE,YAAA,EAAc,YAAW,EAAG,EAAE,WAAU,KAAM;AAC3D,IAAA,YAAA,CAAa,OAAA,CAAQ,GAAA;AAAA,MACnB,SAAA;AAAA,MACA;AAAA,KACF;AACA,IAAA,UAAA,CAAW,aAAA,CAAc,IAAI,OAAO;AAAA,MAClC,MAAM,uBAAA,CAAwB;AAAA,KAChC,CAAE,CAAA;AAAA,EACJ;AACF,CAAC,CAAA;;;;"}
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import { importShared } from './__federation_fn_import-DboThXN4.js';
|
|
2
|
-
import { j as jsxRuntimeExports } from './jsx-runtime-XI9uIe3W.js';
|
|
3
|
-
import { a, A as AuthConfigTabs } from './styles-CdKqeRZD.js';
|
|
4
|
-
import { g as getAuthPluginDefinition } from './get-auth-plugin-definition-Dy9T0JTI.js';
|
|
5
|
-
import { P as PLACEHOLDER_AUTH_MODELS, c as createPlaceholderAuthPluginDefinitionSchema } from './plugin-definition-BA3dR1I6.js';
|
|
6
|
-
|
|
7
|
-
function createPlaceholderAuthPartialDefinition(authFeatureName) {
|
|
8
|
-
return {
|
|
9
|
-
models: [
|
|
10
|
-
{
|
|
11
|
-
name: PLACEHOLDER_AUTH_MODELS.user,
|
|
12
|
-
featureRef: authFeatureName,
|
|
13
|
-
model: {
|
|
14
|
-
fields: [
|
|
15
|
-
{
|
|
16
|
-
name: "id",
|
|
17
|
-
type: "uuid",
|
|
18
|
-
options: { defaultGeneration: "uuidv7" }
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
name: "email",
|
|
22
|
-
type: "string",
|
|
23
|
-
isOptional: true
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
primaryKeyFieldRefs: ["id"],
|
|
27
|
-
uniqueConstraints: [
|
|
28
|
-
{
|
|
29
|
-
fields: [{ fieldRef: "email" }]
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
graphql: {
|
|
34
|
-
objectType: {
|
|
35
|
-
enabled: true,
|
|
36
|
-
fields: [
|
|
37
|
-
{ ref: "id" },
|
|
38
|
-
{
|
|
39
|
-
ref: "email",
|
|
40
|
-
globalRoles: ["admin"],
|
|
41
|
-
instanceRoles: ["self"]
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
authorizer: {
|
|
47
|
-
roles: [
|
|
48
|
-
{
|
|
49
|
-
name: "self",
|
|
50
|
-
expression: "model.id === userId"
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const {applyMergedDefinition,diffDefinition,PluginUtils} = await importShared('@baseplate-dev/project-builder-lib');
|
|
60
|
-
|
|
61
|
-
const {DefinitionDiffAlert,useBlockUnsavedChangesNavigate,useDefinitionSchema,useProjectDefinition,useResettableForm} = await importShared('@baseplate-dev/project-builder-lib/web');
|
|
62
|
-
|
|
63
|
-
const {FormActionBar,SectionList,SectionListSection,SectionListSectionContent,SectionListSectionDescription,SectionListSectionHeader,SectionListSectionTitle} = await importShared('@baseplate-dev/ui-components');
|
|
64
|
-
const {useMemo} = await importShared('react');
|
|
65
|
-
function PlaceholderAuthDefinitionEditor({
|
|
66
|
-
definition: pluginMetadata,
|
|
67
|
-
metadata,
|
|
68
|
-
onSave
|
|
69
|
-
}) {
|
|
70
|
-
const { definition, definitionContainer, saveDefinitionWithFeedback } = useProjectDefinition();
|
|
71
|
-
const authDefinition = getAuthPluginDefinition(definition);
|
|
72
|
-
const authPluginDefinitionSchema = useDefinitionSchema(
|
|
73
|
-
createPlaceholderAuthPluginDefinitionSchema
|
|
74
|
-
);
|
|
75
|
-
const defaultValues = useMemo(() => {
|
|
76
|
-
if (pluginMetadata?.config) {
|
|
77
|
-
return pluginMetadata.config;
|
|
78
|
-
}
|
|
79
|
-
return {};
|
|
80
|
-
}, [pluginMetadata?.config]);
|
|
81
|
-
const form = useResettableForm({
|
|
82
|
-
resolver: a(authPluginDefinitionSchema),
|
|
83
|
-
defaultValues
|
|
84
|
-
});
|
|
85
|
-
const { control, reset, handleSubmit } = form;
|
|
86
|
-
const authFeature = definition.features.find(
|
|
87
|
-
(f) => f.id === authDefinition.authFeatureRef
|
|
88
|
-
);
|
|
89
|
-
if (!authFeature) {
|
|
90
|
-
throw new Error(
|
|
91
|
-
`Auth feature not found for ref: ${authDefinition.authFeatureRef}`
|
|
92
|
-
);
|
|
93
|
-
}
|
|
94
|
-
const partialDef = useMemo(
|
|
95
|
-
() => createPlaceholderAuthPartialDefinition(authFeature.name),
|
|
96
|
-
[authFeature.name]
|
|
97
|
-
);
|
|
98
|
-
const diff = useMemo(
|
|
99
|
-
() => diffDefinition(
|
|
100
|
-
definitionContainer.schema,
|
|
101
|
-
definitionContainer.definition,
|
|
102
|
-
partialDef
|
|
103
|
-
),
|
|
104
|
-
[definitionContainer, partialDef]
|
|
105
|
-
);
|
|
106
|
-
const onSubmit = handleSubmit(
|
|
107
|
-
(data) => saveDefinitionWithFeedback(
|
|
108
|
-
(draftConfig) => {
|
|
109
|
-
const updatedData = {
|
|
110
|
-
...data
|
|
111
|
-
};
|
|
112
|
-
applyMergedDefinition(definitionContainer, partialDef)(draftConfig);
|
|
113
|
-
PluginUtils.setPluginConfig(
|
|
114
|
-
draftConfig,
|
|
115
|
-
metadata,
|
|
116
|
-
updatedData,
|
|
117
|
-
definitionContainer
|
|
118
|
-
);
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
successMessage: "Successfully saved placeholder auth plugin!",
|
|
122
|
-
onSuccess: () => {
|
|
123
|
-
onSave();
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
)
|
|
127
|
-
);
|
|
128
|
-
useBlockUnsavedChangesNavigate({ control, reset, onSubmit });
|
|
129
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "auth:relative auth:flex auth:h-full auth:flex-1 auth:flex-col auth:gap-4 auth:overflow-hidden", children: [
|
|
130
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(AuthConfigTabs, {}),
|
|
131
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
132
|
-
"div",
|
|
133
|
-
{
|
|
134
|
-
className: "auth:mb-[--action-bar-height] auth:flex auth:flex-1 auth:overflow-y-auto",
|
|
135
|
-
style: {
|
|
136
|
-
"--action-bar-height": "52px"
|
|
137
|
-
},
|
|
138
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("form", { onSubmit, className: "auth:max-w-6xl auth:flex-1", children: [
|
|
139
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "auth:pb-16", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SectionList, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(SectionListSection, { children: [
|
|
140
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(SectionListSectionHeader, { children: [
|
|
141
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionTitle, { children: "Placeholder Auth Configuration" }),
|
|
142
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionDescription, { children: "The plugin will automatically configure the models it needs." })
|
|
143
|
-
] }),
|
|
144
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionContent, { className: "auth:space-y-6", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
145
|
-
DefinitionDiffAlert,
|
|
146
|
-
{
|
|
147
|
-
diff,
|
|
148
|
-
upToDateMessage: "All required models are already configured correctly. No changes needed."
|
|
149
|
-
}
|
|
150
|
-
) })
|
|
151
|
-
] }) }) }),
|
|
152
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
153
|
-
FormActionBar,
|
|
154
|
-
{
|
|
155
|
-
form,
|
|
156
|
-
allowSaveWithoutDirty: !pluginMetadata || diff.hasChanges
|
|
157
|
-
}
|
|
158
|
-
)
|
|
159
|
-
] })
|
|
160
|
-
}
|
|
161
|
-
)
|
|
162
|
-
] });
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
const {createPluginModule,webConfigSpec} = await importShared('@baseplate-dev/project-builder-lib');
|
|
166
|
-
const web = createPluginModule({
|
|
167
|
-
name: "web",
|
|
168
|
-
dependencies: {
|
|
169
|
-
webConfig: webConfigSpec
|
|
170
|
-
},
|
|
171
|
-
initialize: ({ webConfig }, { pluginKey }) => {
|
|
172
|
-
webConfig.components.set(pluginKey, PlaceholderAuthDefinitionEditor);
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
|
|
176
|
-
export { web as default };
|
|
177
|
-
//# sourceMappingURL=__federation_expose_placeholder-authCoreWeb-xpLN9suD.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__federation_expose_placeholder-authCoreWeb-xpLN9suD.js","sources":["../../../src/placeholder-auth/core/schema/models.ts","../../../src/placeholder-auth/core/components/placeholder-auth-definition-editor.tsx","../../../src/placeholder-auth/core/web.ts"],"sourcesContent":["import type { PartialProjectDefinitionInput } from '@baseplate-dev/project-builder-lib';\n\nimport { PLACEHOLDER_AUTH_MODELS } from '#src/placeholder-auth/constants/model-names.js';\n\nexport function createPlaceholderAuthPartialDefinition(\n authFeatureName: string,\n): PartialProjectDefinitionInput {\n return {\n models: [\n {\n name: PLACEHOLDER_AUTH_MODELS.user,\n featureRef: authFeatureName,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { defaultGeneration: 'uuidv7' },\n },\n {\n name: 'email',\n type: 'string',\n isOptional: true,\n },\n ],\n primaryKeyFieldRefs: ['id'],\n uniqueConstraints: [\n {\n fields: [{ fieldRef: 'email' }],\n },\n ],\n },\n graphql: {\n objectType: {\n enabled: true,\n fields: [\n { ref: 'id' },\n {\n ref: 'email',\n globalRoles: ['admin'],\n instanceRoles: ['self'],\n },\n ],\n },\n },\n authorizer: {\n roles: [\n {\n name: 'self',\n expression: 'model.id === userId',\n },\n ],\n },\n },\n ],\n };\n}\n","import type { WebConfigProps } from '@baseplate-dev/project-builder-lib';\nimport type React from 'react';\n\nimport {\n applyMergedDefinition,\n diffDefinition,\n PluginUtils,\n} from '@baseplate-dev/project-builder-lib';\nimport {\n DefinitionDiffAlert,\n useBlockUnsavedChangesNavigate,\n useDefinitionSchema,\n useProjectDefinition,\n useResettableForm,\n} from '@baseplate-dev/project-builder-lib/web';\nimport {\n FormActionBar,\n SectionList,\n SectionListSection,\n SectionListSectionContent,\n SectionListSectionDescription,\n SectionListSectionHeader,\n SectionListSectionTitle,\n} from '@baseplate-dev/ui-components';\nimport { zodResolver } from '@hookform/resolvers/zod';\nimport { useMemo } from 'react';\n\nimport { getAuthPluginDefinition } from '#src/auth/index.js';\nimport { AuthConfigTabs } from '#src/common/components/auth-config-tabs.js';\n\nimport type { PlaceholderAuthPluginDefinitionInput } from '../schema/plugin-definition.js';\n\nimport { createPlaceholderAuthPartialDefinition } from '../schema/models.js';\nimport { createPlaceholderAuthPluginDefinitionSchema } from '../schema/plugin-definition.js';\n\nimport '#src/styles.css';\n\nexport function PlaceholderAuthDefinitionEditor({\n definition: pluginMetadata,\n metadata,\n onSave,\n}: WebConfigProps): React.JSX.Element {\n const { definition, definitionContainer, saveDefinitionWithFeedback } =\n useProjectDefinition();\n\n const authDefinition = getAuthPluginDefinition(definition);\n\n const authPluginDefinitionSchema = useDefinitionSchema(\n createPlaceholderAuthPluginDefinitionSchema,\n );\n\n const defaultValues = useMemo(() => {\n if (pluginMetadata?.config) {\n return pluginMetadata.config as PlaceholderAuthPluginDefinitionInput;\n }\n\n return {} satisfies PlaceholderAuthPluginDefinitionInput;\n }, [pluginMetadata?.config]);\n\n const form = useResettableForm({\n resolver: zodResolver(authPluginDefinitionSchema),\n defaultValues,\n });\n const { control, reset, handleSubmit } = form;\n\n const authFeature = definition.features.find(\n (f) => f.id === authDefinition.authFeatureRef,\n );\n if (!authFeature) {\n throw new Error(\n `Auth feature not found for ref: ${authDefinition.authFeatureRef}`,\n );\n }\n\n const partialDef = useMemo(\n () => createPlaceholderAuthPartialDefinition(authFeature.name),\n [authFeature.name],\n );\n\n const diff = useMemo(\n () =>\n diffDefinition(\n definitionContainer.schema,\n definitionContainer.definition,\n partialDef,\n ),\n [definitionContainer, partialDef],\n );\n\n const onSubmit = handleSubmit((data) =>\n saveDefinitionWithFeedback(\n (draftConfig) => {\n const updatedData = {\n ...data,\n };\n applyMergedDefinition(definitionContainer, partialDef)(draftConfig);\n PluginUtils.setPluginConfig(\n draftConfig,\n metadata,\n updatedData,\n definitionContainer,\n );\n },\n {\n successMessage: 'Successfully saved placeholder auth plugin!',\n onSuccess: () => {\n onSave();\n },\n },\n ),\n );\n\n useBlockUnsavedChangesNavigate({ control, reset, onSubmit });\n\n return (\n <div className=\"auth:relative auth:flex auth:h-full auth:flex-1 auth:flex-col auth:gap-4 auth:overflow-hidden\">\n <AuthConfigTabs />\n <div\n className=\"auth:mb-[--action-bar-height] auth:flex auth:flex-1 auth:overflow-y-auto\"\n style={\n {\n '--action-bar-height': '52px',\n } as React.CSSProperties\n }\n >\n <form onSubmit={onSubmit} className=\"auth:max-w-6xl auth:flex-1\">\n <div className=\"auth:pb-16\">\n <SectionList>\n <SectionListSection>\n <SectionListSectionHeader>\n <SectionListSectionTitle>\n Placeholder Auth Configuration\n </SectionListSectionTitle>\n <SectionListSectionDescription>\n The plugin will automatically configure the models it needs.\n </SectionListSectionDescription>\n </SectionListSectionHeader>\n <SectionListSectionContent className=\"auth:space-y-6\">\n <DefinitionDiffAlert\n diff={diff}\n upToDateMessage=\"All required models are already configured correctly. No changes needed.\"\n />\n </SectionListSectionContent>\n </SectionListSection>\n </SectionList>\n </div>\n\n <FormActionBar\n form={form}\n allowSaveWithoutDirty={!pluginMetadata || diff.hasChanges}\n />\n </form>\n </div>\n </div>\n );\n}\n","import {\n createPluginModule,\n webConfigSpec,\n} from '@baseplate-dev/project-builder-lib';\n\nimport { PlaceholderAuthDefinitionEditor } from './components/placeholder-auth-definition-editor.js';\n\nimport '../../styles.css';\n\nexport default createPluginModule({\n name: 'web',\n dependencies: {\n webConfig: webConfigSpec,\n },\n initialize: ({ webConfig }, { pluginKey }) => {\n webConfig.components.set(pluginKey, PlaceholderAuthDefinitionEditor);\n },\n});\n"],"names":["zodResolver","jsxs","jsx"],"mappings":"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"}
|
|
@@ -1,421 +0,0 @@
|
|
|
1
|
-
const buildIdentifier = "[0-9A-Za-z-]+";
|
|
2
|
-
const build = `(?:\\+(${buildIdentifier}(?:\\.${buildIdentifier})*))`;
|
|
3
|
-
const numericIdentifier = "0|[1-9]\\d*";
|
|
4
|
-
const numericIdentifierLoose = "[0-9]+";
|
|
5
|
-
const nonNumericIdentifier = "\\d*[a-zA-Z-][a-zA-Z0-9-]*";
|
|
6
|
-
const preReleaseIdentifierLoose = `(?:${numericIdentifierLoose}|${nonNumericIdentifier})`;
|
|
7
|
-
const preReleaseLoose = `(?:-?(${preReleaseIdentifierLoose}(?:\\.${preReleaseIdentifierLoose})*))`;
|
|
8
|
-
const preReleaseIdentifier = `(?:${numericIdentifier}|${nonNumericIdentifier})`;
|
|
9
|
-
const preRelease = `(?:-(${preReleaseIdentifier}(?:\\.${preReleaseIdentifier})*))`;
|
|
10
|
-
const xRangeIdentifier = `${numericIdentifier}|x|X|\\*`;
|
|
11
|
-
const xRangePlain = `[v=\\s]*(${xRangeIdentifier})(?:\\.(${xRangeIdentifier})(?:\\.(${xRangeIdentifier})(?:${preRelease})?${build}?)?)?`;
|
|
12
|
-
const hyphenRange = `^\\s*(${xRangePlain})\\s+-\\s+(${xRangePlain})\\s*$`;
|
|
13
|
-
const mainVersionLoose = `(${numericIdentifierLoose})\\.(${numericIdentifierLoose})\\.(${numericIdentifierLoose})`;
|
|
14
|
-
const loosePlain = `[v=\\s]*${mainVersionLoose}${preReleaseLoose}?${build}?`;
|
|
15
|
-
const gtlt = "((?:<|>)?=?)";
|
|
16
|
-
const comparatorTrim = `(\\s*)${gtlt}\\s*(${loosePlain}|${xRangePlain})`;
|
|
17
|
-
const loneTilde = "(?:~>?)";
|
|
18
|
-
const tildeTrim = `(\\s*)${loneTilde}\\s+`;
|
|
19
|
-
const loneCaret = "(?:\\^)";
|
|
20
|
-
const caretTrim = `(\\s*)${loneCaret}\\s+`;
|
|
21
|
-
const star = "(<|>)?=?\\s*\\*";
|
|
22
|
-
const caret = `^${loneCaret}${xRangePlain}$`;
|
|
23
|
-
const mainVersion = `(${numericIdentifier})\\.(${numericIdentifier})\\.(${numericIdentifier})`;
|
|
24
|
-
const fullPlain = `v?${mainVersion}${preRelease}?${build}?`;
|
|
25
|
-
const tilde = `^${loneTilde}${xRangePlain}$`;
|
|
26
|
-
const xRange = `^${gtlt}\\s*${xRangePlain}$`;
|
|
27
|
-
const comparator = `^${gtlt}\\s*(${fullPlain})$|^$`;
|
|
28
|
-
const gte0 = "^\\s*>=\\s*0.0.0\\s*$";
|
|
29
|
-
function parseRegex(source) {
|
|
30
|
-
return new RegExp(source);
|
|
31
|
-
}
|
|
32
|
-
function isXVersion(version) {
|
|
33
|
-
return !version || version.toLowerCase() === "x" || version === "*";
|
|
34
|
-
}
|
|
35
|
-
function pipe(...fns) {
|
|
36
|
-
return (x) => {
|
|
37
|
-
return fns.reduce((v, f) => f(v), x);
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function extractComparator(comparatorString) {
|
|
41
|
-
return comparatorString.match(parseRegex(comparator));
|
|
42
|
-
}
|
|
43
|
-
function combineVersion(major, minor, patch, preRelease2) {
|
|
44
|
-
const mainVersion2 = `${major}.${minor}.${patch}`;
|
|
45
|
-
if (preRelease2) {
|
|
46
|
-
return `${mainVersion2}-${preRelease2}`;
|
|
47
|
-
}
|
|
48
|
-
return mainVersion2;
|
|
49
|
-
}
|
|
50
|
-
function parseHyphen(range) {
|
|
51
|
-
return range.replace(
|
|
52
|
-
parseRegex(hyphenRange),
|
|
53
|
-
(_range, from, fromMajor, fromMinor, fromPatch, _fromPreRelease, _fromBuild, to, toMajor, toMinor, toPatch, toPreRelease) => {
|
|
54
|
-
if (isXVersion(fromMajor)) {
|
|
55
|
-
from = "";
|
|
56
|
-
} else if (isXVersion(fromMinor)) {
|
|
57
|
-
from = `>=${fromMajor}.0.0`;
|
|
58
|
-
} else if (isXVersion(fromPatch)) {
|
|
59
|
-
from = `>=${fromMajor}.${fromMinor}.0`;
|
|
60
|
-
} else {
|
|
61
|
-
from = `>=${from}`;
|
|
62
|
-
}
|
|
63
|
-
if (isXVersion(toMajor)) {
|
|
64
|
-
to = "";
|
|
65
|
-
} else if (isXVersion(toMinor)) {
|
|
66
|
-
to = `<${+toMajor + 1}.0.0-0`;
|
|
67
|
-
} else if (isXVersion(toPatch)) {
|
|
68
|
-
to = `<${toMajor}.${+toMinor + 1}.0-0`;
|
|
69
|
-
} else if (toPreRelease) {
|
|
70
|
-
to = `<=${toMajor}.${toMinor}.${toPatch}-${toPreRelease}`;
|
|
71
|
-
} else {
|
|
72
|
-
to = `<=${to}`;
|
|
73
|
-
}
|
|
74
|
-
return `${from} ${to}`.trim();
|
|
75
|
-
}
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
function parseComparatorTrim(range) {
|
|
79
|
-
return range.replace(parseRegex(comparatorTrim), "$1$2$3");
|
|
80
|
-
}
|
|
81
|
-
function parseTildeTrim(range) {
|
|
82
|
-
return range.replace(parseRegex(tildeTrim), "$1~");
|
|
83
|
-
}
|
|
84
|
-
function parseCaretTrim(range) {
|
|
85
|
-
return range.replace(parseRegex(caretTrim), "$1^");
|
|
86
|
-
}
|
|
87
|
-
function parseCarets(range) {
|
|
88
|
-
return range.trim().split(/\s+/).map((rangeVersion) => {
|
|
89
|
-
return rangeVersion.replace(
|
|
90
|
-
parseRegex(caret),
|
|
91
|
-
(_, major, minor, patch, preRelease2) => {
|
|
92
|
-
if (isXVersion(major)) {
|
|
93
|
-
return "";
|
|
94
|
-
} else if (isXVersion(minor)) {
|
|
95
|
-
return `>=${major}.0.0 <${+major + 1}.0.0-0`;
|
|
96
|
-
} else if (isXVersion(patch)) {
|
|
97
|
-
if (major === "0") {
|
|
98
|
-
return `>=${major}.${minor}.0 <${major}.${+minor + 1}.0-0`;
|
|
99
|
-
} else {
|
|
100
|
-
return `>=${major}.${minor}.0 <${+major + 1}.0.0-0`;
|
|
101
|
-
}
|
|
102
|
-
} else if (preRelease2) {
|
|
103
|
-
if (major === "0") {
|
|
104
|
-
if (minor === "0") {
|
|
105
|
-
return `>=${major}.${minor}.${patch}-${preRelease2} <${major}.${minor}.${+patch + 1}-0`;
|
|
106
|
-
} else {
|
|
107
|
-
return `>=${major}.${minor}.${patch}-${preRelease2} <${major}.${+minor + 1}.0-0`;
|
|
108
|
-
}
|
|
109
|
-
} else {
|
|
110
|
-
return `>=${major}.${minor}.${patch}-${preRelease2} <${+major + 1}.0.0-0`;
|
|
111
|
-
}
|
|
112
|
-
} else {
|
|
113
|
-
if (major === "0") {
|
|
114
|
-
if (minor === "0") {
|
|
115
|
-
return `>=${major}.${minor}.${patch} <${major}.${minor}.${+patch + 1}-0`;
|
|
116
|
-
} else {
|
|
117
|
-
return `>=${major}.${minor}.${patch} <${major}.${+minor + 1}.0-0`;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
return `>=${major}.${minor}.${patch} <${+major + 1}.0.0-0`;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
);
|
|
124
|
-
}).join(" ");
|
|
125
|
-
}
|
|
126
|
-
function parseTildes(range) {
|
|
127
|
-
return range.trim().split(/\s+/).map((rangeVersion) => {
|
|
128
|
-
return rangeVersion.replace(
|
|
129
|
-
parseRegex(tilde),
|
|
130
|
-
(_, major, minor, patch, preRelease2) => {
|
|
131
|
-
if (isXVersion(major)) {
|
|
132
|
-
return "";
|
|
133
|
-
} else if (isXVersion(minor)) {
|
|
134
|
-
return `>=${major}.0.0 <${+major + 1}.0.0-0`;
|
|
135
|
-
} else if (isXVersion(patch)) {
|
|
136
|
-
return `>=${major}.${minor}.0 <${major}.${+minor + 1}.0-0`;
|
|
137
|
-
} else if (preRelease2) {
|
|
138
|
-
return `>=${major}.${minor}.${patch}-${preRelease2} <${major}.${+minor + 1}.0-0`;
|
|
139
|
-
}
|
|
140
|
-
return `>=${major}.${minor}.${patch} <${major}.${+minor + 1}.0-0`;
|
|
141
|
-
}
|
|
142
|
-
);
|
|
143
|
-
}).join(" ");
|
|
144
|
-
}
|
|
145
|
-
function parseXRanges(range) {
|
|
146
|
-
return range.split(/\s+/).map((rangeVersion) => {
|
|
147
|
-
return rangeVersion.trim().replace(
|
|
148
|
-
parseRegex(xRange),
|
|
149
|
-
(ret, gtlt2, major, minor, patch, preRelease2) => {
|
|
150
|
-
const isXMajor = isXVersion(major);
|
|
151
|
-
const isXMinor = isXMajor || isXVersion(minor);
|
|
152
|
-
const isXPatch = isXMinor || isXVersion(patch);
|
|
153
|
-
if (gtlt2 === "=" && isXPatch) {
|
|
154
|
-
gtlt2 = "";
|
|
155
|
-
}
|
|
156
|
-
preRelease2 = "";
|
|
157
|
-
if (isXMajor) {
|
|
158
|
-
if (gtlt2 === ">" || gtlt2 === "<") {
|
|
159
|
-
return "<0.0.0-0";
|
|
160
|
-
} else {
|
|
161
|
-
return "*";
|
|
162
|
-
}
|
|
163
|
-
} else if (gtlt2 && isXPatch) {
|
|
164
|
-
if (isXMinor) {
|
|
165
|
-
minor = 0;
|
|
166
|
-
}
|
|
167
|
-
patch = 0;
|
|
168
|
-
if (gtlt2 === ">") {
|
|
169
|
-
gtlt2 = ">=";
|
|
170
|
-
if (isXMinor) {
|
|
171
|
-
major = +major + 1;
|
|
172
|
-
minor = 0;
|
|
173
|
-
patch = 0;
|
|
174
|
-
} else {
|
|
175
|
-
minor = +minor + 1;
|
|
176
|
-
patch = 0;
|
|
177
|
-
}
|
|
178
|
-
} else if (gtlt2 === "<=") {
|
|
179
|
-
gtlt2 = "<";
|
|
180
|
-
if (isXMinor) {
|
|
181
|
-
major = +major + 1;
|
|
182
|
-
} else {
|
|
183
|
-
minor = +minor + 1;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
if (gtlt2 === "<") {
|
|
187
|
-
preRelease2 = "-0";
|
|
188
|
-
}
|
|
189
|
-
return `${gtlt2 + major}.${minor}.${patch}${preRelease2}`;
|
|
190
|
-
} else if (isXMinor) {
|
|
191
|
-
return `>=${major}.0.0${preRelease2} <${+major + 1}.0.0-0`;
|
|
192
|
-
} else if (isXPatch) {
|
|
193
|
-
return `>=${major}.${minor}.0${preRelease2} <${major}.${+minor + 1}.0-0`;
|
|
194
|
-
}
|
|
195
|
-
return ret;
|
|
196
|
-
}
|
|
197
|
-
);
|
|
198
|
-
}).join(" ");
|
|
199
|
-
}
|
|
200
|
-
function parseStar(range) {
|
|
201
|
-
return range.trim().replace(parseRegex(star), "");
|
|
202
|
-
}
|
|
203
|
-
function parseGTE0(comparatorString) {
|
|
204
|
-
return comparatorString.trim().replace(parseRegex(gte0), "");
|
|
205
|
-
}
|
|
206
|
-
function compareAtom(rangeAtom, versionAtom) {
|
|
207
|
-
rangeAtom = +rangeAtom || rangeAtom;
|
|
208
|
-
versionAtom = +versionAtom || versionAtom;
|
|
209
|
-
if (rangeAtom > versionAtom) {
|
|
210
|
-
return 1;
|
|
211
|
-
}
|
|
212
|
-
if (rangeAtom === versionAtom) {
|
|
213
|
-
return 0;
|
|
214
|
-
}
|
|
215
|
-
return -1;
|
|
216
|
-
}
|
|
217
|
-
function comparePreRelease(rangeAtom, versionAtom) {
|
|
218
|
-
const { preRelease: rangePreRelease } = rangeAtom;
|
|
219
|
-
const { preRelease: versionPreRelease } = versionAtom;
|
|
220
|
-
if (rangePreRelease === void 0 && !!versionPreRelease) {
|
|
221
|
-
return 1;
|
|
222
|
-
}
|
|
223
|
-
if (!!rangePreRelease && versionPreRelease === void 0) {
|
|
224
|
-
return -1;
|
|
225
|
-
}
|
|
226
|
-
if (rangePreRelease === void 0 && versionPreRelease === void 0) {
|
|
227
|
-
return 0;
|
|
228
|
-
}
|
|
229
|
-
for (let i = 0, n = rangePreRelease.length; i <= n; i++) {
|
|
230
|
-
const rangeElement = rangePreRelease[i];
|
|
231
|
-
const versionElement = versionPreRelease[i];
|
|
232
|
-
if (rangeElement === versionElement) {
|
|
233
|
-
continue;
|
|
234
|
-
}
|
|
235
|
-
if (rangeElement === void 0 && versionElement === void 0) {
|
|
236
|
-
return 0;
|
|
237
|
-
}
|
|
238
|
-
if (!rangeElement) {
|
|
239
|
-
return 1;
|
|
240
|
-
}
|
|
241
|
-
if (!versionElement) {
|
|
242
|
-
return -1;
|
|
243
|
-
}
|
|
244
|
-
return compareAtom(rangeElement, versionElement);
|
|
245
|
-
}
|
|
246
|
-
return 0;
|
|
247
|
-
}
|
|
248
|
-
function compareVersion(rangeAtom, versionAtom) {
|
|
249
|
-
return compareAtom(rangeAtom.major, versionAtom.major) || compareAtom(rangeAtom.minor, versionAtom.minor) || compareAtom(rangeAtom.patch, versionAtom.patch) || comparePreRelease(rangeAtom, versionAtom);
|
|
250
|
-
}
|
|
251
|
-
function eq(rangeAtom, versionAtom) {
|
|
252
|
-
return rangeAtom.version === versionAtom.version;
|
|
253
|
-
}
|
|
254
|
-
function compare(rangeAtom, versionAtom) {
|
|
255
|
-
switch (rangeAtom.operator) {
|
|
256
|
-
case "":
|
|
257
|
-
case "=":
|
|
258
|
-
return eq(rangeAtom, versionAtom);
|
|
259
|
-
case ">":
|
|
260
|
-
return compareVersion(rangeAtom, versionAtom) < 0;
|
|
261
|
-
case ">=":
|
|
262
|
-
return eq(rangeAtom, versionAtom) || compareVersion(rangeAtom, versionAtom) < 0;
|
|
263
|
-
case "<":
|
|
264
|
-
return compareVersion(rangeAtom, versionAtom) > 0;
|
|
265
|
-
case "<=":
|
|
266
|
-
return eq(rangeAtom, versionAtom) || compareVersion(rangeAtom, versionAtom) > 0;
|
|
267
|
-
case void 0: {
|
|
268
|
-
return true;
|
|
269
|
-
}
|
|
270
|
-
default:
|
|
271
|
-
return false;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
function parseComparatorString(range) {
|
|
275
|
-
return pipe(
|
|
276
|
-
parseCarets,
|
|
277
|
-
parseTildes,
|
|
278
|
-
parseXRanges,
|
|
279
|
-
parseStar
|
|
280
|
-
)(range);
|
|
281
|
-
}
|
|
282
|
-
function parseRange(range) {
|
|
283
|
-
return pipe(
|
|
284
|
-
parseHyphen,
|
|
285
|
-
parseComparatorTrim,
|
|
286
|
-
parseTildeTrim,
|
|
287
|
-
parseCaretTrim
|
|
288
|
-
)(range.trim()).split(/\s+/).join(" ");
|
|
289
|
-
}
|
|
290
|
-
function satisfy(version, range) {
|
|
291
|
-
if (!version) {
|
|
292
|
-
return false;
|
|
293
|
-
}
|
|
294
|
-
const parsedRange = parseRange(range);
|
|
295
|
-
const parsedComparator = parsedRange.split(" ").map((rangeVersion) => parseComparatorString(rangeVersion)).join(" ");
|
|
296
|
-
const comparators = parsedComparator.split(/\s+/).map((comparator2) => parseGTE0(comparator2));
|
|
297
|
-
const extractedVersion = extractComparator(version);
|
|
298
|
-
if (!extractedVersion) {
|
|
299
|
-
return false;
|
|
300
|
-
}
|
|
301
|
-
const [
|
|
302
|
-
,
|
|
303
|
-
versionOperator,
|
|
304
|
-
,
|
|
305
|
-
versionMajor,
|
|
306
|
-
versionMinor,
|
|
307
|
-
versionPatch,
|
|
308
|
-
versionPreRelease
|
|
309
|
-
] = extractedVersion;
|
|
310
|
-
const versionAtom = {
|
|
311
|
-
version: combineVersion(
|
|
312
|
-
versionMajor,
|
|
313
|
-
versionMinor,
|
|
314
|
-
versionPatch,
|
|
315
|
-
versionPreRelease
|
|
316
|
-
),
|
|
317
|
-
major: versionMajor,
|
|
318
|
-
minor: versionMinor,
|
|
319
|
-
patch: versionPatch,
|
|
320
|
-
preRelease: versionPreRelease == null ? void 0 : versionPreRelease.split(".")
|
|
321
|
-
};
|
|
322
|
-
for (const comparator2 of comparators) {
|
|
323
|
-
const extractedComparator = extractComparator(comparator2);
|
|
324
|
-
if (!extractedComparator) {
|
|
325
|
-
return false;
|
|
326
|
-
}
|
|
327
|
-
const [
|
|
328
|
-
,
|
|
329
|
-
rangeOperator,
|
|
330
|
-
,
|
|
331
|
-
rangeMajor,
|
|
332
|
-
rangeMinor,
|
|
333
|
-
rangePatch,
|
|
334
|
-
rangePreRelease
|
|
335
|
-
] = extractedComparator;
|
|
336
|
-
const rangeAtom = {
|
|
337
|
-
operator: rangeOperator,
|
|
338
|
-
version: combineVersion(
|
|
339
|
-
rangeMajor,
|
|
340
|
-
rangeMinor,
|
|
341
|
-
rangePatch,
|
|
342
|
-
rangePreRelease
|
|
343
|
-
),
|
|
344
|
-
major: rangeMajor,
|
|
345
|
-
minor: rangeMinor,
|
|
346
|
-
patch: rangePatch,
|
|
347
|
-
preRelease: rangePreRelease == null ? void 0 : rangePreRelease.split(".")
|
|
348
|
-
};
|
|
349
|
-
if (!compare(rangeAtom, versionAtom)) {
|
|
350
|
-
return false;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
return true;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
const currentImports = {};
|
|
357
|
-
|
|
358
|
-
// eslint-disable-next-line no-undef
|
|
359
|
-
const moduleMap = {'react':{get:()=>()=>__federation_import(new URL('__federation_shared_react-CJ2OfFKA.js', import.meta.url).href),import:true},'react-dom':{get:()=>()=>__federation_import(new URL('__federation_shared_react-dom-B4vgf5Ln.js', import.meta.url).href),import:true},'zod':{get:()=>()=>__federation_import(new URL('__federation_shared_zod-Do7Aa1b5.js', import.meta.url).href),import:true},'@baseplate-dev/project-builder-lib':{get:()=>()=>__federation_import(new URL('__federation_shared_@baseplate-dev/project-builder-lib-CDRCjvEd.js', import.meta.url).href),import:true},'@baseplate-dev/project-builder-lib/web':{get:()=>()=>__federation_import(new URL('__federation_shared_@baseplate-dev/project-builder-lib/web-wm-FNH7x.js', import.meta.url).href),import:true},'@baseplate-dev/utils':{get:()=>()=>__federation_import(new URL('__federation_shared_@baseplate-dev/utils-Cs-QtWzA.js', import.meta.url).href),import:true},'@baseplate-dev/ui-components':{get:()=>()=>__federation_import(new URL('__federation_shared_@baseplate-dev/ui-components-Bwy1GWne.js', import.meta.url).href),import:true},'@tanstack/react-router':{get:()=>()=>__federation_import(new URL('__federation_shared_@tanstack/react-router-_N2czGX0.js', import.meta.url).href),import:true}};
|
|
360
|
-
const moduleCache = Object.create(null);
|
|
361
|
-
async function importShared(name, shareScope = 'default') {
|
|
362
|
-
return moduleCache[name]
|
|
363
|
-
? new Promise((r) => r(moduleCache[name]))
|
|
364
|
-
: (await getSharedFromRuntime(name, shareScope)) || getSharedFromLocal(name)
|
|
365
|
-
}
|
|
366
|
-
// eslint-disable-next-line
|
|
367
|
-
async function __federation_import(name) {
|
|
368
|
-
currentImports[name] ??= import(name);
|
|
369
|
-
return currentImports[name]
|
|
370
|
-
}
|
|
371
|
-
async function getSharedFromRuntime(name, shareScope) {
|
|
372
|
-
let module = null;
|
|
373
|
-
if (globalThis?.__federation_shared__?.[shareScope]?.[name]) {
|
|
374
|
-
const versionObj = globalThis.__federation_shared__[shareScope][name];
|
|
375
|
-
const versionKey = Object.keys(versionObj)[0];
|
|
376
|
-
const versionValue = Object.values(versionObj)[0];
|
|
377
|
-
if (moduleMap[name]?.requiredVersion) {
|
|
378
|
-
// judge version satisfy
|
|
379
|
-
if (satisfy(versionKey, moduleMap[name].requiredVersion)) {
|
|
380
|
-
module = await (await versionValue.get())();
|
|
381
|
-
} else {
|
|
382
|
-
console.log(
|
|
383
|
-
`provider support ${name}(${versionKey}) is not satisfied requiredVersion(\${moduleMap[name].requiredVersion})`
|
|
384
|
-
);
|
|
385
|
-
}
|
|
386
|
-
} else {
|
|
387
|
-
module = await (await versionValue.get())();
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
if (module) {
|
|
391
|
-
return flattenModule(module, name)
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
async function getSharedFromLocal(name) {
|
|
395
|
-
if (moduleMap[name]?.import) {
|
|
396
|
-
let module = await (await moduleMap[name].get())();
|
|
397
|
-
return flattenModule(module, name)
|
|
398
|
-
} else {
|
|
399
|
-
console.error(
|
|
400
|
-
`consumer config import=false,so cant use callback shared module`
|
|
401
|
-
);
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
function flattenModule(module, name) {
|
|
405
|
-
// use a shared module which export default a function will getting error 'TypeError: xxx is not a function'
|
|
406
|
-
if (typeof module.default === 'function') {
|
|
407
|
-
Object.keys(module).forEach((key) => {
|
|
408
|
-
if (key !== 'default') {
|
|
409
|
-
module.default[key] = module[key];
|
|
410
|
-
}
|
|
411
|
-
});
|
|
412
|
-
moduleCache[name] = module.default;
|
|
413
|
-
return module.default
|
|
414
|
-
}
|
|
415
|
-
if (module.default) module = Object.assign({}, module.default, module);
|
|
416
|
-
moduleCache[name] = module;
|
|
417
|
-
return module
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
export { importShared, getSharedFromLocal as importSharedLocal, getSharedFromRuntime as importSharedRuntime };
|
|
421
|
-
//# sourceMappingURL=__federation_fn_import-DboThXN4.js.map
|