@lwc/synthetic-shadow 8.10.0 → 8.11.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -75,21 +75,41 @@ 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,
78
84
  /** Detached {@linkcode Object.getOwnPropertyDescriptor}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor MDN Reference}. */
79
85
  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,
80
92
  /** Detached {@linkcode Object.getPrototypeOf}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf MDN Reference}. */
81
93
  getPrototypeOf,
82
94
  /** Detached {@linkcode Object.hasOwnProperty}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty MDN Reference}. */
83
95
  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,
84
102
  /** Detached {@linkcode Object.setPrototypeOf}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf MDN Reference}. */
85
103
  setPrototypeOf, } = Object;
86
104
  const {
87
105
  /** Detached {@linkcode Array.isArray}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray MDN Reference}. */
88
- isArray} = Array;
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;
89
109
  // For some reason, JSDoc don't get picked up for multiple renamed destructured constants (even
90
110
  // though it works fine for one, e.g. isArray), so comments for these are added to the export
91
111
  // statement, rather than this declaration.
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!
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!
93
113
  } = Array.prototype;
94
114
  /**
95
115
  * Determines whether the argument is `undefined`.
@@ -195,7 +215,7 @@ const KEY__LEGACY_SHADOW_TOKEN_PRIVATE = '$$LegacyShadowTokenKey$$';
195
215
  const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
196
216
  const KEY__NATIVE_GET_ELEMENT_BY_ID = '$nativeGetElementById$';
197
217
  const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
198
- /** version: 8.10.0 */
218
+ /** version: 8.11.0 */
199
219
 
200
220
  /**
201
221
  * Copyright (c) 2024 Salesforce, Inc.
@@ -203,7 +223,7 @@ const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
203
223
  if (!globalThis.lwcRuntimeFlags) {
204
224
  Object.defineProperty(globalThis, 'lwcRuntimeFlags', { value: create(null) });
205
225
  }
206
- /** version: 8.10.0 */
226
+ /** version: 8.11.0 */
207
227
 
208
228
  /*
209
229
  * Copyright (c) 2018, salesforce.com, inc.
@@ -215,7 +235,7 @@ if (!globalThis.lwcRuntimeFlags) {
215
235
  // eslint-disable-next-line @lwc/lwc-internal/no-global-node
216
236
  const _Node = Node;
217
237
  const nodePrototype = _Node.prototype;
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;
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;
219
239
  const { appendChild, cloneNode, compareDocumentPosition, insertBefore, removeChild, replaceChild, hasChildNodes, } = nodePrototype;
220
240
  const { contains } = HTMLElement.prototype;
221
241
  const firstChildGetter = getOwnPropertyDescriptor(nodePrototype, 'firstChild').get;
@@ -339,7 +359,7 @@ const { getElementsByName } = HTMLDocument.prototype;
339
359
  * SPDX-License-Identifier: MIT
340
360
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
341
361
  */
342
- const { addEventListener: windowAddEventListener, removeEventListener: windowRemoveEventListener} = window;
362
+ const { addEventListener: windowAddEventListener, removeEventListener: windowRemoveEventListener, getComputedStyle: windowGetComputedStyle, getSelection: windowGetSelection, } = window;
343
363
 
344
364
  /*
345
365
  * Copyright (c) 2018, salesforce.com, inc.
@@ -4361,6 +4381,6 @@ defineProperty(Element.prototype, '$domManual$', {
4361
4381
  },
4362
4382
  configurable: true,
4363
4383
  });
4364
- /** version: 8.10.0 */
4384
+ /** version: 8.11.0 */
4365
4385
  }
4366
4386
  //# sourceMappingURL=index.js.map