@o3r/design 13.0.0-prerelease.3 → 13.0.0-prerelease.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/design",
3
- "version": "13.0.0-prerelease.3",
3
+ "version": "13.0.0-prerelease.4",
4
4
  "deprecated": "This package will be removed in Otter v14. Please use @ama-styling/style-dictionary instead.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -50,7 +50,7 @@
50
50
  "o3r-css-from-design-token": "./cli/generate-css-from-design-token.cli.cjs"
51
51
  },
52
52
  "dependencies": {
53
- "@o3r/schematics": "^13.0.0-prerelease.3",
53
+ "@o3r/schematics": "^13.0.0-prerelease.4",
54
54
  "jsonschema": "~1.5.0",
55
55
  "minimatch": "~10.0.0",
56
56
  "minimist": "^1.2.6",
@@ -60,10 +60,10 @@
60
60
  "peerDependencies": {
61
61
  "@angular-devkit/architect": ">=0.2000.0 <0.2100.0-0",
62
62
  "@angular-devkit/schematics": "^20.0.0",
63
- "@o3r/core": "^13.0.0-prerelease.3",
64
- "@o3r/schematics": "^13.0.0-prerelease.3",
65
- "@o3r/styling": "^13.0.0-prerelease.3",
66
- "@o3r/telemetry": "^13.0.0-prerelease.3",
63
+ "@o3r/core": "^13.0.0-prerelease.4",
64
+ "@o3r/schematics": "^13.0.0-prerelease.4",
65
+ "@o3r/styling": "^13.0.0-prerelease.4",
66
+ "@o3r/telemetry": "^13.0.0-prerelease.4",
67
67
  "chokidar": "^4.0.3",
68
68
  "globby": "^11.1.0",
69
69
  "sass": "^1.81.0"
@@ -118,12 +118,12 @@
118
118
  "@nx/eslint-plugin": "~21.3.11",
119
119
  "@nx/jest": "~21.3.11",
120
120
  "@nx/js": "~21.3.11",
121
- "@o3r/build-helpers": "^13.0.0-prerelease.3",
122
- "@o3r/core": "^13.0.0-prerelease.3",
123
- "@o3r/eslint-plugin": "^13.0.0-prerelease.3",
124
- "@o3r/styling": "^13.0.0-prerelease.3",
125
- "@o3r/telemetry": "^13.0.0-prerelease.3",
126
- "@o3r/test-helpers": "^13.0.0-prerelease.3",
121
+ "@o3r/build-helpers": "^13.0.0-prerelease.4",
122
+ "@o3r/core": "^13.0.0-prerelease.4",
123
+ "@o3r/eslint-plugin": "^13.0.0-prerelease.4",
124
+ "@o3r/styling": "^13.0.0-prerelease.4",
125
+ "@o3r/telemetry": "^13.0.0-prerelease.4",
126
+ "@o3r/test-helpers": "^13.0.0-prerelease.4",
127
127
  "@schematics/angular": "~20.0.0",
128
128
  "@stylistic/eslint-plugin": "~5.2.0",
129
129
  "@swc/helpers": "~0.5.0",
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,IAAI,EACV,MAAM,4BAA4B,CAAC;AAcpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAIlB;;;GAGG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAqB5D;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,SAA2C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,IAAI,EACV,MAAM,4BAA4B,CAAC;AAapC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAIlB;;;GAGG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAgB5D;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,SAA2C,CAAC"}
@@ -13,26 +13,21 @@ const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
13
13
  * @param options
14
14
  */
15
15
  function ngAddFn(options) {
16
- /* ng add rules */
17
- return (tree) => {
18
- const schematicsDefaultOptions = {
19
- useOtterDesignToken: true
20
- };
21
- return (0, schematics_1.chain)([
22
- (0, register_generate_css_1.registerGenerateCssBuilder)(options.projectName),
23
- (0, schematics_2.setupSchematicsParamsForProject)({
24
- '@o3r/core:component': schematicsDefaultOptions,
25
- '@o3r/core:component-presenter': schematicsDefaultOptions,
26
- '*:*': schematicsDefaultOptions
27
- }, options.projectName),
28
- (0, schematics_2.setupDependencies)({
29
- projectName: options.projectName,
30
- dependencies: (0, schematics_2.getPackageInstallConfig)(packageJsonPath, tree, options.projectName, false, !!options.exactO3rVersion)
31
- }),
32
- options.extractDesignToken ? (0, extract_token_1.extractToken)({ componentFilePatterns: ['**/*.scss'], includeTags: true }) : schematics_1.noop,
33
- options.skipLinter ? (0, schematics_1.noop)() : (0, schematics_2.applyEditorConfig)()
34
- ]);
16
+ const schematicsDefaultOptions = {
17
+ useOtterDesignToken: true
35
18
  };
19
+ /* ng add rules */
20
+ return (0, schematics_1.chain)([
21
+ (0, register_generate_css_1.registerGenerateCssBuilder)(options.projectName),
22
+ (0, schematics_2.setupSchematicsParamsForProject)({
23
+ '@o3r/core:component': schematicsDefaultOptions,
24
+ '@o3r/core:component-presenter': schematicsDefaultOptions,
25
+ '*:*': schematicsDefaultOptions
26
+ }, options.projectName),
27
+ (0, schematics_2.ngAddDependenciesRule)(options, packageJsonPath, { dependenciesToInstall: [], devDependenciesToInstall: [] }),
28
+ options.extractDesignToken ? (0, extract_token_1.extractToken)({ componentFilePatterns: ['**/*.scss'], includeTags: true }) : schematics_1.noop,
29
+ options.skipLinter ? (0, schematics_1.noop)() : (0, schematics_2.applyEditorConfig)()
30
+ ]);
36
31
  }
37
32
  /**
38
33
  * Add Otter design to an Angular Project
@@ -1,10 +1,6 @@
1
- import type { SchematicOptionObject } from '@o3r/schematics';
2
- export interface NgAddSchematicsSchema extends SchematicOptionObject {
3
- /** Project name */
4
- projectName?: string | undefined;
1
+ import type { NgAddOptions, SchematicOptionObject } from '@o3r/schematics';
2
+ export interface NgAddSchematicsSchema extends NgAddOptions, SchematicOptionObject {
5
3
  /** Extract the design token from Sass file in the project */
6
4
  extractDesignToken?: boolean;
7
- /** Use a pinned version for otter packages */
8
- exactO3rVersion?: boolean;
9
5
  }
10
6
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,qBAAsB,SAAQ,qBAAqB;IAClE,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,6DAA6D;IAC7D,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,8CAA8C;IAC9C,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,qBAAsB,SAAQ,YAAY,EAAE,qBAAqB;IAChF,6DAA6D;IAC7D,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B"}