diff --git a/packages/demo/package.json b/packages/demo/package.json index 5809ba5..5146878 100644 --- a/packages/demo/package.json +++ b/packages/demo/package.json @@ -12,7 +12,7 @@ "dependencies": { "react": "^18.2.0", "react-dom": "^18.2.0", - "react-live": "*" + "@mfalkenberg/react-live-ssr": "*" }, "devDependencies": { "@types/react": "^18.0.31", diff --git a/packages/demo/src/app.tsx b/packages/demo/src/app.tsx index 2c85ddc..cf39023 100644 --- a/packages/demo/src/app.tsx +++ b/packages/demo/src/app.tsx @@ -1,4 +1,4 @@ -import { LiveProvider, LiveEditor, LivePreview, LiveError } from "react-live"; +import { LiveProvider, LiveEditor, LivePreview, LiveError } from "@mfalkenberg/react-live-ssr"; const code = ` function handleClick() { diff --git a/packages/react-live/package.json b/packages/react-live/package.json index ccd7b6e..8e4b6d3 100644 --- a/packages/react-live/package.json +++ b/packages/react-live/package.json @@ -1,6 +1,6 @@ { - "name": "react-live", - "version": "4.1.5", + "name": "@mfalkenberg/react-live-ssr", + "version": "4.1.6", "description": "A production-focused playground for live editing React code", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bd4359c..115f831 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -51,15 +51,15 @@ importers: packages/demo: dependencies: + '@mfalkenberg/react-live-ssr': + specifier: '*' + version: link:../react-live react: specifier: ^18.2.0 version: 18.2.0 react-dom: specifier: ^18.2.0 version: 18.2.0(react@18.2.0) - react-live: - specifier: '*' - version: link:../react-live devDependencies: '@types/react': specifier: ^18.0.31 @@ -238,7 +238,7 @@ importers: version: 18.2.0(react@18.2.0) react-live: specifier: '*' - version: link:../packages/react-live + version: 4.1.5(react-dom@18.2.0)(react@18.2.0) tailwindcss: specifier: ^3.2.7 version: 3.2.7(postcss@8.4.21) @@ -15679,6 +15679,20 @@ packages: resolution: {integrity: sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==} dev: false + /react-live@4.1.5(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-ul3Zwvqvh6KTg8j7xGCT26+c8J9vQ+LFUrZCbrrrzEExuVB/39s1GKG3NsywnL+aGAjpfnUTaVCe7KlKIvVPiw==} + engines: {node: '>= 0.12.0', npm: '>= 2.0.0'} + peerDependencies: + react: '>=18.0.0' + react-dom: '>=18.0.0' + dependencies: + prism-react-renderer: 2.0.6(react@18.2.0) + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + sucrase: 3.31.0 + use-editable: 2.3.3(react@18.2.0) + dev: false + /react-loadable-ssr-addon-v5-slorber@1.0.1(@docusaurus/react-loadable@5.5.2)(webpack@5.76.3): resolution: {integrity: sha512-lq3Lyw1lGku8zUEJPDxsNm1AfYHBrO9Y1+olAYwpUJ2IGFBskM0DMKok97A6LWUpHm+o7IvQBOWu9MLenp9Z+A==} engines: {node: '>=10.13.0'}