@lwc/shared 2.23.1 → 2.23.2
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 +16 -4
- package/dist/index.js +16 -4
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -329,24 +329,36 @@ function isBooleanAttribute(attrName, tagName) {
|
|
|
329
329
|
return (allowedTagNames !== undefined &&
|
|
330
330
|
(allowedTagNames.size === 0 || allowedTagNames.has(tagName)));
|
|
331
331
|
}
|
|
332
|
+
// This list is based on https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes
|
|
332
333
|
const GLOBAL_ATTRIBUTE = new Set([
|
|
333
|
-
'role',
|
|
334
334
|
'accesskey',
|
|
335
|
+
'autocapitalize',
|
|
336
|
+
'autofocus',
|
|
335
337
|
'class',
|
|
336
338
|
'contenteditable',
|
|
337
339
|
'contextmenu',
|
|
338
340
|
'dir',
|
|
339
341
|
'draggable',
|
|
340
|
-
'
|
|
342
|
+
'enterkeyhint',
|
|
343
|
+
'exportparts',
|
|
341
344
|
'hidden',
|
|
342
345
|
'id',
|
|
346
|
+
'inputmode',
|
|
347
|
+
'is',
|
|
348
|
+
'itemid',
|
|
343
349
|
'itemprop',
|
|
350
|
+
'itemref',
|
|
351
|
+
'itemscope',
|
|
352
|
+
'itemtype',
|
|
344
353
|
'lang',
|
|
354
|
+
'nonce',
|
|
355
|
+
'part',
|
|
345
356
|
'slot',
|
|
346
357
|
'spellcheck',
|
|
347
358
|
'style',
|
|
348
359
|
'tabindex',
|
|
349
360
|
'title',
|
|
361
|
+
'translate',
|
|
350
362
|
]);
|
|
351
363
|
function isGlobalHtmlAttribute(attrName) {
|
|
352
364
|
return GLOBAL_ATTRIBUTE.has(attrName);
|
|
@@ -441,7 +453,7 @@ const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === '
|
|
|
441
453
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
442
454
|
*/
|
|
443
455
|
// Increment whenever the LWC template compiler changes
|
|
444
|
-
const LWC_VERSION = "2.23.
|
|
456
|
+
const LWC_VERSION = "2.23.2";
|
|
445
457
|
const LWC_VERSION_COMMENT = `LWC compiler v${LWC_VERSION}`;
|
|
446
458
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
447
459
|
|
|
@@ -521,4 +533,4 @@ exports.noop = noop;
|
|
|
521
533
|
exports.seal = seal;
|
|
522
534
|
exports.setPrototypeOf = setPrototypeOf;
|
|
523
535
|
exports.toString = toString;
|
|
524
|
-
/** version: 2.23.
|
|
536
|
+
/** version: 2.23.2 */
|
package/dist/index.js
CHANGED
|
@@ -325,24 +325,36 @@ function isBooleanAttribute(attrName, tagName) {
|
|
|
325
325
|
return (allowedTagNames !== undefined &&
|
|
326
326
|
(allowedTagNames.size === 0 || allowedTagNames.has(tagName)));
|
|
327
327
|
}
|
|
328
|
+
// This list is based on https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes
|
|
328
329
|
const GLOBAL_ATTRIBUTE = new Set([
|
|
329
|
-
'role',
|
|
330
330
|
'accesskey',
|
|
331
|
+
'autocapitalize',
|
|
332
|
+
'autofocus',
|
|
331
333
|
'class',
|
|
332
334
|
'contenteditable',
|
|
333
335
|
'contextmenu',
|
|
334
336
|
'dir',
|
|
335
337
|
'draggable',
|
|
336
|
-
'
|
|
338
|
+
'enterkeyhint',
|
|
339
|
+
'exportparts',
|
|
337
340
|
'hidden',
|
|
338
341
|
'id',
|
|
342
|
+
'inputmode',
|
|
343
|
+
'is',
|
|
344
|
+
'itemid',
|
|
339
345
|
'itemprop',
|
|
346
|
+
'itemref',
|
|
347
|
+
'itemscope',
|
|
348
|
+
'itemtype',
|
|
340
349
|
'lang',
|
|
350
|
+
'nonce',
|
|
351
|
+
'part',
|
|
341
352
|
'slot',
|
|
342
353
|
'spellcheck',
|
|
343
354
|
'style',
|
|
344
355
|
'tabindex',
|
|
345
356
|
'title',
|
|
357
|
+
'translate',
|
|
346
358
|
]);
|
|
347
359
|
function isGlobalHtmlAttribute(attrName) {
|
|
348
360
|
return GLOBAL_ATTRIBUTE.has(attrName);
|
|
@@ -437,9 +449,9 @@ const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === '
|
|
|
437
449
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
438
450
|
*/
|
|
439
451
|
// Increment whenever the LWC template compiler changes
|
|
440
|
-
const LWC_VERSION = "2.23.
|
|
452
|
+
const LWC_VERSION = "2.23.2";
|
|
441
453
|
const LWC_VERSION_COMMENT = `LWC compiler v${LWC_VERSION}`;
|
|
442
454
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
443
455
|
|
|
444
456
|
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.23.
|
|
457
|
+
/** version: 2.23.2 */
|