@wandelbots/wandelbots-js-react-components 1.13.2 → 1.13.3
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/dist/components/wandelscript-editor/WandelscriptEditor.d.ts.map +1 -1
- package/dist/index.cjs +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +737 -737
- package/dist/index.js.map +1 -1
- package/package.json +1 -2
- package/src/components/wandelscript-editor/WandelscriptEditor.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wandelbots/wandelbots-js-react-components",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.3",
|
|
4
4
|
"description": "React UI toolkit for building applications on top of the Wandelbots platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -76,7 +76,6 @@
|
|
|
76
76
|
"storybook": "^8.2.9",
|
|
77
77
|
"storybook-dark-mode": "^4.0.2",
|
|
78
78
|
"storybook-preset-inline-svg": "^1.0.1",
|
|
79
|
-
"tslib": "^2.6.3",
|
|
80
79
|
"typescript": "^5.5.4",
|
|
81
80
|
"vite": "^5.4.2",
|
|
82
81
|
"vite-plugin-svgr": "^4.2.0",
|
|
@@ -23,6 +23,8 @@ type WandelscriptEditorProps = {
|
|
|
23
23
|
monacoSetup?: (monaco: Monaco) => void
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
const Editor = lazy(() => import("@monaco-editor/react"))
|
|
27
|
+
|
|
26
28
|
/** A Monaco (VSCode-style) embedded code editor with Wandelscript syntax highlighting */
|
|
27
29
|
export const WandelscriptEditor = externalizeComponent(
|
|
28
30
|
(props: WandelscriptEditorProps) => {
|
|
@@ -36,8 +38,6 @@ export const WandelscriptEditor = externalizeComponent(
|
|
|
36
38
|
const targetShikiTheme =
|
|
37
39
|
theme.palette.mode === "dark" ? "dark-plus" : "light-plus"
|
|
38
40
|
|
|
39
|
-
const Editor = lazy(() => import("@monaco-editor/react"))
|
|
40
|
-
|
|
41
41
|
async function setupEditor(monaco: Monaco) {
|
|
42
42
|
const [{ createHighlighter }, { shikiToMonaco }] = await Promise.all([
|
|
43
43
|
import("shiki"),
|