@lwc/synthetic-shadow 8.12.7-alpha.0 → 8.13.0-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/dist/3rdparty/polymer/inner-html.d.ts +1 -0
  2. package/dist/3rdparty/polymer/outer-html.d.ts +1 -0
  3. package/dist/3rdparty/polymer/path-composer.d.ts +1 -0
  4. package/dist/3rdparty/polymer/retarget.d.ts +1 -0
  5. package/dist/3rdparty/polymer/text-content.d.ts +1 -0
  6. package/dist/env/document.d.ts +7 -6
  7. package/dist/env/dom.d.ts +1 -0
  8. package/dist/env/element.d.ts +10 -9
  9. package/dist/env/event-target.d.ts +2 -1
  10. package/dist/env/mutation-observer.d.ts +2 -1
  11. package/dist/env/node.d.ts +2 -1
  12. package/dist/env/shadow-root.d.ts +2 -1
  13. package/dist/env/slot.d.ts +3 -2
  14. package/dist/env/text.d.ts +1 -0
  15. package/dist/env/window.d.ts +6 -5
  16. package/dist/faux-shadow/element.d.ts +1 -0
  17. package/dist/faux-shadow/events.d.ts +1 -0
  18. package/dist/faux-shadow/focus.d.ts +1 -0
  19. package/dist/faux-shadow/html-element.d.ts +1 -0
  20. package/dist/faux-shadow/legacy-shadow-token.d.ts +1 -0
  21. package/dist/faux-shadow/no-patch-utils.d.ts +1 -0
  22. package/dist/faux-shadow/node.d.ts +1 -0
  23. package/dist/faux-shadow/portal.d.ts +1 -0
  24. package/dist/faux-shadow/shadow-root.d.ts +1 -0
  25. package/dist/faux-shadow/shadow-token.d.ts +1 -0
  26. package/dist/faux-shadow/slot.d.ts +1 -0
  27. package/dist/faux-shadow/text.d.ts +1 -0
  28. package/dist/faux-shadow/traverse.d.ts +1 -0
  29. package/dist/index.cjs.js +7 -27
  30. package/dist/index.d.ts +1 -0
  31. package/dist/index.js +7 -27
  32. package/dist/polyfills/clipboard-event-composed/main.d.ts +1 -0
  33. package/dist/polyfills/custom-event-composed/main.d.ts +1 -0
  34. package/dist/polyfills/custom-event-composed/polyfill.d.ts +3 -2
  35. package/dist/polyfills/document-shadow/main.d.ts +1 -0
  36. package/dist/polyfills/document-shadow/polyfill.d.ts +1 -0
  37. package/dist/polyfills/event/main.d.ts +1 -0
  38. package/dist/polyfills/event/polyfill.d.ts +1 -0
  39. package/dist/polyfills/event-target/main.d.ts +1 -0
  40. package/dist/polyfills/event-target/polyfill.d.ts +1 -0
  41. package/dist/polyfills/focus-event/main.d.ts +1 -0
  42. package/dist/polyfills/focus-event/polyfill.d.ts +1 -0
  43. package/dist/polyfills/mouse-event/main.d.ts +1 -0
  44. package/dist/polyfills/mouse-event/polyfill.d.ts +1 -0
  45. package/dist/polyfills/mutation-observer/main.d.ts +1 -0
  46. package/dist/polyfills/mutation-observer/polyfill.d.ts +1 -0
  47. package/dist/polyfills/shadow-root/main.d.ts +1 -0
  48. package/dist/polyfills/shadow-root/polyfill.d.ts +1 -0
  49. package/dist/shared/event-target.d.ts +1 -0
  50. package/dist/shared/faux-element-from-point.d.ts +1 -0
  51. package/dist/shared/faux-elements-from-point.d.ts +1 -0
  52. package/dist/shared/node-ownership.d.ts +1 -0
  53. package/dist/shared/retarget-related-target.d.ts +1 -0
  54. package/dist/shared/static-html-collection.d.ts +1 -0
  55. package/dist/shared/static-node-list.d.ts +1 -0
  56. package/dist/shared/utils.d.ts +1 -0
  57. package/package.json +3 -3
@@ -8,3 +8,4 @@ Code distributed by Google as part of the polymer project is also
8
8
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
9
  */
10
10
  export declare function getInnerHTML(node: Node): string;
