@solidjs/html 2.0.0-experimental.14 → 2.0.0-experimental.15

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/html.cjs CHANGED
@@ -64,7 +64,7 @@ function parseTag(tag) {
64
64
  }
65
65
  function pushTextNode(list, html, start) {
66
66
  const end = html.indexOf('<', start);
67
- const content = html.slice(start, end === -1 ? undefined : end);
67
+ const content = html.slice(start, end === -1 ? void 0 : end);
68
68
  if (!/^\s*$/.test(content)) {
69
69
  list.push({
70
70
  type: 'text',
@@ -83,7 +83,7 @@ function pushCommentNode(list, tag) {
83
83
  }
84
84
  function parse(html) {
85
85
  const result = [];
86
- let current = undefined;
86
+ let current = void 0;
87
87
  let level = -1;
88
88
  const arr = [];
89
89
  const byTag = {};
@@ -92,7 +92,7 @@ function parse(html) {
92
92
  const isComment = tag.slice(0, 4) === '<!--';
93
93
  const start = index + tag.length;
94
94
  const nextChar = html.charAt(start);
95
- let parent = undefined;
95
+ let parent = void 0;
96
96
  if (isOpen && !isComment) {
97
97
  level++;
98
98
  current = parseTag(tag);
package/dist/html.js CHANGED
@@ -1,4 +1,4 @@
1
- import { effect, style, insert, untrack, spread, createComponent, delegateEvents, className, mergeProps, dynamicProperty, setAttribute, setAttributeNS, addEventListener, getPropAlias, Properties, ChildProperties, DelegatedEvents, SVGElements, SVGNamespace } from '@solidjs/web';
1
+ import { SVGNamespace, SVGElements, DelegatedEvents, ChildProperties, Properties, getPropAlias, addEventListener, setAttributeNS, setAttribute, dynamicProperty, mergeProps, className, delegateEvents, createComponent, spread, untrack, insert, style, effect } from '@solidjs/web';
2
2
 
3
3
  const tagRE = /(?:<!--[\S\s]*?-->|<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>)/g;
4
4
  const attrRE = /(?:\s(?<boolean>[^/\s><=]+?)(?=[\s/>]))|(?:(?<name>\S+?)(?:\s*=\s*(?:(['"])(?<quotedValue>[\s\S]*?)\3|(?<unquotedValue>[^\s>]+))))/g;
@@ -62,7 +62,7 @@ function parseTag(tag) {
62
62
  }
63
63
  function pushTextNode(list, html, start) {
64
64
  const end = html.indexOf('<', start);
65
- const content = html.slice(start, end === -1 ? undefined : end);
65
+ const content = html.slice(start, end === -1 ? void 0 : end);
66
66
  if (!/^\s*$/.test(content)) {
67
67
  list.push({
68
68
  type: 'text',
@@ -81,7 +81,7 @@ function pushCommentNode(list, tag) {
81
81
  }
82
82
  function parse(html) {
83
83
  const result = [];
84
- let current = undefined;
84
+ let current = void 0;
85
85
  let level = -1;
86
86
  const arr = [];
87
87
  const byTag = {};
@@ -90,7 +90,7 @@ function parse(html) {
90
90
  const isComment = tag.slice(0, 4) === '<!--';
91
91
  const start = index + tag.length;
92
92
  const nextChar = html.charAt(start);
93
- let parent = undefined;
93
+ let parent = void 0;
94
94
  if (isOpen && !isComment) {
95
95
  level++;
96
96
  current = parseTag(tag);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@solidjs/html",
3
3
  "description": "Build-less Tagged-Template-Literal Templating for Solid",
4
- "version": "2.0.0-experimental.14",
4
+ "version": "2.0.0-experimental.15",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",
7
7
  "homepage": "https://solidjs.com",
@@ -31,10 +31,10 @@
31
31
  "./dist/*": "./dist/*"
32
32
  },
33
33
  "peerDependencies": {
34
- "@solidjs/web": "^2.0.0-experimental.14"
34
+ "@solidjs/web": "^2.0.0-experimental.15"
35
35
  },
36
36
  "devDependencies": {
37
- "@solidjs/web": "2.0.0-experimental.14"
37
+ "@solidjs/web": "2.0.0-experimental.15"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "npm-run-all -nl build:*",
@@ -0,0 +1,3 @@
1
+ import type { HTMLTag } from "./lit.js";
2
+ declare const html: HTMLTag;
3
+ export default html;
package/types/lit.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "lit-dom-expressions";