@lwc/synthetic-shadow 9.5.2 → 9.5.3
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/index.cjs +17 -3
- package/dist/index.js +17 -3
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -195,7 +195,7 @@ const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
|
195
195
|
const KEY__NATIVE_GET_ELEMENT_BY_ID = '$nativeGetElementById$';
|
|
196
196
|
const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
|
|
197
197
|
const KEY__SANITIZE_HTML_CONTENT = '$sanitizeHtmlContent$';
|
|
198
|
-
/** version: 9.5.
|
|
198
|
+
/** version: 9.5.3 */
|
|
199
199
|
|
|
200
200
|
/**
|
|
201
201
|
* Copyright (c) 2026 Salesforce, Inc.
|
|
@@ -203,7 +203,7 @@ const KEY__SANITIZE_HTML_CONTENT = '$sanitizeHtmlContent$';
|
|
|
203
203
|
if (!globalThis.lwcRuntimeFlags) {
|
|
204
204
|
Object.defineProperty(globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
205
205
|
}
|
|
206
|
-
/** version: 9.5.
|
|
206
|
+
/** version: 9.5.3 */
|
|
207
207
|
|
|
208
208
|
/*
|
|
209
209
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -3806,6 +3806,20 @@ function getTabbableSegments(host) {
|
|
|
3806
3806
|
const firstChild = inner[0];
|
|
3807
3807
|
const lastChild = inner[inner.length - 1];
|
|
3808
3808
|
const hostIndex = ArrayIndexOf.call(all, host);
|
|
3809
|
+
if (hostIndex === -1 && inner.length === 0) {
|
|
3810
|
+
// A negative-tabindex host with no sequentially focusable descendants has no
|
|
3811
|
+
// index in `all`. Use its DOM position instead of slicing from -1/0, which
|
|
3812
|
+
// would make forward navigation restart at the beginning of the document.
|
|
3813
|
+
const nextIndex = ArrayFindIndex.call(all, (element) => {
|
|
3814
|
+
return ((compareDocumentPosition.call(host, element) & DOCUMENT_POSITION_FOLLOWING) !== 0);
|
|
3815
|
+
});
|
|
3816
|
+
const boundary = nextIndex === -1 ? all.length : nextIndex;
|
|
3817
|
+
return {
|
|
3818
|
+
prev: ArraySlice.call(all, 0, boundary),
|
|
3819
|
+
inner,
|
|
3820
|
+
next: ArraySlice.call(all, boundary),
|
|
3821
|
+
};
|
|
3822
|
+
}
|
|
3809
3823
|
// Host element can show up in our "previous" section if its tabindex is 0
|
|
3810
3824
|
// We want to filter that out here
|
|
3811
3825
|
const firstChildIndex = hostIndex > -1 ? hostIndex : ArrayIndexOf.call(all, firstChild);
|
|
@@ -4407,6 +4421,6 @@ defineProperty(Element.prototype, '$domManual$', {
|
|
|
4407
4421
|
},
|
|
4408
4422
|
configurable: true,
|
|
4409
4423
|
});
|
|
4410
|
-
/** version: 9.5.
|
|
4424
|
+
/** version: 9.5.3 */
|
|
4411
4425
|
}
|
|
4412
4426
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -193,7 +193,7 @@ const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
|
|
|
193
193
|
const KEY__NATIVE_GET_ELEMENT_BY_ID = '$nativeGetElementById$';
|
|
194
194
|
const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
|
|
195
195
|
const KEY__SANITIZE_HTML_CONTENT = '$sanitizeHtmlContent$';
|
|
196
|
-
/** version: 9.5.
|
|
196
|
+
/** version: 9.5.3 */
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
199
|
* Copyright (c) 2026 Salesforce, Inc.
|
|
@@ -201,7 +201,7 @@ const KEY__SANITIZE_HTML_CONTENT = '$sanitizeHtmlContent$';
|
|
|
201
201
|
if (!globalThis.lwcRuntimeFlags) {
|
|
202
202
|
Object.defineProperty(globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
203
203
|
}
|
|
204
|
-
/** version: 9.5.
|
|
204
|
+
/** version: 9.5.3 */
|
|
205
205
|
|
|
206
206
|
/*
|
|
207
207
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -3804,6 +3804,20 @@ function getTabbableSegments(host) {
|
|
|
3804
3804
|
const firstChild = inner[0];
|
|
3805
3805
|
const lastChild = inner[inner.length - 1];
|
|
3806
3806
|
const hostIndex = ArrayIndexOf.call(all, host);
|
|
3807
|
+
if (hostIndex === -1 && inner.length === 0) {
|
|
3808
|
+
// A negative-tabindex host with no sequentially focusable descendants has no
|
|
3809
|
+
// index in `all`. Use its DOM position instead of slicing from -1/0, which
|
|
3810
|
+
// would make forward navigation restart at the beginning of the document.
|
|
3811
|
+
const nextIndex = ArrayFindIndex.call(all, (element) => {
|
|
3812
|
+
return ((compareDocumentPosition.call(host, element) & DOCUMENT_POSITION_FOLLOWING) !== 0);
|
|
3813
|
+
});
|
|
3814
|
+
const boundary = nextIndex === -1 ? all.length : nextIndex;
|
|
3815
|
+
return {
|
|
3816
|
+
prev: ArraySlice.call(all, 0, boundary),
|
|
3817
|
+
inner,
|
|
3818
|
+
next: ArraySlice.call(all, boundary),
|
|
3819
|
+
};
|
|
3820
|
+
}
|
|
3807
3821
|
// Host element can show up in our "previous" section if its tabindex is 0
|
|
3808
3822
|
// We want to filter that out here
|
|
3809
3823
|
const firstChildIndex = hostIndex > -1 ? hostIndex : ArrayIndexOf.call(all, firstChild);
|
|
@@ -4405,6 +4419,6 @@ defineProperty(Element.prototype, '$domManual$', {
|
|
|
4405
4419
|
},
|
|
4406
4420
|
configurable: true,
|
|
4407
4421
|
});
|
|
4408
|
-
/** version: 9.5.
|
|
4422
|
+
/** version: 9.5.3 */
|
|
4409
4423
|
}
|
|
4410
4424
|
//# sourceMappingURL=index.js.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": "9.5.
|
|
7
|
+
"version": "9.5.3",
|
|
8
8
|
"description": "Synthetic Shadow Root for LWC",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"lwc"
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@lwc/features": "9.5.
|
|
55
|
-
"@lwc/shared": "9.5.
|
|
54
|
+
"@lwc/features": "9.5.3",
|
|
55
|
+
"@lwc/shared": "9.5.3"
|
|
56
56
|
},
|
|
57
57
|
"lwc": {
|
|
58
58
|
"modules": [
|