mono-jsx 0.10.0-beta.21 → 0.10.0-beta.22
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/jsx-runtime.mjs +8 -8
- package/package.json +8 -7
package/jsx-runtime.mjs
CHANGED
|
@@ -16,7 +16,7 @@ var $setup = /* @__PURE__ */ Symbol.for("mono.setup");
|
|
|
16
16
|
var $rpc = /* @__PURE__ */ Symbol.for("mono.rpc");
|
|
17
17
|
|
|
18
18
|
// version.ts
|
|
19
|
-
var VERSION = "0.10.0-beta.
|
|
19
|
+
var VERSION = "0.10.0-beta.22";
|
|
20
20
|
|
|
21
21
|
// runtime/index.ts
|
|
22
22
|
var EVENT = 1;
|
|
@@ -836,7 +836,7 @@ async function renderNode(rc, node, stripSlotProp) {
|
|
|
836
836
|
}
|
|
837
837
|
writeAttr("ref");
|
|
838
838
|
attrs += renderViewTransitionAttr(props);
|
|
839
|
-
let buf = "<m-component" + attrs + ">
|
|
839
|
+
let buf = "<m-component" + attrs + ' style="display:contents">';
|
|
840
840
|
if (pending) {
|
|
841
841
|
const chunks = [];
|
|
842
842
|
await renderChildren(
|
|
@@ -869,7 +869,7 @@ async function renderNode(rc, node, stripSlotProp) {
|
|
|
869
869
|
if (!routeFC) {
|
|
870
870
|
attrs += " fallback";
|
|
871
871
|
}
|
|
872
|
-
write("<m-router" + attrs + ">
|
|
872
|
+
write("<m-router" + attrs + ' style="display:contents">');
|
|
873
873
|
if (routeFC) {
|
|
874
874
|
if (routeFC instanceof Promise) {
|
|
875
875
|
routeFC = (await routeFC).default;
|
|
@@ -973,7 +973,7 @@ async function renderNode(rc, node, stripSlotProp) {
|
|
|
973
973
|
if (replace) {
|
|
974
974
|
buf += " replace";
|
|
975
975
|
}
|
|
976
|
-
buf += "></m-redirect>";
|
|
976
|
+
buf += " hidden></m-redirect>";
|
|
977
977
|
write(buf);
|
|
978
978
|
rc.flags.runtime |= REDIRECT;
|
|
979
979
|
}
|
|
@@ -1005,7 +1005,7 @@ async function renderNode(rc, node, stripSlotProp) {
|
|
|
1005
1005
|
} else if (tag === "invalid") {
|
|
1006
1006
|
break;
|
|
1007
1007
|
}
|
|
1008
|
-
buf += ">
|
|
1008
|
+
buf += ' style="display:contents">';
|
|
1009
1009
|
if (children) {
|
|
1010
1010
|
const chunks = [];
|
|
1011
1011
|
await renderChildren(
|
|
@@ -1124,7 +1124,7 @@ async function renderFC(rc, fcFn, props, eager) {
|
|
|
1124
1124
|
markSignals(fcRc, signals);
|
|
1125
1125
|
} else {
|
|
1126
1126
|
const chunkIdAttr = 'chunk-id="' + (rc.flags.chunk++).toString(36) + '"';
|
|
1127
|
-
write("<m-portal " + chunkIdAttr + ">
|
|
1127
|
+
write("<m-portal " + chunkIdAttr + ' style="display:contents">');
|
|
1128
1128
|
if (props.pending) {
|
|
1129
1129
|
await renderNode(rc, props.pending);
|
|
1130
1130
|
}
|
|
@@ -1152,7 +1152,7 @@ async function renderFC(rc, fcFn, props, eager) {
|
|
|
1152
1152
|
markSignals(fcRc, signals);
|
|
1153
1153
|
} else {
|
|
1154
1154
|
const chunkIdAttr = 'chunk-id="' + (rc.flags.chunk++).toString(36) + '"';
|
|
1155
|
-
write("<m-portal " + chunkIdAttr + ">
|
|
1155
|
+
write("<m-portal " + chunkIdAttr + ' style="display:contents">');
|
|
1156
1156
|
if (props.pending) {
|
|
1157
1157
|
await renderNode(rc, props.pending);
|
|
1158
1158
|
}
|
|
@@ -1365,7 +1365,7 @@ function renderSignal(rc, signal, mode, close = true) {
|
|
|
1365
1365
|
if (mode && mode !== "html" && close) {
|
|
1366
1366
|
buffer += " hidden";
|
|
1367
1367
|
}
|
|
1368
|
-
buffer += ">
|
|
1368
|
+
buffer += ' style="display:contents">';
|
|
1369
1369
|
if (!mode || mode === "html") {
|
|
1370
1370
|
let text;
|
|
1371
1371
|
switch (typeof value) {
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mono-jsx",
|
|
3
|
-
"version": "0.10.0-beta.
|
|
3
|
+
"version": "0.10.0-beta.22",
|
|
4
4
|
"description": "`<html>` as a `Response` (Yet another JSX runtime for server-side rendering).",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"main": "./index.mjs",
|
|
6
7
|
"module": "./index.mjs",
|
|
7
8
|
"types": "./types/index.d.ts",
|
|
8
9
|
"bin": {
|
|
@@ -11,18 +12,18 @@
|
|
|
11
12
|
"exports": {
|
|
12
13
|
".": {
|
|
13
14
|
"types": "./types/index.d.ts",
|
|
14
|
-
"
|
|
15
|
-
"
|
|
15
|
+
"import": "./index.mjs",
|
|
16
|
+
"node": "./index.mjs"
|
|
16
17
|
},
|
|
17
18
|
"./jsx-runtime": {
|
|
18
19
|
"types": "./types/jsx-runtime.d.ts",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
20
|
+
"import": "./jsx-runtime.mjs",
|
|
21
|
+
"node": "./jsx-runtime.mjs"
|
|
21
22
|
},
|
|
22
23
|
"./jsx-dev-runtime": {
|
|
23
24
|
"types": "./types/jsx-runtime.d.ts",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
25
|
+
"import": "./jsx-runtime.mjs",
|
|
26
|
+
"node": "./jsx-runtime.mjs"
|
|
26
27
|
}
|
|
27
28
|
},
|
|
28
29
|
"scripts": {
|