@applitools/eyes 1.45.5 → 1.46.1

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,56 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.46.1](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.46.0...js/eyes@1.46.1) (2026-09-17)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/dom-snapshot bumped to 4.18.3
9
+ #### Bug Fixes
10
+
11
+ * keep authored longhands when a preferred shorthand has no value | FLD-4935 ([#4173](https://github.com/Applitools-Dev/sdk/issues/4173)) ([c864f3d](https://github.com/Applitools-Dev/sdk/commit/c864f3d64f3d13ed7fb931dba6b40cb663d4bb43))
12
+ * @applitools/image bumped to 1.3.3
13
+ #### Bug Fixes
14
+
15
+ * skip empty slices when framing a stitched screenshot | FLD-4924 ([#4197](https://github.com/Applitools-Dev/sdk/issues/4197)) ([9c160fe](https://github.com/Applitools-Dev/sdk/commit/9c160fe4c2bc60b03105cf6c2c54131f26ea0357))
16
+ * @applitools/dom-capture bumped to 11.8.6
17
+ #### Bug Fixes
18
+
19
+ * don't mark visible wrapped inline text as obscured | FLD-4963 ([#4195](https://github.com/Applitools-Dev/sdk/issues/4195)) ([9d6d646](https://github.com/Applitools-Dev/sdk/commit/9d6d646d60d37545f1ec6eb6e5ad3ce011c3a198))
20
+ * @applitools/screenshoter bumped to 3.12.32
21
+
22
+ * @applitools/nml-client bumped to 1.12.4
23
+
24
+ * @applitools/ufg-client bumped to 1.23.4
25
+
26
+ * @applitools/core-base bumped to 1.39.1
27
+
28
+ * @applitools/ec-client bumped to 1.12.47
29
+
30
+ * @applitools/core bumped to 4.70.2
31
+
32
+
33
+ ## [1.46.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.45.5...js/eyes@1.46.0) (2026-09-15)
34
+
35
+
36
+ ### Features
37
+
38
+ * NLP authoring (eyes.run) for eyes-playwright via the Eyes NLP service | AD-13296 ([#3936](https://github.com/Applitools-Dev/sdk/issues/3936)) ([c0f81d1](https://github.com/Applitools-Dev/sdk/commit/c0f81d1d3237945001ddf918954ee22a962aea03))
39
+
40
+
41
+ ### Dependencies
42
+
43
+ * @applitools/core-base bumped to 1.39.0
44
+ #### Features
45
+
46
+ * NLP authoring (eyes.run) for eyes-playwright via the Eyes NLP service | AD-13296 ([#3936](https://github.com/Applitools-Dev/sdk/issues/3936)) ([c0f81d1](https://github.com/Applitools-Dev/sdk/commit/c0f81d1d3237945001ddf918954ee22a962aea03))
47
+ * @applitools/nml-client bumped to 1.12.3
48
+
49
+ * @applitools/ec-client bumped to 1.12.46
50
+
51
+ * @applitools/core bumped to 4.70.1
52
+
53
+
3
54
  ## [1.45.5](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.45.4...js/eyes@1.45.5) (2026-09-14)
4
55
 
5
56
 
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EyesNlpError = void 0;
4
+ const EyesError_1 = require("./EyesError");
5
+ class EyesNlpError extends EyesError_1.EyesError {
6
+ constructor(testStep, options) {
7
+ var _a;
8
+ super((_a = options === null || options === void 0 ? void 0 : options.message) !== null && _a !== void 0 ? _a : `NLP step '${testStep}' failed`, options === null || options === void 0 ? void 0 : options.reason);
9
+ this.stepSuccessful = false;
10
+ this.testStep = testStep;
11
+ }
12
+ }
13
+ exports.EyesNlpError = EyesNlpError;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RunnerOptionsFluent = exports.Region = exports.RectangleSize = exports.ProxySettings = exports.PropertyData = exports.NullLogHandler = exports.ConsoleLogHandler = exports.FileLogHandler = exports.LogHandler = exports.Location = exports.ImageRotation = exports.ImageMatchSettings = exports.FloatingMatchSettings = exports.ExactMatchSettings = exports.UnscaledFixedCutProvider = exports.FixedCutProvider = exports.CutProvider = exports.Configuration = exports.Target = exports.TargetAutomation = exports.TargetImage = exports.CheckSettingsAutomation = exports.CheckSettingsImage = exports.BatchInfo = exports.AccessibilityMatchSettings = exports.EyesNotOpenError = exports.NewTestError = exports.DiffsFoundError = exports.TestFailedError = exports.EyesError = exports.DynamicTextType = exports.AccessibilityStatus = exports.AccessibilityRegionType = exports.AccessibilityLevel = exports.AccessibilityGuidelinesVersion = exports.TestResultsStatus = exports.StitchMode = exports.SessionType = exports.ScreenOrientation = exports.MatchLevel = exports.IosVersion = exports.AndroidDeviceTarget = exports.IosDeviceTarget = exports.AndroidMultiDeviceTarget = exports.IosMultiDeviceTarget = exports.IosDeviceName = exports.FailureReport = exports.DeviceName = exports.CorsIframeHandle = exports.BrowserType = void 0;
4
- exports.RemoteSessionEventHandler = exports.SessionEventHandlers = exports.SessionEventHandler = exports.VisualGridRunner = exports.ClassicRunner = exports.EyesRunner = exports.closeBatch = exports.BatchClose = exports.Eyes = exports.Logger = exports.ValidationResult = exports.ValidationInfo = exports.TestResultsSummary = exports.TestResultContainer = exports.TestResults = exports.StepInfo = exports.SessionUrls = exports.MatchResult = exports.AppUrls = exports.ApiUrls = exports.RunnerOptions = void 0;
3
+ exports.Region = exports.RectangleSize = exports.ProxySettings = exports.PropertyData = exports.NullLogHandler = exports.ConsoleLogHandler = exports.FileLogHandler = exports.LogHandler = exports.Location = exports.ImageRotation = exports.ImageMatchSettings = exports.FloatingMatchSettings = exports.ExactMatchSettings = exports.UnscaledFixedCutProvider = exports.FixedCutProvider = exports.CutProvider = exports.Configuration = exports.Target = exports.TargetAutomation = exports.TargetImage = exports.CheckSettingsAutomation = exports.CheckSettingsImage = exports.BatchInfo = exports.AccessibilityMatchSettings = exports.EyesNlpError = exports.EyesNotOpenError = exports.NewTestError = exports.DiffsFoundError = exports.TestFailedError = exports.EyesError = exports.DynamicTextType = exports.AccessibilityStatus = exports.AccessibilityRegionType = exports.AccessibilityLevel = exports.AccessibilityGuidelinesVersion = exports.TestResultsStatus = exports.StitchMode = exports.SessionType = exports.ScreenOrientation = exports.MatchLevel = exports.IosVersion = exports.AndroidDeviceTarget = exports.IosDeviceTarget = exports.AndroidMultiDeviceTarget = exports.IosMultiDeviceTarget = exports.IosDeviceName = exports.FailureReport = exports.DeviceName = exports.CorsIframeHandle = exports.BrowserType = void 0;
4
+ exports.RemoteSessionEventHandler = exports.SessionEventHandlers = exports.SessionEventHandler = exports.VisualGridRunner = exports.ClassicRunner = exports.EyesRunner = exports.closeBatch = exports.BatchClose = exports.Eyes = exports.Logger = exports.ValidationResult = exports.ValidationInfo = exports.TestResultsSummary = exports.TestResultContainer = exports.TestResults = exports.StepInfo = exports.SessionUrls = exports.MatchResult = exports.AppUrls = exports.ApiUrls = exports.RunnerOptions = exports.RunnerOptionsFluent = void 0;
5
5
  // #region ENUM
6
6
  var BrowserType_1 = require("./enums/BrowserType");
7
7
  Object.defineProperty(exports, "BrowserType", { enumerable: true, get: function () { return BrowserType_1.BrowserTypeEnum; } });
@@ -55,6 +55,8 @@ var NewTestError_1 = require("./errors/NewTestError");
55
55
  Object.defineProperty(exports, "NewTestError", { enumerable: true, get: function () { return NewTestError_1.NewTestError; } });
56
56
  var EyesNotOpenError_1 = require("./errors/EyesNotOpenError");
57
57
  Object.defineProperty(exports, "EyesNotOpenError", { enumerable: true, get: function () { return EyesNotOpenError_1.EyesNotOpenError; } });
58
+ var EyesNlpError_1 = require("./errors/EyesNlpError");
59
+ Object.defineProperty(exports, "EyesNlpError", { enumerable: true, get: function () { return EyesNlpError_1.EyesNlpError; } });
58
60
  // #endregion
59
61
  // #region INPUT
60
62
  var AccessibilityMatchSettings_1 = require("./input/AccessibilityMatchSettings");
@@ -505,6 +505,26 @@ class ConfigurationData {
505
505
  this.bypassCSP = bypassCSP;
506
506
  return this;
507
507
  }
508
+ /** @internal */
509
+ get nlpOptions() {
510
+ return this._config.nlpOptions;
511
+ }
512
+ /** @internal */
513
+ set nlpOptions(nlpOptions) {
514
+ if ((nlpOptions === null || nlpOptions === void 0 ? void 0 : nlpOptions.enabled) !== undefined) {
515
+ utils.guard.isBoolean(nlpOptions.enabled, { name: 'nlpOptions.enabled' });
516
+ }
517
+ this._config.nlpOptions = nlpOptions;
518
+ }
519
+ /** @internal */
520
+ getNlpOptions() {
521
+ return this.nlpOptions;
522
+ }
523
+ /** @internal */
524
+ setNlpOptions(nlpOptions) {
525
+ this.nlpOptions = nlpOptions;
526
+ return this;
527
+ }
508
528
  get disableBrowserFetching() {
509
529
  return this._config.disableBrowserFetching;
510
530
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes",
3
- "version": "1.45.5",
3
+ "version": "1.46.1",
4
4
  "keywords": [
5
5
  "applitools",
6
6
  "eyes",
@@ -50,7 +50,7 @@
50
50
  "test": "run --top-level mocha './test/**/*.spec.ts'"
51
51
  },
52
52
  "dependencies": {
53
- "@applitools/core": "4.70.0",
53
+ "@applitools/core": "4.70.2",
54
54
  "@applitools/logger": "2.3.1",
55
55
  "@applitools/utils": "1.15.2",
56
56
  "chalk": "4.1.2",
package/types/Eyes.d.ts CHANGED
@@ -36,7 +36,13 @@ export declare class Eyes<TSpec extends Core.SpecType = Core.SpecType, TCheckSet
36
36
  private _runner;
37
37
  private _driver?;
38
38
  private _core;
39
- private _eyes?;
39
+ /**
40
+ * Reachable by SDK subclasses that emit session-scoped analytics at teardown: the event needs
41
+ * the test identity off `.test` and the base core off `.core.base`, both only known once the
42
+ * session is open.
43
+ * @internal
44
+ */
45
+ protected _eyes?: Core.Eyes<TSpec, 'classic' | 'ufg'>;
40
46
  private _spec?;
41
47
  private _events;
42
48
  private _handlers;
@@ -0,0 +1,9 @@
1
+ import { EyesError } from './EyesError';
2
+ export declare class EyesNlpError extends EyesError {
3
+ readonly testStep: string;
4
+ readonly stepSuccessful: false;
5
+ constructor(testStep: string, options?: {
6
+ message?: string;
7
+ reason?: string;
8
+ });
9
+ }
package/types/index.d.ts CHANGED
@@ -23,6 +23,7 @@ export { TestFailedError } from './errors/TestFailedError';
23
23
  export { DiffsFoundError } from './errors/DiffsFoundError';
24
24
  export { NewTestError } from './errors/NewTestError';
25
25
  export { EyesNotOpenError } from './errors/EyesNotOpenError';
26
+ export { EyesNlpError } from './errors/EyesNlpError';
26
27
  export { AccessibilityMatchSettings as AccessibilityMatchSettingsPlain, AccessibilityMatchSettingsData as AccessibilityMatchSettings, } from './input/AccessibilityMatchSettings';
27
28
  export { AccessibilitySettings } from './input/AccessibilitySettings';
28
29
  export { BatchInfo as BatchInfoPlain, BatchInfoData as BatchInfo } from './input/BatchInfo';
@@ -26,6 +26,25 @@ type MultiDeviceTargetTypes = IosDeviceTargetNames | AndroidDeviceTargetNames |
26
26
  export type BaselineEnvOptions = {
27
27
  useLatestEnvBaseline?: boolean;
28
28
  };
29
+ /**
30
+ * Options for NLP authoring (`eyes.run`). One config object holds every NLP setting, so a new
31
+ * one never costs a top-level Configuration field.
32
+ *
33
+ * NLP is exposed only through the `@applitools/eyes-playwright` fixture today, so this stays out
34
+ * of the public API of the generic SDKs — each SDK that ships NLP re-declares the shape it
35
+ * supports on its own config surface.
36
+ * @internal
37
+ */
38
+ export type NlpOptions = {
39
+ /**
40
+ * Whether NLP authoring is available in this run. Tri-state: `true` always, `false` never
41
+ * (explicit opt-out), unset asks the account whether it is entitled to NLP.
42
+ *
43
+ * Read at *browser launch*, which Playwright scopes to the worker — so it must be set at the
44
+ * global or project level; a test-level value cannot affect it.
45
+ */
46
+ enabled?: boolean;
47
+ };
29
48
  export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
30
49
  accessibilityValidation?: AccessibilitySettings;
31
50
  agentId?: string;
@@ -51,6 +70,8 @@ export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
51
70
  defaultMatchSettings?: ImageMatchSettings;
52
71
  deviceInfo?: string;
53
72
  bypassCSP?: boolean;
73
+ /** @internal */
74
+ nlpOptions?: NlpOptions;
54
75
  disableBrowserFetching?: boolean;
55
76
  disableNMLUrlCache?: boolean;
56
77
  displayName?: string;
@@ -267,6 +288,14 @@ export declare class ConfigurationData<TSpec extends Core.SpecType = Core.SpecTy
267
288
  set bypassCSP(bypassCSP: boolean);
268
289
  getBypassCSP(): boolean;
269
290
  setBypassCSP(bypassCSP: boolean): this;
291
+ /** @internal */
292
+ get nlpOptions(): NlpOptions;
293
+ /** @internal */
294
+ set nlpOptions(nlpOptions: NlpOptions);
295
+ /** @internal */
296
+ getNlpOptions(): NlpOptions;
297
+ /** @internal */
298
+ setNlpOptions(nlpOptions: NlpOptions): this;
270
299
  get disableBrowserFetching(): boolean;
271
300
  set disableBrowserFetching(disableBrowserFetching: boolean);
272
301
  getDisableBrowserFetching(): boolean;