11
+ //# sourceMappingURL=inner-html.d.ts.map
@@ -8,3 +8,4 @@ Code distributed by Google as part of the polymer project is also
8
8
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
9
  */
10
10
  export declare function getOuterHTML(node: Node): string;
11
+ //# sourceMappingURL=outer-html.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare function pathComposer(startNode: EventTarget, composed: boolean): EventTarget[];
2
+ //# sourceMappingURL=path-composer.d.ts.map
@@ -8,3 +8,4 @@ Code distributed by Google as part of the polymer project is also
8
8
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
9
  */
10
10
  export declare function retarget(refNode: EventTarget | null, path: EventTarget[]): EventTarget | null;
11
+ //# sourceMappingURL=retarget.d.ts.map
@@ -8,3 +8,4 @@ Code distributed by Google as part of the polymer project is also
8
8
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
9
  */
10
10
  export declare function getTextContent(node: Node): string;
11
+ //# sourceMappingURL=text-content.d.ts.map
@@ -4,15 +4,15 @@ declare const elementsFromPoint: (x: number, y: number) => Element[];
4
4
  declare const defaultViewGetter: (this: Document) => Window | null;
5
5
  declare const querySelectorAll: {
6
6
  <K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
7
- <K_1 extends keyof SVGElementTagNameMap>(selectors: K_1): NodeListOf<SVGElementTagNameMap[K_1]>;
8
- <K_2 extends keyof MathMLElementTagNameMap>(selectors: K_2): NodeListOf<MathMLElementTagNameMap[K_2]>;
9
- <K_3 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_3): NodeListOf<HTMLElementDeprecatedTagNameMap[K_3]>;
7
+ <K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
8
+ <K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
9
+ <K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
10
10
  <E extends Element = Element>(selectors: string): NodeListOf<E>;
11
11
  }, getElementById: (elementId: string) => HTMLElement | null, getElementsByClassName: (classNames: string) => HTMLCollectionOf<Element>, getElementsByTagName: {
12
12
  <K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
13
- <K_1 extends keyof SVGElementTagNameMap>(qualifiedName: K_1): HTMLCollectionOf<SVGElementTagNameMap[K_1]>;
14
- <K_2 extends keyof MathMLElementTagNameMap>(qualifiedName: K_2): HTMLCollectionOf<MathMLElementTagNameMap[K_2]>;
15
- <K_3 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_3): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_3]>;
13
+ <K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
14
+ <K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
15
+ <K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
16
16
  (qualifiedName: string): HTMLCollectionOf<Element>;
17
17
  }, getElementsByTagNameNS: {
18
18
  (namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
@@ -22,3 +22,4 @@ declare const querySelectorAll: {
22
22
  };
23
23
  declare const getElementsByName: (elementName: string) => NodeListOf<HTMLElement>;
24
24
  export { elementFromPoint, elementsFromPoint, DocumentPrototypeActiveElement, querySelectorAll, getElementById, getElementsByClassName, getElementsByName, getElementsByTagName, getElementsByTagNameNS, defaultViewGetter, };
25
+ //# sourceMappingURL=document.d.ts.map
package/dist/env/dom.d.ts CHANGED
@@ -3,3 +3,4 @@ declare const eventCurrentTargetGetter: (this: Event) => EventTarget | null;
3
3
  declare const focusEventRelatedTargetGetter: (this: FocusEvent) => EventTarget | null;
4
4
  declare const composedPath: () => EventTarget[];
5
5
  export { composedPath, eventTargetGetter, eventCurrentTargetGetter, focusEventRelatedTargetGetter };
6
+ //# sourceMappingURL=dom.d.ts.map
@@ -1,8 +1,8 @@
1
1
  declare const getAttribute: (qualifiedName: string) => string | null, getBoundingClientRect: () => DOMRect, getElementsByTagName: {
2
2
  <K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
3
- <K_1 extends keyof SVGElementTagNameMap>(qualifiedName: K_1): HTMLCollectionOf<SVGElementTagNameMap[K_1]>;
4
- <K_2 extends keyof MathMLElementTagNameMap>(qualifiedName: K_2): HTMLCollectionOf<MathMLElementTagNameMap[K_2]>;
5
- <K_3 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_3): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_3]>;
3
+ <K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
4
+ <K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
5
+ <K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
6
6
  (qualifiedName: string): HTMLCollectionOf<Element>;
7
7
  }, getElementsByTagNameNS: {
8
8
  (namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
@@ -11,15 +11,15 @@ declare const getAttribute: (qualifiedName: string) => string | null, getBoundin
11
11
  (namespace: string | null, localName: string): HTMLCollectionOf<Element>;
12
12
  }, hasAttribute: (qualifiedName: string) => boolean, querySelector: {
13
13
  <K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
14
- <K_1 extends keyof SVGElementTagNameMap>(selectors: K_1): SVGElementTagNameMap[K_1] | null;
15
- <K_2 extends keyof MathMLElementTagNameMap>(selectors: K_2): MathMLElementTagNameMap[K_2] | null;
16
- <K_3 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_3): HTMLElementDeprecatedTagNameMap[K_3] | null;
14
+ <K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
15
+ <K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
16
+ <K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
17
17
  <E extends Element = Element>(selectors: string): E | null;
18
18
  }, querySelectorAll: {
19
19
  <K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
20
- <K_1 extends keyof SVGElementTagNameMap>(selectors: K_1): NodeListOf<SVGElementTagNameMap[K_1]>;
21
- <K_2 extends keyof MathMLElementTagNameMap>(selectors: K_2): NodeListOf<MathMLElementTagNameMap[K_2]>;
22
- <K_3 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_3): NodeListOf<HTMLElementDeprecatedTagNameMap[K_3]>;
20
+ <K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
21
+ <K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
22
+ <K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
23
23
  <E extends Element = Element>(selectors: string): NodeListOf<E>;
