@lwc/shared 8.12.7-alpha.0 → 8.12.7
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/api-version.d.ts +1 -0
- package/dist/aria.d.ts +1 -0
- package/dist/assert.d.ts +1 -0
- package/dist/custom-element.d.ts +1 -0
- package/dist/html-attributes.d.ts +1 -0
- package/dist/html-escape.d.ts +1 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/keys.d.ts +1 -0
- package/dist/language.d.ts +36 -35
- package/dist/meta.d.ts +1 -0
- package/dist/namespaces.d.ts +1 -0
- package/dist/normalize-class.d.ts +1 -0
- package/dist/overridable-hooks.d.ts +1 -0
- package/dist/signals.d.ts +1 -0
- package/dist/ssr.d.ts +1 -0
- package/dist/static-part-tokens.d.ts +1 -0
- package/dist/style.d.ts +1 -0
- package/dist/void-elements.d.ts +1 -0
- package/package.json +2 -2
- package/dist/attr-reflection.d.ts +0 -2
- package/dist/ecmascript.d.ts +0 -1
package/dist/api-version.d.ts
CHANGED
package/dist/aria.d.ts
CHANGED
|
@@ -29,3 +29,4 @@ declare const AriaAttrNameToPropNameMap: AriaAttrToPropMap, AriaPropNameToAttrNa
|
|
|
29
29
|
export declare function isAriaAttribute(attrName: string): boolean;
|
|
30
30
|
export declare const ID_REFERENCING_ATTRIBUTES_SET: Set<string>;
|
|
31
31
|
export { AriaAttrNameToPropNameMap, AriaPropNameToAttrNameMap };
|
|
32
|
+
//# sourceMappingURL=aria.d.ts.map
|
package/dist/assert.d.ts
CHANGED
package/dist/custom-element.d.ts
CHANGED
package/dist/html-escape.d.ts
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -715,7 +715,7 @@ function htmlEscape(str, attrMode = false) {
|
|
|
715
715
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
716
716
|
*/
|
|
717
717
|
// Increment whenever the LWC template compiler changes
|
|
718
|
-
const LWC_VERSION = "8.12.
|
|
718
|
+
const LWC_VERSION = "8.12.7";
|
|
719
719
|
const LWC_VERSION_COMMENT = `LWC compiler v${LWC_VERSION}`;
|
|
720
720
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
721
721
|
|
|
@@ -1007,5 +1007,5 @@ exports.setHooks = setHooks;
|
|
|
1007
1007
|
exports.setPrototypeOf = setPrototypeOf;
|
|
1008
1008
|
exports.setTrustedSignalSet = setTrustedSignalSet;
|
|
1009
1009
|
exports.toString = toString;
|
|
1010
|
-
/** version: 8.12.
|
|
1010
|
+
/** version: 8.12.7 */
|
|
1011
1011
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -711,7 +711,7 @@ function htmlEscape(str, attrMode = false) {
|
|
|
711
711
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
712
712
|
*/
|
|
713
713
|
// Increment whenever the LWC template compiler changes
|
|
714
|
-
const LWC_VERSION = "8.12.
|
|
714
|
+
const LWC_VERSION = "8.12.7";
|
|
715
715
|
const LWC_VERSION_COMMENT = `LWC compiler v${LWC_VERSION}`;
|
|
716
716
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
717
717
|
|
|
@@ -893,5 +893,5 @@ function generateCustomElementTagName(namespace = '', name = '') {
|
|
|
893
893
|
const DEFAULT_SSR_MODE = 'sync';
|
|
894
894
|
|
|
895
895
|
export { 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, 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, parseStyleText, sanitizeHtmlContent, seal, setHooks, setPrototypeOf, setTrustedSignalSet, toString };
|
|
896
|
-
/** version: 8.12.
|
|
896
|
+
/** version: 8.12.7 */
|
|
897
897
|
//# sourceMappingURL=index.js.map
|
package/dist/keys.d.ts
CHANGED
|
@@ -11,3 +11,4 @@ export declare const KEY__SCOPED_CSS = "$scoped$";
|
|
|
11
11
|
export declare const KEY__NATIVE_ONLY_CSS = "$nativeOnly$";
|
|
12
12
|
export declare const KEY__NATIVE_GET_ELEMENT_BY_ID = "$nativeGetElementById$";
|
|
13
13
|
export declare const KEY__NATIVE_QUERY_SELECTOR_ALL = "$nativeQuerySelectorAll$";
|
|
14
|
+
//# sourceMappingURL=keys.d.ts.map
|
package/dist/language.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ declare const
|
|
|
2
2
|
/** Detached {@linkcode Object.assign}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign MDN Reference}. */
|
|
3
3
|
assign: {
|
|
4
4
|
<T extends {}, U>(target: T, source: U): T & U;
|
|
5
|
-
<
|
|
6
|
-
<
|
|
5
|
+
<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
|
|
6
|
+
<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
|
|
7
7
|
(target: object, ...sources: any[]): any;
|
|
8
8
|
},
|
|
9
9
|
/** Detached {@linkcode Object.create}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create MDN Reference}. */
|
|
@@ -25,10 +25,10 @@ entries: {
|
|
|
25
25
|
/** Detached {@linkcode Object.freeze}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze MDN Reference}. */
|
|
26
26
|
freeze: {
|
|
27
27
|
<T extends Function>(f: T): T;
|
|
28
|
-
<
|
|
29
|
-
[idx: string]:
|
|
30
|
-
}, U extends string |
|
|
31
|
-
<
|
|
28
|
+
<T extends {
|
|
29
|
+
[idx: string]: U | null | undefined | object;
|
|
30
|
+
}, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;
|
|
31
|
+
<T>(o: T): Readonly<T>;
|
|
32
32
|
},
|
|
33
33
|
/** Detached {@linkcode Object.fromEntries}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries MDN Reference}. */
|
|
34
34
|
fromEntries: {
|
|
@@ -66,78 +66,78 @@ declare const
|
|
|
66
66
|
/** Detached {@linkcode Array.isArray}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray MDN Reference}. */
|
|
67
67
|
isArray: (arg: any) => arg is any[], ArrayFrom: {
|
|
68
68
|
<T>(arrayLike: ArrayLike<T>): T[];
|
|
69
|
-
<
|
|
70
|
-
<
|
|
71
|
-
<
|
|
69
|
+
<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
70
|
+
<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
71
|
+
<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
72
72
|
};
|
|
73
73
|
/** The most extensible array type. */
|
|
74
74
|
type BaseArray = readonly unknown[];
|
|
75
75
|
declare const ArrayConcat: {
|
|
76
76
|
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["concat"]>) => ReturnType<T["concat"]>;
|
|
77
|
-
apply: <
|
|
77
|
+
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["concat"]>) => ReturnType<T["concat"]>;
|
|
78
78
|
}, ArrayCopyWithin: {
|
|
79
79
|
call: <T extends unknown[]>(thisArg: T, ...args: Parameters<T["copyWithin"]>) => ReturnType<T["copyWithin"]>;
|
|
80
|
-
apply: <
|
|
80
|
+
apply: <T extends unknown[]>(thisArg: T, args: Parameters<T["copyWithin"]>) => ReturnType<T["copyWithin"]>;
|
|
81
81
|
}, ArrayEvery: {
|
|
82
82
|
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["every"]>) => ReturnType<T["every"]>;
|
|
83
|
-
apply: <
|
|
83
|
+
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["every"]>) => ReturnType<T["every"]>;
|
|
84
84
|
}, ArrayFill: {
|
|
85
85
|
call: <T extends unknown[]>(thisArg: T, ...args: Parameters<T["fill"]>) => ReturnType<T["fill"]>;
|
|
86
|
-
apply: <
|
|
86
|
+
apply: <T extends unknown[]>(thisArg: T, args: Parameters<T["fill"]>) => ReturnType<T["fill"]>;
|
|
87
87
|
}, ArrayFilter: {
|
|
88
88
|
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["filter"]>) => ReturnType<T["filter"]>;
|
|
89
|
-
apply: <
|
|
89
|
+
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["filter"]>) => ReturnType<T["filter"]>;
|
|
90
90
|
}, ArrayFind: {
|
|
91
91
|
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["find"]>) => ReturnType<T["find"]>;
|
|
92
|
-
apply: <
|
|
92
|
+
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["find"]>) => ReturnType<T["find"]>;
|
|
93
93
|
}, ArrayFindIndex: {
|
|
94
94
|
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["findIndex"]>) => ReturnType<T["findIndex"]>;
|
|
95
|
-
apply: <
|
|
95
|
+
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["findIndex"]>) => ReturnType<T["findIndex"]>;
|
|
96
96
|
}, ArrayIncludes: {
|
|
97
97
|
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["includes"]>) => ReturnType<T["includes"]>;
|
|
98
|
-
apply: <
|
|
98
|
+
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["includes"]>) => ReturnType<T["includes"]>;
|
|
99
99
|
}, ArrayIndexOf: {
|
|
100
100
|
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["indexOf"]>) => ReturnType<T["indexOf"]>;
|
|
101
|
-
apply: <
|
|
101
|
+
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["indexOf"]>) => ReturnType<T["indexOf"]>;
|
|
102
102
|
}, ArrayJoin: {
|
|
103
103
|
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["join"]>) => ReturnType<T["join"]>;
|
|
104
|
-
apply: <
|
|
104
|
+
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["join"]>) => ReturnType<T["join"]>;
|
|
105
105
|
}, ArrayMap: {
|
|
106
106
|
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["map"]>) => ReturnType<T["map"]>;
|
|
107
|
-
apply: <
|
|
107
|
+
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["map"]>) => ReturnType<T["map"]>;
|
|
108
108
|
}, ArrayPop: {
|
|
109
109
|
call: <T extends unknown[]>(thisArg: T, ...args: Parameters<T["pop"]>) => ReturnType<T["pop"]>;
|
|
110
|
-
apply: <
|
|
110
|
+
apply: <T extends unknown[]>(thisArg: T, args: Parameters<T["pop"]>) => ReturnType<T["pop"]>;
|
|
111
111
|
}, ArrayPush: {
|
|
112
112
|
call: <T extends unknown[]>(thisArg: T, ...args: Parameters<T["push"]>) => ReturnType<T["push"]>;
|
|
113
|
-
apply: <
|
|
113
|
+
apply: <T extends unknown[]>(thisArg: T, args: Parameters<T["push"]>) => ReturnType<T["push"]>;
|
|
114
114
|
}, ArrayReduce: {
|
|
115
115
|
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["reduce"]>) => ReturnType<T["reduce"]>;
|
|
116
|
-
apply: <
|
|
116
|
+
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["reduce"]>) => ReturnType<T["reduce"]>;
|
|
117
117
|
}, ArrayReverse: {
|
|
118
118
|
call: <T extends unknown[]>(thisArg: T, ...args: Parameters<T["reverse"]>) => ReturnType<T["reverse"]>;
|
|
119
|
-
apply: <
|
|
119
|
+
apply: <T extends unknown[]>(thisArg: T, args: Parameters<T["reverse"]>) => ReturnType<T["reverse"]>;
|
|
120
120
|
}, ArrayShift: {
|
|
121
121
|
call: <T extends unknown[]>(thisArg: T, ...args: Parameters<T["shift"]>) => ReturnType<T["shift"]>;
|
|
122
|
-
apply: <
|
|
122
|
+
apply: <T extends unknown[]>(thisArg: T, args: Parameters<T["shift"]>) => ReturnType<T["shift"]>;
|
|
123
123
|
}, ArraySlice: {
|
|
124
124
|
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["slice"]>) => ReturnType<T["slice"]>;
|
|
125
|
-
apply: <
|
|
125
|
+
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["slice"]>) => ReturnType<T["slice"]>;
|
|
126
126
|
}, ArraySome: {
|
|
127
127
|
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["some"]>) => ReturnType<T["some"]>;
|
|
128
|
-
apply: <
|
|
128
|
+
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["some"]>) => ReturnType<T["some"]>;
|
|
129
129
|
}, ArraySort: {
|
|
130
130
|
call: <T extends unknown[]>(thisArg: T, ...args: Parameters<T["sort"]>) => ReturnType<T["sort"]>;
|
|
131
|
-
apply: <
|
|
131
|
+
apply: <T extends unknown[]>(thisArg: T, args: Parameters<T["sort"]>) => ReturnType<T["sort"]>;
|
|
132
132
|
}, ArraySplice: {
|
|
133
133
|
call: <T extends unknown[]>(thisArg: T, ...args: Parameters<T["splice"]>) => ReturnType<T["splice"]>;
|
|
134
|
-
apply: <
|
|
134
|
+
apply: <T extends unknown[]>(thisArg: T, args: Parameters<T["splice"]>) => ReturnType<T["splice"]>;
|
|
135
135
|
}, ArrayUnshift: {
|
|
136
136
|
call: <T extends unknown[]>(thisArg: T, ...args: Parameters<T["unshift"]>) => ReturnType<T["unshift"]>;
|
|
137
|
-
apply: <
|
|
137
|
+
apply: <T extends unknown[]>(thisArg: T, args: Parameters<T["unshift"]>) => ReturnType<T["unshift"]>;
|
|
138
138
|
}, forEach: {
|
|
139
139
|
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["forEach"]>) => ReturnType<T["forEach"]>;
|
|
140
|
-
apply: <
|
|
140
|
+
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["forEach"]>) => ReturnType<T["forEach"]>;
|
|
141
141
|
};
|
|
142
142
|
/**
|
|
143
143
|
* Wrapper for {@linkcode Array.prototype.every} that correctly preserves the type predicate in the
|
|
@@ -159,11 +159,11 @@ declare const StringCharAt: (pos: number) => string, StringCharCodeAt: (index: n
|
|
|
159
159
|
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
160
160
|
}, replacer: (substring: string, ...args: any[]) => string): string;
|
|
161
161
|
}, StringSplit: {
|
|
162
|
-
(separator: string | RegExp, limit?: number
|
|
162
|
+
(separator: string | RegExp, limit?: number): string[];
|
|
163
163
|
(splitter: {
|
|
164
|
-
[Symbol.split](string: string, limit?: number
|
|
165
|
-
}, limit?: number
|
|
166
|
-
}, StringSlice: (start?: number
|
|
164
|
+
[Symbol.split](string: string, limit?: number): string[];
|
|
165
|
+
}, limit?: number): string[];
|
|
166
|
+
}, StringSlice: (start?: number, end?: number) => string, StringToLowerCase: () => string, StringTrim: () => string;
|
|
167
167
|
export {
|
|
168
168
|
/** Detached {@linkcode Array.isArray}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray MDN Reference}. */
|
|
169
169
|
isArray,
|
|
@@ -300,3 +300,4 @@ export declare function toString(obj: unknown): string;
|
|
|
300
300
|
* @returns The property descriptor for the given object and property key.
|
|
301
301
|
*/
|
|
302
302
|
export declare function getPropertyDescriptor(o: unknown, p: PropertyKey): PropertyDescriptor | undefined;
|
|
303
|
+
//# sourceMappingURL=language.d.ts.map
|
package/dist/meta.d.ts
CHANGED
package/dist/namespaces.d.ts
CHANGED
|
@@ -3,3 +3,4 @@ export declare const XML_NAMESPACE = "http://www.w3.org/XML/1998/namespace";
|
|
|
3
3
|
export declare const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
|
|
4
4
|
export declare const MATHML_NAMESPACE = "http://www.w3.org/1998/Math/MathML";
|
|
5
5
|
export declare const XLINK_NAMESPACE = "http://www.w3.org/1999/xlink";
|
|
6
|
+
//# sourceMappingURL=namespaces.d.ts.map
|
package/dist/signals.d.ts
CHANGED
package/dist/ssr.d.ts
CHANGED
package/dist/style.d.ts
CHANGED
package/dist/void-elements.d.ts
CHANGED
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.12.7
|
|
7
|
+
"version": "8.12.7",
|
|
8
8
|
"description": "Utilities and methods that are shared across packages",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"lwc"
|
|
@@ -45,4 +45,4 @@
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
}
|
|
48
|
+
}
|
package/dist/ecmascript.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const reservedKeywords: Set<string>;
|