@o3r/testing 14.0.0-next.5 → 14.0.0-next.8

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":"utils.d.ts","sourceRoot":"","sources":["../../../src/visual-test/utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,SAAe,QAkB9D;AAED;;GAEG;AACH,wBAAgB,sBAAsB,YAGrC;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,QAOzD"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/visual-test/utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,SAAe,QAkB9D;AAED;;GAEG;AACH,wBAAgB,sBAAsB,YAGrC;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,QAGzD"}
@@ -37,11 +37,6 @@ export function isVisualTestingEnabled() {
37
37
  */
38
38
  export function toggleVisualTestingRender(enabled) {
39
39
  const visualTestingClass = 'visual-testing-render';
40
- if (enabled) {
41
- document.body.classList.add(visualTestingClass);
42
- }
43
- else {
44
- document.body.classList.remove(visualTestingClass);
45
- }
40
+ document.body.classList.toggle(visualTestingClass, enabled);
46
41
  }
47
42
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/visual-test/utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,WAAW,GAAG,YAAY;IAC7D,MAAM,gBAAgB,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IACzD,MAAM,kBAAkB,GAAG,uBAAuB,CAAC;IACnD,gBAAgB,CAAC,WAAW,GAAG;OAC1B,kBAAkB,KAAK,WAAW;;OAElC,k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;;GAIG;AACH,MAAM,UAAU,yBAAyB,CAAC,OAAgB;IACxD,MAAM,kBAAkB,GAAG,uBAAuB,CAAC;IACnD,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/testing",
3
- "version": "14.0.0-next.5",
3
+ "version": "14.0.0-next.8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -99,10 +99,10 @@
99
99
  "@material/slider": "^14.0.0",
100
100
  "@ngrx/store": "^20.0.0",
101
101
  "@ngx-translate/core": "^15.0.0 || ~16.0.4",
102
- "@o3r/core": "~14.0.0-next.5",
103
- "@o3r/eslint-config": "~14.0.0-next.5",
104
- "@o3r/localization": "~14.0.0-next.5",
105
- "@o3r/schematics": "~14.0.0-next.5",
102
+ "@o3r/core": "~14.0.0-next.8",
103
+ "@o3r/eslint-config": "~14.0.0-next.8",
104
+ "@o3r/localization": "~14.0.0-next.8",
105
+ "@o3r/schematics": "~14.0.0-next.8",
106
106
  "@playwright/test": "^1.49.0",
107
107
  "@schematics/angular": "^20.0.0",
108
108
  "eslint": "~9.39.0",
@@ -110,7 +110,7 @@
110
110
  "pngjs": "^7.0.0",
111
111
  "rxjs": "^7.8.1",
112
112
  "temporal-polyfill": "^0.3.0",
113
- "type-fest": "^4.30.1",
113
+ "type-fest": "^5.3.1",
114
114
  "typescript": "^5.9.0"
115
115
  },
116
116
  "peerDependenciesMeta": {
@@ -170,7 +170,7 @@
170
170
  }
171
171
  },