24
24
  }, removeAttribute: (qualifiedName: string) => void, setAttribute: (qualifiedName: string, value: string) => void;
25
25
  declare const attachShadow: (init: ShadowRootInit) => ShadowRoot;
@@ -43,3 +43,4 @@ declare const getElementsByClassName: (classNames: string) => HTMLCollectionOf<E
43
43
  declare const shadowRootGetter: (this: Element) => ShadowRoot | null;
44
44
  declare const assignedSlotGetter: (this: Element) => HTMLSlotElement | null;
45
45
  export { attachShadow, childrenGetter, childElementCountGetter, firstElementChildGetter, getAttribute, getBoundingClientRect, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, hasAttribute, innerHTMLGetter, innerHTMLSetter, innerTextGetter, innerTextSetter, lastElementChildGetter, matches, outerHTMLGetter, outerHTMLSetter, outerTextGetter, outerTextSetter, querySelector, querySelectorAll, removeAttribute, setAttribute, shadowRootGetter, tagNameGetter, tabIndexGetter, tabIndexSetter, assignedSlotGetter, };
46
+ //# sourceMappingURL=element.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export declare const eventTargetPrototype: EventTarget;
2
- declare const addEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions | undefined) => void, dispatchEvent: (event: Event) => boolean, removeEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: boolean | EventListenerOptions | undefined) => void;
2
+ declare const addEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean) => void, dispatchEvent: (event: Event) => boolean, removeEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean) => void;
3
3
  export { addEventListener, dispatchEvent, removeEventListener };
4
+ //# sourceMappingURL=event-target.d.ts.map
@@ -2,5 +2,6 @@ declare const MO: {
2
2
  new (callback: MutationCallback): MutationObserver;
3
3
  prototype: MutationObserver;
4
4
  };
5
- declare const MutationObserverObserve: (target: Node, options?: MutationObserverInit | undefined) => void;
5
+ declare const MutationObserverObserve: (target: Node, options?: MutationObserverInit) => void;
6
6
  export { MO as MutationObserver, MutationObserverObserve };
7
+ //# sourceMappingURL=mutation-observer.d.ts.map
@@ -21,7 +21,7 @@ declare const _Node: {
21
21
  readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
22
22
  };
23
23
  declare const DOCUMENT_POSITION_CONTAINED_BY: 16, DOCUMENT_POSITION_CONTAINS: 8, DOCUMENT_POSITION_PRECEDING: 2, DOCUMENT_POSITION_FOLLOWING: 4, ELEMENT_NODE: 1, TEXT_NODE: 3, CDATA_SECTION_NODE: 4, PROCESSING_INSTRUCTION_NODE: 7, COMMENT_NODE: 8, DOCUMENT_FRAGMENT_NODE: 11;
