@lwc/synthetic-shadow 7.0.1-alpha.0 → 7.0.2

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,3 +1,3 @@
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 };
@@ -2,5 +2,5 @@ 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 };
@@ -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 +1 @@
1
- export declare const isInstanceOfNativeShadowRoot: (node: any) => boolean;
1
+ export declare const isInstanceOfNativeShadowRoot: (node: any) => node is ShadowRoot;
@@ -1,2 +1,2 @@
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[];
@@ -1,8 +1,8 @@
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, };
package/dist/index.cjs.js CHANGED
@@ -210,7 +210,7 @@ const KEY__LEGACY_SHADOW_TOKEN_PRIVATE = '$$LegacyShadowTokenKey$$';
210
210
  const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
211
211
  const KEY__NATIVE_GET_ELEMENT_BY_ID = '$nativeGetElementById$';
212
212
  const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
213
- /** version: 7.0.0 */
213
+ /** version: 7.0.2 */
214
214
 
215
215
  /**
216
216
  * Copyright (c) 2024 Salesforce, Inc.
@@ -218,7 +218,7 @@ const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
218
218
  if (!globalThis.lwcRuntimeFlags) {
219
219
  Object.defineProperty(globalThis, 'lwcRuntimeFlags', { value: create(null) });
220
220
  }
221
- /** version: 7.0.0 */
221
+ /** version: 7.0.2 */
222
222
 
223
223
  /*
224
224
  * Copyright (c) 2018, salesforce.com, inc.
@@ -4376,6 +4376,6 @@ defineProperty(Element.prototype, '$domManual$', {
4376
4376
  },
4377
4377
  configurable: true,
4378
4378
  });
4379
- /** version: 7.0.0 */
4379
+ /** version: 7.0.2 */
4380
4380
  }
4381
4381
  //# sourceMappingURL=index.cjs.js.map