@torpor/view 0.4.14 → 0.4.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/CHANGELOG.md +6 -0
- package/dist/compile.cjs +12 -10
- package/dist/compile.mjs +12 -10
- package/dist/compile.mjs.map +1 -1
- package/package.json +1 -1
- package/src/compile/build/client/buildComponentNode.ts +3 -0
- package/test/class/class.test.ts +31 -12
- package/test/class/components/output/Class-client.ts +62 -17
- package/test/class/components/output/Class-server.ts +40 -6
- package/test/class/components/temp/Class-client-c100fef7474dd892108c52b2cfed5825a3412e8b.ts +123 -0
- package/test/class/components/temp/Class-server-f42d0611a27002b493da55392baf7244d31e0d39.ts +78 -0
- package/test/class/components/temp/Class-client-d17977d356d8c8f964eaa1ac5a381814b33c22ba.ts +0 -78
- package/test/class/components/temp/Class-server-e4adcf242d5620acfcfa31c57b9b35c323a15664.ts +0 -44
package/CHANGELOG.md
CHANGED
package/dist/compile.cjs
CHANGED
|
@@ -896,16 +896,18 @@ function buildComponentNode(node, status, b, root = false) {
|
|
|
896
896
|
});
|
|
897
897
|
runs.push(`${propsName}["${name}"] = ${value};`);
|
|
898
898
|
}
|
|
899
|
-
} else if (value != null)
|
|
900
|
-
name
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
899
|
+
} else if (value != null) {
|
|
900
|
+
if (name === "class" && node.scopeStyles) value = `"${trimQuotes(value)} torp-${status.styleHash}"`;
|
|
901
|
+
props.push({
|
|
902
|
+
name,
|
|
903
|
+
preText: "",
|
|
904
|
+
value,
|
|
905
|
+
postText: "",
|
|
906
|
+
spans: [span],
|
|
907
|
+
offsets: [],
|
|
908
|
+
lengths: []
|
|
909
|
+
});
|
|
910
|
+
} else props.push({
|
|
909
911
|
name,
|
|
910
912
|
preText: "",
|
|
911
913
|
value: "true",
|
package/dist/compile.mjs
CHANGED
|
@@ -895,16 +895,18 @@ function buildComponentNode(node, status, b, root = false) {
|
|
|
895
895
|
});
|
|
896
896
|
runs.push(`${propsName}["${name}"] = ${value};`);
|
|
897
897
|
}
|
|
898
|
-
} else if (value != null)
|
|
899
|
-
name
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
898
|
+
} else if (value != null) {
|
|
899
|
+
if (name === "class" && node.scopeStyles) value = `"${trimQuotes(value)} torp-${status.styleHash}"`;
|
|
900
|
+
props.push({
|
|
901
|
+
name,
|
|
902
|
+
preText: "",
|
|
903
|
+
value,
|
|
904
|
+
postText: "",
|
|
905
|
+
spans: [span],
|
|
906
|
+
offsets: [],
|
|
907
|
+
lengths: []
|
|
908
|
+
});
|
|
909
|
+
} else props.push({
|
|
908
910
|
name,
|
|
909
911
|
preText: "",
|
|
910
912
|
value: "true",
|