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.
Files changed (51) hide show
  1. package/dist/dev.cjs +26 -15
  2. package/dist/dev.js +334 -564
  3. package/dist/server.cjs +3 -1
  4. package/dist/server.js +83 -178
  5. package/dist/solid.cjs +26 -15
  6. package/dist/solid.js +290 -493
  7. package/h/dist/h.js +9 -40
  8. package/h/jsx-runtime/dist/jsx.js +1 -1
  9. package/h/jsx-runtime/types/index.d.ts +8 -11
  10. package/h/jsx-runtime/types/jsx.d.ts +246 -234
  11. package/h/types/hyperscript.d.ts +11 -11
  12. package/html/dist/html.js +94 -219
  13. package/html/types/lit.d.ts +33 -52
  14. package/package.json +3 -3
  15. package/store/dist/dev.cjs +9 -5
  16. package/store/dist/dev.js +50 -126
  17. package/store/dist/server.js +8 -20
  18. package/store/dist/store.cjs +9 -5
  19. package/store/dist/store.js +47 -117
  20. package/store/types/index.d.ts +7 -21
  21. package/store/types/modifiers.d.ts +3 -6
  22. package/store/types/mutable.d.ts +2 -5
  23. package/store/types/server.d.ts +5 -25
  24. package/store/types/store.d.ts +61 -218
  25. package/types/index.d.ts +11 -78
  26. package/types/jsx.d.ts +245 -229
  27. package/types/reactive/array.d.ts +4 -12
  28. package/types/reactive/observable.d.ts +16 -22
  29. package/types/reactive/scheduler.d.ts +6 -9
  30. package/types/reactive/signal.d.ts +145 -236
  31. package/types/render/Suspense.d.ts +5 -5
  32. package/types/render/component.d.ts +37 -73
  33. package/types/render/flow.d.ts +31 -43
  34. package/types/render/hydration.d.ts +15 -15
  35. package/types/server/index.d.ts +2 -57
  36. package/types/server/reactive.d.ts +45 -76
  37. package/types/server/rendering.d.ts +98 -169
  38. package/universal/dist/dev.js +12 -28
  39. package/universal/dist/universal.js +12 -28
  40. package/universal/types/index.d.ts +2 -3
  41. package/universal/types/universal.d.ts +3 -2
  42. package/web/dist/dev.cjs +89 -6
  43. package/web/dist/dev.js +174 -646
  44. package/web/dist/server.cjs +90 -5
  45. package/web/dist/server.js +194 -647
  46. package/web/dist/web.cjs +89 -6
  47. package/web/dist/web.js +172 -634
  48. package/web/storage/dist/storage.js +3 -3
  49. package/web/types/core.d.ts +1 -9
  50. package/web/types/index.d.ts +11 -31
  51. package/web/types/server-mock.d.ts +32 -47
package/web/dist/dev.cjs CHANGED
@@ -2,8 +2,27 @@
2
2
 
3
3
  var solidJs = require('solid-js');
4
4
 
5
- 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"];
6
- const Properties = /*#__PURE__*/new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
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
 
@@ -227,6 +304,9 @@ function style(node, value, prev) {
227
304
  }
228
305
  return prev;
229
306
  }
307
+ function setStyleProperty(node, name, value) {
308
+ value != null ? node.style.setProperty(name, value) : node.style.removeProperty(name);
309
+ }
230
310
  function spread(node, props = {}, isSVG, skipChildren) {
231
311
  const prevProps = {};
232
312
  if (!skipChildren) {
@@ -629,8 +709,10 @@ function ssrSpread(props, isSVG, skipChildren) {}
629
709
  const isServer = false;
630
710
  const isDev = true;
631
711
  const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
632
- function createElement(tagName, isSVG = false) {
633
- return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName);
712
+ function createElement(tagName, isSVG = false, is = undefined) {
713
+ return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName, {
714
+ is
715
+ });
634
716
  }
635
717
  const hydrate = (...args) => {
636
718
  solidJs.enableHydration();
@@ -687,7 +769,7 @@ function createDynamic(component, props) {
687
769
  return solidJs.untrack(() => component(props));
688
770
  case "string":
689
771
  const isSvg = SVGElements.has(component);
690
- const el = solidJs.sharedConfig.context ? getNextElement() : createElement(component, isSvg);
772
+ const el = solidJs.sharedConfig.context ? getNextElement() : createElement(component, isSvg, props.is);
691
773
  spread(el, props, isSvg);
692
774
  return el;
693
775
  }
@@ -797,6 +879,7 @@ exports.setAttribute = setAttribute;
797
879
  exports.setAttributeNS = setAttributeNS;
798
880
  exports.setBoolAttribute = setBoolAttribute;
799
881
  exports.setProperty = setProperty;
882
+ exports.setStyleProperty = setStyleProperty;
800
883
  exports.spread = spread;
801
884
  exports.ssr = ssr;
802
885
  exports.ssrAttribute = ssrAttribute;