solid-js 1.6.0-beta.2 → 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/h/jsx-runtime/types/jsx.d.ts +2 -2
- package/package.json +1 -1
- package/types/jsx.d.ts +2 -2
- package/web/dist/dev.cjs +14 -11
- package/web/dist/dev.js +14 -11
- package/web/dist/server.cjs +16 -14
- package/web/dist/server.js +16 -14
- package/web/dist/web.cjs +14 -11
- package/web/dist/web.js +14 -11
|
@@ -603,7 +603,7 @@ export namespace JSX {
|
|
|
603
603
|
|
|
604
604
|
interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
|
|
605
605
|
accessKey?: FunctionMaybe<string>;
|
|
606
|
-
class?: FunctionMaybe<string
|
|
606
|
+
class?: FunctionMaybe<string> | undefined;
|
|
607
607
|
contenteditable?: FunctionMaybe<boolean | "inherit">;
|
|
608
608
|
contextmenu?: FunctionMaybe<string>;
|
|
609
609
|
dir?: FunctionMaybe<HTMLDir>;
|
|
@@ -1090,7 +1090,7 @@ export namespace JSX {
|
|
|
1090
1090
|
tabindex?: FunctionMaybe<number | string>;
|
|
1091
1091
|
}
|
|
1092
1092
|
interface StylableSVGAttributes {
|
|
1093
|
-
class?: FunctionMaybe<string
|
|
1093
|
+
class?: FunctionMaybe<string> | undefined;
|
|
1094
1094
|
style?: FunctionMaybe<CSSProperties | string>;
|
|
1095
1095
|
}
|
|
1096
1096
|
interface TransformableSVGAttributes {
|
package/package.json
CHANGED
package/types/jsx.d.ts
CHANGED
|
@@ -611,7 +611,7 @@ export namespace JSX {
|
|
|
611
611
|
interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
|
|
612
612
|
// [key: ClassKeys]: boolean;
|
|
613
613
|
accessKey?: string;
|
|
614
|
-
class?: string;
|
|
614
|
+
class?: string | undefined;
|
|
615
615
|
contenteditable?: boolean | "inherit";
|
|
616
616
|
contextmenu?: string;
|
|
617
617
|
dir?: HTMLDir;
|
|
@@ -1098,7 +1098,7 @@ export namespace JSX {
|
|
|
1098
1098
|
tabindex?: number | string;
|
|
1099
1099
|
}
|
|
1100
1100
|
interface StylableSVGAttributes {
|
|
1101
|
-
class?: string;
|
|
1101
|
+
class?: string | undefined;
|
|
1102
1102
|
style?: CSSProperties | string;
|
|
1103
1103
|
}
|
|
1104
1104
|
interface TransformableSVGAttributes {
|
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,11 +638,19 @@ 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
|
-
solidJs.sharedConfig.context.noHydrate
|
|
651
|
-
|
|
644
|
+
if (!solidJs.sharedConfig.context.noHydrate) return props.children;
|
|
645
|
+
const context = solidJs.sharedConfig.context;
|
|
646
|
+
solidJs.sharedConfig.context = { ...context,
|
|
647
|
+
count: 0,
|
|
648
|
+
id: `${context.id}${context.count++}-`,
|
|
649
|
+
noHydrate: false
|
|
650
|
+
};
|
|
651
|
+
const res = props.children;
|
|
652
|
+
solidJs.sharedConfig.context = context;
|
|
653
|
+
return res;
|
|
652
654
|
}
|
|
653
655
|
function NoHydration(props) {
|
|
654
656
|
solidJs.sharedConfig.context.noHydrate = true;
|
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,11 +635,19 @@ 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
|
-
sharedConfig.context.noHydrate
|
|
648
|
-
|
|
641
|
+
if (!sharedConfig.context.noHydrate) return props.children;
|
|
642
|
+
const context = sharedConfig.context;
|
|
643
|
+
sharedConfig.context = { ...context,
|
|
644
|
+
count: 0,
|
|
645
|
+
id: `${context.id}${context.count++}-`,
|
|
646
|
+
noHydrate: false
|
|
647
|
+
};
|
|
648
|
+
const res = props.children;
|
|
649
|
+
sharedConfig.context = context;
|
|
650
|
+
return res;
|
|
649
651
|
}
|
|
650
652
|
function NoHydration(props) {
|
|
651
653
|
sharedConfig.context.noHydrate = true;
|
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);
|