@lwc/synthetic-shadow 8.8.0 → 8.10.0-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -75,41 +75,21 @@ create,
75
75
  defineProperties,
76
76
  /** Detached {@linkcode Object.defineProperty}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty MDN Reference}. */
77
77
  defineProperty,
78
- /** Detached {@linkcode Object.entries}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries MDN Reference}. */
79
- entries,
80
- /** Detached {@linkcode Object.freeze}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze MDN Reference}. */
81
- freeze,
82
- /** Detached {@linkcode Object.fromEntries}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries MDN Reference}. */
83
- fromEntries,
84
78
  /** Detached {@linkcode Object.getOwnPropertyDescriptor}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor MDN Reference}. */
85
79
  getOwnPropertyDescriptor,
86
- /** Detached {@linkcode Object.getOwnPropertyDescriptors}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptors MDN Reference}. */
87
- getOwnPropertyDescriptors,
88
- /** Detached {@linkcode Object.getOwnPropertyNames}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames MDN Reference}. */
89
- getOwnPropertyNames,
90
- /** Detached {@linkcode Object.getOwnPropertySymbols}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertySymbols MDN Reference}. */
91
- getOwnPropertySymbols,
92
80
  /** Detached {@linkcode Object.getPrototypeOf}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf MDN Reference}. */
93
81
  getPrototypeOf,
94
82
  /** Detached {@linkcode Object.hasOwnProperty}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty MDN Reference}. */
95
83
  hasOwnProperty,
96
- /** Detached {@linkcode Object.isFrozen}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isFrozen MDN Reference}. */
97
- isFrozen,
98
- /** Detached {@linkcode Object.keys}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys MDN Reference}. */
99
- keys,
100
- /** Detached {@linkcode Object.seal}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/seal MDN Reference}. */
101
- seal,
102
84
  /** Detached {@linkcode Object.setPrototypeOf}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf MDN Reference}. */
103
85
  setPrototypeOf, } = Object;
104
86
  const {
105
87
  /** Detached {@linkcode Array.isArray}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray MDN Reference}. */
106
- isArray,
107
- /** Detached {@linkcode Array.from}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from MDN Reference}. */
108
- from: ArrayFrom, } = Array;
88
+ isArray} = Array;
109
89
  // For some reason, JSDoc don't get picked up for multiple renamed destructured constants (even
110
90
  // though it works fine for one, e.g. isArray), so comments for these are added to the export
111
91
  // statement, rather than this declaration.
112
- const { concat: ArrayConcat, copyWithin: ArrayCopyWithin, every: ArrayEvery, fill: ArrayFill, filter: ArrayFilter, find: ArrayFind, findIndex: ArrayFindIndex, includes: ArrayIncludes, indexOf: ArrayIndexOf, join: ArrayJoin, map: ArrayMap, pop: ArrayPop, push: ArrayPush, reduce: ArrayReduce, reverse: ArrayReverse, shift: ArrayShift, slice: ArraySlice, some: ArraySome, sort: ArraySort, splice: ArraySplice, unshift: ArrayUnshift, forEach, // Weird anomaly!
92
+ const { filter: ArrayFilter, find: ArrayFind, findIndex: ArrayFindIndex, indexOf: ArrayIndexOf, join: ArrayJoin, map: ArrayMap, push: ArrayPush, reduce: ArrayReduce, reverse: ArrayReverse, slice: ArraySlice, splice: ArraySplice, forEach, // Weird anomaly!
113
93
  } = Array.prototype;
114
94
  /**
115
95
  * Determines whether the argument is `undefined`.
@@ -215,7 +195,7 @@ const KEY__LEGACY_SHADOW_TOKEN_PRIVATE = '$$LegacyShadowTokenKey$$';
215
195
  const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
216
196
  const KEY__NATIVE_GET_ELEMENT_BY_ID = '$nativeGetElementById$';
217
197
  const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
218
- /** version: 8.8.0 */
198
+ /** version: 8.10.0-alpha.0 */
219
199
 
220
200
  /**
221
201
  * Copyright (c) 2024 Salesforce, Inc.
@@ -223,7 +203,7 @@ const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
223
203
  if (!globalThis.lwcRuntimeFlags) {
224
204
  Object.defineProperty(globalThis, 'lwcRuntimeFlags', { value: create(null) });
225
205
  }
226
- /** version: 8.8.0 */
206
+ /** version: 8.10.0-alpha.0 */
227
207
 
228
208
  /*
229
209
  * Copyright (c) 2018, salesforce.com, inc.
@@ -235,7 +215,7 @@ if (!globalThis.lwcRuntimeFlags) {
235
215
  // eslint-disable-next-line @lwc/lwc-internal/no-global-node
236
216
  const _Node = Node;
237
217
  const nodePrototype = _Node.prototype;
238
- const { DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_PRECEDING, DOCUMENT_POSITION_FOLLOWING, ELEMENT_NODE, TEXT_NODE, CDATA_SECTION_NODE, PROCESSING_INSTRUCTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, } = _Node;
218
+ const { DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_PRECEDING, DOCUMENT_POSITION_FOLLOWING, ELEMENT_NODE, TEXT_NODE, CDATA_SECTION_NODE, PROCESSING_INSTRUCTION_NODE, COMMENT_NODE} = _Node;
239
219
  const { appendChild, cloneNode, compareDocumentPosition, insertBefore, removeChild, replaceChild, hasChildNodes, } = nodePrototype;
240
220
  const { contains } = HTMLElement.prototype;
241
221
  const firstChildGetter = getOwnPropertyDescriptor(nodePrototype, 'firstChild').get;
@@ -359,7 +339,7 @@ const { getElementsByName } = HTMLDocument.prototype;
359
339
  * SPDX-License-Identifier: MIT
360
340
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
361
341
  */
362
- const { addEventListener: windowAddEventListener, removeEventListener: windowRemoveEventListener, getComputedStyle: windowGetComputedStyle, getSelection: windowGetSelection, } = window;
342
+ const { addEventListener: windowAddEventListener, removeEventListener: windowRemoveEventListener} = window;
363
343
 
364
344
  /*
365
345
  * Copyright (c) 2018, salesforce.com, inc.
@@ -4381,6 +4361,6 @@ defineProperty(Element.prototype, '$domManual$', {
4381
4361
  },
4382
4362
  configurable: true,
4383
4363
  });
4384
- /** version: 8.8.0 */
4364
+ /** version: 8.10.0-alpha.0 */
4385
4365
  }
4386
4366
  //# sourceMappingURL=index.js.map