@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.
- 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 +4 -4
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 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
|
-
<
|
14
|
-
<
|
15
|
-
<
|
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>;
|
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 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
|
-
<
|
15
|
-
<
|
16
|
-
<
|
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
|
-
<
|
21
|
-
<
|
22
|
-
<
|
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?:
|
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
|
5
|
+
declare const MutationObserverObserve: (target: Node, options?: MutationObserverInit) => 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
|
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) =>
|
1
|
+
export declare const isInstanceOfNativeShadowRoot: (node: any) => node is ShadowRoot;
|
package/dist/env/slot.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const assignedNodes: (options?: AssignedNodesOptions
|
2
|
-
export declare const assignedElements: (options?: AssignedNodesOptions
|
1
|
+
export declare const assignedNodes: (options?: AssignedNodesOptions) => Node[];
|
2
|
+
export declare const assignedElements: (options?: AssignedNodesOptions) => 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
|
3
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions
|
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
|
6
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions
|
7
|
-
} & typeof removeEventListener, windowGetComputedStyle: ((elt: Element, pseudoElt?: string | null
|
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.
|
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.
|
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.
|
4379
|
+
/** version: 7.0.2 */
|
4380
4380
|
}
|
4381
4381
|
//# sourceMappingURL=index.cjs.js.map
|