@baseplate-dev/project-builder-lib 0.6.3 → 0.6.5
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 +54 -0
- package/dist/compiler/admin-crud-action-compiler.js +1 -1
- package/dist/compiler/admin-crud-action-compiler.js.map +1 -1
- package/dist/compiler/admin-crud-column-compiler-spec.js +1 -1
- package/dist/compiler/admin-crud-column-compiler-spec.js.map +1 -1
- package/dist/compiler/admin-crud-input-spec.js +1 -1
- package/dist/compiler/admin-crud-input-spec.js.map +1 -1
- package/dist/compiler/app-compiler-spec.js +1 -1
- package/dist/compiler/app-compiler-spec.js.map +1 -1
- package/dist/compiler/index.d.ts +1 -0
- package/dist/compiler/index.d.ts.map +1 -1
- package/dist/compiler/index.js +1 -0
- package/dist/compiler/index.js.map +1 -1
- package/dist/compiler/model-transformer-compiler-spec.js +1 -1
- package/dist/compiler/model-transformer-compiler-spec.js.map +1 -1
- package/dist/compiler/root-compiler-spec.d.ts +25 -0
- package/dist/compiler/root-compiler-spec.d.ts.map +1 -0
- package/dist/compiler/root-compiler-spec.js +23 -0
- package/dist/compiler/root-compiler-spec.js.map +1 -0
- package/dist/constants/theme-colors.d.ts +0 -48
- package/dist/constants/theme-colors.d.ts.map +1 -1
- package/dist/constants/theme-colors.js +0 -32
- package/dist/constants/theme-colors.js.map +1 -1
- package/dist/definition/feature/feature-utils.d.ts +9 -3
- package/dist/definition/feature/feature-utils.d.ts.map +1 -1
- package/dist/definition/feature/feature-utils.js +30 -2
- package/dist/definition/feature/feature-utils.js.map +1 -1
- package/dist/definition/plugins/plugin-utils.d.ts +15 -0
- package/dist/definition/plugins/plugin-utils.d.ts.map +1 -1
- package/dist/definition/plugins/plugin-utils.js +50 -1
- package/dist/definition/plugins/plugin-utils.js.map +1 -1
- package/dist/definition/project-definition-container.d.ts.map +1 -1
- package/dist/definition/project-definition-container.js +3 -1
- package/dist/definition/project-definition-container.js.map +1 -1
- package/dist/{schema/models → expression-parsers}/authorizer/authorizer-expression-acorn-parser.d.ts +2 -0
- package/dist/expression-parsers/authorizer/authorizer-expression-acorn-parser.d.ts.map +1 -0
- package/dist/{schema/models → expression-parsers}/authorizer/authorizer-expression-acorn-parser.js +107 -52
- package/dist/expression-parsers/authorizer/authorizer-expression-acorn-parser.js.map +1 -0
- package/dist/{schema/models → expression-parsers}/authorizer/authorizer-expression-ast.d.ts +69 -1
- package/dist/expression-parsers/authorizer/authorizer-expression-ast.d.ts.map +1 -0
- package/dist/{schema/models → expression-parsers}/authorizer/authorizer-expression-ast.js +2 -0
- package/dist/expression-parsers/authorizer/authorizer-expression-ast.js.map +1 -0
- package/dist/{schema/models → expression-parsers}/authorizer/authorizer-expression-parser.d.ts +13 -14
- package/dist/expression-parsers/authorizer/authorizer-expression-parser.d.ts.map +1 -0
- package/dist/expression-parsers/authorizer/authorizer-expression-parser.js +292 -0
- package/dist/expression-parsers/authorizer/authorizer-expression-parser.js.map +1 -0
- package/dist/{schema/models → expression-parsers}/authorizer/authorizer-expression-validator.d.ts +37 -17
- package/dist/expression-parsers/authorizer/authorizer-expression-validator.d.ts.map +1 -0
- package/dist/expression-parsers/authorizer/authorizer-expression-validator.js +379 -0
- package/dist/expression-parsers/authorizer/authorizer-expression-validator.js.map +1 -0
- package/dist/expression-parsers/authorizer/authorizer-expression-visitor.d.ts +54 -0
- package/dist/expression-parsers/authorizer/authorizer-expression-visitor.d.ts.map +1 -0
- package/dist/expression-parsers/authorizer/authorizer-expression-visitor.js +52 -0
- package/dist/expression-parsers/authorizer/authorizer-expression-visitor.js.map +1 -0
- package/dist/expression-parsers/authorizer/index.d.ts +6 -0
- package/dist/expression-parsers/authorizer/index.d.ts.map +1 -0
- package/dist/expression-parsers/authorizer/index.js +6 -0
- package/dist/expression-parsers/authorizer/index.js.map +1 -0
- package/dist/expression-parsers/register-core-module.d.ts +6 -0
- package/dist/expression-parsers/register-core-module.d.ts.map +1 -0
- package/dist/expression-parsers/register-core-module.js +29 -0
- package/dist/expression-parsers/register-core-module.js.map +1 -0
- 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 +6 -0
- package/dist/migrations/index.js.map +1 -1
- package/dist/migrations/migration-029-admin-role-and-auto-assigned.d.ts +25 -0
- package/dist/migrations/migration-029-admin-role-and-auto-assigned.d.ts.map +1 -0
- package/dist/migrations/migration-029-admin-role-and-auto-assigned.js +72 -0
- package/dist/migrations/migration-029-admin-role-and-auto-assigned.js.map +1 -0
- package/dist/migrations/migration-030-remove-theme-hover-colors.d.ts +17 -0
- package/dist/migrations/migration-030-remove-theme-hover-colors.d.ts.map +1 -0
- package/dist/migrations/migration-030-remove-theme-hover-colors.js +41 -0
- package/dist/migrations/migration-030-remove-theme-hover-colors.js.map +1 -0
- package/dist/migrations/migration-031-uuid-default-generation.d.ts +24 -0
- package/dist/migrations/migration-031-uuid-default-generation.d.ts.map +1 -0
- package/dist/migrations/migration-031-uuid-default-generation.js +40 -0
- package/dist/migrations/migration-031-uuid-default-generation.js.map +1 -0
- package/dist/migrations/transform-json-path.d.ts.map +1 -1
- package/dist/migrations/transform-json-path.js +2 -3
- package/dist/migrations/transform-json-path.js.map +1 -1
- package/dist/parser/collect-definition-issues.d.ts.map +1 -1
- package/dist/parser/collect-definition-issues.js +10 -2
- package/dist/parser/collect-definition-issues.js.map +1 -1
- package/dist/parser/collect-expression-issues.d.ts +17 -9
- package/dist/parser/collect-expression-issues.d.ts.map +1 -1
- package/dist/parser/collect-expression-issues.js +21 -15
- package/dist/parser/collect-expression-issues.js.map +1 -1
- package/dist/parser/definition-issue-checkers/plugin-dependency-checker.d.ts +11 -0
- package/dist/parser/definition-issue-checkers/plugin-dependency-checker.d.ts.map +1 -0
- package/dist/parser/definition-issue-checkers/plugin-dependency-checker.js +41 -0
- package/dist/parser/definition-issue-checkers/plugin-dependency-checker.js.map +1 -0
- package/dist/parser/definition-issue-checkers/plugin-implementation-checker.d.ts +16 -0
- package/dist/parser/definition-issue-checkers/plugin-implementation-checker.d.ts.map +1 -0
- package/dist/parser/definition-issue-checkers/plugin-implementation-checker.js +69 -0
- package/dist/parser/definition-issue-checkers/plugin-implementation-checker.js.map +1 -0
- package/dist/parser/definition-issue-utils.d.ts +28 -1
- package/dist/parser/definition-issue-utils.d.ts.map +1 -1
- package/dist/parser/definition-issue-utils.js +59 -0
- package/dist/parser/definition-issue-utils.js.map +1 -1
- package/dist/parser/find-orphaned-union-items.d.ts +30 -0
- package/dist/parser/find-orphaned-union-items.d.ts.map +1 -0
- package/dist/parser/find-orphaned-union-items.js +47 -0
- package/dist/parser/find-orphaned-union-items.js.map +1 -0
- package/dist/parser/index.d.ts +3 -1
- package/dist/parser/index.d.ts.map +1 -1
- package/dist/parser/index.js +3 -1
- package/dist/parser/index.js.map +1 -1
- package/dist/parser/parser.d.ts.map +1 -1
- package/dist/parser/parser.js +3 -0
- package/dist/parser/parser.js.map +1 -1
- package/dist/parser/transform-data-with-schema.js +1 -1
- package/dist/parser/transform-data-with-schema.js.map +1 -1
- package/dist/plugins/imports/index.d.ts +1 -0
- package/dist/plugins/imports/index.d.ts.map +1 -1
- package/dist/plugins/imports/index.js +1 -0
- package/dist/plugins/imports/index.js.map +1 -1
- package/dist/plugins/imports/validate-plugin-dependencies.d.ts +42 -0
- package/dist/plugins/imports/validate-plugin-dependencies.d.ts.map +1 -0
- package/dist/plugins/imports/validate-plugin-dependencies.js +80 -0
- package/dist/plugins/imports/validate-plugin-dependencies.js.map +1 -0
- package/dist/plugins/metadata/types.d.ts +13 -0
- package/dist/plugins/metadata/types.d.ts.map +1 -1
- package/dist/plugins/metadata/types.js +15 -0
- package/dist/plugins/metadata/types.js.map +1 -1
- package/dist/plugins/spec/auth-config-spec.d.ts +1 -0
- package/dist/plugins/spec/auth-config-spec.d.ts.map +1 -1
- package/dist/plugins/spec/auth-config-spec.js.map +1 -1
- package/dist/references/definition-ref-builder.d.ts +2 -0
- package/dist/references/definition-ref-builder.d.ts.map +1 -1
- package/dist/references/definition-ref-registry.d.ts +2 -0
- package/dist/references/definition-ref-registry.d.ts.map +1 -1
- package/dist/references/definition-ref-registry.js.map +1 -1
- package/dist/references/expression-parser-ref.d.ts +51 -0
- package/dist/references/expression-parser-ref.d.ts.map +1 -0
- package/dist/references/expression-parser-ref.js +14 -0
- package/dist/references/expression-parser-ref.js.map +1 -0
- package/dist/references/expression-parser-spec.d.ts +29 -0
- package/dist/references/expression-parser-spec.d.ts.map +1 -0
- package/dist/references/expression-parser-spec.js +29 -0
- package/dist/references/expression-parser-spec.js.map +1 -0
- package/dist/references/expression-types.d.ts +20 -22
- package/dist/references/expression-types.d.ts.map +1 -1
- package/dist/references/expression-types.js +1 -2
- package/dist/references/expression-types.js.map +1 -1
- package/dist/references/extend-parser-context-with-refs.d.ts +7 -2
- package/dist/references/extend-parser-context-with-refs.d.ts.map +1 -1
- package/dist/references/extend-parser-context-with-refs.js +42 -12
- package/dist/references/extend-parser-context-with-refs.js.map +1 -1
- package/dist/references/extract-definition-refs.js +1 -1
- package/dist/references/extract-definition-refs.js.map +1 -1
- package/dist/references/fix-definition-refs.d.ts +22 -0
- package/dist/references/fix-definition-refs.d.ts.map +1 -0
- package/dist/references/fix-definition-refs.js +29 -0
- package/dist/references/fix-definition-refs.js.map +1 -0
- package/dist/references/fix-expression-renames.d.ts +20 -0
- package/dist/references/fix-expression-renames.d.ts.map +1 -0
- package/dist/references/fix-expression-renames.js +87 -0
- package/dist/references/fix-expression-renames.js.map +1 -0
- package/dist/references/index.d.ts +4 -0
- package/dist/references/index.d.ts.map +1 -1
- package/dist/references/index.js +4 -0
- package/dist/references/index.js.map +1 -1
- package/dist/references/parse-schema-with-references.d.ts +2 -1
- package/dist/references/parse-schema-with-references.d.ts.map +1 -1
- package/dist/references/parse-schema-with-references.js.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud.d.ts.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud.js +3 -2
- package/dist/schema/apps/web/admin/sections/crud.js.map +1 -1
- package/dist/schema/creator/definition-issue-checkers.d.ts +15 -0
- package/dist/schema/creator/definition-issue-checkers.d.ts.map +1 -1
- package/dist/schema/creator/definition-issue-checkers.js +33 -0
- package/dist/schema/creator/definition-issue-checkers.js.map +1 -1
- package/dist/schema/creator/schema-creator.js +1 -1
- package/dist/schema/creator/schema-creator.js.map +1 -1
- package/dist/schema/features/feature.js +1 -1
- package/dist/schema/features/feature.js.map +1 -1
- package/dist/schema/libraries/library.d.ts.map +1 -1
- package/dist/schema/libraries/library.js +1 -0
- package/dist/schema/libraries/library.js.map +1 -1
- package/dist/schema/models/authorizer/authorizer-expression-ref.d.ts +11 -0
- package/dist/schema/models/authorizer/authorizer-expression-ref.d.ts.map +1 -0
- package/dist/schema/models/authorizer/authorizer-expression-ref.js +10 -0
- package/dist/schema/models/authorizer/authorizer-expression-ref.js.map +1 -0
- package/dist/schema/models/authorizer/authorizer.js +2 -2
- package/dist/schema/models/authorizer/authorizer.js.map +1 -1
- package/dist/schema/models/authorizer/index.d.ts +1 -4
- package/dist/schema/models/authorizer/index.d.ts.map +1 -1
- package/dist/schema/models/authorizer/index.js +1 -4
- package/dist/schema/models/authorizer/index.js.map +1 -1
- package/dist/schema/models/enums.d.ts +12 -0
- package/dist/schema/models/enums.d.ts.map +1 -1
- package/dist/schema/models/enums.js +5 -2
- package/dist/schema/models/enums.js.map +1 -1
- package/dist/schema/models/graphql.js +3 -3
- package/dist/schema/models/graphql.js.map +1 -1
- package/dist/schema/models/models.d.ts +24 -36
- package/dist/schema/models/models.d.ts.map +1 -1
- package/dist/schema/models/models.js +7 -5
- package/dist/schema/models/models.js.map +1 -1
- package/dist/schema/plugins/definition.d.ts.map +1 -1
- package/dist/schema/plugins/definition.js +2 -0
- package/dist/schema/plugins/definition.js.map +1 -1
- package/dist/schema/project-definition.d.ts +14 -22
- package/dist/schema/project-definition.d.ts.map +1 -1
- package/dist/schema/project-definition.js +5 -1
- package/dist/schema/project-definition.js.map +1 -1
- package/dist/schema/settings/settings.d.ts +2 -10
- package/dist/schema/settings/settings.d.ts.map +1 -1
- package/dist/schema/settings/theme.d.ts +3 -15
- package/dist/schema/settings/theme.d.ts.map +1 -1
- package/dist/schema/utils/validation.d.ts.map +1 -1
- package/dist/schema/utils/validation.js +16 -3
- package/dist/schema/utils/validation.js.map +1 -1
- package/dist/specs/packages/library-type-spec.d.ts +4 -0
- package/dist/specs/packages/library-type-spec.d.ts.map +1 -1
- package/dist/specs/packages/library-type-spec.js +2 -2
- package/dist/specs/packages/library-type-spec.js.map +1 -1
- package/dist/testing/definition-helpers.test-helper.js +2 -2
- package/dist/testing/definition-helpers.test-helper.js.map +1 -1
- package/dist/testing/expression-stub-parser.test-helper.d.ts +2 -4
- package/dist/testing/expression-stub-parser.test-helper.d.ts.map +1 -1
- package/dist/testing/expression-stub-parser.test-helper.js +2 -10
- package/dist/testing/expression-stub-parser.test-helper.js.map +1 -1
- package/dist/testing/expression-warning-parser.test-helper.d.ts +2 -4
- package/dist/testing/expression-warning-parser.test-helper.d.ts.map +1 -1
- package/dist/testing/expression-warning-parser.test-helper.js +2 -8
- package/dist/testing/expression-warning-parser.test-helper.js.map +1 -1
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +1 -0
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/parser-context.test-helper.d.ts.map +1 -1
- package/dist/testing/parser-context.test-helper.js +2 -1
- package/dist/testing/parser-context.test-helper.js.map +1 -1
- package/dist/testing/plugin-store.test-helper.d.ts +11 -0
- package/dist/testing/plugin-store.test-helper.d.ts.map +1 -0
- package/dist/testing/plugin-store.test-helper.js +32 -0
- package/dist/testing/plugin-store.test-helper.js.map +1 -0
- package/dist/testing/project-definition-container.test-helper.d.ts.map +1 -1
- package/dist/testing/project-definition-container.test-helper.js +2 -1
- package/dist/testing/project-definition-container.test-helper.js.map +1 -1
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +2 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/sort-entity-arrays.d.ts +15 -0
- package/dist/tools/sort-entity-arrays.d.ts.map +1 -0
- package/dist/tools/sort-entity-arrays.js +31 -0
- package/dist/tools/sort-entity-arrays.js.map +1 -0
- package/dist/utils/color-conversions.d.ts +12 -0
- package/dist/utils/color-conversions.d.ts.map +1 -1
- package/dist/utils/color-conversions.js +17 -1
- package/dist/utils/color-conversions.js.map +1 -1
- package/dist/utils/color-names.d.ts.map +1 -1
- package/dist/utils/color-names.js +6 -5
- package/dist/utils/color-names.js.map +1 -1
- package/dist/utils/definition-diff/definition-diff.js +2 -2
- package/dist/utils/definition-diff/definition-diff.js.map +1 -1
- package/dist/utils/theme.d.ts +1 -0
- package/dist/utils/theme.d.ts.map +1 -1
- package/dist/utils/theme.js +18 -10
- package/dist/utils/theme.js.map +1 -1
- package/dist/web/components/definition-diff-alert.js +2 -2
- package/dist/web/components/definition-diff-alert.js.map +1 -1
- package/dist/web/components/feature-combobox-field.d.ts.map +1 -1
- package/dist/web/components/feature-combobox-field.js +5 -3
- package/dist/web/components/feature-combobox-field.js.map +1 -1
- package/dist/web/specs/admin-crud-action-web-spec.js +1 -1
- package/dist/web/specs/admin-crud-action-web-spec.js.map +1 -1
- package/dist/web/specs/admin-crud-column-web-spec.js +1 -1
- package/dist/web/specs/admin-crud-column-web-spec.js.map +1 -1
- package/dist/web/specs/admin-crud-input-web-spec.js +1 -1
- package/dist/web/specs/admin-crud-input-web-spec.js.map +1 -1
- package/dist/web/specs/model-transformer-web-spec.d.ts +19 -2
- package/dist/web/specs/model-transformer-web-spec.d.ts.map +1 -1
- package/dist/web/specs/model-transformer-web-spec.js +1 -1
- package/dist/web/specs/model-transformer-web-spec.js.map +1 -1
- package/package.json +8 -8
- package/dist/schema/models/authorizer/authorizer-expression-acorn-parser.d.ts.map +0 -1
- package/dist/schema/models/authorizer/authorizer-expression-acorn-parser.js.map +0 -1
- package/dist/schema/models/authorizer/authorizer-expression-ast.d.ts.map +0 -1
- package/dist/schema/models/authorizer/authorizer-expression-ast.js.map +0 -1
- package/dist/schema/models/authorizer/authorizer-expression-parser.d.ts.map +0 -1
- package/dist/schema/models/authorizer/authorizer-expression-parser.js +0 -145
- package/dist/schema/models/authorizer/authorizer-expression-parser.js.map +0 -1
- package/dist/schema/models/authorizer/authorizer-expression-validator.d.ts.map +0 -1
- package/dist/schema/models/authorizer/authorizer-expression-validator.js +0 -284
- package/dist/schema/models/authorizer/authorizer-expression-validator.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,59 @@
|
|
|
1
1
|
# @baseplate-dev/project-builder-lib
|
|
2
2
|
|
|
3
|
+
## 0.6.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#834](https://github.com/halfdomelabs/baseplate/pull/834) [`37b6d8f`](https://github.com/halfdomelabs/baseplate/commit/37b6d8fd76086dab2953e12e48543334c5056f15) Thanks [@kingston](https://github.com/kingston)! - Add `accountsFeatureRef` field to auth plugin, separating user data models (User, UserAccount, UserRole, UserSession, AuthVerification) from auth infrastructure code. Defaults to a new `accounts` feature alongside the existing `auth` feature. Includes schema migration 029 to backfill existing projects.
|
|
8
|
+
|
|
9
|
+
- [#869](https://github.com/halfdomelabs/baseplate/pull/869) [`860b82d`](https://github.com/halfdomelabs/baseplate/commit/860b82da0466386ad11128c619595179ee76d0a4) Thanks [@kingston](https://github.com/kingston)! - Add AI development agents plugin that generates AGENTS.md, .agents/ directory, and conditionally CLAUDE.md for Baseplate projects. Also adds `rootCompilerSpec` to enable plugins to contribute generators to the monorepo root package.
|
|
10
|
+
|
|
11
|
+
- [#854](https://github.com/halfdomelabs/baseplate/pull/854) [`9708637`](https://github.com/halfdomelabs/baseplate/commit/97086370718861d2c3170ec6d83af84793fbd09e) Thanks [@kingston](https://github.com/kingston)! - Add optional description field to enum values that flows through to Pothos GraphQL enum type definitions
|
|
12
|
+
|
|
13
|
+
- [#854](https://github.com/halfdomelabs/baseplate/pull/854) [`9708637`](https://github.com/halfdomelabs/baseplate/commit/97086370718861d2c3170ec6d83af84793fbd09e) Thanks [@kingston](https://github.com/kingston)! - Add case validation rules to enum names (PascalCase), enum value names (CONSTANT_CASE), and embedded CRUD form names (camelCase)
|
|
14
|
+
|
|
15
|
+
- [#868](https://github.com/halfdomelabs/baseplate/pull/868) [`8dcf7b3`](https://github.com/halfdomelabs/baseplate/commit/8dcf7b3c909672487bad61b7a4465d1860092363) Thanks [@kingston](https://github.com/kingston)! - Add get-plugin-info MCP action and improve configure-plugin usability
|
|
16
|
+
|
|
17
|
+
- [#844](https://github.com/halfdomelabs/baseplate/pull/844) [`06f5173`](https://github.com/halfdomelabs/baseplate/commit/06f517371c4904482873a4e30fe9b23b4fd2e36d) Thanks [@kingston](https://github.com/kingston)! - Improve better-auth feature parity with local-auth by adding password/email flows, admin mutations, frontend auth pages, seed user generator, and admin role. Also updates role flags, refines admin role handling, enhances auth UI, and adds project migration.
|
|
18
|
+
|
|
19
|
+
- [#850](https://github.com/halfdomelabs/baseplate/pull/850) [`71146cd`](https://github.com/halfdomelabs/baseplate/commit/71146cd1ab784f45e4409fef7e6e447750047e48) Thanks [@kingston](https://github.com/kingston)! - Add descriptions to app and package type options in the create new dialog so users understand what each type does before choosing
|
|
20
|
+
|
|
21
|
+
- [#866](https://github.com/halfdomelabs/baseplate/pull/866) [`5e182c3`](https://github.com/halfdomelabs/baseplate/commit/5e182c308c51b8d6f735b213ae12ba475c34dbd2) Thanks [@kingston](https://github.com/kingston)! - Detect and block disabling plugins whose types (transformers, package types, etc.) are still in use, showing a dialog listing the affected items
|
|
22
|
+
|
|
23
|
+
- [#864](https://github.com/halfdomelabs/baseplate/pull/864) [`0ba6744`](https://github.com/halfdomelabs/baseplate/commit/0ba67445708689622341f3031502b3308f71f68e) Thanks [@kingston](https://github.com/kingston)! - Support inline file category creation and editing from the file transformer form, eliminating the need to navigate to the plugin config page.
|
|
24
|
+
|
|
25
|
+
- [#851](https://github.com/halfdomelabs/baseplate/pull/851) [`53b8635`](https://github.com/halfdomelabs/baseplate/commit/53b86354ee6bc4b46d1966f657e3d6c942cf1eb1) Thanks [@kingston](https://github.com/kingston)! - Add plugin dependency support: plugins can declare `pluginDependencies` in plugin.json to require other plugins. Includes circular dependency detection via toposort, definition issue checking that blocks save for unmet dependencies, UI gating that prompts users to enable/configure dependencies before enabling a plugin, and implementation plugin validation. Added dependency declarations to local-auth (email, queue, rate-limit), email (queue), and storage (queue).
|
|
26
|
+
|
|
27
|
+
- [#839](https://github.com/halfdomelabs/baseplate/pull/839) [`85d957d`](https://github.com/halfdomelabs/baseplate/commit/85d957d4a2ab4b3a55a96c8dbba9a79d2f72511c) Thanks [@kingston](https://github.com/kingston)! - Support `exists()` and `all()` relation filter functions in authorization expressions for checking conditions on 1:many related records
|
|
28
|
+
|
|
29
|
+
- [#849](https://github.com/halfdomelabs/baseplate/pull/849) [`8d30c14`](https://github.com/halfdomelabs/baseplate/commit/8d30c145ce5d72dcfc038ff076ed0746d2d763cc) Thanks [@kingston](https://github.com/kingston)! - Change default relation onDelete from Cascade to Restrict
|
|
30
|
+
|
|
31
|
+
- [#856](https://github.com/halfdomelabs/baseplate/pull/856) [`ed5d250`](https://github.com/halfdomelabs/baseplate/commit/ed5d250146f0b48386a8208741150f9011892a35) Thanks [@kingston](https://github.com/kingston)! - Restrict certain app and library types to one instance per project by adding a singleton flag to type configurations.
|
|
32
|
+
|
|
33
|
+
- [#861](https://github.com/halfdomelabs/baseplate/pull/861) [`efcf233`](https://github.com/halfdomelabs/baseplate/commit/efcf2338c018ad46b08e8fef3994630dea511723) Thanks [@kingston](https://github.com/kingston)! - Sort entity arrays by name in project-definition.json for deterministic output. Entity schemas with `sortByName: true` in their `withEnt` annotation are sorted alphabetically during serialization.
|
|
34
|
+
|
|
35
|
+
- [#860](https://github.com/halfdomelabs/baseplate/pull/860) [`2a514a6`](https://github.com/halfdomelabs/baseplate/commit/2a514a63e741e1b16b3b1b168b84a60965141887) Thanks [@kingston](https://github.com/kingston)! - Support renames in reference expressions: when fields, relations, or roles are renamed, authorizer expressions are automatically updated to use the new names
|
|
36
|
+
|
|
37
|
+
- [#847](https://github.com/halfdomelabs/baseplate/pull/847) [`497904a`](https://github.com/halfdomelabs/baseplate/commit/497904a9b5088171f95c5e16bcda542fb5e98610) Thanks [@kingston](https://github.com/kingston)! - Connect theme builder UI to code generation. Theme color configuration from the project definition now drives the generated `styles.css` instead of hardcoded values. Default theme uses slate base with indigo primary. Remove explicit hover color variables (primaryHover, secondaryHover, destructiveHover) and linkVisited — hover is now computed via `color-mix` in CSS. Add palette swatch selection to theme color picker. Split preview into surface and interactive sections with input group and alert components.
|
|
38
|
+
|
|
39
|
+
- [#865](https://github.com/halfdomelabs/baseplate/pull/865) [`c7131f5`](https://github.com/halfdomelabs/baseplate/commit/c7131f5caebda203ece99d30fcf2d58ead3abdb8) Thanks [@kingston](https://github.com/kingston)! - Add schema migration 031 to convert `genUuid` boolean to `defaultGeneration` enum on UUID fields
|
|
40
|
+
|
|
41
|
+
- Updated dependencies [[`8dcf7b3`](https://github.com/halfdomelabs/baseplate/commit/8dcf7b3c909672487bad61b7a4465d1860092363), [`c24a24a`](https://github.com/halfdomelabs/baseplate/commit/c24a24ac9d2b66623acb0fda9c6ff2b3b80c0a6d), [`fc8f158`](https://github.com/halfdomelabs/baseplate/commit/fc8f1582f1702d2d6f6eaa60607da7bb777750b5), [`497904a`](https://github.com/halfdomelabs/baseplate/commit/497904a9b5088171f95c5e16bcda542fb5e98610)]:
|
|
42
|
+
- @baseplate-dev/utils@0.6.5
|
|
43
|
+
- @baseplate-dev/ui-components@0.6.5
|
|
44
|
+
- @baseplate-dev/sync@0.6.5
|
|
45
|
+
|
|
46
|
+
## 0.6.4
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- [#837](https://github.com/halfdomelabs/baseplate/pull/837) [`ba315aa`](https://github.com/halfdomelabs/baseplate/commit/ba315aaaec0e8842ec7fadb765b1fed5e3abda5a) Thanks [@kingston](https://github.com/kingston)! - Add `resolveFeatureName`, `createPartialFeatures`, and `getFeatureIdByNameOrThrow` to `FeatureUtils`.
|
|
51
|
+
|
|
52
|
+
- Updated dependencies [[`ba315aa`](https://github.com/halfdomelabs/baseplate/commit/ba315aaaec0e8842ec7fadb765b1fed5e3abda5a)]:
|
|
53
|
+
- @baseplate-dev/ui-components@0.6.4
|
|
54
|
+
- @baseplate-dev/sync@0.6.4
|
|
55
|
+
- @baseplate-dev/utils@0.6.4
|
|
56
|
+
|
|
3
57
|
## 0.6.3
|
|
4
58
|
|
|
5
59
|
### Patch Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createFieldMapSpec } from '#src/plugins/utils/create-field-map-spec.js';
|
|
2
2
|
export const adminCrudActionCompilerSpec = createFieldMapSpec('core/admin-crud-action-compiler', (t) => ({
|
|
3
|
-
//
|
|
3
|
+
// oxlint-disable-next-line typescript/no-explicit-any -- plugins register varying action types at runtime
|
|
4
4
|
actions: t.namedArrayToMap(),
|
|
5
5
|
}));
|
|
6
6
|
//# sourceMappingURL=admin-crud-action-compiler.js.map
|
|
@@ -1 +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,
|
|
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,0GAA0G;IAC1G,OAAO,EAAE,CAAC,CAAC,eAAe,EAAgC;CAC3D,CAAC,CACH,CAAC"}
|
|
@@ -6,7 +6,7 @@ export function createAdminCrudColumnCompiler(input) {
|
|
|
6
6
|
* Spec for registering admin CRUD column compilers
|
|
7
7
|
*/
|
|
8
8
|
export const adminCrudColumnCompilerSpec = createFieldMapSpec('core/admin-crud-column-compiler', (t) => ({
|
|
9
|
-
//
|
|
9
|
+
// oxlint-disable-next-line typescript/no-explicit-any -- plugins register varying column types at runtime
|
|
10
10
|
columns: t.namedArrayToMap(),
|
|
11
11
|
}));
|
|
12
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":"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,
|
|
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,0GAA0G;IAC1G,OAAO,EAAE,CAAC,CAAC,eAAe,EAAgC;CAC3D,CAAC,CACH,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { createFieldMapSpec } from '#src/plugins/utils/create-field-map-spec.js'
|
|
|
3
3
|
* Spec for registering admin CRUD input compilers
|
|
4
4
|
*/
|
|
5
5
|
export const adminCrudInputCompilerSpec = createFieldMapSpec('core/admin-crud-input-compiler', (t) => ({
|
|
6
|
-
//
|
|
6
|
+
// oxlint-disable-next-line typescript/no-explicit-any -- plugins register varying input types at runtime
|
|
7
7
|
inputs: t.namedArrayToMap(),
|
|
8
8
|
}));
|
|
9
9
|
//# sourceMappingURL=admin-crud-input-spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-crud-input-spec.js","sourceRoot":"","sources":["../../src/compiler/admin-crud-input-spec.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAiBjF;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,kBAAkB,CAC1D,gCAAgC,EAChC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACN,
|
|
1
|
+
{"version":3,"file":"admin-crud-input-spec.js","sourceRoot":"","sources":["../../src/compiler/admin-crud-input-spec.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAiBjF;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,kBAAkB,CAC1D,gCAAgC,EAChC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACN,yGAAyG;IACzG,MAAM,EAAE,CAAC,CAAC,eAAe,EAA+B;CACzD,CAAC,CACH,CAAC"}
|
|
@@ -25,7 +25,7 @@ export function pluginAppCompiler(options) {
|
|
|
25
25
|
* Spec for registering app compilers
|
|
26
26
|
*/
|
|
27
27
|
export const appCompilerSpec = createFieldMapSpec('core/app-compiler', (t) => ({
|
|
28
|
-
//
|
|
28
|
+
// oxlint-disable-next-line typescript/no-explicit-any -- plugins register varying app definition types at runtime
|
|
29
29
|
compilers: t.array(),
|
|
30
30
|
}), {
|
|
31
31
|
use: (values) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-compiler-spec.js","sourceRoot":"","sources":["../../src/compiler/app-compiler-spec.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AASjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAgBjF,MAAM,UAAU,iBAAiB;IAC/B,MAAM,QAAQ,GAEV,EAAE,CAAC;IACP,IAAI,YAAY,GAEZ,EAAE,CAAC;IAEP,OAAO;QACL,oBAAoB,CAAC,SAAS,EAAE,WAAW;YACzC,QAAQ,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,WAAW,CAAC,CAAC;QAC1E,CAAC;QACD,qBAAqB,CAAC,SAAS;YAC7B,OAAO,QAAQ,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;QACnC,CAAC;QACD,eAAe,CAAC,WAAW;YACzB,YAAY,GAAG,SAAS,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;QACtD,CAAC;QACD,eAAe;YACb,OAAO,YAAY,CAAC;QACtB,CAAC;KACF,CAAC;AACJ,CAAC;AAeD,MAAM,UAAU,iBAAiB,CAC/B,OAA0C;IAE1C,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,kBAAkB,CAC/C,mBAAmB,EACnB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACN,
|
|
1
|
+
{"version":3,"file":"app-compiler-spec.js","sourceRoot":"","sources":["../../src/compiler/app-compiler-spec.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AASjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAgBjF,MAAM,UAAU,iBAAiB;IAC/B,MAAM,QAAQ,GAEV,EAAE,CAAC;IACP,IAAI,YAAY,GAEZ,EAAE,CAAC;IAEP,OAAO;QACL,oBAAoB,CAAC,SAAS,EAAE,WAAW;YACzC,QAAQ,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,WAAW,CAAC,CAAC;QAC1E,CAAC;QACD,qBAAqB,CAAC,SAAS;YAC7B,OAAO,QAAQ,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;QACnC,CAAC;QACD,eAAe,CAAC,WAAW;YACzB,YAAY,GAAG,SAAS,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;QACtD,CAAC;QACD,eAAe;YACb,OAAO,YAAY,CAAC;QACtB,CAAC;KACF,CAAC;AACJ,CAAC;AAeD,MAAM,UAAU,iBAAiB,CAC/B,OAA0C;IAE1C,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,kBAAkB,CAC/C,mBAAmB,EACnB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACN,kHAAkH;IAClH,SAAS,EAAE,CAAC,CAAC,KAAK,EAA0B;CAC7C,CAAC,EACF;IACE,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAChB,eAAe,EAAE,CAAC,OAA8B,EAAE,EAAE,CAClD,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC;KACxD,CAAC;CACH,CACF,CAAC"}
|
package/dist/compiler/index.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export * from './admin-crud-column-compiler-spec.js';
|
|
|
3
3
|
export * from './admin-crud-input-spec.js';
|
|
4
4
|
export * from './app-compiler-spec.js';
|
|
5
5
|
export * from './model-transformer-compiler-spec.js';
|
|
6
|
+
export * from './root-compiler-spec.js';
|
|
6
7
|
export type * from './types.js';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/compiler/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sCAAsC,CAAC;AACrD,mBAAmB,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/compiler/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,mBAAmB,YAAY,CAAC"}
|
package/dist/compiler/index.js
CHANGED
|
@@ -3,4 +3,5 @@ export * from './admin-crud-column-compiler-spec.js';
|
|
|
3
3
|
export * from './admin-crud-input-spec.js';
|
|
4
4
|
export * from './app-compiler-spec.js';
|
|
5
5
|
export * from './model-transformer-compiler-spec.js';
|
|
6
|
+
export * from './root-compiler-spec.js';
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/compiler/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sCAAsC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/compiler/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { createFieldMapSpec } from '#src/plugins/utils/create-field-map-spec.js'
|
|
|
3
3
|
* Spec for registering model transformer compilers
|
|
4
4
|
*/
|
|
5
5
|
export const modelTransformerCompilerSpec = createFieldMapSpec('core/model-transformer-compiler', (t) => ({
|
|
6
|
-
//
|
|
6
|
+
// oxlint-disable-next-line typescript/no-explicit-any -- plugins register varying transformer types at runtime
|
|
7
7
|
transformers: t.namedArrayToMap(),
|
|
8
8
|
}));
|
|
9
9
|
//# sourceMappingURL=model-transformer-compiler-spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-transformer-compiler-spec.js","sourceRoot":"","sources":["../../src/compiler/model-transformer-compiler-spec.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAoBjF;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,kBAAkB,CAC5D,iCAAiC,EACjC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACN
|
|
1
|
+
{"version":3,"file":"model-transformer-compiler-spec.js","sourceRoot":"","sources":["../../src/compiler/model-transformer-compiler-spec.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAoBjF;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,kBAAkB,CAC5D,iCAAiC,EACjC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACN,+GAA+G;IAC/G,YAAY,EAAE,CAAC,CAAC,eAAe,EAAiC;CACjE,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { GeneratorBundle } from '@baseplate-dev/sync';
|
|
2
|
+
import type { ProjectDefinitionContainer } from '#src/definition/project-definition-container.js';
|
|
3
|
+
import type { ProjectDefinition } from '#src/schema/index.js';
|
|
4
|
+
interface PluginRootCompilerOptions {
|
|
5
|
+
projectDefinition: ProjectDefinition;
|
|
6
|
+
definitionContainer: ProjectDefinitionContainer;
|
|
7
|
+
}
|
|
8
|
+
export interface PluginRootCompiler {
|
|
9
|
+
pluginKey: string;
|
|
10
|
+
compile: (options: PluginRootCompilerOptions) => Record<string, GeneratorBundle>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Spec for registering root package compilers
|
|
14
|
+
*
|
|
15
|
+
* Allows plugins to contribute generator bundles to the monorepo root package.
|
|
16
|
+
* This is analogous to `appCompilerSpec` but for root-level files like
|
|
17
|
+
* AGENTS.md, CLAUDE.md, etc.
|
|
18
|
+
*/
|
|
19
|
+
export declare const rootCompilerSpec: import("../index.js").PluginSpec<{
|
|
20
|
+
compilers: import("@baseplate-dev/utils").ArrayContainer<PluginRootCompiler>;
|
|
21
|
+
}, {
|
|
22
|
+
compileAll(options: PluginRootCompilerOptions): Record<string, GeneratorBundle>;
|
|
23
|
+
}>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=root-compiler-spec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-compiler-spec.d.ts","sourceRoot":"","sources":["../../src/compiler/root-compiler-spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAI3D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAClG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAI9D,UAAU,yBAAyB;IACjC,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,mBAAmB,EAAE,0BAA0B,CAAC;CACjD;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,CACP,OAAO,EAAE,yBAAyB,KAC/B,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;CACtC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;wBAQZ,yBAAyB,GACjC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC;EASvC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { safeMerge } from '@baseplate-dev/utils';
|
|
2
|
+
import { createFieldMapSpec } from '#src/plugins/utils/create-field-map-spec.js';
|
|
3
|
+
/**
|
|
4
|
+
* Spec for registering root package compilers
|
|
5
|
+
*
|
|
6
|
+
* Allows plugins to contribute generator bundles to the monorepo root package.
|
|
7
|
+
* This is analogous to `appCompilerSpec` but for root-level files like
|
|
8
|
+
* AGENTS.md, CLAUDE.md, etc.
|
|
9
|
+
*/
|
|
10
|
+
export const rootCompilerSpec = createFieldMapSpec('core/root-compiler', (t) => ({
|
|
11
|
+
compilers: t.array(),
|
|
12
|
+
}), {
|
|
13
|
+
use: (values) => ({
|
|
14
|
+
compileAll(options) {
|
|
15
|
+
let result = {};
|
|
16
|
+
for (const compiler of values.compilers) {
|
|
17
|
+
result = safeMerge(result, compiler.compile(options));
|
|
18
|
+
}
|
|
19
|
+
return result;
|
|
20
|
+
},
|
|
21
|
+
}),
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=root-compiler-spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-compiler-spec.js","sourceRoot":"","sources":["../../src/compiler/root-compiler-spec.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAKjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAcjF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAChD,oBAAoB,EACpB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACN,SAAS,EAAE,CAAC,CAAC,KAAK,EAAsB;CACzC,CAAC,EACF;IACE,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAChB,UAAU,CACR,OAAkC;YAElC,IAAI,MAAM,GAAoC,EAAE,CAAC;YACjD,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;gBACxC,MAAM,GAAG,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;YACxD,CAAC;YACD,OAAO,MAAM,CAAC;QAChB,CAAC;KACF,CAAC;CACH,CACF,CAAC"}
|
|
@@ -234,18 +234,6 @@ export declare const THEME_COLORS: {
|
|
|
234
234
|
groupKey: string;
|
|
235
235
|
category: "interactive";
|
|
236
236
|
};
|
|
237
|
-
primaryHover: {
|
|
238
|
-
name: string;
|
|
239
|
-
description: string;
|
|
240
|
-
lightDefault: {
|
|
241
|
-
primaryShade: "900";
|
|
242
|
-
};
|
|
243
|
-
darkDefault: {
|
|
244
|
-
primaryShade: "800";
|
|
245
|
-
};
|
|
246
|
-
groupKey: string;
|
|
247
|
-
category: "interactive";
|
|
248
|
-
};
|
|
249
237
|
primaryForeground: {
|
|
250
238
|
name: string;
|
|
251
239
|
description: string;
|
|
@@ -270,18 +258,6 @@ export declare const THEME_COLORS: {
|
|
|
270
258
|
groupKey: string;
|
|
271
259
|
category: "interactive";
|
|
272
260
|
};
|
|
273
|
-
secondaryHover: {
|
|
274
|
-
name: string;
|
|
275
|
-
description: string;
|
|
276
|
-
lightDefault: {
|
|
277
|
-
baseShade: "300";
|
|
278
|
-
};
|
|
279
|
-
darkDefault: {
|
|
280
|
-
baseShade: "600";
|
|
281
|
-
};
|
|
282
|
-
groupKey: string;
|
|
283
|
-
category: "interactive";
|
|
284
|
-
};
|
|
285
261
|
secondaryForeground: {
|
|
286
262
|
name: string;
|
|
287
263
|
description: string;
|
|
@@ -306,18 +282,6 @@ export declare const THEME_COLORS: {
|
|
|
306
282
|
groupKey: string;
|
|
307
283
|
category: "interactive";
|
|
308
284
|
};
|
|
309
|
-
destructiveHover: {
|
|
310
|
-
name: string;
|
|
311
|
-
description: string;
|
|
312
|
-
lightDefault: {
|
|
313
|
-
color: string;
|
|
314
|
-
};
|
|
315
|
-
darkDefault: {
|
|
316
|
-
color: string;
|
|
317
|
-
};
|
|
318
|
-
groupKey: string;
|
|
319
|
-
category: "interactive";
|
|
320
|
-
};
|
|
321
285
|
destructiveForeground: {
|
|
322
286
|
name: string;
|
|
323
287
|
description: string;
|
|
@@ -342,18 +306,6 @@ export declare const THEME_COLORS: {
|
|
|
342
306
|
groupKey: string;
|
|
343
307
|
category: "interactive";
|
|
344
308
|
};
|
|
345
|
-
linkVisited: {
|
|
346
|
-
name: string;
|
|
347
|
-
description: string;
|
|
348
|
-
lightDefault: {
|
|
349
|
-
primaryShade: "800";
|
|
350
|
-
};
|
|
351
|
-
darkDefault: {
|
|
352
|
-
primaryShade: "700";
|
|
353
|
-
};
|
|
354
|
-
groupKey: string;
|
|
355
|
-
category: "interactive";
|
|
356
|
-
};
|
|
357
309
|
border: {
|
|
358
310
|
name: string;
|
|
359
311
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-colors.d.ts","sourceRoot":"","sources":["../../src/constants/theme-colors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,MAAM,YAAY,GACpB;IAAE,SAAS,EAAE,YAAY,CAAA;CAAE,GAC3B;IAAE,YAAY,EAAE,YAAY,CAAA;CAAE,GAC9B;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtB,KAAK,kBAAkB,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,+BAA+B;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4NmB,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,YAAY,CAAC;AAEtD,eAAO,MAAM,gBAAgB,EAAgC,aAAa,EAAE,CAAC"}
|
|
@@ -137,14 +137,6 @@ export const THEME_COLORS = {
|
|
|
137
137
|
groupKey: 'primary',
|
|
138
138
|
category: 'interactive',
|
|
139
139
|
},
|
|
140
|
-
primaryHover: {
|
|
141
|
-
name: 'Primary Hover',
|
|
142
|
-
description: 'Hover background for primary color',
|
|
143
|
-
lightDefault: { primaryShade: '900' },
|
|
144
|
-
darkDefault: { primaryShade: '800' },
|
|
145
|
-
groupKey: 'primary',
|
|
146
|
-
category: 'interactive',
|
|
147
|
-
},
|
|
148
140
|
primaryForeground: {
|
|
149
141
|
name: 'Primary Foreground',
|
|
150
142
|
description: 'Text color for primary button',
|
|
@@ -161,14 +153,6 @@ export const THEME_COLORS = {
|
|
|
161
153
|
groupKey: 'secondary',
|
|
162
154
|
category: 'interactive',
|
|
163
155
|
},
|
|
164
|
-
secondaryHover: {
|
|
165
|
-
name: 'Secondary Hover',
|
|
166
|
-
description: 'Hover background for secondary color',
|
|
167
|
-
lightDefault: { baseShade: '300' },
|
|
168
|
-
darkDefault: { baseShade: '600' },
|
|
169
|
-
groupKey: 'secondary',
|
|
170
|
-
category: 'interactive',
|
|
171
|
-
},
|
|
172
156
|
secondaryForeground: {
|
|
173
157
|
name: 'Secondary Foreground',
|
|
174
158
|
description: 'Text color for secondary button',
|
|
@@ -185,14 +169,6 @@ export const THEME_COLORS = {
|
|
|
185
169
|
groupKey: 'destructive',
|
|
186
170
|
category: 'interactive',
|
|
187
171
|
},
|
|
188
|
-
destructiveHover: {
|
|
189
|
-
name: 'Destructive Hover',
|
|
190
|
-
description: 'Hover color for destructive background',
|
|
191
|
-
lightDefault: { color: 'red-700' },
|
|
192
|
-
darkDefault: { color: 'red-700' },
|
|
193
|
-
groupKey: 'destructive',
|
|
194
|
-
category: 'interactive',
|
|
195
|
-
},
|
|
196
172
|
destructiveForeground: {
|
|
197
173
|
name: 'Destructive Foreground',
|
|
198
174
|
description: 'Hover color for destructive background',
|
|
@@ -209,14 +185,6 @@ export const THEME_COLORS = {
|
|
|
209
185
|
groupKey: 'link',
|
|
210
186
|
category: 'interactive',
|
|
211
187
|
},
|
|
212
|
-
linkVisited: {
|
|
213
|
-
name: 'Visited Link',
|
|
214
|
-
description: 'Color for link after being visited',
|
|
215
|
-
lightDefault: { primaryShade: '800' },
|
|
216
|
-
darkDefault: { primaryShade: '700' },
|
|
217
|
-
groupKey: 'link',
|
|
218
|
-
category: 'interactive',
|
|
219
|
-
},
|
|
220
188
|
// Utility Colors
|
|
221
189
|
border: {
|
|
222
190
|
name: 'Border',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-colors.js","sourceRoot":"","sources":["../../src/constants/theme-colors.ts"],"names":[],"mappings":"AAgCA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,iBAAiB;IACjB,UAAU,EAAE;QACV,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,kCAAkC;QAC/C,YAAY,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE;QAChC,WAAW,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE;QACjC,QAAQ,EAAE,MAAM;QAChB,QAAQ,EAAE,SAAS;KACpB;IACD,UAAU,EAAE;QACV,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,kCAAkC;QAC/C,YAAY,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE;QAClC,WAAW,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;QAChC,QAAQ,EAAE,MAAM;QAChB,QAAQ,EAAE,SAAS;KACpB;IACD,KAAK,EAA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AAE;QACN,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,sBAAsB;QACnC,YAAY,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE;QAClC,WAAW,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE;QACjC,QAAQ,EAAE,QAAQ;QAClB,QAAQ,EAAE,SAAS;KACpB;IACD,KAAK,EAAE;QACL,IAAI,EAAE,cAAc;QACpB,WAAW,EACT,qEAAqE;QACvE,YAAY,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE;QAClC,WAAW,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE;QACjC,QAAQ,EAAE,QAAQ;QAClB,QAAQ,EAAE,SAAS;KACpB;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,sBAAsB;QACnC,YAAY,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE;QACrC,WAAW,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE;QACpC,QAAQ,EAAE,MAAM;QAChB,QAAQ,EAAE,SAAS;KACpB;CACyC,CAAC;AAI7C,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,CAAoB,CAAC"}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import type { FeatureConfig, ProjectDefinition } from '#src/schema/index.js';
|
|
1
|
+
import type { FeatureConfig, PartialProjectDefinitionInput, ProjectDefinition } from '#src/schema/index.js';
|
|
2
2
|
declare function getRootFeatures(projectDefinition: ProjectDefinition): FeatureConfig[];
|
|
3
3
|
declare function getFeatureById(projectDefinition: ProjectDefinition, featureId: string): FeatureConfig | undefined;
|
|
4
4
|
declare function getFeatureByIdOrThrow(projectDefinition: ProjectDefinition, featureId: string): FeatureConfig;
|
|
5
5
|
declare function getFeatureChildren(projectDefinition: ProjectDefinition, featureId: string): FeatureConfig[];
|
|
6
6
|
declare function getFeatureName(featureConfig: FeatureConfig): string;
|
|
7
7
|
declare function getFeatureNameById(projectDefinition: ProjectDefinition, featureId: string): string;
|
|
8
|
-
declare function
|
|
8
|
+
declare function getFeaturePathByIdOrThrow(projectDefinition: ProjectDefinition, featureId: string): string;
|
|
9
9
|
declare function validateFeatureName(name: string): boolean;
|
|
10
10
|
declare function ensureFeatureByNameRecursively(projectDefinition: ProjectDefinition, nameOrId: string): string;
|
|
11
|
+
declare function createPartialFeatures(nameOrPath: string): NonNullable<PartialProjectDefinitionInput['features']>;
|
|
11
12
|
declare function getFeatureByName(projectDefinition: ProjectDefinition, name: string): FeatureConfig | undefined;
|
|
13
|
+
declare function getFeatureIdByNameOrThrow(projectDefinition: ProjectDefinition, name: string): string;
|
|
12
14
|
declare function getFeatureIdByNameOrDefault(projectDefinition: ProjectDefinition, name: string): string;
|
|
15
|
+
declare function resolveFeatureName(projectDefinition: ProjectDefinition, featureRef: string | null | undefined): string;
|
|
13
16
|
export declare const FeatureUtils: {
|
|
14
17
|
getRootFeatures: typeof getRootFeatures;
|
|
15
18
|
getFeatureById: typeof getFeatureById;
|
|
@@ -17,11 +20,14 @@ export declare const FeatureUtils: {
|
|
|
17
20
|
getFeatureChildren: typeof getFeatureChildren;
|
|
18
21
|
getFeatureName: typeof getFeatureName;
|
|
19
22
|
getFeatureNameById: typeof getFeatureNameById;
|
|
20
|
-
|
|
23
|
+
getFeaturePathByIdOrThrow: typeof getFeaturePathByIdOrThrow;
|
|
21
24
|
validateFeatureName: typeof validateFeatureName;
|
|
22
25
|
ensureFeatureByNameRecursively: typeof ensureFeatureByNameRecursively;
|
|
26
|
+
createPartialFeatures: typeof createPartialFeatures;
|
|
23
27
|
getFeatureByName: typeof getFeatureByName;
|
|
28
|
+
getFeatureIdByNameOrThrow: typeof getFeatureIdByNameOrThrow;
|
|
24
29
|
getFeatureIdByNameOrDefault: typeof getFeatureIdByNameOrDefault;
|
|
30
|
+
resolveFeatureName: typeof resolveFeatureName;
|
|
25
31
|
};
|
|
26
32
|
export {};
|
|
27
33
|
//# sourceMappingURL=feature-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-utils.d.ts","sourceRoot":"","sources":["../../../src/definition/feature/feature-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"feature-utils.d.ts","sourceRoot":"","sources":["../../../src/definition/feature/feature-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,6BAA6B,EAC7B,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAI9B,iBAAS,eAAe,CACtB,iBAAiB,EAAE,iBAAiB,GACnC,aAAa,EAAE,CAEjB;AAED,iBAAS,cAAc,CACrB,iBAAiB,EAAE,iBAAiB,EACpC,SAAS,EAAE,MAAM,GAChB,aAAa,GAAG,SAAS,CAE3B;AAED,iBAAS,qBAAqB,CAC5B,iBAAiB,EAAE,iBAAiB,EACpC,SAAS,EAAE,MAAM,GAChB,aAAa,CAMf;AAED,iBAAS,kBAAkB,CACzB,iBAAiB,EAAE,iBAAiB,EACpC,SAAS,EAAE,MAAM,GAChB,aAAa,EAAE,CAEjB;AAED,iBAAS,cAAc,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAE5D;AAED,iBAAS,kBAAkB,CACzB,iBAAiB,EAAE,iBAAiB,EACpC,SAAS,EAAE,MAAM,GAChB,MAAM,CAGR;AAED,iBAAS,yBAAyB,CAChC,iBAAiB,EAAE,iBAAiB,EACpC,SAAS,EAAE,MAAM,GAChB,MAAM,CAGR;AAED,iBAAS,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGlD;AAED,iBAAS,8BAA8B,CACrC,iBAAiB,EAAE,iBAAiB,EACpC,QAAQ,EAAE,MAAM,GACf,MAAM,CA6BR;AAED,iBAAS,qBAAqB,CAC5B,UAAU,EAAE,MAAM,GACjB,WAAW,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC,CAQxD;AAED,iBAAS,gBAAgB,CACvB,iBAAiB,EAAE,iBAAiB,EACpC,IAAI,EAAE,MAAM,GACX,aAAa,GAAG,SAAS,CAE3B;AAED,iBAAS,yBAAyB,CAChC,iBAAiB,EAAE,iBAAiB,EACpC,IAAI,EAAE,MAAM,GACX,MAAM,CAMR;AAED,iBAAS,2BAA2B,CAClC,iBAAiB,EAAE,iBAAiB,EACpC,IAAI,EAAE,MAAM,GACX,MAAM,CAER;AAED,iBAAS,kBAAkB,CACzB,iBAAiB,EAAE,iBAAiB,EACpC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACpC,MAAM,CAMR;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;CAexB,CAAC"}
|
|
@@ -22,7 +22,7 @@ function getFeatureNameById(projectDefinition, featureId) {
|
|
|
22
22
|
const feature = getFeatureByIdOrThrow(projectDefinition, featureId);
|
|
23
23
|
return getFeatureName(feature);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function getFeaturePathByIdOrThrow(projectDefinition, featureId) {
|
|
26
26
|
const feature = getFeatureByIdOrThrow(projectDefinition, featureId);
|
|
27
27
|
return feature.name;
|
|
28
28
|
}
|
|
@@ -59,12 +59,37 @@ function ensureFeatureByNameRecursively(projectDefinition, nameOrId) {
|
|
|
59
59
|
}
|
|
60
60
|
return parentRef;
|
|
61
61
|
}
|
|
62
|
+
function createPartialFeatures(nameOrPath) {
|
|
63
|
+
if (!nameOrPath)
|
|
64
|
+
return [];
|
|
65
|
+
const parts = nameOrPath.split('/');
|
|
66
|
+
return parts.map((_, i) => {
|
|
67
|
+
const name = parts.slice(0, i + 1).join('/');
|
|
68
|
+
const parentRef = i > 0 ? parts.slice(0, i).join('/') : undefined;
|
|
69
|
+
return { name, parentRef };
|
|
70
|
+
});
|
|
71
|
+
}
|
|
62
72
|
function getFeatureByName(projectDefinition, name) {
|
|
63
73
|
return projectDefinition.features.find((f) => f.name === name);
|
|
64
74
|
}
|
|
75
|
+
function getFeatureIdByNameOrThrow(projectDefinition, name) {
|
|
76
|
+
const feature = getFeatureByName(projectDefinition, name);
|
|
77
|
+
if (!feature) {
|
|
78
|
+
throw new Error(`Could not find feature with name ${name}`);
|
|
79
|
+
}
|
|
80
|
+
return feature.id;
|
|
81
|
+
}
|
|
65
82
|
function getFeatureIdByNameOrDefault(projectDefinition, name) {
|
|
66
83
|
return getFeatureByName(projectDefinition, name)?.id ?? name;
|
|
67
84
|
}
|
|
85
|
+
function resolveFeatureName(projectDefinition, featureRef) {
|
|
86
|
+
if (!featureRef)
|
|
87
|
+
return '';
|
|
88
|
+
if (featureEntityType.isId(featureRef)) {
|
|
89
|
+
return getFeaturePathByIdOrThrow(projectDefinition, featureRef);
|
|
90
|
+
}
|
|
91
|
+
return featureRef;
|
|
92
|
+
}
|
|
68
93
|
export const FeatureUtils = {
|
|
69
94
|
getRootFeatures,
|
|
70
95
|
getFeatureById,
|
|
@@ -72,10 +97,13 @@ export const FeatureUtils = {
|
|
|
72
97
|
getFeatureChildren,
|
|
73
98
|
getFeatureName,
|
|
74
99
|
getFeatureNameById,
|
|
75
|
-
|
|
100
|
+
getFeaturePathByIdOrThrow,
|
|
76
101
|
validateFeatureName,
|
|
77
102
|
ensureFeatureByNameRecursively,
|
|
103
|
+
createPartialFeatures,
|
|
78
104
|
getFeatureByName,
|
|
105
|
+
getFeatureIdByNameOrThrow,
|
|
79
106
|
getFeatureIdByNameOrDefault,
|
|
107
|
+
resolveFeatureName,
|
|
80
108
|
};
|
|
81
109
|
//# sourceMappingURL=feature-utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-utils.js","sourceRoot":"","sources":["../../../src/definition/feature/feature-utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"feature-utils.js","sourceRoot":"","sources":["../../../src/definition/feature/feature-utils.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE5E,SAAS,eAAe,CACtB,iBAAoC;IAEpC,OAAO,iBA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AEZ,OAAO,gBAAgB,CAAC,iBAAiB,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,IAAI,CAAC;AAC/D,CAAC;AAED,SAAS,kBAAkB,CACzB,iBAAoC,EACpC,UAAqC;IAErC,IAAI,CAAC,UAAU;QAAE,OAAO,EAAE,CAAC;IAC3B,IAAI,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;QACvC,OAAO,yBAAyB,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC;IAClE,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,eAAe;IACf,cAAc;IACd,qBAAqB;IACrB,kBAAkB;IAClB,cAAc;IACd,kBAAkB;IAClB,yBAAyB;IACzB,mBAAmB;IACnB,8BAA8B;IAC9B,qBAAqB;IACrB,gBAAgB;IAChB,yBAAyB;IACzB,2BAA2B;IAC3B,kBAAkB;CACnB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SchemaParserContext } from '#src/parser/types.js';
|
|
2
|
+
import type { PluginStore } from '#src/plugins/imports/types.js';
|
|
2
3
|
import type { PluginMetadataWithPaths } from '#src/plugins/index.js';
|
|
3
4
|
import type { BasePluginDefinition, ProjectDefinition } from '#src/schema/index.js';
|
|
4
5
|
import type { ProjectDefinitionContainer } from '../project-definition-container.js';
|
|
@@ -15,6 +16,19 @@ declare function setPluginConfig(projectDefinition: ProjectDefinition, plugin: P
|
|
|
15
16
|
* @param context The schema parser context to use
|
|
16
17
|
*/
|
|
17
18
|
declare function disablePlugin(projectDefinition: ProjectDefinition, pluginKey: string, context: SchemaParserContext): void;
|
|
19
|
+
/**
|
|
20
|
+
* Finds all enabled plugins that transitively depend on the given plugin
|
|
21
|
+
* via required (non-optional) dependencies.
|
|
22
|
+
*
|
|
23
|
+
* Uses BFS to discover the full transitive closure: if A requires B and
|
|
24
|
+
* B requires C, disabling C returns both B and A.
|
|
25
|
+
*
|
|
26
|
+
* @param projectDefinition The project definition to check
|
|
27
|
+
* @param pluginKey The key of the plugin being considered for disabling
|
|
28
|
+
* @param pluginStore The plugin store containing available plugin metadata
|
|
29
|
+
* @returns Array of metadata for plugins that transitively depend on the given plugin
|
|
30
|
+
*/
|
|
31
|
+
declare function getDependentPlugins(projectDefinition: ProjectDefinition, pluginKey: string, pluginStore: PluginStore): PluginMetadataWithPaths[];
|
|
18
32
|
export declare const PluginUtils: {
|
|
19
33
|
byKey: typeof byKey;
|
|
20
34
|
byKeyOrThrow: typeof byKeyOrThrow;
|
|
@@ -22,6 +36,7 @@ export declare const PluginUtils: {
|
|
|
22
36
|
setPluginConfig: typeof setPluginConfig;
|
|
23
37
|
configByKeyOrThrow: typeof configByKeyOrThrow;
|
|
24
38
|
disablePlugin: typeof disablePlugin;
|
|
39
|
+
getDependentPlugins: typeof getDependentPlugins;
|
|
25
40
|
};
|
|
26
41
|
export {};
|
|
27
42
|
//# sourceMappingURL=plugin-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-utils.d.ts","sourceRoot":"","sources":["../../../src/definition/plugins/plugin-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin-utils.d.ts","sourceRoot":"","sources":["../../../src/definition/plugins/plugin-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,KAAK,EACV,oBAAo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