24
- declare const appendChild: <T extends Node>(node: T) => T, cloneNode: (deep?: boolean | undefined) => Node, compareDocumentPosition: (other: Node) => number, insertBefore: <T extends Node>(node: T, child: Node | null) => T, removeChild: <T extends Node>(child: T) => T, replaceChild: <T extends Node>(node: Node, child: T) => T, hasChildNodes: () => boolean;
24
+ declare const appendChild: <T extends Node>(node: T) => T, cloneNode: (deep?: boolean) => Node, compareDocumentPosition: (other: Node) => number, insertBefore: <T extends Node>(node: T, child: Node | null) => T, removeChild: <T extends Node>(child: T) => T, replaceChild: <T extends Node>(node: Node, child: T) => T, hasChildNodes: () => boolean;
25
25
  declare const contains: (other: Node | null) => boolean;
26
26
  declare const firstChildGetter: (this: Node) => ChildNode | null;
27
27
  declare const lastChildGetter: (this: Node) => ChildNode | null;
@@ -34,3 +34,4 @@ declare const childNodesGetter: (this: Node) => NodeListOf<Node & Element>;
34
34
  declare const nextSiblingGetter: (this: Node) => ChildNode | null;
35
35
  declare const isConnected: () => any;
36
36
  export { _Node as Node, appendChild, childNodesGetter, cloneNode, compareDocumentPosition, insertBefore, isConnected, parentElementGetter, parentNodeGetter, removeChild, replaceChild, textContextSetter, ownerDocumentGetter, hasChildNodes, contains, firstChildGetter, lastChildGetter, textContentGetter, nextSiblingGetter, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_PRECEDING, DOCUMENT_POSITION_FOLLOWING, ELEMENT_NODE, TEXT_NODE, CDATA_SECTION_NODE, PROCESSING_INSTRUCTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, };
37
+ //# sourceMappingURL=node.d.ts.map
@@ -1 +1,2 @@
1
- export declare const isInstanceOfNativeShadowRoot: (node: any) => boolean;
1
+ export declare const isInstanceOfNativeShadowRoot: (node: any) => node is ShadowRoot;
2
+ //# sourceMappingURL=shadow-root.d.ts.map
@@ -1,2 +1,3 @@
1
- export declare const assignedNodes: (options?: AssignedNodesOptions | undefined) => Node[];
2
- export declare const assignedElements: (options?: AssignedNodesOptions | undefined) => Element[];
1
+ export declare const assignedNodes: (options?: AssignedNodesOptions) => Node[];
2
+ export declare const assignedElements: (options?: AssignedNodesOptions) => Element[];
3
+ //# sourceMappingURL=slot.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const assignedSlotGetter: (this: Text) => HTMLSlotElement | null;
2
+ //# sourceMappingURL=text.d.ts.map
@@ -1,8 +1,9 @@
1
1
  declare const windowAddEventListener: {
2
- <K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
3
- (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
2
+ <K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
3
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
4
4
  } & typeof addEventListener, windowRemoveEventListener: {
5
- <K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions | undefined): void;
6
- (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
7
- } & typeof removeEventListener, windowGetComputedStyle: ((elt: Element, pseudoElt?: string | null | undefined) => CSSStyleDeclaration) & typeof getComputedStyle, windowGetSelection: (() => Selection | null) & typeof getSelection;
5
+ <K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
6
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
7
+ } & typeof removeEventListener, windowGetComputedStyle: ((elt: Element, pseudoElt?: string | null) => CSSStyleDeclaration) & typeof getComputedStyle, windowGetSelection: (() => Selection | null) & typeof getSelection;
8
8
  export { windowAddEventListener, windowGetComputedStyle, windowGetSelection, windowRemoveEventListener, };
