@lwc/shared 2.20.2 → 2.20.5
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 +9 -4
- package/dist/index.js +9 -4
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -266,7 +266,7 @@ const XLINK_NAMESPACE = 'http://www.w3.org/1999/xlink';
|
|
|
266
266
|
// e.g. `</tagName>` or `<tagName />`. For instance, `<meta>` closes on its own; no need for a slash.
|
|
267
267
|
// These only come from HTML; there are no void elements in the SVG or MathML namespaces.
|
|
268
268
|
// See: https://html.spec.whatwg.org/multipage/syntax.html#syntax-tags
|
|
269
|
-
const
|
|
269
|
+
const VOID_ELEMENTS = [
|
|
270
270
|
'area',
|
|
271
271
|
'base',
|
|
272
272
|
'br',
|
|
@@ -280,7 +280,12 @@ const VOID_ELEMENTS_SET = new Set([
|
|
|
280
280
|
'source',
|
|
281
281
|
'track',
|
|
282
282
|
'wbr',
|
|
283
|
-
]
|
|
283
|
+
];
|
|
284
|
+
// These elements have been deprecated but preserving their usage for backwards compatibility
|
|
285
|
+
// until we can officially deprecate them from LWC.
|
|
286
|
+
// See: https://html.spec.whatwg.org/multipage/obsolete.html#obsolete-but-conforming-features
|
|
287
|
+
const DEPRECATED_VOID_ELEMENTS = ['param', 'keygen', 'menuitem'];
|
|
288
|
+
const VOID_ELEMENTS_SET = new Set([...VOID_ELEMENTS, ...DEPRECATED_VOID_ELEMENTS]);
|
|
284
289
|
function isVoidElement(name, namespace) {
|
|
285
290
|
return namespace === HTML_NAMESPACE && VOID_ELEMENTS_SET.has(name.toLowerCase());
|
|
286
291
|
}
|
|
@@ -441,7 +446,7 @@ const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === '
|
|
|
441
446
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
442
447
|
*/
|
|
443
448
|
// Increment whenever the LWC template compiler changes
|
|
444
|
-
const LWC_VERSION = "2.20.
|
|
449
|
+
const LWC_VERSION = "2.20.5";
|
|
445
450
|
const LWC_VERSION_COMMENT = `LWC compiler v${LWC_VERSION}`;
|
|
446
451
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
447
452
|
|
|
@@ -521,4 +526,4 @@ exports.noop = noop;
|
|
|
521
526
|
exports.seal = seal;
|
|
522
527
|
exports.setPrototypeOf = setPrototypeOf;
|
|
523
528
|
exports.toString = toString;
|
|
524
|
-
/** version: 2.20.
|
|
529
|
+
/** version: 2.20.5 */
|
package/dist/index.js
CHANGED
|
@@ -262,7 +262,7 @@ const XLINK_NAMESPACE = 'http://www.w3.org/1999/xlink';
|
|
|
262
262
|
// e.g. `</tagName>` or `<tagName />`. For instance, `<meta>` closes on its own; no need for a slash.
|
|
263
263
|
// These only come from HTML; there are no void elements in the SVG or MathML namespaces.
|
|
264
264
|
// See: https://html.spec.whatwg.org/multipage/syntax.html#syntax-tags
|
|
265
|
-
const
|
|
265
|
+
const VOID_ELEMENTS = [
|
|
266
266
|
'area',
|
|
267
267
|
'base',
|
|
268
268
|
'br',
|
|
@@ -276,7 +276,12 @@ const VOID_ELEMENTS_SET = new Set([
|
|
|
276
276
|
'source',
|
|
277
277
|
'track',
|
|
278
278
|
'wbr',
|
|
279
|
-
]
|
|
279
|
+
];
|
|
280
|
+
// These elements have been deprecated but preserving their usage for backwards compatibility
|
|
281
|
+
// until we can officially deprecate them from LWC.
|
|
282
|
+
// See: https://html.spec.whatwg.org/multipage/obsolete.html#obsolete-but-conforming-features
|
|
283
|
+
const DEPRECATED_VOID_ELEMENTS = ['param', 'keygen', 'menuitem'];
|
|
284
|
+
const VOID_ELEMENTS_SET = new Set([...VOID_ELEMENTS, ...DEPRECATED_VOID_ELEMENTS]);
|
|
280
285
|
function isVoidElement(name, namespace) {
|
|
281
286
|
return namespace === HTML_NAMESPACE && VOID_ELEMENTS_SET.has(name.toLowerCase());
|
|
282
287
|
}
|
|
@@ -437,9 +442,9 @@ const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === '
|
|
|
437
442
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
438
443
|
*/
|
|
439
444
|
// Increment whenever the LWC template compiler changes
|
|
440
|
-
const LWC_VERSION = "2.20.
|
|
445
|
+
const LWC_VERSION = "2.20.5";
|
|
441
446
|
const LWC_VERSION_COMMENT = `LWC compiler v${LWC_VERSION}`;
|
|
442
447
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
443
448
|
|
|
444
449
|
export { AriaAttrNameToPropNameMap, AriaPropNameToAttrNameMap, ArrayCopyWithin, ArrayFill, ArrayFilter, ArrayFind, ArrayIndexOf, ArrayJoin, ArrayMap, ArrayPop, ArrayPush, ArrayReduce, ArrayReverse, ArrayShift, ArraySlice, ArraySort, ArraySplice, ArrayUnshift, HTML_NAMESPACE, KEY__IS_NATIVE_SHADOW_ROOT_DEFINED, 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, LWC_VERSION, LWC_VERSION_COMMENT, LWC_VERSION_COMMENT_REGEX, MATHML_NAMESPACE, SVG_NAMESPACE, StringCharCodeAt, StringFromCharCode, StringReplace, StringSlice, StringToLowerCase, XLINK_NAMESPACE, XML_NAMESPACE, assert, assign, create, defineProperties, defineProperty, forEach, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPropertyDescriptor, getPrototypeOf, _globalThis as globalThis, hasNativeSymbolSupport, hasOwnProperty, htmlEscape, htmlPropertyToAttribute, isAriaAttribute, isArray, isBoolean, isBooleanAttribute, isFalse, isFrozen, isFunction, isGlobalHtmlAttribute, isNull, isNumber, isObject, isString, isTrue, isUndefined, isVoidElement, keys, noop, seal, setPrototypeOf, toString };
|
|
445
|
-
/** version: 2.20.
|
|
450
|
+
/** version: 2.20.5 */
|