@lwc/synthetic-shadow 8.12.6 → 8.12.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -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>;
@@ -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;
@@ -1,4 +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
4
  //# sourceMappingURL=event-target.d.ts.map
@@ -2,6 +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
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;
@@ -1,2 +1,2 @@
1
- export declare const isInstanceOfNativeShadowRoot: (node: any) => boolean;
1
+ export declare const isInstanceOfNativeShadowRoot: (node: any) => node is ShadowRoot;
2
2
  //# sourceMappingURL=shadow-root.d.ts.map
@@ -1,3 +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
3
  //# sourceMappingURL=slot.d.ts.map
@@ -1,9 +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
9
  //# sourceMappingURL=window.d.ts.map
package/dist/index.cjs.js CHANGED
@@ -217,7 +217,7 @@ const KEY__LEGACY_SHADOW_TOKEN_PRIVATE = '$$LegacyShadowTokenKey$$';
217
217
  const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
218
218
  const KEY__NATIVE_GET_ELEMENT_BY_ID = '$nativeGetElementById$';
219
219
  const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
220
- /** version: 8.12.6 */
220
+ /** version: 8.12.7 */
221
221
 
222
222
  /**
223
223
  * Copyright (c) 2025 Salesforce, Inc.
@@ -225,7 +225,7 @@ const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
225
225
  if (!globalThis.lwcRuntimeFlags) {
226
226
  Object.defineProperty(globalThis, 'lwcRuntimeFlags', { value: create(null) });
227
227
  }
228
- /** version: 8.12.6 */
228
+ /** version: 8.12.7 */
229
229
 
230
230
  /*
231
231
  * Copyright (c) 2018, salesforce.com, inc.
@@ -4383,6 +4383,6 @@ defineProperty(Element.prototype, '$domManual$', {
4383
4383
  },
4384
4384
  configurable: true,
4385
4385
  });
4386
- /** version: 8.12.6 */
4386
+ /** version: 8.12.7 */
4387
4387
  }
4388
4388
  //# sourceMappingURL=index.cjs.js.map
package/dist/index.js CHANGED
@@ -215,7 +215,7 @@ const KEY__LEGACY_SHADOW_TOKEN_PRIVATE = '$$LegacyShadowTokenKey$$';
215
215
  const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
216
216
  const KEY__NATIVE_GET_ELEMENT_BY_ID = '$nativeGetElementById$';
217
217
  const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
218
- /** version: 8.12.6 */
218
+ /** version: 8.12.7 */
219
219
 
220
220
  /**
221
221
  * Copyright (c) 2025 Salesforce, Inc.
@@ -223,7 +223,7 @@ const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
223
223
  if (!globalThis.lwcRuntimeFlags) {
224
224
  Object.defineProperty(globalThis, 'lwcRuntimeFlags', { value: create(null) });
225
225
  }
226
- /** version: 8.12.6 */
226
+ /** version: 8.12.7 */
227
227
 
228
228
  /*
229
229
  * Copyright (c) 2018, salesforce.com, inc.
@@ -4381,6 +4381,6 @@ defineProperty(Element.prototype, '$domManual$', {
4381
4381
  },
4382
4382
  configurable: true,
4383
4383
  });
4384
- /** version: 8.12.6 */
4384
+ /** version: 8.12.7 */
4385
4385
  }
4386
4386
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
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 {
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.6",
7
+ "version": "8.12.7",
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.6",
50
- "@lwc/shared": "8.12.6"
49
+ "@lwc/features": "8.12.7",
50
+ "@lwc/shared": "8.12.7"
51
51
  },
52
52
  "lwc": {
53
53
  "modules": [