9
+ //# sourceMappingURL=window.d.ts.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=element.d.ts.map
@@ -15,3 +15,4 @@ export declare function addCustomElementEventListener(this: Element, type: strin
15
15
  export declare function removeCustomElementEventListener(this: Element, type: string, listener: unknown, _options?: boolean | AddEventListenerOptions): void;
16
16
  export declare function addShadowRootEventListener(sr: ShadowRoot, type: string, listener: unknown, _options?: boolean | AddEventListenerOptions): void;
17
17
  export declare function removeShadowRootEventListener(sr: ShadowRoot, type: string, listener: unknown, _options?: boolean | AddEventListenerOptions): void;
18
+ //# sourceMappingURL=events.d.ts.map
@@ -7,3 +7,4 @@ export declare function handleFocus(elm: HTMLElement): void;
7
7
  export declare function ignoreFocus(elm: HTMLElement): void;
8
8
  export declare function handleFocusIn(elm: HTMLElement): void;
9
9
  export declare function ignoreFocusIn(elm: HTMLElement): void;
10
+ //# sourceMappingURL=focus.d.ts.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=html-element.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare function getLegacyShadowToken(node: Node): string | undefined;
2
2
  export declare function setLegacyShadowToken(node: Node, shadowToken: string | undefined): void;
3
+ //# sourceMappingURL=legacy-shadow-token.d.ts.map
@@ -5,3 +5,4 @@
5
5
  * @param unfilteredNodes
6
6
  */
7
7
  export declare function getNonPatchedFilteredArrayOfNodes<T extends Node>(context: Element, unfilteredNodes: Array<T>): Array<T>;
8
+ //# sourceMappingURL=no-patch-utils.d.ts.map
@@ -7,3 +7,4 @@
7
7
  */
8
8
  export declare function hasMountedChildren(node: Node): boolean;
9
9
  export declare const getInternalChildNodes: (node: Node) => NodeListOf<ChildNode>;
10
+ //# sourceMappingURL=node.d.ts.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=portal.d.ts.map
@@ -13,3 +13,4 @@ export declare function SyntheticShadowRoot(): void;
13
13
  export declare namespace SyntheticShadowRoot {
14
14
  var prototype: any;
15
15
  }
16
+ //# sourceMappingURL=shadow-root.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare function getShadowToken(node: Node): string | undefined;
2
2
  export declare function setShadowToken(node: Node, shadowToken: string | undefined): void;
3
+ //# sourceMappingURL=shadow-token.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare function assignedSlotGetterPatched(this: Element | Text): HTMLSlotElement | null;
2
+ //# sourceMappingURL=slot.d.ts.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=text.d.ts.map
@@ -11,3 +11,4 @@ export declare function shadowRootQuerySelector(root: ShadowRoot, selector: stri
11
11
  export declare function shadowRootQuerySelectorAll(root: ShadowRoot, selector: string): Element[];
12
12
  export declare function getFilteredChildNodes(node: Node): Element[];
13
13
  export declare function getFilteredSlotAssignedNodes(slot: HTMLElement): Node[];
14
+ //# sourceMappingURL=traverse.d.ts.map
package/dist/index.cjs.js CHANGED
@@ -77,41 +77,21 @@ create,
77
77
  defineProperties,
78
78
  /** Detached {@linkcode Object.defineProperty}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty MDN Reference}. */
79
79
  defineProperty,
80
- /** Detached {@linkcode Object.entries}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries MDN Reference}. */
81
- entries,
82
- /** Detached {@linkcode Object.freeze}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze MDN Reference}. */
83
- freeze,
84
- /** Detached {@linkcode Object.fromEntries}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries MDN Reference}. */
85
- fromEntries,
86
80
  /** Detached {@linkcode Object.getOwnPropertyDescriptor}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor MDN Reference}. */
87
81
  getOwnPropertyDescriptor,
88
- /** Detached {@linkcode Object.getOwnPropertyDescriptors}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptors MDN Reference}. */
89
- getOwnPropertyDescriptors,
90
- /** Detached {@linkcode Object.getOwnPropertyNames}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames MDN Reference}. */
91
- getOwnPropertyNames,
92
- /** Detached {@linkcode Object.getOwnPropertySymbols}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertySymbols MDN Reference}. */
93
- getOwnPropertySymbols,
94
82
  /** Detached {@linkcode Object.getPrototypeOf}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf MDN Reference}. */
95
83
  getPrototypeOf,
96
84
  /** Detached {@linkcode Object.hasOwnProperty}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty MDN Reference}. */
97
85
  hasOwnProperty,
98
- /** Detached {@linkcode Object.isFrozen}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isFrozen MDN Reference}. */
99
- isFrozen,
100
- /** Detached {@linkcode Object.keys}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys MDN Reference}. */
101
- keys,
102
- /** Detached {@linkcode Object.seal}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/seal MDN Reference}. */
103
- seal,
104
86
  /** Detached {@linkcode Object.setPrototypeOf}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf MDN Reference}. */
105
87
  setPrototypeOf, } = Object;
106
88
  const {
107
89
  /** Detached {@linkcode Array.isArray}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray MDN Reference}. */
108
- isArray,
109
- /** Detached {@linkcode Array.from}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from MDN Reference}. */
110
- from: ArrayFrom, } = Array;
90
+ isArray} = Array;
111
91
  // For some reason, JSDoc don't get picked up for multiple renamed destructured constants (even
