@lwc/synthetic-shadow 8.1.3 → 8.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/env/document.d.ts +6 -6
- package/dist/env/element.d.ts +9 -9
- package/dist/env/event-target.d.ts +1 -1
- package/dist/env/mutation-observer.d.ts +1 -1
- package/dist/env/node.d.ts +1 -1
- package/dist/env/shadow-root.d.ts +1 -1
- package/dist/env/slot.d.ts +2 -2
- package/dist/env/window.d.ts +5 -5
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/polyfills/custom-event-composed/polyfill.d.ts +2 -2
- package/package.json +3 -3
package/dist/env/document.d.ts
CHANGED
@@ -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
|
-
<
|
8
|
-
<
|
9
|
-
<
|
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]>;
|
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
|
-
<
|
14
|
-
<
|
15
|
-
<
|
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]>;
|
16
16
|
(qualifiedName: string): HTMLCollectionOf<Element>;
|
17
17
|
}, getElementsByTagNameNS: {
|
18
18
|
(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
package/dist/env/element.d.ts
CHANGED
@@ -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
|
-
<
|
4
|
-
<
|
5
|
-
<
|
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]>;
|
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
|
-
<
|
15
|
-
<
|
16
|
-
<
|
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;
|
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
|
-
<
|
21
|
-
<
|
22
|
-
<
|
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]>;
|
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?: AddEventListenerOptions |
|
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;
|
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) => void;
|
5
|
+
declare const MutationObserverObserve: (target: Node, options?: MutationObserverInit | undefined) => void;
|
6
6
|
export { MO as MutationObserver, MutationObserverObserve };
|
package/dist/env/node.d.ts
CHANGED
@@ -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) => 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 | 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;
|
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) =>
|
1
|
+
export declare const isInstanceOfNativeShadowRoot: (node: any) => boolean;
|
package/dist/env/slot.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const assignedNodes: (options?: AssignedNodesOptions) => Node[];
|
2
|
-
export declare const assignedElements: (options?: AssignedNodesOptions) => Element[];
|
1
|
+
export declare const assignedNodes: (options?: AssignedNodesOptions | undefined) => Node[];
|
2
|
+
export declare const assignedElements: (options?: AssignedNodesOptions | undefined) => Element[];
|
package/dist/env/window.d.ts
CHANGED
@@ -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): void;
|
3
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
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;
|
4
4
|
} & typeof addEventListener, windowRemoveEventListener: {
|
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;
|
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;
|
8
8
|
export { windowAddEventListener, windowGetComputedStyle, windowGetSelection, windowRemoveEventListener, };
|
package/dist/index.cjs.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.
|
218
|
+
/** version: 8.2.0 */
|
219
219
|
|
220
220
|
/**
|
221
221
|
* Copyright (c) 2024 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.
|
226
|
+
/** version: 8.2.0 */
|
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.
|
4384
|
+
/** version: 8.2.0 */
|
4385
4385
|
}
|
4386
4386
|
//# sourceMappingURL=index.cjs.js.map
|