html-reporter 11.2.1 → 11.3.0

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.
Files changed (40) hide show
  1. package/README.md +2 -2
  2. package/build/lib/bundle/index.js +220 -194
  3. package/build/lib/constants/diff-modes.d.ts +47 -0
  4. package/build/lib/constants/diff-modes.js +8 -1
  5. package/build/lib/constants/diff-modes.js.map +1 -1
  6. package/build/lib/constants/index.d.ts +1 -0
  7. package/build/lib/constants/index.js +1 -0
  8. package/build/lib/constants/index.js.map +1 -1
  9. package/build/lib/constants/local-storage.d.ts +2 -0
  10. package/build/lib/constants/local-storage.js +3 -1
  11. package/build/lib/constants/local-storage.js.map +1 -1
  12. package/build/lib/constants/two-up-modes.d.ts +4 -0
  13. package/build/lib/constants/two-up-modes.js +9 -0
  14. package/build/lib/constants/two-up-modes.js.map +1 -0
  15. package/build/lib/static/23.min.js +1 -1
  16. package/build/lib/static/526.min.css +1 -0
  17. package/build/lib/static/526.min.js +1 -0
  18. package/build/lib/static/698.min.js +1 -0
  19. package/build/lib/static/794.min.js +1 -0
  20. package/build/lib/static/gui.html +1 -1
  21. package/build/lib/static/gui.min.js +1 -1
  22. package/build/lib/static/index.html +1 -1
  23. package/build/lib/static/new-ui-gui.html +1 -1
  24. package/build/lib/static/new-ui-report.html +1 -1
  25. package/build/lib/static/newGui.min.js +1 -1
  26. package/build/lib/static/newReport.min.js +1 -1
  27. package/build/lib/static/report.min.js +1 -1
  28. package/build/lib/static/search-worker.min.js +1 -1
  29. package/build/package.json +7 -3
  30. package/package.json +7 -3
  31. package/plugins-sdk/build-ui/lib/constants/diff-modes.d.ts +47 -0
  32. package/plugins-sdk/build-ui/lib/constants/index.d.ts +1 -0
  33. package/plugins-sdk/build-ui/lib/constants/local-storage.d.ts +2 -0
  34. package/plugins-sdk/build-ui/lib/constants/two-up-modes.d.ts +4 -0
  35. package/plugins-sdk/build-ui/lib/static/new-ui/types/store.d.ts +4 -1
  36. package/build/lib/static/203.min.js +0 -1
  37. package/build/lib/static/373.min.js +0 -1
  38. package/build/lib/static/864.min.css +0 -1
  39. package/build/lib/static/864.min.js +0 -1
  40. /package/build/lib/static/{373.min.css → 698.min.css} +0 -0
@@ -35,7 +35,54 @@ export declare const DiffModes: {
35
35
  readonly title: "Onion skin";
36
36
  readonly description: "Onion Skin. Change the image opacity to compare expected and actual images.";
37
37
  };
38
+ readonly TWO_UP_INTERACTIVE: {
39
+ readonly id: "2-up-interactive";
40
+ readonly title: "2-up Interactive";
41
+ readonly description: "2-up Interactive. Compare expected and actual images side by side with synchronized pan and zoom.";
42
+ };
38
43
  };
44
+ export declare const ClassicDiffModes: Pick<{
45
+ readonly THREE_UP: {
46
+ readonly id: "3-up";
47
+ readonly title: "List";
48
+ readonly description: "List. Show images one after another in vertical layout.";
49
+ };
50
+ readonly THREE_UP_SCALED: {
51
+ readonly id: "3-up-scaled";
52
+ readonly title: "SbS";
53
+ readonly description: "Side by Side. Show images in one row.";
54
+ };
55
+ readonly THREE_UP_SCALED_TO_FIT: {
56
+ readonly id: "3-up-scaled-to-fit";
57
+ readonly title: "SbS (fit screen)";
58
+ readonly description: "Side by Side. Show images in one row and scale them down if needed to fit the screen.";
59
+ };
60
+ readonly ONLY_DIFF: {
61
+ readonly id: "only-diff";
62
+ readonly title: "Only Diff";
63
+ readonly description: "Only Diff. Show only diff image, click to highlight diff areas.";
64
+ };
65
+ readonly SWITCH: {
66
+ readonly id: "switch";
67
+ readonly title: "Switch";
68
+ readonly description: "Switch. Click to switch between expected and actual images.";
69
+ };
70
+ readonly SWIPE: {
71
+ readonly id: "swipe";
72
+ readonly title: "Swipe";
73
+ readonly description: "Swipe. Move the divider to compare expected and actual images.";
74
+ };
75
+ readonly ONION_SKIN: {
76
+ readonly id: "onion-skin";
77
+ readonly title: "Onion skin";
78
+ readonly description: "Onion Skin. Change the image opacity to compare expected and actual images.";
79
+ };
80
+ readonly TWO_UP_INTERACTIVE: {
81
+ readonly id: "2-up-interactive";
82
+ readonly title: "2-up Interactive";
83
+ readonly description: "2-up Interactive. Compare expected and actual images side by side with synchronized pan and zoom.";
84
+ };
85
+ }, "THREE_UP" | "THREE_UP_SCALED" | "THREE_UP_SCALED_TO_FIT" | "ONLY_DIFF" | "SWITCH" | "SWIPE" | "ONION_SKIN">;
39
86
  export type DiffModes = typeof DiffModes;
