@o3r/design 11.5.0-prerelease.53 → 11.5.0-prerelease.55

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":"style-renderer-options.d.ts","sourceRoot":"","sources":["../../../../builders/generate-style/helpers/style-renderer-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAIL,KAAK,0BAA0B,EAa/B,KAAK,gBAAgB,EAEtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,WAAW,CAAC;AAI/D,eAAO,MAAM,uBAAuB,8BAA+B,gBAAgB,GAAG,SAAS,WAAY,6BAA6B,WAAW,cAAc,KAAG,0BAsInK,CAAC"}
1
+ {"version":3,"file":"style-renderer-options.d.ts","sourceRoot":"","sources":["../../../../builders/generate-style/helpers/style-renderer-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAKL,KAAK,0BAA0B,EAc/B,KAAK,gBAAgB,EAEtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,WAAW,CAAC;AAI/D,eAAO,MAAM,uBAAuB,8BAA+B,gBAAgB,GAAG,SAAS,WAAY,6BAA6B,WAAW,cAAc,KAAG,0BAwInK,CAAC"}
@@ -27,13 +27,15 @@ const getStyleRendererOptions = (tokenVariableNameRenderer, options, context) =>
27
27
  }) : undefined;
28
28
  /** Update of file content based on selected language */
29
29
  const styleContentUpdater = ((language) => {
30
+ const updaterOptions = options.codeEditTags &&
31
+ { startTag: options.codeEditTags.start, endTag: options.codeEditTags.end };
30
32
  switch (language) {
31
33
  case 'css': {
32
- return (0, public_api_1.getCssStyleContentUpdater)();
34
+ return (0, public_api_1.getCssStyleContentUpdater)(updaterOptions);
33
35
  }
34
36
  case 'scss':
35
37
  case 'sass': {
36
- return (0, public_api_1.getSassStyleContentUpdater)();
38
+ return (0, public_api_1.getSassStyleContentUpdater)(updaterOptions);
37
39
  }
38
40
  default: {
39
41
  throw new Error(`No available updater for "${language}"`);
@@ -55,5 +55,13 @@ export interface GenerateStyleSchematicsSchema extends SchematicOptionObject {
55
55
  * Note: not matching tokens will default to ASC order.
56
56
  */
57
57
  sortOrderPatternsFilePath?: string;
58
+ /**
59
+ * Tags to surround the generated code in the outputted file.
60
+ * It is used to detect the code to replace
61
+ */
62
+ codeEditTags?: {
63
+ end: string;
64
+ start: string;
65
+ };
58
66
  }
59
67
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../builders/generate-style/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,gCAAgC;AAChC,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAExD,MAAM,WAAW,6BAA8B,SAAQ,qBAAqB;IAC1E;;;OAGG;IACH,QAAQ,EAAE,iBAAiB,CAAC;IAE5B,2DAA2D;IAC3D,YAAY,CAAC,EAAE,iBAAiB,CAAC;IAEjC,qEAAqE;IACrE,qBAAqB,CAAC,EAAE,iBAAiB,CAAC;IAE1C,mDAAmD;IACnD,uBAAuB,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE3C;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,gFAAgF;IAChF,gBAAgB,EAAE,MAAM,CAAC;IAEzB,wBAAwB;IACxB,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,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CAAC;IAElB,+EAA+E;IAC/E,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC;IAE5D,sDAAsD;IACtD,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,2FAA2F;IAC3F,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC,4FAA4F;IAC5F,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAEjC;;;OAGG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAEnC;;;OAGG;IACH,YAAY,CAAC,EAAE;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,CAAC;CAC7C"}
@@ -106,6 +106,22 @@
106
106
  "sortOrderPatternsFilePath": {
107
107
  "type": "string",
108
108
  "description": "Path to the JSON file exposing an ordered array of RegExps applied to the token name which will define the priority of the generated variables. (Note: not matching tokens will default to ASC order)"
109
+ },
110
+ "codeEditTags": {
111
+ "description": "Tags to surround the generated code in the outputted file. It is used to detect the code to replace. Note: the tag should be valid in the selected language.",
112
+ "type": "object",
113
+ "properties": {
114
+ "start": {
115
+ "description": "Starting tag",
116
+ "type": "string"
117
+ },
118
+ "end": {
119
+ "description": "Ending tag",
120
+ "type": "string"
121
+ }
122
+ },
123
+ "additionalItems": false,
124
+ "required": ["start", "end"]
109
125
  }
110
126
  },
111
127
  "additionalProperties": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/design",
3
- "version": "11.5.0-prerelease.53",
3
+ "version": "11.5.0-prerelease.55",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -55,10 +55,10 @@
55
55
  "peerDependencies": {
56
56
  "@angular-devkit/architect": "~0.1802.0",
57
57
  "@angular-devkit/schematics": "~18.2.0",
58
- "@o3r/core": "^11.5.0-prerelease.53",
59
- "@o3r/schematics": "^11.5.0-prerelease.53",
60
- "@o3r/styling": "^11.5.0-prerelease.53",
61
- "@o3r/telemetry": "^11.5.0-prerelease.53",
58
+ "@o3r/core": "^11.5.0-prerelease.55",
59
+ "@o3r/schematics": "^11.5.0-prerelease.55",
60
+ "@o3r/styling": "^11.5.0-prerelease.55",
61
+ "@o3r/telemetry": "^11.5.0-prerelease.55",
62
62
  "chokidar": "^3.5.2",
63
63
  "globby": "^11.1.0",
64
64
  "sass": "~1.80.0"
@@ -113,13 +113,13 @@
113
113
  "@nx/eslint-plugin": "~19.5.0",
114
114
  "@nx/jest": "~19.5.0",
115
115
  "@nx/js": "~19.5.0",
116
- "@o3r/build-helpers": "^11.5.0-prerelease.53",
117
- "@o3r/core": "^11.5.0-prerelease.53",
118
- "@o3r/eslint-plugin": "^11.5.0-prerelease.53",
119
- "@o3r/schematics": "^11.5.0-prerelease.53",
120
- "@o3r/styling": "^11.5.0-prerelease.53",
121
- "@o3r/telemetry": "^11.5.0-prerelease.53",
122
- "@o3r/test-helpers": "^11.5.0-prerelease.53",
116
+ "@o3r/build-helpers": "^11.5.0-prerelease.55",
117
+ "@o3r/core": "^11.5.0-prerelease.55",
118
+ "@o3r/eslint-plugin": "^11.5.0-prerelease.55",
119
+ "@o3r/schematics": "^11.5.0-prerelease.55",
120
+ "@o3r/styling": "^11.5.0-prerelease.55",
121
+ "@o3r/telemetry": "^11.5.0-prerelease.55",
122
+ "@o3r/test-helpers": "^11.5.0-prerelease.55",
123
123
  "@schematics/angular": "~18.2.0",
124
124
  "@stylistic/eslint-plugin-ts": "~2.4.0",
125
125
  "@types/jest": "~29.5.2",