@lwc/shared 2.7.1 → 2.8.0
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 +18 -1
- package/dist/index.js +14 -2
- package/package.json +2 -2
- package/types/assert.d.ts +3 -3
- package/types/index.d.ts +1 -0
- package/types/namespaces.d.ts +5 -0
- package/LICENSE +0 -10
package/dist/index.cjs.js
CHANGED
|
@@ -430,6 +430,18 @@ function htmlPropertyToAttribute(propName) {
|
|
|
430
430
|
// we can't use typeof since it will fail when transpiling.
|
|
431
431
|
const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
|
|
432
432
|
|
|
433
|
+
/*
|
|
434
|
+
* Copyright (c) 2022, salesforce.com, inc.
|
|
435
|
+
* All rights reserved.
|
|
436
|
+
* SPDX-License-Identifier: MIT
|
|
437
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
438
|
+
*/
|
|
439
|
+
const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
|
|
440
|
+
const XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace';
|
|
441
|
+
const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
|
|
442
|
+
const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
|
|
443
|
+
const XLINK_NAMESPACE = 'http://www.w3.org/1999/xlink';
|
|
444
|
+
|
|
433
445
|
exports.AriaAttrNameToPropNameMap = AriaAttrNameToPropNameMap;
|
|
434
446
|
exports.AriaPropNameToAttrNameMap = AriaPropNameToAttrNameMap;
|
|
435
447
|
exports.ArrayFilter = ArrayFilter;
|
|
@@ -443,6 +455,7 @@ exports.ArrayReverse = ArrayReverse;
|
|
|
443
455
|
exports.ArraySlice = ArraySlice;
|
|
444
456
|
exports.ArraySplice = ArraySplice;
|
|
445
457
|
exports.ArrayUnshift = ArrayUnshift;
|
|
458
|
+
exports.HTML_NAMESPACE = HTML_NAMESPACE;
|
|
446
459
|
exports.KEY__IS_NATIVE_SHADOW_ROOT_DEFINED = KEY__IS_NATIVE_SHADOW_ROOT_DEFINED;
|
|
447
460
|
exports.KEY__SCOPED_CSS = KEY__SCOPED_CSS;
|
|
448
461
|
exports.KEY__SHADOW_RESOLVER = KEY__SHADOW_RESOLVER;
|
|
@@ -450,12 +463,16 @@ exports.KEY__SHADOW_RESOLVER_PRIVATE = KEY__SHADOW_RESOLVER_PRIVATE;
|
|
|
450
463
|
exports.KEY__SHADOW_TOKEN = KEY__SHADOW_TOKEN;
|
|
451
464
|
exports.KEY__SHADOW_TOKEN_PRIVATE = KEY__SHADOW_TOKEN_PRIVATE;
|
|
452
465
|
exports.KEY__SYNTHETIC_MODE = KEY__SYNTHETIC_MODE;
|
|
466
|
+
exports.MATHML_NAMESPACE = MATHML_NAMESPACE;
|
|
467
|
+
exports.SVG_NAMESPACE = SVG_NAMESPACE;
|
|
453
468
|
exports.StringCharCodeAt = StringCharCodeAt;
|
|
454
469
|
exports.StringFromCharCode = StringFromCharCode;
|
|
455
470
|
exports.StringReplace = StringReplace;
|
|
456
471
|
exports.StringSlice = StringSlice;
|
|
457
472
|
exports.StringToLowerCase = StringToLowerCase;
|
|
458
473
|
exports.VOID_ELEMENTS = VOID_ELEMENTS;
|
|
474
|
+
exports.XLINK_NAMESPACE = XLINK_NAMESPACE;
|
|
475
|
+
exports.XML_NAMESPACE = XML_NAMESPACE;
|
|
459
476
|
exports.assert = assert;
|
|
460
477
|
exports.assign = assign;
|
|
461
478
|
exports.create = create;
|
|
@@ -491,4 +508,4 @@ exports.noop = noop;
|
|
|
491
508
|
exports.seal = seal;
|
|
492
509
|
exports.setPrototypeOf = setPrototypeOf;
|
|
493
510
|
exports.toString = toString;
|
|
494
|
-
/** version: 2.
|
|
511
|
+
/** version: 2.8.0 */
|
package/dist/index.js
CHANGED
|
@@ -426,5 +426,17 @@ function htmlPropertyToAttribute(propName) {
|
|
|
426
426
|
// we can't use typeof since it will fail when transpiling.
|
|
427
427
|
const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
|
|
428
428
|
|
|
429
|
-
|
|
430
|
-
|
|
429
|
+
/*
|
|
430
|
+
* Copyright (c) 2022, salesforce.com, inc.
|
|
431
|
+
* All rights reserved.
|
|
432
|
+
* SPDX-License-Identifier: MIT
|
|
433
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
434
|
+
*/
|
|
435
|
+
const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
|
|
436
|
+
const XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace';
|
|
437
|
+
const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
|
|
438
|
+
const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
|
|
439
|
+
const XLINK_NAMESPACE = 'http://www.w3.org/1999/xlink';
|
|
440
|
+
|
|
441
|
+
export { AriaAttrNameToPropNameMap, AriaPropNameToAttrNameMap, ArrayFilter, ArrayFind, ArrayIndexOf, ArrayJoin, ArrayMap, ArrayPush, ArrayReduce, ArrayReverse, ArraySlice, ArraySplice, ArrayUnshift, HTML_NAMESPACE, KEY__IS_NATIVE_SHADOW_ROOT_DEFINED, KEY__SCOPED_CSS, KEY__SHADOW_RESOLVER, KEY__SHADOW_RESOLVER_PRIVATE, KEY__SHADOW_TOKEN, KEY__SHADOW_TOKEN_PRIVATE, KEY__SYNTHETIC_MODE, MATHML_NAMESPACE, SVG_NAMESPACE, StringCharCodeAt, StringFromCharCode, StringReplace, StringSlice, StringToLowerCase, VOID_ELEMENTS, XLINK_NAMESPACE, XML_NAMESPACE, assert, assign, create, defineProperties, defineProperty, forEach, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPropertyDescriptor, getPrototypeOf, _globalThis as globalThis, hasNativeSymbolSupport, hasOwnProperty, htmlPropertyToAttribute, isAriaAttribute, isArray, isBoolean, isBooleanAttribute, isFalse, isFrozen, isFunction, isGlobalHtmlAttribute, isNull, isNumber, isObject, isString, isTrue, isUndefined, isVoidElement, keys, noop, seal, setPrototypeOf, toString };
|
|
442
|
+
/** version: 2.8.0 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lwc/shared",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "Utilities and methods that are shared across packages",
|
|
5
5
|
"homepage": "https://lwc.dev/",
|
|
6
6
|
"repository": {
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "94040389ab8fc717b8753e503f659489480a327d"
|
|
31
31
|
}
|
package/types/assert.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function invariant(value: any, msg: string):
|
|
2
|
-
export declare function isTrue(value: any, msg: string):
|
|
1
|
+
export declare function invariant(value: any, msg: string): asserts value;
|
|
2
|
+
export declare function isTrue(value: any, msg: string): asserts value;
|
|
3
3
|
export declare function isFalse(value: any, msg: string): void;
|
|
4
|
-
export declare function fail(msg: string):
|
|
4
|
+
export declare function fail(msg: string): never;
|
package/types/index.d.ts
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
|
|
2
|
+
export declare const XML_NAMESPACE = "http://www.w3.org/XML/1998/namespace";
|
|
3
|
+
export declare const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
|
|
4
|
+
export declare const MATHML_NAMESPACE = "http://www.w3.org/1998/Math/MathML";
|
|
5
|
+
export declare const XLINK_NAMESPACE = "http://www.w3.org/1999/xlink";
|
package/LICENSE
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
MIT LICENSE
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2018, Salesforce.com, Inc.
|
|
4
|
-
All rights reserved.
|
|
5
|
-
|
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
7
|
-
|
|
8
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
9
|
-
|
|
10
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|