@baseplate-dev/plugin-auth 0.6.9 → 0.6.11
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-DEljr3MS.js +226 -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__.js-B6a7L2-k.js +346 -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__.js-JKpdJ1L0.js +89 -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__.js-DsLoA9K7.js +73549 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CGsbw2Lx.js +6181 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-DE4UUe5K.js +13784 -0
- package/dist/web/assets/auth-YjeUffyx.js +1 -0
- package/dist/web/assets/common-B3OG-gju.js +37 -0
- package/dist/web/assets/common-CTWnBc6I.js +39 -0
- package/dist/web/assets/common-CzNLnT_1.js +63 -0
- package/dist/web/assets/common-g_Gn0v5J.js +18 -0
- package/dist/web/assets/common-kfSP8YQO.js +39 -0
- package/dist/web/assets/common-zfktVQvk.js +37 -0
- package/dist/web/assets/dist-C6kDPCTC.js +18148 -0
- package/dist/web/assets/get-auth-plugin-definition-2vFJROjB.js +14 -0
- package/dist/web/assets/hostInit-35H-qR11.js +119 -0
- package/dist/web/assets/index-Cr47LBtj.js +2 -0
- package/dist/web/assets/mf-entry-bootstrap-0-13480d2a.js +32 -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-ZF_FVZ_o.js +1287 -0
- package/dist/web/assets/models-CORL4i-6.js +285 -0
- package/dist/web/assets/models-DPPMgQz_.js +304 -0
- package/dist/web/assets/plugin-definition-UAfMRa7u.js +78 -0
- package/dist/web/assets/plugin-definition-mNNM2hOB.js +11 -0
- package/dist/web/assets/rolldown-runtime-FZ4Itg2g.js +42 -0
- package/dist/web/assets/{style-DiK_rD1L.css → styles-Cc26Bbxc.css} +1 -1
- package/dist/web/assets/styles-DNVWarsT.js +173 -0
- package/dist/web/assets/virtualExposes-CZsMFYa2.js +2 -0
- package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-Bt9-dftr.js +3892 -0
- package/dist/web/assets/virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-DC8YPV1Z.js +129 -0
- package/dist/web/assets/virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-CmilMd0E.js +168 -0
- package/dist/web/assets/vite-preload-helper-iIio8xkS.js +67 -0
- package/dist/web/assets/web-BbqWFVPH.js +397 -0
- package/dist/web/assets/web-BldKZtQd.js +123 -0
- package/dist/web/assets/web-CNMEeTj-.js +46 -0
- package/dist/web/assets/web-CnsQCdFE.js +46 -0
- package/dist/web/assets/web-DiGj_0d0.js +118 -0
- package/dist/web/assets/web-OntIhIfe.js +355 -0
- package/dist/web/assets/web-y8E7eNgy.js +106 -0
- package/dist/web/index.html +2 -2
- package/dist/web/remoteEntry.js +2 -0
- package/dist/web/remoteEntry.ssr.js +43 -0
- package/package.json +24 -21
- 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-B9LFt4zi.js +0 -85
- package/dist/web/assets/__federation_expose_authCoreCommon-B9LFt4zi.js.map +0 -1
- package/dist/web/assets/__federation_expose_authCoreWeb-CRo6bfSQ.js +0 -453
- package/dist/web/assets/__federation_expose_authCoreWeb-CRo6bfSQ.js.map +0 -1
- package/dist/web/assets/__federation_expose_better-authAdminCommon-Drx1dj0K.js +0 -63
- package/dist/web/assets/__federation_expose_better-authAdminCommon-Drx1dj0K.js.map +0 -1
- package/dist/web/assets/__federation_expose_better-authAdminWeb-Zsc9mjjD.js +0 -41
- package/dist/web/assets/__federation_expose_better-authAdminWeb-Zsc9mjjD.js.map +0 -1
- package/dist/web/assets/__federation_expose_better-authCoreCommon-BTstKS5D.js +0 -54
- package/dist/web/assets/__federation_expose_better-authCoreCommon-BTstKS5D.js.map +0 -1
- package/dist/web/assets/__federation_expose_better-authCoreWeb-ClXucVm1.js +0 -157
- package/dist/web/assets/__federation_expose_better-authCoreWeb-ClXucVm1.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authAdminCommon-Drx1dj0K.js +0 -63
- package/dist/web/assets/__federation_expose_local-authAdminCommon-Drx1dj0K.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authAdminWeb-Ci30yAgH.js +0 -41
- package/dist/web/assets/__federation_expose_local-authAdminWeb-Ci30yAgH.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authCoreCommon-C13Qctt3.js +0 -54
- package/dist/web/assets/__federation_expose_local-authCoreCommon-C13Qctt3.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authCoreWeb-CLMjEvfQ.js +0 -167
- package/dist/web/assets/__federation_expose_local-authCoreWeb-CLMjEvfQ.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CtZPLUXY.js +0 -23
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CtZPLUXY.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-DNuOQDyt.js +0 -177
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-DNuOQDyt.js.map +0 -1
- package/dist/web/assets/__federation_fn_import-DvwH-J9J.js +0 -421
- package/dist/web/assets/__federation_fn_import-DvwH-J9J.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-B2EK5IrR.js +0 -359
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-B2EK5IrR.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CueLW7vJ.js +0 -22532
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CueLW7vJ.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-Cs5voPoC.js +0 -78638
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-Cs5voPoC.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-DH2Y7csi.js +0 -1855
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-DH2Y7csi.js.map +0 -1
- package/dist/web/assets/__federation_shared_@tanstack/react-router-CDlgRD7c.js +0 -6565
- package/dist/web/assets/__federation_shared_@tanstack/react-router-CDlgRD7c.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-B2xRtRBt.js +0 -13
- package/dist/web/assets/get-auth-plugin-definition-B2xRtRBt.js.map +0 -1
- package/dist/web/assets/index-D2s6d88Y.js +0 -101
- package/dist/web/assets/index-D2s6d88Y.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-CUhaqfEI.js +0 -2676
- package/dist/web/assets/index.esm-CUhaqfEI.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-Ccvph4Ii.js +0 -840
- package/dist/web/assets/model-utils-Ccvph4Ii.js.map +0 -1
- package/dist/web/assets/plugin-definition-B6PqjUHm.js +0 -16
- package/dist/web/assets/plugin-definition-B6PqjUHm.js.map +0 -1
- package/dist/web/assets/plugin-definition-B6kOvigE.js +0 -315
- package/dist/web/assets/plugin-definition-B6kOvigE.js.map +0 -1
- package/dist/web/assets/plugin-definition-DDe2WhbZ.js +0 -93
- package/dist/web/assets/plugin-definition-DDe2WhbZ.js.map +0 -1
- package/dist/web/assets/plugin-definition-QKz1ZAYK.js +0 -304
- package/dist/web/assets/plugin-definition-QKz1ZAYK.js.map +0 -1
- package/dist/web/assets/react-D62wAwO5.js +0 -47
- package/dist/web/assets/react-D62wAwO5.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-BEU-uMT0.js +0 -69
- package/dist/web/assets/styles-BEU-uMT0.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
|
@@ -0,0 +1,1287 @@
|
|
|
1
|
+
import { n as __mf_0 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-DE4UUe5K.js";
|
|
2
|
+
//#region ../../packages/project-builder-lib/dist/plugins/spec/types.js
|
|
3
|
+
/**
|
|
4
|
+
* Creates a plugin spec with init and use phases.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* const mySpec = createPluginSpec('core/my-spec', {
|
|
9
|
+
* initializer: () => {
|
|
10
|
+
* const items = new Map<string, Item>();
|
|
11
|
+
* return {
|
|
12
|
+
* init: {
|
|
13
|
+
* register: (item: Item) => items.set(item.name, item),
|
|
14
|
+
* },
|
|
15
|
+
* use: () => ({
|
|
16
|
+
* get: (name: string) => items.get(name),
|
|
17
|
+
* getAll: () => [...items.values()],
|
|
18
|
+
* }),
|
|
19
|
+
* };
|
|
20
|
+
* },
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @param name - Unique identifier for the spec (e.g., 'core/my-spec')
|
|
25
|
+
* @param options - Options including the initializer function
|
|
26
|
+
* @returns A plugin spec that can be used with SpecStore
|
|
27
|
+
*/
|
|
28
|
+
function createPluginSpec(name, options) {
|
|
29
|
+
const { initializer } = options;
|
|
30
|
+
return {
|
|
31
|
+
type: "plugin-spec",
|
|
32
|
+
name,
|
|
33
|
+
initializer
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/_internal/compareValues.mjs
|
|
38
|
+
function compareValues(a, b, order) {
|
|
39
|
+
if (a < b) return order === "asc" ? -1 : 1;
|
|
40
|
+
if (a > b) return order === "asc" ? 1 : -1;
|
|
41
|
+
return 0;
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/array/orderBy.mjs
|
|
45
|
+
function orderBy(arr, criteria, orders) {
|
|
46
|
+
return arr.slice().sort((a, b) => {
|
|
47
|
+
const ordersLength = orders.length;
|
|
48
|
+
for (let i = 0; i < criteria.length; i++) {
|
|
49
|
+
const order = ordersLength > i ? orders[i] : orders[ordersLength - 1];
|
|
50
|
+
const criterion = criteria[i];
|
|
51
|
+
const criterionIsFunction = typeof criterion === "function";
|
|
52
|
+
const result = compareValues(criterionIsFunction ? criterion(a) : a[criterion], criterionIsFunction ? criterion(b) : b[criterion], order);
|
|
53
|
+
if (result !== 0) return result;
|
|
54
|
+
}
|
|
55
|
+
return 0;
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/array/sortBy.mjs
|
|
60
|
+
function sortBy(arr, criteria) {
|
|
61
|
+
return orderBy(arr, criteria, ["asc"]);
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
|
|
65
|
+
function isPlainObject(value) {
|
|
66
|
+
if (!value || typeof value !== "object") return false;
|
|
67
|
+
const proto = Object.getPrototypeOf(value);
|
|
68
|
+
if (!(proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null)) return false;
|
|
69
|
+
return Object.prototype.toString.call(value) === "[object Object]";
|
|
70
|
+
}
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
|
|
73
|
+
function getSymbols(object) {
|
|
74
|
+
return Object.getOwnPropertySymbols(object).filter((symbol) => Object.prototype.propertyIsEnumerable.call(object, symbol));
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
|
|
78
|
+
function getTag(value) {
|
|
79
|
+
if (value == null) return value === void 0 ? "[object Undefined]" : "[object Null]";
|
|
80
|
+
return Object.prototype.toString.call(value);
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/compat/_internal/tags.mjs
|
|
84
|
+
var regexpTag = "[object RegExp]";
|
|
85
|
+
var stringTag = "[object String]";
|
|
86
|
+
var numberTag = "[object Number]";
|
|
87
|
+
var booleanTag = "[object Boolean]";
|
|
88
|
+
var argumentsTag = "[object Arguments]";
|
|
89
|
+
var symbolTag = "[object Symbol]";
|
|
90
|
+
var dateTag = "[object Date]";
|
|
91
|
+
var mapTag = "[object Map]";
|
|
92
|
+
var setTag = "[object Set]";
|
|
93
|
+
var arrayTag = "[object Array]";
|
|
94
|
+
var functionTag = "[object Function]";
|
|
95
|
+
var arrayBufferTag = "[object ArrayBuffer]";
|
|
96
|
+
var objectTag = "[object Object]";
|
|
97
|
+
var errorTag = "[object Error]";
|
|
98
|
+
var dataViewTag = "[object DataView]";
|
|
99
|
+
var uint8ArrayTag = "[object Uint8Array]";
|
|
100
|
+
var uint8ClampedArrayTag = "[object Uint8ClampedArray]";
|
|
101
|
+
var uint16ArrayTag = "[object Uint16Array]";
|
|
102
|
+
var uint32ArrayTag = "[object Uint32Array]";
|
|
103
|
+
var bigUint64ArrayTag = "[object BigUint64Array]";
|
|
104
|
+
var int8ArrayTag = "[object Int8Array]";
|
|
105
|
+
var int16ArrayTag = "[object Int16Array]";
|
|
106
|
+
var int32ArrayTag = "[object Int32Array]";
|
|
107
|
+
var bigInt64ArrayTag = "[object BigInt64Array]";
|
|
108
|
+
var float32ArrayTag = "[object Float32Array]";
|
|
109
|
+
var float64ArrayTag = "[object Float64Array]";
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/_internal/isEqualsSameValueZero.mjs
|
|
112
|
+
function isEqualsSameValueZero(value, other) {
|
|
113
|
+
return value === other || Number.isNaN(value) && Number.isNaN(other);
|
|
114
|
+
}
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/predicate/isEqualWith.mjs
|
|
117
|
+
function isEqualWith(a, b, areValuesEqual) {
|
|
118
|
+
return isEqualWithImpl(a, b, void 0, void 0, void 0, void 0, areValuesEqual);
|
|
119
|
+
}
|
|
120
|
+
function isEqualWithImpl(a, b, property, aParent, bParent, stack, areValuesEqual) {
|
|
121
|
+
const result = areValuesEqual(a, b, property, aParent, bParent, stack);
|
|
122
|
+
if (result !== void 0) return result;
|
|
123
|
+
if (typeof a === typeof b) switch (typeof a) {
|
|
124
|
+
case "bigint":
|
|
125
|
+
case "string":
|
|
126
|
+
case "boolean":
|
|
127
|
+
case "symbol":
|
|
128
|
+
case "undefined": return a === b;
|
|
129
|
+
case "number": return a === b || Object.is(a, b);
|
|
130
|
+
case "function": return a === b;
|
|
131
|
+
case "object": return areObjectsEqual(a, b, stack, areValuesEqual);
|
|
132
|
+
}
|
|
133
|
+
return areObjectsEqual(a, b, stack, areValuesEqual);
|
|
134
|
+
}
|
|
135
|
+
function areObjectsEqual(a, b, stack, areValuesEqual) {
|
|
136
|
+
if (Object.is(a, b)) return true;
|
|
137
|
+
let aTag = getTag(a);
|
|
138
|
+
let bTag = getTag(b);
|
|
139
|
+
if (aTag === "[object Arguments]") aTag = objectTag;
|
|
140
|
+
if (bTag === "[object Arguments]") bTag = objectTag;
|
|
141
|
+
if (aTag !== bTag) return false;
|
|
142
|
+
switch (aTag) {
|
|
143
|
+
case stringTag: return a.toString() === b.toString();
|
|
144
|
+
case numberTag: return isEqualsSameValueZero(a.valueOf(), b.valueOf());
|
|
145
|
+
case booleanTag:
|
|
146
|
+
case dateTag:
|
|
147
|
+
case symbolTag: return Object.is(a.valueOf(), b.valueOf());
|
|
148
|
+
case regexpTag: return a.source === b.source && a.flags === b.flags;
|
|
149
|
+
case functionTag: return a === b;
|
|
150
|
+
}
|
|
151
|
+
stack = stack ?? /* @__PURE__ */ new Map();
|
|
152
|
+
const aStack = stack.get(a);
|
|
153
|
+
const bStack = stack.get(b);
|
|
154
|
+
if (aStack != null && bStack != null) return aStack === b;
|
|
155
|
+
stack.set(a, b);
|
|
156
|
+
stack.set(b, a);
|
|
157
|
+
try {
|
|
158
|
+
switch (aTag) {
|
|
159
|
+
case mapTag:
|
|
160
|
+
if (a.size !== b.size) return false;
|
|
161
|
+
for (const [key, value] of a.entries()) if (!b.has(key) || !isEqualWithImpl(value, b.get(key), key, a, b, stack, areValuesEqual)) return false;
|
|
162
|
+
return true;
|
|
163
|
+
case setTag: {
|
|
164
|
+
if (a.size !== b.size) return false;
|
|
165
|
+
const aValues = Array.from(a.values());
|
|
166
|
+
const bValues = Array.from(b.values());
|
|
167
|
+
for (let i = 0; i < aValues.length; i++) {
|
|
168
|
+
const aValue = aValues[i];
|
|
169
|
+
const index = bValues.findIndex((bValue) => {
|
|
170
|
+
return isEqualWithImpl(aValue, bValue, void 0, a, b, stack, areValuesEqual);
|
|
171
|
+
});
|
|
172
|
+
if (index === -1) return false;
|
|
173
|
+
bValues.splice(index, 1);
|
|
174
|
+
}
|
|
175
|
+
return true;
|
|
176
|
+
}
|
|
177
|
+
case arrayTag:
|
|
178
|
+
case uint8ArrayTag:
|
|
179
|
+
case uint8ClampedArrayTag:
|
|
180
|
+
case uint16ArrayTag:
|
|
181
|
+
case uint32ArrayTag:
|
|
182
|
+
case bigUint64ArrayTag:
|
|
183
|
+
case int8ArrayTag:
|
|
184
|
+
case int16ArrayTag:
|
|
185
|
+
case int32ArrayTag:
|
|
186
|
+
case bigInt64ArrayTag:
|
|
187
|
+
case float32ArrayTag:
|
|
188
|
+
case float64ArrayTag:
|
|
189
|
+
if (typeof Buffer !== "undefined" && Buffer.isBuffer(a) !== Buffer.isBuffer(b)) return false;
|
|
190
|
+
if (a.length !== b.length) return false;
|
|
191
|
+
for (let i = 0; i < a.length; i++) if (!isEqualWithImpl(a[i], b[i], i, a, b, stack, areValuesEqual)) return false;
|
|
192
|
+
return true;
|
|
193
|
+
case arrayBufferTag:
|
|
194
|
+
if (a.byteLength !== b.byteLength) return false;
|
|
195
|
+
return areObjectsEqual(new Uint8Array(a), new Uint8Array(b), stack, areValuesEqual);
|
|
196
|
+
case dataViewTag:
|
|
197
|
+
if (a.byteLength !== b.byteLength || a.byteOffset !== b.byteOffset) return false;
|
|
198
|
+
return areObjectsEqual(new Uint8Array(a), new Uint8Array(b), stack, areValuesEqual);
|
|
199
|
+
case errorTag: return a.name === b.name && a.message === b.message;
|
|
200
|
+
case objectTag: {
|
|
201
|
+
if (!(areObjectsEqual(a.constructor, b.constructor, stack, areValuesEqual) || isPlainObject(a) && isPlainObject(b))) return false;
|
|
202
|
+
const aKeys = [...Object.keys(a), ...getSymbols(a)];
|
|
203
|
+
const bKeys = [...Object.keys(b), ...getSymbols(b)];
|
|
204
|
+
if (aKeys.length !== bKeys.length) return false;
|
|
205
|
+
for (let i = 0; i < aKeys.length; i++) {
|
|
206
|
+
const propKey = aKeys[i];
|
|
207
|
+
const aProp = a[propKey];
|
|
208
|
+
if (!Object.hasOwn(b, propKey)) return false;
|
|
209
|
+
const bProp = b[propKey];
|
|
210
|
+
if (!isEqualWithImpl(aProp, bProp, propKey, a, b, stack, areValuesEqual)) return false;
|
|
211
|
+
}
|
|
212
|
+
return true;
|
|
213
|
+
}
|
|
214
|
+
default: return false;
|
|
215
|
+
}
|
|
216
|
+
} finally {
|
|
217
|
+
stack.delete(a);
|
|
218
|
+
stack.delete(b);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
//#endregion
|
|
222
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/function/noop.mjs
|
|
223
|
+
function noop() {}
|
|
224
|
+
//#endregion
|
|
225
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/predicate/isEqual.mjs
|
|
226
|
+
function isEqual(a, b) {
|
|
227
|
+
return isEqualWith(a, b, noop);
|
|
228
|
+
}
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region ../../packages/utils/dist/field-map/field-map.js
|
|
231
|
+
/**
|
|
232
|
+
* Field container for a single value that cannot be overridden once set
|
|
233
|
+
*/
|
|
234
|
+
var ScalarContainer = class {
|
|
235
|
+
_value;
|
|
236
|
+
defaultValue;
|
|
237
|
+
isSet = false;
|
|
238
|
+
setBySource;
|
|
239
|
+
getDynamicSource;
|
|
240
|
+
constructor(defaultValue, options) {
|
|
241
|
+
this.defaultValue = defaultValue;
|
|
242
|
+
this.getDynamicSource = options?.getDynamicSource;
|
|
243
|
+
}
|
|
244
|
+
getValue() {
|
|
245
|
+
return this._value === void 0 ? this.defaultValue : this._value;
|
|
246
|
+
}
|
|
247
|
+
set(value, source) {
|
|
248
|
+
const setBySource = source ?? this.getDynamicSource?.() ?? "unknown";
|
|
249
|
+
if (this.isSet) throw new Error(`Value has already been set by ${this.setBySource} and cannot be overwritten by ${setBySource}`);
|
|
250
|
+
this._value = value;
|
|
251
|
+
this.isSet = true;
|
|
252
|
+
this.setBySource = setBySource;
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
var ArrayContainer = class {
|
|
256
|
+
_stripDuplicates;
|
|
257
|
+
_value;
|
|
258
|
+
constructor(initialValue, options) {
|
|
259
|
+
this._stripDuplicates = options?.stripDuplicates ?? false;
|
|
260
|
+
this._value = initialValue ?? [];
|
|
261
|
+
}
|
|
262
|
+
push(...items) {
|
|
263
|
+
let currentValue = this._value;
|
|
264
|
+
if (this._stripDuplicates) currentValue = [.../* @__PURE__ */ new Set([...currentValue, ...items])];
|
|
265
|
+
else currentValue = [...currentValue, ...items];
|
|
266
|
+
this._value = currentValue;
|
|
267
|
+
}
|
|
268
|
+
getValue() {
|
|
269
|
+
return this._value;
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
var ObjectContainer = class {
|
|
273
|
+
map;
|
|
274
|
+
getDynamicSource;
|
|
275
|
+
constructor(initialValue, options) {
|
|
276
|
+
this.getDynamicSource = options?.getDynamicSource;
|
|
277
|
+
this.map = new Map(Object.entries(initialValue).map(([key, value]) => [key, {
|
|
278
|
+
value,
|
|
279
|
+
setBySource: this.getDynamicSource?.()
|
|
280
|
+
}]));
|
|
281
|
+
}
|
|
282
|
+
set(key, value, source) {
|
|
283
|
+
const existingValue = this.map.get(key);
|
|
284
|
+
const setBySource = source ?? this.getDynamicSource?.() ?? "unknown";
|
|
285
|
+
if (existingValue?.setBySource) throw new Error(`Value for key ${key} has already been set by ${existingValue.setBySource} and cannot be overwritten by ${setBySource}`);
|
|
286
|
+
this.map.set(key, {
|
|
287
|
+
value,
|
|
288
|
+
setBySource
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
merge(value, source) {
|
|
292
|
+
const mergeSource = source ?? this.getDynamicSource?.();
|
|
293
|
+
for (const [key, val] of Object.entries(value)) this.set(key, val, mergeSource);
|
|
294
|
+
}
|
|
295
|
+
getValue() {
|
|
296
|
+
return Object.fromEntries([...this.map.entries()].map(([key, value]) => [key, value.value]));
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
var MapContainer = class {
|
|
300
|
+
_value;
|
|
301
|
+
getDynamicSource;
|
|
302
|
+
constructor(initialValue, options) {
|
|
303
|
+
this.getDynamicSource = options?.getDynamicSource;
|
|
304
|
+
const initialMap = initialValue ?? /* @__PURE__ */ new Map();
|
|
305
|
+
this._value = new Map([...initialMap.entries()].map(([key, value]) => [key, {
|
|
306
|
+
value,
|
|
307
|
+
setBySource: this.getDynamicSource?.()
|
|
308
|
+
}]));
|
|
309
|
+
}
|
|
310
|
+
set(key, value, source) {
|
|
311
|
+
const existingValue = this._value.get(key);
|
|
312
|
+
const setBySource = source ?? this.getDynamicSource?.() ?? "unknown";
|
|
313
|
+
if (existingValue?.setBySource) throw new Error(`Value for key ${key} has already been set by ${existingValue.setBySource} and cannot be overwritten by ${setBySource}`);
|
|
314
|
+
this._value.set(key, {
|
|
315
|
+
value,
|
|
316
|
+
setBySource
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
merge(value, source) {
|
|
320
|
+
const mergeSource = source ?? this.getDynamicSource?.();
|
|
321
|
+
for (const [key, val] of value.entries()) this.set(key, val, mergeSource);
|
|
322
|
+
}
|
|
323
|
+
mergeObj(value, source) {
|
|
324
|
+
const mergeSource = source ?? this.getDynamicSource?.();
|
|
325
|
+
for (const [key, val] of Object.entries(value)) this.set(key, val, mergeSource);
|
|
326
|
+
}
|
|
327
|
+
getValue() {
|
|
328
|
+
return new Map([...this._value.entries()].map(([key, value]) => [key, value.value]));
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
/**
|
|
332
|
+
* Named field container
|
|
333
|
+
*
|
|
334
|
+
* This container stores objects that contains a name field that can be used for
|
|
335
|
+
* detecting duplicate names.
|
|
336
|
+
*/
|
|
337
|
+
var NamedArrayFieldContainer = class {
|
|
338
|
+
_value;
|
|
339
|
+
getDynamicSource;
|
|
340
|
+
constructor(initialValue, options) {
|
|
341
|
+
this.getDynamicSource = options?.getDynamicSource;
|
|
342
|
+
const value = initialValue ?? [];
|
|
343
|
+
this._value = new Map(value.map((val) => [val.name, {
|
|
344
|
+
value: val,
|
|
345
|
+
setBySource: this.getDynamicSource?.()
|
|
346
|
+
}]));
|
|
347
|
+
}
|
|
348
|
+
add(value, source) {
|
|
349
|
+
const existingValue = this._value.get(value.name);
|
|
350
|
+
const setBySource = source ?? this.getDynamicSource?.() ?? "unknown";
|
|
351
|
+
if (existingValue?.setBySource) throw new Error(`Value for name ${value.name} has already been set by ${existingValue.setBySource} and cannot be overwritten by ${setBySource}`);
|
|
352
|
+
this._value.set(value.name, {
|
|
353
|
+
value,
|
|
354
|
+
setBySource
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
addMany(values, source) {
|
|
358
|
+
for (const value of values) this.add(value, source);
|
|
359
|
+
}
|
|
360
|
+
getValue() {
|
|
361
|
+
return sortBy([...this._value.values()].map((value) => value.value), [(v) => v.name]);
|
|
362
|
+
}
|
|
363
|
+
};
|
|
364
|
+
/**
|
|
365
|
+
* Named array field container that returns a map of names to values
|
|
366
|
+
*/
|
|
367
|
+
var NamedArrayToMapFieldContainer = class {
|
|
368
|
+
_namedFieldContainer;
|
|
369
|
+
constructor(initialValue, options) {
|
|
370
|
+
this._namedFieldContainer = new NamedArrayFieldContainer(initialValue, options);
|
|
371
|
+
}
|
|
372
|
+
add(value, source) {
|
|
373
|
+
this._namedFieldContainer.add(value, source);
|
|
374
|
+
}
|
|
375
|
+
addMany(values, source) {
|
|
376
|
+
this._namedFieldContainer.addMany(values, source);
|
|
377
|
+
}
|
|
378
|
+
getValue() {
|
|
379
|
+
return new Map(this._namedFieldContainer.getValue().map((value) => [value.name, value]));
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
|
+
var MapOfMapsContainer = class {
|
|
383
|
+
_value;
|
|
384
|
+
getDynamicSource;
|
|
385
|
+
constructor(initialValue, options) {
|
|
386
|
+
this.getDynamicSource = options?.getDynamicSource;
|
|
387
|
+
const initialMap = initialValue ?? /* @__PURE__ */ new Map();
|
|
388
|
+
this._value = new Map([...initialMap.entries()].map(([key1, innerMap]) => [key1, {
|
|
389
|
+
value: new Map([...innerMap.entries()].map(([key2, value]) => [key2, {
|
|
390
|
+
value,
|
|
391
|
+
setBySource: this.getDynamicSource?.()
|
|
392
|
+
}])),
|
|
393
|
+
setBySource: this.getDynamicSource?.()
|
|
394
|
+
}]));
|
|
395
|
+
}
|
|
396
|
+
set(key1, key2, value, source) {
|
|
397
|
+
const existingOuterValue = this._value.get(key1);
|
|
398
|
+
const setBySource = source ?? this.getDynamicSource?.() ?? "unknown";
|
|
399
|
+
if (!existingOuterValue) {
|
|
400
|
+
const newInnerMap = /* @__PURE__ */ new Map([[key2, {
|
|
401
|
+
value,
|
|
402
|
+
setBySource
|
|
403
|
+
}]]);
|
|
404
|
+
this._value.set(key1, {
|
|
405
|
+
value: newInnerMap,
|
|
406
|
+
setBySource
|
|
407
|
+
});
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
410
|
+
const existingInnerValue = existingOuterValue.value.get(key2);
|
|
411
|
+
if (existingInnerValue?.setBySource) throw new Error(`Value for keys ${key1}+${key2} has already been set by ${existingInnerValue.setBySource} and cannot be overwritten by ${setBySource}`);
|
|
412
|
+
existingOuterValue.value.set(key2, {
|
|
413
|
+
value,
|
|
414
|
+
setBySource
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
merge(key1, value, source) {
|
|
418
|
+
const mergeSource = source ?? this.getDynamicSource?.() ?? "unknown";
|
|
419
|
+
for (const [key2, val] of value.entries()) this.set(key1, key2, val, mergeSource);
|
|
420
|
+
}
|
|
421
|
+
mergeObj(key1, value, source) {
|
|
422
|
+
const mergeSource = source ?? this.getDynamicSource?.() ?? "unknown";
|
|
423
|
+
for (const [key2, val] of Object.entries(value)) this.set(key1, key2, val, mergeSource);
|
|
424
|
+
}
|
|
425
|
+
getValue() {
|
|
426
|
+
return new Map([...this._value.entries()].map(([key1, outerValue]) => [key1, new Map([...outerValue.value.entries()].map(([key2, innerValue]) => [key2, innerValue.value]))]));
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
var FieldMapSchemaBuilder = class {
|
|
430
|
+
options;
|
|
431
|
+
constructor(options) {
|
|
432
|
+
this.options = options;
|
|
433
|
+
}
|
|
434
|
+
scalar(defaultValue) {
|
|
435
|
+
return new ScalarContainer(defaultValue, this.options);
|
|
436
|
+
}
|
|
437
|
+
string(defaultValue) {
|
|
438
|
+
return new ScalarContainer(defaultValue, this.options);
|
|
439
|
+
}
|
|
440
|
+
number(defaultValue) {
|
|
441
|
+
return new ScalarContainer(defaultValue, this.options);
|
|
442
|
+
}
|
|
443
|
+
boolean(defaultValue) {
|
|
444
|
+
return new ScalarContainer(defaultValue, this.options);
|
|
445
|
+
}
|
|
446
|
+
array(initialValue, options) {
|
|
447
|
+
return new ArrayContainer(initialValue, options);
|
|
448
|
+
}
|
|
449
|
+
object(defaultValue) {
|
|
450
|
+
return new ObjectContainer(defaultValue, this.options);
|
|
451
|
+
}
|
|
452
|
+
map(initialValue) {
|
|
453
|
+
return new MapContainer(initialValue ?? /* @__PURE__ */ new Map(), this.options);
|
|
454
|
+
}
|
|
455
|
+
mapFromObj(initialValue) {
|
|
456
|
+
return new MapContainer(new Map(Object.entries(initialValue ?? {})), this.options);
|
|
457
|
+
}
|
|
458
|
+
namedArray(initialValue) {
|
|
459
|
+
return new NamedArrayFieldContainer(initialValue, this.options);
|
|
460
|
+
}
|
|
461
|
+
namedArrayToMap(initialValue) {
|
|
462
|
+
return new NamedArrayToMapFieldContainer(initialValue, this.options);
|
|
463
|
+
}
|
|
464
|
+
mapOfMaps(initialValue) {
|
|
465
|
+
return new MapOfMapsContainer(initialValue ?? /* @__PURE__ */ new Map(), this.options);
|
|
466
|
+
}
|
|
467
|
+
mapOfMapsFromObj(initialValue) {
|
|
468
|
+
const map = /* @__PURE__ */ new Map();
|
|
469
|
+
if (initialValue) for (const [key1, innerObj] of Object.entries(initialValue)) map.set(key1, new Map(Object.entries(innerObj)));
|
|
470
|
+
return new MapOfMapsContainer(map, this.options);
|
|
471
|
+
}
|
|
472
|
+
};
|
|
473
|
+
/**
|
|
474
|
+
* Creates a field map with type-safe field definitions
|
|
475
|
+
*/
|
|
476
|
+
function createFieldMap(schemaBuilder, options) {
|
|
477
|
+
const schema = schemaBuilder(new FieldMapSchemaBuilder(options));
|
|
478
|
+
return {
|
|
479
|
+
...schema,
|
|
480
|
+
getValues: () => {
|
|
481
|
+
const values = {};
|
|
482
|
+
for (const key of Object.keys(schema)) values[key] = schema[key].getValue();
|
|
483
|
+
return values;
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
//#endregion
|
|
488
|
+
//#region ../../node_modules/.pnpm/nanoid@5.0.9/node_modules/nanoid/index.browser.js
|
|
489
|
+
var random = (bytes) => crypto.getRandomValues(new Uint8Array(bytes));
|
|
490
|
+
var customRandom = (alphabet, defaultSize, getRandom) => {
|
|
491
|
+
let mask = (2 << Math.log2(alphabet.length - 1)) - 1;
|
|
492
|
+
let step = -~(1.6 * mask * defaultSize / alphabet.length);
|
|
493
|
+
return (size = defaultSize) => {
|
|
494
|
+
let id = "";
|
|
495
|
+
while (true) {
|
|
496
|
+
let bytes = getRandom(step);
|
|
497
|
+
let j = step | 0;
|
|
498
|
+
while (j--) {
|
|
499
|
+
id += alphabet[bytes[j] & mask] || "";
|
|
500
|
+
if (id.length >= size) return id;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
};
|
|
505
|
+
var customAlphabet = (alphabet, size = 21) => customRandom(alphabet, size | 0, random);
|
|
506
|
+
//#endregion
|
|
507
|
+
//#region ../../packages/utils/dist/string/random-key.js
|
|
508
|
+
/**
|
|
509
|
+
* Use custom ID generator for characters that be easily selected
|
|
510
|
+
*/
|
|
511
|
+
var customNanoid = customAlphabet(`0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_`, 12);
|
|
512
|
+
/**
|
|
513
|
+
* Generate a random key string made up of numbers, lowercase, and uppercase letters
|
|
514
|
+
* @returns A random key string
|
|
515
|
+
*/
|
|
516
|
+
function randomKey(length = 12) {
|
|
517
|
+
return customNanoid(length);
|
|
518
|
+
}
|
|
519
|
+
//#endregion
|
|
520
|
+
//#region ../../packages/utils/dist/validators/validation-hint-registry.js
|
|
521
|
+
/**
|
|
522
|
+
* Registry that stores human-readable validation hints on Zod schema instances.
|
|
523
|
+
*
|
|
524
|
+
* Used by `buildTsDescriptionRegistry` to annotate TypeScript type output with
|
|
525
|
+
* validation constraints (e.g., "camelCase", "CONSTANT_CASE") as JSDoc comments.
|
|
526
|
+
*
|
|
527
|
+
* Validators register hints at module load time. The registry is consumed
|
|
528
|
+
* during schema-to-TypeScript conversion to produce annotated output.
|
|
529
|
+
*/
|
|
530
|
+
var validationHintRegistry = __mf_0.registry();
|
|
531
|
+
//#endregion
|
|
532
|
+
//#region ../../packages/utils/dist/validators/case-validators.js
|
|
533
|
+
/**
|
|
534
|
+
* Regex for validating kebab case, e.g. "my-project".
|
|
535
|
+
*/
|
|
536
|
+
var KEBAB_CASE_REGEX = /^[a-z0-9-]+$/;
|
|
537
|
+
/**
|
|
538
|
+
* Regex for validating pascal case, e.g. "MyProject".
|
|
539
|
+
*/
|
|
540
|
+
var PASCAL_CASE_REGEX = /^[A-Z][a-zA-Z0-9]*$/;
|
|
541
|
+
var CASE_VALIDATORS = {
|
|
542
|
+
/**
|
|
543
|
+
* Zod validator for validating kebab case, e.g. "my-project".
|
|
544
|
+
*/
|
|
545
|
+
KEBAB_CASE: __mf_0.string().regex(KEBAB_CASE_REGEX, { message: "Must be kebab case (e.g. \"my-project\")" }).register(validationHintRegistry, { description: "kebab-case (e.g. \"my-project\")" }),
|
|
546
|
+
/**
|
|
547
|
+
* Zod validator for validating pascal case, e.g. "MyProject".
|
|
548
|
+
*/
|
|
549
|
+
PASCAL_CASE: __mf_0.string().regex(PASCAL_CASE_REGEX, { message: "Must be pascal case (e.g. \"MyProject\")" }).register(validationHintRegistry, { description: "PascalCase (e.g. \"MyProject\")" }),
|
|
550
|
+
/**
|
|
551
|
+
* Zod validator for validating camel case, e.g. "myProject".
|
|
552
|
+
*/
|
|
553
|
+
CAMEL_CASE: __mf_0.string().regex(/^[a-z][a-zA-Z0-9]*$/, { message: "Must be camel case (e.g. \"myProject\")" }).register(validationHintRegistry, { description: "camelCase (e.g. \"myProject\")" }),
|
|
554
|
+
/**
|
|
555
|
+
* Zod validator for validating constant case, e.g. "MY_PROJECT".
|
|
556
|
+
*/
|
|
557
|
+
CONSTANT_CASE: __mf_0.string().regex(/^[A-Z][A-Z0-9_]*$/, { message: "Must be constant case (e.g. \"MY_PROJECT\")" }).register(validationHintRegistry, { description: "CONSTANT_CASE (e.g. \"MY_PROJECT\")" })
|
|
558
|
+
};
|
|
559
|
+
//#endregion
|
|
560
|
+
//#region ../../packages/project-builder-lib/dist/plugins/context/plugin-context.js
|
|
561
|
+
/**
|
|
562
|
+
* Plugin context module for tracking the current plugin being initialized.
|
|
563
|
+
*
|
|
564
|
+
* Uses a simple synchronous context that works on both Node and browser platforms.
|
|
565
|
+
* This is safe because plugin initialization is synchronous and single-threaded.
|
|
566
|
+
*/
|
|
567
|
+
var currentPluginContext;
|
|
568
|
+
/**
|
|
569
|
+
* Runs a function within a plugin context.
|
|
570
|
+
*
|
|
571
|
+
* This sets the current plugin context for the duration of the function execution,
|
|
572
|
+
* allowing nested functions to access the plugin key via `getPluginContext()`.
|
|
573
|
+
*
|
|
574
|
+
* @param context - The plugin context to set
|
|
575
|
+
* @param fn - The function to run within the context
|
|
576
|
+
* @returns The result of the function
|
|
577
|
+
*/
|
|
578
|
+
function runInPluginContext(context, fn) {
|
|
579
|
+
const prev = currentPluginContext;
|
|
580
|
+
currentPluginContext = context;
|
|
581
|
+
try {
|
|
582
|
+
return fn();
|
|
583
|
+
} finally {
|
|
584
|
+
currentPluginContext = prev;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* Gets the current plugin context if one exists.
|
|
589
|
+
*
|
|
590
|
+
* @returns The current plugin context, or undefined if not in a plugin context
|
|
591
|
+
*/
|
|
592
|
+
function getPluginContext() {
|
|
593
|
+
return currentPluginContext;
|
|
594
|
+
}
|
|
595
|
+
//#endregion
|
|
596
|
+
//#region ../../packages/project-builder-lib/dist/plugins/utils/create-plugin-field-map.js
|
|
597
|
+
/**
|
|
598
|
+
* Creates a field map that automatically tracks which plugin registered each value.
|
|
599
|
+
*
|
|
600
|
+
* Similar to `createConfigFieldMap` in the sync package, this utility uses the
|
|
601
|
+
* current plugin context to track the source of registrations. This enables
|
|
602
|
+
* clear error messages when registration conflicts occur.
|
|
603
|
+
*
|
|
604
|
+
* @example
|
|
605
|
+
* ```typescript
|
|
606
|
+
* const fieldMap = createPluginFieldMap((t) => ({
|
|
607
|
+
* transformers: t.map<string, Transformer>(),
|
|
608
|
+
* }));
|
|
609
|
+
*
|
|
610
|
+
* // When a plugin tries to overwrite a value:
|
|
611
|
+
* // Error: Value for key 'myTransformer' has already been set by plugin-auth
|
|
612
|
+
* // and cannot be overwritten by plugin-storage
|
|
613
|
+
* ```
|
|
614
|
+
*
|
|
615
|
+
* @param schemaBuilder - A function that builds the field map schema
|
|
616
|
+
* @returns A field map with automatic source tracking
|
|
617
|
+
*/
|
|
618
|
+
function createPluginFieldMap(schemaBuilder) {
|
|
619
|
+
return createFieldMap(schemaBuilder, { getDynamicSource: () => getPluginContext()?.pluginKey });
|
|
620
|
+
}
|
|
621
|
+
//#endregion
|
|
622
|
+
//#region ../../packages/project-builder-lib/dist/plugins/utils/create-field-map-spec.js
|
|
623
|
+
/**
|
|
624
|
+
* Creates a plugin spec backed by a FieldMap for automatic source tracking.
|
|
625
|
+
*
|
|
626
|
+
* @param name - Unique identifier for the spec
|
|
627
|
+
* @param schemaBuilder - Function that builds the field map schema
|
|
628
|
+
* @param options - Optional configuration including custom use interface
|
|
629
|
+
*/
|
|
630
|
+
function createFieldMapSpec(name, schemaBuilder, options) {
|
|
631
|
+
return createPluginSpec(name, { initializer: () => {
|
|
632
|
+
const fieldMap = createPluginFieldMap(schemaBuilder);
|
|
633
|
+
return {
|
|
634
|
+
init: fieldMap,
|
|
635
|
+
use: () => {
|
|
636
|
+
const values = fieldMap.getValues();
|
|
637
|
+
if (options?.use) return options.use(values);
|
|
638
|
+
return values;
|
|
639
|
+
}
|
|
640
|
+
};
|
|
641
|
+
} });
|
|
642
|
+
}
|
|
643
|
+
//#endregion
|
|
644
|
+
//#region ../../packages/project-builder-lib/dist/references/definition-ref-registry.js
|
|
645
|
+
/**
|
|
646
|
+
* Global registry that stores Baseplate metadata on Zod schema instances.
|
|
647
|
+
*
|
|
648
|
+
* Uses a plain WeakMap to avoid Zod's `$replace<Meta, S>` type substitution
|
|
649
|
+
* which causes "type instantiation excessively deep" errors with complex unions.
|
|
650
|
+
*
|
|
651
|
+
* Stores an array of metadata per schema to support schemas that carry multiple
|
|
652
|
+
* annotations (e.g. a schema that is both an `entity` and a `ref-context`).
|
|
653
|
+
*
|
|
654
|
+
* Used by `withEnt`, `withRef`, `withExpression`, and `refContext` to attach
|
|
655
|
+
* metadata to schema nodes. The parallel schema+data walker reads this registry
|
|
656
|
+
* to extract entity/reference/expression information after validation.
|
|
657
|
+
*/
|
|
658
|
+
var definitionRefRegistry = (() => {
|
|
659
|
+
const map = /* @__PURE__ */ new WeakMap();
|
|
660
|
+
return {
|
|
661
|
+
add(schema, meta) {
|
|
662
|
+
const existing = map.get(schema);
|
|
663
|
+
if (existing) {
|
|
664
|
+
if ((meta.kind === "entity" || meta.kind === "reference") && existing.some((e) => e.kind === meta.kind && e.type === meta.type)) throw new Error(`Duplicate definition ref metadata kind "${meta.kind}" for type "${meta.type.name}" on the same schema instance. This usually means a shared/module-level schema was passed to withEnt/withRef multiple times. Create a fresh schema instance instead.`);
|
|
665
|
+
existing.push(meta);
|
|
666
|
+
} else map.set(schema, [meta]);
|
|
667
|
+
},
|
|
668
|
+
getAll(schema) {
|
|
669
|
+
return map.get(schema) ?? [];
|
|
670
|
+
},
|
|
671
|
+
has(schema) {
|
|
672
|
+
return map.has(schema);
|
|
673
|
+
}
|
|
674
|
+
};
|
|
675
|
+
})();
|
|
676
|
+
//#endregion
|
|
677
|
+
//#region ../../packages/project-builder-lib/dist/references/expression-parser-spec.js
|
|
678
|
+
/**
|
|
679
|
+
* Plugin spec for registering expression parsers.
|
|
680
|
+
*
|
|
681
|
+
* Expression parsers handle parsing, validation, and rename detection
|
|
682
|
+
* for expression fields in the project definition (e.g., authorizer
|
|
683
|
+
* role expressions).
|
|
684
|
+
*
|
|
685
|
+
* Built-in parsers (authorizer expressions) are registered by core modules.
|
|
686
|
+
* Plugins can register additional parsers during initialization.
|
|
687
|
+
*
|
|
688
|
+
* @example
|
|
689
|
+
* ```typescript
|
|
690
|
+
* createPluginModule({
|
|
691
|
+
* dependencies: { expressionParsers: expressionParserSpec },
|
|
692
|
+
* initialize: ({ expressionParsers }) => {
|
|
693
|
+
* expressionParsers.parsers.set('my-expression', myParser);
|
|
694
|
+
* },
|
|
695
|
+
* });
|
|
696
|
+
* ```
|
|
697
|
+
*/
|
|
698
|
+
var expressionParserSpec = createFieldMapSpec("core/expression-parsers", (t) => ({ parsers: t.map() }), { use: (values) => ({ getParser: (name) => values.parsers.get(name) }) });
|
|
699
|
+
//#endregion
|
|
700
|
+
//#region ../../packages/project-builder-lib/dist/references/expression-types.js
|
|
701
|
+
/**
|
|
702
|
+
* A pluggable parser for ref expressions.
|
|
703
|
+
*
|
|
704
|
+
* The parser is format-agnostic - the core references system
|
|
705
|
+
* doesn't know or care what format the expressions are in. The parser
|
|
706
|
+
* handles all parsing, validation, and rename handling.
|
|
707
|
+
*
|
|
708
|
+
* Parsers can declare required slots via the TRequiredSlots generic parameter.
|
|
709
|
+
* When a parser requires slots, TypeScript enforces that they are provided
|
|
710
|
+
* when calling `withExpression()`.
|
|
711
|
+
*
|
|
712
|
+
* @typeParam TValue - The type of the raw expression value (e.g., string for TS expressions)
|
|
713
|
+
* @typeParam TParseResult - The type of the parsed result (e.g., AST for TS expressions)
|
|
714
|
+
* @typeParam TRequiredSlots - Record of required slot names to entity types
|
|
715
|
+
*
|
|
716
|
+
* @example
|
|
717
|
+
* ```typescript
|
|
718
|
+
* // A simple parser with no required slots
|
|
719
|
+
* class StubParser extends RefExpressionParser<string, undefined> {
|
|
720
|
+
* readonly name = 'stub';
|
|
721
|
+
* parse(): undefined { return undefined; }
|
|
722
|
+
* getWarnings(): [] { return []; }
|
|
723
|
+
* getReferencedEntities(): [] { return []; }
|
|
724
|
+
* }
|
|
725
|
+
*
|
|
726
|
+
* // A parser that requires a model slot
|
|
727
|
+
* class AuthorizerParser extends RefExpressionParser<
|
|
728
|
+
* string,
|
|
729
|
+
* TsAst,
|
|
730
|
+
* { model: typeof modelEntityType }
|
|
731
|
+
* > {
|
|
732
|
+
* readonly name = 'authorizer';
|
|
733
|
+
* // TypeScript enforces slot requirement in withExpression()
|
|
734
|
+
* }
|
|
735
|
+
* ```
|
|
736
|
+
*/
|
|
737
|
+
var RefExpressionParser = class {
|
|
738
|
+
/**
|
|
739
|
+
* Convenience method that combines parse() and getWarnings() into a single call.
|
|
740
|
+
* Parses the expression and returns all validation warnings (including parse errors).
|
|
741
|
+
*
|
|
742
|
+
* @param value - The raw expression value
|
|
743
|
+
* @param projectDef - The project definition for context
|
|
744
|
+
* @param context - Validation context with project definition and plugin store
|
|
745
|
+
* @param resolvedSlots - The resolved slot paths for this expression
|
|
746
|
+
* @returns Array of warnings (empty if valid)
|
|
747
|
+
*/
|
|
748
|
+
validate(value, projectDef, context, resolvedSlots) {
|
|
749
|
+
const parseResult = this.parse(value, projectDef);
|
|
750
|
+
if (!parseResult.success) return [{ message: parseResult.error }];
|
|
751
|
+
return this.getWarnings(parseResult.value, context, resolvedSlots);
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* Phantom property for TRequiredSlots type inference.
|
|
755
|
+
* This is never actually used at runtime.
|
|
756
|
+
* @internal
|
|
757
|
+
*/
|
|
758
|
+
_requiredSlots;
|
|
759
|
+
};
|
|
760
|
+
//#endregion
|
|
761
|
+
//#region ../../packages/project-builder-lib/dist/references/ref-context-slot.js
|
|
762
|
+
/**
|
|
763
|
+
* Creates a new ref context slot for the given entity type.
|
|
764
|
+
* Each call creates a unique slot, even for the same entity type.
|
|
765
|
+
*
|
|
766
|
+
* @param name - A descriptive name for debugging (shows in Symbol description)
|
|
767
|
+
* @param entityType - The entity type this slot will be associated with
|
|
768
|
+
* @returns A new unique RefContextSlot instance
|
|
769
|
+
*
|
|
770
|
+
* @example
|
|
771
|
+
* ```typescript
|
|
772
|
+
* const modelSlot = createRefContextSlot('modelSlot', modelEntityType);
|
|
773
|
+
* const anotherModelSlot = createRefContextSlot('anotherModelSlot', modelEntityType);
|
|
774
|
+
*
|
|
775
|
+
* // These are different slots despite same entity type
|
|
776
|
+
* modelSlot.id !== anotherModelSlot.id
|
|
777
|
+
* // modelSlot.id.toString() === 'Symbol(modelSlot)'
|
|
778
|
+
* ```
|
|
779
|
+
*/
|
|
780
|
+
function createRefContextSlot(name, entityType) {
|
|
781
|
+
return {
|
|
782
|
+
entityType,
|
|
783
|
+
id: Symbol(name)
|
|
784
|
+
};
|
|
785
|
+
}
|
|
786
|
+
/**
|
|
787
|
+
* Creates a RefContextSlotMap from a slot definition.
|
|
788
|
+
* Used internally by ctx.refContext().
|
|
789
|
+
*
|
|
790
|
+
* @param slotDefinition - Map of slot names to entity types
|
|
791
|
+
* @returns Map of slot names to RefContextSlot instances
|
|
792
|
+
*/
|
|
793
|
+
function createRefContextSlotMap(slotDefinition) {
|
|
794
|
+
return Object.fromEntries(Object.entries(slotDefinition).map(([key, entityType]) => [key, createRefContextSlot(key, entityType)]));
|
|
795
|
+
}
|
|
796
|
+
//#endregion
|
|
797
|
+
//#region ../../packages/project-builder-lib/dist/references/extend-parser-context-with-refs.js
|
|
798
|
+
/**
|
|
799
|
+
* Creates a string schema annotated as a reference to another entity.
|
|
800
|
+
*
|
|
801
|
+
* Can be used standalone:
|
|
802
|
+
* ```typescript
|
|
803
|
+
* withRef({ type: modelEnumEntityType, onDelete: 'RESTRICT' })
|
|
804
|
+
* ```
|
|
805
|
+
*
|
|
806
|
+
* Or on the parser context:
|
|
807
|
+
* ```typescript
|
|
808
|
+
* ctx.withRef({ type: modelEnumEntityType, onDelete: 'RESTRICT' })
|
|
809
|
+
* ```
|
|
810
|
+
*/
|
|
811
|
+
function withRef(reference) {
|
|
812
|
+
const schema = __mf_0.string().min(1);
|
|
813
|
+
definitionRefRegistry.add(schema, {
|
|
814
|
+
kind: "reference",
|
|
815
|
+
type: reference.type,
|
|
816
|
+
onDelete: reference.onDelete,
|
|
817
|
+
parentSlot: reference.parentSlot,
|
|
818
|
+
provides: reference.provides
|
|
819
|
+
});
|
|
820
|
+
return schema;
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* Creates a schema decorator that marks a schema as defining an entity.
|
|
824
|
+
*
|
|
825
|
+
* Can be used with `.apply()`:
|
|
826
|
+
* ```typescript
|
|
827
|
+
* schema.apply(withEnt({ type: modelEntityType, provides: modelSlot }))
|
|
828
|
+
* ```
|
|
829
|
+
*
|
|
830
|
+
* Or via the parser context (2-arg legacy form):
|
|
831
|
+
* ```typescript
|
|
832
|
+
* ctx.withEnt(schema, { type: modelEntityType, provides: modelSlot })
|
|
833
|
+
* ```
|
|
834
|
+
*
|
|
835
|
+
* @param entity - The entity definition input
|
|
836
|
+
* @returns A function that decorates a schema with entity metadata
|
|
837
|
+
*/
|
|
838
|
+
function withEnt(entity) {
|
|
839
|
+
return (schema) => {
|
|
840
|
+
const idPath = entity.idPath ?? ["id"];
|
|
841
|
+
definitionRefRegistry.add(schema, {
|
|
842
|
+
kind: "entity",
|
|
843
|
+
type: entity.type,
|
|
844
|
+
idPath,
|
|
845
|
+
getNameResolver: entity.getNameResolver,
|
|
846
|
+
parentSlot: entity.parentSlot,
|
|
847
|
+
provides: entity.provides,
|
|
848
|
+
sortByName: entity.sortByName
|
|
849
|
+
});
|
|
850
|
+
return schema;
|
|
851
|
+
};
|
|
852
|
+
}
|
|
853
|
+
/**
|
|
854
|
+
* Creates ref context slots for use within a schema definition.
|
|
855
|
+
* Slots provide type-safe context for parent-child entity relationships.
|
|
856
|
+
*
|
|
857
|
+
* @example
|
|
858
|
+
* ```typescript
|
|
859
|
+
* ctx.refContext(
|
|
860
|
+
* { modelSlot: modelEntityType },
|
|
861
|
+
* ({ modelSlot }) =>
|
|
862
|
+
* ctx.withEnt(schema, {
|
|
863
|
+
* type: modelEntityType,
|
|
864
|
+
* provides: modelSlot,
|
|
865
|
+
* }),
|
|
866
|
+
* );
|
|
867
|
+
* ```
|
|
868
|
+
*/
|
|
869
|
+
function refContext(slotDefinition, schemaBuilder) {
|
|
870
|
+
const slots = createRefContextSlotMap(slotDefinition);
|
|
871
|
+
const schema = schemaBuilder(slots);
|
|
872
|
+
definitionRefRegistry.add(schema, {
|
|
873
|
+
kind: "ref-context",
|
|
874
|
+
slots: Object.values(slots)
|
|
875
|
+
});
|
|
876
|
+
return schema;
|
|
877
|
+
}
|
|
878
|
+
/**
|
|
879
|
+
* Wraps a value with a ref expression parser for deferred validation.
|
|
880
|
+
* The parser handles all parsing, validation, and rename handling.
|
|
881
|
+
*
|
|
882
|
+
* If the parser declares required slots (via TRequiredSlots), they must be
|
|
883
|
+
* provided as the second argument. TypeScript enforces this at compile time.
|
|
884
|
+
*
|
|
885
|
+
* The parser's `createSchema()` method is called to get a fresh schema
|
|
886
|
+
* instance per call site, allowing per-call metadata to be registered
|
|
887
|
+
* independently in the Baseplate registry.
|
|
888
|
+
*
|
|
889
|
+
* @example
|
|
890
|
+
* ```typescript
|
|
891
|
+
* // Parser without required slots
|
|
892
|
+
* const expressionSchema = ctx.withExpression(simpleParser);
|
|
893
|
+
*
|
|
894
|
+
* // Parser with required slots (TypeScript enforces the second argument)
|
|
895
|
+
* ctx.refContext(
|
|
896
|
+
* { modelSlot: modelEntityType },
|
|
897
|
+
* ({ modelSlot }) =>
|
|
898
|
+
* z.object({
|
|
899
|
+
* condition: ctx.withExpression(authorizerParser, { model: modelSlot }),
|
|
900
|
+
* })
|
|
901
|
+
* );
|
|
902
|
+
* ```
|
|
903
|
+
*/
|
|
904
|
+
/**
|
|
905
|
+
* Creates a `withExpression` function that resolves parser refs eagerly
|
|
906
|
+
* from the plugin spec store at schema construction time.
|
|
907
|
+
*/
|
|
908
|
+
function createWithExpression(plugins) {
|
|
909
|
+
function withExpression(parserOrRef, slots) {
|
|
910
|
+
let parser;
|
|
911
|
+
if (parserOrRef instanceof RefExpressionParser) parser = parserOrRef;
|
|
912
|
+
else {
|
|
913
|
+
if (!plugins) throw new Error(`PluginSpecStore is required to resolve expression parser ref "${parserOrRef.name}". Ensure plugins are provided to createDefinitionSchemaParserContext.`);
|
|
914
|
+
const resolved = plugins.use(expressionParserSpec).getParser(parserOrRef.name);
|
|
915
|
+
if (!resolved) throw new Error(`Expression parser "${parserOrRef.name}" not found in expressionParserSpec. Ensure it is registered via a core module or plugin.`);
|
|
916
|
+
parser = resolved;
|
|
917
|
+
}
|
|
918
|
+
const schema = parser.createSchema();
|
|
919
|
+
definitionRefRegistry.add(schema, {
|
|
920
|
+
kind: "expression",
|
|
921
|
+
parser,
|
|
922
|
+
slots
|
|
923
|
+
});
|
|
924
|
+
return schema;
|
|
925
|
+
}
|
|
926
|
+
return withExpression;
|
|
927
|
+
}
|
|
928
|
+
function extendParserContextWithRefs(plugins) {
|
|
929
|
+
return {
|
|
930
|
+
withRef,
|
|
931
|
+
withEnt(schema, entity) {
|
|
932
|
+
return schema.apply(withEnt(entity));
|
|
933
|
+
},
|
|
934
|
+
refContext,
|
|
935
|
+
withExpression: createWithExpression(plugins)
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
//#endregion
|
|
939
|
+
//#region ../../packages/project-builder-lib/dist/schema/creator/definition-default-registry.js
|
|
940
|
+
/**
|
|
941
|
+
* Registry that stores default-value metadata on Zod schema instances.
|
|
942
|
+
*
|
|
943
|
+
* Uses a WeakMap to avoid interfering with Zod's type system.
|
|
944
|
+
* Annotated by `withDefault()`; read by `cleanDefaultValues()`.
|
|
945
|
+
*/
|
|
946
|
+
var definitionDefaultRegistry = (() => {
|
|
947
|
+
const map = /* @__PURE__ */ new WeakMap();
|
|
948
|
+
return {
|
|
949
|
+
set(schema, meta) {
|
|
950
|
+
map.set(schema, meta);
|
|
951
|
+
},
|
|
952
|
+
get(schema) {
|
|
953
|
+
return map.get(schema);
|
|
954
|
+
}
|
|
955
|
+
};
|
|
956
|
+
})();
|
|
957
|
+
//#endregion
|
|
958
|
+
//#region ../../packages/project-builder-lib/dist/schema/creator/extend-parser-context-with-defaults.js
|
|
959
|
+
/**
|
|
960
|
+
* Creates a schema decorator that applies a default value.
|
|
961
|
+
*
|
|
962
|
+
* Uses `prefault` to ensure defaults are populated during Zod parse, and
|
|
963
|
+
* registers the default value in the registry so `cleanDefaultValues()` can
|
|
964
|
+
* strip matching values during serialization.
|
|
965
|
+
*
|
|
966
|
+
* Can be used standalone with `.apply()`:
|
|
967
|
+
* ```typescript
|
|
968
|
+
* z.boolean().apply(withDefault(false))
|
|
969
|
+
* ```
|
|
970
|
+
*
|
|
971
|
+
* @param defaultValue - The default value to apply
|
|
972
|
+
* @returns A function that decorates a schema with the default value
|
|
973
|
+
*/
|
|
974
|
+
function withDefault(defaultValue) {
|
|
975
|
+
return (schema) => {
|
|
976
|
+
const result = schema.prefault(defaultValue);
|
|
977
|
+
definitionDefaultRegistry.set(result, { defaultValue });
|
|
978
|
+
return result;
|
|
979
|
+
};
|
|
980
|
+
}
|
|
981
|
+
/**
|
|
982
|
+
* Extends the parser context with default value handling functionality.
|
|
983
|
+
*
|
|
984
|
+
* @returns An object containing the withDefault method
|
|
985
|
+
*/
|
|
986
|
+
function extendParserContextWithDefaults() {
|
|
987
|
+
return { withDefault: (schema, defaultValue) => withDefault(defaultValue)(schema) };
|
|
988
|
+
}
|
|
989
|
+
//#endregion
|
|
990
|
+
//#region ../../packages/project-builder-lib/dist/schema/creator/schema-creator.js
|
|
991
|
+
var contextCache = /* @__PURE__ */ new WeakMap();
|
|
992
|
+
function createDefinitionSchemaParserContext(options) {
|
|
993
|
+
const cached = contextCache.get(options.plugins);
|
|
994
|
+
if (cached) return cached;
|
|
995
|
+
const context = {
|
|
996
|
+
...options,
|
|
997
|
+
...extendParserContextWithRefs(options.plugins),
|
|
998
|
+
...extendParserContextWithDefaults()
|
|
999
|
+
};
|
|
1000
|
+
contextCache.set(options.plugins, context);
|
|
1001
|
+
return context;
|
|
1002
|
+
}
|
|
1003
|
+
function definitionSchema(creator) {
|
|
1004
|
+
const cache = /* @__PURE__ */ new WeakMap();
|
|
1005
|
+
return (context) => {
|
|
1006
|
+
const cached = cache.get(context);
|
|
1007
|
+
if (cached) return cached;
|
|
1008
|
+
const result = creator(context);
|
|
1009
|
+
cache.set(context, result);
|
|
1010
|
+
return result;
|
|
1011
|
+
};
|
|
1012
|
+
}
|
|
1013
|
+
/**
|
|
1014
|
+
* Creates a schema that requires slots to be passed from parent schemas.
|
|
1015
|
+
* Used when a schema needs to reference entities from a parent context.
|
|
1016
|
+
*
|
|
1017
|
+
* @example
|
|
1018
|
+
* ```typescript
|
|
1019
|
+
* // Child schema requiring modelSlot from parent
|
|
1020
|
+
* export const createModelScalarFieldSchema = definitionSchemaWithSlots(
|
|
1021
|
+
* { modelSlot: modelEntityType },
|
|
1022
|
+
* (ctx, { modelSlot }) =>
|
|
1023
|
+
* ctx.withEnt(schema, {
|
|
1024
|
+
* type: modelScalarFieldEntityType,
|
|
1025
|
+
* parentSlot: modelSlot,
|
|
1026
|
+
* }),
|
|
1027
|
+
* );
|
|
1028
|
+
*
|
|
1029
|
+
* // Called from parent:
|
|
1030
|
+
* createModelScalarFieldSchema(ctx, { modelSlot: parentModelSlot })
|
|
1031
|
+
* ```
|
|
1032
|
+
*/
|
|
1033
|
+
function definitionSchemaWithSlots(slotDefinition, creator) {
|
|
1034
|
+
const creatorWithSlots = (context, slots) => creator(context, slots);
|
|
1035
|
+
creatorWithSlots.slotDefinition = slotDefinition;
|
|
1036
|
+
return creatorWithSlots;
|
|
1037
|
+
}
|
|
1038
|
+
/**
|
|
1039
|
+
* Wraps a schema creator that requires slots with placeholder slots,
|
|
1040
|
+
* producing a simple schema creator that can be used for validation-only
|
|
1041
|
+
* contexts (e.g., React Hook Form).
|
|
1042
|
+
*
|
|
1043
|
+
* The placeholder slots allow the schema to parse without actual parent context,
|
|
1044
|
+
* which is useful when you only need schema validation without ref extraction.
|
|
1045
|
+
*
|
|
1046
|
+
* @example
|
|
1047
|
+
* ```typescript
|
|
1048
|
+
* // Schema that normally requires modelSlot from parent
|
|
1049
|
+
* const createModelScalarFieldSchema = definitionSchemaWithSlots(
|
|
1050
|
+
* { modelSlot: modelEntityType },
|
|
1051
|
+
* (ctx, { modelSlot }) => ctx.withEnt(schema, { parentSlot: modelSlot }),
|
|
1052
|
+
* );
|
|
1053
|
+
*
|
|
1054
|
+
* // For React Hook Form validation, wrap with placeholder slots
|
|
1055
|
+
* const fieldSchema = withPlaceholderSlots(createModelScalarFieldSchema);
|
|
1056
|
+
* const zodSchema = fieldSchema(ctx); // No slots needed
|
|
1057
|
+
* ```
|
|
1058
|
+
*/
|
|
1059
|
+
function withPlaceholderSlots(schemaCreator) {
|
|
1060
|
+
return (ctx) => {
|
|
1061
|
+
return schemaCreator(ctx, createRefContextSlotMap(schemaCreator.slotDefinition));
|
|
1062
|
+
};
|
|
1063
|
+
}
|
|
1064
|
+
//#endregion
|
|
1065
|
+
//#region ../../packages/project-builder-lib/dist/references/types.js
|
|
1066
|
+
/**
|
|
1067
|
+
* Definition of an entity type.
|
|
1068
|
+
*/
|
|
1069
|
+
var DefinitionEntityType = class {
|
|
1070
|
+
prefix;
|
|
1071
|
+
name;
|
|
1072
|
+
parentType;
|
|
1073
|
+
/**
|
|
1074
|
+
* Creates a new entity type.
|
|
1075
|
+
*
|
|
1076
|
+
* @param name - The name of the entity type.
|
|
1077
|
+
* @param prefix - The prefix of the entity type to use in the ID, defaults to the name.
|
|
1078
|
+
* @param parentType - The type of the parent entity if any
|
|
1079
|
+
*/
|
|
1080
|
+
constructor(name, prefix, parentType) {
|
|
1081
|
+
this.name = name;
|
|
1082
|
+
this.parentType = parentType;
|
|
1083
|
+
this.prefix = prefix ?? name.split("/").pop() ?? name;
|
|
1084
|
+
}
|
|
1085
|
+
/**
|
|
1086
|
+
* Generates a new ID for the entity type.
|
|
1087
|
+
*
|
|
1088
|
+
* @returns The new ID.
|
|
1089
|
+
*/
|
|
1090
|
+
generateNewId() {
|
|
1091
|
+
return `${this.prefix}:${randomKey()}`;
|
|
1092
|
+
}
|
|
1093
|
+
idFromKey(key) {
|
|
1094
|
+
if (!key) return;
|
|
1095
|
+
return `${this.prefix}:${key}`;
|
|
1096
|
+
}
|
|
1097
|
+
keyFromId(id) {
|
|
1098
|
+
return id.split(":")[1];
|
|
1099
|
+
}
|
|
1100
|
+
isId(id) {
|
|
1101
|
+
return id.startsWith(`${this.prefix}:`);
|
|
1102
|
+
}
|
|
1103
|
+
};
|
|
1104
|
+
function createEntityType(name, options) {
|
|
1105
|
+
const { parentType, prefix } = options ?? {};
|
|
1106
|
+
return new DefinitionEntityType(name, prefix, parentType);
|
|
1107
|
+
}
|
|
1108
|
+
//#endregion
|
|
1109
|
+
//#region ../../packages/project-builder-lib/dist/schema/features/feature.js
|
|
1110
|
+
var featureEntityType = createEntityType("feature");
|
|
1111
|
+
var featureNameSchema = CASE_VALIDATORS.KEBAB_CASE;
|
|
1112
|
+
var createFeatureSchema = definitionSchema((ctx) => ctx.withEnt(__mf_0.object({
|
|
1113
|
+
id: __mf_0.string(),
|
|
1114
|
+
name: __mf_0.string().min(1).refine((name) => name.split("/").every((part) => featureNameSchema.safeParse(part).success), { message: "Feature name must be lowercase and contain only letters, numbers, and dashes" }),
|
|
1115
|
+
parentRef: ctx.withRef({
|
|
1116
|
+
type: featureEntityType,
|
|
1117
|
+
onDelete: "DELETE_PARENT"
|
|
1118
|
+
}).optional()
|
|
1119
|
+
}), {
|
|
1120
|
+
type: featureEntityType,
|
|
1121
|
+
sortByName: true
|
|
1122
|
+
}));
|
|
1123
|
+
var createFeaturesSchema = definitionSchema((ctx) => __mf_0.array(createFeatureSchema(ctx)).default([]));
|
|
1124
|
+
//#endregion
|
|
1125
|
+
//#region ../../packages/project-builder-lib/dist/definition/feature/feature-utils.js
|
|
1126
|
+
function getRootFeatures(projectDefinition) {
|
|
1127
|
+
return projectDefinition.features.filter((f) => !f.parentRef);
|
|
1128
|
+
}
|
|
1129
|
+
function getFeatureById(projectDefinition, featureId) {
|
|
1130
|
+
return projectDefinition.features.find((f) => f.id === featureId);
|
|
1131
|
+
}
|
|
1132
|
+
function getFeatureByIdOrThrow(projectDefinition, featureId) {
|
|
1133
|
+
const feature = getFeatureById(projectDefinition, featureId);
|
|
1134
|
+
if (!feature) throw new Error(`Could not find feature with ID ${featureId}`);
|
|
1135
|
+
return feature;
|
|
1136
|
+
}
|
|
1137
|
+
function getFeatureChildren(projectDefinition, featureId) {
|
|
1138
|
+
return projectDefinition.features.filter((f) => f.parentRef === featureId);
|
|
1139
|
+
}
|
|
1140
|
+
function getFeatureName(featureConfig) {
|
|
1141
|
+
return featureConfig.name.split("/").pop() ?? "";
|
|
1142
|
+
}
|
|
1143
|
+
function getFeatureNameById(projectDefinition, featureId) {
|
|
1144
|
+
return getFeatureName(getFeatureByIdOrThrow(projectDefinition, featureId));
|
|
1145
|
+
}
|
|
1146
|
+
function getFeaturePathByIdOrThrow(projectDefinition, featureId) {
|
|
1147
|
+
return getFeatureByIdOrThrow(projectDefinition, featureId).name;
|
|
1148
|
+
}
|
|
1149
|
+
function validateFeatureName(name) {
|
|
1150
|
+
return name.split("/").every((part) => featureNameSchema.safeParse(part).success);
|
|
1151
|
+
}
|
|
1152
|
+
function ensureFeatureByNameRecursively(projectDefinition, nameOrId) {
|
|
1153
|
+
if (featureEntityType.isId(nameOrId)) return nameOrId;
|
|
1154
|
+
const nameParts = nameOrId.split("/");
|
|
1155
|
+
let lastName = "";
|
|
1156
|
+
let parentRef = void 0;
|
|
1157
|
+
for (const part of nameParts) {
|
|
1158
|
+
const feature = projectDefinition.features.find((f) => f.name === part && f.parentRef === parentRef);
|
|
1159
|
+
const name = [lastName, part].filter(Boolean).join("/");
|
|
1160
|
+
if (feature) parentRef = feature.id;
|
|
1161
|
+
else {
|
|
1162
|
+
const newFeature = {
|
|
1163
|
+
id: featureEntityType.generateNewId(),
|
|
1164
|
+
name,
|
|
1165
|
+
parentRef
|
|
1166
|
+
};
|
|
1167
|
+
projectDefinition.features.push(newFeature);
|
|
1168
|
+
parentRef = newFeature.id;
|
|
1169
|
+
}
|
|
1170
|
+
lastName = name;
|
|
1171
|
+
}
|
|
1172
|
+
if (!parentRef) throw new Error("Failed to create feature");
|
|
1173
|
+
return parentRef;
|
|
1174
|
+
}
|
|
1175
|
+
function createPartialFeatures(nameOrPath) {
|
|
1176
|
+
if (!nameOrPath) return [];
|
|
1177
|
+
const parts = nameOrPath.split("/");
|
|
1178
|
+
return parts.map((_, i) => {
|
|
1179
|
+
return {
|
|
1180
|
+
name: parts.slice(0, i + 1).join("/"),
|
|
1181
|
+
parentRef: i > 0 ? parts.slice(0, i).join("/") : void 0
|
|
1182
|
+
};
|
|
1183
|
+
});
|
|
1184
|
+
}
|
|
1185
|
+
function getFeatureByName(projectDefinition, name) {
|
|
1186
|
+
return projectDefinition.features.find((f) => f.name === name);
|
|
1187
|
+
}
|
|
1188
|
+
function getFeatureIdByNameOrThrow(projectDefinition, name) {
|
|
1189
|
+
const feature = getFeatureByName(projectDefinition, name);
|
|
1190
|
+
if (!feature) throw new Error(`Could not find feature with name ${name}`);
|
|
1191
|
+
return feature.id;
|
|
1192
|
+
}
|
|
1193
|
+
function getFeatureIdByNameOrDefault(projectDefinition, name) {
|
|
1194
|
+
return getFeatureByName(projectDefinition, name)?.id ?? name;
|
|
1195
|
+
}
|
|
1196
|
+
function resolveFeatureName(projectDefinition, featureRef) {
|
|
1197
|
+
if (!featureRef) return "";
|
|
1198
|
+
if (featureEntityType.isId(featureRef)) return getFeaturePathByIdOrThrow(projectDefinition, featureRef);
|
|
1199
|
+
return featureRef;
|
|
1200
|
+
}
|
|
1201
|
+
var FeatureUtils = {
|
|
1202
|
+
getRootFeatures,
|
|
1203
|
+
getFeatureById,
|
|
1204
|
+
getFeatureByIdOrThrow,
|
|
1205
|
+
getFeatureChildren,
|
|
1206
|
+
getFeatureName,
|
|
1207
|
+
getFeatureNameById,
|
|
1208
|
+
getFeaturePathByIdOrThrow,
|
|
1209
|
+
validateFeatureName,
|
|
1210
|
+
ensureFeatureByNameRecursively,
|
|
1211
|
+
createPartialFeatures,
|
|
1212
|
+
getFeatureByName,
|
|
1213
|
+
getFeatureIdByNameOrThrow,
|
|
1214
|
+
getFeatureIdByNameOrDefault,
|
|
1215
|
+
resolveFeatureName
|
|
1216
|
+
};
|
|
1217
|
+
//#endregion
|
|
1218
|
+
//#region ../../packages/project-builder-lib/dist/definition/model/model-utils.js
|
|
1219
|
+
function byId(projectDefinition, id) {
|
|
1220
|
+
return projectDefinition.models.find((m) => m.id === id);
|
|
1221
|
+
}
|
|
1222
|
+
function byIdOrThrow(projectDefinition, id) {
|
|
1223
|
+
const model = byId(projectDefinition, id);
|
|
1224
|
+
if (!model) throw new Error(`Could not find model with ID ${id}`);
|
|
1225
|
+
return model;
|
|
1226
|
+
}
|
|
1227
|
+
function byName(projectDefinition, name) {
|
|
1228
|
+
return projectDefinition.models.find((m) => m.name === name);
|
|
1229
|
+
}
|
|
1230
|
+
function byNameOrThrow(projectDefinition, name) {
|
|
1231
|
+
const model = byName(projectDefinition, name);
|
|
1232
|
+
if (!model) throw new Error(`Could not find model with name ${name}`);
|
|
1233
|
+
return model;
|
|
1234
|
+
}
|
|
1235
|
+
function getScalarFieldById(model, id) {
|
|
1236
|
+
const field = model.model.fields.find((f) => f.id === id);
|
|
1237
|
+
if (!field) throw new Error(`Could not find field with ID ${id}`);
|
|
1238
|
+
return field;
|
|
1239
|
+
}
|
|
1240
|
+
function getRelationsToModel(projectDefinition, modelId) {
|
|
1241
|
+
return projectDefinition.models.flatMap((m) => m.model.relations.filter((r) => r.modelRef === modelId).map((r) => ({
|
|
1242
|
+
model: m,
|
|
1243
|
+
relation: r
|
|
1244
|
+
})));
|
|
1245
|
+
}
|
|
1246
|
+
function getModelsForFeature(projectDefinition, featureId) {
|
|
1247
|
+
return projectDefinition.models.filter((m) => m.featureRef === featureId);
|
|
1248
|
+
}
|
|
1249
|
+
function getModelIdFields(model) {
|
|
1250
|
+
return model.model.primaryKeyFieldRefs;
|
|
1251
|
+
}
|
|
1252
|
+
function hasService(model) {
|
|
1253
|
+
return model.service.create.enabled || model.service.update.enabled || model.service.delete.enabled || model.service.transformers.length > 0;
|
|
1254
|
+
}
|
|
1255
|
+
function validateModelName(name) {
|
|
1256
|
+
return PASCAL_CASE_REGEX.test(name);
|
|
1257
|
+
}
|
|
1258
|
+
/**
|
|
1259
|
+
* Returns the ID of a model by name, or the name if no model is found.
|
|
1260
|
+
* @param projectDefinition - The project definition.
|
|
1261
|
+
* @param name - The name of the model.
|
|
1262
|
+
* @returns The ID of the model, or the name if no model is found.
|
|
1263
|
+
*/
|
|
1264
|
+
function getModelIdByNameOrDefault(projectDefinition, name) {
|
|
1265
|
+
return projectDefinition.models.find((m) => m.name === name)?.id ?? name;
|
|
1266
|
+
}
|
|
1267
|
+
function getPrimaryKeyFields(model) {
|
|
1268
|
+
return model.model.primaryKeyFieldRefs.map((id) => getScalarFieldById(model, id));
|
|
1269
|
+
}
|
|
1270
|
+
var ModelUtils = {
|
|
1271
|
+
byId,
|
|
1272
|
+
byIdOrThrow,
|
|
1273
|
+
byName,
|
|
1274
|
+
byNameOrThrow,
|
|
1275
|
+
getScalarFieldById,
|
|
1276
|
+
getRelationsToModel,
|
|
1277
|
+
getModelsForFeature,
|
|
1278
|
+
getModelIdFields,
|
|
1279
|
+
hasService,
|
|
1280
|
+
validateModelName,
|
|
1281
|
+
getModelIdByNameOrDefault,
|
|
1282
|
+
getPrimaryKeyFields
|
|
1283
|
+
};
|
|
1284
|
+
//#endregion
|
|
1285
|
+
export { getSymbols as $, argumentsTag as A, int8ArrayTag as B, createPluginFieldMap as C, validationHintRegistry as D, CASE_VALIDATORS as E, dateTag as F, setTag as G, numberTag as H, float32ArrayTag as I, uint16ArrayTag as J, stringTag as K, float64ArrayTag as L, arrayTag as M, booleanTag as N, isEqual as O, dataViewTag as P, getTag as Q, int16ArrayTag as R, createFieldMapSpec as S, runInPluginContext as T, objectTag as U, mapTag as V, regexpTag as W, uint8ArrayTag as X, uint32ArrayTag as Y, uint8ClampedArrayTag as Z, createRefContextSlot as _, featureEntityType as a, expressionParserSpec as b, createEntityType as c, definitionSchemaWithSlots as d, isPlainObject as et, withPlaceholderSlots as f, withRef as g, withEnt as h, createFeaturesSchema as i, arrayBufferTag as j, isEqualsSameValueZero as k, createDefinitionSchemaParserContext as l, definitionDefaultRegistry as m, FeatureUtils as n, createPluginSpec as nt, featureNameSchema as o, withDefault as p, symbolTag as q, createFeatureSchema as r, DefinitionEntityType as s, ModelUtils as t, sortBy as tt, definitionSchema as u, createRefContextSlotMap as v, getPluginContext as w, definitionRefRegistry as x, RefExpressionParser as y, int32ArrayTag as z };
|
|
1286
|
+
|
|
1287
|
+
//# sourceMappingURL=model-utils-ZF_FVZ_o.js.map
|