solid-js 1.6.0-beta.3 → 1.6.0-beta.4
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/package.json +1 -1
- package/web/dist/dev.cjs +14 -11
- package/web/dist/dev.js +14 -11
- package/web/dist/server.cjs +6 -12
- package/web/dist/server.js +6 -12
- package/web/dist/web.cjs +14 -11
- package/web/dist/web.js +14 -11
package/package.json
CHANGED
package/web/dist/dev.cjs
CHANGED
|
@@ -7,16 +7,18 @@ var solidJs = require('solid-js');
|
|
|
7
7
|
const booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
|
|
8
8
|
const Properties = /*#__PURE__*/new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
|
|
9
9
|
const ChildProperties = /*#__PURE__*/new Set(["innerHTML", "textContent", "innerText", "children"]);
|
|
10
|
-
const Aliases = Object.create(null)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
PropAliases
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
const Aliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
11
|
+
className: "class",
|
|
12
|
+
htmlFor: "for"
|
|
13
|
+
});
|
|
14
|
+
const PropAliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
15
|
+
class: "className",
|
|
16
|
+
formnovalidate: "formNoValidate",
|
|
17
|
+
ismap: "isMap",
|
|
18
|
+
nomodule: "noModule",
|
|
19
|
+
playsinline: "playsInline",
|
|
20
|
+
readonly: "readOnly"
|
|
21
|
+
});
|
|
20
22
|
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"]);
|
|
21
23
|
const SVGElements = /*#__PURE__*/new Set([
|
|
22
24
|
"altGlyph", "altGlyphDef", "altGlyphItem", "animate", "animateColor", "animateMotion", "animateTransform", "circle", "clipPath", "color-profile", "cursor", "defs", "desc", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "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",
|
|
@@ -558,7 +560,8 @@ function Portal(props) {
|
|
|
558
560
|
Object.defineProperty(container, "host", {
|
|
559
561
|
get() {
|
|
560
562
|
return marker.parentNode;
|
|
561
|
-
}
|
|
563
|
+
},
|
|
564
|
+
configurable: true
|
|
562
565
|
});
|
|
563
566
|
insert(renderRoot, renderPortal());
|
|
564
567
|
mount.appendChild(container);
|
package/web/dist/dev.js
CHANGED
|
@@ -4,16 +4,18 @@ export { ErrorBoundary, For, Index, Match, Show, Suspense, SuspenseList, Switch,
|
|
|
4
4
|
const booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
|
|
5
5
|
const Properties = /*#__PURE__*/new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
|
|
6
6
|
const ChildProperties = /*#__PURE__*/new Set(["innerHTML", "textContent", "innerText", "children"]);
|
|
7
|
-
const Aliases = Object.create(null)
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
PropAliases
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
const Aliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
8
|
+
className: "class",
|
|
9
|
+
htmlFor: "for"
|
|
10
|
+
});
|
|
11
|
+
const PropAliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
12
|
+
class: "className",
|
|
13
|
+
formnovalidate: "formNoValidate",
|
|
14
|
+
ismap: "isMap",
|
|
15
|
+
nomodule: "noModule",
|
|
16
|
+
playsinline: "playsInline",
|
|
17
|
+
readonly: "readOnly"
|
|
18
|
+
});
|
|
17
19
|
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"]);
|
|
18
20
|
const SVGElements = /*#__PURE__*/new Set([
|
|
19
21
|
"altGlyph", "altGlyphDef", "altGlyphItem", "animate", "animateColor", "animateMotion", "animateTransform", "circle", "clipPath", "color-profile", "cursor", "defs", "desc", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "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",
|
|
@@ -555,7 +557,8 @@ function Portal(props) {
|
|
|
555
557
|
Object.defineProperty(container, "host", {
|
|
556
558
|
get() {
|
|
557
559
|
return marker.parentNode;
|
|
558
|
-
}
|
|
560
|
+
},
|
|
561
|
+
configurable: true
|
|
559
562
|
});
|
|
560
563
|
insert(renderRoot, renderPortal());
|
|
561
564
|
mount.appendChild(container);
|
package/web/dist/server.cjs
CHANGED
|
@@ -8,16 +8,10 @@ const booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked"
|
|
|
8
8
|
const BooleanAttributes = /*#__PURE__*/new Set(booleans);
|
|
9
9
|
/*#__PURE__*/new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
|
|
10
10
|
const ChildProperties = /*#__PURE__*/new Set(["innerHTML", "textContent", "innerText", "children"]);
|
|
11
|
-
const Aliases = Object.create(null)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
PropAliases.class = "className";
|
|
16
|
-
PropAliases.formnovalidate = "formNoValidate";
|
|
17
|
-
PropAliases.ismap = "isMap";
|
|
18
|
-
PropAliases.nomodule = "noModule";
|
|
19
|
-
PropAliases.playsinline = "playsInline";
|
|
20
|
-
PropAliases.readonly = "readOnly";
|
|
11
|
+
const Aliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
12
|
+
className: "class",
|
|
13
|
+
htmlFor: "for"
|
|
14
|
+
});
|
|
21
15
|
|
|
22
16
|
const {
|
|
23
17
|
hasOwnProperty
|
|
@@ -269,7 +263,7 @@ function toRefParam(index) {
|
|
|
269
263
|
return ref;
|
|
270
264
|
}
|
|
271
265
|
|
|
272
|
-
const REPLACE_SCRIPT = `function $df(e,t,d,l){d=document.getElementById(e),(l=document.getElementById("pl-"+e))&&l.replaceWith(...d.childNodes),d.remove(),_$HY.set(e,t)}`;
|
|
266
|
+
const REPLACE_SCRIPT = `function $df(e,t,d,l){d=document.getElementById(e),(l=document.getElementById("pl-"+e))&&l.replaceWith(...d.childNodes),d.remove(),_$HY.set(e,t),_$HY.fe(e)}`;
|
|
273
267
|
function renderToString(code, options = {}) {
|
|
274
268
|
let scripts = "";
|
|
275
269
|
solidJs.sharedConfig.context = {
|
|
@@ -644,7 +638,7 @@ function generateHydrationScript({
|
|
|
644
638
|
eventNames = ["click", "input"],
|
|
645
639
|
nonce
|
|
646
640
|
} = {}) {
|
|
647
|
-
return `<script${nonce ? ` nonce="${nonce}"` : ""}>var e,t;e=window._$HY||(_$HY={events:[],completed:new WeakSet,r:{}}),t=e=>e&&e.hasAttribute&&(e.hasAttribute("data-hk")?e:t(e.host&&e.host instanceof Node?e.host:e.parentNode)),["${eventNames.join('","')}"].forEach((o=>document.addEventListener(o,(o=>{let s=o.composedPath&&o.composedPath()[0]||o.target,a=t(s);a&&!e.completed.has(a)&&e.events.push([a,o])}))))
|
|
641
|
+
return `<script${nonce ? ` nonce="${nonce}"` : ""}>var e,t;e=window._$HY||(_$HY={events:[],completed:new WeakSet,r:{},fe(){},init(e,t){_$HY.r[e]=[new Promise(((e,o)=>t=e)),t]},set(e,t,o){(o=_$HY.r[e])&&o[1](t),_$HY.r[e]=[t]},unset(e){delete _$HY.r[e]},load:e=>_$HY.r[e]}),t=e=>e&&e.hasAttribute&&(e.hasAttribute("data-hk")?e:t(e.host&&e.host instanceof Node?e.host:e.parentNode)),["${eventNames.join('", "')}"].forEach((o=>document.addEventListener(o,(o=>{let s=o.composedPath&&o.composedPath()[0]||o.target,a=t(s);a&&!e.completed.has(a)&&e.events.push([a,o])}))));</script><!--xs-->`;
|
|
648
642
|
}
|
|
649
643
|
function Hydration(props) {
|
|
650
644
|
if (!solidJs.sharedConfig.context.noHydrate) return props.children;
|
package/web/dist/server.js
CHANGED
|
@@ -5,16 +5,10 @@ const booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked"
|
|
|
5
5
|
const BooleanAttributes = /*#__PURE__*/new Set(booleans);
|
|
6
6
|
/*#__PURE__*/new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
|
|
7
7
|
const ChildProperties = /*#__PURE__*/new Set(["innerHTML", "textContent", "innerText", "children"]);
|
|
8
|
-
const Aliases = Object.create(null)
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
PropAliases.class = "className";
|
|
13
|
-
PropAliases.formnovalidate = "formNoValidate";
|
|
14
|
-
PropAliases.ismap = "isMap";
|
|
15
|
-
PropAliases.nomodule = "noModule";
|
|
16
|
-
PropAliases.playsinline = "playsInline";
|
|
17
|
-
PropAliases.readonly = "readOnly";
|
|
8
|
+
const Aliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
9
|
+
className: "class",
|
|
10
|
+
htmlFor: "for"
|
|
11
|
+
});
|
|
18
12
|
|
|
19
13
|
const {
|
|
20
14
|
hasOwnProperty
|
|
@@ -266,7 +260,7 @@ function toRefParam(index) {
|
|
|
266
260
|
return ref;
|
|
267
261
|
}
|
|
268
262
|
|
|
269
|
-
const REPLACE_SCRIPT = `function $df(e,t,d,l){d=document.getElementById(e),(l=document.getElementById("pl-"+e))&&l.replaceWith(...d.childNodes),d.remove(),_$HY.set(e,t)}`;
|
|
263
|
+
const REPLACE_SCRIPT = `function $df(e,t,d,l){d=document.getElementById(e),(l=document.getElementById("pl-"+e))&&l.replaceWith(...d.childNodes),d.remove(),_$HY.set(e,t),_$HY.fe(e)}`;
|
|
270
264
|
function renderToString(code, options = {}) {
|
|
271
265
|
let scripts = "";
|
|
272
266
|
sharedConfig.context = {
|
|
@@ -641,7 +635,7 @@ function generateHydrationScript({
|
|
|
641
635
|
eventNames = ["click", "input"],
|
|
642
636
|
nonce
|
|
643
637
|
} = {}) {
|
|
644
|
-
return `<script${nonce ? ` nonce="${nonce}"` : ""}>var e,t;e=window._$HY||(_$HY={events:[],completed:new WeakSet,r:{}}),t=e=>e&&e.hasAttribute&&(e.hasAttribute("data-hk")?e:t(e.host&&e.host instanceof Node?e.host:e.parentNode)),["${eventNames.join('","')}"].forEach((o=>document.addEventListener(o,(o=>{let s=o.composedPath&&o.composedPath()[0]||o.target,a=t(s);a&&!e.completed.has(a)&&e.events.push([a,o])}))))
|
|
638
|
+
return `<script${nonce ? ` nonce="${nonce}"` : ""}>var e,t;e=window._$HY||(_$HY={events:[],completed:new WeakSet,r:{},fe(){},init(e,t){_$HY.r[e]=[new Promise(((e,o)=>t=e)),t]},set(e,t,o){(o=_$HY.r[e])&&o[1](t),_$HY.r[e]=[t]},unset(e){delete _$HY.r[e]},load:e=>_$HY.r[e]}),t=e=>e&&e.hasAttribute&&(e.hasAttribute("data-hk")?e:t(e.host&&e.host instanceof Node?e.host:e.parentNode)),["${eventNames.join('", "')}"].forEach((o=>document.addEventListener(o,(o=>{let s=o.composedPath&&o.composedPath()[0]||o.target,a=t(s);a&&!e.completed.has(a)&&e.events.push([a,o])}))));</script><!--xs-->`;
|
|
645
639
|
}
|
|
646
640
|
function Hydration(props) {
|
|
647
641
|
if (!sharedConfig.context.noHydrate) return props.children;
|
package/web/dist/web.cjs
CHANGED
|
@@ -7,16 +7,18 @@ var solidJs = require('solid-js');
|
|
|
7
7
|
const booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
|
|
8
8
|
const Properties = /*#__PURE__*/new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
|
|
9
9
|
const ChildProperties = /*#__PURE__*/new Set(["innerHTML", "textContent", "innerText", "children"]);
|
|
10
|
-
const Aliases = Object.create(null)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
PropAliases
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
const Aliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
11
|
+
className: "class",
|
|
12
|
+
htmlFor: "for"
|
|
13
|
+
});
|
|
14
|
+
const PropAliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
15
|
+
class: "className",
|
|
16
|
+
formnovalidate: "formNoValidate",
|
|
17
|
+
ismap: "isMap",
|
|
18
|
+
nomodule: "noModule",
|
|
19
|
+
playsinline: "playsInline",
|
|
20
|
+
readonly: "readOnly"
|
|
21
|
+
});
|
|
20
22
|
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"]);
|
|
21
23
|
const SVGElements = /*#__PURE__*/new Set([
|
|
22
24
|
"altGlyph", "altGlyphDef", "altGlyphItem", "animate", "animateColor", "animateMotion", "animateTransform", "circle", "clipPath", "color-profile", "cursor", "defs", "desc", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "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",
|
|
@@ -555,7 +557,8 @@ function Portal(props) {
|
|
|
555
557
|
Object.defineProperty(container, "host", {
|
|
556
558
|
get() {
|
|
557
559
|
return marker.parentNode;
|
|
558
|
-
}
|
|
560
|
+
},
|
|
561
|
+
configurable: true
|
|
559
562
|
});
|
|
560
563
|
insert(renderRoot, renderPortal());
|
|
561
564
|
mount.appendChild(container);
|
package/web/dist/web.js
CHANGED
|
@@ -4,16 +4,18 @@ export { ErrorBoundary, For, Index, Match, Show, Suspense, SuspenseList, Switch,
|
|
|
4
4
|
const booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
|
|
5
5
|
const Properties = /*#__PURE__*/new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
|
|
6
6
|
const ChildProperties = /*#__PURE__*/new Set(["innerHTML", "textContent", "innerText", "children"]);
|
|
7
|
-
const Aliases = Object.create(null)
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
PropAliases
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
const Aliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
8
|
+
className: "class",
|
|
9
|
+
htmlFor: "for"
|
|
10
|
+
});
|
|
11
|
+
const PropAliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
12
|
+
class: "className",
|
|
13
|
+
formnovalidate: "formNoValidate",
|
|
14
|
+
ismap: "isMap",
|
|
15
|
+
nomodule: "noModule",
|
|
16
|
+
playsinline: "playsInline",
|
|
17
|
+
readonly: "readOnly"
|
|
18
|
+
});
|
|
17
19
|
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"]);
|
|
18
20
|
const SVGElements = /*#__PURE__*/new Set([
|
|
19
21
|
"altGlyph", "altGlyphDef", "altGlyphItem", "animate", "animateColor", "animateMotion", "animateTransform", "circle", "clipPath", "color-profile", "cursor", "defs", "desc", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "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",
|
|
@@ -552,7 +554,8 @@ function Portal(props) {
|
|
|
552
554
|
Object.defineProperty(container, "host", {
|
|
553
555
|
get() {
|
|
554
556
|
return marker.parentNode;
|
|
555
|
-
}
|
|
557
|
+
},
|
|
558
|
+
configurable: true
|
|
556
559
|
});
|
|
557
560
|
insert(renderRoot, renderPortal());
|
|
558
561
|
mount.appendChild(container);
|