solid-js 1.9.6 → 1.9.8
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 +26 -15
- package/dist/dev.js +334 -564
- package/dist/server.cjs +3 -1
- package/dist/server.js +83 -178
- package/dist/solid.cjs +26 -15
- package/dist/solid.js +290 -493
- 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 +246 -234
- package/h/types/hyperscript.d.ts +11 -11
- package/html/dist/html.js +94 -219
- package/html/types/lit.d.ts +33 -52
- package/package.json +3 -3
- package/store/dist/dev.cjs +9 -5
- package/store/dist/dev.js +50 -126
- package/store/dist/server.js +8 -20
- package/store/dist/store.cjs +9 -5
- package/store/dist/store.js +47 -117
- 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 +245 -229
- 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.js +12 -28
- package/universal/dist/universal.js +12 -28
- package/universal/types/index.d.ts +2 -3
- package/universal/types/universal.d.ts +3 -2
- package/web/dist/dev.cjs +89 -6
- package/web/dist/dev.js +174 -646
- package/web/dist/server.cjs +90 -5
- package/web/dist/server.js +194 -647
- package/web/dist/web.cjs +89 -6
- package/web/dist/web.js +172 -634
- package/web/storage/dist/storage.js +3 -3
- package/web/types/core.d.ts +1 -9
- package/web/types/index.d.ts +11 -31
- package/web/types/server-mock.d.ts +32 -47
package/web/dist/web.cjs
CHANGED
|
@@ -2,8 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
var solidJs = require('solid-js');
|
|
4
4
|
|
|
5
|
-
const booleans = ["allowfullscreen", "async", "
|
|
6
|
-
|
|
5
|
+
const booleans = ["allowfullscreen", "async", "alpha",
|
|
6
|
+
"autofocus",
|
|
7
|
+
"autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden",
|
|
8
|
+
"indeterminate", "inert",
|
|
9
|
+
"ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless",
|
|
10
|
+
"selected", "adauctionheaders",
|
|
11
|
+
"browsingtopics",
|
|
12
|
+
"credentialless",
|
|
13
|
+
"defaultchecked", "defaultmuted", "defaultselected", "defer", "disablepictureinpicture", "disableremoteplayback", "preservespitch",
|
|
14
|
+
"shadowrootclonable", "shadowrootcustomelementregistry",
|
|
15
|
+
"shadowrootdelegatesfocus", "shadowrootserializable",
|
|
16
|
+
"sharedstoragewritable"
|
|
17
|
+
];
|
|
18
|
+
const Properties = /*#__PURE__*/new Set([
|
|
19
|
+
"className", "value",
|
|
20
|
+
"readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", "adAuctionHeaders",
|
|
21
|
+
"allowFullscreen", "browsingTopics",
|
|
22
|
+
"defaultChecked", "defaultMuted", "defaultSelected", "disablePictureInPicture", "disableRemotePlayback", "preservesPitch", "shadowRootClonable", "shadowRootCustomElementRegistry",
|
|
23
|
+
"shadowRootDelegatesFocus", "shadowRootSerializable",
|
|
24
|
+
"sharedStorageWritable",
|
|
25
|
+
...booleans]);
|
|
7
26
|
const ChildProperties = /*#__PURE__*/new Set(["innerHTML", "textContent", "innerText", "children"]);
|
|
8
27
|
const Aliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
9
28
|
className: "class",
|
|
@@ -36,6 +55,62 @@ const PropAliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
|
36
55
|
$: "readOnly",
|
|
37
56
|
INPUT: 1,
|
|
38
57
|
TEXTAREA: 1
|
|
58
|
+
},
|
|
59
|
+
adauctionheaders: {
|
|
60
|
+
$: "adAuctionHeaders",
|
|
61
|
+
IFRAME: 1
|
|
62
|
+
},
|
|
63
|
+
allowfullscreen: {
|
|
64
|
+
$: "allowFullscreen",
|
|
65
|
+
IFRAME: 1
|
|
66
|
+
},
|
|
67
|
+
browsingtopics: {
|
|
68
|
+
$: "browsingTopics",
|
|
69
|
+
IMG: 1
|
|
70
|
+
},
|
|
71
|
+
defaultchecked: {
|
|
72
|
+
$: "defaultChecked",
|
|
73
|
+
INPUT: 1
|
|
74
|
+
},
|
|
75
|
+
defaultmuted: {
|
|
76
|
+
$: "defaultMuted",
|
|
77
|
+
AUDIO: 1,
|
|
78
|
+
VIDEO: 1
|
|
79
|
+
},
|
|
80
|
+
defaultselected: {
|
|
81
|
+
$: "defaultSelected",
|
|
82
|
+
OPTION: 1
|
|
83
|
+
},
|
|
84
|
+
disablepictureinpicture: {
|
|
85
|
+
$: "disablePictureInPicture",
|
|
86
|
+
VIDEO: 1
|
|
87
|
+
},
|
|
88
|
+
disableremoteplayback: {
|
|
89
|
+
$: "disableRemotePlayback",
|
|
90
|
+
AUDIO: 1,
|
|
91
|
+
VIDEO: 1
|
|
92
|
+
},
|
|
93
|
+
preservespitch: {
|
|
94
|
+
$: "preservesPitch",
|
|
95
|
+
AUDIO: 1,
|
|
96
|
+
VIDEO: 1
|
|
97
|
+
},
|
|
98
|
+
shadowrootclonable: {
|
|
99
|
+
$: "shadowRootClonable",
|
|
100
|
+
TEMPLATE: 1
|
|
101
|
+
},
|
|
102
|
+
shadowrootdelegatesfocus: {
|
|
103
|
+
$: "shadowRootDelegatesFocus",
|
|
104
|
+
TEMPLATE: 1
|
|
105
|
+
},
|
|
106
|
+
shadowrootserializable: {
|
|
107
|
+
$: "shadowRootSerializable",
|
|
108
|
+
TEMPLATE: 1
|
|
109
|
+
},
|
|
110
|
+
sharedstoragewritable: {
|
|
111
|
+
$: "sharedStorageWritable",
|
|
112
|
+
IFRAME: 1,
|
|
113
|
+
IMG: 1
|
|
39
114
|
}
|
|
40
115
|
});
|
|
41
116
|
function getPropAlias(prop, tagName) {
|
|
@@ -52,7 +127,9 @@ const SVGNamespace = {
|
|
|
52
127
|
xlink: "http://www.w3.org/1999/xlink",
|
|
53
128
|
xml: "http://www.w3.org/XML/1998/namespace"
|
|
54
129
|
};
|
|
55
|
-
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"
|
|
130
|
+
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",
|
|
131
|
+
"webview",
|
|
132
|
+
"isindex", "listing", "multicol", "nextid", "noindex", "search"]);
|
|
56
133
|
|
|
57
134
|
const memo = fn => solidJs.createMemo(() => fn());
|
|
58
135
|
|
|
@@ -223,6 +300,9 @@ function style(node, value, prev) {
|
|
|
223
300
|
}
|
|
224
301
|
return prev;
|
|
225
302
|
}
|
|
303
|
+
function setStyleProperty(node, name, value) {
|
|
304
|
+
value != null ? node.style.setProperty(name, value) : node.style.removeProperty(name);
|
|
305
|
+
}
|
|
226
306
|
function spread(node, props = {}, isSVG, skipChildren) {
|
|
227
307
|
const prevProps = {};
|
|
228
308
|
if (!skipChildren) {
|
|
@@ -621,8 +701,10 @@ function ssrSpread(props, isSVG, skipChildren) {}
|
|
|
621
701
|
const isServer = false;
|
|
622
702
|
const isDev = false;
|
|
623
703
|
const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
|
|
624
|
-
function createElement(tagName, isSVG = false) {
|
|
625
|
-
return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName
|
|
704
|
+
function createElement(tagName, isSVG = false, is = undefined) {
|
|
705
|
+
return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName, {
|
|
706
|
+
is
|
|
707
|
+
});
|
|
626
708
|
}
|
|
627
709
|
const hydrate = (...args) => {
|
|
628
710
|
solidJs.enableHydration();
|
|
@@ -676,7 +758,7 @@ function createDynamic(component, props) {
|
|
|
676
758
|
return solidJs.untrack(() => component(props));
|
|
677
759
|
case "string":
|
|
678
760
|
const isSvg = SVGElements.has(component);
|
|
679
|
-
const el = solidJs.sharedConfig.context ? getNextElement() : createElement(component, isSvg);
|
|
761
|
+
const el = solidJs.sharedConfig.context ? getNextElement() : createElement(component, isSvg, props.is);
|
|
680
762
|
spread(el, props, isSvg);
|
|
681
763
|
return el;
|
|
682
764
|
}
|
|
@@ -786,6 +868,7 @@ exports.setAttribute = setAttribute;
|
|
|
786
868
|
exports.setAttributeNS = setAttributeNS;
|
|
787
869
|
exports.setBoolAttribute = setBoolAttribute;
|
|
788
870
|
exports.setProperty = setProperty;
|
|
871
|
+
exports.setStyleProperty = setStyleProperty;
|
|
789
872
|
exports.spread = spread;
|
|
790
873
|
exports.ssr = ssr;
|
|
791
874
|
exports.ssrAttribute = ssrAttribute;
|