@stencil/core 4.38.0 → 4.38.1
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/cli/index.cjs +1 -1
- package/cli/index.js +1 -1
- package/cli/package.json +1 -1
- package/compiler/lib.decorators.d.ts +13 -15
- package/compiler/lib.dom.asynciterable.d.ts +14 -6
- package/compiler/lib.dom.d.ts +15847 -5014
- package/compiler/lib.dom.iterable.d.ts +207 -111
- package/compiler/lib.es2015.core.d.ts +9 -9
- package/compiler/lib.es2015.generator.d.ts +2 -2
- package/compiler/lib.es2015.iterable.d.ts +214 -104
- package/compiler/lib.es2015.symbol.wellknown.d.ts +11 -11
- package/compiler/lib.es2016.array.include.d.ts +9 -9
- package/compiler/lib.es2016.intl.d.ts +1 -1
- package/compiler/lib.es2017.arraybuffer.d.ts +21 -0
- package/compiler/lib.es2017.d.ts +3 -2
- package/compiler/lib.es2017.object.d.ts +4 -4
- package/compiler/lib.es2017.sharedmemory.d.ts +15 -15
- package/compiler/lib.es2017.typedarrays.d.ts +9 -9
- package/compiler/lib.es2018.asyncgenerator.d.ts +2 -2
- package/compiler/lib.es2018.asynciterable.d.ts +16 -6
- package/compiler/lib.es2020.bigint.d.ts +100 -62
- package/compiler/lib.es2020.intl.d.ts +36 -36
- package/compiler/lib.es2020.sharedmemory.d.ts +13 -11
- package/compiler/lib.es2020.string.d.ts +3 -1
- package/compiler/lib.es2020.symbol.wellknown.d.ts +5 -1
- package/compiler/lib.es2021.intl.d.ts +17 -17
- package/compiler/lib.es2021.weakref.d.ts +2 -0
- package/compiler/lib.es2022.array.d.ts +11 -11
- package/compiler/lib.es2022.d.ts +1 -2
- package/compiler/lib.es2022.error.d.ts +2 -0
- package/compiler/lib.es2022.intl.d.ts +39 -11
- package/compiler/lib.es2023.array.d.ts +79 -79
- package/compiler/lib.es2024.arraybuffer.d.ts +65 -0
- package/compiler/lib.es2024.collection.d.ts +29 -0
- package/compiler/lib.es2024.d.ts +26 -0
- package/compiler/lib.es2024.full.d.ts +24 -0
- package/compiler/lib.es2024.promise.d.ts +35 -0
- package/compiler/{lib.es2022.sharedmemory.d.ts → lib.es2024.sharedmemory.d.ts} +29 -0
- package/compiler/lib.es5.d.ts +321 -305
- package/compiler/lib.esnext.array.d.ts +1 -1
- package/compiler/lib.esnext.collection.d.ts +1 -11
- package/compiler/lib.esnext.d.ts +6 -5
- package/compiler/lib.esnext.disposable.d.ts +8 -0
- package/compiler/lib.esnext.error.d.ts +24 -0
- package/compiler/lib.esnext.float16.d.ts +445 -0
- package/compiler/lib.esnext.iterator.d.ts +148 -0
- package/compiler/lib.esnext.promise.d.ts +11 -12
- package/compiler/lib.esnext.sharedmemory.d.ts +25 -0
- package/compiler/lib.webworker.asynciterable.d.ts +14 -6
- package/compiler/lib.webworker.d.ts +5113 -1394
- package/compiler/lib.webworker.iterable.d.ts +125 -61
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +20679 -15213
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/app-globals/package.json +1 -1
- package/internal/client/index.js +5 -2
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +5 -2
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +2 -2
- package/internal/package.json +1 -1
- package/internal/stencil-public-runtime.d.ts +2 -1
- package/internal/testing/index.js +4 -1
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +2 -2
- package/mock-doc/index.d.ts +2 -2
- package/mock-doc/index.js +2 -2
- package/mock-doc/package.json +1 -1
- package/package.json +9 -9
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/screenshot/screenshot-fs.d.ts +1 -1
- package/sys/node/index.js +1 -1
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.d.ts +1 -1
- package/testing/index.js +93 -1
- package/testing/mocks.d.ts +1 -0
- package/testing/package.json +1 -1
- /package/compiler/{lib.esnext.object.d.ts → lib.es2024.object.d.ts} +0 -0
- /package/compiler/{lib.esnext.regexp.d.ts → lib.es2024.regexp.d.ts} +0 -0
- /package/compiler/{lib.esnext.string.d.ts → lib.es2024.string.d.ts} +0 -0
|
@@ -20,7 +20,7 @@ declare namespace Intl {
|
|
|
20
20
|
/**
|
|
21
21
|
* An object with some or all properties of the `Intl.Segmenter` constructor `options` parameter.
|
|
22
22
|
*
|
|
23
|
-
* [MDN](https://developer.mozilla.org/
|
|
23
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
|
|
24
24
|
*/
|
|
25
25
|
interface SegmenterOptions {
|
|
26
26
|
/** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
|
|
@@ -29,15 +29,27 @@ declare namespace Intl {
|
|
|
29
29
|
granularity?: "grapheme" | "word" | "sentence" | undefined;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
/**
|
|
33
|
+
* The `Intl.Segmenter` object enables locale-sensitive text segmentation, enabling you to get meaningful items (graphemes, words or sentences) from a string.
|
|
34
|
+
*
|
|
35
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter)
|
|
36
|
+
*/
|
|
32
37
|
interface Segmenter {
|
|
33
38
|
/**
|
|
34
39
|
* Returns `Segments` object containing the segments of the input string, using the segmenter's locale and granularity.
|
|
35
40
|
*
|
|
41
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/segment)
|
|
42
|
+
*
|
|
36
43
|
* @param input - The text to be segmented as a `string`.
|
|
37
44
|
*
|
|
38
45
|
* @returns A new iterable Segments object containing the segments of the input string, using the segmenter's locale and granularity.
|
|
39
46
|
*/
|
|
40
47
|
segment(input: string): Segments;
|
|
48
|
+
/**
|
|
49
|
+
* The `resolvedOptions()` method of `Intl.Segmenter` instances returns a new object with properties reflecting the options computed during initialization of this `Segmenter` object.
|
|
50
|
+
*
|
|
51
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/resolvedOptions)
|
|
52
|
+
*/
|
|
41
53
|
resolvedOptions(): ResolvedSegmenterOptions;
|
|
42
54
|
}
|
|
43
55
|
|
|
@@ -46,16 +58,27 @@ declare namespace Intl {
|
|
|
46
58
|
granularity: "grapheme" | "word" | "sentence";
|
|
47
59
|
}
|
|
48
60
|
|
|
61
|
+
interface SegmentIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
62
|
+
[Symbol.iterator](): SegmentIterator<T>;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* A `Segments` object is an iterable collection of the segments of a text string. It is returned by a call to the `segment()` method of an `Intl.Segmenter` object.
|
|
67
|
+
*
|
|
68
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/segment/Segments)
|
|
69
|
+
*/
|
|
49
70
|
interface Segments {
|
|
50
71
|
/**
|
|
51
72
|
* Returns an object describing the segment in the original string that includes the code unit at a specified index.
|
|
52
73
|
*
|
|
74
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/segment/Segments/containing)
|
|
75
|
+
*
|
|
53
76
|
* @param codeUnitIndex - A number specifying the index of the code unit in the original input string. If the value is omitted, it defaults to `0`.
|
|
54
77
|
*/
|
|
55
|
-
containing(codeUnitIndex?: number): SegmentData;
|
|
78
|
+
containing(codeUnitIndex?: number): SegmentData | undefined;
|
|
56
79
|
|
|
57
80
|
/** Returns an iterator to iterate over the segments. */
|
|
58
|
-
[Symbol.iterator]():
|
|
81
|
+
[Symbol.iterator](): SegmentIterator<SegmentData>;
|
|
59
82
|
}
|
|
60
83
|
|
|
61
84
|
interface SegmentData {
|
|
@@ -72,6 +95,11 @@ declare namespace Intl {
|
|
|
72
95
|
isWordLike?: boolean;
|
|
73
96
|
}
|
|
74
97
|
|
|
98
|
+
/**
|
|
99
|
+
* The `Intl.Segmenter` object enables locale-sensitive text segmentation, enabling you to get meaningful items (graphemes, words or sentences) from a string.
|
|
100
|
+
*
|
|
101
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter)
|
|
102
|
+
*/
|
|
75
103
|
const Segmenter: {
|
|
76
104
|
prototype: Segmenter;
|
|
77
105
|
|
|
@@ -80,14 +108,14 @@ declare namespace Intl {
|
|
|
80
108
|
*
|
|
81
109
|
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
|
|
82
110
|
* For the general form and interpretation of the `locales` argument,
|
|
83
|
-
* see the [`Intl` page](https://developer.mozilla.org/
|
|
111
|
+
* see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
|
84
112
|
*
|
|
85
|
-
* @param options - An [object](https://developer.mozilla.org/
|
|
113
|
+
* @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
|
|
86
114
|
* with some or all options of `SegmenterOptions`.
|
|
87
115
|
*
|
|
88
|
-
* @returns [Intl.Segmenter](https://developer.mozilla.org/
|
|
116
|
+
* @returns [Intl.Segmenter](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object.
|
|
89
117
|
*
|
|
90
|
-
* [MDN](https://developer.mozilla.org/
|
|
118
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).
|
|
91
119
|
*/
|
|
92
120
|
new (locales?: LocalesArgument, options?: SegmenterOptions): Segmenter;
|
|
93
121
|
|
|
@@ -96,19 +124,19 @@ declare namespace Intl {
|
|
|
96
124
|
*
|
|
97
125
|
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
|
|
98
126
|
* For the general form and interpretation of the `locales` argument,
|
|
99
|
-
* see the [`Intl` page](https://developer.mozilla.org/
|
|
127
|
+
* see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
|
100
128
|
*
|
|
101
|
-
* @param options An [object](https://developer.mozilla.org/
|
|
129
|
+
* @param options An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters).
|
|
102
130
|
* with some or all possible options.
|
|
103
131
|
*
|
|
104
|
-
* [MDN](https://developer.mozilla.org/
|
|
132
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf)
|
|
105
133
|
*/
|
|
106
134
|
supportedLocalesOf(locales: LocalesArgument, options?: Pick<SegmenterOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];
|
|
107
135
|
};
|
|
108
136
|
|
|
109
137
|
/**
|
|
110
138
|
* Returns a sorted array of the supported collation, calendar, currency, numbering system, timezones, and units by the implementation.
|
|
111
|
-
* [MDN](https://developer.mozilla.org/
|
|
139
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/supportedValuesOf)
|
|
112
140
|
*
|
|
113
141
|
* @param key A string indicating the category of values to return.
|
|
114
142
|
* @returns A sorted array of the supported values.
|