@wix/zero-config-implementation 1.11.0 → 1.12.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.
package/dist/index.js CHANGED
@@ -12038,7 +12038,7 @@ function T0() {
12038
12038
  }
12039
12039
  function Uk() {
12040
12040
  return {
12041
- ariaLabel: Ye.lorem.sentence(),
12041
+ ariaLabel: `mock_ariaLabel_${Ye.string.alphanumeric(6)}`,
12042
12042
  role: Ye.helpers.arrayElement(["button", "link", "img", "region"]),
12043
12043
  tabIndex: Ye.helpers.arrayElement([0, -1])
12044
12044
  };
@@ -12226,7 +12226,7 @@ function $k(e, t) {
12226
12226
  if (r && !r.startsWith("mock_"))
12227
12227
  return Ln(r);
12228
12228
  const n = Vr(e, "aria-label");
12229
- if (n)
12229
+ if (n && !n.startsWith("mock_"))
12230
12230
  return Ln(n);
12231
12231
  const a = Vr(e, "aria-labelledby");
12232
12232
  if (a) {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "registry": "https://registry.npmjs.org/",
5
5
  "access": "public"
6
6
  },
7
- "version": "1.11.0",
7
+ "version": "1.12.0",
8
8
  "description": "Core library for extracting component manifests from JS and CSS files",
9
9
  "type": "module",
10
10
  "main": "dist/index.js",
@@ -74,5 +74,5 @@
74
74
  ]
75
75
  }
76
76
  },
77
- "falconPackageHash": "72ed033142da89f1b47261236ac0406e5d01201b896daec0491a39ff"
77
+ "falconPackageHash": "6af8a6509bed6bf77cac3e06a3c9b2ce44962c86bda8e8eceafa5f45"
78
78
  }
@@ -154,7 +154,7 @@ function getElementNamePart(element: Element, getElementById: (id: string) => El
154
154
  }
155
155
 
156
156
  const ariaLabel = getAttribute(element, 'aria-label')
157
- if (ariaLabel) {
157
+ if (ariaLabel && !ariaLabel.startsWith('mock_')) {
158
158
  return pascalCase(ariaLabel)
159
159
  }
160
160
 
@@ -377,7 +377,7 @@ function generateMockLink(): Record<string, unknown> {
377
377
 
378
378
  function generateMockA11y(): Record<string, unknown> {
379
379
  return {
380
- ariaLabel: faker.lorem.sentence(),
380
+ ariaLabel: `mock_ariaLabel_${faker.string.alphanumeric(6)}`,
381
381
  role: faker.helpers.arrayElement(['button', 'link', 'img', 'region']),
382
382
  tabIndex: faker.helpers.arrayElement([0, -1]),
383
383
  }