@lwc/synthetic-shadow 7.2.0 → 7.2.2

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