@lwc/synthetic-shadow 8.12.2 → 8.12.4
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.md +1 -1
- package/dist/3rdparty/polymer/inner-html.d.ts +1 -0
- package/dist/3rdparty/polymer/outer-html.d.ts +1 -0
- package/dist/3rdparty/polymer/path-composer.d.ts +1 -0
- package/dist/3rdparty/polymer/retarget.d.ts +1 -0
- package/dist/3rdparty/polymer/text-content.d.ts +1 -0
- package/dist/env/document.d.ts +1 -0
- package/dist/env/dom.d.ts +1 -0
- package/dist/env/element.d.ts +1 -0
- package/dist/env/event-target.d.ts +1 -0
- package/dist/env/mutation-observer.d.ts +1 -0
- package/dist/env/node.d.ts +1 -0
- package/dist/env/shadow-root.d.ts +1 -0
- package/dist/env/slot.d.ts +1 -0
- package/dist/env/text.d.ts +1 -0
- package/dist/env/window.d.ts +1 -0
- package/dist/faux-shadow/element.d.ts +1 -0
- package/dist/faux-shadow/events.d.ts +1 -0
- package/dist/faux-shadow/focus.d.ts +1 -0
- package/dist/faux-shadow/html-element.d.ts +1 -0
- package/dist/faux-shadow/legacy-shadow-token.d.ts +1 -0
- package/dist/faux-shadow/no-patch-utils.d.ts +1 -0
- package/dist/faux-shadow/node.d.ts +1 -0
- package/dist/faux-shadow/portal.d.ts +1 -0
- package/dist/faux-shadow/shadow-root.d.ts +1 -0
- package/dist/faux-shadow/shadow-token.d.ts +1 -0
- package/dist/faux-shadow/slot.d.ts +1 -0
- package/dist/faux-shadow/text.d.ts +1 -0
- package/dist/faux-shadow/traverse.d.ts +1 -0
- package/dist/index.cjs.js +6 -6
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -6
- package/dist/polyfills/clipboard-event-composed/main.d.ts +1 -0
- package/dist/polyfills/custom-event-composed/main.d.ts +1 -0
- package/dist/polyfills/custom-event-composed/polyfill.d.ts +1 -0
- package/dist/polyfills/document-shadow/main.d.ts +1 -0
- package/dist/polyfills/document-shadow/polyfill.d.ts +1 -0
- package/dist/polyfills/event/main.d.ts +1 -0
- package/dist/polyfills/event/polyfill.d.ts +1 -0
- package/dist/polyfills/event-target/main.d.ts +1 -0
- package/dist/polyfills/event-target/polyfill.d.ts +1 -0
- package/dist/polyfills/focus-event/main.d.ts +1 -0
- package/dist/polyfills/focus-event/polyfill.d.ts +1 -0
- package/dist/polyfills/mouse-event/main.d.ts +1 -0
- package/dist/polyfills/mouse-event/polyfill.d.ts +1 -0
- package/dist/polyfills/mutation-observer/main.d.ts +1 -0
- package/dist/polyfills/mutation-observer/polyfill.d.ts +1 -0
- package/dist/polyfills/shadow-root/main.d.ts +1 -0
- package/dist/polyfills/shadow-root/polyfill.d.ts +1 -0
- package/dist/shared/event-target.d.ts +1 -0
- package/dist/shared/faux-element-from-point.d.ts +1 -0
- package/dist/shared/faux-elements-from-point.d.ts +1 -0
- package/dist/shared/node-ownership.d.ts +1 -0
- package/dist/shared/retarget-related-target.d.ts +1 -0
- package/dist/shared/static-html-collection.d.ts +1 -0
- package/dist/shared/static-node-list.d.ts +1 -0
- package/dist/shared/utils.d.ts +1 -0
- package/package.json +5 -4
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.js.map +0 -1
package/LICENSE.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
MIT LICENSE
|
4
4
|
|
5
|
-
Copyright (c)
|
5
|
+
Copyright (c) 2025, Salesforce, Inc.
|
6
6
|
All rights reserved.
|
7
7
|
|
8
8
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
@@ -8,3 +8,4 @@ Code distributed by Google as part of the polymer project is also
|
|
8
8
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
9
9
|
*/
|
10
10
|
export declare function retarget(refNode: EventTarget | null, path: EventTarget[]): EventTarget | null;
|
11
|
+
//# sourceMappingURL=retarget.d.ts.map
|
package/dist/env/document.d.ts
CHANGED
@@ -22,3 +22,4 @@ declare const querySelectorAll: {
|
|
22
22
|
};
|
23
23
|
declare const getElementsByName: (elementName: string) => NodeListOf<HTMLElement>;
|
24
24
|
export { elementFromPoint, elementsFromPoint, DocumentPrototypeActiveElement, querySelectorAll, getElementById, getElementsByClassName, getElementsByName, getElementsByTagName, getElementsByTagNameNS, defaultViewGetter, };
|
25
|
+
//# sourceMappingURL=document.d.ts.map
|
package/dist/env/dom.d.ts
CHANGED
@@ -3,3 +3,4 @@ declare const eventCurrentTargetGetter: (this: Event) => EventTarget | null;
|
|
3
3
|
declare const focusEventRelatedTargetGetter: (this: FocusEvent) => EventTarget | null;
|
4
4
|
declare const composedPath: () => EventTarget[];
|
5
5
|
export { composedPath, eventTargetGetter, eventCurrentTargetGetter, focusEventRelatedTargetGetter };
|
6
|
+
//# sourceMappingURL=dom.d.ts.map
|
package/dist/env/element.d.ts
CHANGED
@@ -43,3 +43,4 @@ declare const getElementsByClassName: (classNames: string) => HTMLCollectionOf<E
|
|
43
43
|
declare const shadowRootGetter: (this: Element) => ShadowRoot | null;
|
44
44
|
declare const assignedSlotGetter: (this: Element) => HTMLSlotElement | null;
|
45
45
|
export { attachShadow, childrenGetter, childElementCountGetter, firstElementChildGetter, getAttribute, getBoundingClientRect, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, hasAttribute, innerHTMLGetter, innerHTMLSetter, innerTextGetter, innerTextSetter, lastElementChildGetter, matches, outerHTMLGetter, outerHTMLSetter, outerTextGetter, outerTextSetter, querySelector, querySelectorAll, removeAttribute, setAttribute, shadowRootGetter, tagNameGetter, tabIndexGetter, tabIndexSetter, assignedSlotGetter, };
|
46
|
+
//# sourceMappingURL=element.d.ts.map
|
@@ -1,3 +1,4 @@
|
|
1
1
|
export declare const eventTargetPrototype: EventTarget;
|
2
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 };
|
4
|
+
//# sourceMappingURL=event-target.d.ts.map
|
package/dist/env/node.d.ts
CHANGED
@@ -34,3 +34,4 @@ declare const childNodesGetter: (this: Node) => NodeListOf<Node & Element>;
|
|
34
34
|
declare const nextSiblingGetter: (this: Node) => ChildNode | null;
|
35
35
|
declare const isConnected: () => any;
|
36
36
|
export { _Node as Node, appendChild, childNodesGetter, cloneNode, compareDocumentPosition, insertBefore, isConnected, parentElementGetter, parentNodeGetter, removeChild, replaceChild, textContextSetter, ownerDocumentGetter, hasChildNodes, contains, firstChildGetter, lastChildGetter, textContentGetter, nextSiblingGetter, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_PRECEDING, DOCUMENT_POSITION_FOLLOWING, ELEMENT_NODE, TEXT_NODE, CDATA_SECTION_NODE, PROCESSING_INSTRUCTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, };
|
37
|
+
//# sourceMappingURL=node.d.ts.map
|
package/dist/env/slot.d.ts
CHANGED
package/dist/env/text.d.ts
CHANGED
package/dist/env/window.d.ts
CHANGED
@@ -6,3 +6,4 @@ declare const windowAddEventListener: {
|
|
6
6
|
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
7
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, };
|
9
|
+
//# sourceMappingURL=window.d.ts.map
|
@@ -15,3 +15,4 @@ export declare function addCustomElementEventListener(this: Element, type: strin
|
|
15
15
|
export declare function removeCustomElementEventListener(this: Element, type: string, listener: unknown, _options?: boolean | AddEventListenerOptions): void;
|
16
16
|
export declare function addShadowRootEventListener(sr: ShadowRoot, type: string, listener: unknown, _options?: boolean | AddEventListenerOptions): void;
|
17
17
|
export declare function removeShadowRootEventListener(sr: ShadowRoot, type: string, listener: unknown, _options?: boolean | AddEventListenerOptions): void;
|
18
|
+
//# sourceMappingURL=events.d.ts.map
|
@@ -7,3 +7,4 @@ export declare function handleFocus(elm: HTMLElement): void;
|
|
7
7
|
export declare function ignoreFocus(elm: HTMLElement): void;
|
8
8
|
export declare function handleFocusIn(elm: HTMLElement): void;
|
9
9
|
export declare function ignoreFocusIn(elm: HTMLElement): void;
|
10
|
+
//# sourceMappingURL=focus.d.ts.map
|
@@ -11,3 +11,4 @@ export declare function shadowRootQuerySelector(root: ShadowRoot, selector: stri
|
|
11
11
|
export declare function shadowRootQuerySelectorAll(root: ShadowRoot, selector: string): Element[];
|
12
12
|
export declare function getFilteredChildNodes(node: Node): Element[];
|
13
13
|
export declare function getFilteredSlotAssignedNodes(slot: HTMLElement): Node[];
|
14
|
+
//# sourceMappingURL=traverse.d.ts.map
|
package/dist/index.cjs.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright (c)
|
2
|
+
* Copyright (c) 2025 Salesforce, Inc.
|
3
3
|
*/
|
4
4
|
if (!globalThis.lwcRuntimeFlags) {
|
5
5
|
Object.defineProperty(globalThis, 'lwcRuntimeFlags', { value: Object.create(null) });
|
@@ -8,7 +8,7 @@ if (!lwcRuntimeFlags.ENABLE_FORCE_SHADOW_MIGRATE_MODE && !lwcRuntimeFlags.DISABL
|
|
8
8
|
'use strict';
|
9
9
|
|
10
10
|
/**
|
11
|
-
* Copyright (c)
|
11
|
+
* Copyright (c) 2025 Salesforce, Inc.
|
12
12
|
*/
|
13
13
|
/*
|
14
14
|
* Copyright (c) 2018, salesforce.com, inc.
|
@@ -217,15 +217,15 @@ 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.4 */
|
221
221
|
|
222
222
|
/**
|
223
|
-
* Copyright (c)
|
223
|
+
* Copyright (c) 2025 Salesforce, Inc.
|
224
224
|
*/
|
225
225
|
if (!globalThis.lwcRuntimeFlags) {
|
226
226
|
Object.defineProperty(globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
227
227
|
}
|
228
|
-
/** version: 8.12.
|
228
|
+
/** version: 8.12.4 */
|
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.4 */
|
4387
4387
|
}
|
4388
4388
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright (c)
|
2
|
+
* Copyright (c) 2025 Salesforce, Inc.
|
3
3
|
*/
|
4
4
|
if (!globalThis.lwcRuntimeFlags) {
|
5
5
|
Object.defineProperty(globalThis, 'lwcRuntimeFlags', { value: Object.create(null) });
|
6
6
|
}
|
7
7
|
if (!lwcRuntimeFlags.ENABLE_FORCE_SHADOW_MIGRATE_MODE && !lwcRuntimeFlags.DISABLE_SYNTHETIC_SHADOW) {
|
8
8
|
/**
|
9
|
-
* Copyright (c)
|
9
|
+
* Copyright (c) 2025 Salesforce, Inc.
|
10
10
|
*/
|
11
11
|
/*
|
12
12
|
* Copyright (c) 2018, salesforce.com, inc.
|
@@ -215,15 +215,15 @@ 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.4 */
|
219
219
|
|
220
220
|
/**
|
221
|
-
* Copyright (c)
|
221
|
+
* Copyright (c) 2025 Salesforce, Inc.
|
222
222
|
*/
|
223
223
|
if (!globalThis.lwcRuntimeFlags) {
|
224
224
|
Object.defineProperty(globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
225
225
|
}
|
226
|
-
/** version: 8.12.
|
226
|
+
/** version: 8.12.4 */
|
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.4 */
|
4385
4385
|
}
|
4386
4386
|
//# sourceMappingURL=index.js.map
|
package/dist/shared/utils.d.ts
CHANGED
@@ -9,3 +9,4 @@ export declare function isGlobalPatchingSkipped(node: Node): boolean;
|
|
9
9
|
*/
|
10
10
|
export declare function arrayFromCollection<T extends NodeList>(collection: T): T extends NodeListOf<infer U> ? U[] : Node[];
|
11
11
|
export declare function arrayFromCollection<T extends HTMLCollection>(collection: T): T extends HTMLCollectionOf<infer U> ? U[] : Element[];
|
12
|
+
//# sourceMappingURL=utils.d.ts.map
|
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.4",
|
8
8
|
"description": "Synthetic Shadow Root for LWC",
|
9
9
|
"keywords": [
|
10
10
|
"lwc"
|
@@ -29,7 +29,8 @@
|
|
29
29
|
"module": "dist/index.js",
|
30
30
|
"types": "dist/index.d.ts",
|
31
31
|
"files": [
|
32
|
-
"dist"
|
32
|
+
"dist/**/*.js",
|
33
|
+
"dist/**/*.d.ts"
|
33
34
|
],
|
34
35
|
"scripts": {
|
35
36
|
"build": "rollup --config ../../../scripts/rollup/rollup.config.js",
|
@@ -45,8 +46,8 @@
|
|
45
46
|
}
|
46
47
|
},
|
47
48
|
"devDependencies": {
|
48
|
-
"@lwc/features": "8.12.
|
49
|
-
"@lwc/shared": "8.12.
|
49
|
+
"@lwc/features": "8.12.4",
|
50
|
+
"@lwc/shared": "8.12.4"
|
50
51
|
},
|
51
52
|
"lwc": {
|
52
53
|
"modules": [
|