Comparing version 1.6.0-beta.3 to 1.6.0-beta.4
{ | ||
"name": "solid-js", | ||
"description": "A declarative JavaScript library for building user interfaces.", | ||
"version": "1.6.0-beta.3", | ||
"version": "1.6.0-beta.4", | ||
"author": "Ryan Carniato", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -7,12 +7,14 @@ import { createRoot, createRenderEffect, sharedConfig, untrack, enableHydration, createSignal, onCleanup, splitProps, createMemo, $DEVCOMP } from 'solid-js'; | ||
const ChildProperties = /*#__PURE__*/new Set(["innerHTML", "textContent", "innerText", "children"]); | ||
const Aliases = Object.create(null); | ||
Aliases.className = "class"; | ||
Aliases.htmlFor = "for"; | ||
const PropAliases = Object.create(null); | ||
PropAliases.class = "className"; | ||
PropAliases.formnovalidate = "formNoValidate"; | ||
PropAliases.ismap = "isMap"; | ||
PropAliases.nomodule = "noModule"; | ||
PropAliases.playsinline = "playsInline"; | ||
PropAliases.readonly = "readOnly"; | ||
const Aliases = /*#__PURE__*/Object.assign(Object.create(null), { | ||
className: "class", | ||
htmlFor: "for" | ||
}); | ||
const PropAliases = /*#__PURE__*/Object.assign(Object.create(null), { | ||
class: "className", | ||
formnovalidate: "formNoValidate", | ||
ismap: "isMap", | ||
nomodule: "noModule", | ||
playsinline: "playsInline", | ||
readonly: "readOnly" | ||
}); | ||
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"]); | ||
@@ -559,3 +561,4 @@ const SVGElements = /*#__PURE__*/new Set([ | ||
return marker.parentNode; | ||
} | ||
}, | ||
configurable: true | ||
}); | ||
@@ -562,0 +565,0 @@ insert(renderRoot, renderPortal()); |
@@ -8,12 +8,6 @@ import { sharedConfig, splitProps } from 'solid-js'; | ||
const ChildProperties = /*#__PURE__*/new Set(["innerHTML", "textContent", "innerText", "children"]); | ||
const Aliases = Object.create(null); | ||
Aliases.className = "class"; | ||
Aliases.htmlFor = "for"; | ||
const PropAliases = Object.create(null); | ||
PropAliases.class = "className"; | ||
PropAliases.formnovalidate = "formNoValidate"; | ||
PropAliases.ismap = "isMap"; | ||
PropAliases.nomodule = "noModule"; | ||
PropAliases.playsinline = "playsInline"; | ||
PropAliases.readonly = "readOnly"; | ||
const Aliases = /*#__PURE__*/Object.assign(Object.create(null), { | ||
className: "class", | ||
htmlFor: "for" | ||
}); | ||
@@ -270,3 +264,3 @@ const { | ||
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)}`; | ||
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)}`; | ||
function renderToString(code, options = {}) { | ||
@@ -646,3 +640,3 @@ let scripts = ""; | ||
} = {}) { | ||
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])})))),e.init=(t,o)=>{e.r[t]=[new Promise(((e,t)=>o=e)),o]},e.set=(t,o,s)=>{(s=e.r[t])&&s[1](o),e.r[t]=[o]},e.unset=t=>{delete e.r[t]},e.load=t=>e.r[t];</script><!--xs-->`; | ||
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-->`; | ||
} | ||
@@ -649,0 +643,0 @@ function Hydration(props) { |
@@ -7,12 +7,14 @@ import { createRoot, createRenderEffect, sharedConfig, untrack, enableHydration, createSignal, onCleanup, splitProps, createMemo } from 'solid-js'; | ||
const ChildProperties = /*#__PURE__*/new Set(["innerHTML", "textContent", "innerText", "children"]); | ||
const Aliases = Object.create(null); | ||
Aliases.className = "class"; | ||
Aliases.htmlFor = "for"; | ||
const PropAliases = Object.create(null); | ||
PropAliases.class = "className"; | ||
PropAliases.formnovalidate = "formNoValidate"; | ||
PropAliases.ismap = "isMap"; | ||
PropAliases.nomodule = "noModule"; | ||
PropAliases.playsinline = "playsInline"; | ||
PropAliases.readonly = "readOnly"; | ||
const Aliases = /*#__PURE__*/Object.assign(Object.create(null), { | ||
className: "class", | ||
htmlFor: "for" | ||
}); | ||
const PropAliases = /*#__PURE__*/Object.assign(Object.create(null), { | ||
class: "className", | ||
formnovalidate: "formNoValidate", | ||
ismap: "isMap", | ||
nomodule: "noModule", | ||
playsinline: "playsInline", | ||
readonly: "readOnly" | ||
}); | ||
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"]); | ||
@@ -556,3 +558,4 @@ const SVGElements = /*#__PURE__*/new Set([ | ||
return marker.parentNode; | ||
} | ||
}, | ||
configurable: true | ||
}); | ||
@@ -559,0 +562,0 @@ insert(renderRoot, renderPortal()); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
774046