@lwc/synthetic-shadow 8.12.6 → 8.12.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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.js +3 -3
- 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 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,4 +1,4 @@
|
|
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 };
|
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
|
5
|
+
declare const MutationObserverObserve: (target: Node, options?: MutationObserverInit) => void;
|
6
6
|
export { MO as MutationObserver, MutationObserverObserve };
|
7
7
|
//# sourceMappingURL=mutation-observer.d.ts.map
|
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,2 +1,2 @@
|
|
1
|
-
export declare const isInstanceOfNativeShadowRoot: (node: any) =>
|
1
|
+
export declare const isInstanceOfNativeShadowRoot: (node: any) => node is ShadowRoot;
|
2
2
|
//# sourceMappingURL=shadow-root.d.ts.map
|
package/dist/env/slot.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
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[];
|
3
3
|
//# sourceMappingURL=slot.d.ts.map
|
package/dist/env/window.d.ts
CHANGED
@@ -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
|
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, };
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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>
|
3
|
-
prototype: CustomEvent
|
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.
|
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.
|
50
|
-
"@lwc/shared": "8.12.
|
49
|
+
"@lwc/features": "8.12.7",
|
50
|
+
"@lwc/shared": "8.12.7"
|
51
51
|
},
|
52
52
|
"lwc": {
|
53
53
|
"modules": [
|