solid-js 1.9.5 → 1.9.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/dev.cjs +21 -10
- package/dist/dev.js +327 -557
- package/dist/server.js +81 -178
- package/dist/solid.cjs +21 -10
- package/dist/solid.js +283 -486
- package/h/dist/h.js +9 -40
- package/h/jsx-runtime/dist/jsx.js +1 -1
- package/h/jsx-runtime/types/index.d.ts +8 -11
- package/h/jsx-runtime/types/jsx.d.ts +2947 -1021
- package/h/types/hyperscript.d.ts +11 -11
- package/html/dist/html.cjs +2 -2
- package/html/dist/html.js +96 -221
- package/html/types/lit.d.ts +33 -52
- package/package.json +3 -3
- package/store/dist/dev.js +43 -123
- package/store/dist/server.js +8 -20
- package/store/dist/store.js +40 -114
- package/store/types/index.d.ts +7 -21
- package/store/types/modifiers.d.ts +3 -6
- package/store/types/mutable.d.ts +2 -5
- package/store/types/server.d.ts +5 -25
- package/store/types/store.d.ts +61 -218
- package/types/index.d.ts +11 -78
- package/types/jsx.d.ts +2091 -278
- package/types/reactive/array.d.ts +4 -12
- package/types/reactive/observable.d.ts +16 -22
- package/types/reactive/scheduler.d.ts +6 -9
- package/types/reactive/signal.d.ts +145 -236
- package/types/render/Suspense.d.ts +5 -5
- package/types/render/component.d.ts +37 -73
- package/types/render/flow.d.ts +31 -43
- package/types/render/hydration.d.ts +15 -15
- package/types/server/index.d.ts +2 -57
- package/types/server/reactive.d.ts +45 -76
- package/types/server/rendering.d.ts +98 -169
- package/universal/dist/dev.cjs +3 -1
- package/universal/dist/dev.js +15 -29
- package/universal/dist/universal.cjs +3 -1
- package/universal/dist/universal.js +15 -29
- package/universal/types/index.d.ts +1 -3
- package/universal/types/universal.d.ts +1 -0
- package/web/dist/dev.cjs +8 -5
- package/web/dist/dev.js +96 -643
- package/web/dist/server.cjs +9 -6
- package/web/dist/server.js +116 -646
- package/web/dist/web.cjs +8 -5
- package/web/dist/web.js +94 -631
- package/web/storage/dist/storage.js +3 -3
- package/web/types/core.d.ts +2 -10
- package/web/types/index.d.ts +11 -31
- package/web/types/server-mock.d.ts +32 -47
package/web/dist/server.js
CHANGED
|
@@ -1,84 +1,22 @@
|
|
|
1
|
-
import { sharedConfig, createRoot, splitProps } from
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Index,
|
|
6
|
-
Match,
|
|
7
|
-
Show,
|
|
8
|
-
Suspense,
|
|
9
|
-
SuspenseList,
|
|
10
|
-
Switch,
|
|
11
|
-
createComponent,
|
|
12
|
-
createRenderEffect as effect,
|
|
13
|
-
getOwner,
|
|
14
|
-
createMemo as memo,
|
|
15
|
-
mergeProps,
|
|
16
|
-
untrack
|
|
17
|
-
} from "solid-js";
|
|
18
|
-
import { Feature, Serializer, getCrossReferenceHeader } from "seroval";
|
|
19
|
-
import {
|
|
20
|
-
CustomEventPlugin,
|
|
21
|
-
DOMExceptionPlugin,
|
|
22
|
-
EventPlugin,
|
|
23
|
-
FormDataPlugin,
|
|
24
|
-
HeadersPlugin,
|
|
25
|
-
ReadableStreamPlugin,
|
|
26
|
-
RequestPlugin,
|
|
27
|
-
ResponsePlugin,
|
|
28
|
-
URLSearchParamsPlugin,
|
|
29
|
-
URLPlugin
|
|
30
|
-
} from "seroval-plugins/web";
|
|
1
|
+
import { createMemo, sharedConfig, createRoot, splitProps } from 'solid-js';
|
|
2
|
+
export { ErrorBoundary, For, Index, Match, Show, Suspense, SuspenseList, Switch, createComponent, createRenderEffect as effect, getOwner, mergeProps, untrack } from 'solid-js';
|
|
3
|
+
import { Feature, Serializer, getCrossReferenceHeader } from 'seroval';
|
|
4
|
+
import { AbortSignalPlugin, CustomEventPlugin, DOMExceptionPlugin, EventPlugin, FormDataPlugin, HeadersPlugin, ReadableStreamPlugin, RequestPlugin, ResponsePlugin, URLSearchParamsPlugin, URLPlugin } from 'seroval-plugins/web';
|
|
31
5
|
|
|
32
|
-
const booleans = [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"checked",
|
|
38
|
-
"controls",
|
|
39
|
-
"default",
|
|
40
|
-
"disabled",
|
|
41
|
-
"formnovalidate",
|
|
42
|
-
"hidden",
|
|
43
|
-
"indeterminate",
|
|
44
|
-
"inert",
|
|
45
|
-
"ismap",
|
|
46
|
-
"loop",
|
|
47
|
-
"multiple",
|
|
48
|
-
"muted",
|
|
49
|
-
"nomodule",
|
|
50
|
-
"novalidate",
|
|
51
|
-
"open",
|
|
52
|
-
"playsinline",
|
|
53
|
-
"readonly",
|
|
54
|
-
"required",
|
|
55
|
-
"reversed",
|
|
56
|
-
"seamless",
|
|
57
|
-
"selected"
|
|
58
|
-
];
|
|
59
|
-
const BooleanAttributes = /*#__PURE__*/ new Set(booleans);
|
|
60
|
-
const Properties = /*#__PURE__*/ new Set([
|
|
61
|
-
"className",
|
|
62
|
-
"value",
|
|
63
|
-
"readOnly",
|
|
64
|
-
"formNoValidate",
|
|
65
|
-
"isMap",
|
|
66
|
-
"noModule",
|
|
67
|
-
"playsInline",
|
|
68
|
-
...booleans
|
|
69
|
-
]);
|
|
70
|
-
const ChildProperties = /*#__PURE__*/ new Set([
|
|
71
|
-
"innerHTML",
|
|
72
|
-
"textContent",
|
|
73
|
-
"innerText",
|
|
74
|
-
"children"
|
|
75
|
-
]);
|
|
76
|
-
const Aliases = /*#__PURE__*/ Object.assign(Object.create(null), {
|
|
6
|
+
const booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
|
|
7
|
+
const BooleanAttributes = /*#__PURE__*/new Set(booleans);
|
|
8
|
+
const Properties = /*#__PURE__*/new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
|
|
9
|
+
const ChildProperties = /*#__PURE__*/new Set(["innerHTML", "textContent", "innerText", "children"]);
|
|
10
|
+
const Aliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
77
11
|
className: "class",
|
|
78
12
|
htmlFor: "for"
|
|
79
13
|
});
|
|
80
|
-
const PropAliases = /*#__PURE__*/
|
|
14
|
+
const PropAliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
81
15
|
class: "className",
|
|
16
|
+
novalidate: {
|
|
17
|
+
$: "noValidate",
|
|
18
|
+
FORM: 1
|
|
19
|
+
},
|
|
82
20
|
formnovalidate: {
|
|
83
21
|
$: "formNoValidate",
|
|
84
22
|
BUTTON: 1,
|
|
@@ -104,414 +42,36 @@ const PropAliases = /*#__PURE__*/ Object.assign(Object.create(null), {
|
|
|
104
42
|
});
|
|
105
43
|
function getPropAlias(prop, tagName) {
|
|
106
44
|
const a = PropAliases[prop];
|
|
107
|
-
return typeof a === "object" ?
|
|
108
|
-
}
|
|
109
|
-
const DelegatedEvents = /*#__PURE__*/
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"focusout",
|
|
116
|
-
"input",
|
|
117
|
-
"keydown",
|
|
118
|
-
"keyup",
|
|
119
|
-
"mousedown",
|
|
120
|
-
"mousemove",
|
|
121
|
-
"mouseout",
|
|
122
|
-
"mouseover",
|
|
123
|
-
"mouseup",
|
|
124
|
-
"pointerdown",
|
|
125
|
-
"pointermove",
|
|
126
|
-
"pointerout",
|
|
127
|
-
"pointerover",
|
|
128
|
-
"pointerup",
|
|
129
|
-
"touchend",
|
|
130
|
-
"touchmove",
|
|
131
|
-
"touchstart"
|
|
132
|
-
]);
|
|
133
|
-
const SVGElements = /*#__PURE__*/ new Set([
|
|
134
|
-
"altGlyph",
|
|
135
|
-
"altGlyphDef",
|
|
136
|
-
"altGlyphItem",
|
|
137
|
-
"animate",
|
|
138
|
-
"animateColor",
|
|
139
|
-
"animateMotion",
|
|
140
|
-
"animateTransform",
|
|
141
|
-
"circle",
|
|
142
|
-
"clipPath",
|
|
143
|
-
"color-profile",
|
|
144
|
-
"cursor",
|
|
145
|
-
"defs",
|
|
146
|
-
"desc",
|
|
147
|
-
"ellipse",
|
|
148
|
-
"feBlend",
|
|
149
|
-
"feColorMatrix",
|
|
150
|
-
"feComponentTransfer",
|
|
151
|
-
"feComposite",
|
|
152
|
-
"feConvolveMatrix",
|
|
153
|
-
"feDiffuseLighting",
|
|
154
|
-
"feDisplacementMap",
|
|
155
|
-
"feDistantLight",
|
|
156
|
-
"feDropShadow",
|
|
157
|
-
"feFlood",
|
|
158
|
-
"feFuncA",
|
|
159
|
-
"feFuncB",
|
|
160
|
-
"feFuncG",
|
|
161
|
-
"feFuncR",
|
|
162
|
-
"feGaussianBlur",
|
|
163
|
-
"feImage",
|
|
164
|
-
"feMerge",
|
|
165
|
-
"feMergeNode",
|
|
166
|
-
"feMorphology",
|
|
167
|
-
"feOffset",
|
|
168
|
-
"fePointLight",
|
|
169
|
-
"feSpecularLighting",
|
|
170
|
-
"feSpotLight",
|
|
171
|
-
"feTile",
|
|
172
|
-
"feTurbulence",
|
|
173
|
-
"filter",
|
|
174
|
-
"font",
|
|
175
|
-
"font-face",
|
|
176
|
-
"font-face-format",
|
|
177
|
-
"font-face-name",
|
|
178
|
-
"font-face-src",
|
|
179
|
-
"font-face-uri",
|
|
180
|
-
"foreignObject",
|
|
181
|
-
"g",
|
|
182
|
-
"glyph",
|
|
183
|
-
"glyphRef",
|
|
184
|
-
"hkern",
|
|
185
|
-
"image",
|
|
186
|
-
"line",
|
|
187
|
-
"linearGradient",
|
|
188
|
-
"marker",
|
|
189
|
-
"mask",
|
|
190
|
-
"metadata",
|
|
191
|
-
"missing-glyph",
|
|
192
|
-
"mpath",
|
|
193
|
-
"path",
|
|
194
|
-
"pattern",
|
|
195
|
-
"polygon",
|
|
196
|
-
"polyline",
|
|
197
|
-
"radialGradient",
|
|
198
|
-
"rect",
|
|
199
|
-
"set",
|
|
200
|
-
"stop",
|
|
201
|
-
"svg",
|
|
202
|
-
"switch",
|
|
203
|
-
"symbol",
|
|
204
|
-
"text",
|
|
205
|
-
"textPath",
|
|
206
|
-
"tref",
|
|
207
|
-
"tspan",
|
|
208
|
-
"use",
|
|
209
|
-
"view",
|
|
210
|
-
"vkern"
|
|
211
|
-
]);
|
|
45
|
+
return typeof a === "object" ? a[tagName] ? a["$"] : undefined : a;
|
|
46
|
+
}
|
|
47
|
+
const DelegatedEvents = /*#__PURE__*/new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
|
|
48
|
+
const SVGElements = /*#__PURE__*/new Set([
|
|
49
|
+
"altGlyph", "altGlyphDef", "altGlyphItem", "animate", "animateColor", "animateMotion", "animateTransform", "circle", "clipPath", "color-profile", "cursor", "defs", "desc", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "font", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignObject", "g", "glyph", "glyphRef", "hkern", "image", "line", "linearGradient", "marker", "mask", "metadata", "missing-glyph", "mpath", "path", "pattern", "polygon", "polyline", "radialGradient", "rect",
|
|
50
|
+
"set", "stop",
|
|
51
|
+
"svg", "switch", "symbol", "text", "textPath",
|
|
52
|
+
"tref", "tspan", "use", "view", "vkern"]);
|
|
212
53
|
const SVGNamespace = {
|
|
213
54
|
xlink: "http://www.w3.org/1999/xlink",
|
|
214
55
|
xml: "http://www.w3.org/XML/1998/namespace"
|
|
215
56
|
};
|
|
216
|
-
const DOMElements = /*#__PURE__*/
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
"head",
|
|
220
|
-
"link",
|
|
221
|
-
"meta",
|
|
222
|
-
"style",
|
|
223
|
-
"title",
|
|
224
|
-
"body",
|
|
225
|
-
"address",
|
|
226
|
-
"article",
|
|
227
|
-
"aside",
|
|
228
|
-
"footer",
|
|
229
|
-
"header",
|
|
230
|
-
"main",
|
|
231
|
-
"nav",
|
|
232
|
-
"section",
|
|
233
|
-
"body",
|
|
234
|
-
"blockquote",
|
|
235
|
-
"dd",
|
|
236
|
-
"div",
|
|
237
|
-
"dl",
|
|
238
|
-
"dt",
|
|
239
|
-
"figcaption",
|
|
240
|
-
"figure",
|
|
241
|
-
"hr",
|
|
242
|
-
"li",
|
|
243
|
-
"ol",
|
|
244
|
-
"p",
|
|
245
|
-
"pre",
|
|
246
|
-
"ul",
|
|
247
|
-
"a",
|
|
248
|
-
"abbr",
|
|
249
|
-
"b",
|
|
250
|
-
"bdi",
|
|
251
|
-
"bdo",
|
|
252
|
-
"br",
|
|
253
|
-
"cite",
|
|
254
|
-
"code",
|
|
255
|
-
"data",
|
|
256
|
-
"dfn",
|
|
257
|
-
"em",
|
|
258
|
-
"i",
|
|
259
|
-
"kbd",
|
|
260
|
-
"mark",
|
|
261
|
-
"q",
|
|
262
|
-
"rp",
|
|
263
|
-
"rt",
|
|
264
|
-
"ruby",
|
|
265
|
-
"s",
|
|
266
|
-
"samp",
|
|
267
|
-
"small",
|
|
268
|
-
"span",
|
|
269
|
-
"strong",
|
|
270
|
-
"sub",
|
|
271
|
-
"sup",
|
|
272
|
-
"time",
|
|
273
|
-
"u",
|
|
274
|
-
"var",
|
|
275
|
-
"wbr",
|
|
276
|
-
"area",
|
|
277
|
-
"audio",
|
|
278
|
-
"img",
|
|
279
|
-
"map",
|
|
280
|
-
"track",
|
|
281
|
-
"video",
|
|
282
|
-
"embed",
|
|
283
|
-
"iframe",
|
|
284
|
-
"object",
|
|
285
|
-
"param",
|
|
286
|
-
"picture",
|
|
287
|
-
"portal",
|
|
288
|
-
"source",
|
|
289
|
-
"svg",
|
|
290
|
-
"math",
|
|
291
|
-
"canvas",
|
|
292
|
-
"noscript",
|
|
293
|
-
"script",
|
|
294
|
-
"del",
|
|
295
|
-
"ins",
|
|
296
|
-
"caption",
|
|
297
|
-
"col",
|
|
298
|
-
"colgroup",
|
|
299
|
-
"table",
|
|
300
|
-
"tbody",
|
|
301
|
-
"td",
|
|
302
|
-
"tfoot",
|
|
303
|
-
"th",
|
|
304
|
-
"thead",
|
|
305
|
-
"tr",
|
|
306
|
-
"button",
|
|
307
|
-
"datalist",
|
|
308
|
-
"fieldset",
|
|
309
|
-
"form",
|
|
310
|
-
"input",
|
|
311
|
-
"label",
|
|
312
|
-
"legend",
|
|
313
|
-
"meter",
|
|
314
|
-
"optgroup",
|
|
315
|
-
"option",
|
|
316
|
-
"output",
|
|
317
|
-
"progress",
|
|
318
|
-
"select",
|
|
319
|
-
"textarea",
|
|
320
|
-
"details",
|
|
321
|
-
"dialog",
|
|
322
|
-
"menu",
|
|
323
|
-
"summary",
|
|
324
|
-
"details",
|
|
325
|
-
"slot",
|
|
326
|
-
"template",
|
|
327
|
-
"acronym",
|
|
328
|
-
"applet",
|
|
329
|
-
"basefont",
|
|
330
|
-
"bgsound",
|
|
331
|
-
"big",
|
|
332
|
-
"blink",
|
|
333
|
-
"center",
|
|
334
|
-
"content",
|
|
335
|
-
"dir",
|
|
336
|
-
"font",
|
|
337
|
-
"frame",
|
|
338
|
-
"frameset",
|
|
339
|
-
"hgroup",
|
|
340
|
-
"image",
|
|
341
|
-
"keygen",
|
|
342
|
-
"marquee",
|
|
343
|
-
"menuitem",
|
|
344
|
-
"nobr",
|
|
345
|
-
"noembed",
|
|
346
|
-
"noframes",
|
|
347
|
-
"plaintext",
|
|
348
|
-
"rb",
|
|
349
|
-
"rtc",
|
|
350
|
-
"shadow",
|
|
351
|
-
"spacer",
|
|
352
|
-
"strike",
|
|
353
|
-
"tt",
|
|
354
|
-
"xmp",
|
|
355
|
-
"a",
|
|
356
|
-
"abbr",
|
|
357
|
-
"acronym",
|
|
358
|
-
"address",
|
|
359
|
-
"applet",
|
|
360
|
-
"area",
|
|
361
|
-
"article",
|
|
362
|
-
"aside",
|
|
363
|
-
"audio",
|
|
364
|
-
"b",
|
|
365
|
-
"base",
|
|
366
|
-
"basefont",
|
|
367
|
-
"bdi",
|
|
368
|
-
"bdo",
|
|
369
|
-
"bgsound",
|
|
370
|
-
"big",
|
|
371
|
-
"blink",
|
|
372
|
-
"blockquote",
|
|
373
|
-
"body",
|
|
374
|
-
"br",
|
|
375
|
-
"button",
|
|
376
|
-
"canvas",
|
|
377
|
-
"caption",
|
|
378
|
-
"center",
|
|
379
|
-
"cite",
|
|
380
|
-
"code",
|
|
381
|
-
"col",
|
|
382
|
-
"colgroup",
|
|
383
|
-
"content",
|
|
384
|
-
"data",
|
|
385
|
-
"datalist",
|
|
386
|
-
"dd",
|
|
387
|
-
"del",
|
|
388
|
-
"details",
|
|
389
|
-
"dfn",
|
|
390
|
-
"dialog",
|
|
391
|
-
"dir",
|
|
392
|
-
"div",
|
|
393
|
-
"dl",
|
|
394
|
-
"dt",
|
|
395
|
-
"em",
|
|
396
|
-
"embed",
|
|
397
|
-
"fieldset",
|
|
398
|
-
"figcaption",
|
|
399
|
-
"figure",
|
|
400
|
-
"font",
|
|
401
|
-
"footer",
|
|
402
|
-
"form",
|
|
403
|
-
"frame",
|
|
404
|
-
"frameset",
|
|
405
|
-
"head",
|
|
406
|
-
"header",
|
|
407
|
-
"hgroup",
|
|
408
|
-
"hr",
|
|
409
|
-
"html",
|
|
410
|
-
"i",
|
|
411
|
-
"iframe",
|
|
412
|
-
"image",
|
|
413
|
-
"img",
|
|
414
|
-
"input",
|
|
415
|
-
"ins",
|
|
416
|
-
"kbd",
|
|
417
|
-
"keygen",
|
|
418
|
-
"label",
|
|
419
|
-
"legend",
|
|
420
|
-
"li",
|
|
421
|
-
"link",
|
|
422
|
-
"main",
|
|
423
|
-
"map",
|
|
424
|
-
"mark",
|
|
425
|
-
"marquee",
|
|
426
|
-
"menu",
|
|
427
|
-
"menuitem",
|
|
428
|
-
"meta",
|
|
429
|
-
"meter",
|
|
430
|
-
"nav",
|
|
431
|
-
"nobr",
|
|
432
|
-
"noembed",
|
|
433
|
-
"noframes",
|
|
434
|
-
"noscript",
|
|
435
|
-
"object",
|
|
436
|
-
"ol",
|
|
437
|
-
"optgroup",
|
|
438
|
-
"option",
|
|
439
|
-
"output",
|
|
440
|
-
"p",
|
|
441
|
-
"param",
|
|
442
|
-
"picture",
|
|
443
|
-
"plaintext",
|
|
444
|
-
"portal",
|
|
445
|
-
"pre",
|
|
446
|
-
"progress",
|
|
447
|
-
"q",
|
|
448
|
-
"rb",
|
|
449
|
-
"rp",
|
|
450
|
-
"rt",
|
|
451
|
-
"rtc",
|
|
452
|
-
"ruby",
|
|
453
|
-
"s",
|
|
454
|
-
"samp",
|
|
455
|
-
"script",
|
|
456
|
-
"section",
|
|
457
|
-
"select",
|
|
458
|
-
"shadow",
|
|
459
|
-
"slot",
|
|
460
|
-
"small",
|
|
461
|
-
"source",
|
|
462
|
-
"spacer",
|
|
463
|
-
"span",
|
|
464
|
-
"strike",
|
|
465
|
-
"strong",
|
|
466
|
-
"style",
|
|
467
|
-
"sub",
|
|
468
|
-
"summary",
|
|
469
|
-
"sup",
|
|
470
|
-
"table",
|
|
471
|
-
"tbody",
|
|
472
|
-
"td",
|
|
473
|
-
"template",
|
|
474
|
-
"textarea",
|
|
475
|
-
"tfoot",
|
|
476
|
-
"th",
|
|
477
|
-
"thead",
|
|
478
|
-
"time",
|
|
479
|
-
"title",
|
|
480
|
-
"tr",
|
|
481
|
-
"track",
|
|
482
|
-
"tt",
|
|
483
|
-
"u",
|
|
484
|
-
"ul",
|
|
485
|
-
"var",
|
|
486
|
-
"video",
|
|
487
|
-
"wbr",
|
|
488
|
-
"xmp",
|
|
489
|
-
"input",
|
|
490
|
-
"h1",
|
|
491
|
-
"h2",
|
|
492
|
-
"h3",
|
|
493
|
-
"h4",
|
|
494
|
-
"h5",
|
|
495
|
-
"h6"
|
|
496
|
-
]);
|
|
57
|
+
const DOMElements = /*#__PURE__*/new Set(["html", "base", "head", "link", "meta", "style", "title", "body", "address", "article", "aside", "footer", "header", "main", "nav", "section", "body", "blockquote", "dd", "div", "dl", "dt", "figcaption", "figure", "hr", "li", "ol", "p", "pre", "ul", "a", "abbr", "b", "bdi", "bdo", "br", "cite", "code", "data", "dfn", "em", "i", "kbd", "mark", "q", "rp", "rt", "ruby", "s", "samp", "small", "span", "strong", "sub", "sup", "time", "u", "var", "wbr", "area", "audio", "img", "map", "track", "video", "embed", "iframe", "object", "param", "picture", "portal", "source", "svg", "math", "canvas", "noscript", "script", "del", "ins", "caption", "col", "colgroup", "table", "tbody", "td", "tfoot", "th", "thead", "tr", "button", "datalist", "fieldset", "form", "input", "label", "legend", "meter", "optgroup", "option", "output", "progress", "select", "textarea", "details", "dialog", "menu", "summary", "details", "slot", "template", "acronym", "applet", "basefont", "bgsound", "big", "blink", "center", "content", "dir", "font", "frame", "frameset", "hgroup", "image", "keygen", "marquee", "menuitem", "nobr", "noembed", "noframes", "plaintext", "rb", "rtc", "shadow", "spacer", "strike", "tt", "xmp", "a", "abbr", "acronym", "address", "applet", "area", "article", "aside", "audio", "b", "base", "basefont", "bdi", "bdo", "bgsound", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "font", "footer", "form", "frame", "frameset", "head", "header", "hgroup", "hr", "html", "i", "iframe", "image", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "nobr", "noembed", "noframes", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "plaintext", "portal", "pre", "progress", "q", "rb", "rp", "rt", "rtc", "ruby", "s", "samp", "script", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "tt", "u", "ul", "var", "video", "wbr", "xmp", "input", "h1", "h2", "h3", "h4", "h5", "h6"]);
|
|
58
|
+
|
|
59
|
+
const memo = fn => createMemo(() => fn());
|
|
497
60
|
|
|
498
|
-
const ES2017FLAG = Feature.AggregateError
|
|
499
|
-
|
|
500
|
-
|
|
61
|
+
const ES2017FLAG = Feature.AggregateError
|
|
62
|
+
| Feature.BigIntTypedArray;
|
|
63
|
+
const GLOBAL_IDENTIFIER = '_$HY.r';
|
|
64
|
+
function createSerializer({
|
|
65
|
+
onData,
|
|
66
|
+
onDone,
|
|
67
|
+
scopeId,
|
|
68
|
+
onError
|
|
69
|
+
}) {
|
|
501
70
|
return new Serializer({
|
|
502
71
|
scopeId,
|
|
503
|
-
plugins: [
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
EventPlugin,
|
|
507
|
-
FormDataPlugin,
|
|
508
|
-
HeadersPlugin,
|
|
509
|
-
ReadableStreamPlugin,
|
|
510
|
-
RequestPlugin,
|
|
511
|
-
ResponsePlugin,
|
|
512
|
-
URLSearchParamsPlugin,
|
|
513
|
-
URLPlugin
|
|
514
|
-
],
|
|
72
|
+
plugins: [AbortSignalPlugin,
|
|
73
|
+
CustomEventPlugin, DOMExceptionPlugin, EventPlugin,
|
|
74
|
+
FormDataPlugin, HeadersPlugin, ReadableStreamPlugin, RequestPlugin, ResponsePlugin, URLSearchParamsPlugin, URLPlugin],
|
|
515
75
|
globalIdentifier: GLOBAL_IDENTIFIER,
|
|
516
76
|
disabledFeatures: ES2017FLAG,
|
|
517
77
|
onData,
|
|
@@ -520,14 +80,15 @@ function createSerializer({ onData, onDone, scopeId, onError }) {
|
|
|
520
80
|
});
|
|
521
81
|
}
|
|
522
82
|
function getLocalHeaderScript(id) {
|
|
523
|
-
return getCrossReferenceHeader(id) +
|
|
83
|
+
return getCrossReferenceHeader(id) + ';';
|
|
524
84
|
}
|
|
525
85
|
|
|
526
|
-
const VOID_ELEMENTS =
|
|
527
|
-
/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i;
|
|
86
|
+
const VOID_ELEMENTS = /^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i;
|
|
528
87
|
const REPLACE_SCRIPT = `function $df(e,n,o,t){if(n=document.getElementById(e),o=document.getElementById("pl-"+e)){for(;o&&8!==o.nodeType&&o.nodeValue!=="pl-"+e;)t=o.nextSibling,o.remove(),o=t;_$HY.done?o.remove():o.replaceWith(n.content)}n.remove(),_$HY.fe(e)}`;
|
|
529
88
|
function renderToString(code, options = {}) {
|
|
530
|
-
const {
|
|
89
|
+
const {
|
|
90
|
+
renderId
|
|
91
|
+
} = options;
|
|
531
92
|
let scripts = "";
|
|
532
93
|
const serializer = createSerializer({
|
|
533
94
|
scopeId: renderId,
|
|
@@ -565,7 +126,9 @@ function renderToString(code, options = {}) {
|
|
|
565
126
|
return html;
|
|
566
127
|
}
|
|
567
128
|
function renderToStringAsync(code, options = {}) {
|
|
568
|
-
const {
|
|
129
|
+
const {
|
|
130
|
+
timeoutMs = 30000
|
|
131
|
+
} = options;
|
|
569
132
|
let timeoutHandle;
|
|
570
133
|
const timeout = new Promise((_, reject) => {
|
|
571
134
|
timeoutHandle = setTimeout(() => reject("renderToString timed out"), timeoutMs);
|
|
@@ -576,7 +139,13 @@ function renderToStringAsync(code, options = {}) {
|
|
|
576
139
|
});
|
|
577
140
|
}
|
|
578
141
|
function renderToStream(code, options = {}) {
|
|
579
|
-
let {
|
|
142
|
+
let {
|
|
143
|
+
nonce,
|
|
144
|
+
onCompleteShell,
|
|
145
|
+
onCompleteAll,
|
|
146
|
+
renderId,
|
|
147
|
+
noScripts
|
|
148
|
+
} = options;
|
|
580
149
|
let dispose;
|
|
581
150
|
const blockingPromises = [];
|
|
582
151
|
const pushTask = task => {
|
|
@@ -592,12 +161,11 @@ function renderToStream(code, options = {}) {
|
|
|
592
161
|
const onDone = () => {
|
|
593
162
|
writeTasks();
|
|
594
163
|
doShell();
|
|
595
|
-
onCompleteAll &&
|
|
596
|
-
|
|
597
|
-
write(v)
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
});
|
|
164
|
+
onCompleteAll && onCompleteAll({
|
|
165
|
+
write(v) {
|
|
166
|
+
!completed && buffer.write(v);
|
|
167
|
+
}
|
|
168
|
+
});
|
|
601
169
|
writable && writable.end();
|
|
602
170
|
completed = true;
|
|
603
171
|
if (firstFlushed) dispose();
|
|
@@ -654,23 +222,17 @@ function renderToStream(code, options = {}) {
|
|
|
654
222
|
const first = html.indexOf(placeholder);
|
|
655
223
|
if (first === -1) return;
|
|
656
224
|
const last = html.indexOf(`<!--!$/${id}-->`, first + placeholder.length);
|
|
657
|
-
html =
|
|
658
|
-
html.slice(0, first) +
|
|
659
|
-
resolveSSRNode(escape(payloadFn())) +
|
|
660
|
-
html.slice(last + placeholder.length + 1);
|
|
225
|
+
html = html.slice(0, first) + resolveSSRNode(escape(payloadFn())) + html.slice(last + placeholder.length + 1);
|
|
661
226
|
},
|
|
662
227
|
serialize(id, p, wait) {
|
|
663
228
|
const serverOnly = sharedConfig.context.noHydrate;
|
|
664
229
|
if (!firstFlushed && wait && typeof p === "object" && "then" in p) {
|
|
665
230
|
blockingPromises.push(p);
|
|
666
|
-
!serverOnly &&
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
.catch(e => {
|
|
672
|
-
serializer.write(id, e);
|
|
673
|
-
});
|
|
231
|
+
!serverOnly && p.then(d => {
|
|
232
|
+
serializer.write(id, d);
|
|
233
|
+
}).catch(e => {
|
|
234
|
+
serializer.write(id, e);
|
|
235
|
+
});
|
|
674
236
|
} else if (!serverOnly) serializer.write(id, p);
|
|
675
237
|
},
|
|
676
238
|
roots: 0,
|
|
@@ -680,15 +242,11 @@ function renderToStream(code, options = {}) {
|
|
|
680
242
|
registerFragment(key) {
|
|
681
243
|
if (!registry.has(key)) {
|
|
682
244
|
let resolve, reject;
|
|
683
|
-
const p = new Promise((r, rej) => (
|
|
684
|
-
registry.set(key, err =>
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
queue(flushEnd);
|
|
689
|
-
})
|
|
690
|
-
)
|
|
691
|
-
);
|
|
245
|
+
const p = new Promise((r, rej) => (resolve = r, reject = rej));
|
|
246
|
+
registry.set(key, err => queue(() => queue(() => {
|
|
247
|
+
err ? reject(err) : resolve(true);
|
|
248
|
+
queue(flushEnd);
|
|
249
|
+
})));
|
|
692
250
|
serializer.write(key, p);
|
|
693
251
|
}
|
|
694
252
|
return (value, error) => {
|
|
@@ -701,7 +259,7 @@ function renderToStream(code, options = {}) {
|
|
|
701
259
|
}
|
|
702
260
|
if (!completed) {
|
|
703
261
|
if (!firstFlushed) {
|
|
704
|
-
queue(() =>
|
|
262
|
+
queue(() => html = replacePlaceholder(html, key, value !== undefined ? value : ""));
|
|
705
263
|
resolve(error);
|
|
706
264
|
} else {
|
|
707
265
|
buffer.write(`<template id="${key}">${value !== undefined ? value : " "}</template>`);
|
|
@@ -727,12 +285,11 @@ function renderToStream(code, options = {}) {
|
|
|
727
285
|
if (tasks.length) html = injectScripts(html, tasks, nonce);
|
|
728
286
|
buffer.write(html);
|
|
729
287
|
tasks = "";
|
|
730
|
-
onCompleteShell &&
|
|
731
|
-
|
|
732
|
-
write(v)
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
});
|
|
288
|
+
onCompleteShell && onCompleteShell({
|
|
289
|
+
write(v) {
|
|
290
|
+
!completed && buffer.write(v);
|
|
291
|
+
}
|
|
292
|
+
});
|
|
736
293
|
shellCompleted = true;
|
|
737
294
|
}
|
|
738
295
|
return {
|
|
@@ -767,7 +324,7 @@ function renderToStream(code, options = {}) {
|
|
|
767
324
|
pipeTo(w) {
|
|
768
325
|
return allSettled(blockingPromises).then(() => {
|
|
769
326
|
let resolve;
|
|
770
|
-
const p = new Promise(r =>
|
|
327
|
+
const p = new Promise(r => resolve = r);
|
|
771
328
|
setTimeout(() => {
|
|
772
329
|
doShell();
|
|
773
330
|
const encoder = new TextEncoder();
|
|
@@ -797,13 +354,13 @@ function renderToStream(code, options = {}) {
|
|
|
797
354
|
};
|
|
798
355
|
}
|
|
799
356
|
function HydrationScript(props) {
|
|
800
|
-
const {
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
);
|
|
357
|
+
const {
|
|
358
|
+
nonce
|
|
359
|
+
} = sharedConfig.context;
|
|
360
|
+
return ssr(generateHydrationScript({
|
|
361
|
+
nonce,
|
|
362
|
+
...props
|
|
363
|
+
}));
|
|
807
364
|
}
|
|
808
365
|
function ssr(t, ...nodes) {
|
|
809
366
|
if (nodes.length) {
|
|
@@ -848,8 +405,7 @@ function ssrStyle(value) {
|
|
|
848
405
|
return result;
|
|
849
406
|
}
|
|
850
407
|
function ssrElement(tag, props, children, needsId) {
|
|
851
|
-
if (props == null) props = {};
|
|
852
|
-
else if (typeof props === "function") props = props();
|
|
408
|
+
if (props == null) props = {};else if (typeof props === "function") props = props();
|
|
853
409
|
const skipChildren = VOID_ELEMENTS.test(tag);
|
|
854
410
|
const keys = Object.keys(props);
|
|
855
411
|
let result = `<${tag}${needsId ? ssrHydrationKey() : ""} `;
|
|
@@ -857,11 +413,7 @@ function ssrElement(tag, props, children, needsId) {
|
|
|
857
413
|
for (let i = 0; i < keys.length; i++) {
|
|
858
414
|
const prop = keys[i];
|
|
859
415
|
if (ChildProperties.has(prop)) {
|
|
860
|
-
if (children === undefined && !skipChildren)
|
|
861
|
-
children =
|
|
862
|
-
tag === "script" || tag === "style" || prop === "innerHTML"
|
|
863
|
-
? props[prop]
|
|
864
|
-
: escape(props[prop]);
|
|
416
|
+
if (children === undefined && !skipChildren) children = tag === "script" || tag === "style" || prop === "innerHTML" ? props[prop] : escape(props[prop]);
|
|
865
417
|
continue;
|
|
866
418
|
}
|
|
867
419
|
const value = props[prop];
|
|
@@ -870,20 +422,11 @@ function ssrElement(tag, props, children, needsId) {
|
|
|
870
422
|
} else if (prop === "class" || prop === "className" || prop === "classList") {
|
|
871
423
|
if (classResolved) continue;
|
|
872
424
|
let n;
|
|
873
|
-
result += `class="${
|
|
874
|
-
escape(((n = props.class) ? n + " " : "") + ((n = props.className) ? n + " " : ""), true) +
|
|
875
|
-
ssrClassList(props.classList)
|
|
876
|
-
}"`;
|
|
425
|
+
result += `class="${escape(((n = props.class) ? n + " " : "") + ((n = props.className) ? n + " " : ""), true) + ssrClassList(props.classList)}"`;
|
|
877
426
|
classResolved = true;
|
|
878
427
|
} else if (BooleanAttributes.has(prop)) {
|
|
879
|
-
if (value) result += prop;
|
|
880
|
-
|
|
881
|
-
} else if (
|
|
882
|
-
value == undefined ||
|
|
883
|
-
prop === "ref" ||
|
|
884
|
-
prop.slice(0, 2) === "on" ||
|
|
885
|
-
prop.slice(0, 5) === "prop:"
|
|
886
|
-
) {
|
|
428
|
+
if (value) result += prop;else continue;
|
|
429
|
+
} else if (value == undefined || prop === "ref" || prop.slice(0, 2) === "on" || prop.slice(0, 5) === "prop:") {
|
|
887
430
|
continue;
|
|
888
431
|
} else if (prop.slice(0, 5) === "bool:") {
|
|
889
432
|
if (!value) continue;
|
|
@@ -895,17 +438,16 @@ function ssrElement(tag, props, children, needsId) {
|
|
|
895
438
|
}
|
|
896
439
|
if (i !== keys.length - 1) result += " ";
|
|
897
440
|
}
|
|
898
|
-
if (skipChildren)
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
};
|
|
441
|
+
if (skipChildren) return {
|
|
442
|
+
t: result + "/>"
|
|
443
|
+
};
|
|
902
444
|
if (typeof children === "function") children = children();
|
|
903
445
|
return {
|
|
904
446
|
t: result + `>${resolveSSRNode(children, true)}</${tag}>`
|
|
905
447
|
};
|
|
906
448
|
}
|
|
907
449
|
function ssrAttribute(key, value, isBoolean) {
|
|
908
|
-
return isBoolean ?
|
|
450
|
+
return isBoolean ? value ? " " + key : "" : value != null ? ` ${key}="${value}"` : "";
|
|
909
451
|
}
|
|
910
452
|
function ssrHydrationKey() {
|
|
911
453
|
const hk = getHydrationKey();
|
|
@@ -949,13 +491,12 @@ function escape(s, attr) {
|
|
|
949
491
|
left = iDelim + 1;
|
|
950
492
|
iDelim = s.indexOf(delim, left);
|
|
951
493
|
} while (iDelim >= 0);
|
|
952
|
-
} else
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
}
|
|
494
|
+
} else while (iAmp >= 0) {
|
|
495
|
+
if (left < iAmp) out += s.substring(left, iAmp);
|
|
496
|
+
out += "&";
|
|
497
|
+
left = iAmp + 1;
|
|
498
|
+
iAmp = s.indexOf("&", left);
|
|
499
|
+
}
|
|
959
500
|
return left < s.length ? out + s.substring(left) : out;
|
|
960
501
|
}
|
|
961
502
|
function resolveSSRNode(node, top) {
|
|
@@ -967,7 +508,7 @@ function resolveSSRNode(node, top) {
|
|
|
967
508
|
let mapped = "";
|
|
968
509
|
for (let i = 0, len = node.length; i < len; i++) {
|
|
969
510
|
if (!top && typeof prev !== "object" && typeof node[i] !== "object") mapped += `<!--!$-->`;
|
|
970
|
-
mapped += resolveSSRNode(
|
|
511
|
+
mapped += resolveSSRNode(prev = node[i]);
|
|
971
512
|
}
|
|
972
513
|
return mapped;
|
|
973
514
|
}
|
|
@@ -988,12 +529,11 @@ function getAssets() {
|
|
|
988
529
|
for (let i = 0, len = assets.length; i < len; i++) out += assets[i]();
|
|
989
530
|
return out;
|
|
990
531
|
}
|
|
991
|
-
function generateHydrationScript({
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
)}"].forEach((o=>document.addEventListener(o,(o=>{if(!e.events)return;let s=t(o.composedPath&&o.composedPath()[0]||o.target);s&&!e.completed.has(s)&&e.events.push([s,o])}))))})(_$HY={events:[],completed:new WeakSet,r:{},fe(){}});</script><!--xs-->`;
|
|
532
|
+
function generateHydrationScript({
|
|
533
|
+
eventNames = ["click", "input"],
|
|
534
|
+
nonce
|
|
535
|
+
} = {}) {
|
|
536
|
+
return `<script${nonce ? ` nonce="${nonce}"` : ""}>window._$HY||(e=>{let t=e=>e&&e.hasAttribute&&(e.hasAttribute("data-hk")?e:t(e.host&&e.host.nodeType?e.host:e.parentNode));["${eventNames.join('", "')}"].forEach((o=>document.addEventListener(o,(o=>{if(!e.events)return;let s=t(o.composedPath&&o.composedPath()[0]||o.target);s&&!e.completed.has(s)&&e.events.push([s,o])}))))})(_$HY={events:[],completed:new WeakSet,r:{},fe(){}});</script><!--xs-->`;
|
|
997
537
|
}
|
|
998
538
|
function Hydration(props) {
|
|
999
539
|
if (!sharedConfig.context.noHydrate) return props.children;
|
|
@@ -1054,20 +594,16 @@ function replacePlaceholder(html, key, value) {
|
|
|
1054
594
|
}
|
|
1055
595
|
const RequestContext = Symbol();
|
|
1056
596
|
function getRequestEvent() {
|
|
1057
|
-
return globalThis[RequestContext]
|
|
1058
|
-
? globalThis[RequestContext].getStore() ||
|
|
1059
|
-
(sharedConfig.context && sharedConfig.context.event) ||
|
|
1060
|
-
console.log(
|
|
1061
|
-
"RequestEvent is missing. This is most likely due to accessing `getRequestEvent` non-managed async scope in a partially polyfilled environment. Try moving it above all `await` calls."
|
|
1062
|
-
)
|
|
1063
|
-
: undefined;
|
|
597
|
+
return globalThis[RequestContext] ? globalThis[RequestContext].getStore() || sharedConfig.context && sharedConfig.context.event || console.log("RequestEvent is missing. This is most likely due to accessing `getRequestEvent` non-managed async scope in a partially polyfilled environment. Try moving it above all `await` calls.") : undefined;
|
|
1064
598
|
}
|
|
1065
599
|
function Assets(props) {
|
|
1066
600
|
useAssets(() => props.children);
|
|
1067
601
|
}
|
|
1068
602
|
function pipeToNodeWritable(code, writable, options = {}) {
|
|
1069
603
|
if (options.onReady) {
|
|
1070
|
-
options.onCompleteShell = ({
|
|
604
|
+
options.onCompleteShell = ({
|
|
605
|
+
write
|
|
606
|
+
}) => {
|
|
1071
607
|
options.onReady({
|
|
1072
608
|
write,
|
|
1073
609
|
startWriting() {
|
|
@@ -1081,7 +617,9 @@ function pipeToNodeWritable(code, writable, options = {}) {
|
|
|
1081
617
|
}
|
|
1082
618
|
function pipeToWritable(code, writable, options = {}) {
|
|
1083
619
|
if (options.onReady) {
|
|
1084
|
-
options.onCompleteShell = ({
|
|
620
|
+
options.onCompleteShell = ({
|
|
621
|
+
write
|
|
622
|
+
}) => {
|
|
1085
623
|
options.onReady({
|
|
1086
624
|
write,
|
|
1087
625
|
startWriting() {
|
|
@@ -1111,19 +649,11 @@ function ssrSpread(props, isSVG, skipChildren) {
|
|
|
1111
649
|
} else if (prop === "class" || prop === "className" || prop === "classList") {
|
|
1112
650
|
if (classResolved) continue;
|
|
1113
651
|
let n;
|
|
1114
|
-
result += `class="${(n = props.class) ? n + " " : ""}${
|
|
1115
|
-
(n = props.className) ? n + " " : ""
|
|
1116
|
-
}${ssrClassList(props.classList)}"`;
|
|
652
|
+
result += `class="${(n = props.class) ? n + " " : ""}${(n = props.className) ? n + " " : ""}${ssrClassList(props.classList)}"`;
|
|
1117
653
|
classResolved = true;
|
|
1118
654
|
} else if (prop !== "value" && Properties.has(prop)) {
|
|
1119
|
-
if (value) result += prop;
|
|
1120
|
-
|
|
1121
|
-
} else if (
|
|
1122
|
-
value == undefined ||
|
|
1123
|
-
prop === "ref" ||
|
|
1124
|
-
prop.slice(0, 2) === "on" ||
|
|
1125
|
-
prop.slice(0, 5) === "prop:"
|
|
1126
|
-
) {
|
|
655
|
+
if (value) result += prop;else continue;
|
|
656
|
+
} else if (value == undefined || prop === "ref" || prop.slice(0, 2) === "on" || prop.slice(0, 5) === "prop:") {
|
|
1127
657
|
continue;
|
|
1128
658
|
} else if (prop.slice(0, 5) === "bool:") {
|
|
1129
659
|
if (!value) continue;
|
|
@@ -1138,9 +668,7 @@ function ssrSpread(props, isSVG, skipChildren) {
|
|
|
1138
668
|
return result;
|
|
1139
669
|
}
|
|
1140
670
|
function notSup() {
|
|
1141
|
-
throw new Error(
|
|
1142
|
-
"Client-only API called on the server side. Run client-only code in onMount, or conditionally run client-only component with <Show>."
|
|
1143
|
-
);
|
|
671
|
+
throw new Error("Client-only API called on the server side. Run client-only code in onMount, or conditionally run client-only component with <Show>.");
|
|
1144
672
|
}
|
|
1145
673
|
|
|
1146
674
|
const isServer = true;
|
|
@@ -1149,8 +677,7 @@ function createDynamic(component, props) {
|
|
|
1149
677
|
const comp = component(),
|
|
1150
678
|
t = typeof comp;
|
|
1151
679
|
if (comp) {
|
|
1152
|
-
if (t === "function") return comp(props);
|
|
1153
|
-
else if (t === "string") {
|
|
680
|
+
if (t === "function") return comp(props);else if (t === "string") {
|
|
1154
681
|
return ssrElement(comp, props, undefined, true);
|
|
1155
682
|
}
|
|
1156
683
|
}
|
|
@@ -1163,61 +690,4 @@ function Portal(props) {
|
|
|
1163
690
|
return "";
|
|
1164
691
|
}
|
|
1165
692
|
|
|
1166
|
-
export {
|
|
1167
|
-
Aliases,
|
|
1168
|
-
Assets,
|
|
1169
|
-
ChildProperties,
|
|
1170
|
-
DOMElements,
|
|
1171
|
-
DelegatedEvents,
|
|
1172
|
-
Dynamic,
|
|
1173
|
-
Hydration,
|
|
1174
|
-
HydrationScript,
|
|
1175
|
-
NoHydration,
|
|
1176
|
-
Portal,
|
|
1177
|
-
Properties,
|
|
1178
|
-
RequestContext,
|
|
1179
|
-
SVGElements,
|
|
1180
|
-
SVGNamespace,
|
|
1181
|
-
notSup as addEventListener,
|
|
1182
|
-
notSup as assign,
|
|
1183
|
-
notSup as classList,
|
|
1184
|
-
notSup as className,
|
|
1185
|
-
createDynamic,
|
|
1186
|
-
notSup as delegateEvents,
|
|
1187
|
-
notSup as dynamicProperty,
|
|
1188
|
-
escape,
|
|
1189
|
-
generateHydrationScript,
|
|
1190
|
-
getAssets,
|
|
1191
|
-
getHydrationKey,
|
|
1192
|
-
notSup as getNextElement,
|
|
1193
|
-
notSup as getNextMarker,
|
|
1194
|
-
notSup as getNextMatch,
|
|
1195
|
-
getPropAlias,
|
|
1196
|
-
getRequestEvent,
|
|
1197
|
-
notSup as hydrate,
|
|
1198
|
-
notSup as insert,
|
|
1199
|
-
isDev,
|
|
1200
|
-
isServer,
|
|
1201
|
-
pipeToNodeWritable,
|
|
1202
|
-
pipeToWritable,
|
|
1203
|
-
notSup as render,
|
|
1204
|
-
renderToStream,
|
|
1205
|
-
renderToString,
|
|
1206
|
-
renderToStringAsync,
|
|
1207
|
-
resolveSSRNode,
|
|
1208
|
-
notSup as runHydrationEvents,
|
|
1209
|
-
notSup as setAttribute,
|
|
1210
|
-
notSup as setAttributeNS,
|
|
1211
|
-
notSup as setProperty,
|
|
1212
|
-
notSup as spread,
|
|
1213
|
-
ssr,
|
|
1214
|
-
ssrAttribute,
|
|
1215
|
-
ssrClassList,
|
|
1216
|
-
ssrElement,
|
|
1217
|
-
ssrHydrationKey,
|
|
1218
|
-
ssrSpread,
|
|
1219
|
-
ssrStyle,
|
|
1220
|
-
notSup as style,
|
|
1221
|
-
notSup as template,
|
|
1222
|
-
useAssets
|
|
1223
|
-
};
|
|
693
|
+
export { Aliases, Assets, ChildProperties, DOMElements, DelegatedEvents, Dynamic, Hydration, HydrationScript, NoHydration, Portal, Properties, RequestContext, SVGElements, SVGNamespace, notSup as addEventListener, notSup as assign, notSup as classList, notSup as className, createDynamic, notSup as delegateEvents, notSup as dynamicProperty, escape, generateHydrationScript, getAssets, getHydrationKey, notSup as getNextElement, notSup as getNextMarker, notSup as getNextMatch, getPropAlias, getRequestEvent, notSup as hydrate, notSup as insert, isDev, isServer, memo, pipeToNodeWritable, pipeToWritable, notSup as render, renderToStream, renderToString, renderToStringAsync, resolveSSRNode, notSup as runHydrationEvents, notSup as setAttribute, notSup as setAttributeNS, notSup as setProperty, notSup as spread, ssr, ssrAttribute, ssrClassList, ssrElement, ssrHydrationKey, ssrSpread, ssrStyle, notSup as style, notSup as template, useAssets };
|