solid-js 1.9.1 → 1.9.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/README.md +1 -1
- package/dist/dev.cjs +1 -1
- package/dist/dev.js +318 -559
- package/dist/server.js +74 -168
- package/dist/solid.cjs +1 -1
- package/dist/solid.js +276 -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 +196 -59
- package/h/types/hyperscript.d.ts +11 -11
- package/html/dist/html.cjs +1 -1
- package/html/dist/html.js +94 -219
- package/html/types/lit.d.ts +33 -52
- package/package.json +1 -1
- 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 +10 -75
- package/types/jsx.d.ts +195 -47
- package/types/reactive/array.d.ts +4 -12
- package/types/reactive/observable.d.ts +17 -25
- package/types/reactive/scheduler.d.ts +6 -9
- package/types/reactive/signal.d.ts +142 -233
- package/types/render/Suspense.d.ts +5 -5
- package/types/render/component.d.ts +35 -71
- 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 +42 -73
- package/types/server/rendering.d.ts +98 -169
- package/universal/dist/dev.js +12 -28
- package/universal/dist/universal.js +12 -28
- package/universal/types/index.d.ts +1 -3
- package/universal/types/universal.d.ts +1 -0
- package/web/dist/dev.cjs +14 -14
- package/web/dist/dev.js +89 -639
- package/web/dist/server.cjs +14 -14
- package/web/dist/server.js +108 -635
- package/web/dist/web.cjs +14 -14
- package/web/dist/web.js +87 -627
- package/web/storage/dist/storage.js +3 -3
- package/web/types/core.d.ts +1 -10
- package/web/types/index.d.ts +10 -27
- package/web/types/server-mock.d.ts +32 -47
package/web/dist/web.js
CHANGED
|
@@ -1,82 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
createRenderEffect,
|
|
4
|
-
untrack,
|
|
5
|
-
sharedConfig,
|
|
6
|
-
enableHydration,
|
|
7
|
-
getOwner,
|
|
8
|
-
createEffect,
|
|
9
|
-
runWithOwner,
|
|
10
|
-
createMemo,
|
|
11
|
-
createSignal,
|
|
12
|
-
onCleanup,
|
|
13
|
-
splitProps
|
|
14
|
-
} from "solid-js";
|
|
15
|
-
export {
|
|
16
|
-
ErrorBoundary,
|
|
17
|
-
For,
|
|
18
|
-
Index,
|
|
19
|
-
Match,
|
|
20
|
-
Show,
|
|
21
|
-
Suspense,
|
|
22
|
-
SuspenseList,
|
|
23
|
-
Switch,
|
|
24
|
-
createComponent,
|
|
25
|
-
createRenderEffect as effect,
|
|
26
|
-
getOwner,
|
|
27
|
-
createMemo as memo,
|
|
28
|
-
mergeProps,
|
|
29
|
-
untrack
|
|
30
|
-
} from "solid-js";
|
|
1
|
+
import { createRoot, createRenderEffect, untrack, sharedConfig, enableHydration, getOwner, createEffect, runWithOwner, createMemo, createSignal, onCleanup, splitProps } from 'solid-js';
|
|
2
|
+
export { ErrorBoundary, For, Index, Match, Show, Suspense, SuspenseList, Switch, createComponent, createRenderEffect as effect, getOwner, createMemo as memo, mergeProps, untrack } from 'solid-js';
|
|
31
3
|
|
|
32
|
-
const booleans = [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"autoplay",
|
|
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 Properties = /*#__PURE__*/ new Set([
|
|
60
|
-
"className",
|
|
61
|
-
"value",
|
|
62
|
-
"readOnly",
|
|
63
|
-
"formNoValidate",
|
|
64
|
-
"isMap",
|
|
65
|
-
"noModule",
|
|
66
|
-
"playsInline",
|
|
67
|
-
...booleans
|
|
68
|
-
]);
|
|
69
|
-
const ChildProperties = /*#__PURE__*/ new Set([
|
|
70
|
-
"innerHTML",
|
|
71
|
-
"textContent",
|
|
72
|
-
"innerText",
|
|
73
|
-
"children"
|
|
74
|
-
]);
|
|
75
|
-
const Aliases = /*#__PURE__*/ Object.assign(Object.create(null), {
|
|
4
|
+
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"];
|
|
5
|
+
const Properties = /*#__PURE__*/new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
|
|
6
|
+
const ChildProperties = /*#__PURE__*/new Set(["innerHTML", "textContent", "innerText", "children"]);
|
|
7
|
+
const Aliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
76
8
|
className: "class",
|
|
77
9
|
htmlFor: "for"
|
|
78
10
|
});
|
|
79
|
-
const PropAliases = /*#__PURE__*/
|
|
11
|
+
const PropAliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
80
12
|
class: "className",
|
|
81
13
|
formnovalidate: {
|
|
82
14
|
$: "formNoValidate",
|
|
@@ -103,396 +35,19 @@ const PropAliases = /*#__PURE__*/ Object.assign(Object.create(null), {
|
|
|
103
35
|
});
|
|
104
36
|
function getPropAlias(prop, tagName) {
|
|
105
37
|
const a = PropAliases[prop];
|
|
106
|
-
return typeof a === "object" ?
|
|
107
|
-
}
|
|
108
|
-
const DelegatedEvents = /*#__PURE__*/
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"focusout",
|
|
115
|
-
"input",
|
|
116
|
-
"keydown",
|
|
117
|
-
"keyup",
|
|
118
|
-
"mousedown",
|
|
119
|
-
"mousemove",
|
|
120
|
-
"mouseout",
|
|
121
|
-
"mouseover",
|
|
122
|
-
"mouseup",
|
|
123
|
-
"pointerdown",
|
|
124
|
-
"pointermove",
|
|
125
|
-
"pointerout",
|
|
126
|
-
"pointerover",
|
|
127
|
-
"pointerup",
|
|
128
|
-
"touchend",
|
|
129
|
-
"touchmove",
|
|
130
|
-
"touchstart"
|
|
131
|
-
]);
|
|
132
|
-
const SVGElements = /*#__PURE__*/ new Set([
|
|
133
|
-
"altGlyph",
|
|
134
|
-
"altGlyphDef",
|
|
135
|
-
"altGlyphItem",
|
|
136
|
-
"animate",
|
|
137
|
-
"animateColor",
|
|
138
|
-
"animateMotion",
|
|
139
|
-
"animateTransform",
|
|
140
|
-
"circle",
|
|
141
|
-
"clipPath",
|
|
142
|
-
"color-profile",
|
|
143
|
-
"cursor",
|
|
144
|
-
"defs",
|
|
145
|
-
"desc",
|
|
146
|
-
"ellipse",
|
|
147
|
-
"feBlend",
|
|
148
|
-
"feColorMatrix",
|
|
149
|
-
"feComponentTransfer",
|
|
150
|
-
"feComposite",
|
|
151
|
-
"feConvolveMatrix",
|
|
152
|
-
"feDiffuseLighting",
|
|
153
|
-
"feDisplacementMap",
|
|
154
|
-
"feDistantLight",
|
|
155
|
-
"feDropShadow",
|
|
156
|
-
"feFlood",
|
|
157
|
-
"feFuncA",
|
|
158
|
-
"feFuncB",
|
|
159
|
-
"feFuncG",
|
|
160
|
-
"feFuncR",
|
|
161
|
-
"feGaussianBlur",
|
|
162
|
-
"feImage",
|
|
163
|
-
"feMerge",
|
|
164
|
-
"feMergeNode",
|
|
165
|
-
"feMorphology",
|
|
166
|
-
"feOffset",
|
|
167
|
-
"fePointLight",
|
|
168
|
-
"feSpecularLighting",
|
|
169
|
-
"feSpotLight",
|
|
170
|
-
"feTile",
|
|
171
|
-
"feTurbulence",
|
|
172
|
-
"filter",
|
|
173
|
-
"font",
|
|
174
|
-
"font-face",
|
|
175
|
-
"font-face-format",
|
|
176
|
-
"font-face-name",
|
|
177
|
-
"font-face-src",
|
|
178
|
-
"font-face-uri",
|
|
179
|
-
"foreignObject",
|
|
180
|
-
"g",
|
|
181
|
-
"glyph",
|
|
182
|
-
"glyphRef",
|
|
183
|
-
"hkern",
|
|
184
|
-
"image",
|
|
185
|
-
"line",
|
|
186
|
-
"linearGradient",
|
|
187
|
-
"marker",
|
|
188
|
-
"mask",
|
|
189
|
-
"metadata",
|
|
190
|
-
"missing-glyph",
|
|
191
|
-
"mpath",
|
|
192
|
-
"path",
|
|
193
|
-
"pattern",
|
|
194
|
-
"polygon",
|
|
195
|
-
"polyline",
|
|
196
|
-
"radialGradient",
|
|
197
|
-
"rect",
|
|
198
|
-
"set",
|
|
199
|
-
"stop",
|
|
200
|
-
"svg",
|
|
201
|
-
"switch",
|
|
202
|
-
"symbol",
|
|
203
|
-
"text",
|
|
204
|
-
"textPath",
|
|
205
|
-
"tref",
|
|
206
|
-
"tspan",
|
|
207
|
-
"use",
|
|
208
|
-
"view",
|
|
209
|
-
"vkern"
|
|
210
|
-
]);
|
|
38
|
+
return typeof a === "object" ? a[tagName] ? a["$"] : undefined : a;
|
|
39
|
+
}
|
|
40
|
+
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"]);
|
|
41
|
+
const SVGElements = /*#__PURE__*/new Set([
|
|
42
|
+
"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",
|
|
43
|
+
"set", "stop",
|
|
44
|
+
"svg", "switch", "symbol", "text", "textPath",
|
|
45
|
+
"tref", "tspan", "use", "view", "vkern"]);
|
|
211
46
|
const SVGNamespace = {
|
|
212
47
|
xlink: "http://www.w3.org/1999/xlink",
|
|
213
48
|
xml: "http://www.w3.org/XML/1998/namespace"
|
|
214
49
|
};
|
|
215
|
-
const DOMElements = /*#__PURE__*/
|
|
216
|
-
"html",
|
|
217
|
-
"base",
|
|
218
|
-
"head",
|
|
219
|
-
"link",
|
|
220
|
-
"meta",
|
|
221
|
-
"style",
|
|
222
|
-
"title",
|
|
223
|
-
"body",
|
|
224
|
-
"address",
|
|
225
|
-
"article",
|
|
226
|
-
"aside",
|
|
227
|
-
"footer",
|
|
228
|
-
"header",
|
|
229
|
-
"main",
|
|
230
|
-
"nav",
|
|
231
|
-
"section",
|
|
232
|
-
"body",
|
|
233
|
-
"blockquote",
|
|
234
|
-
"dd",
|
|
235
|
-
"div",
|
|
236
|
-
"dl",
|
|
237
|
-
"dt",
|
|
238
|
-
"figcaption",
|
|
239
|
-
"figure",
|
|
240
|
-
"hr",
|
|
241
|
-
"li",
|
|
242
|
-
"ol",
|
|
243
|
-
"p",
|
|
244
|
-
"pre",
|
|
245
|
-
"ul",
|
|
246
|
-
"a",
|
|
247
|
-
"abbr",
|
|
248
|
-
"b",
|
|
249
|
-
"bdi",
|
|
250
|
-
"bdo",
|
|
251
|
-
"br",
|
|
252
|
-
"cite",
|
|
253
|
-
"code",
|
|
254
|
-
"data",
|
|
255
|
-
"dfn",
|
|
256
|
-
"em",
|
|
257
|
-
"i",
|
|
258
|
-
"kbd",
|
|
259
|
-
"mark",
|
|
260
|
-
"q",
|
|
261
|
-
"rp",
|
|
262
|
-
"rt",
|
|
263
|
-
"ruby",
|
|
264
|
-
"s",
|
|
265
|
-
"samp",
|
|
266
|
-
"small",
|
|
267
|
-
"span",
|
|
268
|
-
"strong",
|
|
269
|
-
"sub",
|
|
270
|
-
"sup",
|
|
271
|
-
"time",
|
|
272
|
-
"u",
|
|
273
|
-
"var",
|
|
274
|
-
"wbr",
|
|
275
|
-
"area",
|
|
276
|
-
"audio",
|
|
277
|
-
"img",
|
|
278
|
-
"map",
|
|
279
|
-
"track",
|
|
280
|
-
"video",
|
|
281
|
-
"embed",
|
|
282
|
-
"iframe",
|
|
283
|
-
"object",
|
|
284
|
-
"param",
|
|
285
|
-
"picture",
|
|
286
|
-
"portal",
|
|
287
|
-
"source",
|
|
288
|
-
"svg",
|
|
289
|
-
"math",
|
|
290
|
-
"canvas",
|
|
291
|
-
"noscript",
|
|
292
|
-
"script",
|
|
293
|
-
"del",
|
|
294
|
-
"ins",
|
|
295
|
-
"caption",
|
|
296
|
-
"col",
|
|
297
|
-
"colgroup",
|
|
298
|
-
"table",
|
|
299
|
-
"tbody",
|
|
300
|
-
"td",
|
|
301
|
-
"tfoot",
|
|
302
|
-
"th",
|
|
303
|
-
"thead",
|
|
304
|
-
"tr",
|
|
305
|
-
"button",
|
|
306
|
-
"datalist",
|
|
307
|
-
"fieldset",
|
|
308
|
-
"form",
|
|
309
|
-
"input",
|
|
310
|
-
"label",
|
|
311
|
-
"legend",
|
|
312
|
-
"meter",
|
|
313
|
-
"optgroup",
|
|
314
|
-
"option",
|
|
315
|
-
"output",
|
|
316
|
-
"progress",
|
|
317
|
-
"select",
|
|
318
|
-
"textarea",
|
|
319
|
-
"details",
|
|
320
|
-
"dialog",
|
|
321
|
-
"menu",
|
|
322
|
-
"summary",
|
|
323
|
-
"details",
|
|
324
|
-
"slot",
|
|
325
|
-
"template",
|
|
326
|
-
"acronym",
|
|
327
|
-
"applet",
|
|
328
|
-
"basefont",
|
|
329
|
-
"bgsound",
|
|
330
|
-
"big",
|
|
331
|
-
"blink",
|
|
332
|
-
"center",
|
|
333
|
-
"content",
|
|
334
|
-
"dir",
|
|
335
|
-
"font",
|
|
336
|
-
"frame",
|
|
337
|
-
"frameset",
|
|
338
|
-
"hgroup",
|
|
339
|
-
"image",
|
|
340
|
-
"keygen",
|
|
341
|
-
"marquee",
|
|
342
|
-
"menuitem",
|
|
343
|
-
"nobr",
|
|
344
|
-
"noembed",
|
|
345
|
-
"noframes",
|
|
346
|
-
"plaintext",
|
|
347
|
-
"rb",
|
|
348
|
-
"rtc",
|
|
349
|
-
"shadow",
|
|
350
|
-
"spacer",
|
|
351
|
-
"strike",
|
|
352
|
-
"tt",
|
|
353
|
-
"xmp",
|
|
354
|
-
"a",
|
|
355
|
-
"abbr",
|
|
356
|
-
"acronym",
|
|
357
|
-
"address",
|
|
358
|
-
"applet",
|
|
359
|
-
"area",
|
|
360
|
-
"article",
|
|
361
|
-
"aside",
|
|
362
|
-
"audio",
|
|
363
|
-
"b",
|
|
364
|
-
"base",
|
|
365
|
-
"basefont",
|
|
366
|
-
"bdi",
|
|
367
|
-
"bdo",
|
|
368
|
-
"bgsound",
|
|
369
|
-
"big",
|
|
370
|
-
"blink",
|
|
371
|
-
"blockquote",
|
|
372
|
-
"body",
|
|
373
|
-
"br",
|
|
374
|
-
"button",
|
|
375
|
-
"canvas",
|
|
376
|
-
"caption",
|
|
377
|
-
"center",
|
|
378
|
-
"cite",
|
|
379
|
-
"code",
|
|
380
|
-
"col",
|
|
381
|
-
"colgroup",
|
|
382
|
-
"content",
|
|
383
|
-
"data",
|
|
384
|
-
"datalist",
|
|
385
|
-
"dd",
|
|
386
|
-
"del",
|
|
387
|
-
"details",
|
|
388
|
-
"dfn",
|
|
389
|
-
"dialog",
|
|
390
|
-
"dir",
|
|
391
|
-
"div",
|
|
392
|
-
"dl",
|
|
393
|
-
"dt",
|
|
394
|
-
"em",
|
|
395
|
-
"embed",
|
|
396
|
-
"fieldset",
|
|
397
|
-
"figcaption",
|
|
398
|
-
"figure",
|
|
399
|
-
"font",
|
|
400
|
-
"footer",
|
|
401
|
-
"form",
|
|
402
|
-
"frame",
|
|
403
|
-
"frameset",
|
|
404
|
-
"head",
|
|
405
|
-
"header",
|
|
406
|
-
"hgroup",
|
|
407
|
-
"hr",
|
|
408
|
-
"html",
|
|
409
|
-
"i",
|
|
410
|
-
"iframe",
|
|
411
|
-
"image",
|
|
412
|
-
"img",
|
|
413
|
-
"input",
|
|
414
|
-
"ins",
|
|
415
|
-
"kbd",
|
|
416
|
-
"keygen",
|
|
417
|
-
"label",
|
|
418
|
-
"legend",
|
|
419
|
-
"li",
|
|
420
|
-
"link",
|
|
421
|
-
"main",
|
|
422
|
-
"map",
|
|
423
|
-
"mark",
|
|
424
|
-
"marquee",
|
|
425
|
-
"menu",
|
|
426
|
-
"menuitem",
|
|
427
|
-
"meta",
|
|
428
|
-
"meter",
|
|
429
|
-
"nav",
|
|
430
|
-
"nobr",
|
|
431
|
-
"noembed",
|
|
432
|
-
"noframes",
|
|
433
|
-
"noscript",
|
|
434
|
-
"object",
|
|
435
|
-
"ol",
|
|
436
|
-
"optgroup",
|
|
437
|
-
"option",
|
|
438
|
-
"output",
|
|
439
|
-
"p",
|
|
440
|
-
"param",
|
|
441
|
-
"picture",
|
|
442
|
-
"plaintext",
|
|
443
|
-
"portal",
|
|
444
|
-
"pre",
|
|
445
|
-
"progress",
|
|
446
|
-
"q",
|
|
447
|
-
"rb",
|
|
448
|
-
"rp",
|
|
449
|
-
"rt",
|
|
450
|
-
"rtc",
|
|
451
|
-
"ruby",
|
|
452
|
-
"s",
|
|
453
|
-
"samp",
|
|
454
|
-
"script",
|
|
455
|
-
"section",
|
|
456
|
-
"select",
|
|
457
|
-
"shadow",
|
|
458
|
-
"slot",
|
|
459
|
-
"small",
|
|
460
|
-
"source",
|
|
461
|
-
"spacer",
|
|
462
|
-
"span",
|
|
463
|
-
"strike",
|
|
464
|
-
"strong",
|
|
465
|
-
"style",
|
|
466
|
-
"sub",
|
|
467
|
-
"summary",
|
|
468
|
-
"sup",
|
|
469
|
-
"table",
|
|
470
|
-
"tbody",
|
|
471
|
-
"td",
|
|
472
|
-
"template",
|
|
473
|
-
"textarea",
|
|
474
|
-
"tfoot",
|
|
475
|
-
"th",
|
|
476
|
-
"thead",
|
|
477
|
-
"time",
|
|
478
|
-
"title",
|
|
479
|
-
"tr",
|
|
480
|
-
"track",
|
|
481
|
-
"tt",
|
|
482
|
-
"u",
|
|
483
|
-
"ul",
|
|
484
|
-
"var",
|
|
485
|
-
"video",
|
|
486
|
-
"wbr",
|
|
487
|
-
"xmp",
|
|
488
|
-
"input",
|
|
489
|
-
"h1",
|
|
490
|
-
"h2",
|
|
491
|
-
"h3",
|
|
492
|
-
"h4",
|
|
493
|
-
"h5",
|
|
494
|
-
"h6"
|
|
495
|
-
]);
|
|
50
|
+
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"]);
|
|
496
51
|
|
|
497
52
|
function reconcileArrays(parentNode, a, b) {
|
|
498
53
|
let bLength = b.length,
|
|
@@ -513,7 +68,7 @@ function reconcileArrays(parentNode, a, b) {
|
|
|
513
68
|
bEnd--;
|
|
514
69
|
}
|
|
515
70
|
if (aEnd === aStart) {
|
|
516
|
-
const node = bEnd < bLength ?
|
|
71
|
+
const node = bEnd < bLength ? bStart ? b[bStart - 1].nextSibling : b[bEnd - bStart] : after;
|
|
517
72
|
while (bStart < bEnd) parentNode.insertBefore(b[bStart++], node);
|
|
518
73
|
} else if (bEnd === bStart) {
|
|
519
74
|
while (aStart < aEnd) {
|
|
@@ -556,9 +111,7 @@ function render(code, element, init, options = {}) {
|
|
|
556
111
|
let disposer;
|
|
557
112
|
createRoot(dispose => {
|
|
558
113
|
disposer = dispose;
|
|
559
|
-
element === document
|
|
560
|
-
? code()
|
|
561
|
-
: insert(element, code(), element.firstChild ? null : undefined, init);
|
|
114
|
+
element === document ? code() : insert(element, code(), element.firstChild ? null : undefined, init);
|
|
562
115
|
}, options.owner);
|
|
563
116
|
return () => {
|
|
564
117
|
disposer();
|
|
@@ -572,9 +125,7 @@ function template(html, isImportNode, isSVG) {
|
|
|
572
125
|
t.innerHTML = html;
|
|
573
126
|
return isSVG ? t.content.firstChild.firstChild : t.content.firstChild;
|
|
574
127
|
};
|
|
575
|
-
const fn = isImportNode
|
|
576
|
-
? () => untrack(() => document.importNode(node || (node = create()), true))
|
|
577
|
-
: () => (node || (node = create())).cloneNode(true);
|
|
128
|
+
const fn = isImportNode ? () => untrack(() => document.importNode(node || (node = create()), true)) : () => (node || (node = create())).cloneNode(true);
|
|
578
129
|
fn.cloneNode = fn;
|
|
579
130
|
return fn;
|
|
580
131
|
}
|
|
@@ -600,13 +151,11 @@ function setProperty(node, name, value) {
|
|
|
600
151
|
}
|
|
601
152
|
function setAttribute(node, name, value) {
|
|
602
153
|
if (isHydrating(node)) return;
|
|
603
|
-
if (value == null) node.removeAttribute(name);
|
|
604
|
-
else node.setAttribute(name, value);
|
|
154
|
+
if (value == null) node.removeAttribute(name);else node.setAttribute(name, value);
|
|
605
155
|
}
|
|
606
156
|
function setAttributeNS(node, namespace, name, value) {
|
|
607
157
|
if (isHydrating(node)) return;
|
|
608
|
-
if (value == null) node.removeAttributeNS(namespace, name);
|
|
609
|
-
else node.setAttributeNS(namespace, name, value);
|
|
158
|
+
if (value == null) node.removeAttributeNS(namespace, name);else node.setAttributeNS(namespace, name, value);
|
|
610
159
|
}
|
|
611
160
|
function setBoolAttribute(node, name, value) {
|
|
612
161
|
if (isHydrating(node)) return;
|
|
@@ -614,8 +163,7 @@ function setBoolAttribute(node, name, value) {
|
|
|
614
163
|
}
|
|
615
164
|
function className(node, value) {
|
|
616
165
|
if (isHydrating(node)) return;
|
|
617
|
-
if (value == null) node.removeAttribute("class");
|
|
618
|
-
else node.className = value;
|
|
166
|
+
if (value == null) node.removeAttribute("class");else node.className = value;
|
|
619
167
|
}
|
|
620
168
|
function addEventListener(node, name, handler, delegate) {
|
|
621
169
|
if (delegate) {
|
|
@@ -625,7 +173,7 @@ function addEventListener(node, name, handler, delegate) {
|
|
|
625
173
|
} else node[`$$${name}`] = handler;
|
|
626
174
|
} else if (Array.isArray(handler)) {
|
|
627
175
|
const handlerFn = handler[0];
|
|
628
|
-
node.addEventListener(name,
|
|
176
|
+
node.addEventListener(name, handler[0] = e => handlerFn.call(node, handler[1], e));
|
|
629
177
|
} else node.addEventListener(name, handler, typeof handler !== "function" && handler);
|
|
630
178
|
}
|
|
631
179
|
function classList(node, value, prev = {}) {
|
|
@@ -650,7 +198,7 @@ function classList(node, value, prev = {}) {
|
|
|
650
198
|
function style(node, value, prev) {
|
|
651
199
|
if (!value) return prev ? setAttribute(node, "style") : value;
|
|
652
200
|
const nodeStyle = node.style;
|
|
653
|
-
if (typeof value === "string") return
|
|
201
|
+
if (typeof value === "string") return nodeStyle.cssText = value;
|
|
654
202
|
typeof prev === "string" && (nodeStyle.cssText = prev = undefined);
|
|
655
203
|
prev || (prev = {});
|
|
656
204
|
value || (value = {});
|
|
@@ -671,9 +219,7 @@ function style(node, value, prev) {
|
|
|
671
219
|
function spread(node, props = {}, isSVG, skipChildren) {
|
|
672
220
|
const prevProps = {};
|
|
673
221
|
if (!skipChildren) {
|
|
674
|
-
createRenderEffect(
|
|
675
|
-
() => (prevProps.children = insertExpression(node, props.children, prevProps.children))
|
|
676
|
-
);
|
|
222
|
+
createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
|
|
677
223
|
}
|
|
678
224
|
createRenderEffect(() => typeof props.ref === "function" && use(props.ref, node));
|
|
679
225
|
createRenderEffect(() => assign(node, props, isSVG, true, prevProps, true));
|
|
@@ -737,7 +283,7 @@ function getNextElement(template) {
|
|
|
737
283
|
let node,
|
|
738
284
|
key,
|
|
739
285
|
hydrating = isHydrating();
|
|
740
|
-
if (!hydrating || !(node = sharedConfig.registry.get(
|
|
286
|
+
if (!hydrating || !(node = sharedConfig.registry.get(key = getHydrationKey()))) {
|
|
741
287
|
return template();
|
|
742
288
|
}
|
|
743
289
|
if (sharedConfig.completed) sharedConfig.completed.add(node);
|
|
@@ -756,8 +302,7 @@ function getNextMarker(start) {
|
|
|
756
302
|
while (end) {
|
|
757
303
|
if (end.nodeType === 8) {
|
|
758
304
|
const v = end.nodeValue;
|
|
759
|
-
if (v === "$") count++;
|
|
760
|
-
else if (v === "/") {
|
|
305
|
+
if (v === "$") count++;else if (v === "/") {
|
|
761
306
|
if (count === 0) return [end, current];
|
|
762
307
|
count--;
|
|
763
308
|
}
|
|
@@ -771,7 +316,10 @@ function getNextMarker(start) {
|
|
|
771
316
|
function runHydrationEvents() {
|
|
772
317
|
if (sharedConfig.events && !sharedConfig.events.queued) {
|
|
773
318
|
queueMicrotask(() => {
|
|
774
|
-
const {
|
|
319
|
+
const {
|
|
320
|
+
completed,
|
|
321
|
+
events
|
|
322
|
+
} = sharedConfig;
|
|
775
323
|
if (!events) return;
|
|
776
324
|
events.queued = false;
|
|
777
325
|
while (events.length) {
|
|
@@ -796,8 +344,7 @@ function toPropertyName(name) {
|
|
|
796
344
|
}
|
|
797
345
|
function toggleClassKey(node, key, value) {
|
|
798
346
|
const classNames = key.trim().split(/\s+/);
|
|
799
|
-
for (let i = 0, nameLen = classNames.length; i < nameLen; i++)
|
|
800
|
-
node.classList.toggle(classNames[i], value);
|
|
347
|
+
for (let i = 0, nameLen = classNames.length; i < nameLen; i++) node.classList.toggle(classNames[i], value);
|
|
801
348
|
}
|
|
802
349
|
function assignProp(node, prop, value, prev, isSVG, skipRef, props) {
|
|
803
350
|
let isCE, isProp, isChildProp, propAlias, forceProp;
|
|
@@ -829,24 +376,15 @@ function assignProp(node, prop, value, prev, isSVG, skipRef, props) {
|
|
|
829
376
|
setAttribute(node, prop.slice(5), value);
|
|
830
377
|
} else if (prop.slice(0, 5) === "bool:") {
|
|
831
378
|
setBoolAttribute(node, prop.slice(5), value);
|
|
832
|
-
} else if (
|
|
833
|
-
(forceProp = prop.slice(0, 5) === "prop:") ||
|
|
834
|
-
(isChildProp = ChildProperties.has(prop)) ||
|
|
835
|
-
(!isSVG &&
|
|
836
|
-
((propAlias = getPropAlias(prop, node.tagName)) || (isProp = Properties.has(prop)))) ||
|
|
837
|
-
(isCE = node.nodeName.includes("-") || "is" in props)
|
|
838
|
-
) {
|
|
379
|
+
} else if ((forceProp = prop.slice(0, 5) === "prop:") || (isChildProp = ChildProperties.has(prop)) || !isSVG && ((propAlias = getPropAlias(prop, node.tagName)) || (isProp = Properties.has(prop))) || (isCE = node.nodeName.includes("-") || 'is' in props)) {
|
|
839
380
|
if (forceProp) {
|
|
840
381
|
prop = prop.slice(5);
|
|
841
382
|
isProp = true;
|
|
842
383
|
} else if (isHydrating(node)) return value;
|
|
843
|
-
if (prop === "class" || prop === "className") className(node, value);
|
|
844
|
-
else if (isCE && !isProp && !isChildProp) node[toPropertyName(prop)] = value;
|
|
845
|
-
else node[propAlias || prop] = value;
|
|
384
|
+
if (prop === "class" || prop === "className") className(node, value);else if (isCE && !isProp && !isChildProp) node[toPropertyName(prop)] = value;else node[propAlias || prop] = value;
|
|
846
385
|
} else {
|
|
847
386
|
const ns = isSVG && prop.indexOf(":") > -1 && SVGNamespace[prop.split(":")[0]];
|
|
848
|
-
if (ns) setAttributeNS(node, ns, prop, value);
|
|
849
|
-
else setAttribute(node, Aliases[prop] || prop, value);
|
|
387
|
+
if (ns) setAttributeNS(node, ns, prop, value);else setAttribute(node, Aliases[prop] || prop, value);
|
|
850
388
|
}
|
|
851
389
|
return value;
|
|
852
390
|
}
|
|
@@ -858,11 +396,10 @@ function eventHandler(e) {
|
|
|
858
396
|
const key = `$$${e.type}`;
|
|
859
397
|
const oriTarget = e.target;
|
|
860
398
|
const oriCurrentTarget = e.currentTarget;
|
|
861
|
-
const retarget = value =>
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
});
|
|
399
|
+
const retarget = value => Object.defineProperty(e, "target", {
|
|
400
|
+
configurable: true,
|
|
401
|
+
value
|
|
402
|
+
});
|
|
866
403
|
const handleNode = () => {
|
|
867
404
|
const handler = node[key];
|
|
868
405
|
if (handler && !node.disabled) {
|
|
@@ -870,11 +407,7 @@ function eventHandler(e) {
|
|
|
870
407
|
data !== undefined ? handler.call(node, data, e) : handler.call(node, e);
|
|
871
408
|
if (e.cancelBubble) return;
|
|
872
409
|
}
|
|
873
|
-
node.host &&
|
|
874
|
-
typeof node.host !== "string" &&
|
|
875
|
-
!node.host._$host &&
|
|
876
|
-
node.contains(e.target) &&
|
|
877
|
-
retarget(node.host);
|
|
410
|
+
node.host && typeof node.host !== "string" && !node.host._$host && node.contains(e.target) && retarget(node.host);
|
|
878
411
|
return true;
|
|
879
412
|
};
|
|
880
413
|
const walkUpTree = () => {
|
|
@@ -902,7 +435,8 @@ function eventHandler(e) {
|
|
|
902
435
|
break;
|
|
903
436
|
}
|
|
904
437
|
}
|
|
905
|
-
}
|
|
438
|
+
}
|
|
439
|
+
else walkUpTree();
|
|
906
440
|
retarget(oriTarget);
|
|
907
441
|
}
|
|
908
442
|
function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
@@ -912,8 +446,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
912
446
|
let cleaned = [];
|
|
913
447
|
for (let i = 0; i < current.length; i++) {
|
|
914
448
|
const node = current[i];
|
|
915
|
-
if (node.nodeType === 8 && node.data.slice(0, 2) === "!$") node.remove();
|
|
916
|
-
else cleaned.push(node);
|
|
449
|
+
if (node.nodeType === 8 && node.data.slice(0, 2) === "!$") node.remove();else cleaned.push(node);
|
|
917
450
|
}
|
|
918
451
|
current = cleaned;
|
|
919
452
|
}
|
|
@@ -921,7 +454,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
921
454
|
if (value === current) return current;
|
|
922
455
|
const t = typeof value,
|
|
923
456
|
multi = marker !== undefined;
|
|
924
|
-
parent =
|
|
457
|
+
parent = multi && current[0] && current[0].parentNode || parent;
|
|
925
458
|
if (t === "string" || t === "number") {
|
|
926
459
|
if (hydrating) return current;
|
|
927
460
|
if (t === "number") {
|
|
@@ -953,17 +486,17 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
953
486
|
const array = [];
|
|
954
487
|
const currentArray = current && Array.isArray(current);
|
|
955
488
|
if (normalizeIncomingArray(array, value, current, unwrapArray)) {
|
|
956
|
-
createRenderEffect(() =>
|
|
489
|
+
createRenderEffect(() => current = insertExpression(parent, array, current, marker, true));
|
|
957
490
|
return () => current;
|
|
958
491
|
}
|
|
959
492
|
if (hydrating) {
|
|
960
493
|
if (!array.length) return current;
|
|
961
|
-
if (marker === undefined) return
|
|
494
|
+
if (marker === undefined) return current = [...parent.childNodes];
|
|
962
495
|
let node = array[0];
|
|
963
496
|
if (node.parentNode !== parent) return current;
|
|
964
497
|
const nodes = [node];
|
|
965
498
|
while ((node = node.nextSibling) !== marker) nodes.push(node);
|
|
966
|
-
return
|
|
499
|
+
return current = nodes;
|
|
967
500
|
}
|
|
968
501
|
if (array.length === 0) {
|
|
969
502
|
current = cleanChildren(parent, current, marker);
|
|
@@ -978,15 +511,15 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
978
511
|
}
|
|
979
512
|
current = array;
|
|
980
513
|
} else if (value.nodeType) {
|
|
981
|
-
if (hydrating && value.parentNode) return
|
|
514
|
+
if (hydrating && value.parentNode) return current = multi ? [value] : value;
|
|
982
515
|
if (Array.isArray(current)) {
|
|
983
|
-
if (multi) return
|
|
516
|
+
if (multi) return current = cleanChildren(parent, current, marker, value);
|
|
984
517
|
cleanChildren(parent, current, null, value);
|
|
985
518
|
} else if (current == null || current === "" || !parent.firstChild) {
|
|
986
519
|
parent.appendChild(value);
|
|
987
520
|
} else parent.replaceChild(value, parent.firstChild);
|
|
988
521
|
current = value;
|
|
989
|
-
} else;
|
|
522
|
+
} else ;
|
|
990
523
|
return current;
|
|
991
524
|
}
|
|
992
525
|
function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
@@ -995,28 +528,21 @@ function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
|
995
528
|
let item = array[i],
|
|
996
529
|
prev = current && current[normalized.length],
|
|
997
530
|
t;
|
|
998
|
-
if (item == null || item === true || item === false);
|
|
999
|
-
else if ((t = typeof item) === "object" && item.nodeType) {
|
|
531
|
+
if (item == null || item === true || item === false) ; else if ((t = typeof item) === "object" && item.nodeType) {
|
|
1000
532
|
normalized.push(item);
|
|
1001
533
|
} else if (Array.isArray(item)) {
|
|
1002
534
|
dynamic = normalizeIncomingArray(normalized, item, prev) || dynamic;
|
|
1003
535
|
} else if (t === "function") {
|
|
1004
536
|
if (unwrap) {
|
|
1005
537
|
while (typeof item === "function") item = item();
|
|
1006
|
-
dynamic =
|
|
1007
|
-
normalizeIncomingArray(
|
|
1008
|
-
normalized,
|
|
1009
|
-
Array.isArray(item) ? item : [item],
|
|
1010
|
-
Array.isArray(prev) ? prev : [prev]
|
|
1011
|
-
) || dynamic;
|
|
538
|
+
dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item], Array.isArray(prev) ? prev : [prev]) || dynamic;
|
|
1012
539
|
} else {
|
|
1013
540
|
normalized.push(item);
|
|
1014
541
|
dynamic = true;
|
|
1015
542
|
}
|
|
1016
543
|
} else {
|
|
1017
544
|
const value = String(item);
|
|
1018
|
-
if (prev && prev.nodeType === 3 && prev.data === value) normalized.push(prev);
|
|
1019
|
-
else normalized.push(document.createTextNode(value));
|
|
545
|
+
if (prev && prev.nodeType === 3 && prev.data === value) normalized.push(prev);else normalized.push(document.createTextNode(value));
|
|
1020
546
|
}
|
|
1021
547
|
}
|
|
1022
548
|
return dynamic;
|
|
@@ -1025,7 +551,7 @@ function appendNodes(parent, array, marker = null) {
|
|
|
1025
551
|
for (let i = 0, len = array.length; i < len; i++) parent.insertBefore(array[i], marker);
|
|
1026
552
|
}
|
|
1027
553
|
function cleanChildren(parent, current, marker, replacement) {
|
|
1028
|
-
if (marker === undefined) return
|
|
554
|
+
if (marker === undefined) return parent.textContent = "";
|
|
1029
555
|
const node = replacement || document.createTextNode("");
|
|
1030
556
|
if (current.length) {
|
|
1031
557
|
let inserted = false;
|
|
@@ -1033,9 +559,7 @@ function cleanChildren(parent, current, marker, replacement) {
|
|
|
1033
559
|
const el = current[i];
|
|
1034
560
|
if (node !== el) {
|
|
1035
561
|
const isParent = el.parentNode === parent;
|
|
1036
|
-
if (!inserted && !i)
|
|
1037
|
-
isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);
|
|
1038
|
-
else isParent && el.remove();
|
|
562
|
+
if (!inserted && !i) isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);else isParent && el.remove();
|
|
1039
563
|
} else inserted = true;
|
|
1040
564
|
}
|
|
1041
565
|
} else parent.insertBefore(node, marker);
|
|
@@ -1046,8 +570,7 @@ function gatherHydratable(element, root) {
|
|
|
1046
570
|
for (let i = 0; i < templates.length; i++) {
|
|
1047
571
|
const node = templates[i];
|
|
1048
572
|
const key = node.getAttribute("data-hk");
|
|
1049
|
-
if ((!root || key.startsWith(root)) && !sharedConfig.registry.has(key))
|
|
1050
|
-
sharedConfig.registry.set(key, node);
|
|
573
|
+
if ((!root || key.startsWith(root)) && !sharedConfig.registry.has(key)) sharedConfig.registry.set(key, node);
|
|
1051
574
|
}
|
|
1052
575
|
}
|
|
1053
576
|
function getHydrationKey() {
|
|
@@ -1099,47 +622,42 @@ const hydrate = (...args) => {
|
|
|
1099
622
|
return hydrate$1(...args);
|
|
1100
623
|
};
|
|
1101
624
|
function Portal(props) {
|
|
1102
|
-
const {
|
|
625
|
+
const {
|
|
626
|
+
useShadow
|
|
627
|
+
} = props,
|
|
1103
628
|
marker = document.createTextNode(""),
|
|
1104
629
|
mount = () => props.mount || document.body,
|
|
1105
630
|
owner = getOwner();
|
|
1106
631
|
let content;
|
|
1107
632
|
let hydrating = !!sharedConfig.context;
|
|
1108
|
-
createEffect(
|
|
1109
|
-
()
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
insert(renderRoot, content);
|
|
1133
|
-
el.appendChild(container);
|
|
1134
|
-
props.ref && props.ref(container);
|
|
1135
|
-
onCleanup(() => el.removeChild(container));
|
|
1136
|
-
}
|
|
1137
|
-
},
|
|
1138
|
-
undefined,
|
|
1139
|
-
{
|
|
1140
|
-
render: !hydrating
|
|
633
|
+
createEffect(() => {
|
|
634
|
+
if (hydrating) getOwner().user = hydrating = false;
|
|
635
|
+
content || (content = runWithOwner(owner, () => createMemo(() => props.children)));
|
|
636
|
+
const el = mount();
|
|
637
|
+
if (el instanceof HTMLHeadElement) {
|
|
638
|
+
const [clean, setClean] = createSignal(false);
|
|
639
|
+
const cleanup = () => setClean(true);
|
|
640
|
+
createRoot(dispose => insert(el, () => !clean() ? content() : dispose(), null));
|
|
641
|
+
onCleanup(cleanup);
|
|
642
|
+
} else {
|
|
643
|
+
const container = createElement(props.isSVG ? "g" : "div", props.isSVG),
|
|
644
|
+
renderRoot = useShadow && container.attachShadow ? container.attachShadow({
|
|
645
|
+
mode: "open"
|
|
646
|
+
}) : container;
|
|
647
|
+
Object.defineProperty(container, "_$host", {
|
|
648
|
+
get() {
|
|
649
|
+
return marker.parentNode;
|
|
650
|
+
},
|
|
651
|
+
configurable: true
|
|
652
|
+
});
|
|
653
|
+
insert(renderRoot, content);
|
|
654
|
+
el.appendChild(container);
|
|
655
|
+
props.ref && props.ref(container);
|
|
656
|
+
onCleanup(() => el.removeChild(container));
|
|
1141
657
|
}
|
|
1142
|
-
|
|
658
|
+
}, undefined, {
|
|
659
|
+
render: !hydrating
|
|
660
|
+
});
|
|
1143
661
|
return marker;
|
|
1144
662
|
}
|
|
1145
663
|
function Dynamic(props) {
|
|
@@ -1159,62 +677,4 @@ function Dynamic(props) {
|
|
|
1159
677
|
});
|
|
1160
678
|
}
|
|
1161
679
|
|
|
1162
|
-
export {
|
|
1163
|
-
Aliases,
|
|
1164
|
-
voidFn as Assets,
|
|
1165
|
-
ChildProperties,
|
|
1166
|
-
DOMElements,
|
|
1167
|
-
DelegatedEvents,
|
|
1168
|
-
Dynamic,
|
|
1169
|
-
Hydration,
|
|
1170
|
-
voidFn as HydrationScript,
|
|
1171
|
-
NoHydration,
|
|
1172
|
-
Portal,
|
|
1173
|
-
Properties,
|
|
1174
|
-
RequestContext,
|
|
1175
|
-
SVGElements,
|
|
1176
|
-
SVGNamespace,
|
|
1177
|
-
addEventListener,
|
|
1178
|
-
assign,
|
|
1179
|
-
classList,
|
|
1180
|
-
className,
|
|
1181
|
-
clearDelegatedEvents,
|
|
1182
|
-
delegateEvents,
|
|
1183
|
-
dynamicProperty,
|
|
1184
|
-
escape,
|
|
1185
|
-
voidFn as generateHydrationScript,
|
|
1186
|
-
voidFn as getAssets,
|
|
1187
|
-
getHydrationKey,
|
|
1188
|
-
getNextElement,
|
|
1189
|
-
getNextMarker,
|
|
1190
|
-
getNextMatch,
|
|
1191
|
-
getPropAlias,
|
|
1192
|
-
voidFn as getRequestEvent,
|
|
1193
|
-
hydrate,
|
|
1194
|
-
innerHTML,
|
|
1195
|
-
insert,
|
|
1196
|
-
isDev,
|
|
1197
|
-
isServer,
|
|
1198
|
-
render,
|
|
1199
|
-
renderToStream,
|
|
1200
|
-
renderToString,
|
|
1201
|
-
renderToStringAsync,
|
|
1202
|
-
resolveSSRNode,
|
|
1203
|
-
runHydrationEvents,
|
|
1204
|
-
setAttribute,
|
|
1205
|
-
setAttributeNS,
|
|
1206
|
-
setBoolAttribute,
|
|
1207
|
-
setProperty,
|
|
1208
|
-
spread,
|
|
1209
|
-
ssr,
|
|
1210
|
-
ssrAttribute,
|
|
1211
|
-
ssrClassList,
|
|
1212
|
-
ssrElement,
|
|
1213
|
-
ssrHydrationKey,
|
|
1214
|
-
ssrSpread,
|
|
1215
|
-
ssrStyle,
|
|
1216
|
-
style,
|
|
1217
|
-
template,
|
|
1218
|
-
use,
|
|
1219
|
-
voidFn as useAssets
|
|
1220
|
-
};
|
|
680
|
+
export { Aliases, voidFn as Assets, ChildProperties, DOMElements, DelegatedEvents, Dynamic, Hydration, voidFn as HydrationScript, NoHydration, Portal, Properties, RequestContext, SVGElements, SVGNamespace, addEventListener, assign, classList, className, clearDelegatedEvents, delegateEvents, dynamicProperty, escape, voidFn as generateHydrationScript, voidFn as getAssets, getHydrationKey, getNextElement, getNextMarker, getNextMatch, getPropAlias, voidFn as getRequestEvent, hydrate, innerHTML, insert, isDev, isServer, render, renderToStream, renderToString, renderToStringAsync, resolveSSRNode, runHydrationEvents, setAttribute, setAttributeNS, setBoolAttribute, setProperty, spread, ssr, ssrAttribute, ssrClassList, ssrElement, ssrHydrationKey, ssrSpread, ssrStyle, style, template, use, voidFn as useAssets };
|