@applitools/eyes-browser 1.4.10 → 1.4.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-browser",
3
- "version": "1.4.10",
3
+ "version": "1.4.12",
4
4
  "keywords": [
5
5
  "applitools",
6
6
  "browser",
@@ -48,7 +48,7 @@
48
48
  "test": "run --top-level mocha './test/**/*.spec.ts'"
49
49
  },
50
50
  "dependencies": {
51
- "@applitools/eyes": "1.22.2"
51
+ "@applitools/eyes": "1.24.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/node": "^12.20.55",
@@ -3,9 +3,14 @@ export declare enum DeviceNameEnum {
3
3
  iPhone_5SE = "iPhone 5/SE",
4
4
  /** @deprecated use {@link iPhone_5SE } instead */
5
5
  iPhone_5S_E = "iPhone 5/SE",
6
+ iPhone_SE_3rd_Gen = "iPhone SE 3rd Gen",
6
7
  iPhone_6_7_8 = "iPhone 6/7/8",
7
8
  iPhone_6_7_8_Plus = "iPhone 6/7/8 Plus",
8
9
  iPhone_X = "iPhone X",
10
+ iPhone_13_Mini = "iPhone 13 Mini",
11
+ iPhone_14_Plus = "iPhone 14 Plus",
12
+ iPhone_14_Pro = "iPhone 14 Pro",
13
+ iPhone_15_Pro = "iPhone 15 Pro",
9
14
  BlackBerry_Z30 = "BlackBerry Z30",
10
15
  Nexus_4 = "Nexus 4",
11
16
  Nexus_5 = "Nexus 5",
@@ -26,6 +31,10 @@ export declare enum DeviceNameEnum {
26
31
  iPad_Mini = "iPad Mini",
27
32
  iPad = "iPad",
28
33
  iPad_Pro = "iPad Pro",
34
+ iPad_8th_Gen = "iPad 8th Gen",
35
+ iPad_10th_Gen = "iPad 10th Gen",
36
+ iPad_Mini_4th_Gen = "iPad Mini 4th Gen",
37
+ iPad_Mini_6th_Gen = "iPad Mini 6th Gen",
29
38
  Blackberry_PlayBook = "Blackberry PlayBook",
30
39
  Nexus_10 = "Nexus 10",
31
40
  Nexus_7 = "Nexus 7",
@@ -63,6 +72,13 @@ export declare enum DeviceNameEnum {
63
72
  Galaxy_Note_9 = "Galaxy Note 9",
64
73
  Galaxy_Note_8 = "Galaxy Note 8",
65
74
  Galaxy_Note_4 = "Galaxy Note 4",
75
+ Galaxy_Tab_A_SM_T510 = "Galaxy Tab A SM-T510",
76
+ Galaxy_Tab_A7_SM_T500 = "Galaxy Tab A7 SM-T500",
77
+ Galaxy_Tab_S8 = "Galaxy Tab S8",
78
+ Galaxy_Tab_A8 = "Galaxy Tab A8",
79
+ Galaxy_S23 = "Galaxy S23",
80
+ Galaxy_S23_Ultra = "Galaxy S23 Ultra",
81
+ Galaxy_A52s = "Galaxy A52s",
66
82
  Pixel_3 = "Pixel 3",
67
83
  Pixel_3_XL = "Pixel 3 XL",
68
84
  Pixel_4 = "Pixel 4",
@@ -74,6 +90,12 @@ export declare enum DeviceNameEnum {
74
90
  Galaxy_Tab_S7 = "Galaxy Tab S7",
75
91
  Sony_Xperia_10_II = "Sony Xperia 10 II",
76
92
  Huawei_Mate_50_Pro = "Huawei Mate 50 Pro",
77
- Huawei_Matepad_11 = "Huawei Matepad 11"
93
+ Huawei_Matepad_11 = "Huawei Matepad 11",
94
+ Huawei_P30 = "Huawei P30",
95
+ Xiaomi_Mi_A3 = "Xiaomi Mi A3",
96
+ Huawei_P40 = "Huawei P40",
97
+ Xiaomi_Redmi_Note_8 = "Xiaomi Redmi Note 8",
98
+ Xiaomi_Mi_Poco_X3_Pro = "Xiaomi Mi Poco X3 Pro",
99
+ Xiaomi_Poco_X3 = "Xiaomi Poco X3"
78
100
  }
79
101
  export type DeviceName = `${DeviceNameEnum}`;
@@ -0,0 +1,9 @@
1
+ export declare enum DynamicTextTypeEnum {
2
+ TextField = "TextField",
3
+ Number = "Number",
4
+ Date = "Date",
5
+ Link = "Link",
6
+ Email = "Email",
7
+ Currency = "Currency"
8
+ }
9
+ export type DynamicTextType = `${DynamicTextTypeEnum}`;
@@ -6,6 +6,7 @@ export declare enum MatchLevelEnum {
6
6
  Content = "Content",
7
7
  IgnoreColors = "IgnoreColors",
8
8
  Strict = "Strict",
9
+ Dynamic = "Dynamic",
9
10
  Exact = "Exact"
10
11
  }
11
12
  export type MatchLevel = `${MatchLevelEnum}`;
package/types/index.d.ts CHANGED
@@ -15,6 +15,7 @@ export { AccessibilityGuidelinesVersion as AccessibilityGuidelinesVersionPlain,
15
15
  export { AccessibilityLevel as AccessibilityLevelPlain, AccessibilityLevelEnum as AccessibilityLevel, } from './enums/AccessibilityLevel';
16
16
  export { AccessibilityRegionType as AccessibilityRegionTypePlain, AccessibilityRegionTypeEnum as AccessibilityRegionType, } from './enums/AccessibilityRegionType';
17
17
  export { AccessibilityStatus as AccessibilityStatusPlain, AccessibilityStatusEnum as AccessibilityStatus, } from './enums/AccessibilityStatus';
18
+ export { DynamicTextType as DynamicTextTypePlain, DynamicTextTypeEnum as DynamicTextType } from './enums/DynamicTextType';
18
19
  export { EyesError } from './errors/EyesError';
19
20
  export { TestFailedError } from './errors/TestFailedError';
20
21
  export { DiffsFoundError } from './errors/DiffsFoundError';
@@ -8,6 +8,7 @@ import { Region, LegacyRegion } from './Region';
8
8
  import { Location } from './Location';
9
9
  import { LazyLoadOptions } from './LazyLoadOptions';
10
10
  import { DensityMetrics } from './DensityMetrics';
11
+ import { DynamicTextType } from '../enums/DynamicTextType';
11
12
  type RegionReference<TSpec extends Core.SpecType> = Region | ElementReference<TSpec>;
12
13
  type ElementReference<TSpec extends Core.SpecType> = TSpec['element'] | SelectorReference<TSpec>;
13
14
  type SelectorReference<TSpec extends Core.SpecType> = EyesSelector<TSpec['selector']>;
@@ -44,6 +45,10 @@ type LegacyCodedFloatingRegion<TRegion = never> = CodedRegion<TRegion> & {
44
45
  type CodedAccessibilityRegion<TRegion = never> = CodedRegion<TRegion> & {
45
46
  type?: AccessibilityRegionType;
46
47
  };
48
+ type DynamicTextTypeOrPattern = DynamicTextType | string;
49
+ type CodedDynamicRegion<TRegion = never> = CodedRegion<TRegion> & {
50
+ type?: DynamicTextTypeOrPattern | DynamicTextTypeOrPattern[];
51
+ };
47
52
  export type CheckSettingsBase<TRegion = never> = {
48
53
  name?: string;
49
54
  region?: Region | TRegion;
@@ -60,6 +65,7 @@ export type CheckSettingsBase<TRegion = never> = {
60
65
  contentRegions?: (CodedRegion<TRegion> | Region | TRegion)[];
61
66
  floatingRegions?: (CodedFloatingRegion<TRegion> | LegacyCodedFloatingRegion<TRegion> | Region | TRegion)[];
62
67
  accessibilityRegions?: (CodedAccessibilityRegion<TRegion> | Region | TRegion)[];
68
+ dynamicRegions?: (CodedDynamicRegion<TRegion> | Region | TRegion)[];
63
69
  pageId?: string;
64
70
  variationGroupId?: string;
65
71
  densityMetrics?: DensityMetrics;
@@ -127,11 +133,16 @@ export declare class CheckSettingsBaseFluent<TRegion = never> {
127
133
  accessibilityRegion(region: Region | LegacyRegion | TRegion, type?: AccessibilityRegionType): this;
128
134
  accessibilityRegions(...regions: (CodedAccessibilityRegion<TRegion> | Region | LegacyRegion | TRegion)[]): this;
129
135
  accessibilityRegions(type: AccessibilityRegionType, ...regions: (Region | LegacyRegion | TRegion)[]): this;
136
+ dynamicRegion(region: CodedDynamicRegion<TRegion>): this;
137
+ dynamicRegion(region: Region | TRegion): this;
138
+ dynamicRegion(region: Region | TRegion, type?: DynamicTextTypeOrPattern | DynamicTextTypeOrPattern[]): this;
139
+ dynamicRegions(...regions: (CodedDynamicRegion<TRegion> | Region | TRegion)[]): this;
130
140
  matchLevel(matchLevel: MatchLevel): typeof this;
131
141
  layout(): typeof this;
132
142
  exact(): typeof this;
133
143
  strict(): typeof this;
134
144
  ignoreColors(): typeof this;
145
+ dynamic(): typeof this;
135
146
  /** @deprecated */
136
147
  content(): typeof this;
137
148
  enablePatterns(enablePatterns?: boolean): typeof this;
@@ -85,6 +85,7 @@ export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
85
85
  disableBrowserFetching?: boolean;
86
86
  waitBeforeCapture?: number;
87
87
  disableNMLUrlCache?: boolean;
88
+ captureStatusBar?: boolean;
88
89
  };
89
90
  export declare class ConfigurationData<TSpec extends Core.SpecType = Core.SpecType> implements Required<Configuration<TSpec>> {
90
91
  protected static readonly _spec: Core.SpecDriver<Core.SpecType>;
@@ -384,6 +385,10 @@ export declare class ConfigurationData<TSpec extends Core.SpecType = Core.SpecTy
384
385
  set disableNMLUrlCache(disableNMLUrlCache: boolean);
385
386
  getDisableNMLUrlCache(): boolean;
386
387
  setDisableNMLUrlCache(disableNMLUrlCache: boolean): this;
388
+ get captureStatusBar(): boolean;
389
+ set captureStatusBar(captureStatusBar: boolean);
390
+ getCaptureStatusBar(): boolean;
391
+ setCaptureStatusBar(captureStatusBar: boolean): this;
387
392
  /** @internal */
388
393
  toObject(): Configuration<TSpec>;
389
394
  /** @internal */
@@ -4,6 +4,7 @@ export type ApiUrls = {
4
4
  readonly checkpointImage: string;
5
5
  readonly checkpointImageThumbnail: string;
6
6
  readonly diffImage: string;
7
+ readonly sideBySideImage: string;
7
8
  };
8
9
  export declare class ApiUrlsData implements Required<ApiUrls> {
9
10
  private _urls;
@@ -29,6 +30,8 @@ export declare class ApiUrlsData implements Required<ApiUrls> {
29
30
  getDiffImage(): string;
30
31
  /** @deprecated */
31
32
  setDiffImage(diffImage: string): void;
33
+ get sideBySideImage(): string;
34
+ getSideBySideImage(): string;
32
35
  /** @internal */
33
36
  toObject(): ApiUrls;
34
37
  /** @internal */