40
87
  export type DiffMode = ValueOf<DiffModes>;
41
88
  export type DiffModeId = DiffModes[keyof DiffModes]['id'];
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DiffModes = void 0;
3
+ exports.ClassicDiffModes = exports.DiffModes = void 0;
4
+ const lodash_1 = require("lodash");
4
5
  exports.DiffModes = {
5
6
  THREE_UP: {
6
7
  id: '3-up',
@@ -36,6 +37,12 @@ exports.DiffModes = {
36
37
  id: 'onion-skin',
37
38
  title: 'Onion skin',
38
39
  description: 'Onion Skin. Change the image opacity to compare expected and actual images.'
40
+ },
41
+ TWO_UP_INTERACTIVE: {
42
+ id: '2-up-interactive',
43
+ title: '2-up Interactive',
44
+ description: '2-up Interactive. Compare expected and actual images side by side with synchronized pan and zoom.'
39
45
  }
40
46
  };
47
+ exports.ClassicDiffModes = (0, lodash_1.pick)(exports.DiffModes, ['THREE_UP', 'THREE_UP_SCALED', 'THREE_UP_SCALED_TO_FIT', 'ONLY_DIFF', 'SWITCH', 'SWIPE', 'ONION_SKIN']);
41
48
  //# sourceMappingURL=diff-modes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"diff-modes.js","sourceRoot":"","sources":["../../../lib/constants/diff-modes.ts"],"names":[],"mappings":";;;AAEa,QAAA,SAAS,GAAG;IACrB,QAAQ,EAAE;QACN,EAAE,EAAE,MAAM;QACV,KAAK,EAAE,MAAM;QACb,WAAW,EAAE,yDAAyD;KACzE;IACD,eAAe,EAAE;QACb,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,KAAK;QACZ,WAAW,EAAE,uCAAuC;KACvD;IACD,sBAAsB,EAAE;QACpB,EAAE,EAAE,oBAAoB;QACxB,KAAK,EAAE,kBAAkB;QACzB,WAAW,EAAE,uFAAuF;KACvG;IACD,SAAS,EAAE;QACP,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,WAAW;QAClB,WAAW,EAAE,iEAAiE;KACjF;IACD,MAAM,EAAE;QACJ,EAAE,EAAE,QAAQ;QACZ,KAAK,EAAE,QAAQ;QACf,WAAW,EAAE,6DAA6D;KAC7E;IACD,KAAK,EAAE;QACH,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,OAAO;QACd,WAAW,EAAE,gEAAgE;KAChF;IACD,UAAU,EAAE;QACR,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,6EAA6E;KAC7F;CACK,CAAC"}
1
+ {"version":3,"file":"diff-modes.js","sourceRoot":"","sources":["../../../lib/constants/diff-modes.ts"],"names":[],"mappings":";;;AAAA,mCAA4B;AAGf,QAAA,SAAS,GAAG;IACrB,QAAQ,EAAE;QACN,EAAE,EAAE,MAAM;QACV,KAAK,EAAE,MAAM;QACb,WAAW,EAAE,yDAAyD;KACzE;IACD,eAAe,EAAE;QACb,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,KAAK;QACZ,WAAW,EAAE,uCAAuC;KACvD;IACD,sBAAsB,EAAE;QACpB,EAAE,EAAE,oBAAoB;QACxB,KAAK,EAAE,kBAAkB;QACzB,WAAW,EAAE,uFAAuF;KACvG;IACD,SAAS,EAAE;QACP,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,WAAW;QAClB,WAAW,EAAE,iEAAiE;KACjF;IACD,MAAM,EAAE;QACJ,EAAE,EAAE,QAAQ;QACZ,KAAK,EAAE,QAAQ;QACf,WAAW,EAAE,6DAA6D;KAC7E;IACD,KAAK,EAAE;QACH,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,OAAO;QACd,WAAW,EAAE,gEAAgE;KAChF;IACD,UAAU,EAAE;QACR,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,6EAA6E;KAC7F;IACD,kBAAkB,EAAE;QAChB,EAAE,EAAE,kBAAkB;QACtB,KAAK,EAAE,kBAAkB;QACzB,WAAW,EAAE,mGAAmG;KACnH;CACK,CAAC;AAEE,QAAA,gBAAgB,GAAG,IAAA,aAAI,EAAC,iBAAS,EAAE,CAAC,UAAU,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC"}
@@ -11,4 +11,5 @@ export * from './plugin-events';
11
11
  export * from './save-formats';
12
12
  export * from './test-statuses';
13
13
  export * from './tool-names';
14
+ export * from './two-up-modes';
14
15
  export * from './view-modes';
@@ -27,5 +27,6 @@ __exportStar(require("./plugin-events"), exports);
27
27
  __exportStar(require("./save-formats"), exports);
28
28
  __exportStar(require("./test-statuses"), exports);
29
29
  __exportStar(require("./tool-names"), exports);
30
+ __exportStar(require("./two-up-modes"), exports);
30
31
  __exportStar(require("./view-modes"), exports);
31
32
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B;AAC3B,6CAA2B;AAC3B,+CAA6B;AAC7B,2CAAyB;AACzB,6CAA2B;AAC3B,gDAA8B;AAC9B,0CAAwB;AACxB,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,kDAAgC;AAChC,+CAA6B;AAC7B,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B;AAC3B,6CAA2B;AAC3B,+CAA6B;AAC7B,2CAAyB;AACzB,6CAA2B;AAC3B,gDAA8B;AAC9B,0CAAwB;AACxB,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,kDAAgC;AAChC,+CAA6B;AAC7B,iDAA+B;AAC/B,+CAA6B"}
@@ -3,6 +3,8 @@ export declare enum LocalStorageKey {
3
3
  TimeTravelUseRecommendedSettings = "time-travel-use-recommended-settings"
4
4
  }
5
5
  export declare const TIME_TRAVEL_PLAYER_VISIBILITY_KEY = "time-travel-player-visibility";
6
+ export declare const TWO_UP_DIFF_VISIBILITY_KEY = "2up-diff-visibility";
7
+ export declare const TWO_UP_FIT_MODE_KEY = "2up-fit-mode";
6
8
  export declare enum UiMode {
7
9
  Old = "old",
8
10
  New = "new"
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UiMode = exports.TIME_TRAVEL_PLAYER_VISIBILITY_KEY = exports.LocalStorageKey = void 0;
3
+ exports.UiMode = exports.TWO_UP_FIT_MODE_KEY = exports.TWO_UP_DIFF_VISIBILITY_KEY = exports.TIME_TRAVEL_PLAYER_VISIBILITY_KEY = exports.LocalStorageKey = void 0;
4
4
  var LocalStorageKey;
5
5
  (function (LocalStorageKey) {
6
6
  LocalStorageKey["UIMode"] = "ui-mode";
7
7
  LocalStorageKey["TimeTravelUseRecommendedSettings"] = "time-travel-use-recommended-settings";
8
8
  })(LocalStorageKey || (exports.LocalStorageKey = LocalStorageKey = {}));
9
9
  exports.TIME_TRAVEL_PLAYER_VISIBILITY_KEY = 'time-travel-player-visibility';
10
+ exports.TWO_UP_DIFF_VISIBILITY_KEY = '2up-diff-visibility';
11
+ exports.TWO_UP_FIT_MODE_KEY = '2up-fit-mode';
10
12
  var UiMode;
11
13
  (function (UiMode) {
12
14
  UiMode["Old"] = "old";
@@ -1 +1 @@
1
- {"version":3,"file":"local-storage.js","sourceRoot":"","sources":["../../../lib/constants/local-storage.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,qCAAkB,CAAA;IAClB,4FAAyE,CAAA;AAC7E,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAEY,QAAA,iCAAiC,GAAG,+BAA+B,CAAC;AAEjF,IAAY,MAGX;AAHD,WAAY,MAAM;IACd,qBAAW,CAAA;IACX,qBAAW,CAAA;AACf,CAAC,EAHW,MAAM,sBAAN,MAAM,QAGjB"}
1
+ {"version":3,"file":"local-storage.js","sourceRoot":"","sources":["../../../lib/constants/local-storage.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,qCAAkB,CAAA;IAClB,4FAAyE,CAAA;AAC7E,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAEY,QAAA,iCAAiC,GAAG,+BAA+B,CAAC;AACpE,QAAA,0BAA0B,GAAG,qBAAqB,CAAC;AACnD,QAAA,mBAAmB,GAAG,cAAc,CAAC;AAElD,IAAY,MAGX;AAHD,WAAY,MAAM;IACd,qBAAW,CAAA;IACX,qBAAW,CAAA;AACf,CAAC,EAHW,MAAM,sBAAN,MAAM,QAGjB"}
@@ -0,0 +1,4 @@
1
+ export declare enum TwoUpFitMode {
2
+ FitToView = "fit-to-view",
3
+ FitToWidth = "fit-to-width"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TwoUpFitMode = void 0;
4
+ var TwoUpFitMode;
5
+ (function (TwoUpFitMode) {
6
+ TwoUpFitMode["FitToView"] = "fit-to-view";
7
+ TwoUpFitMode["FitToWidth"] = "fit-to-width";
8
+ })(TwoUpFitMode || (exports.TwoUpFitMode = TwoUpFitMode = {}));
9
+ //# sourceMappingURL=two-up-modes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"two-up-modes.js","sourceRoot":"","sources":["../../../lib/constants/two-up-modes.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAGX;AAHD,WAAY,YAAY;IACpB,yCAAyB,CAAA;IACzB,2CAA2B,CAAA;AAC/B,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}