artifacty 0.11.0 → 0.11.1
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/package.json +2 -2
- package/src/lib/render.js +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "artifacty",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "Local artifact exchange for heterogeneous LLM agents via HTTP and MCP.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"mermaid": "^11.15.0"
|
|
67
67
|
},
|
|
68
68
|
"optionalDependencies": {
|
|
69
|
-
"@babel/standalone": "^
|
|
69
|
+
"@babel/standalone": "^8.0.4",
|
|
70
70
|
"react": "^18.3.1",
|
|
71
71
|
"react-dom": "^18.3.1"
|
|
72
72
|
}
|
package/src/lib/render.js
CHANGED
|
@@ -1748,9 +1748,13 @@ export function renderReactFramePage({ title, content }) {
|
|
|
1748
1748
|
try {
|
|
1749
1749
|
const source = JSON.parse(document.getElementById("artifacty-react-source").textContent);
|
|
1750
1750
|
const transformed = Babel.transform(source, {
|
|
1751
|
-
filename
|
|
1751
|
+
// The .tsx filename is what selects TSX parsing. Babel 8 removed the
|
|
1752
|
+
// preset-typescript allExtensions/isTSX options that used to force it,
|
|
1753
|
+
// and rejects them outright, so deriving the mode from the extension
|
|
1754
|
+
// keeps this transform working on both Babel 7 and Babel 8.
|
|
1755
|
+
filename: "artifact.tsx",
|
|
1752
1756
|
presets: [
|
|
1753
|
-
["typescript", {
|
|
1757
|
+
["typescript", {}],
|
|
1754
1758
|
["react", { runtime: "classic" }]
|
|
1755
1759
|
],
|
|
1756
1760
|
plugins: ["transform-modules-commonjs"]
|