@lwc/shared 8.12.6 → 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/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.6";
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.6 */
1010
+ /** version: 8.12.7 */
1011
1011
  //# sourceMappingURL=index.cjs.js.map
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.6";
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.6 */
896
+ /** version: 8.12.7 */
897
897
  //# sourceMappingURL=index.js.map
@@ -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
- <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
6
- <T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
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
- <T_1 extends {
29
- [idx: string]: object | U | null | undefined;
30
- }, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
31
- <T_2>(o: T_2): Readonly<T_2>;
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
- <T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
70
- <T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
71
- <T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
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: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["concat"]>) => ReturnType<T_1["concat"]>;
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: <T_1 extends unknown[]>(thisArg: T_1, args: Parameters<T_1["copyWithin"]>) => ReturnType<T_1["copyWithin"]>;
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: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["every"]>) => ReturnType<T_1["every"]>;
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: <T_1 extends unknown[]>(thisArg: T_1, args: Parameters<T_1["fill"]>) => ReturnType<T_1["fill"]>;
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: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["filter"]>) => ReturnType<T_1["filter"]>;
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: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["find"]>) => ReturnType<T_1["find"]>;
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: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["findIndex"]>) => ReturnType<T_1["findIndex"]>;
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: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["includes"]>) => ReturnType<T_1["includes"]>;
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: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["indexOf"]>) => ReturnType<T_1["indexOf"]>;
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: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["join"]>) => ReturnType<T_1["join"]>;
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: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["map"]>) => ReturnType<T_1["map"]>;
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: <T_1 extends unknown[]>(thisArg: T_1, args: Parameters<T_1["pop"]>) => ReturnType<T_1["pop"]>;
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: <T_1 extends unknown[]>(thisArg: T_1, args: Parameters<T_1["push"]>) => ReturnType<T_1["push"]>;
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: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["reduce"]>) => ReturnType<T_1["reduce"]>;
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: <T_1 extends unknown[]>(thisArg: T_1, args: Parameters<T_1["reverse"]>) => ReturnType<T_1["reverse"]>;
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: <T_1 extends unknown[]>(thisArg: T_1, args: Parameters<T_1["shift"]>) => ReturnType<T_1["shift"]>;
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: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["slice"]>) => ReturnType<T_1["slice"]>;
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: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["some"]>) => ReturnType<T_1["some"]>;
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: <T_1 extends unknown[]>(thisArg: T_1, args: Parameters<T_1["sort"]>) => ReturnType<T_1["sort"]>;
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: <T_1 extends unknown[]>(thisArg: T_1, args: Parameters<T_1["splice"]>) => ReturnType<T_1["splice"]>;
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: <T_1 extends unknown[]>(thisArg: T_1, args: Parameters<T_1["unshift"]>) => ReturnType<T_1["unshift"]>;
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: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["forEach"]>) => ReturnType<T_1["forEach"]>;
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 | undefined): string[];
162
+ (separator: string | RegExp, limit?: number): string[];
163
163
  (splitter: {
164
- [Symbol.split](string: string, limit?: number | undefined): string[];
165
- }, limit?: number | undefined): string[];
166
- }, StringSlice: (start?: number | undefined, end?: number | undefined) => string, StringToLowerCase: () => string, StringTrim: () => string;
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,
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.6",
7
+ "version": "8.12.7",
8
8
  "description": "Utilities and methods that are shared across packages",
9
9
  "keywords": [
10
10
  "lwc"