@lwc/synthetic-shadow 7.2.0 → 7.2.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/dist/index.cjs.js CHANGED
@@ -4,7 +4,7 @@
4
4
  if (!globalThis.lwcRuntimeFlags) {
5
5
  Object.defineProperty(globalThis, 'lwcRuntimeFlags', { value: Object.create(null) });
6
6
  }
7
- if (!lwcRuntimeFlags.ENABLE_FORCE_SHADOW_MIGRATE_MODE) {
7
+ if (!lwcRuntimeFlags.ENABLE_FORCE_SHADOW_MIGRATE_MODE && !lwcRuntimeFlags.DISABLE_SYNTHETIC_SHADOW) {
8
8
  'use strict';
9
9
 
10
10
  /**
@@ -99,8 +99,11 @@ keys,
99
99
  seal,
100
100
  /** Detached {@linkcode Object.setPrototypeOf}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf MDN Reference}. */
101
101
  setPrototypeOf, } = Object;
102
+ const {
102
103
  /** Detached {@linkcode Array.isArray}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray MDN Reference}. */
103
- const { isArray } = Array;
104
+ isArray,
105
+ /** Detached {@linkcode Array.from}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from MDN Reference}. */
106
+ from: ArrayFrom, } = Array;
104
107
  // For some reason, JSDoc don't get picked up for multiple renamed destructured constants (even
105
108
  // though it works fine for one, e.g. isArray), so comments for these are added to the export
106
109
  // statement, rather than this declaration.
@@ -210,7 +213,7 @@ const KEY__LEGACY_SHADOW_TOKEN_PRIVATE = '$$LegacyShadowTokenKey$$';
210
213
  const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
211
214
  const KEY__NATIVE_GET_ELEMENT_BY_ID = '$nativeGetElementById$';
212
215
  const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
213
- /** version: 7.2.0 */
216
+ /** version: 7.2.2 */
214
217
 
215
218
  /**
216
219
  * Copyright (c) 2024 Salesforce, Inc.
@@ -218,7 +221,7 @@ const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
218
221
  if (!globalThis.lwcRuntimeFlags) {
219
222
  Object.defineProperty(globalThis, 'lwcRuntimeFlags', { value: create(null) });
220
223
  }
221
- /** version: 7.2.0 */
224
+ /** version: 7.2.2 */
222
225
 
223
226
  /*
224
227
  * Copyright (c) 2018, salesforce.com, inc.
@@ -4376,6 +4379,6 @@ defineProperty(Element.prototype, '$domManual$', {
4376
4379
  },
4377
4380
  configurable: true,
4378
4381
  });
4379
- /** version: 7.2.0 */
4382
+ /** version: 7.2.2 */
4380
4383
  }
4381
4384
  //# sourceMappingURL=index.cjs.js.map