diff --git a/package.json b/package.json index 55ebfc178..c24206692 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "papaparse": "^5.4.1", "react": "^18.1.0", "react-dom": "^18.1.0", + "react-frame-component": "^5.2.6", "react-markdown": "^9.0.0", "remark": "^15.0.1", "remark-gfm": "^4.0.0", diff --git a/src/plugins/waveapp/waveapp.tsx b/src/plugins/waveapp/waveapp.tsx index 24955993c..e23503f55 100644 --- a/src/plugins/waveapp/waveapp.tsx +++ b/src/plugins/waveapp/waveapp.tsx @@ -9,6 +9,7 @@ import { boundMethod } from "autobind-decorator"; import { JsonLinesDataBuffer } from "../core/ptydata"; import { Markdown } from "@/elements"; import * as ijson from "@/util/ijson"; +import Frame from "react-frame-component"; import "./waveapp.less"; @@ -67,7 +68,7 @@ class WaveAppHtmlTag extends React.Component<{ node: WaveAppNode }, {}> { } } } - let childrenComps = []; + let childrenComps: (string | JSX.Element)[] = []; if (children != null) { for (let idx = 0; idx < children.length; idx++) { let comp = convertNodeToTag(children[idx], idx); @@ -238,7 +239,7 @@ class WaveAppRenderer extends React.Component<{ model: WaveAppRendererModel }, { } return (