Skip to content

Commit

Permalink
chore: replace react-live with @aliemir/react-live (refinedev#3166)
Browse files Browse the repository at this point in the history
* chore: replace `react-live` package

* chore: add changeset
  • Loading branch information
aliemir authored Dec 8, 2022
1 parent 5c9cf17 commit b41e89e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/old-swans-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pankod/refine-inferencer": minor
---

Replaced `react-live` package with a maintained fork `@aliemir/react-live` with TypeScript support.
2 changes: 1 addition & 1 deletion packages/inferencer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"remark-gfm": "^1.0.0",
"tslib": "^2.3.1",
"prettier": "^2.7.1",
"react-live": "github:aliemir/react-live"
"@aliemir/react-live": "^4.0.0"
},
"author": "Refine",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/inferencer/src/components/live/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import * as RefineCore from "@pankod/refine-core";

import { LivePreview, LiveProvider, ContextProps } from "react-live";
import { LivePreview, LiveProvider, ContextProps } from "@aliemir/react-live";

import { replaceImports, replaceExports } from "@/utilities";
import { AdditionalScopeType, LiveComponentProps } from "@/types";
Expand Down
2 changes: 1 addition & 1 deletion packages/live-previews/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"next": "^13.0.6",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-live": "github:aliemir/react-live"
"@aliemir/react-live": "^4.0.0"
},
"devDependencies": {
"@types/jest": "^26.0.24",
Expand Down
2 changes: 1 addition & 1 deletion packages/live-previews/pages/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";

import type { NextPage } from "next";
import { LivePreview, LiveProvider } from "react-live";
import { LivePreview, LiveProvider } from "@aliemir/react-live";

import Error from "@/pages/_error";
import { Loading } from "@/src/components/loading";
Expand Down
2 changes: 1 addition & 1 deletion packages/live-previews/src/components/live-error.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { LiveContext } from "react-live";
import { LiveContext } from "@aliemir/react-live";

export const LiveError: React.FC = () => {
const { error } = React.useContext(LiveContext);
Expand Down

0 comments on commit b41e89e

Please sign in to comment.