@applitools/eyes 1.15.0 → 1.16.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,123 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.16.2](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.16.1...js/eyes@1.16.2) (2024-03-18)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/css-tree bumped to 1.1.2
9
+ #### Bug Fixes
10
+
11
+ * trigger js release again ([1695f3d](https://github.com/Applitools-Dev/sdk/commit/1695f3d9967c7ab7b5d8c8637e86faa935a9047f))
12
+ * @applitools/dom-snapshot bumped to 4.9.2
13
+
14
+ * @applitools/spec-driver-webdriver bumped to 1.1.3
15
+
16
+ * @applitools/spec-driver-selenium bumped to 1.5.72
17
+
18
+ * @applitools/spec-driver-puppeteer bumped to 1.4.3
19
+
20
+ * @applitools/driver bumped to 1.16.5
21
+ #### Bug Fixes
22
+
23
+ * trigger js release again ([1695f3d](https://github.com/Applitools-Dev/sdk/commit/1695f3d9967c7ab7b5d8c8637e86faa935a9047f))
24
+ * @applitools/screenshoter bumped to 3.8.27
25
+
26
+ * @applitools/nml-client bumped to 1.7.5
27
+
28
+ * @applitools/ufg-client bumped to 1.10.2
29
+
30
+ * @applitools/ec-client bumped to 1.7.30
31
+
32
+ * @applitools/core bumped to 4.10.2
33
+
34
+
35
+ ## [1.16.1](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.16.0...js/eyes@1.16.1) (2024-03-18)
36
+
37
+
38
+ ### Dependencies
39
+
40
+ * @applitools/css-tree bumped to 1.1.1
41
+ #### Bug Fixes
42
+
43
+ * trigger js release ([dbc9bf8](https://github.com/Applitools-Dev/sdk/commit/dbc9bf8da3ab5d93e570881ba2c61efa47a1b342))
44
+ * @applitools/dom-snapshot bumped to 4.9.1
45
+
46
+ * @applitools/spec-driver-webdriver bumped to 1.1.2
47
+
48
+ * @applitools/spec-driver-selenium bumped to 1.5.71
49
+
50
+ * @applitools/spec-driver-puppeteer bumped to 1.4.2
51
+
52
+ * @applitools/driver bumped to 1.16.4
53
+ #### Bug Fixes
54
+
55
+ * trigger js release ([dbc9bf8](https://github.com/Applitools-Dev/sdk/commit/dbc9bf8da3ab5d93e570881ba2c61efa47a1b342))
56
+ * @applitools/screenshoter bumped to 3.8.26
57
+
58
+ * @applitools/nml-client bumped to 1.7.4
59
+
60
+ * @applitools/ufg-client bumped to 1.10.1
61
+
62
+ * @applitools/ec-client bumped to 1.7.29
63
+
64
+ * @applitools/core bumped to 4.10.1
65
+
66
+
67
+ ## [1.16.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.15.0...js/eyes@1.16.0) (2024-03-17)
68
+
69
+
70
+ ### Features
71
+
72
+ * ios multi device target ([#2160](https://github.com/Applitools-Dev/sdk/issues/2160)) ([3874fb8](https://github.com/Applitools-Dev/sdk/commit/3874fb8ad77039abbb5ab78c00ffb45829b2db28))
73
+
74
+
75
+ ### Dependencies
76
+
77
+ * @applitools/css-tree bumped to 1.1.0
78
+ #### Features
79
+
80
+ * support [@container](https://github.com/container) and [@layer](https://github.com/layer) cssom rules ([#2209](https://github.com/Applitools-Dev/sdk/issues/2209)) ([7da07c4](https://github.com/Applitools-Dev/sdk/commit/7da07c4f5b7f338fb5944ce244af8f2de928cab6))
81
+ * @applitools/dom-snapshot bumped to 4.9.0
82
+ #### Features
83
+
84
+ * support [@container](https://github.com/container) and [@layer](https://github.com/layer) cssom rules ([#2209](https://github.com/Applitools-Dev/sdk/issues/2209)) ([7da07c4](https://github.com/Applitools-Dev/sdk/commit/7da07c4f5b7f338fb5944ce244af8f2de928cab6))
85
+
86
+
87
+
88
+ * @applitools/driver bumped to 1.16.3
89
+ #### Bug Fixes
90
+
91
+ * skip execution of getCurrentWorld and getWorlds when env var is set ([#2234](https://github.com/Applitools-Dev/sdk/issues/2234)) ([3a88602](https://github.com/Applitools-Dev/sdk/commit/3a886028b0437b73dae0474408d9bb74ba940dec))
92
+ * trigger build ([acb9c88](https://github.com/Applitools-Dev/sdk/commit/acb9c88161cf55e8b1e409425b5571d69a2e1d5c))
93
+ * @applitools/ufg-client bumped to 1.10.0
94
+ #### Features
95
+
96
+ * support [@container](https://github.com/container) and [@layer](https://github.com/layer) cssom rules ([#2209](https://github.com/Applitools-Dev/sdk/issues/2209)) ([7da07c4](https://github.com/Applitools-Dev/sdk/commit/7da07c4f5b7f338fb5944ce244af8f2de928cab6))
97
+ * throttle fetching resources by default ([#2216](https://github.com/Applitools-Dev/sdk/issues/2216)) ([a2da800](https://github.com/Applitools-Dev/sdk/commit/a2da80076eb30241a168500903a9d80344900213))
98
+
99
+
100
+
101
+ * @applitools/spec-driver-webdriver bumped to 1.1.1
102
+
103
+ * @applitools/spec-driver-selenium bumped to 1.5.70
104
+
105
+ * @applitools/spec-driver-puppeteer bumped to 1.4.1
106
+
107
+ * @applitools/screenshoter bumped to 3.8.25
108
+
109
+ * @applitools/nml-client bumped to 1.7.3
110
+
111
+ * @applitools/ec-client bumped to 1.7.28
112
+
113
+ * @applitools/core bumped to 4.10.0
114
+ #### Features
115
+
116
+ * support webview in nml ([#2236](https://github.com/Applitools-Dev/sdk/issues/2236)) ([b4440d8](https://github.com/Applitools-Dev/sdk/commit/b4440d86a863d1af8089f8606ac6819636fa46f4))
117
+
118
+
119
+
120
+
3
121
  ## [1.15.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-v1.14.1...js/eyes@1.15.0) (2024-02-29)
4
122
 
5
123
 
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ /* GENERATED FILE */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.IosMultiDeviceTargetEnum = void 0;
5
+ var IosMultiDeviceTargetEnum;
6
+ (function (IosMultiDeviceTargetEnum) {
7
+ IosMultiDeviceTargetEnum["iPhone_SE_3"] = "iPhone SE (3rd generation)";
8
+ IosMultiDeviceTargetEnum["iPhone_SE_2"] = "iPhone SE (2nd generation)";
9
+ IosMultiDeviceTargetEnum["iPhone_8"] = "iPhone 8";
10
+ IosMultiDeviceTargetEnum["iPhone_8_Plus"] = "iPhone 8 Plus";
11
+ IosMultiDeviceTargetEnum["iPhone_13_mini"] = "iPhone 13 mini";
12
+ IosMultiDeviceTargetEnum["iPhone_12_mini"] = "iPhone 12 mini";
13
+ IosMultiDeviceTargetEnum["iPhone_11_Pro"] = "iPhone 11 Pro";
14
+ IosMultiDeviceTargetEnum["iPhone_X"] = "iPhone X";
15
+ IosMultiDeviceTargetEnum["iPhone_XR"] = "iPhone XR";
16
+ IosMultiDeviceTargetEnum["iPhone_Xs"] = "iPhone Xs";
17
+ IosMultiDeviceTargetEnum["iPhone_Xs_Max"] = "iPhone Xs Max";
18
+ IosMultiDeviceTargetEnum["iPhone_11"] = "iPhone 11";
19
+ IosMultiDeviceTargetEnum["iPhone_11_Pro_Max"] = "iPhone 11 Pro Max";
20
+ IosMultiDeviceTargetEnum["iPhone_12"] = "iPhone 12";
21
+ IosMultiDeviceTargetEnum["iPhone_12_Pro"] = "iPhone 12 Pro";
22
+ IosMultiDeviceTargetEnum["iPhone_12_Pro_Max"] = "iPhone 12 Pro Max";
23
+ IosMultiDeviceTargetEnum["iPhone_13"] = "iPhone 13";
24
+ IosMultiDeviceTargetEnum["iPhone_13_Pro"] = "iPhone 13 Pro";
25
+ IosMultiDeviceTargetEnum["iPhone_13_Pro_Max"] = "iPhone 13 Pro Max";
26
+ IosMultiDeviceTargetEnum["iPhone_14"] = "iPhone 14";
27
+ IosMultiDeviceTargetEnum["iPhone_14_Pro"] = "iPhone 14 Pro";
28
+ IosMultiDeviceTargetEnum["iPhone_14_Plus"] = "iPhone 14 Plus";
29
+ IosMultiDeviceTargetEnum["iPhone_14_Pro_Max"] = "iPhone 14 Pro Max";
30
+ })(IosMultiDeviceTargetEnum || (exports.IosMultiDeviceTargetEnum = IosMultiDeviceTargetEnum = {}));
@@ -880,6 +880,12 @@ class ConfigurationData {
880
880
  }
881
881
  return this;
882
882
  }
883
+ addMultiDeviceTarget(deviceName) {
884
+ if (!this.browsersInfo)
885
+ this.browsersInfo = [];
886
+ this.browsersInfo.push({ iosDeviceInfo: { deviceName } });
887
+ return this;
888
+ }
883
889
  get visualGridOptions() {
884
890
  return this._config.visualGridOptions;
885
891
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes",
3
- "version": "1.15.0",
3
+ "version": "1.16.2",
4
4
  "keywords": [
5
5
  "applitools",
6
6
  "eyes",
@@ -45,7 +45,7 @@
45
45
  "test": "run --top-level mocha './test/**/*.spec.ts'"
46
46
  },
47
47
  "dependencies": {
48
- "@applitools/core": "4.9.1",
48
+ "@applitools/core": "4.10.2",
49
49
  "@applitools/logger": "2.0.14",
50
50
  "@applitools/utils": "1.7.0"
51
51
  },
@@ -0,0 +1,26 @@
1
+ export declare enum IosMultiDeviceTargetEnum {
2
+ iPhone_SE_3 = "iPhone SE (3rd generation)",
3
+ iPhone_SE_2 = "iPhone SE (2nd generation)",
4
+ iPhone_8 = "iPhone 8",
5
+ iPhone_8_Plus = "iPhone 8 Plus",
6
+ iPhone_13_mini = "iPhone 13 mini",
7
+ iPhone_12_mini = "iPhone 12 mini",
8
+ iPhone_11_Pro = "iPhone 11 Pro",
9
+ iPhone_X = "iPhone X",
10
+ iPhone_XR = "iPhone XR",
11
+ iPhone_Xs = "iPhone Xs",
12
+ iPhone_Xs_Max = "iPhone Xs Max",
13
+ iPhone_11 = "iPhone 11",
14
+ iPhone_11_Pro_Max = "iPhone 11 Pro Max",
15
+ iPhone_12 = "iPhone 12",
16
+ iPhone_12_Pro = "iPhone 12 Pro",
17
+ iPhone_12_Pro_Max = "iPhone 12 Pro Max",
18
+ iPhone_13 = "iPhone 13",
19
+ iPhone_13_Pro = "iPhone 13 Pro",
20
+ iPhone_13_Pro_Max = "iPhone 13 Pro Max",
21
+ iPhone_14 = "iPhone 14",
22
+ iPhone_14_Pro = "iPhone 14 Pro",
23
+ iPhone_14_Plus = "iPhone 14 Plus",
24
+ iPhone_14_Pro_Max = "iPhone 14 Pro Max"
25
+ }
26
+ export type IosMultiDeviceTarget = `${IosMultiDeviceTargetEnum}`;
@@ -9,9 +9,10 @@ import { AndroidDeviceName } from '../enums/AndroidDeviceName';
9
9
  import { AndroidVersion } from '../enums/AndroidVersion';
10
10
  import { IosDeviceName } from '../enums/IosDeviceName';
11
11
  import { IosVersion } from '../enums/IosVersion';
12
+ import { IosMultiDeviceTarget } from '../enums/IosMultiDeviceTarget';
12
13
  import { ScreenOrientation } from '../enums/ScreenOrientation';
13
14
  import { AccessibilitySettings } from './AccessibilitySettings';
14
- import { DesktopBrowserInfo, ChromeEmulationInfo, IOSDeviceInfo, AndroidDeviceInfo, ChromeEmulationInfoLegacy } from './RenderInfo';
15
+ import { RenderInfo, RenderInfoLegacy } from './RenderInfo';
15
16
  import { CutProvider } from './CutProvider';
16
17
  import { DebugScreenshotProvider } from './DebugScreenshotProvider';
17
18
  import { RectangleSize, RectangleSizeData } from './RectangleSize';
@@ -21,7 +22,6 @@ import { AUTProxySettings } from './AUTProxySettings';
21
22
  import { BatchInfo, BatchInfoData } from './BatchInfo';
22
23
  import { PropertyData, PropertyDataData } from './PropertyData';
23
24
  import { ImageMatchSettings } from './ImageMatchSettings';
24
- type RenderInfo = DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | AndroidDeviceInfo | ChromeEmulationInfoLegacy;
25
25
  export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
26
26
  /** @undocumented */
27
27
  debugScreenshots?: DebugScreenshotProvider;
@@ -75,7 +75,7 @@ export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
75
75
  scaleRatio?: number;
76
76
  /** @undocumented */
77
77
  concurrentSessions?: number;
78
- browsersInfo?: (DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | AndroidDeviceInfo)[];
78
+ browsersInfo?: RenderInfo[];
79
79
  visualGridOptions?: Record<string, any>;
80
80
  layoutBreakpoints?: boolean | number[] | {
81
81
  breakpoints: number[] | boolean;
@@ -322,16 +322,17 @@ export declare class ConfigurationData<TSpec extends Core.SpecType = Core.SpecTy
322
322
  getConcurrentSessions(): number;
323
323
  /** @undocumented */
324
324
  setConcurrentSessions(concurrentSessions: number): this;
325
- get browsersInfo(): (DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | AndroidDeviceInfo)[];
326
- set browsersInfo(browsersInfo: (DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | AndroidDeviceInfo)[]);
325
+ get browsersInfo(): RenderInfo[];
326
+ set browsersInfo(browsersInfo: RenderInfo[]);
327
327
  getBrowsersInfo(): RenderInfo[];
328
- setBrowsersInfo(browsersInfo: RenderInfo[]): this;
329
- addBrowsers(...browsersInfo: RenderInfo[]): this;
330
- addBrowser(browserInfo: RenderInfo): this;
328
+ setBrowsersInfo(browsersInfo: RenderInfoLegacy[]): this;
329
+ addBrowsers(...browsersInfo: RenderInfoLegacy[]): this;
330
+ addBrowser(browserInfo: RenderInfoLegacy): this;
331
331
  addBrowser(width: number, height: number, name?: BrowserType): this;
332
332
  addDeviceEmulation(deviceName: DeviceName, screenOrientation?: ScreenOrientation): this;
333
333
  addMobileDevice(deviceName: AndroidDeviceName, screenOrientation: ScreenOrientation, version?: AndroidVersion): this;
334
334
  addMobileDevice(deviceName: IosDeviceName, screenOrientation: ScreenOrientation, version?: IosVersion): this;
335
+ addMultiDeviceTarget(deviceName: IosMultiDeviceTarget): this;
335
336
  get visualGridOptions(): {
336
337
  [key: string]: any;
337
338
  };
@@ -380,4 +381,3 @@ export declare class ConfigurationData<TSpec extends Core.SpecType = Core.SpecTy
380
381
  /** @internal */
381
382
  toString(): string;
382
383
  }
383
- export {};
@@ -5,6 +5,7 @@ import { IosVersion } from '../enums/IosVersion';
5
5
  import { AndroidDeviceName } from '../enums/AndroidDeviceName';
6
6
  import { AndroidVersion } from '../enums/AndroidVersion';
7
7
  import { ScreenOrientation } from '../enums/ScreenOrientation';
8
+ import { IosMultiDeviceTarget } from '../enums/IosMultiDeviceTarget';
8
9
  export type DesktopBrowserInfo = {
9
10
  name?: BrowserType;
10
11
  width: number;
@@ -35,3 +36,8 @@ export type AndroidDeviceInfo = {
35
36
  screenOrientation?: ScreenOrientation;
36
37
  };
37
38
  };
39
+ export type IOSMultiDeviceInfo = {
40
+ deviceName: IosMultiDeviceTarget;
41
+ };
42
+ export type RenderInfoLegacy = DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | AndroidDeviceInfo | ChromeEmulationInfoLegacy;
43
+ export type RenderInfo = DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | AndroidDeviceInfo | IOSMultiDeviceInfo;