172
172
  "dependencies": {
173
- "@o3r/schematics": "~14.0.0-next.5",
173
+ "@o3r/schematics": "~14.0.0-next.8",
174
174
  "esbuild": "~0.25.1",
175
175
  "module-from-string": "^3.2.0",
176
176
  "tslib": "^2.6.2"
@@ -197,11 +197,11 @@
197
197
  "@ngx-translate/core": "~16.0.4",
198
198
  "@nx/eslint-plugin": "~21.6.0",
199
199
  "@nx/jest": "~21.6.0",
200
- "@o3r/build-helpers": "~14.0.0-next.5",
201
- "@o3r/core": "~14.0.0-next.5",
202
- "@o3r/eslint-plugin": "~14.0.0-next.5",
203
- "@o3r/localization": "~14.0.0-next.5",
204
- "@o3r/test-helpers": "~14.0.0-next.5",
200
+ "@o3r/build-helpers": "~14.0.0-next.8",
201
+ "@o3r/core": "~14.0.0-next.8",
202
+ "@o3r/eslint-plugin": "~14.0.0-next.8",
203
+ "@o3r/localization": "~14.0.0-next.8",
204
+ "@o3r/test-helpers": "~14.0.0-next.8",
205
205
  "@playwright/test": "~1.57.0",
206
206
  "@schematics/angular": "~20.3.13",
207
207
  "@stylistic/eslint-plugin": "~5.6.0",
@@ -220,9 +220,9 @@
220
220
  "eslint-plugin-import": "~2.32.0",
221
221
  "eslint-plugin-import-newlines": "~1.4.0",
222
222
  "eslint-plugin-jest": "~29.1.0",
223
- "eslint-plugin-jsdoc": "~54.7.0",
223
+ "eslint-plugin-jsdoc": "~61.5.0",
224
224
  "eslint-plugin-prefer-arrow": "~1.2.3",
225
- "eslint-plugin-unicorn": "~60.0.0",
225
+ "eslint-plugin-unicorn": "~62.0.0",
226
226
  "eslint-plugin-unused-imports": "~4.3.0",
227
227
  "globals": "^16.0.0",
228
228
  "isomorphic-fetch": "~3.0.0",
@@ -240,7 +240,7 @@
240
240
  "semver": "^7.5.2",
241
241
  "temporal-polyfill": "^0.3.0",
242
242
  "ts-jest": "~29.4.0",
243
- "type-fest": "^4.30.1",
243
+ "type-fest": "^5.3.1",
244
244
  "typescript": "~5.9.2",
245
245
  "typescript-eslint": "~8.47.0",
246
246
  "zone.js": "~0.15.0"
@@ -1,7 +1,7 @@
1
1
  import { Rule } from '@angular-devkit/schematics';
2
2
  /**
3
3
  * Add fixture configuration
4
- * @param options @see RuleFactory.options
4
+ * @param options {@link RuleFactory.options}
5
5
  * @param options.projectName
6
6
  * @param options.testingFramework
7
7
  */
@@ -6,7 +6,7 @@ const schematics_2 = require("@o3r/schematics");
6
6
  const ts = require("typescript");
7
7
  /**
8
8
  * Add fixture configuration
9
- * @param options @see RuleFactory.options
9
+ * @param options {@link RuleFactory.options}
10
10
  * @param options.projectName
11
11
  * @param options.testingFramework
12
12
  */
@@ -6,7 +6,7 @@ import { NgAddPackageOptions } from '@o3r/schematics';
6
6
  export declare const playwrightDependencies: string[];
7
7
  /**
8
8
  * Add Playwright to Otter application
9
- * @param options @see RuleFactory.options
9
+ * @param options {@link RuleFactory.options}
10
10
  */
11
11
  export declare function updatePlaywright(options: NgAddPackageOptions): Rule;
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -16,7 +16,7 @@ exports.playwrightDependencies = [
16
16
  ];
17
17
  /**
18
18
  * Add Playwright to Otter application
19
- * @param options @see RuleFactory.options
19
+ * @param options {@link RuleFactory.options}
20
20
  */
21
21
  function updatePlaywright(options) {
22
22
  return (tree, context) => {
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/visual-test/utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,SAAe,QAkB9D;AAED;;GAEG;AACH,wBAAgB,sBAAsB,YAGrC;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,QAOzD"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/visual-test/utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,SAAe,QAkB9D;AAED;;GAEG;AACH,wBAAgB,sBAAsB,YAGrC;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,QAGzD"}
@@ -42,11 +42,6 @@ function isVisualTestingEnabled() {
42
42
  */
43
43
  function toggleVisualTestingRender(enabled) {
44
44
  const visualTestingClass = 'visual-testing-render';
45
- if (enabled) {
46
- document.body.classList.add(visualTestingClass);
47
- }
48
- else {
49
- document.body.classList.remove(visualTestingClass);
50
- }
45
+ document.body.classList.toggle(visualTestingClass, enabled);
51
46
  }
52
47
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/visual-test/utils.ts"],"names":[],"mappings":";;AAOA,oDAkBC;AAKD,wDAGC;AAOD,8DAOC;AA/CD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,WAAW,GAAG,YAAY;IAC7D,MAAM,gBAAgB,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IACzD,MAAM,kBAAkB,GAAG,uBAAuB,CAAC;IACnD,gBAAgB,CAAC,WAAW,GAAG;OAC1B,kBAAkB,KAAK,WAAW;;OAElC,kBAAkB,KAAK,WAAW;;;;;;;;;IASrC,CAAC;IAEH,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;AACzC,CAAC;AAED;;GAEG;AACH,SAAgB,sBAAsB;IACpC,MAAM,kBAAkB,GAAG,uBAAuB,CAAC;IACnD,OAAO,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;AAC9D,CAAC;AAED;;;;GAIG;AACH,SAAgB,yBAAyB,CAAC,OAAgB;IACxD,MAAM,kBAAkB,GAAG,uBAAuB,CAAC;IACnD,IAAI,OAAO,EAAE,CAAC;QACZ,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;IAClD,CAAC;SAAM,CAAC;QACN,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;IACrD,CAAC;AACH,CAAC","sourcesContent":["/**\n * Prepare css rule to hide specific blocks\n *\n * Should be called only once during the visual test.\n * @note this function is evaluated in the context of the page and should not use external variables\n * @param ignoreClass\n */\nexport function prepareVisualTesting(ignoreClass = 'e2e-ignore') {\n const visualTestingCss = document.createElement('style');\n const visualTestingClass = 'visual-testing-render';\n visualTestingCss.textContent = `\n .${visualTestingClass} .${ignoreClass} {position: relative;}\n\n .${visualTestingClass} .${ignoreClass}:before {\n z-index: 999;\n content: '';\n width: 100%;\n height: 100%;\n background: grey;\n position: absolute;\n left: 0;\n top: 0;\n }`;\n\n document.head.append(visualTestingCss);\n}\n\n/**\n * Determine if the visual testing is enabled\n */\nexport function isVisualTestingEnabled() {\n const visualTestingClass = 'visual-testing-render';\n return document.body.classList.contains(visualTestingClass);\n}\n\n/**\n * Toggle the visual testing view : if it is active, will hide tagged components as grey blocks.\n * @note this function is evaluated in the context of the page and cannot use external code\n * @param enabled\n */\nexport function toggleVisualTestingRender(enabled: boolean) {\n const visualTestingClass = 'visual-testing-render';\n if (enabled) {\n document.body.classList.add(visualTestingClass);\n } else {\n document.body.classList.remove(visualTestingClass);\n }\n}\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/visual-test/utils.ts"],"names":[],"mappings":";;AAOA,oDAkBC;AAKD,wDAGC;AAOD,8DAGC;AA3CD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,WAAW,GAAG,YAAY;IAC7D,MAAM,gBAAgB,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IACzD,MAAM,kBAAkB,GAAG,uBAAuB,CAAC;IACnD,gBAAgB,CAAC,WAAW,GAAG;OAC1B,kBAAkB,KAAK,WAAW;;OAElC,kBAAkB,KAAK,WAAW;;;;;;;;;IASrC,CAAC;IAEH,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;AACzC,CAAC;AAED;;GAEG;AACH,SAAgB,sBAAsB;IACpC,MAAM,kBAAkB,GAAG,uBAAuB,CAAC;IACnD,OAAO,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;AAC9D,CAAC;AAED;;;;GAIG;AACH,SAAgB,yBAAyB,CAAC,OAAgB;IACxD,MAAM,kBAAkB,GAAG,uBAAuB,CAAC;IACnD,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC","sourcesContent":["/**\n * Prepare css rule to hide specific blocks\n *\n * Should be called only once during the visual test.\n * @note this function is evaluated in the context of the page and should not use external variables\n * @param ignoreClass\n */\nexport function prepareVisualTesting(ignoreClass = 'e2e-ignore') {\n const visualTestingCss = document.createElement('style');\n const visualTestingClass = 'visual-testing-render';\n visualTestingCss.textContent = `\n .${visualTestingClass} .${ignoreClass} {position: relative;}\n\n .${visualTestingClass} .${ignoreClass}:before {\n z-index: 999;\n content: '';\n width: 100%;\n height: 100%;\n background: grey;\n position: absolute;\n left: 0;\n top: 0;\n }`;\n\n document.head.append(visualTestingCss);\n}\n\n/**\n * Determine if the visual testing is enabled\n */\nexport function isVisualTestingEnabled() {\n const visualTestingClass = 'visual-testing-render';\n return document.body.classList.contains(visualTestingClass);\n}\n\n/**\n * Toggle the visual testing view : if it is active, will hide tagged components as grey blocks.\n * @note this function is evaluated in the context of the page and cannot use external code\n * @param enabled\n */\nexport function toggleVisualTestingRender(enabled: boolean) {\n const visualTestingClass = 'visual-testing-render';\n document.body.classList.toggle(visualTestingClass, enabled);\n}\n"]}