112
92
  // though it works fine for one, e.g. isArray), so comments for these are added to the export
113
93
  // statement, rather than this declaration.
114
- 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!
94
+ 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!
115
95
  } = Array.prototype;
116
96
  /**
117
97
  * Determines whether the argument is `undefined`.
@@ -217,7 +197,7 @@ const KEY__LEGACY_SHADOW_TOKEN_PRIVATE = '$$LegacyShadowTokenKey$$';
217
197
  const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
218
198
  const KEY__NATIVE_GET_ELEMENT_BY_ID = '$nativeGetElementById$';
219
199
  const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
220
- /** version: 8.12.2 */
200
+ /** version: 8.13.0 */
221
201
 
222
202
  /**
223
203
  * Copyright (c) 2025 Salesforce, Inc.
@@ -225,7 +205,7 @@ const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
225
205
  if (!globalThis.lwcRuntimeFlags) {
226
206
  Object.defineProperty(globalThis, 'lwcRuntimeFlags', { value: create(null) });
227
207
  }
228
- /** version: 8.12.2 */
208
+ /** version: 8.13.0 */
229
209
 
230
210
  /*
231
211
  * Copyright (c) 2018, salesforce.com, inc.
@@ -237,7 +217,7 @@ if (!globalThis.lwcRuntimeFlags) {
237
217
  // eslint-disable-next-line @lwc/lwc-internal/no-global-node
238
218
  const _Node = Node;
239
219
  const nodePrototype = _Node.prototype;
240
- 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;
220
+ 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;
241
221
  const { appendChild, cloneNode, compareDocumentPosition, insertBefore, removeChild, replaceChild, hasChildNodes, } = nodePrototype;
242
222
  const { contains } = HTMLElement.prototype;
243
223
  const firstChildGetter = getOwnPropertyDescriptor(nodePrototype, 'firstChild').get;
@@ -361,7 +341,7 @@ const { getElementsByName } = HTMLDocument.prototype;
361
341
  * SPDX-License-Identifier: MIT
362
342
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
363
343
  */
364
- const { addEventListener: windowAddEventListener, removeEventListener: windowRemoveEventListener, getComputedStyle: windowGetComputedStyle, getSelection: windowGetSelection, } = window;
344
+ const { addEventListener: windowAddEventListener, removeEventListener: windowRemoveEventListener} = window;
365
345
 
366
346
  /*
367
347
  * Copyright (c) 2018, salesforce.com, inc.
@@ -4383,6 +4363,6 @@ defineProperty(Element.prototype, '$domManual$', {
4383
4363
  },
4384
4364
  configurable: true,
4385
4365
  });
4386
- /** version: 8.12.2 */
4366
+ /** version: 8.13.0 */
4387
4367
  }
4388
4368
  //# sourceMappingURL=index.cjs.js.map
package/dist/index.d.ts CHANGED
@@ -23,3 +23,4 @@ import './faux-shadow/html-element';
23
23
  import './faux-shadow/slot';
24
24
  import './faux-shadow/portal';
25
25
  import './faux-shadow/shadow-token';
26
+ //# sourceMappingURL=index.d.ts.map
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.12.2 */
198
+ /** version: 8.13.0 */
219
199
 
220
200
  /**
221
201
  * Copyright (c) 2025 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.12.2 */
206
+ /** version: 8.13.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.12.2 */
4364
+ /** version: 8.13.0 */
4385
4365
  }
4386
4366
  //# sourceMappingURL=index.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=main.d.ts.map
@@ -1 +1,2 @@
1
1
  import './polyfill';
