dev.cjs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. var solidJs = require('solid-js');
  4. const booleans = ["allowfullscreen", "allowpaymentrequest", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "ismap", "itemscope", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected", "truespeed"];
  5. const Properties = new Set(["className", "indeterminate", "value", ...booleans]);
  6. const ChildProperties = new Set(["innerHTML", "textContent", "innerText", "children"]);
  7. const Aliases = {
  8. className: "class",
  9. htmlFor: "for"
  10. };
  11. const DelegatedEvents = new Set(["beforeinput", "click", "dblclick", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
  12. const SVGElements = new Set([
  13. "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",
  14. "set", "stop",
  15. "svg", "switch", "symbol", "text", "textPath",
  16. "tref", "tspan", "use", "view", "vkern"]);
  17. const SVGNamespace = {
  18. xlink: "http://www.w3.org/1999/xlink",
  19. xml: "http://www.w3.org/XML/1998/namespace"
  20. };
  21. function memo(fn, equals) {
  22. return solidJs.createMemo(fn, undefined, !equals ? {
  23. equals
  24. } : undefined);
  25. }
  26. function reconcileArrays(parentNode, a, b) {
  27. let bLength = b.length,
  28. aEnd = a.length,
  29. bEnd = bLength,
  30. aStart = 0,
  31. bStart = 0,
  32. after = a[aEnd - 1].nextSibling,
  33. map = null;
  34. while (aStart < aEnd || bStart < bEnd) {
  35. if (aEnd === aStart) {
  36. const node = bEnd < bLength ? bStart ? b[bStart - 1].nextSibling : b[bEnd - bStart] : after;
  37. while (bStart < bEnd) parentNode.insertBefore(b[bStart++], node);
  38. } else if (bEnd === bStart) {
  39. while (aStart < aEnd) {
  40. if (!map || !map.has(a[aStart])) parentNode.removeChild(a[aStart]);
  41. aStart++;
  42. }
  43. } else if (a[aStart] === b[bStart]) {
  44. aStart++;
  45. bStart++;
  46. } else if (a[aEnd - 1] === b[bEnd - 1]) {
  47. aEnd--;
  48. bEnd--;
  49. } else if (a[aStart] === b[bEnd - 1] && b[bStart] === a[aEnd - 1]) {
  50. const node = a[--aEnd].nextSibling;
  51. parentNode.insertBefore(b[bStart++], a[aStart++].nextSibling);
  52. parentNode.insertBefore(b[--bEnd], node);
  53. a[aEnd] = b[bEnd];
  54. } else {
  55. if (!map) {
  56. map = new Map();
  57. let i = bStart;
  58. while (i < bEnd) map.set(b[i], i++);
  59. }
  60. const index = map.get(a[aStart]);
  61. if (index != null) {
  62. if (bStart < index && index < bEnd) {
  63. let i = aStart,
  64. sequence = 1,
  65. t;
  66. while (++i < aEnd && i < bEnd) {
  67. if ((t = map.get(a[i])) == null || t !== index + sequence) break;
  68. sequence++;
  69. }
  70. if (sequence > index - bStart) {
  71. const node = a[aStart];
  72. while (bStart < index) parentNode.insertBefore(b[bStart++], node);
  73. } else parentNode.replaceChild(b[bStart++], a[aStart++]);
  74. } else aStart++;
  75. } else parentNode.removeChild(a[aStart++]);
  76. }
  77. }
  78. }
  79. const $$EVENTS = Symbol("delegated-events");
  80. function render(code, element, init) {
  81. let disposer;
  82. solidJs.createRoot(dispose => {
  83. disposer = dispose;
  84. insert(element, code(), element.firstChild ? null : undefined, init);
  85. });
  86. return () => {
  87. disposer();
  88. element.textContent = "";
  89. };
  90. }
  91. function template(html, check, isSVG) {
  92. const t = document.createElement("template");
  93. t.innerHTML = html;
  94. if (check && t.innerHTML.split("<").length - 1 !== check) throw `The browser resolved template HTML does not match JSX input:\n${t.innerHTML}\n\n${html}. Is your HTML properly formed?`;
  95. let node = t.content.firstChild;
  96. if (isSVG) node = node.firstChild;
  97. return node;
  98. }
  99. function delegateEvents(eventNames) {
  100. const e = document[$$EVENTS] || (document[$$EVENTS] = new Set());
  101. for (let i = 0, l = eventNames.length; i < l; i++) {
  102. const name = eventNames[i];
  103. if (!e.has(name)) {
  104. e.add(name);
  105. document.addEventListener(name, eventHandler);
  106. }
  107. }
  108. }
  109. function clearDelegatedEvents() {
  110. if (document[$$EVENTS]) {
  111. for (let name of document[$$EVENTS].keys()) document.removeEventListener(name, eventHandler);
  112. delete document[$$EVENTS];
  113. }
  114. }
  115. function setAttribute(node, name, value) {
  116. if (value == null) node.removeAttribute(name);else node.setAttribute(name, value);
  117. }
  118. function setAttributeNS(node, namespace, name, value) {
  119. if (value == null) node.removeAttributeNS(namespace, name);else node.setAttributeNS(namespace, name, value);
  120. }
  121. function addEventListener(node, name, handler, delegate) {
  122. if (delegate) {
  123. if (Array.isArray(handler)) {
  124. node[`$$${name}`] = handler[0];
  125. node[`$$${name}Data`] = handler[1];
  126. } else node[`$$${name}`] = handler;
  127. } else if (Array.isArray(handler)) {
  128. node.addEventListener(name, e => handler[0](handler[1], e));
  129. } else node.addEventListener(name, handler);
  130. }
  131. function classList(node, value, prev = {}) {
  132. const classKeys = Object.keys(value),
  133. prevKeys = Object.keys(prev);
  134. let i, len;
  135. for (i = 0, len = prevKeys.length; i < len; i++) {
  136. const key = prevKeys[i];
  137. if (!key || key === "undefined" || key in value) continue;
  138. toggleClassKey(node, key, false);
  139. delete prev[key];
  140. }
  141. for (i = 0, len = classKeys.length; i < len; i++) {
  142. const key = classKeys[i],
  143. classValue = !!value[key];
  144. if (!key || key === "undefined" || prev[key] === classValue) continue;
  145. toggleClassKey(node, key, classValue);
  146. prev[key] = classValue;
  147. }
  148. return prev;
  149. }
  150. function style(node, value, prev = {}) {
  151. const nodeStyle = node.style;
  152. if (typeof value === "string") return nodeStyle.cssText = value;
  153. typeof prev === "string" && (prev = {});
  154. let v, s;
  155. for (s in prev) {
  156. value[s] == null && nodeStyle.removeProperty(s);
  157. delete prev[s];
  158. }
  159. for (s in value) {
  160. v = value[s];
  161. if (v !== prev[s]) {
  162. nodeStyle.setProperty(s, v);
  163. prev[s] = v;
  164. }
  165. }
  166. return prev;
  167. }
  168. function spread(node, accessor, isSVG, skipChildren) {
  169. if (typeof accessor === "function") {
  170. solidJs.createRenderEffect(current => spreadExpression(node, accessor(), current, isSVG, skipChildren));
  171. } else spreadExpression(node, accessor, undefined, isSVG, skipChildren);
  172. }
  173. function dynamicProperty(props, key) {
  174. const src = props[key];
  175. Object.defineProperty(props, key, {
  176. get() {
  177. return src();
  178. },
  179. enumerable: true
  180. });
  181. return props;
  182. }
  183. function insert(parent, accessor, marker, initial) {
  184. if (marker !== undefined && !initial) initial = [];
  185. if (typeof accessor !== "function") return insertExpression(parent, accessor, initial, marker);
  186. solidJs.createRenderEffect(current => insertExpression(parent, accessor(), current, marker), initial);
  187. }
  188. function assign(node, props, isSVG, skipChildren, prevProps = {}) {
  189. let isCE, isProp, isChildProp;
  190. for (const prop in props) {
  191. if (prop === "children") {
  192. if (!skipChildren) insertExpression(node, props.children);
  193. continue;
  194. }
  195. const value = props[prop];
  196. if (value === prevProps[prop]) continue;
  197. if (prop === "style") {
  198. style(node, value, prevProps[prop]);
  199. } else if (prop === "class" && !isSVG) {
  200. node.className = value;
  201. } else if (prop === "classList") {
  202. classList(node, value, prevProps[prop]);
  203. } else if (prop === "ref") {
  204. value(node);
  205. } else if (prop.slice(0, 3) === "on:") {
  206. node.addEventListener(prop.slice(3), value);
  207. } else if (prop.slice(0, 10) === "oncapture:") {
  208. node.addEventListener(prop.slice(10), value, true);
  209. } else if (prop.slice(0, 2) === "on") {
  210. const name = prop.slice(2).toLowerCase();
  211. const delegate = DelegatedEvents.has(name);
  212. addEventListener(node, name, value, delegate);
  213. delegate && delegateEvents([name]);
  214. } else if ((isChildProp = ChildProperties.has(prop)) || !isSVG && (isProp = Properties.has(prop)) || (isCE = node.nodeName.includes("-"))) {
  215. if (isCE && !isProp && !isChildProp) node[toPropertyName(prop)] = value;else node[prop] = value;
  216. } else {
  217. const ns = isSVG && prop.indexOf(":") > -1 && SVGNamespace[prop.split(":")[0]];
  218. if (ns) setAttributeNS(node, ns, prop, value);else setAttribute(node, Aliases[prop] || prop, value);
  219. }
  220. prevProps[prop] = value;
  221. }
  222. }
  223. function hydrate(code, element) {
  224. solidJs.sharedConfig.resources = globalThis._$HYDRATION.resources;
  225. solidJs.sharedConfig.completed = globalThis._$HYDRATION.completed;
  226. solidJs.sharedConfig.events = globalThis._$HYDRATION.events;
  227. solidJs.sharedConfig.context = {
  228. id: "",
  229. count: 0,
  230. loadResource: globalThis._$HYDRATION.loadResource
  231. };
  232. solidJs.sharedConfig.registry = new Map();
  233. gatherHydratable(element);
  234. const dispose = render(code, element, [...element.childNodes]);
  235. solidJs.sharedConfig.context = null;
  236. return dispose;
  237. }
  238. function gatherHydratable(element) {
  239. const templates = element.querySelectorAll(`*[data-hk]`);
  240. for (let i = 0; i < templates.length; i++) {
  241. const node = templates[i];
  242. solidJs.sharedConfig.registry.set(node.getAttribute("data-hk"), node);
  243. }
  244. }
  245. function getNextElement(template) {
  246. let node, key;
  247. if (!solidJs.sharedConfig.context || !(node = solidJs.sharedConfig.registry.get(key = getHydrationKey()))) {
  248. return template.cloneNode(true);
  249. }
  250. if (solidJs.sharedConfig.completed) solidJs.sharedConfig.completed.add(node);
  251. solidJs.sharedConfig.registry.delete(key);
  252. return node;
  253. }
  254. function getNextMarker(start) {
  255. let end = start,
  256. count = 0,
  257. current = [];
  258. if (solidJs.sharedConfig.context) {
  259. while (end) {
  260. if (end.nodeType === 8) {
  261. const v = end.nodeValue;
  262. if (v === "#") count++;else if (v === "/") {
  263. if (count === 0) return [end, current];
  264. count--;
  265. }
  266. }
  267. current.push(end);
  268. end = end.nextSibling;
  269. }
  270. }
  271. return [end, current];
  272. }
  273. function runHydrationEvents() {
  274. if (solidJs.sharedConfig.events && !solidJs.sharedConfig.events.queued) {
  275. queueMicrotask(() => {
  276. const {
  277. completed,
  278. events
  279. } = solidJs.sharedConfig;
  280. events.queued = false;
  281. while (events.length) {
  282. const [el, e] = events[0];
  283. if (!completed.has(el)) return;
  284. eventHandler(e);
  285. events.shift();
  286. }
  287. });
  288. solidJs.sharedConfig.events.queued = true;
  289. }
  290. }
  291. function toPropertyName(name) {
  292. return name.toLowerCase().replace(/-([a-z])/g, (_, w) => w.toUpperCase());
  293. }
  294. function toggleClassKey(node, key, value) {
  295. const classNames = key.split(/\s+/);
  296. for (let i = 0, nameLen = classNames.length; i < nameLen; i++) node.classList.toggle(classNames[i], value);
  297. }
  298. function eventHandler(e) {
  299. const key = `$$${e.type}`;
  300. let node = e.composedPath && e.composedPath()[0] || e.target;
  301. if (e.target !== node) {
  302. Object.defineProperty(e, "target", {
  303. configurable: true,
  304. value: node
  305. });
  306. }
  307. Object.defineProperty(e, "currentTarget", {
  308. configurable: true,
  309. get() {
  310. return node;
  311. }
  312. });
  313. while (node !== null) {
  314. const handler = node[key];
  315. if (handler) {
  316. const data = node[`${key}Data`];
  317. data !== undefined ? handler(data, e) : handler(e);
  318. if (e.cancelBubble) return;
  319. }
  320. node = node.host && node.host !== node && node.host instanceof Node ? node.host : node.parentNode;
  321. }
  322. }
  323. function spreadExpression(node, props, prevProps = {}, isSVG, skipChildren) {
  324. if (!skipChildren && "children" in props) {
  325. solidJs.createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
  326. }
  327. solidJs.createRenderEffect(() => assign(node, props, isSVG, true, prevProps));
  328. return prevProps;
  329. }
  330. function insertExpression(parent, value, current, marker, unwrapArray) {
  331. while (typeof current === "function") current = current();
  332. if (value === current) return current;
  333. const t = typeof value,
  334. multi = marker !== undefined;
  335. parent = multi && current[0] && current[0].parentNode || parent;
  336. if (t === "string" || t === "number") {
  337. if (t === "number") value = value.toString();
  338. if (multi) {
  339. let node = current[0];
  340. if (node && node.nodeType === 3) {
  341. node.data = value;
  342. } else node = document.createTextNode(value);
  343. current = cleanChildren(parent, current, marker, node);
  344. } else {
  345. if (current !== "" && typeof current === "string") {
  346. current = parent.firstChild.data = value;
  347. } else current = parent.textContent = value;
  348. }
  349. } else if (value == null || t === "boolean") {
  350. if (solidJs.sharedConfig.context) return current;
  351. current = cleanChildren(parent, current, marker);
  352. } else if (t === "function") {
  353. solidJs.createRenderEffect(() => {
  354. let v = value();
  355. while (typeof v === "function") v = v();
  356. current = insertExpression(parent, v, current, marker);
  357. });
  358. return () => current;
  359. } else if (Array.isArray(value)) {
  360. const array = [];
  361. if (normalizeIncomingArray(array, value, unwrapArray)) {
  362. solidJs.createRenderEffect(() => current = insertExpression(parent, array, current, marker, true));
  363. return () => current;
  364. }
  365. if (solidJs.sharedConfig.context && current.length) return current;
  366. if (array.length === 0) {
  367. current = cleanChildren(parent, current, marker);
  368. if (multi) return current;
  369. } else {
  370. if (Array.isArray(current)) {
  371. if (current.length === 0) {
  372. appendNodes(parent, array, marker);
  373. } else reconcileArrays(parent, current, array);
  374. } else if (current == null || current === "") {
  375. appendNodes(parent, array);
  376. } else {
  377. reconcileArrays(parent, multi && current || [parent.firstChild], array);
  378. }
  379. }
  380. current = array;
  381. } else if (value instanceof Node) {
  382. if (Array.isArray(current)) {
  383. if (multi) return current = cleanChildren(parent, current, marker, value);
  384. cleanChildren(parent, current, null, value);
  385. } else if (current == null || current === "" || !parent.firstChild) {
  386. parent.appendChild(value);
  387. } else parent.replaceChild(value, parent.firstChild);
  388. current = value;
  389. } else console.warn(`Unrecognized value. Skipped inserting`, value);
  390. return current;
  391. }
  392. function normalizeIncomingArray(normalized, array, unwrap) {
  393. let dynamic = false;
  394. for (let i = 0, len = array.length; i < len; i++) {
  395. let item = array[i],
  396. t;
  397. if (item instanceof Node) {
  398. normalized.push(item);
  399. } else if (item == null || item === true || item === false) ; else if (Array.isArray(item)) {
  400. dynamic = normalizeIncomingArray(normalized, item) || dynamic;
  401. } else if ((t = typeof item) === "string") {
  402. normalized.push(document.createTextNode(item));
  403. } else if (t === "function") {
  404. if (unwrap) {
  405. while (typeof item === "function") item = item();
  406. dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item]) || dynamic;
  407. } else {
  408. normalized.push(item);
  409. dynamic = true;
  410. }
  411. } else normalized.push(document.createTextNode(item.toString()));
  412. }
  413. return dynamic;
  414. }
  415. function appendNodes(parent, array, marker) {
  416. for (let i = 0, len = array.length; i < len; i++) parent.insertBefore(array[i], marker);
  417. }
  418. function cleanChildren(parent, current, marker, replacement) {
  419. if (marker === undefined) return parent.textContent = "";
  420. const node = replacement || document.createTextNode("");
  421. if (current.length) {
  422. let inserted = false;
  423. for (let i = current.length - 1; i >= 0; i--) {
  424. const el = current[i];
  425. if (node !== el) {
  426. const isParent = el.parentNode === parent;
  427. if (!inserted && !i) isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);else isParent && parent.removeChild(el);
  428. } else inserted = true;
  429. }
  430. } else parent.insertBefore(node, marker);
  431. return [node];
  432. }
  433. function getHydrationKey() {
  434. const hydrate = solidJs.sharedConfig.context;
  435. return `${hydrate.id}${hydrate.count++}`;
  436. }
  437. function renderToString(fn, options) {}
  438. function renderToStringAsync(fn, options) {}
  439. function renderToNodeStream(fn, options) {}
  440. function renderToWebStream(fn, options) {}
  441. function ssr(template, ...nodes) {}
  442. function resolveSSRNode(node) {}
  443. function ssrClassList(value) {}
  444. function ssrStyle(value) {}
  445. function ssrSpread(accessor) {}
  446. function ssrBoolean(key, value) {}
  447. function escape(html) {}
  448. const isServer = false;
  449. const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
  450. function createElement(tagName, isSVG = false) {
  451. return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName);
  452. }
  453. function Portal(props) {
  454. const {
  455. useShadow
  456. } = props,
  457. marker = document.createTextNode(""),
  458. mount = props.mount || document.body;
  459. function renderPortal() {
  460. if (solidJs.sharedConfig.context) {
  461. const [s, set] = solidJs.createSignal(false);
  462. queueMicrotask(() => set(true));
  463. return () => s() && props.children;
  464. } else return () => props.children;
  465. }
  466. if (mount instanceof HTMLHeadElement) {
  467. const [clean, setClean] = solidJs.createSignal(false);
  468. const cleanup = () => setClean(true);
  469. solidJs.createRoot(dispose => insert(mount, () => !clean() ? renderPortal()() : dispose(), null));
  470. solidJs.onCleanup(() => {
  471. if (solidJs.sharedConfig.context) queueMicrotask(cleanup);else cleanup();
  472. });
  473. } else {
  474. const container = createElement(props.isSVG ? "g" : "div", props.isSVG),
  475. renderRoot = useShadow && container.attachShadow ? container.attachShadow({
  476. mode: "open"
  477. }) : container;
  478. Object.defineProperty(container, "host", {
  479. get() {
  480. return marker.parentNode;
  481. }
  482. });
  483. insert(renderRoot, renderPortal());
  484. mount.appendChild(container);
  485. props.ref && props.ref(container);
  486. solidJs.onCleanup(() => mount.removeChild(container));
  487. }
  488. return marker;
  489. }
  490. function Dynamic(props) {
  491. const [p, others] = solidJs.splitProps(props, ["component"]);
  492. return solidJs.createMemo(() => {
  493. const component = p.component;
  494. switch (typeof component) {
  495. case "function":
  496. return solidJs.untrack(() => component(others));
  497. case "string":
  498. const isSvg = SVGElements.has(component);
  499. const el = createElement(component, isSvg);
  500. spread(el, others, isSvg);
  501. return el;
  502. }
  503. });
  504. }
  505. Object.defineProperty(exports, 'ErrorBoundary', {
  506. enumerable: true,
  507. get: function () {
  508. return solidJs.ErrorBoundary;
  509. }
  510. });
  511. Object.defineProperty(exports, 'For', {
  512. enumerable: true,
  513. get: function () {
  514. return solidJs.For;
  515. }
  516. });
  517. Object.defineProperty(exports, 'Index', {
  518. enumerable: true,
  519. get: function () {
  520. return solidJs.Index;
  521. }
  522. });
  523. Object.defineProperty(exports, 'Match', {
  524. enumerable: true,
  525. get: function () {
  526. return solidJs.Match;
  527. }
  528. });
  529. Object.defineProperty(exports, 'Show', {
  530. enumerable: true,
  531. get: function () {
  532. return solidJs.Show;
  533. }
  534. });
  535. Object.defineProperty(exports, 'Suspense', {
  536. enumerable: true,
  537. get: function () {
  538. return solidJs.Suspense;
  539. }
  540. });
  541. Object.defineProperty(exports, 'SuspenseList', {
  542. enumerable: true,
  543. get: function () {
  544. return solidJs.SuspenseList;
  545. }
  546. });
  547. Object.defineProperty(exports, 'Switch', {
  548. enumerable: true,
  549. get: function () {
  550. return solidJs.Switch;
  551. }
  552. });
  553. Object.defineProperty(exports, 'createComponent', {
  554. enumerable: true,
  555. get: function () {
  556. return solidJs.createComponent;
  557. }
  558. });
  559. Object.defineProperty(exports, 'effect', {
  560. enumerable: true,
  561. get: function () {
  562. return solidJs.createRenderEffect;
  563. }
  564. });
  565. Object.defineProperty(exports, 'getOwner', {
  566. enumerable: true,
  567. get: function () {
  568. return solidJs.getOwner;
  569. }
  570. });
  571. Object.defineProperty(exports, 'mergeProps', {
  572. enumerable: true,
  573. get: function () {
  574. return solidJs.mergeProps;
  575. }
  576. });
  577. exports.Aliases = Aliases;
  578. exports.ChildProperties = ChildProperties;
  579. exports.DelegatedEvents = DelegatedEvents;
  580. exports.Dynamic = Dynamic;
  581. exports.Portal = Portal;
  582. exports.Properties = Properties;
  583. exports.SVGElements = SVGElements;
  584. exports.SVGNamespace = SVGNamespace;
  585. exports.addEventListener = addEventListener;
  586. exports.assign = assign;
  587. exports.classList = classList;
  588. exports.clearDelegatedEvents = clearDelegatedEvents;
  589. exports.delegateEvents = delegateEvents;
  590. exports.dynamicProperty = dynamicProperty;
  591. exports.escape = escape;
  592. exports.gatherHydratable = gatherHydratable;
  593. exports.getHydrationKey = getHydrationKey;
  594. exports.getNextElement = getNextElement;
  595. exports.getNextMarker = getNextMarker;
  596. exports.hydrate = hydrate;
  597. exports.insert = insert;
  598. exports.isServer = isServer;
  599. exports.memo = memo;
  600. exports.render = render;
  601. exports.renderToNodeStream = renderToNodeStream;
  602. exports.renderToString = renderToString;
  603. exports.renderToStringAsync = renderToStringAsync;
  604. exports.renderToWebStream = renderToWebStream;
  605. exports.resolveSSRNode = resolveSSRNode;
  606. exports.runHydrationEvents = runHydrationEvents;
  607. exports.setAttribute = setAttribute;
  608. exports.setAttributeNS = setAttributeNS;
  609. exports.spread = spread;
  610. exports.ssr = ssr;
  611. exports.ssrBoolean = ssrBoolean;
  612. exports.ssrClassList = ssrClassList;
  613. exports.ssrSpread = ssrSpread;
  614. exports.ssrStyle = ssrStyle;
  615. exports.style = style;
  616. exports.template = template;