svelte 5.59.0 → 5.59.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/LICENSE.md +1 -1
- package/compiler/index.js +1 -1
- package/package.json +4 -4
- package/src/compiler/legacy.js +2 -2
- package/src/compiler/phases/1-parse/acorn.js +13 -1
- package/src/compiler/phases/1-parse/index.js +50 -7
- package/src/compiler/phases/1-parse/read/context.js +1 -1
- package/src/compiler/phases/1-parse/read/style.js +9 -8
- package/src/compiler/phases/1-parse/state/tag.js +28 -2
- package/src/compiler/phases/2-analyze/index.js +2 -1
- package/src/compiler/phases/2-analyze/visitors/BindDirective.js +4 -8
- package/src/compiler/phases/3-transform/client/transform-client.js +2 -0
- package/src/compiler/phases/3-transform/client/visitors/StaticBlock.js +12 -0
- package/src/compiler/phases/3-transform/client/visitors/shared/utils.js +10 -7
- package/src/compiler/phases/3-transform/css/index.js +35 -26
- package/src/compiler/phases/patterns.js +2 -0
- package/src/compiler/phases/scope.js +8 -1
- package/src/compiler/print/index.js +18 -9
- package/src/compiler/validate-options.js +1 -1
- package/src/internal/client/custom-renderer/cross.js +4 -4
- package/src/internal/client/dev/elements.js +18 -7
- package/src/internal/client/dom/blocks/await.js +5 -0
- package/src/internal/client/dom/blocks/boundary.js +2 -2
- package/src/internal/client/dom/blocks/branches.js +3 -3
- package/src/internal/client/dom/blocks/each.js +16 -13
- package/src/internal/client/dom/blocks/html.js +8 -8
- package/src/internal/client/dom/blocks/slot.js +8 -13
- package/src/internal/client/dom/blocks/snippet.js +6 -7
- package/src/internal/client/dom/blocks/svelte-element.js +9 -13
- package/src/internal/client/dom/blocks/svelte-head.js +2 -2
- package/src/internal/client/dom/css.js +1 -1
- package/src/internal/client/dom/elements/attributes.js +15 -2
- package/src/internal/client/dom/elements/bindings/select.js +1 -1
- package/src/internal/client/dom/elements/transitions.js +88 -83
- package/src/internal/client/dom/operations.js +36 -8
- package/src/internal/client/dom/template.js +4 -2
- package/src/internal/client/proxy.js +19 -11
- package/src/internal/client/reactivity/batch.js +58 -18
- package/src/internal/client/reactivity/sources.js +39 -6
- package/src/internal/client/render.js +5 -2
- package/src/internal/client/runtime.js +3 -0
- package/src/internal/server/hydratable.js +21 -7
- package/src/internal/shared/utils.js +10 -4
- package/src/reactivity/create-subscriber.js +1 -1
- package/src/reactivity/date.js +3 -2
- package/src/reactivity/map.js +26 -11
- package/src/reactivity/set.js +23 -10
- package/src/reactivity/url-search-params.js +18 -6
- package/src/reactivity/url.js +30 -20
- package/src/version.js +1 -1
- package/types/index.d.ts +25 -17
- package/types/index.d.ts.map +1 -1
package/src/reactivity/map.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
/** @import { Source } from '#client' */
|
|
2
2
|
import { DEV } from 'esm-env';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
source,
|
|
5
|
+
state,
|
|
6
|
+
check_mutation,
|
|
7
|
+
unchecked_set,
|
|
8
|
+
unchecked_increment
|
|
9
|
+
} from '../internal/client/reactivity/sources.js';
|
|
4
10
|
import { label, tag } from '../internal/client/dev/tracing.js';
|
|
5
11
|
import { get, update_version } from '../internal/client/runtime.js';
|
|
6
12
|
|
|
@@ -170,6 +176,7 @@ export class SvelteMap extends Map {
|
|
|
170
176
|
*/
|
|
171
177
|
getOrInsertComputed(key, callbackFn) {
|
|
172
178
|
if (!super.has(key)) {
|
|
179
|
+
check_mutation(this.#version);
|
|
173
180
|
this.set(key, callbackFn(key));
|
|
174
181
|
}
|
|
175
182
|
return /** @type {V} */ (this.get(key));
|
|
@@ -183,6 +190,9 @@ export class SvelteMap extends Map {
|
|
|
183
190
|
var sources = this.#sources;
|
|
184
191
|
var s = sources.get(key);
|
|
185
192
|
var prev_res = super.get(key);
|
|
193
|
+
|
|
194
|
+
check_mutation(this.#version);
|
|
195
|
+
|
|
186
196
|
var res = super.set(key, value);
|
|
187
197
|
var version = this.#version;
|
|
188
198
|
|
|
@@ -194,10 +204,10 @@ export class SvelteMap extends Map {
|
|
|
194
204
|
}
|
|
195
205
|
|
|
196
206
|
sources.set(key, s);
|
|
197
|
-
|
|
198
|
-
|
|
207
|
+
unchecked_set(this.#size, super.size);
|
|
208
|
+
unchecked_increment(version);
|
|
199
209
|
} else if (prev_res !== value) {
|
|
200
|
-
|
|
210
|
+
unchecked_increment(s);
|
|
201
211
|
|
|
202
212
|
// if not every reaction of s is a reaction of version we need to also include version
|
|
203
213
|
var v_reactions = version.reactions === null ? null : new Set(version.reactions);
|
|
@@ -207,7 +217,7 @@ export class SvelteMap extends Map {
|
|
|
207
217
|
/** @type {NonNullable<typeof v_reactions>} */ (v_reactions).has(r)
|
|
208
218
|
);
|
|
209
219
|
if (needs_version_increase) {
|
|
210
|
-
|
|
220
|
+
unchecked_increment(version);
|
|
211
221
|
}
|
|
212
222
|
}
|
|
213
223
|
|
|
@@ -218,33 +228,38 @@ export class SvelteMap extends Map {
|
|
|
218
228
|
delete(key) {
|
|
219
229
|
var sources = this.#sources;
|
|
220
230
|
var s = sources.get(key);
|
|
231
|
+
|
|
232
|
+
check_mutation(this.#version);
|
|
233
|
+
|
|
221
234
|
var res = super.delete(key);
|
|
222
235
|
|
|
223
236
|
if (s !== undefined) {
|
|
224
237
|
sources.delete(key);
|
|
225
|
-
|
|
238
|
+
unchecked_set(s, -1);
|
|
226
239
|
}
|
|
227
240
|
|
|
228
241
|
if (res) {
|
|
229
|
-
|
|
230
|
-
|
|
242
|
+
unchecked_set(this.#size, super.size);
|
|
243
|
+
unchecked_increment(this.#version);
|
|
231
244
|
}
|
|
232
245
|
|
|
233
246
|
return res;
|
|
234
247
|
}
|
|
235
248
|
|
|
236
249
|
clear() {
|
|
250
|
+
check_mutation(this.#version);
|
|
251
|
+
|
|
237
252
|
if (super.size === 0) {
|
|
238
253
|
return;
|
|
239
254
|
}
|
|
240
255
|
// Clear first, so we get nice console.log outputs with $inspect
|
|
241
256
|
super.clear();
|
|
242
257
|
var sources = this.#sources;
|
|
243
|
-
|
|
258
|
+
unchecked_set(this.#size, 0);
|
|
244
259
|
for (var s of sources.values()) {
|
|
245
|
-
|
|
260
|
+
unchecked_set(s, -1);
|
|
246
261
|
}
|
|
247
|
-
|
|
262
|
+
unchecked_increment(this.#version);
|
|
248
263
|
sources.clear();
|
|
249
264
|
}
|
|
250
265
|
|
package/src/reactivity/set.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
/** @import { Source } from '#client' */
|
|
2
2
|
import { DEV } from 'esm-env';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
source,
|
|
5
|
+
state,
|
|
6
|
+
check_mutation,
|
|
7
|
+
unchecked_set,
|
|
8
|
+
unchecked_increment
|
|
9
|
+
} from '../internal/client/reactivity/sources.js';
|
|
4
10
|
import { label, tag } from '../internal/client/dev/tracing.js';
|
|
5
11
|
import { get, update_version } from '../internal/client/runtime.js';
|
|
6
12
|
|
|
@@ -144,10 +150,12 @@ export class SvelteSet extends Set {
|
|
|
144
150
|
|
|
145
151
|
/** @param {T} value */
|
|
146
152
|
add(value) {
|
|
153
|
+
check_mutation(this.#version);
|
|
154
|
+
|
|
147
155
|
if (!super.has(value)) {
|
|
148
156
|
super.add(value);
|
|
149
|
-
|
|
150
|
-
|
|
157
|
+
unchecked_set(this.#size, super.size);
|
|
158
|
+
unchecked_increment(this.#version);
|
|
151
159
|
}
|
|
152
160
|
|
|
153
161
|
return this;
|
|
@@ -155,24 +163,29 @@ export class SvelteSet extends Set {
|
|
|
155
163
|
|
|
156
164
|
/** @param {T} value */
|
|
157
165
|
delete(value) {
|
|
158
|
-
var deleted = super.delete(value);
|
|
159
166
|
var sources = this.#sources;
|
|
160
167
|
var s = sources.get(value);
|
|
161
168
|
|
|
169
|
+
check_mutation(this.#version);
|
|
170
|
+
|
|
171
|
+
var deleted = super.delete(value);
|
|
172
|
+
|
|
162
173
|
if (s !== undefined) {
|
|
163
174
|
sources.delete(value);
|
|
164
|
-
|
|
175
|
+
unchecked_set(s, false);
|
|
165
176
|
}
|
|
166
177
|
|
|
167
178
|
if (deleted) {
|
|
168
|
-
|
|
169
|
-
|
|
179
|
+
unchecked_set(this.#size, super.size);
|
|
180
|
+
unchecked_increment(this.#version);
|
|
170
181
|
}
|
|
171
182
|
|
|
172
183
|
return deleted;
|
|
173
184
|
}
|
|
174
185
|
|
|
175
186
|
clear() {
|
|
187
|
+
check_mutation(this.#version);
|
|
188
|
+
|
|
176
189
|
if (super.size === 0) {
|
|
177
190
|
return;
|
|
178
191
|
}
|
|
@@ -181,12 +194,12 @@ export class SvelteSet extends Set {
|
|
|
181
194
|
var sources = this.#sources;
|
|
182
195
|
|
|
183
196
|
for (var s of sources.values()) {
|
|
184
|
-
|
|
197
|
+
unchecked_set(s, false);
|
|
185
198
|
}
|
|
186
199
|
|
|
187
200
|
sources.clear();
|
|
188
|
-
|
|
189
|
-
|
|
201
|
+
unchecked_set(this.#size, 0);
|
|
202
|
+
unchecked_increment(this.#version);
|
|
190
203
|
}
|
|
191
204
|
|
|
192
205
|
keys() {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { DEV } from 'esm-env';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
state,
|
|
4
|
+
check_mutation,
|
|
5
|
+
unchecked_increment
|
|
6
|
+
} from '../internal/client/reactivity/sources.js';
|
|
3
7
|
import { tag } from '../internal/client/dev/tracing.js';
|
|
4
8
|
import { get } from '../internal/client/runtime.js';
|
|
5
9
|
import { get_current_url } from './url.js';
|
|
@@ -59,6 +63,8 @@ export class SvelteURLSearchParams extends URLSearchParams {
|
|
|
59
63
|
// don't rebuild the params or notify readers if nothing changed
|
|
60
64
|
if (params.toString() === super.toString()) return;
|
|
61
65
|
|
|
66
|
+
check_mutation(this.#version);
|
|
67
|
+
|
|
62
68
|
this.#updating = true;
|
|
63
69
|
|
|
64
70
|
for (const key of [...super.keys()]) {
|
|
@@ -69,7 +75,7 @@ export class SvelteURLSearchParams extends URLSearchParams {
|
|
|
69
75
|
super.append(key, value);
|
|
70
76
|
}
|
|
71
77
|
|
|
72
|
-
|
|
78
|
+
unchecked_increment(this.#version);
|
|
73
79
|
this.#updating = false;
|
|
74
80
|
}
|
|
75
81
|
|
|
@@ -79,9 +85,10 @@ export class SvelteURLSearchParams extends URLSearchParams {
|
|
|
79
85
|
* @returns {void}
|
|
80
86
|
*/
|
|
81
87
|
append(name, value) {
|
|
88
|
+
check_mutation(this.#version);
|
|
82
89
|
super.append(name, value);
|
|
83
90
|
this.#update_url();
|
|
84
|
-
|
|
91
|
+
unchecked_increment(this.#version);
|
|
85
92
|
}
|
|
86
93
|
|
|
87
94
|
/**
|
|
@@ -90,11 +97,13 @@ export class SvelteURLSearchParams extends URLSearchParams {
|
|
|
90
97
|
* @returns {void}
|
|
91
98
|
*/
|
|
92
99
|
delete(name, value) {
|
|
100
|
+
check_mutation(this.#version);
|
|
101
|
+
|
|
93
102
|
var has_value = super.has(name, value);
|
|
94
103
|
super.delete(name, value);
|
|
95
104
|
if (has_value) {
|
|
96
105
|
this.#update_url();
|
|
97
|
-
|
|
106
|
+
unchecked_increment(this.#version);
|
|
98
107
|
}
|
|
99
108
|
}
|
|
100
109
|
|
|
@@ -147,6 +156,8 @@ export class SvelteURLSearchParams extends URLSearchParams {
|
|
|
147
156
|
* @returns {void}
|
|
148
157
|
*/
|
|
149
158
|
set(name, value) {
|
|
159
|
+
check_mutation(this.#version);
|
|
160
|
+
|
|
150
161
|
var previous = super.getAll(name);
|
|
151
162
|
super.set(name, value);
|
|
152
163
|
// can't use has(name, value), because for something like https://svelte.dev?foo=1&bar=2&foo=3
|
|
@@ -154,14 +165,15 @@ export class SvelteURLSearchParams extends URLSearchParams {
|
|
|
154
165
|
var current = super.getAll(name);
|
|
155
166
|
if (previous.length !== current.length || previous.some((value, i) => value !== current[i])) {
|
|
156
167
|
this.#update_url();
|
|
157
|
-
|
|
168
|
+
unchecked_increment(this.#version);
|
|
158
169
|
}
|
|
159
170
|
}
|
|
160
171
|
|
|
161
172
|
sort() {
|
|
173
|
+
check_mutation(this.#version);
|
|
162
174
|
super.sort();
|
|
163
175
|
this.#update_url();
|
|
164
|
-
|
|
176
|
+
unchecked_increment(this.#version);
|
|
165
177
|
}
|
|
166
178
|
|
|
167
179
|
toString() {
|
package/src/reactivity/url.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DEV } from 'esm-env';
|
|
2
|
-
import {
|
|
2
|
+
import { state, check_mutation, unchecked_set } from '../internal/client/reactivity/sources.js';
|
|
3
3
|
import { tag } from '../internal/client/dev/tracing.js';
|
|
4
4
|
import { get } from '../internal/client/runtime.js';
|
|
5
5
|
import { REPLACE, SvelteURLSearchParams } from './url-search-params.js';
|
|
@@ -79,8 +79,9 @@ export class SvelteURL extends URL {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
set hash(value) {
|
|
82
|
+
check_mutation(this.#hash);
|
|
82
83
|
super.hash = value;
|
|
83
|
-
|
|
84
|
+
unchecked_set(this.#hash, super.hash);
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
get host() {
|
|
@@ -90,9 +91,10 @@ export class SvelteURL extends URL {
|
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
set host(value) {
|
|
94
|
+
check_mutation(this.#hostname);
|
|
93
95
|
super.host = value;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
+
unchecked_set(this.#hostname, super.hostname);
|
|
97
|
+
unchecked_set(this.#port, super.port);
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
get hostname() {
|
|
@@ -100,8 +102,9 @@ export class SvelteURL extends URL {
|
|
|
100
102
|
}
|
|
101
103
|
|
|
102
104
|
set hostname(value) {
|
|
105
|
+
check_mutation(this.#hostname);
|
|
103
106
|
super.hostname = value;
|
|
104
|
-
|
|
107
|
+
unchecked_set(this.#hostname, super.hostname);
|
|
105
108
|
}
|
|
106
109
|
|
|
107
110
|
get href() {
|
|
@@ -117,15 +120,16 @@ export class SvelteURL extends URL {
|
|
|
117
120
|
}
|
|
118
121
|
|
|
119
122
|
set href(value) {
|
|
123
|
+
check_mutation(this.#protocol);
|
|
120
124
|
super.href = value;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
125
|
+
unchecked_set(this.#protocol, super.protocol);
|
|
126
|
+
unchecked_set(this.#username, super.username);
|
|
127
|
+
unchecked_set(this.#password, super.password);
|
|
128
|
+
unchecked_set(this.#hostname, super.hostname);
|
|
129
|
+
unchecked_set(this.#port, super.port);
|
|
130
|
+
unchecked_set(this.#pathname, super.pathname);
|
|
131
|
+
unchecked_set(this.#hash, super.hash);
|
|
132
|
+
unchecked_set(this.#search, super.search);
|
|
129
133
|
this.#searchParams[REPLACE](super.searchParams);
|
|
130
134
|
}
|
|
131
135
|
|
|
@@ -134,8 +138,9 @@ export class SvelteURL extends URL {
|
|
|
134
138
|
}
|
|
135
139
|
|
|
136
140
|
set password(value) {
|
|
141
|
+
check_mutation(this.#password);
|
|
137
142
|
super.password = value;
|
|
138
|
-
|
|
143
|
+
unchecked_set(this.#password, super.password);
|
|
139
144
|
}
|
|
140
145
|
|
|
141
146
|
get pathname() {
|
|
@@ -143,8 +148,9 @@ export class SvelteURL extends URL {
|
|
|
143
148
|
}
|
|
144
149
|
|
|
145
150
|
set pathname(value) {
|
|
151
|
+
check_mutation(this.#pathname);
|
|
146
152
|
super.pathname = value;
|
|
147
|
-
|
|
153
|
+
unchecked_set(this.#pathname, super.pathname);
|
|
148
154
|
}
|
|
149
155
|
|
|
150
156
|
get port() {
|
|
@@ -152,8 +158,9 @@ export class SvelteURL extends URL {
|
|
|
152
158
|
}
|
|
153
159
|
|
|
154
160
|
set port(value) {
|
|
161
|
+
check_mutation(this.#port);
|
|
155
162
|
super.port = value;
|
|
156
|
-
|
|
163
|
+
unchecked_set(this.#port, super.port);
|
|
157
164
|
}
|
|
158
165
|
|
|
159
166
|
get protocol() {
|
|
@@ -161,10 +168,11 @@ export class SvelteURL extends URL {
|
|
|
161
168
|
}
|
|
162
169
|
|
|
163
170
|
set protocol(value) {
|
|
171
|
+
check_mutation(this.#protocol);
|
|
164
172
|
super.protocol = value;
|
|
165
|
-
|
|
173
|
+
unchecked_set(this.#protocol, super.protocol);
|
|
166
174
|
// changing the protocol can clear the port when it matches the new scheme's default
|
|
167
|
-
|
|
175
|
+
unchecked_set(this.#port, super.port);
|
|
168
176
|
}
|
|
169
177
|
|
|
170
178
|
get search() {
|
|
@@ -172,8 +180,9 @@ export class SvelteURL extends URL {
|
|
|
172
180
|
}
|
|
173
181
|
|
|
174
182
|
set search(value) {
|
|
183
|
+
check_mutation(this.#search);
|
|
175
184
|
super.search = value;
|
|
176
|
-
|
|
185
|
+
unchecked_set(this.#search, super.search);
|
|
177
186
|
this.#searchParams[REPLACE](super.searchParams);
|
|
178
187
|
}
|
|
179
188
|
|
|
@@ -182,8 +191,9 @@ export class SvelteURL extends URL {
|
|
|
182
191
|
}
|
|
183
192
|
|
|
184
193
|
set username(value) {
|
|
194
|
+
check_mutation(this.#username);
|
|
185
195
|
super.username = value;
|
|
186
|
-
|
|
196
|
+
unchecked_set(this.#username, super.username);
|
|
187
197
|
}
|
|
188
198
|
|
|
189
199
|
get origin() {
|
package/src/version.js
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -119,22 +119,26 @@ declare module 'svelte' {
|
|
|
119
119
|
/**
|
|
120
120
|
* Can be used to create strongly typed Svelte components.
|
|
121
121
|
*
|
|
122
|
-
*
|
|
122
|
+
* ### Example:
|
|
123
123
|
*
|
|
124
|
-
* You have component library on npm called `component-library`, from which
|
|
124
|
+
* You have a component library on npm called `component-library`, from which
|
|
125
125
|
* you export a component called `MyComponent`. For Svelte+TypeScript users,
|
|
126
126
|
* you want to provide typings. Therefore you create a `index.d.ts`:
|
|
127
|
+
*
|
|
127
128
|
* ```ts
|
|
128
129
|
* import type { Component } from 'svelte';
|
|
129
130
|
* export declare const MyComponent: Component<{ foo: string }> {}
|
|
130
131
|
* ```
|
|
132
|
+
*
|
|
131
133
|
* Typing this makes it possible for IDEs like VS Code with the Svelte extension
|
|
132
134
|
* to provide intellisense and to use the component like this in a Svelte file
|
|
133
135
|
* with TypeScript:
|
|
136
|
+
*
|
|
134
137
|
* ```svelte
|
|
135
138
|
* <script lang="ts">
|
|
136
139
|
* import { MyComponent } from "component-library";
|
|
137
140
|
* </script>
|
|
141
|
+
*
|
|
138
142
|
* <MyComponent foo={'bar'} />
|
|
139
143
|
* ```
|
|
140
144
|
*/
|
|
@@ -581,7 +585,7 @@ declare module 'svelte' {
|
|
|
581
585
|
* Hydrates a component on the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component
|
|
582
586
|
*
|
|
583
587
|
* */
|
|
584
|
-
export function hydrate<Props extends Record<string, any>, Exports extends Record<string, any
|
|
588
|
+
export function hydrate<Props extends Record<string, any>, Exports extends Record<string, any>, Renderer = undefined>(component: ComponentType<SvelteComponent<Props>> | Component<Props, Exports, any>, options: {} extends Props ? {
|
|
585
589
|
target: Document | Element | ShadowRoot;
|
|
586
590
|
props?: Props;
|
|
587
591
|
events?: Record<string, (e: any) => any>;
|
|
@@ -1102,6 +1106,8 @@ declare module 'svelte/compiler' {
|
|
|
1102
1106
|
* This is always `'injected'` when compiling with `customElement` mode.
|
|
1103
1107
|
*
|
|
1104
1108
|
* You can also pass a function that receives `{ filename }` and returns either `'injected'` or `'external'`.
|
|
1109
|
+
*
|
|
1110
|
+
* @default 'external'
|
|
1105
1111
|
*/
|
|
1106
1112
|
css?: 'injected' | 'external' | ((options: { filename: string }) => 'injected' | 'external');
|
|
1107
1113
|
/**
|
|
@@ -2367,10 +2373,10 @@ declare module 'svelte/motion' {
|
|
|
2367
2373
|
* const tween = Tween.of(() => number);
|
|
2368
2374
|
* </script>
|
|
2369
2375
|
* ```
|
|
2370
|
-
*
|
|
2376
|
+
*
|
|
2371
2377
|
*/
|
|
2372
2378
|
static of<U>(fn: () => U, options?: TweenOptions<U> | undefined): Tween<U>;
|
|
2373
|
-
|
|
2379
|
+
|
|
2374
2380
|
constructor(value: T, options?: TweenOptions<T>);
|
|
2375
2381
|
/**
|
|
2376
2382
|
* Sets `tween.target` to `value` and returns a `Promise` that resolves if and when `tween.current` catches up to it.
|
|
@@ -2421,7 +2427,7 @@ declare module 'svelte/reactivity' {
|
|
|
2421
2427
|
* ```
|
|
2422
2428
|
*/
|
|
2423
2429
|
export class SvelteDate extends Date {
|
|
2424
|
-
|
|
2430
|
+
|
|
2425
2431
|
constructor(...params: any[]);
|
|
2426
2432
|
#private;
|
|
2427
2433
|
}
|
|
@@ -2457,12 +2463,12 @@ declare module 'svelte/reactivity' {
|
|
|
2457
2463
|
* {#if monkeys.has('🙊')}<p>speak no evil</p>{/if}
|
|
2458
2464
|
* ```
|
|
2459
2465
|
*
|
|
2460
|
-
*
|
|
2466
|
+
*
|
|
2461
2467
|
*/
|
|
2462
2468
|
export class SvelteSet<T> extends Set<T> {
|
|
2463
|
-
|
|
2469
|
+
|
|
2464
2470
|
constructor(value?: Iterable<T> | null | undefined);
|
|
2465
|
-
|
|
2471
|
+
|
|
2466
2472
|
add(value: T): this;
|
|
2467
2473
|
#private;
|
|
2468
2474
|
}
|
|
@@ -2508,16 +2514,16 @@ declare module 'svelte/reactivity' {
|
|
|
2508
2514
|
* {/if}
|
|
2509
2515
|
* ```
|
|
2510
2516
|
*
|
|
2511
|
-
*
|
|
2517
|
+
*
|
|
2512
2518
|
*/
|
|
2513
2519
|
export class SvelteMap<K, V> extends Map<K, V> {
|
|
2514
|
-
|
|
2520
|
+
|
|
2515
2521
|
constructor(value?: Iterable<readonly [K, V]> | null | undefined);
|
|
2516
|
-
|
|
2522
|
+
|
|
2517
2523
|
getOrInsert(key: K, value: V): V;
|
|
2518
|
-
|
|
2524
|
+
|
|
2519
2525
|
getOrInsertComputed(key: K, callbackFn: (key: K) => V): V;
|
|
2520
|
-
|
|
2526
|
+
|
|
2521
2527
|
set(key: K, value: V): this;
|
|
2522
2528
|
#private;
|
|
2523
2529
|
}
|
|
@@ -2580,7 +2586,7 @@ declare module 'svelte/reactivity' {
|
|
|
2580
2586
|
* ```
|
|
2581
2587
|
*/
|
|
2582
2588
|
export class SvelteURLSearchParams extends URLSearchParams {
|
|
2583
|
-
|
|
2589
|
+
|
|
2584
2590
|
[REPLACE](params: URLSearchParams): void;
|
|
2585
2591
|
#private;
|
|
2586
2592
|
}
|
|
@@ -2656,7 +2662,7 @@ declare module 'svelte/reactivity' {
|
|
|
2656
2662
|
*/
|
|
2657
2663
|
export function createSubscriber(start: (update: () => void) => (() => void) | void): () => void;
|
|
2658
2664
|
class ReactiveValue<T> {
|
|
2659
|
-
|
|
2665
|
+
|
|
2660
2666
|
constructor(fn: () => T, onsubscribe: (update: () => void) => void);
|
|
2661
2667
|
get current(): T;
|
|
2662
2668
|
#private;
|
|
@@ -2721,7 +2727,7 @@ declare module 'svelte/reactivity/window' {
|
|
|
2721
2727
|
get current(): number | undefined;
|
|
2722
2728
|
};
|
|
2723
2729
|
class ReactiveValue<T> {
|
|
2724
|
-
|
|
2730
|
+
|
|
2725
2731
|
constructor(fn: () => T, onsubscribe: (update: () => void) => void);
|
|
2726
2732
|
get current(): T;
|
|
2727
2733
|
#private;
|
|
@@ -3373,6 +3379,8 @@ declare module 'svelte/types/compiler/interfaces' {
|
|
|
3373
3379
|
* This is always `'injected'` when compiling with `customElement` mode.
|
|
3374
3380
|
*
|
|
3375
3381
|
* You can also pass a function that receives `{ filename }` and returns either `'injected'` or `'external'`.
|
|
3382
|
+
*
|
|
3383
|
+
* @default 'external'
|
|
3376
3384
|
*/
|
|
3377
3385
|
css?: 'injected' | 'external' | ((options: { filename: string }) => 'injected' | 'external');
|
|
3378
3386
|
/**
|
package/types/index.d.ts.map
CHANGED
|
@@ -282,6 +282,6 @@
|
|
|
282
282
|
null,
|
|
283
283
|
null
|
|
284
284
|
],
|
|
285
|
-
"mappings": ";;;;;;;;;kBAUiBA,2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