@applitools/eyes 1.33.3 → 1.34.0-debug-20250429

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 (142) hide show
  1. package/CHANGELOG.md +96 -0
  2. package/dist/BatchClose.js +84 -0
  3. package/dist/Eyes.js +750 -0
  4. package/dist/Logger.js +122 -0
  5. package/dist/Runners.js +130 -0
  6. package/dist/SDK.js +45 -0
  7. package/dist/SessionEventHandlers.js +193 -0
  8. package/dist/cli/cli.js +56 -0
  9. package/dist/cli/load-config.js +73 -0
  10. package/dist/enums/AccessibilityGuidelinesVersion.js +9 -0
  11. package/dist/enums/AccessibilityLevel.js +9 -0
  12. package/dist/enums/AccessibilityRegionType.js +12 -0
  13. package/dist/enums/AccessibilityStatus.js +9 -0
  14. package/dist/enums/BrowserType.js +23 -0
  15. package/dist/enums/CorsIframeHandle.js +10 -0
  16. package/dist/enums/DeviceName.js +105 -0
  17. package/dist/enums/DynamicTextType.js +13 -0
  18. package/dist/enums/FailureReport.js +8 -0
  19. package/dist/enums/IosDeviceName.js +47 -0
  20. package/dist/enums/IosMultiDeviceTarget.js +30 -0
  21. package/dist/enums/IosVersion.js +10 -0
  22. package/dist/enums/MatchLevel.js +15 -0
  23. package/dist/enums/ScreenOrientation.js +8 -0
  24. package/dist/enums/SessionType.js +8 -0
  25. package/dist/enums/StitchMode.js +11 -0
  26. package/dist/enums/TestResultsStatus.js +9 -0
  27. package/dist/errors/DiffsFoundError.js +38 -0
  28. package/dist/errors/EyesError.js +6 -0
  29. package/dist/errors/NewTestError.js +38 -0
  30. package/dist/errors/TestFailedError.js +47 -0
  31. package/dist/index.js +128 -0
  32. package/dist/input/AUTProxySettings.js +2 -0
  33. package/dist/input/AccessibilityMatchSettings.js +109 -0
  34. package/dist/input/AccessibilitySettings.js +2 -0
  35. package/dist/input/BatchInfo.js +153 -0
  36. package/dist/input/CheckSettings.js +702 -0
  37. package/dist/input/Configuration.js +1179 -0
  38. package/dist/input/CutProvider.js +132 -0
  39. package/dist/input/DebugScreenshotProvider.js +2 -0
  40. package/dist/input/DensityMetrics.js +2 -0
  41. package/dist/input/ExactMatchSettings.js +102 -0
  42. package/dist/input/EyesSelector.js +2 -0
  43. package/dist/input/FloatingMatchSettings.js +152 -0
  44. package/dist/input/Image.js +2 -0
  45. package/dist/input/ImageMatchSettings.js +271 -0
  46. package/dist/input/ImageRotation.js +59 -0
  47. package/dist/input/LatestCommitInfo.js +2 -0
  48. package/dist/input/LazyLoadOptions.js +2 -0
  49. package/dist/input/Location.js +74 -0
  50. package/dist/input/LogHandler.js +90 -0
  51. package/dist/input/OCRRegion.js +2 -0
  52. package/dist/input/OCRSettings.js +2 -0
  53. package/dist/input/PropertyData.js +76 -0
  54. package/dist/input/ProxySettings.js +77 -0
  55. package/dist/input/RectangleSize.js +74 -0
  56. package/dist/input/Region.js +135 -0
  57. package/dist/input/RenderInfo.js +2 -0
  58. package/dist/input/RunnerOptions.js +56 -0
  59. package/dist/input/VisualLocatorSettings.js +2 -0
  60. package/dist/output/ApiUrls.js +102 -0
  61. package/dist/output/AppUrls.js +66 -0
  62. package/dist/output/MatchResult.js +66 -0
  63. package/dist/output/SessionUrls.js +66 -0
  64. package/dist/output/StepInfo.js +118 -0
  65. package/dist/output/TestAccessibilityStatus.js +2 -0
  66. package/dist/output/TestResultContainer.js +49 -0
  67. package/dist/output/TestResults.js +378 -0
  68. package/dist/output/TestResultsSummary.js +49 -0
  69. package/dist/output/TextRegion.js +2 -0
  70. package/dist/output/ValidationInfo.js +60 -0
  71. package/dist/output/ValidationResult.js +53 -0
  72. package/package.json +4 -3
  73. package/types/BatchClose.d.ts +23 -0
  74. package/types/Eyes.d.ts +255 -0
  75. package/types/Logger.d.ts +30 -0
  76. package/types/Runners.d.ts +41 -0
  77. package/types/SDK.d.ts +20 -0
  78. package/types/SessionEventHandlers.d.ts +78 -0
  79. package/types/cli/cli.d.ts +2 -0
  80. package/types/cli/load-config.d.ts +1 -0
  81. package/types/enums/AccessibilityGuidelinesVersion.d.ts +5 -0
  82. package/types/enums/AccessibilityLevel.d.ts +5 -0
  83. package/types/enums/AccessibilityRegionType.d.ts +8 -0
  84. package/types/enums/AccessibilityStatus.d.ts +5 -0
  85. package/types/enums/BrowserType.d.ts +20 -0
  86. package/types/enums/CorsIframeHandle.d.ts +7 -0
  87. package/types/enums/DeviceName.d.ts +101 -0
  88. package/types/enums/DynamicTextType.d.ts +9 -0
  89. package/types/enums/FailureReport.d.ts +5 -0
  90. package/types/enums/IosDeviceName.d.ts +43 -0
  91. package/types/enums/IosMultiDeviceTarget.d.ts +26 -0
  92. package/types/enums/IosVersion.d.ts +7 -0
  93. package/types/enums/MatchLevel.d.ts +12 -0
  94. package/types/enums/ScreenOrientation.d.ts +5 -0
  95. package/types/enums/SessionType.d.ts +5 -0
  96. package/types/enums/StitchMode.d.ts +8 -0
  97. package/types/enums/TestResultsStatus.d.ts +6 -0
  98. package/types/errors/DiffsFoundError.d.ts +6 -0
  99. package/types/errors/EyesError.d.ts +2 -0
  100. package/types/errors/NewTestError.d.ts +6 -0
  101. package/types/errors/TestFailedError.d.ts +9 -0
  102. package/types/index.d.ts +60 -0
  103. package/types/input/AUTProxySettings.d.ts +5 -0
  104. package/types/input/AccessibilityMatchSettings.d.ts +34 -0
  105. package/types/input/AccessibilitySettings.d.ts +6 -0
  106. package/types/input/BatchInfo.d.ts +47 -0
  107. package/types/input/CheckSettings.d.ts +280 -0
  108. package/types/input/Configuration.d.ts +437 -0
  109. package/types/input/CutProvider.d.ts +44 -0
  110. package/types/input/DebugScreenshotProvider.d.ts +5 -0
  111. package/types/input/DensityMetrics.d.ts +5 -0
  112. package/types/input/ExactMatchSettings.d.ts +34 -0
  113. package/types/input/EyesSelector.d.ts +6 -0
  114. package/types/input/FloatingMatchSettings.d.ts +50 -0
  115. package/types/input/Image.d.ts +11 -0
  116. package/types/input/ImageMatchSettings.d.ts +95 -0
  117. package/types/input/ImageRotation.d.ts +15 -0
  118. package/types/input/LatestCommitInfo.d.ts +4 -0
  119. package/types/input/LazyLoadOptions.d.ts +5 -0
  120. package/types/input/Location.d.ts +23 -0
  121. package/types/input/LogHandler.d.ts +45 -0
  122. package/types/input/OCRRegion.d.ts +9 -0
  123. package/types/input/OCRSettings.d.ts +6 -0
  124. package/types/input/PropertyData.d.ts +23 -0
  125. package/types/input/ProxySettings.d.ts +25 -0
  126. package/types/input/RectangleSize.d.ts +23 -0
  127. package/types/input/Region.d.ts +46 -0
  128. package/types/input/RenderInfo.d.ts +47 -0
  129. package/types/input/RunnerOptions.d.ts +21 -0
  130. package/types/input/VisualLocatorSettings.d.ts +4 -0
  131. package/types/output/ApiUrls.d.ts +41 -0
  132. package/types/output/AppUrls.d.ts +23 -0
  133. package/types/output/MatchResult.d.ts +23 -0
  134. package/types/output/SessionUrls.d.ts +23 -0
  135. package/types/output/StepInfo.d.ts +50 -0
  136. package/types/output/TestAccessibilityStatus.d.ts +8 -0
  137. package/types/output/TestResultContainer.d.ts +31 -0
  138. package/types/output/TestResults.d.ts +186 -0
  139. package/types/output/TestResultsSummary.d.ts +18 -0
  140. package/types/output/TextRegion.d.ts +7 -0
  141. package/types/output/ValidationInfo.d.ts +21 -0
  142. package/types/output/ValidationResult.d.ts +18 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,101 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.34.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.33.4...js/eyes@1.34.0) (2025-04-17)
