solid-js 1.9.4 → 1.9.6
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/LICENSE +1 -1
- package/dist/dev.cjs +57 -42
- package/dist/dev.js +65 -50
- package/dist/solid.cjs +38 -34
- package/dist/solid.js +49 -41
- package/h/jsx-runtime/types/jsx.d.ts +2975 -1021
- package/html/dist/html.cjs +5 -5
- package/html/dist/html.js +5 -5
- package/package.json +1 -1
- package/store/types/store.d.ts +1 -0
- package/types/index.d.ts +3 -0
- package/types/jsx.d.ts +2126 -281
- package/types/reactive/observable.d.ts +11 -11
- package/types/reactive/signal.d.ts +4 -0
- package/types/server/reactive.d.ts +6 -1
- package/universal/dist/dev.cjs +3 -1
- package/universal/dist/dev.js +4 -2
- package/universal/dist/universal.cjs +3 -1
- package/universal/dist/universal.js +4 -2
- package/web/dist/dev.cjs +21 -14
- package/web/dist/dev.js +25 -12
- package/web/dist/server.cjs +18 -11
- package/web/dist/server.js +22 -8
- package/web/dist/web.cjs +21 -14
- package/web/dist/web.js +23 -10
- package/web/types/core.d.ts +1 -1
- package/web/types/index.d.ts +16 -0
package/html/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 ?
|
|
67
|
+
const content = html.slice(start, end === -1 ? undefined : 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 =
|
|
86
|
+
let current = undefined;
|
|
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 =
|
|
95
|
+
let parent = undefined;
|
|
96
96
|
if (isOpen && !isComment) {
|
|
97
97
|
level++;
|
|
98
98
|
current = parseTag(tag);
|
|
@@ -358,8 +358,8 @@ function createHTML(r, {
|
|
|
358
358
|
propGroups.push(`exprs[${options.counter++}]`);
|
|
359
359
|
propGroups.push(props = []);
|
|
360
360
|
} else if (value === "###") {
|
|
361
|
-
props.push(
|
|
362
|
-
} else props.push(
|
|
361
|
+
props.push(`"${name}": exprs[${options.counter++}]`);
|
|
362
|
+
} else props.push(`"${name}": "${value}"`);
|
|
363
363
|
} else if (type === 'directive') {
|
|
364
364
|
const tag = `_$el${uuid++}`;
|
|
365
365
|
const topDecl = !options.decl.length;
|
package/html/dist/html.js
CHANGED
|
@@ -84,7 +84,7 @@ function parseTag(tag) {
|
|
|
84
84
|
}
|
|
85
85
|
function pushTextNode(list, html, start) {
|
|
86
86
|
const end = html.indexOf("<", start);
|
|
87
|
-
const content = html.slice(start, end === -1 ?
|
|
87
|
+
const content = html.slice(start, end === -1 ? undefined : end);
|
|
88
88
|
if (!/^\s*$/.test(content)) {
|
|
89
89
|
list.push({
|
|
90
90
|
type: "text",
|
|
@@ -103,7 +103,7 @@ function pushCommentNode(list, tag) {
|
|
|
103
103
|
}
|
|
104
104
|
function parse(html) {
|
|
105
105
|
const result = [];
|
|
106
|
-
let current =
|
|
106
|
+
let current = undefined;
|
|
107
107
|
let level = -1;
|
|
108
108
|
const arr = [];
|
|
109
109
|
const byTag = {};
|
|
@@ -112,7 +112,7 @@ function parse(html) {
|
|
|
112
112
|
const isComment = tag.slice(0, 4) === "<!--";
|
|
113
113
|
const start = index + tag.length;
|
|
114
114
|
const nextChar = html.charAt(start);
|
|
115
|
-
let parent =
|
|
115
|
+
let parent = undefined;
|
|
116
116
|
if (isOpen && !isComment) {
|
|
117
117
|
level++;
|
|
118
118
|
current = parseTag(tag);
|
|
@@ -432,8 +432,8 @@ function createHTML(
|
|
|
432
432
|
propGroups.push(`exprs[${options.counter++}]`);
|
|
433
433
|
propGroups.push((props = []));
|
|
434
434
|
} else if (value === "###") {
|
|
435
|
-
props.push(
|
|
436
|
-
} else props.push(
|
|
435
|
+
props.push(`"${name}": exprs[${options.counter++}]`);
|
|
436
|
+
} else props.push(`"${name}": "${value}"`);
|
|
437
437
|
} else if (type === "directive") {
|
|
438
438
|
const tag = `_$el${uuid++}`;
|
|
439
439
|
const topDecl = !options.decl.length;
|
package/package.json
CHANGED
package/store/types/store.d.ts
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -77,6 +77,9 @@ export declare const DEV:
|
|
|
77
77
|
afterCreateSignal:
|
|
78
78
|
| ((signal: import("./reactive/signal.js").SignalState<any>) => void)
|
|
79
79
|
| null;
|
|
80
|
+
afterRegisterGraph:
|
|
81
|
+
| ((sourceMapValue: import("./reactive/signal.js").SourceMapValue) => void)
|
|
82
|
+
| null;
|
|
80
83
|
};
|
|
81
84
|
readonly writeSignal: typeof writeSignal;
|
|
82
85
|
readonly registerGraph: typeof registerGraph;
|