@lwc/shared 8.14.0 → 8.15.1
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.js +19 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +19 -3
- package/dist/normalize-tab-index.d.ts +7 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -736,7 +736,7 @@ function htmlEscape(str, attrMode = false) {
|
|
|
736
736
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
737
737
|
*/
|
|
738
738
|
// Increment whenever the LWC template compiler changes
|
|
739
|
-
const LWC_VERSION = "8.
|
|
739
|
+
const LWC_VERSION = "8.15.1";
|
|
740
740
|
const LWC_VERSION_COMMENT = `LWC compiler v${LWC_VERSION}`;
|
|
741
741
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
742
742
|
|
|
@@ -917,6 +917,22 @@ function generateCustomElementTagName(namespace = '', name = '') {
|
|
|
917
917
|
*/
|
|
918
918
|
const DEFAULT_SSR_MODE = 'sync';
|
|
919
919
|
|
|
920
|
+
/*
|
|
921
|
+
* Copyright (c) 2025, salesforce.com, inc.
|
|
922
|
+
* All rights reserved.
|
|
923
|
+
* SPDX-License-Identifier: MIT
|
|
924
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
925
|
+
*/
|
|
926
|
+
/**
|
|
927
|
+
* Global HTML "tabindex" attribute is specially massaged into a stringified number
|
|
928
|
+
* This follows the historical behavior in api.ts:
|
|
929
|
+
* https://github.com/salesforce/lwc/blob/f34a347/packages/%40lwc/engine-core/src/framework/api.ts#L193-L211
|
|
930
|
+
*/
|
|
931
|
+
function normalizeTabIndex(value) {
|
|
932
|
+
const shouldNormalize = value > 0 && typeof value !== 'boolean';
|
|
933
|
+
return shouldNormalize ? 0 : value;
|
|
934
|
+
}
|
|
935
|
+
|
|
920
936
|
exports.AMBIGUOUS_PROP_SET = AMBIGUOUS_PROP_SET;
|
|
921
937
|
exports.AriaAttrNameToPropNameMap = AriaAttrNameToPropNameMap;
|
|
922
938
|
exports.AriaPropNameToAttrNameMap = AriaPropNameToAttrNameMap;
|
|
@@ -1024,11 +1040,12 @@ exports.keys = keys;
|
|
|
1024
1040
|
exports.noop = noop;
|
|
1025
1041
|
exports.normalizeClass = normalizeClass;
|
|
1026
1042
|
exports.normalizeStyleAttributeValue = normalizeStyleAttributeValue;
|
|
1043
|
+
exports.normalizeTabIndex = normalizeTabIndex;
|
|
1027
1044
|
exports.parseStyleText = parseStyleText;
|
|
1028
1045
|
exports.seal = seal;
|
|
1029
1046
|
exports.setHooks = setHooks;
|
|
1030
1047
|
exports.setPrototypeOf = setPrototypeOf;
|
|
1031
1048
|
exports.setTrustedSignalSet = setTrustedSignalSet;
|
|
1032
1049
|
exports.toString = toString;
|
|
1033
|
-
/** version: 8.
|
|
1050
|
+
/** version: 8.15.1 */
|
|
1034
1051
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -732,7 +732,7 @@ function htmlEscape(str, attrMode = false) {
|
|
|
732
732
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
733
733
|
*/
|
|
734
734
|
// Increment whenever the LWC template compiler changes
|
|
735
|
-
const LWC_VERSION = "8.
|
|
735
|
+
const LWC_VERSION = "8.15.1";
|
|
736
736
|
const LWC_VERSION_COMMENT = `LWC compiler v${LWC_VERSION}`;
|
|
737
737
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
738
738
|
|
|
@@ -913,6 +913,22 @@ function generateCustomElementTagName(namespace = '', name = '') {
|
|
|
913
913
|
*/
|
|
914
914
|
const DEFAULT_SSR_MODE = 'sync';
|
|
915
915
|
|
|
916
|
-
|
|
917
|
-
|
|
916
|
+
/*
|
|
917
|
+
* Copyright (c) 2025, salesforce.com, inc.
|
|
918
|
+
* All rights reserved.
|
|
919
|
+
* SPDX-License-Identifier: MIT
|
|
920
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
921
|
+
*/
|
|
922
|
+
/**
|
|
923
|
+
* Global HTML "tabindex" attribute is specially massaged into a stringified number
|
|
924
|
+
* This follows the historical behavior in api.ts:
|
|
925
|
+
* https://github.com/salesforce/lwc/blob/f34a347/packages/%40lwc/engine-core/src/framework/api.ts#L193-L211
|
|
926
|
+
*/
|
|
927
|
+
function normalizeTabIndex(value) {
|
|
928
|
+
const shouldNormalize = value > 0 && typeof value !== 'boolean';
|
|
929
|
+
return shouldNormalize ? 0 : value;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
export { AMBIGUOUS_PROP_SET, AriaAttrNameToPropNameMap, AriaPropNameToAttrNameMap, ArrayConcat, ArrayCopyWithin, ArrayEvery, ArrayFill, ArrayFilter, ArrayFind, ArrayFindIndex, ArrayFrom, ArrayIncludes, ArrayIndexOf, ArrayJoin, ArrayMap, ArrayPop, ArrayPush, ArrayReduce, ArrayReverse, ArrayShift, ArraySlice, ArraySome, ArraySort, ArraySplice, ArrayUnshift, DEFAULT_SSR_MODE, DISALLOWED_PROP_SET, HIGHEST_API_VERSION, HTML_NAMESPACE, ID_REFERENCING_ATTRIBUTES_SET, IMPORTANT_FLAG, KEY__LEGACY_SHADOW_TOKEN, KEY__LEGACY_SHADOW_TOKEN_PRIVATE, KEY__NATIVE_GET_ELEMENT_BY_ID, KEY__NATIVE_ONLY_CSS, KEY__NATIVE_QUERY_SELECTOR_ALL, KEY__SCOPED_CSS, KEY__SHADOW_RESOLVER, KEY__SHADOW_RESOLVER_PRIVATE, KEY__SHADOW_STATIC, KEY__SHADOW_STATIC_PRIVATE, KEY__SHADOW_TOKEN, KEY__SHADOW_TOKEN_PRIVATE, KEY__SYNTHETIC_MODE, LOWEST_API_VERSION, LWC_VERSION, LWC_VERSION_COMMENT, LWC_VERSION_COMMENT_REGEX, MATHML_NAMESPACE, REFLECTIVE_GLOBAL_PROPERTY_SET, SPECIAL_PROPERTY_ATTRIBUTE_MAPPING, SVG_NAMESPACE, StringCharAt, StringCharCodeAt, StringFromCharCode, StringReplace, StringSlice, StringSplit, StringToLowerCase, StringTrim, XLINK_NAMESPACE, XML_NAMESPACE, addTrustedSignal, arrayEvery, assert, assign, create, defineProperties, defineProperty, entries, flattenStylesheets, forEach, freeze, fromEntries, generateCustomElementTagName, getAPIVersionFromNumber, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPropertyDescriptor, getPrototypeOf, hasOwnProperty, htmlEscape, htmlPropertyToAttribute, isAPIFeatureEnabled, isAriaAttribute, isArray, isBoolean, isBooleanAttribute, isFalse, isFrozen, isFunction, isGlobalHtmlAttribute, isNull, isNumber, isObject, isString, isTrue, isTrustedSignal, isUndefined, isVoidElement, kebabCaseToCamelCase, keys, noop, normalizeClass, normalizeStyleAttributeValue, normalizeTabIndex, parseStyleText, sanitizeHtmlContent, seal, setHooks, setPrototypeOf, setTrustedSignalSet, toString };
|
|
933
|
+
/** version: 8.15.1 */
|
|
918
934
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Global HTML "tabindex" attribute is specially massaged into a stringified number
|
|
3
|
+
* This follows the historical behavior in api.ts:
|
|
4
|
+
* https://github.com/salesforce/lwc/blob/f34a347/packages/%40lwc/engine-core/src/framework/api.ts#L193-L211
|
|
5
|
+
*/
|
|
6
|
+
export declare function normalizeTabIndex(value: any): any;
|
|
7
|
+
//# sourceMappingURL=normalize-tab-index.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/shared",
|
|
7
|
-
"version": "8.
|
|
7
|
+
"version": "8.15.1",
|
|
8
8
|
"description": "Utilities and methods that are shared across packages",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"lwc"
|