@lwc/synthetic-shadow 9.3.10 → 9.3.11
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
|
@@ -194,7 +194,7 @@ const KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
|
|
|
194
194
|
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
|
-
/** version: 9.3.
|
|
197
|
+
/** version: 9.3.11 */
|
|
198
198
|
|
|
199
199
|
/**
|
|
200
200
|
* Copyright (c) 2026 Salesforce, Inc.
|
|
@@ -202,7 +202,7 @@ const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
|
|
|
202
202
|
if (!globalThis.lwcRuntimeFlags) {
|
|
203
203
|
Object.defineProperty(globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
204
204
|
}
|
|
205
|
-
/** version: 9.3.
|
|
205
|
+
/** version: 9.3.11 */
|
|
206
206
|
|
|
207
207
|
/*
|
|
208
208
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -3737,6 +3737,20 @@ function getTabbableSegments(host) {
|
|
|
3737
3737
|
const firstChild = inner[0];
|
|
3738
3738
|
const lastChild = inner[inner.length - 1];
|
|
3739
3739
|
const hostIndex = ArrayIndexOf.call(all, host);
|
|
3740
|
+
if (hostIndex === -1 && inner.length === 0) {
|
|
3741
|
+
// A negative-tabindex host with no sequentially focusable descendants has no
|
|
3742
|
+
// index in `all`. Use its DOM position instead of slicing from -1/0, which
|
|
3743
|
+
// would make forward navigation restart at the beginning of the document.
|
|
3744
|
+
const nextIndex = ArrayFindIndex.call(all, (element) => {
|
|
3745
|
+
return ((compareDocumentPosition.call(host, element) & DOCUMENT_POSITION_FOLLOWING) !== 0);
|
|
3746
|
+
});
|
|
3747
|
+
const boundary = nextIndex === -1 ? all.length : nextIndex;
|
|
3748
|
+
return {
|
|
3749
|
+
prev: ArraySlice.call(all, 0, boundary),
|
|
3750
|
+
inner,
|
|
3751
|
+
next: ArraySlice.call(all, boundary),
|
|
3752
|
+
};
|
|
3753
|
+
}
|
|
3740
3754
|
// Host element can show up in our "previous" section if its tabindex is 0
|
|
3741
3755
|
// We want to filter that out here
|
|
3742
3756
|
const firstChildIndex = hostIndex > -1 ? hostIndex : ArrayIndexOf.call(all, firstChild);
|
|
@@ -4338,6 +4352,6 @@ defineProperty(Element.prototype, '$domManual$', {
|
|
|
4338
4352
|
},
|
|
4339
4353
|
configurable: true,
|
|
4340
4354
|
});
|
|
4341
|
-
/** version: 9.3.
|
|
4355
|
+
/** version: 9.3.11 */
|
|
4342
4356
|
}
|
|
4343
4357
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -192,7 +192,7 @@ const KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
|
|
|
192
192
|
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
|
-
/** version: 9.3.
|
|
195
|
+
/** version: 9.3.11 */
|
|
196
196
|
|
|
197
197
|
/**
|
|
198
198
|
* Copyright (c) 2026 Salesforce, Inc.
|
|
@@ -200,7 +200,7 @@ const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
|
|
|
200
200
|
if (!globalThis.lwcRuntimeFlags) {
|
|
201
201
|
Object.defineProperty(globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
|
202
202
|
}
|
|
203
|
-
/** version: 9.3.
|
|
203
|
+
/** version: 9.3.11 */
|
|
204
204
|
|
|
205
205
|
/*
|
|
206
206
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -3735,6 +3735,20 @@ function getTabbableSegments(host) {
|
|
|
3735
3735
|
const firstChild = inner[0];
|
|
3736
3736
|
const lastChild = inner[inner.length - 1];
|
|
3737
3737
|
const hostIndex = ArrayIndexOf.call(all, host);
|
|
3738
|
+
if (hostIndex === -1 && inner.length === 0) {
|
|
3739
|
+
// A negative-tabindex host with no sequentially focusable descendants has no
|
|
3740
|
+
// index in `all`. Use its DOM position instead of slicing from -1/0, which
|
|
3741
|
+
// would make forward navigation restart at the beginning of the document.
|
|
3742
|
+
const nextIndex = ArrayFindIndex.call(all, (element) => {
|
|
3743
|
+
return ((compareDocumentPosition.call(host, element) & DOCUMENT_POSITION_FOLLOWING) !== 0);
|
|
3744
|
+
});
|
|
3745
|
+
const boundary = nextIndex === -1 ? all.length : nextIndex;
|
|
3746
|
+
return {
|
|
3747
|
+
prev: ArraySlice.call(all, 0, boundary),
|
|
3748
|
+
inner,
|
|
3749
|
+
next: ArraySlice.call(all, boundary),
|
|
3750
|
+
};
|
|
3751
|
+
}
|
|
3738
3752
|
// Host element can show up in our "previous" section if its tabindex is 0
|
|
3739
3753
|
// We want to filter that out here
|
|
3740
3754
|
const firstChildIndex = hostIndex > -1 ? hostIndex : ArrayIndexOf.call(all, firstChild);
|
|
@@ -4336,6 +4350,6 @@ defineProperty(Element.prototype, '$domManual$', {
|
|
|
4336
4350
|
},
|
|
4337
4351
|
configurable: true,
|
|
4338
4352
|
});
|
|
4339
|
-
/** version: 9.3.
|
|
4353
|
+
/** version: 9.3.11 */
|
|
4340
4354
|
}
|
|
4341
4355
|
//# 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.3.
|
|
7
|
+
"version": "9.3.11",
|
|
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.3.
|
|
55
|
-
"@lwc/shared": "9.3.
|
|
54
|
+
"@lwc/features": "9.3.11",
|
|
55
|
+
"@lwc/shared": "9.3.11"
|
|
56
56
|
},
|
|
57
57
|
"lwc": {
|
|
58
58
|
"modules": [
|