@baseplate-dev/project-builder-lib 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +464 -0
- package/dist/compiler/admin-crud-action-compiler.d.ts +18 -0
- package/dist/compiler/admin-crud-action-compiler.d.ts.map +1 -0
- package/dist/compiler/admin-crud-action-compiler.js +6 -0
- package/dist/compiler/admin-crud-action-compiler.js.map +1 -0
- package/dist/compiler/admin-crud-column-compiler-spec.d.ts +6 -12
- package/dist/compiler/admin-crud-column-compiler-spec.d.ts.map +1 -1
- package/dist/compiler/admin-crud-column-compiler-spec.js +6 -29
- package/dist/compiler/admin-crud-column-compiler-spec.js.map +1 -1
- package/dist/compiler/admin-crud-input-spec.d.ts +6 -11
- package/dist/compiler/admin-crud-input-spec.d.ts.map +1 -1
- package/dist/compiler/admin-crud-input-spec.js +6 -26
- package/dist/compiler/admin-crud-input-spec.js.map +1 -1
- package/dist/compiler/app-compiler-spec.d.ts +8 -12
- package/dist/compiler/app-compiler-spec.d.ts.map +1 -1
- package/dist/compiler/app-compiler-spec.js +11 -18
- package/dist/compiler/app-compiler-spec.js.map +1 -1
- package/dist/compiler/index.d.ts +1 -1
- package/dist/compiler/index.d.ts.map +1 -1
- package/dist/compiler/index.js +1 -1
- package/dist/compiler/index.js.map +1 -1
- package/dist/compiler/model-transformer-compiler-spec.d.ts +6 -11
- package/dist/compiler/model-transformer-compiler-spec.d.ts.map +1 -1
- package/dist/compiler/model-transformer-compiler-spec.js +6 -26
- package/dist/compiler/model-transformer-compiler-spec.js.map +1 -1
- package/dist/definition/model/model-field-utils.js +4 -4
- package/dist/definition/model/model-field-utils.js.map +1 -1
- package/dist/definition/model/model-transformer-utils.d.ts +4 -6
- package/dist/definition/model/model-transformer-utils.d.ts.map +1 -1
- package/dist/definition/model/model-transformer-utils.js +8 -10
- package/dist/definition/model/model-transformer-utils.js.map +1 -1
- package/dist/definition/model/model-utils.js +3 -3
- package/dist/definition/model/model-utils.js.map +1 -1
- package/dist/definition/packages/package-utils.d.ts +11 -9
- package/dist/definition/packages/package-utils.d.ts.map +1 -1
- package/dist/definition/packages/package-utils.js +22 -11
- package/dist/definition/packages/package-utils.js.map +1 -1
- package/dist/definition/plugins/plugin-utils.d.ts.map +1 -1
- package/dist/definition/plugins/plugin-utils.js +2 -2
- package/dist/definition/plugins/plugin-utils.js.map +1 -1
- package/dist/definition/project-definition-container.d.ts +3 -3
- package/dist/definition/project-definition-container.d.ts.map +1 -1
- package/dist/definition/project-definition-container.js +2 -2
- package/dist/definition/project-definition-container.js.map +1 -1
- package/dist/definition/project-definition-container.test-utils.d.ts.map +1 -1
- package/dist/definition/project-definition-container.test-utils.js +8 -5
- package/dist/definition/project-definition-container.test-utils.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +5 -1
- package/dist/migrations/index.js.map +1 -1
- package/dist/migrations/migration-007-model-graphql.js +1 -1
- package/dist/migrations/migration-007-model-graphql.js.map +1 -1
- package/dist/migrations/migration-020-move-redis-to-infrastructure.js +1 -1
- package/dist/migrations/migration-020-move-redis-to-infrastructure.js.map +1 -1
- package/dist/migrations/migration-021-migrate-bullmq-to-plugin.js +1 -1
- package/dist/migrations/migration-021-migrate-bullmq-to-plugin.js.map +1 -1
- package/dist/migrations/migration-022-rename-packages-to-libraries.d.ts +37 -0
- package/dist/migrations/migration-022-rename-packages-to-libraries.d.ts.map +1 -0
- package/dist/migrations/migration-022-rename-packages-to-libraries.js +45 -0
- package/dist/migrations/migration-022-rename-packages-to-libraries.js.map +1 -0
- package/dist/migrations/migration-023-assign-app-ports.d.ts +34 -0
- package/dist/migrations/migration-023-assign-app-ports.d.ts.map +1 -0
- package/dist/migrations/migration-023-assign-app-ports.js +49 -0
- package/dist/migrations/migration-023-assign-app-ports.js.map +1 -0
- package/dist/parser/parser.d.ts +4 -4
- package/dist/parser/parser.d.ts.map +1 -1
- package/dist/parser/parser.js +17 -42
- package/dist/parser/parser.js.map +1 -1
- package/dist/plugins/context/index.d.ts +2 -0
- package/dist/plugins/context/index.d.ts.map +1 -0
- package/dist/plugins/context/index.js +2 -0
- package/dist/plugins/context/index.js.map +1 -0
- package/dist/plugins/context/plugin-context.d.ts +30 -0
- package/dist/plugins/context/plugin-context.d.ts.map +1 -0
- package/dist/plugins/context/plugin-context.js +38 -0
- package/dist/plugins/context/plugin-context.js.map +1 -0
- package/dist/plugins/imports/loader.d.ts +11 -20
- package/dist/plugins/imports/loader.d.ts.map +1 -1
- package/dist/plugins/imports/loader.js +28 -69
- package/dist/plugins/imports/loader.js.map +1 -1
- package/dist/plugins/imports/types.d.ts +72 -13
- package/dist/plugins/imports/types.d.ts.map +1 -1
- package/dist/plugins/imports/types.js +17 -1
- package/dist/plugins/imports/types.js.map +1 -1
- package/dist/plugins/index.d.ts +3 -1
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +3 -1
- package/dist/plugins/index.js.map +1 -1
- package/dist/plugins/migrations/run-migrations.d.ts +2 -2
- package/dist/plugins/migrations/run-migrations.d.ts.map +1 -1
- package/dist/plugins/migrations/run-migrations.js +2 -2
- package/dist/plugins/migrations/run-migrations.js.map +1 -1
- package/dist/plugins/spec/auth-config-spec.d.ts +13 -9
- package/dist/plugins/spec/auth-config-spec.d.ts.map +1 -1
- package/dist/plugins/spec/auth-config-spec.js +16 -3
- package/dist/plugins/spec/auth-config-spec.js.map +1 -1
- package/dist/plugins/spec/auth-models-spec.d.ts +16 -0
- package/dist/plugins/spec/auth-models-spec.d.ts.map +1 -0
- package/dist/plugins/spec/auth-models-spec.js +16 -0
- package/dist/plugins/spec/auth-models-spec.js.map +1 -0
- package/dist/plugins/spec/config-spec.d.ts +8 -13
- package/dist/plugins/spec/config-spec.d.ts.map +1 -1
- package/dist/plugins/spec/config-spec.js +21 -36
- package/dist/plugins/spec/config-spec.js.map +1 -1
- package/dist/plugins/spec/index.d.ts +1 -1
- package/dist/plugins/spec/index.d.ts.map +1 -1
- package/dist/plugins/spec/index.js +1 -1
- package/dist/plugins/spec/index.js.map +1 -1
- package/dist/plugins/spec/types.d.ts +66 -25
- package/dist/plugins/spec/types.d.ts.map +1 -1
- package/dist/plugins/spec/types.js +27 -10
- package/dist/plugins/spec/types.js.map +1 -1
- package/dist/plugins/spec/web-config-spec.d.ts +7 -10
- package/dist/plugins/spec/web-config-spec.d.ts.map +1 -1
- package/dist/plugins/spec/web-config-spec.js +6 -19
- package/dist/plugins/spec/web-config-spec.js.map +1 -1
- package/dist/plugins/store/index.d.ts.map +1 -0
- package/dist/plugins/store/index.js.map +1 -0
- package/dist/plugins/store/store.d.ts +23 -0
- package/dist/plugins/store/store.d.ts.map +1 -0
- package/dist/plugins/store/store.js +36 -0
- package/dist/plugins/store/store.js.map +1 -0
- package/dist/plugins/utils/create-field-map-spec.d.ts +17 -0
- package/dist/plugins/utils/create-field-map-spec.d.ts.map +1 -0
- package/dist/plugins/utils/create-field-map-spec.js +27 -0
- package/dist/plugins/utils/create-field-map-spec.js.map +1 -0
- package/dist/plugins/utils/create-plugin-field-map.d.ts +24 -0
- package/dist/plugins/utils/create-plugin-field-map.d.ts.map +1 -0
- package/dist/plugins/utils/create-plugin-field-map.js +29 -0
- package/dist/plugins/utils/create-plugin-field-map.js.map +1 -0
- package/dist/plugins/utils/index.d.ts +3 -0
- package/dist/plugins/utils/index.d.ts.map +1 -0
- package/dist/plugins/utils/index.js +3 -0
- package/dist/plugins/utils/index.js.map +1 -0
- package/dist/references/collect-refs.d.ts +5 -1
- package/dist/references/collect-refs.d.ts.map +1 -1
- package/dist/references/collect-refs.js +20 -1
- package/dist/references/collect-refs.js.map +1 -1
- package/dist/references/definition-ref-builder.d.ts.map +1 -1
- package/dist/references/expression-types.d.ts +152 -0
- package/dist/references/expression-types.d.ts.map +1 -0
- package/dist/references/expression-types.js +46 -0
- package/dist/references/expression-types.js.map +1 -0
- package/dist/references/extend-parser-context-with-refs.d.ts +13 -0
- package/dist/references/extend-parser-context-with-refs.d.ts.map +1 -1
- package/dist/references/extend-parser-context-with-refs.js +39 -1
- package/dist/references/extend-parser-context-with-refs.js.map +1 -1
- package/dist/references/extract-definition-refs.d.ts +6 -3
- package/dist/references/extract-definition-refs.d.ts.map +1 -1
- package/dist/references/extract-definition-refs.js +25 -4
- package/dist/references/extract-definition-refs.js.map +1 -1
- package/dist/references/index.d.ts +1 -0
- package/dist/references/index.d.ts.map +1 -1
- package/dist/references/index.js +1 -0
- package/dist/references/index.js.map +1 -1
- package/dist/references/markers.d.ts +23 -0
- package/dist/references/markers.d.ts.map +1 -1
- package/dist/references/markers.js +16 -0
- package/dist/references/markers.js.map +1 -1
- package/dist/references/resolve-zod-ref-payload-names.d.ts.map +1 -1
- package/dist/references/resolve-zod-ref-payload-names.js +1 -0
- package/dist/references/resolve-zod-ref-payload-names.js.map +1 -1
- package/dist/references/strip-ref-markers.d.ts +3 -3
- package/dist/references/strip-ref-markers.d.ts.map +1 -1
- package/dist/references/strip-ref-markers.js +7 -4
- package/dist/references/strip-ref-markers.js.map +1 -1
- package/dist/references/types.d.ts +5 -0
- package/dist/references/types.d.ts.map +1 -1
- package/dist/references/types.js.map +1 -1
- package/dist/schema/apps/backend/index.d.ts +2 -2
- package/dist/schema/apps/backend/index.js +1 -1
- package/dist/schema/apps/backend/index.js.map +1 -1
- package/dist/schema/apps/base.d.ts +2 -0
- package/dist/schema/apps/base.d.ts.map +1 -1
- package/dist/schema/apps/base.js +1 -0
- package/dist/schema/apps/base.js.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud-actions/admin-action-spec.d.ts +6 -13
- package/dist/schema/apps/web/admin/sections/crud-actions/admin-action-spec.d.ts.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud-actions/admin-action-spec.js +5 -26
- package/dist/schema/apps/web/admin/sections/crud-actions/admin-action-spec.js.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud-actions/admin-crud-action.d.ts.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud-actions/admin-crud-action.js +1 -3
- package/dist/schema/apps/web/admin/sections/crud-actions/admin-crud-action.js.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud-actions/types.d.ts.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud-columns/admin-column-spec.d.ts +6 -12
- package/dist/schema/apps/web/admin/sections/crud-columns/admin-column-spec.d.ts.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud-columns/admin-column-spec.js +5 -26
- package/dist/schema/apps/web/admin/sections/crud-columns/admin-column-spec.js.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud-columns/admin-crud-column.d.ts.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud-columns/admin-crud-column.js +1 -3
- package/dist/schema/apps/web/admin/sections/crud-columns/admin-crud-column.js.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.d.ts.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.js +1 -3
- package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.js.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud-form/admin-input-spec.d.ts +7 -13
- package/dist/schema/apps/web/admin/sections/crud-form/admin-input-spec.d.ts.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud-form/admin-input-spec.js +5 -26
- package/dist/schema/apps/web/admin/sections/crud-form/admin-input-spec.js.map +1 -1
- package/dist/schema/apps/web/web-app.d.ts +2 -0
- package/dist/schema/apps/web/web-app.d.ts.map +1 -1
- package/dist/schema/apps/web/web-app.js +1 -0
- package/dist/schema/apps/web/web-app.js.map +1 -1
- package/dist/schema/creator/types.d.ts +9 -4
- package/dist/schema/creator/types.d.ts.map +1 -1
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +1 -1
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/{packages → libraries}/base.d.ts +3 -3
- package/dist/schema/libraries/base.d.ts.map +1 -0
- package/dist/schema/libraries/base.js +10 -0
- package/dist/schema/libraries/base.js.map +1 -0
- package/dist/schema/libraries/index.d.ts +3 -0
- package/dist/schema/libraries/index.d.ts.map +1 -0
- package/dist/schema/libraries/index.js +3 -0
- package/dist/schema/libraries/index.js.map +1 -0
- package/dist/schema/libraries/library.d.ts +19 -0
- package/dist/schema/libraries/library.d.ts.map +1 -0
- package/dist/schema/libraries/library.js +13 -0
- package/dist/schema/libraries/library.js.map +1 -0
- package/dist/schema/libraries/types.d.ts +2 -0
- package/dist/schema/libraries/types.d.ts.map +1 -0
- package/dist/schema/libraries/types.js +3 -0
- package/dist/schema/libraries/types.js.map +1 -0
- package/dist/schema/models/authorizer/authorizer-expression-acorn-parser.d.ts +30 -0
- package/dist/schema/models/authorizer/authorizer-expression-acorn-parser.d.ts.map +1 -0
- package/dist/schema/models/authorizer/authorizer-expression-acorn-parser.js +291 -0
- package/dist/schema/models/authorizer/authorizer-expression-acorn-parser.js.map +1 -0
- package/dist/schema/models/authorizer/authorizer-expression-ast.d.ts +159 -0
- package/dist/schema/models/authorizer/authorizer-expression-ast.d.ts.map +1 -0
- package/dist/schema/models/authorizer/authorizer-expression-ast.js +31 -0
- package/dist/schema/models/authorizer/authorizer-expression-ast.js.map +1 -0
- package/dist/schema/models/authorizer/authorizer-expression-parser.d.ts +77 -0
- package/dist/schema/models/authorizer/authorizer-expression-parser.d.ts.map +1 -0
- package/dist/schema/models/authorizer/authorizer-expression-parser.js +147 -0
- package/dist/schema/models/authorizer/authorizer-expression-parser.js.map +1 -0
- package/dist/schema/models/authorizer/authorizer-expression-validator.d.ts +51 -0
- package/dist/schema/models/authorizer/authorizer-expression-validator.d.ts.map +1 -0
- package/dist/schema/models/authorizer/authorizer-expression-validator.js +125 -0
- package/dist/schema/models/authorizer/authorizer-expression-validator.js.map +1 -0
- package/dist/schema/models/authorizer/authorizer.d.ts +59 -0
- package/dist/schema/models/authorizer/authorizer.d.ts.map +1 -0
- package/dist/schema/models/authorizer/authorizer.js +56 -0
- package/dist/schema/models/authorizer/authorizer.js.map +1 -0
- package/dist/schema/models/authorizer/index.d.ts +7 -0
- package/dist/schema/models/authorizer/index.d.ts.map +1 -0
- package/dist/schema/models/authorizer/index.js +7 -0
- package/dist/schema/models/authorizer/index.js.map +1 -0
- package/dist/schema/models/authorizer/types.d.ts +6 -0
- package/dist/schema/models/authorizer/types.d.ts.map +1 -0
- package/dist/schema/models/authorizer/types.js +8 -0
- package/dist/schema/models/authorizer/types.js.map +1 -0
- package/dist/schema/models/index.d.ts +2 -860
- package/dist/schema/models/index.d.ts.map +1 -1
- package/dist/schema/models/index.js +2 -222
- package/dist/schema/models/index.js.map +1 -1
- package/dist/schema/models/models.d.ts +914 -0
- package/dist/schema/models/models.d.ts.map +1 -0
- package/dist/schema/models/models.js +225 -0
- package/dist/schema/models/models.js.map +1 -0
- package/dist/schema/models/transformers/model-transformer-spec.d.ts +5 -11
- package/dist/schema/models/transformers/model-transformer-spec.d.ts.map +1 -1
- package/dist/schema/models/transformers/model-transformer-spec.js +5 -30
- package/dist/schema/models/transformers/model-transformer-spec.js.map +1 -1
- package/dist/schema/models/transformers/transformers.d.ts.map +1 -1
- package/dist/schema/models/transformers/transformers.js +2 -4
- package/dist/schema/models/transformers/transformers.js.map +1 -1
- package/dist/schema/plugins/definition.js +1 -1
- package/dist/schema/plugins/definition.js.map +1 -1
- package/dist/schema/project-definition.d.ts +52 -34
- package/dist/schema/project-definition.d.ts.map +1 -1
- package/dist/schema/project-definition.js +2 -10
- package/dist/schema/project-definition.js.map +1 -1
- package/dist/schema/settings/monorepo.d.ts +2 -2
- package/dist/schema/settings/monorepo.js +8 -8
- package/dist/schema/settings/monorepo.js.map +1 -1
- package/dist/schema/settings/settings.d.ts +3 -3
- package/dist/schema/settings/theme.d.ts +3 -3
- package/dist/specs/index.d.ts +2 -0
- package/dist/specs/index.d.ts.map +1 -0
- package/dist/specs/index.js +2 -0
- package/dist/specs/index.js.map +1 -0
- package/dist/specs/packages/index.d.ts +3 -0
- package/dist/specs/packages/index.d.ts.map +1 -0
- package/dist/specs/packages/index.js +3 -0
- package/dist/specs/packages/index.js.map +1 -0
- package/dist/specs/packages/library-type-spec.d.ts +76 -0
- package/dist/specs/packages/library-type-spec.d.ts.map +1 -0
- package/dist/specs/packages/library-type-spec.js +31 -0
- package/dist/specs/packages/library-type-spec.js.map +1 -0
- package/dist/specs/packages/package-compiler-types.d.ts +111 -0
- package/dist/specs/packages/package-compiler-types.d.ts.map +1 -0
- package/dist/specs/packages/package-compiler-types.js +85 -0
- package/dist/specs/packages/package-compiler-types.js.map +1 -0
- package/dist/tools/model-merger/model-merger.js +1 -1
- package/dist/tools/model-merger/model-merger.js.map +1 -1
- package/dist/utils/color-conversions.js +1 -1
- package/dist/utils/color-conversions.js.map +1 -1
- package/dist/web/components/feature-combobox-field.d.ts.map +1 -1
- package/dist/web/components/feature-combobox-field.js +1 -1
- package/dist/web/components/feature-combobox-field.js.map +1 -1
- package/dist/web/components/model-combobox-field.d.ts.map +1 -1
- package/dist/web/components/model-combobox-field.js +1 -1
- package/dist/web/components/model-combobox-field.js.map +1 -1
- package/dist/web/hooks/use-project-definition.d.ts +2 -2
- package/dist/web/hooks/use-project-definition.d.ts.map +1 -1
- package/dist/web/specs/admin-crud-action-web-spec.d.ts +6 -12
- package/dist/web/specs/admin-crud-action-web-spec.d.ts.map +1 -1
- package/dist/web/specs/admin-crud-action-web-spec.js +6 -29
- package/dist/web/specs/admin-crud-action-web-spec.js.map +1 -1
- package/dist/web/specs/admin-crud-column-web-spec.d.ts +6 -12
- package/dist/web/specs/admin-crud-column-web-spec.d.ts.map +1 -1
- package/dist/web/specs/admin-crud-column-web-spec.js +6 -29
- package/dist/web/specs/admin-crud-column-web-spec.js.map +1 -1
- package/dist/web/specs/admin-crud-input-web-spec.d.ts +6 -12
- package/dist/web/specs/admin-crud-input-web-spec.d.ts.map +1 -1
- package/dist/web/specs/admin-crud-input-web-spec.js +6 -29
- package/dist/web/specs/admin-crud-input-web-spec.js.map +1 -1
- package/dist/web/specs/model-transformer-web-spec.d.ts +8 -13
- package/dist/web/specs/model-transformer-web-spec.d.ts.map +1 -1
- package/dist/web/specs/model-transformer-web-spec.js +16 -28
- package/dist/web/specs/model-transformer-web-spec.js.map +1 -1
- package/package.json +10 -9
- package/dist/compiler/admin-crud-action-spec.d.ts +0 -26
- package/dist/compiler/admin-crud-action-spec.d.ts.map +0 -1
- package/dist/compiler/admin-crud-action-spec.js +0 -29
- package/dist/compiler/admin-crud-action-spec.js.map +0 -1
- package/dist/plugins/schema/index.d.ts.map +0 -1
- package/dist/plugins/schema/index.js.map +0 -1
- package/dist/plugins/schema/store.d.ts +0 -8
- package/dist/plugins/schema/store.d.ts.map +0 -1
- package/dist/plugins/schema/store.js +0 -17
- package/dist/plugins/schema/store.js.map +0 -1
- package/dist/plugins/spec/auth-model-config-spec.d.ts +0 -14
- package/dist/plugins/spec/auth-model-config-spec.d.ts.map +0 -1
- package/dist/plugins/spec/auth-model-config-spec.js +0 -6
- package/dist/plugins/spec/auth-model-config-spec.js.map +0 -1
- package/dist/schema/packages/base.d.ts.map +0 -1
- package/dist/schema/packages/base.js +0 -10
- package/dist/schema/packages/base.js.map +0 -1
- package/dist/schema/packages/index.d.ts +0 -4
- package/dist/schema/packages/index.d.ts.map +0 -1
- package/dist/schema/packages/index.js +0 -4
- package/dist/schema/packages/index.js.map +0 -1
- package/dist/schema/packages/node-library/index.d.ts +0 -16
- package/dist/schema/packages/node-library/index.d.ts.map +0 -1
- package/dist/schema/packages/node-library/index.js +0 -10
- package/dist/schema/packages/node-library/index.js.map +0 -1
- package/dist/schema/packages/types.d.ts +0 -6
- package/dist/schema/packages/types.d.ts.map +0 -1
- package/dist/schema/packages/types.js +0 -6
- package/dist/schema/packages/types.js.map +0 -1
- /package/dist/plugins/{schema → store}/index.d.ts +0 -0
- /package/dist/plugins/{schema → store}/index.js +0 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,464 @@
|
|
|
1
|
+
# @baseplate-dev/project-builder-lib
|
|
2
|
+
|
|
3
|
+
## 0.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#761](https://github.com/halfdomelabs/baseplate/pull/761) [`b4db947`](https://github.com/halfdomelabs/baseplate/commit/b4db947f256c4b8639d7f18ffb58bb2b1646c497) Thanks [@kingston](https://github.com/kingston)! - Add configurable development ports for apps with automatic assignment and conflict validation
|
|
8
|
+
|
|
9
|
+
- [#756](https://github.com/halfdomelabs/baseplate/pull/756) [`dd40bcd`](https://github.com/halfdomelabs/baseplate/commit/dd40bcd219c79f0cd7b66c0427c77deda0664072) Thanks [@kingston](https://github.com/kingston)! - Upgrade packages to fix security vulnerabilities and update to latest versions
|
|
10
|
+
|
|
11
|
+
**Security fixes:**
|
|
12
|
+
- @modelcontextprotocol/sdk: 1.25.1 → 1.26.0 (fixes CVE-2026-25536 - cross-client data leak)
|
|
13
|
+
- fastify: 5.6.2 → 5.7.4 (security patches)
|
|
14
|
+
- diff: 8.0.2 → 8.0.3 (fixes CVE-2026-24001 - DoS vulnerability)
|
|
15
|
+
- testcontainers: 11.10.0 → 11.11.0 (fixes undici vulnerability)
|
|
16
|
+
|
|
17
|
+
**Package updates (monorepo):**
|
|
18
|
+
- @tailwindcss/vite: 4.1.13 → 4.1.18
|
|
19
|
+
- tailwindcss: 4.1.13 → 4.1.18
|
|
20
|
+
- @tanstack/react-router: 1.139.7 → 1.159.5
|
|
21
|
+
- @tanstack/router-plugin: 1.139.7 → 1.159.5
|
|
22
|
+
- @testing-library/jest-dom: 6.6.3 → 6.9.1
|
|
23
|
+
- concurrently: 9.0.1 → 9.2.1
|
|
24
|
+
- ts-morph: 26.0.0 → 27.0.2
|
|
25
|
+
|
|
26
|
+
**Package updates (generated projects):**
|
|
27
|
+
- prisma/@prisma/client/@prisma/adapter-pg: 7.2.0 → 7.4.0
|
|
28
|
+
- postmark: 4.0.2 → 4.0.5
|
|
29
|
+
- axios: 1.12.0 → 1.13.5
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [[`02740a6`](https://github.com/halfdomelabs/baseplate/commit/02740a6e230c7fbf28fc768543353e847671c51b), [`dd40bcd`](https://github.com/halfdomelabs/baseplate/commit/dd40bcd219c79f0cd7b66c0427c77deda0664072)]:
|
|
32
|
+
- @baseplate-dev/ui-components@0.5.2
|
|
33
|
+
- @baseplate-dev/sync@0.5.2
|
|
34
|
+
- @baseplate-dev/utils@0.5.2
|
|
35
|
+
|
|
36
|
+
## 0.5.1
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- [#737](https://github.com/halfdomelabs/baseplate/pull/737) [`55aa484`](https://github.com/halfdomelabs/baseplate/commit/55aa484621f2dc5b1195b6b537e7d6ad215bc499) Thanks [@kingston](https://github.com/kingston)! - Refactor plugin spec system with lazy initialization and clear setup/use phases
|
|
41
|
+
|
|
42
|
+
This refactoring overhauls the plugin spec system to introduce a two-phase architecture with lazy initialization:
|
|
43
|
+
|
|
44
|
+
**New Architecture:**
|
|
45
|
+
- **Setup phase (init)**: Plugins register their implementations during module initialization using mutable field containers
|
|
46
|
+
- **Use phase**: Consumers access registered items through a read-only interface, with lazy initialization on first access
|
|
47
|
+
- **FieldMap-based specs**: New `createFieldMapSpec` helper provides type-safe containers (maps, arrays, named arrays, scalars) with automatic source tracking
|
|
48
|
+
|
|
49
|
+
**Key changes:**
|
|
50
|
+
- Rename `PluginImplementationStore` to `PluginSpecStore` with cached `use()` instances
|
|
51
|
+
- Rename `createPlatformPluginExport` to `createPluginModule`
|
|
52
|
+
- Add required `name` field to all plugin modules for unique identification
|
|
53
|
+
- Convert all specs to use `createFieldMapSpec` with typed containers
|
|
54
|
+
- Update all plugin modules to use new registration methods (`.add()`, `.set()`, `.push()`)
|
|
55
|
+
- Introduce `ModuleContext` with `moduleKey` and `pluginKey` for better source tracking
|
|
56
|
+
- Specs now define both `init` (mutable setup interface) and `use` (read-only consumption interface)
|
|
57
|
+
|
|
58
|
+
- [#740](https://github.com/halfdomelabs/baseplate/pull/740) [`2de5d5c`](https://github.com/halfdomelabs/baseplate/commit/2de5d5c43c5354571d50707a99b4028ff8792534) Thanks [@kingston](https://github.com/kingston)! - Rename `packages` to `libraries` in project definition schema
|
|
59
|
+
- Renamed `packages` field to `libraries` in project definition
|
|
60
|
+
- Renamed `packagesFolder` to `librariesFolder` in monorepo settings with new default `libs`
|
|
61
|
+
- Updated entity IDs from `package:*` prefix to `library:*`
|
|
62
|
+
- Added migration (022) to automatically migrate existing projects
|
|
63
|
+
- Reorganized routes from `/apps/*` to `/packages/*` root with `/packages/apps/$key` and `/packages/libs/$key` subroutes
|
|
64
|
+
|
|
65
|
+
**Breaking change:** The default library folder has changed from `packages` to `libs`. If you have existing library packages, you will need to rename your `packages/` directory to `libs/` in your project.
|
|
66
|
+
|
|
67
|
+
- Updated dependencies []:
|
|
68
|
+
- @baseplate-dev/sync@0.5.1
|
|
69
|
+
- @baseplate-dev/ui-components@0.5.1
|
|
70
|
+
- @baseplate-dev/utils@0.5.1
|
|
71
|
+
|
|
72
|
+
## 0.5.0
|
|
73
|
+
|
|
74
|
+
### Patch Changes
|
|
75
|
+
|
|
76
|
+
- [#731](https://github.com/halfdomelabs/baseplate/pull/731) [`97bd14e`](https://github.com/halfdomelabs/baseplate/commit/97bd14e381206b54e55c22264d1d406e83146146) Thanks [@kingston](https://github.com/kingston)! - Add support for library packages in addition to apps
|
|
77
|
+
- Add `packages` array to ProjectDefinition schema with node-library type
|
|
78
|
+
- Add `packagesFolder` to MonorepoSettings (default: "packages")
|
|
79
|
+
- Create node-library generator with tsc build configuration
|
|
80
|
+
- Add library package compiler for code generation
|
|
81
|
+
- Update workspace patterns to include packages/\* folder
|
|
82
|
+
- Add UI for creating and managing library packages in the Apps section
|
|
83
|
+
|
|
84
|
+
- Updated dependencies [[`c7d373e`](https://github.com/halfdomelabs/baseplate/commit/c7d373ebaaeda2522515fdaeae0d37d0cd9ce7fe), [`8bfc742`](https://github.com/halfdomelabs/baseplate/commit/8bfc742b8a93393a5539babfd11b97a88ee9c39e)]:
|
|
85
|
+
- @baseplate-dev/sync@0.5.0
|
|
86
|
+
- @baseplate-dev/ui-components@0.5.0
|
|
87
|
+
- @baseplate-dev/utils@0.5.0
|
|
88
|
+
|
|
89
|
+
## 0.4.4
|
|
90
|
+
|
|
91
|
+
### Patch Changes
|
|
92
|
+
|
|
93
|
+
- Updated dependencies []:
|
|
94
|
+
- @baseplate-dev/sync@0.4.4
|
|
95
|
+
- @baseplate-dev/ui-components@0.4.4
|
|
96
|
+
- @baseplate-dev/utils@0.4.4
|
|
97
|
+
|
|
98
|
+
## 0.4.3
|
|
99
|
+
|
|
100
|
+
### Patch Changes
|
|
101
|
+
|
|
102
|
+
- Updated dependencies []:
|
|
103
|
+
- @baseplate-dev/sync@0.4.3
|
|
104
|
+
- @baseplate-dev/ui-components@0.4.3
|
|
105
|
+
- @baseplate-dev/utils@0.4.3
|
|
106
|
+
|
|
107
|
+
## 0.4.2
|
|
108
|
+
|
|
109
|
+
### Patch Changes
|
|
110
|
+
|
|
111
|
+
- [#711](https://github.com/halfdomelabs/baseplate/pull/711) [`bde61e3`](https://github.com/halfdomelabs/baseplate/commit/bde61e3e5dfc4d6d19c0d2a71491de4605cd2c20) Thanks [@kingston](https://github.com/kingston)! - Add BullMQ plugin as managed child of queue plugin
|
|
112
|
+
- Create new BullMQ plugin (`@baseplate-dev/plugin-queue/bullmq`) following the pg-boss plugin pattern
|
|
113
|
+
- Add migration (021) to migrate `enableBullQueue` from backend app config to queue/bullmq plugin config
|
|
114
|
+
- Remove old `bullMqGenerator` and `fastifyBullBoardGenerator` from fastify-generators
|
|
115
|
+
- Remove Bull Board integration (to be replaced with local alternative in the future)
|
|
116
|
+
- Remove `enableBullQueue` option from backend app schema and UI
|
|
117
|
+
|
|
118
|
+
- [#709](https://github.com/halfdomelabs/baseplate/pull/709) [`6828918`](https://github.com/halfdomelabs/baseplate/commit/6828918121bb244fdc84758d28a87370cbc70992) Thanks [@kingston](https://github.com/kingston)! - Fix plugin config migration version not being set correctly when enabling a new plugin via web config editor
|
|
119
|
+
|
|
120
|
+
- [#697](https://github.com/halfdomelabs/baseplate/pull/697) [`11fa86f`](https://github.com/halfdomelabs/baseplate/commit/11fa86fb8e7a209175f132b1b3d59cd24cf13d54) Thanks [@kingston](https://github.com/kingston)! - Ignore \*.map files from built output in package.json
|
|
121
|
+
|
|
122
|
+
- [#702](https://github.com/halfdomelabs/baseplate/pull/702) [`18c7cf1`](https://github.com/halfdomelabs/baseplate/commit/18c7cf19c0d171b734eb9bcc53320ccf02baa08a) Thanks [@kingston](https://github.com/kingston)! - Refactor reference extraction to use functional approach with `refContext` and `provides` instead of `withRefBuilder`
|
|
123
|
+
|
|
124
|
+
- Updated dependencies [[`795ee4c`](https://github.com/halfdomelabs/baseplate/commit/795ee4c18e7b393fb9247ced23a12de5e219ab15), [`11fa86f`](https://github.com/halfdomelabs/baseplate/commit/11fa86fb8e7a209175f132b1b3d59cd24cf13d54), [`4be6c7d`](https://github.com/halfdomelabs/baseplate/commit/4be6c7dc7d900c37585b93cf5bb7198de6a41f1f), [`a173074`](https://github.com/halfdomelabs/baseplate/commit/a1730748bbbc21ea22d9d91bf28e34d2c351425b)]:
|
|
125
|
+
- @baseplate-dev/sync@0.4.2
|
|
126
|
+
- @baseplate-dev/ui-components@0.4.2
|
|
127
|
+
- @baseplate-dev/utils@0.4.2
|
|
128
|
+
|
|
129
|
+
## 0.4.1
|
|
130
|
+
|
|
131
|
+
### Patch Changes
|
|
132
|
+
|
|
133
|
+
- Updated dependencies []:
|
|
134
|
+
- @baseplate-dev/sync@0.4.1
|
|
135
|
+
- @baseplate-dev/ui-components@0.4.1
|
|
136
|
+
- @baseplate-dev/utils@0.4.1
|
|
137
|
+
|
|
138
|
+
## 0.4.0
|
|
139
|
+
|
|
140
|
+
### Minor Changes
|
|
141
|
+
|
|
142
|
+
- [#684](https://github.com/halfdomelabs/baseplate/pull/684) [`9f22eef`](https://github.com/halfdomelabs/baseplate/commit/9f22eef139c8db2dde679f6424eb23e024e37d19) Thanks [@kingston](https://github.com/kingston)! - BREAKING: Remove `packageLocation` field and standardize app locations to `apps/{appName}`
|
|
143
|
+
|
|
144
|
+
The `packageLocation` field has been removed from app configurations. All apps now use a standardized location pattern: `apps/{appName}`.
|
|
145
|
+
|
|
146
|
+
**Migration required for existing projects:**
|
|
147
|
+
1. Move your app folders from `packages/` to `apps/`
|
|
148
|
+
2. Update `pnpm-workspace.yaml` to use `apps/*` instead of `packages/*`
|
|
149
|
+
|
|
150
|
+
- [#687](https://github.com/halfdomelabs/baseplate/pull/687) [`57e15c0`](https://github.com/halfdomelabs/baseplate/commit/57e15c085099508898756385661df9cf54108466) Thanks [@kingston](https://github.com/kingston)! - Add support for generating the root of a monorepo
|
|
151
|
+
|
|
152
|
+
### Patch Changes
|
|
153
|
+
|
|
154
|
+
- [#690](https://github.com/halfdomelabs/baseplate/pull/690) [`839cbdf`](https://github.com/halfdomelabs/baseplate/commit/839cbdfc6ddc059aa86d24bf6ec5d8e95cce9042) Thanks [@kingston](https://github.com/kingston)! - Move Docker Compose generation from backend to root package
|
|
155
|
+
|
|
156
|
+
Docker Compose configuration is now generated at the monorepo root instead of within individual backend packages. This provides a better developer experience with a single `docker compose up` command from the project root.
|
|
157
|
+
|
|
158
|
+
**Breaking Changes:**
|
|
159
|
+
- Docker files now generate at `docker/` (root) instead of `apps/backend/docker/`
|
|
160
|
+
- `enableRedis` removed from backend app configuration - moved to project-level infrastructure settings
|
|
161
|
+
- New Infrastructure settings page for configuring Redis (Postgres is always enabled)
|
|
162
|
+
|
|
163
|
+
- [#690](https://github.com/halfdomelabs/baseplate/pull/690) [`839cbdf`](https://github.com/halfdomelabs/baseplate/commit/839cbdfc6ddc059aa86d24bf6ec5d8e95cce9042) Thanks [@kingston](https://github.com/kingston)! - Add migration to move enableRedis from backend apps to infrastructure settings. Redis configuration is now stored at settings.infrastructure.redis.enabled instead of individual backend app settings, allowing for centralized infrastructure configuration across the monorepo.
|
|
164
|
+
|
|
165
|
+
- Updated dependencies [[`839cbdf`](https://github.com/halfdomelabs/baseplate/commit/839cbdfc6ddc059aa86d24bf6ec5d8e95cce9042), [`c3c2a00`](https://github.com/halfdomelabs/baseplate/commit/c3c2a001d57a21f76e064af55941a43bedf26f18), [`d324059`](https://github.com/halfdomelabs/baseplate/commit/d3240594e1c2bc2348eb1a7e8938f97ea5f55d22)]:
|
|
166
|
+
- @baseplate-dev/sync@0.4.0
|
|
167
|
+
- @baseplate-dev/utils@0.4.0
|
|
168
|
+
- @baseplate-dev/ui-components@0.4.0
|
|
169
|
+
|
|
170
|
+
## 0.3.8
|
|
171
|
+
|
|
172
|
+
### Patch Changes
|
|
173
|
+
|
|
174
|
+
- Updated dependencies []:
|
|
175
|
+
- @baseplate-dev/sync@0.3.8
|
|
176
|
+
- @baseplate-dev/ui-components@0.3.8
|
|
177
|
+
- @baseplate-dev/utils@0.3.8
|
|
178
|
+
|
|
179
|
+
## 0.3.7
|
|
180
|
+
|
|
181
|
+
### Patch Changes
|
|
182
|
+
|
|
183
|
+
- Updated dependencies []:
|
|
184
|
+
- @baseplate-dev/sync@0.3.7
|
|
185
|
+
- @baseplate-dev/ui-components@0.3.7
|
|
186
|
+
- @baseplate-dev/utils@0.3.7
|
|
187
|
+
|
|
188
|
+
## 0.3.6
|
|
189
|
+
|
|
190
|
+
### Patch Changes
|
|
191
|
+
|
|
192
|
+
- Updated dependencies []:
|
|
193
|
+
- @baseplate-dev/sync@0.3.6
|
|
194
|
+
- @baseplate-dev/ui-components@0.3.6
|
|
195
|
+
- @baseplate-dev/utils@0.3.6
|
|
196
|
+
|
|
197
|
+
## 0.3.5
|
|
198
|
+
|
|
199
|
+
### Patch Changes
|
|
200
|
+
|
|
201
|
+
- Updated dependencies []:
|
|
202
|
+
- @baseplate-dev/sync@0.3.5
|
|
203
|
+
- @baseplate-dev/ui-components@0.3.5
|
|
204
|
+
- @baseplate-dev/utils@0.3.5
|
|
205
|
+
|
|
206
|
+
## 0.3.4
|
|
207
|
+
|
|
208
|
+
### Patch Changes
|
|
209
|
+
|
|
210
|
+
- [#638](https://github.com/halfdomelabs/baseplate/pull/638) [`f450b7f`](https://github.com/halfdomelabs/baseplate/commit/f450b7f75cf5ad71c2bdb1c077526251aa240dd0) Thanks [@kingston](https://github.com/kingston)! - Standardize data model names across auth and storage plugins
|
|
211
|
+
|
|
212
|
+
This change removes the ability for users to configure custom model names, replacing it with standardized, fixed model names extracted to plugin-specific constants files. This simplifies templates by eliminating parameterization and makes it easier to discover what models are used by each plugin.
|
|
213
|
+
|
|
214
|
+
**Breaking Changes:**
|
|
215
|
+
- Removed `modelRefs` configuration from plugin schemas
|
|
216
|
+
- Model names are now fixed: User, UserAccount, UserRole, UserSession (auth), File (storage)
|
|
217
|
+
|
|
218
|
+
**Improvements:**
|
|
219
|
+
- Added plugin-specific constants files for better discoverability
|
|
220
|
+
- Simplified UI by removing model selection components
|
|
221
|
+
- Enhanced ModelMergerResultAlert to show "Models Up to Date" instead of null when no changes needed
|
|
222
|
+
- Maintained type safety with Record types
|
|
223
|
+
|
|
224
|
+
**Migration:**
|
|
225
|
+
- Remove any `modelRefs` configuration from plugin definitions
|
|
226
|
+
- Model names will be automatically standardized to the new constants
|
|
227
|
+
|
|
228
|
+
- [#643](https://github.com/halfdomelabs/baseplate/pull/643) [`7d9e6d0`](https://github.com/halfdomelabs/baseplate/commit/7d9e6d01e0a9920cee4c4d499beeffc1c663494a) Thanks [@kingston](https://github.com/kingston)! - Upgrade to TypeScript 5.8 with erasable syntax only mode
|
|
229
|
+
|
|
230
|
+
This upgrade modernizes the codebase with TypeScript 5.8, enables erasable syntax only mode for better performance, and updates runtime dependencies.
|
|
231
|
+
|
|
232
|
+
**Key Changes:**
|
|
233
|
+
- Upgraded TypeScript to version 5.8
|
|
234
|
+
- Enabled `erasableSyntaxOnly` compiler option for improved build performance
|
|
235
|
+
- Updated Node.js requirement to 22.18
|
|
236
|
+
- Updated PNPM requirement to 10.15
|
|
237
|
+
- Fixed parameter property syntax to be compatible with erasable syntax only mode
|
|
238
|
+
|
|
239
|
+
- Updated dependencies [[`67dba69`](https://github.com/halfdomelabs/baseplate/commit/67dba697439e6bc76b81522c133d920af4dbdbb1), [`7d9e6d0`](https://github.com/halfdomelabs/baseplate/commit/7d9e6d01e0a9920cee4c4d499beeffc1c663494a)]:
|
|
240
|
+
- @baseplate-dev/sync@0.3.4
|
|
241
|
+
- @baseplate-dev/utils@0.3.4
|
|
242
|
+
- @baseplate-dev/ui-components@0.3.4
|
|
243
|
+
|
|
244
|
+
## 0.3.3
|
|
245
|
+
|
|
246
|
+
### Patch Changes
|
|
247
|
+
|
|
248
|
+
- Updated dependencies []:
|
|
249
|
+
- @baseplate-dev/sync@0.3.3
|
|
250
|
+
- @baseplate-dev/ui-components@0.3.3
|
|
251
|
+
- @baseplate-dev/utils@0.3.3
|
|
252
|
+
|
|
253
|
+
## 0.3.2
|
|
254
|
+
|
|
255
|
+
### Patch Changes
|
|
256
|
+
|
|
257
|
+
- [#633](https://github.com/halfdomelabs/baseplate/pull/633) [`cca138a`](https://github.com/halfdomelabs/baseplate/commit/cca138a84abbb901ab628bf571ae29211a180dbb) Thanks [@kingston](https://github.com/kingston)! - Add admin CRUD action specification system
|
|
258
|
+
|
|
259
|
+
Adds a new plugin specification system that allows plugins to register custom table actions for admin CRUD sections. This provides the foundation for plugins to contribute actions like "Manage Roles" to generated admin tables.
|
|
260
|
+
- Created `AdminCrudActionSpec` plugin specification
|
|
261
|
+
- Added base action types and schemas for registration
|
|
262
|
+
- Implemented built-in edit and delete action types
|
|
263
|
+
- Extended admin CRUD section schema to include optional actions array
|
|
264
|
+
- Provides type-safe action registration with authorization and model targeting support
|
|
265
|
+
|
|
266
|
+
- Updated dependencies []:
|
|
267
|
+
- @baseplate-dev/sync@0.3.2
|
|
268
|
+
- @baseplate-dev/ui-components@0.3.2
|
|
269
|
+
- @baseplate-dev/utils@0.3.2
|
|
270
|
+
|
|
271
|
+
## 0.3.1
|
|
272
|
+
|
|
273
|
+
### Patch Changes
|
|
274
|
+
|
|
275
|
+
- Updated dependencies []:
|
|
276
|
+
- @baseplate-dev/sync@0.3.1
|
|
277
|
+
- @baseplate-dev/ui-components@0.3.1
|
|
278
|
+
- @baseplate-dev/utils@0.3.1
|
|
279
|
+
|
|
280
|
+
## 0.3.0
|
|
281
|
+
|
|
282
|
+
### Minor Changes
|
|
283
|
+
|
|
284
|
+
- [#622](https://github.com/halfdomelabs/baseplate/pull/622) [`85e6413`](https://github.com/halfdomelabs/baseplate/commit/85e6413f8e3ad0043daca3bb9fa3ca5a27843a65) Thanks [@kingston](https://github.com/kingston)! - This major refactor splits the monolithic auth plugin into a managed plugin architecture:
|
|
285
|
+
|
|
286
|
+
## Plugin Structure Changes
|
|
287
|
+
- **Base auth plugin** (`auth`): Manages common functionality, roles, and provider selection
|
|
288
|
+
- **Implementation plugins** (managed):
|
|
289
|
+
- `local-auth`: Email/password authentication (renamed from original `auth` plugin)
|
|
290
|
+
- `auth0`: Auth0 integration
|
|
291
|
+
- `placeholder-auth`: Development/testing placeholder
|
|
292
|
+
|
|
293
|
+
## Key Changes
|
|
294
|
+
|
|
295
|
+
### Plugin Metadata System
|
|
296
|
+
- **BREAKING**: Replace `manifest.json` with `plugin.json` for all plugins
|
|
297
|
+
- **BREAKING**: Rename `id` to `key` in plugin metadata for URL consistency
|
|
298
|
+
- Add `managedBy` field to plugin metadata for managed plugin relationships
|
|
299
|
+
- Implement package.json-based plugin discovery configuration
|
|
300
|
+
|
|
301
|
+
### Managed Plugin Pattern
|
|
302
|
+
- Implementation plugins are hidden from main plugin list
|
|
303
|
+
- Base plugin automatically manages lifecycle of implementation plugins
|
|
304
|
+
- UI shows "Managed Plugins" section grouped by manager
|
|
305
|
+
- Configure buttons on managed plugins redirect to manager's config page
|
|
306
|
+
|
|
307
|
+
### Configuration Schema
|
|
308
|
+
- Base auth plugin config includes `implementationPluginKey` to specify active provider
|
|
309
|
+
- Roles configuration moved to base plugin (shared across implementations)
|
|
310
|
+
- Provider-specific configs remain in implementation plugins
|
|
311
|
+
|
|
312
|
+
### UI Improvements
|
|
313
|
+
- Add tabbed navigation (`AuthConfigTabs`) across all auth plugin interfaces
|
|
314
|
+
- Dynamic provider selection within base plugin configuration
|
|
315
|
+
- Consistent UX patterns between all auth implementation plugins
|
|
316
|
+
|
|
317
|
+
### Migration Support
|
|
318
|
+
- Automatic migration of existing `plugin-auth` configs to new structure
|
|
319
|
+
- Rename existing `plugin-auth_auth` to `plugin-auth_local-auth`
|
|
320
|
+
- Auto-enable base auth plugin when implementation plugins are detected
|
|
321
|
+
- Preserve all existing configuration without code changes needed
|
|
322
|
+
|
|
323
|
+
### Patch Changes
|
|
324
|
+
|
|
325
|
+
- Updated dependencies [[`aaf8634`](https://github.com/halfdomelabs/baseplate/commit/aaf8634abcf76d938072c7afc43e6e99a2519b13), [`687a47e`](https://github.com/halfdomelabs/baseplate/commit/687a47e5e39abc5138ba3fc2d0db9cfee6e4dbfe)]:
|
|
326
|
+
- @baseplate-dev/ui-components@0.3.0
|
|
327
|
+
- @baseplate-dev/sync@0.3.0
|
|
328
|
+
- @baseplate-dev/utils@0.3.0
|
|
329
|
+
|
|
330
|
+
## 0.2.6
|
|
331
|
+
|
|
332
|
+
### Patch Changes
|
|
333
|
+
|
|
334
|
+
- [#615](https://github.com/halfdomelabs/baseplate/pull/615) [`e639251`](https://github.com/halfdomelabs/baseplate/commit/e639251f25094bb17f126e8604e505b1037b5640) Thanks [@kingston](https://github.com/kingston)! - Fix model merger not being able to create new models from scratch
|
|
335
|
+
|
|
336
|
+
- [#617](https://github.com/halfdomelabs/baseplate/pull/617) [`cc6cd6c`](https://github.com/halfdomelabs/baseplate/commit/cc6cd6cce6bd0d97a68d7bd5b46408e0877d990b) Thanks [@kingston](https://github.com/kingston)! - Add schema migration for web admin configuration support. This migration converts existing admin apps to web apps with adminConfig enabled, and adds the adminConfig field to existing web apps. This enables backward compatibility when upgrading projects to the unified web admin interface.
|
|
337
|
+
|
|
338
|
+
- Updated dependencies [[`541db59`](https://github.com/halfdomelabs/baseplate/commit/541db59ccf868b6a6fcc8fa756eab0dfa560d193)]:
|
|
339
|
+
- @baseplate-dev/ui-components@0.2.6
|
|
340
|
+
- @baseplate-dev/sync@0.2.6
|
|
341
|
+
- @baseplate-dev/utils@0.2.6
|
|
342
|
+
|
|
343
|
+
## 0.2.5
|
|
344
|
+
|
|
345
|
+
### Patch Changes
|
|
346
|
+
|
|
347
|
+
- [#608](https://github.com/halfdomelabs/baseplate/pull/608) [`01c47c7`](https://github.com/halfdomelabs/baseplate/commit/01c47c77f039a463de03271de6461cd969d5a8e8) Thanks [@kingston](https://github.com/kingston)! - Refactor plugin migration system to separate config and project definition changes
|
|
348
|
+
|
|
349
|
+
Previously, plugin migrations had mixed responsibilities - both transforming plugin config and mutating the project definition in the same unclear contract. This made the system hard to test and reason about.
|
|
350
|
+
|
|
351
|
+
**New Migration Interface:**
|
|
352
|
+
- `PluginMigrationResult` with explicit `updatedConfig` and `updateProjectDefinition` properties
|
|
353
|
+
- Clear separation between config transformations and project definition updates
|
|
354
|
+
- Better type safety and testability
|
|
355
|
+
|
|
356
|
+
**Schema Version Bug Fix:**
|
|
357
|
+
- Fixed bug where enabling plugins via UI didn't set `configSchemaVersion`
|
|
358
|
+
- Plugin card now uses `PluginUtils.setPluginConfig` to automatically set correct schema version
|
|
359
|
+
- Prevents unnecessary migrations when enabling new plugins
|
|
360
|
+
|
|
361
|
+
**Migration Updates:**
|
|
362
|
+
- All existing migrations updated to use new interface
|
|
363
|
+
- Auth plugin migration: simple config-only transformation
|
|
364
|
+
- Storage plugin migrations: migration #1 (config-only), migration #2 (config + project updates)
|
|
365
|
+
|
|
366
|
+
- Updated dependencies [[`e0d690c`](https://github.com/halfdomelabs/baseplate/commit/e0d690c1e139f93a8ff60c9e0c90bc72cdf705a4)]:
|
|
367
|
+
- @baseplate-dev/sync@0.2.5
|
|
368
|
+
- @baseplate-dev/ui-components@0.2.5
|
|
369
|
+
- @baseplate-dev/utils@0.2.5
|
|
370
|
+
|
|
371
|
+
## 0.2.4
|
|
372
|
+
|
|
373
|
+
### Patch Changes
|
|
374
|
+
|
|
375
|
+
- Updated dependencies [[`ffe791f`](https://github.com/halfdomelabs/baseplate/commit/ffe791f6ab44e82c8481f3a18df9262dec71cff6)]:
|
|
376
|
+
- @baseplate-dev/utils@0.2.4
|
|
377
|
+
- @baseplate-dev/sync@0.2.4
|
|
378
|
+
- @baseplate-dev/ui-components@0.2.4
|
|
379
|
+
|
|
380
|
+
## 0.2.3
|
|
381
|
+
|
|
382
|
+
### Patch Changes
|
|
383
|
+
|
|
384
|
+
- Updated dependencies [[`a506e88`](https://github.com/halfdomelabs/baseplate/commit/a506e88893bf395916ef3fbf6dd9dd7c0ff17acb), [`903e2d8`](https://github.com/halfdomelabs/baseplate/commit/903e2d898c47e6559f55f023eb89a0b524098f3a), [`a506e88`](https://github.com/halfdomelabs/baseplate/commit/a506e88893bf395916ef3fbf6dd9dd7c0ff17acb), [`059edf7`](https://github.com/halfdomelabs/baseplate/commit/059edf771755f1ff846494f238d777a9d1f7f5d7), [`059edf7`](https://github.com/halfdomelabs/baseplate/commit/059edf771755f1ff846494f238d777a9d1f7f5d7), [`de9e1b4`](https://github.com/halfdomelabs/baseplate/commit/de9e1b4f3a8a7dcf6b962781a0aa589eb970c7a8)]:
|
|
385
|
+
- @baseplate-dev/sync@0.2.3
|
|
386
|
+
- @baseplate-dev/ui-components@0.2.3
|
|
387
|
+
- @baseplate-dev/utils@0.2.3
|
|
388
|
+
|
|
389
|
+
## 0.2.2
|
|
390
|
+
|
|
391
|
+
### Patch Changes
|
|
392
|
+
|
|
393
|
+
- [#587](https://github.com/halfdomelabs/baseplate/pull/587) [`b6bc11f`](https://github.com/halfdomelabs/baseplate/commit/b6bc11fdf199c8de40832eb88ea6f6cfc83aa5d7) Thanks [@kingston](https://github.com/kingston)! - Migrate reference system from ZodRef to transform-based architecture
|
|
394
|
+
- Complete migration from legacy ZodRef system to new transform-based reference processing using marker classes and schema transformations
|
|
395
|
+
- Implement `deserializeSchemaWithTransformedReferences` for integration testing with real-world usage patterns
|
|
396
|
+
- Replace `fixRefDeletions` implementation to use new transform system with `parseSchemaWithTransformedReferences`
|
|
397
|
+
- Add comprehensive test coverage using integration tests with `deserializeSchemaWithTransformedReferences` instead of manual marker creation
|
|
398
|
+
- Support for complex reference scenarios including nested references, parent-child relationships, and custom name resolvers
|
|
399
|
+
- Rename `SET_NULL` to `SET_UNDEFINED` and add array context detection to prevent JSON serialization issues
|
|
400
|
+
- Add omit pattern support to `useEnumForm` hook for consistency with `useModelForm`
|
|
401
|
+
|
|
402
|
+
- Updated dependencies [[`f8c9284`](https://github.com/halfdomelabs/baseplate/commit/f8c9284752c12c6aab70481bf98e6fa402e61075), [`f8c9284`](https://github.com/halfdomelabs/baseplate/commit/f8c9284752c12c6aab70481bf98e6fa402e61075)]:
|
|
403
|
+
- @baseplate-dev/utils@0.2.2
|
|
404
|
+
- @baseplate-dev/sync@0.2.2
|
|
405
|
+
- @baseplate-dev/ui-components@0.2.2
|
|
406
|
+
|
|
407
|
+
## 0.2.1
|
|
408
|
+
|
|
409
|
+
### Patch Changes
|
|
410
|
+
|
|
411
|
+
- Updated dependencies [[`4d7677e`](https://github.com/halfdomelabs/baseplate/commit/4d7677e8ef2da8ed045ee7fe409519f0f124b34c)]:
|
|
412
|
+
- @baseplate-dev/ui-components@0.2.1
|
|
413
|
+
- @baseplate-dev/sync@0.2.1
|
|
414
|
+
- @baseplate-dev/utils@0.2.1
|
|
415
|
+
|
|
416
|
+
## 0.2.0
|
|
417
|
+
|
|
418
|
+
### Patch Changes
|
|
419
|
+
|
|
420
|
+
- [#568](https://github.com/halfdomelabs/baseplate/pull/568) [`06b4faf`](https://github.com/halfdomelabs/baseplate/commit/06b4fafaf3d2ed848d959a9911b9bfa26702d4a3) Thanks [@kingston](https://github.com/kingston)! - Enable the import-x/consistent-type-specifier-style rule to clean up type imports
|
|
421
|
+
|
|
422
|
+
- [#576](https://github.com/halfdomelabs/baseplate/pull/576) [`fd63554`](https://github.com/halfdomelabs/baseplate/commit/fd635544eb6df0385501f61f3e51bce554633458) Thanks [@kingston](https://github.com/kingston)! - Rename entity UID to Key to make it clearer what is happening
|
|
423
|
+
|
|
424
|
+
- Updated dependencies [[`06b4faf`](https://github.com/halfdomelabs/baseplate/commit/06b4fafaf3d2ed848d959a9911b9bfa26702d4a3), [`3198895`](https://github.com/halfdomelabs/baseplate/commit/3198895bc45f6ff031e3d1e2c8554ddc3a30261d), [`f5d7a6f`](https://github.com/halfdomelabs/baseplate/commit/f5d7a6f781b1799bb8ad197973e5cec04f869264), [`fd63554`](https://github.com/halfdomelabs/baseplate/commit/fd635544eb6df0385501f61f3e51bce554633458), [`a94eed9`](https://github.com/halfdomelabs/baseplate/commit/a94eed9c12236c5fb772d998b9c34ca876c10c13), [`56a3a89`](https://github.com/halfdomelabs/baseplate/commit/56a3a8944b9a557cca0484d78851fca10122e5f9), [`a94eed9`](https://github.com/halfdomelabs/baseplate/commit/a94eed9c12236c5fb772d998b9c34ca876c10c13), [`56a3a89`](https://github.com/halfdomelabs/baseplate/commit/56a3a8944b9a557cca0484d78851fca10122e5f9)]:
|
|
425
|
+
- @baseplate-dev/ui-components@0.2.0
|
|
426
|
+
- @baseplate-dev/utils@0.2.0
|
|
427
|
+
- @baseplate-dev/sync@0.2.0
|
|
428
|
+
|
|
429
|
+
## 0.1.3
|
|
430
|
+
|
|
431
|
+
### Patch Changes
|
|
432
|
+
|
|
433
|
+
- [#564](https://github.com/halfdomelabs/baseplate/pull/564) [`8631cfe`](https://github.com/halfdomelabs/baseplate/commit/8631cfec32f1e5286d6d1ab0eb0e858461672545) Thanks [@kingston](https://github.com/kingston)! - Add support for model merging the GraphQL object type
|
|
434
|
+
|
|
435
|
+
- [#562](https://github.com/halfdomelabs/baseplate/pull/562) [`30fdf49`](https://github.com/halfdomelabs/baseplate/commit/30fdf4988de244c30d13c93b7761587d4c1413ad) Thanks [@kingston](https://github.com/kingston)! - Switch to Typescript project references for building/watching project
|
|
436
|
+
|
|
437
|
+
- Updated dependencies [[`30fdf49`](https://github.com/halfdomelabs/baseplate/commit/30fdf4988de244c30d13c93b7761587d4c1413ad)]:
|
|
438
|
+
- @baseplate-dev/ui-components@0.1.3
|
|
439
|
+
- @baseplate-dev/utils@0.1.3
|
|
440
|
+
- @baseplate-dev/sync@0.1.3
|
|
441
|
+
|
|
442
|
+
## 0.1.2
|
|
443
|
+
|
|
444
|
+
### Patch Changes
|
|
445
|
+
|
|
446
|
+
- [#560](https://github.com/halfdomelabs/baseplate/pull/560) [`7e38ae9`](https://github.com/halfdomelabs/baseplate/commit/7e38ae9102c7c8ea958d2dab94e76be848d1c1a8) Thanks [@kingston](https://github.com/kingston)! - Add README files to all packages and plugins explaining their purpose within the Baseplate monorepo.
|
|
447
|
+
|
|
448
|
+
- Updated dependencies [[`7e38ae9`](https://github.com/halfdomelabs/baseplate/commit/7e38ae9102c7c8ea958d2dab94e76be848d1c1a8)]:
|
|
449
|
+
- @baseplate-dev/ui-components@0.1.2
|
|
450
|
+
- @baseplate-dev/sync@0.1.2
|
|
451
|
+
- @baseplate-dev/utils@0.1.2
|
|
452
|
+
|
|
453
|
+
## 0.1.1
|
|
454
|
+
|
|
455
|
+
### Patch Changes
|
|
456
|
+
|
|
457
|
+
- [#559](https://github.com/halfdomelabs/baseplate/pull/559) [`17dd71e`](https://github.com/halfdomelabs/baseplate/commit/17dd71e3b9f83e3359eb007f8eab1c4792bdbb8b) Thanks [@kingston](https://github.com/kingston)! - Rename workspace to @baseplate-dev/\* and reset versions to 0.1.0
|
|
458
|
+
|
|
459
|
+
- [#557](https://github.com/halfdomelabs/baseplate/pull/557) [`9caaa0a`](https://github.com/halfdomelabs/baseplate/commit/9caaa0aed05677a75fed79601dcfd24ec85ab5ad) Thanks [@kingston](https://github.com/kingston)! - Update LICENSE to modified MPL-2.0 license
|
|
460
|
+
|
|
461
|
+
- Updated dependencies [[`17dd71e`](https://github.com/halfdomelabs/baseplate/commit/17dd71e3b9f83e3359eb007f8eab1c4792bdbb8b), [`9caaa0a`](https://github.com/halfdomelabs/baseplate/commit/9caaa0aed05677a75fed79601dcfd24ec85ab5ad)]:
|
|
462
|
+
- @baseplate-dev/ui-components@0.1.1
|
|
463
|
+
- @baseplate-dev/utils@0.1.1
|
|
464
|
+
- @baseplate-dev/sync@0.1.1
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { GeneratorBundle } from '@baseplate-dev/sync';
|
|
2
|
+
import type { ProjectDefinitionContainer } from '#src/definition/project-definition-container.js';
|
|
3
|
+
import type { AdminCrudActionInput, AdminCrudSectionConfig, ModelConfig } from '#src/schema/index.js';
|
|
4
|
+
export interface AdminCrudActionCompiler<T extends AdminCrudActionInput = AdminCrudActionInput> {
|
|
5
|
+
name: string;
|
|
6
|
+
compileAction: (definition: T, options: {
|
|
7
|
+
order: number;
|
|
8
|
+
definitionContainer: ProjectDefinitionContainer;
|
|
9
|
+
model: ModelConfig;
|
|
10
|
+
modelCrudSection: AdminCrudSectionConfig;
|
|
11
|
+
}) => GeneratorBundle;
|
|
12
|
+
}
|
|
13
|
+
export declare const adminCrudActionCompilerSpec: import("../index.js").PluginSpec<{
|
|
14
|
+
actions: import("@baseplate-dev/utils").NamedArrayToMapFieldContainer<AdminCrudActionCompiler<any>>;
|
|
15
|
+
}, import("@baseplate-dev/utils").FieldMapValues<{
|
|
16
|
+
actions: import("@baseplate-dev/utils").NamedArrayToMapFieldContainer<AdminCrudActionCompiler<any>>;
|
|
17
|
+
}>>;
|
|
18
|
+
//# sourceMappingURL=admin-crud-action-compiler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-crud-action-compiler.d.ts","sourceRoot":"","sources":["../../src/compiler/admin-crud-action-compiler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAClG,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,WAAW,EACZ,MAAM,sBAAsB,CAAC;AAI9B,MAAM,WAAW,uBAAuB,CACtC,CAAC,SAAS,oBAAoB,GAAG,oBAAoB;IAErD,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,CACb,UAAU,EAAE,CAAC,EACb,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,mBAAmB,EAAE,0BAA0B,CAAC;QAChD,KAAK,EAAE,WAAW,CAAC;QACnB,gBAAgB,EAAE,sBAAsB,CAAC;KAC1C,KACE,eAAe,CAAC;CACtB;AAED,eAAO,MAAM,2BAA2B;;;;GAMvC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createFieldMapSpec } from '#src/plugins/utils/create-field-map-spec.js';
|
|
2
|
+
export const adminCrudActionCompilerSpec = createFieldMapSpec('core/admin-crud-action-compiler', (t) => ({
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- plugins register varying action types at runtime
|
|
4
|
+
actions: t.namedArrayToMap(),
|
|
5
|
+
}));
|
|
6
|
+
//# sourceMappingURL=admin-crud-action-compiler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-crud-action-compiler.js","sourceRoot":"","sources":["../../src/compiler/admin-crud-action-compiler.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAiBjF,MAAM,CAAC,MAAM,2BAA2B,GAAG,kBAAkB,CAC3D,iCAAiC,EACjC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACN,kHAAkH;IAClH,OAAO,EAAE,CAAC,CAAC,eAAe,EAAgC;CAC3D,CAAC,CACH,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { GeneratorBundle } from '@baseplate-dev/sync';
|
|
2
2
|
import type { ProjectDefinitionContainer } from '#src/definition/project-definition-container.js';
|
|
3
|
-
import type { PluginSpecImplementation } from '#src/plugins/spec/types.js';
|
|
4
3
|
import type { AdminCrudColumnDefinition, AdminCrudSectionConfig, ModelConfig } from '#src/schema/index.js';
|
|
5
4
|
export interface AdminCrudColumnCompiler<T extends AdminCrudColumnDefinition = AdminCrudColumnDefinition> {
|
|
6
5
|
name: string;
|
|
@@ -13,16 +12,11 @@ export interface AdminCrudColumnCompiler<T extends AdminCrudColumnDefinition = A
|
|
|
13
12
|
}
|
|
14
13
|
export declare function createAdminCrudColumnCompiler<T extends AdminCrudColumnDefinition = AdminCrudColumnDefinition>(input: AdminCrudColumnCompiler<T>): AdminCrudColumnCompiler<T>;
|
|
15
14
|
/**
|
|
16
|
-
* Spec for registering column compilers
|
|
15
|
+
* Spec for registering admin CRUD column compilers
|
|
17
16
|
*/
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
export declare function createAdminCrudColumnCompilerImplementation(): AdminCrudColumnCompilerSpec;
|
|
24
|
-
/**
|
|
25
|
-
* Spec for adding column compilers
|
|
26
|
-
*/
|
|
27
|
-
export declare const adminCrudColumnCompilerSpec: import("#src/plugins/spec/types.js").PluginSpecWithInitializer<AdminCrudColumnCompilerSpec>;
|
|
17
|
+
export declare const adminCrudColumnCompilerSpec: import("../index.js").PluginSpec<{
|
|
18
|
+
columns: import("@baseplate-dev/utils").NamedArrayToMapFieldContainer<AdminCrudColumnCompiler<any>>;
|
|
19
|
+
}, import("@baseplate-dev/utils").FieldMapValues<{
|
|
20
|
+
columns: import("@baseplate-dev/utils").NamedArrayToMapFieldContainer<AdminCrudColumnCompiler<any>>;
|
|
21
|
+
}>>;
|
|
28
22
|
//# sourceMappingURL=admin-crud-column-compiler-spec.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-crud-column-compiler-spec.d.ts","sourceRoot":"","sources":["../../src/compiler/admin-crud-column-compiler-spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAClG,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"admin-crud-column-compiler-spec.d.ts","sourceRoot":"","sources":["../../src/compiler/admin-crud-column-compiler-spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAClG,OAAO,KAAK,EACV,yBAAyB,EACzB,sBAAsB,EACtB,WAAW,EACZ,MAAM,sBAAsB,CAAC;AAI9B,MAAM,WAAW,uBAAuB,CACtC,CAAC,SAAS,yBAAyB,GAAG,yBAAyB;IAE/D,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,CACb,UAAU,EAAE,CAAC,EACb,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,mBAAmB,EAAE,0BAA0B,CAAC;QAChD,KAAK,EAAE,WAAW,CAAC;QACnB,gBAAgB,EAAE,sBAAsB,CAAC;KAC1C,KACE,eAAe,CAAC;CACtB;AAED,wBAAgB,6BAA6B,CAC3C,CAAC,SAAS,yBAAyB,GAAG,yBAAyB,EAC/D,KAAK,EAAE,uBAAuB,CAAC,CAAC,CAAC,GAAG,uBAAuB,CAAC,CAAC,CAAC,CAE/D;AAED;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;GAMvC,CAAC"}
|
|
@@ -1,35 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createFieldMapSpec } from '#src/plugins/utils/create-field-map-spec.js';
|
|
2
2
|
export function createAdminCrudColumnCompiler(input) {
|
|
3
3
|
return input;
|
|
4
4
|
}
|
|
5
|
-
export function createAdminCrudColumnCompilerImplementation() {
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7
|
-
const columns = new Map();
|
|
8
|
-
return {
|
|
9
|
-
registerCompiler(column) {
|
|
10
|
-
if (columns.has(column.name)) {
|
|
11
|
-
throw new Error(`Admin CRUD column with name ${column.name} is already registered`);
|
|
12
|
-
}
|
|
13
|
-
columns.set(column.name, column);
|
|
14
|
-
},
|
|
15
|
-
getCompiler(type, builtInColumns = []) {
|
|
16
|
-
const builtInColumn = builtInColumns.find((b) => b.name === type);
|
|
17
|
-
if (builtInColumn) {
|
|
18
|
-
return builtInColumn;
|
|
19
|
-
}
|
|
20
|
-
const column = columns.get(type);
|
|
21
|
-
if (!column) {
|
|
22
|
-
throw new Error(`Unable to find column with type ${type}`);
|
|
23
|
-
}
|
|
24
|
-
return column;
|
|
25
|
-
},
|
|
26
|
-
getColumnCompilers() {
|
|
27
|
-
return columns;
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
5
|
/**
|
|
32
|
-
* Spec for
|
|
6
|
+
* Spec for registering admin CRUD column compilers
|
|
33
7
|
*/
|
|
34
|
-
export const adminCrudColumnCompilerSpec =
|
|
8
|
+
export const adminCrudColumnCompilerSpec = createFieldMapSpec('core/admin-crud-column-compiler', (t) => ({
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- plugins register varying column types at runtime
|
|
10
|
+
columns: t.namedArrayToMap(),
|
|
11
|
+
}));
|
|
35
12
|
//# sourceMappingURL=admin-crud-column-compiler-spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-crud-column-compiler-spec.js","sourceRoot":"","sources":["../../src/compiler/admin-crud-column-compiler-spec.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"admin-crud-column-compiler-spec.js","sourceRoot":"","sources":["../../src/compiler/admin-crud-column-compiler-spec.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAiBjF,MAAM,UAAU,6BAA6B,CAE3C,KAAiC;IACjC,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,kBAAkB,CAC3D,iCAAiC,EACjC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACN,kHAAkH;IAClH,OAAO,EAAE,CAAC,CAAC,eAAe,EAAgC;CAC3D,CAAC,CACH,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { GeneratorBundle } from '@baseplate-dev/sync';
|
|
2
2
|
import type { ProjectDefinitionContainer } from '#src/definition/project-definition-container.js';
|
|
3
|
-
import type { PluginSpecImplementation } from '#src/plugins/spec/types.js';
|
|
4
3
|
import type { AdminCrudInputInput, ModelConfig } from '#src/schema/index.js';
|
|
5
4
|
export interface AdminCrudInputCompiler<T extends AdminCrudInputInput = AdminCrudInputInput> {
|
|
6
5
|
name: string;
|
|
@@ -12,15 +11,11 @@ export interface AdminCrudInputCompiler<T extends AdminCrudInputInput = AdminCru
|
|
|
12
11
|
}) => GeneratorBundle;
|
|
13
12
|
}
|
|
14
13
|
/**
|
|
15
|
-
* Spec for registering input compilers
|
|
14
|
+
* Spec for registering admin CRUD input compilers
|
|
16
15
|
*/
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Spec for adding config component for plugin
|
|
24
|
-
*/
|
|
25
|
-
export declare const adminCrudInputCompilerSpec: import("#src/plugins/spec/types.js").PluginSpecWithInitializer<AdminCrudInputCompilerSpec>;
|
|
16
|
+
export declare const adminCrudInputCompilerSpec: import("../index.js").PluginSpec<{
|
|
17
|
+
inputs: import("@baseplate-dev/utils").NamedArrayToMapFieldContainer<AdminCrudInputCompiler<any>>;
|
|
18
|
+
}, import("@baseplate-dev/utils").FieldMapValues<{
|
|
19
|
+
inputs: import("@baseplate-dev/utils").NamedArrayToMapFieldContainer<AdminCrudInputCompiler<any>>;
|
|
20
|
+
}>>;
|
|
26
21
|
//# sourceMappingURL=admin-crud-input-spec.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-crud-input-spec.d.ts","sourceRoot":"","sources":["../../src/compiler/admin-crud-input-spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAClG,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"admin-crud-input-spec.d.ts","sourceRoot":"","sources":["../../src/compiler/admin-crud-input-spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAClG,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAI7E,MAAM,WAAW,sBAAsB,CACrC,CAAC,SAAS,mBAAmB,GAAG,mBAAmB;IAEnD,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,CACZ,UAAU,EAAE,CAAC,EACb,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,mBAAmB,EAAE,0BAA0B,CAAC;QAChD,KAAK,EAAE,WAAW,CAAC;QACnB,aAAa,EAAE,MAAM,CAAC;KACvB,KACE,eAAe,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;GAMtC,CAAC"}
|