4
+
5
+
6
+ ### Features
7
+
8
+ * height layout breakpoints ([#2801](https://github.com/Applitools-Dev/sdk/issues/2801)) ([819e241](https://github.com/Applitools-Dev/sdk/commit/819e2418f1fd93220a07dfbcf1157ffcf4995dd7))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add checks for undefined regions in CheckSettings | AD-9042 ([#2868](https://github.com/Applitools-Dev/sdk/issues/2868)) ([0f7c991](https://github.com/Applitools-Dev/sdk/commit/0f7c9913d64e0535ba5ffe632923a3bf440be65f))
14
+
15
+
16
+ ### Dependencies
17
+
18
+ * @applitools/dom-snapshot bumped to 4.11.18
19
+ #### Bug Fixes
20
+
21
+ * simplify sandbox creation and ensure cleanup after execution ([#2869](https://github.com/Applitools-Dev/sdk/issues/2869)) ([72c5e01](https://github.com/Applitools-Dev/sdk/commit/72c5e01307f6abd83fab365a7e235124caae0694))
22
+
23
+
24
+
25
+ * @applitools/snippets bumped to 2.6.5
26
+ #### Performance Improvements
27
+
28
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
29
+ * @applitools/driver bumped to 1.21.1
30
+ #### Bug Fixes
31
+
32
+ * executePoll error logging FLD-2870 ([#2890](https://github.com/Applitools-Dev/sdk/issues/2890)) ([a8ff720](https://github.com/Applitools-Dev/sdk/commit/a8ff720efafacabe2023282748a6d8a0f1b3ff73))
33
+
34
+
35
+
36
+ * @applitools/spec-driver-webdriver bumped to 1.2.2
37
+ #### Performance Improvements
38
+
39
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
40
+
41
+
42
+
43
+ * @applitools/spec-driver-selenium bumped to 1.5.98
44
+ #### Performance Improvements
45
+
46
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
47
+
48
+
49
+
50
+ * @applitools/spec-driver-puppeteer bumped to 1.4.27
51
+ #### Performance Improvements
52
+
53
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
54
+
55
+
56
+
57
+ * @applitools/screenshoter bumped to 3.11.1
58
+ #### Performance Improvements
59
+
60
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
61
+
62
+
63
+
64
+ * @applitools/nml-client bumped to 1.9.1
65
+ #### Performance Improvements
66
+
67
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
68
+
69
+
70
+
71
+ * @applitools/tunnel-client bumped to 1.6.5
72
+ #### Bug Fixes
73
+
74
+ * enhance error messages in tunnel client ([cab26e6](https://github.com/Applitools-Dev/sdk/commit/cab26e6e3d56fa3cbabaa1a9c68de13046b8f57e))
75
+ * @applitools/ufg-client bumped to 1.16.9
76
+ #### Bug Fixes
77
+
78
+ * basic auth protected resources | FLD-2761 | FMRI-120 ([#2444](https://github.com/Applitools-Dev/sdk/issues/2444)) ([b48cf49](https://github.com/Applitools-Dev/sdk/commit/b48cf49dec50bbf1ed2ba111608a48cf09962565))
79
+
80
+
81
+ #### Performance Improvements
82
+
83
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
84
+ * @applitools/ec-client bumped to 1.10.9
85
+ #### Performance Improvements
86
+
87
+ * cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
88
+
89
+
90
+
91
+ * @applitools/core bumped to 4.37.0
92
+ #### Features
93
+
94
+ * height layout breakpoints ([#2801](https://github.com/Applitools-Dev/sdk/issues/2801)) ([819e241](https://github.com/Applitools-Dev/sdk/commit/819e2418f1fd93220a07dfbcf1157ffcf4995dd7))
95
+
96
+
97
+
98
+
3
99
  ## [1.33.2](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.33.1...js/eyes@1.33.2) (2025-04-03)
4
100
 
5
101
 
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.BatchClose = exports.closeBatch = void 0;
27
+ const SDK_1 = require("./SDK");
28
+ const utils = __importStar(require("@applitools/utils"));
29
+ function closeBatch(sdk) {
30
+ return function closeBatch(settings) {
31
+ utils.guard.notNull(settings.batchIds, { name: 'options.batchIds' });
32
+ const { core } = (0, SDK_1.initSDK)(sdk);
33
+ return core.closeBatch({
34
+ settings: settings.batchIds.map(batchId => ({ batchId, eyesServerUrl: settings.serverUrl, ...settings })),
35
+ });
36
+ };
37
+ }
38
+ exports.closeBatch = closeBatch;
39
+ class BatchClose {
40
+ get _sdk() {
41
+ return this.constructor._sdk;
42
+ }
43
+ static async close(settings) {
44
+ utils.guard.notNull(settings.batchIds, { name: 'options.batchIds' });
45
+ const { core } = (0, SDK_1.initSDK)(this._sdk);
46
+ await core.closeBatch({
47
+ settings: settings.batchIds.map(batchId => ({ batchId, eyesServerUrl: settings.serverUrl, ...settings })),
48
+ });
49
+ }
50
+ constructor(options) {
51
+ this._settings = {};
52
+ const { core } = (0, SDK_1.initSDK)(this._sdk);
53
+ this._core = core;
54
+ if (options)
55
+ this._settings = options;
56
+ }
57
+ async close() {
58
+ utils.guard.notNull(this._settings.batchIds, { name: 'batchIds' });
59
+ await this._core.closeBatch({
60
+ settings: this._settings.batchIds.map(batchId => ({
61
+ batchId,
62
+ eyesServerUrl: this._settings.serverUrl,
63
+ ...this._settings,
64
+ })),
65
+ });
66
+ }
67
+ setBatchIds(batchIds) {
68
+ this._settings.batchIds = batchIds;
69
+ return this;
70
+ }
71
+ setUrl(serverUrl) {
72
+ this._settings.serverUrl = serverUrl;
73
+ return this;
74
+ }
75
+ setApiKey(apiKey) {
76
+ this._settings.apiKey = apiKey;
77
+ return this;
78
+ }
79
+ setProxy(proxy) {
80
+ this._settings.proxy = proxy;
81
+ return this;
82
+ }
83
+ }
84
+ exports.BatchClose = BatchClose;