@o3r/styling 11.4.0-rc.8 → 11.4.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"styling-metadata-comparison.helper.d.ts","sourceRoot":"","sources":["../../../../builders/metadata-check/helpers/styling-metadata-comparison.helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;CACd;AAYD;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,kBAAkB,CAAC,WAAW,EAAE,oBAAoB,EAAE,WAAW,CAIxG,CAAC"}
1
+ {"version":3,"file":"styling-metadata-comparison.helper.d.ts","sourceRoot":"","sources":["../../../../builders/metadata-check/helpers/styling-metadata-comparison.helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;CACd;AAcD;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,kBAAkB,CAAC,WAAW,EAAE,oBAAoB,EAAE,WAAW,CAKxG,CAAC"}
@@ -7,13 +7,15 @@ exports.stylingMetadataComparator = void 0;
7
7
  */
8
8
  const getCssVariablesArray = (content) => Object.keys(content.variables).map((name) => ({ ...content.variables[name], name }));
9
9
  const getCssVariableName = (cssVariable) => cssVariable.name;
10
- const isMigrationCssVariableDataMatch = (cssVariable, migrationData, metadataType) => metadataType === 'STYLE' && getCssVariableName(cssVariable) === migrationData.name;
10
+ const isRelevantContentType = (contentType) => contentType === 'STYLE';
11
+ const isMigrationCssVariableDataMatch = (cssVariable, migrationData) => getCssVariableName(cssVariable) === migrationData.name;
11
12
  /**
12
13
  * Comparator used to compare one version of styling metadata with another
13
14
  */
14
15
  exports.stylingMetadataComparator = {
15
16
  getArray: getCssVariablesArray,
16
17
  getIdentifier: getCssVariableName,
18
+ isRelevantContentType,
17
19
  isMigrationDataMatch: isMigrationCssVariableDataMatch
18
20
  };
19
21
  //# sourceMappingURL=styling-metadata-comparison.helper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styling-metadata-comparison.helper.js","sourceRoot":"","sources":["../../../../builders/metadata-check/helpers/styling-metadata-comparison.helper.ts"],"names":[],"mappings":";;;AAUA;;;GAGG;AACH,MAAM,oBAAoB,GAAG,CAAC,OAAoB,EAAiB,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAC,GAAG,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAE1J,MAAM,kBAAkB,GAAG,CAAC,WAAwB,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC;AAE1E,MAAM,+BAA+B,GAAG,CAAC,WAAwB,EAAE,aAAmC,EAAE,YAAoB,EAAE,EAAE,CAC9H,YAAY,KAAK,OAAO,IAAI,kBAAkB,CAAC,WAAW,CAAC,KAAK,aAAa,CAAC,IAAI,CAAC;AAErF;;GAEG;AACU,QAAA,yBAAyB,GAAuE;IAC3G,QAAQ,EAAE,oBAAoB;IAC9B,aAAa,EAAE,kBAAkB;IACjC,oBAAoB,EAAE,+BAA+B;CACtD,CAAC"}
1
+ {"version":3,"file":"styling-metadata-comparison.helper.js","sourceRoot":"","sources":["../../../../builders/metadata-check/helpers/styling-metadata-comparison.helper.ts"],"names":[],"mappings":";;;AAUA;;;GAGG;AACH,MAAM,oBAAoB,GAAG,CAAC,OAAoB,EAAiB,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAC,GAAG,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAE1J,MAAM,kBAAkB,GAAG,CAAC,WAAwB,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC;AAE1E,MAAM,qBAAqB,GAAG,CAAC,WAAmB,EAAE,EAAE,CAAC,WAAW,KAAK,OAAO,CAAC;AAE/E,MAAM,+BAA+B,GAAG,CAAC,WAAwB,EAAE,aAAmC,EAAE,EAAE,CACxG,kBAAkB,CAAC,WAAW,CAAC,KAAK,aAAa,CAAC,IAAI,CAAC;AAEzD;;GAEG;AACU,QAAA,yBAAyB,GAAuE;IAC3G,QAAQ,EAAE,oBAAoB;IAC9B,aAAa,EAAE,kBAAkB;IACjC,qBAAqB;IACrB,oBAAoB,EAAE,+BAA+B;CACtD,CAAC"}
@@ -26,6 +26,11 @@
26
26
  "description": "Are breaking changes allowed.",
27
27
  "default": false
28
28
  },
29
+ "shouldCheckUnusedMigrationData": {
30
+ "type": "boolean",
31
+ "description": "Whether to throw an error in case of a migration item that is not used during metadata checks",
32
+ "default": false
33
+ },
29
34
  "packageManager": {
30
35
  "type": "string",
31
36
  "description": "Override of the package manager, otherwise it will be determined from the project."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/styling",
3
- "version": "11.4.0-rc.8",
3
+ "version": "11.4.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -40,11 +40,11 @@
40
40
  "@angular/common": "~18.2.0",
41
41
  "@angular/core": "~18.2.0",
42
42
  "@angular/material": "~18.2.0",
43
- "@o3r/core": "^11.4.0-rc.8",
44
- "@o3r/dynamic-content": "^11.4.0-rc.8",
45
- "@o3r/extractors": "^11.4.0-rc.8",
46
- "@o3r/logger": "^11.4.0-rc.8",
47
- "@o3r/schematics": "^11.4.0-rc.8",
43
+ "@o3r/core": "^11.4.1",
44
+ "@o3r/dynamic-content": "^11.4.1",
45
+ "@o3r/extractors": "^11.4.1",
46
+ "@o3r/logger": "^11.4.1",
47
+ "@o3r/schematics": "^11.4.1",
48
48
  "@schematics/angular": "~18.2.0",
49
49
  "@yarnpkg/cli": "^4.3.1",
50
50
  "@yarnpkg/core": "^4.1.1",