2
+ //# sourceMappingURL=main.d.ts.map
@@ -1,8 +1,9 @@
1
1
  declare const CustomEventConstructor: {
2
- new <T>(type: string, eventInitDict?: CustomEventInit<T> | undefined): CustomEvent<T>;
3
- prototype: CustomEvent<any>;
2
+ new <T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
3
+ prototype: CustomEvent;
4
4
  };
5
5
  declare function PatchedCustomEvent<T>(this: Event, type: string, eventInitDict: CustomEventInit<T>): CustomEvent<T>;
6
6
  declare namespace PatchedCustomEvent {
7
7
  var prototype: CustomEvent<any>;
8
8
  }
9
+ //# sourceMappingURL=polyfill.d.ts.map
@@ -1 +1,2 @@
1
1
  import './polyfill';
2
+ //# sourceMappingURL=main.d.ts.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=polyfill.d.ts.map
@@ -1 +1,2 @@
1
1
  import './polyfill';
2
+ //# sourceMappingURL=main.d.ts.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=polyfill.d.ts.map
@@ -1 +1,2 @@
1
1
  import './polyfill';
2
+ //# sourceMappingURL=main.d.ts.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=polyfill.d.ts.map
@@ -1 +1,2 @@
1
1
  import './polyfill';
2
+ //# sourceMappingURL=main.d.ts.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=polyfill.d.ts.map
@@ -1 +1,2 @@
1
1
  import './polyfill';
2
+ //# sourceMappingURL=main.d.ts.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=polyfill.d.ts.map
@@ -1 +1,2 @@
1
1
  import './polyfill';
2
+ //# sourceMappingURL=main.d.ts.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=polyfill.d.ts.map
@@ -1 +1,2 @@
1
1
  import './polyfill';
2
+ //# sourceMappingURL=main.d.ts.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=polyfill.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare function shouldInvokeListener(event: Event, target: EventTarget, currentTarget: EventTarget): boolean;
2
2
  export declare function getEventListenerWrapper(fnOrObj: unknown): unknown;
3
+ //# sourceMappingURL=event-target.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare function fauxElementFromPoint(context: Node, doc: Document, left: number, top: number): Element | null;
2
+ //# sourceMappingURL=faux-element-from-point.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare function fauxElementsFromPoint(context: Node, doc: Document, left: number, top: number): Element[];
2
+ //# sourceMappingURL=faux-elements-from-point.d.ts.map
@@ -10,3 +10,4 @@ export declare function getNodeKey(node: Node): number | undefined;
10
10
  * @param node
11
11
  */
12
12
  export declare function isNodeShadowed(node: Node): boolean;
13
+ //# sourceMappingURL=node-ownership.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare function retargetRelatedTarget(Ctor: typeof FocusEvent | typeof MouseEvent): void;
2
+ //# sourceMappingURL=retarget-related-target.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare function createStaticHTMLCollection<T extends Element>(items: T[]): HTMLCollectionOf<T>;
2
+ //# sourceMappingURL=static-html-collection.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare function createStaticNodeList<T extends Node>(items: T[]): NodeListOf<T>;
2
+ //# sourceMappingURL=static-node-list.d.ts.map
@@ -9,3 +9,4 @@ export declare function isGlobalPatchingSkipped(node: Node): boolean;
9
9
  */
10
10
  export declare function arrayFromCollection<T extends NodeList>(collection: T): T extends NodeListOf<infer U> ? U[] : Node[];
11
11
  export declare function arrayFromCollection<T extends HTMLCollection>(collection: T): T extends HTMLCollectionOf<infer U> ? U[] : Element[];
12
+ //# sourceMappingURL=utils.d.ts.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
5
5
  ],
6
6
  "name": "@lwc/synthetic-shadow",
7
- "version": "8.12.7-alpha.0",
7
+ "version": "8.13.0-alpha.0",
8
8
  "description": "Synthetic Shadow Root for LWC",
9
9
  "keywords": [
10
10
  "lwc"
@@ -46,8 +46,8 @@
46
46
  }
47
47
  },
48
48
  "devDependencies": {
49
- "@lwc/features": "8.12.7-alpha.0",
50
- "@lwc/shared": "8.12.7-alpha.0"
49
+ "@lwc/features": "8.13.0-alpha.0",
50
+ "@lwc/shared": "8.13.0-alpha.0"
51
51
  },
52
52
  "lwc": {
53
53
  "modules": [