From 413258ef1756566aab5e1f1730f0245b77caaaf4 Mon Sep 17 00:00:00 2001 From: Jukka Vaisanen Date: Thu, 26 Oct 2023 11:01:14 +0300 Subject: [PATCH] Change underlying component to @microlink/react-json-view --- package.json | 2 +- src/JsonField.tsx | 2 +- src/JsonInput.tsx | 2 +- yarn.lock | 34 +++++++++++++++++----------------- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/package.json b/package.json index 07a7b84..064ec90 100644 --- a/package.json +++ b/package.json @@ -54,6 +54,6 @@ "react-dom": "*" }, "dependencies": { - "react-json-view": "^1.21.3" + "@microlink/react-json-view": "^1.22.2" } } diff --git a/src/JsonField.tsx b/src/JsonField.tsx index cd3776c..1107c2e 100644 --- a/src/JsonField.tsx +++ b/src/JsonField.tsx @@ -1,6 +1,6 @@ import React from "react"; import { FieldProps, useRecordContext } from "react-admin"; -import ReactJson, { ReactJsonViewProps } from "react-json-view"; +import ReactJson, { ReactJsonViewProps } from "@microlink/react-json-view"; type Props = { source: string; diff --git a/src/JsonInput.tsx b/src/JsonInput.tsx index 58afbdd..b3e7ebc 100644 --- a/src/JsonInput.tsx +++ b/src/JsonInput.tsx @@ -4,7 +4,7 @@ import { InputHelperText, InputProps, Labeled, useInput } from "react-admin"; import ReactJson, { InteractionProps, ReactJsonViewProps, -} from "react-json-view"; +} from "@microlink/react-json-view"; type Props = { source: string; diff --git a/yarn.lock b/yarn.lock index ee5ccca..310dbd0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -688,6 +688,16 @@ "@jridgewell/resolve-uri" "^3.0.3" "@jridgewell/sourcemap-codec" "^1.4.10" +"@microlink/react-json-view@^1.22.2": + version "1.22.2" + resolved "https://registry.yarnpkg.com/@microlink/react-json-view/-/react-json-view-1.22.2.tgz#dc8262d40912655d5c4a4cf8c7e0549e683808f6" + integrity sha512-liJzdlbspT5GbEuPffw4jzZfXOypKLK1Er9br03T31bAaIi/WptZqpcJaXPi7OmwC7v/YYczCkmAS7WaEfItPQ== + dependencies: + flux "~4.0.1" + react-base16-styling "~0.6.0" + react-lifecycles-compat "~3.0.4" + react-textarea-autosize "~8.3.2" + "@mui/base@5.0.0-alpha.92": version "5.0.0-alpha.92" resolved "https://registry.yarnpkg.com/@mui/base/-/base-5.0.0-alpha.92.tgz#5c2ca31801fe21a8fec9bfda2cf5f44b1e3c7284" @@ -2035,10 +2045,10 @@ flatted@^3.1.0: resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.6.tgz#022e9218c637f9f3fc9c35ab9c9193f05add60b2" integrity sha512-0sQoMh9s0BYsm+12Huy/rkKxVu4R1+r96YX5cG44rHV0pQ6iC3Q+mkoMFaGWObMFYQxCVT+ssG1ksneA2MI9KQ== -flux@^4.0.1: - version "4.0.3" - resolved "https://registry.yarnpkg.com/flux/-/flux-4.0.3.tgz#573b504a24982c4768fdfb59d8d2ea5637d72ee7" - integrity sha512-yKAbrp7JhZhj6uiT1FTuVMlIAT1J4jqEyBpFApi1kxpGZCvacMVc/t1pMQyotqHhAgvoE3bNvAykhCo2CLjnYw== +flux@~4.0.1: + version "4.0.4" + resolved "https://registry.yarnpkg.com/flux/-/flux-4.0.4.tgz#9661182ea81d161ee1a6a6af10d20485ef2ac572" + integrity sha512-NCj3XlayA2UsapRpM7va6wU1+9rE5FIL7qoMcmxWHRzbp0yujihMBm9BBHZ1MDIk5h5o2Bl6eGiCe8rYELAmYw== dependencies: fbemitter "^3.0.0" fbjs "^3.0.1" @@ -3452,7 +3462,7 @@ react-admin@^4.2.5: react-router "^6.1.0" react-router-dom "^6.1.0" -react-base16-styling@^0.6.0: +react-base16-styling@~0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/react-base16-styling/-/react-base16-styling-0.6.0.tgz#ef2156d66cf4139695c8a167886cb69ea660792c" integrity sha512-yvh/7CArceR/jNATXOKDlvTnPKPmGZz7zsenQ3jUwLzHkNUR0CvY3yGYJbWJ/nnxsL8Sgmt5cO3/SILVuPO6TQ== @@ -3506,17 +3516,7 @@ react-is@^18.0.0, react-is@^18.2.0: resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b" integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w== -react-json-view@^1.21.3: - version "1.21.3" - resolved "https://registry.yarnpkg.com/react-json-view/-/react-json-view-1.21.3.tgz#f184209ee8f1bf374fb0c41b0813cff54549c475" - integrity sha512-13p8IREj9/x/Ye4WI/JpjhoIwuzEgUAtgJZNBJckfzJt1qyh24BdTm6UQNGnyTq9dapQdrqvquZTo3dz1X6Cjw== - dependencies: - flux "^4.0.1" - react-base16-styling "^0.6.0" - react-lifecycles-compat "^3.0.4" - react-textarea-autosize "^8.3.2" - -react-lifecycles-compat@^3.0.4: +react-lifecycles-compat@~3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362" integrity sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA== @@ -3545,7 +3545,7 @@ react-router@6.3.0, react-router@^6.1.0: dependencies: history "^5.2.0" -react-textarea-autosize@^8.3.2: +react-textarea-autosize@~8.3.2: version "8.3.4" resolved "https://registry.yarnpkg.com/react-textarea-autosize/-/react-textarea-autosize-8.3.4.tgz#270a343de7ad350534141b02c9cb78903e553524" integrity sha512-CdtmP8Dc19xL8/R6sWvtknD/eCXkQr30dtvC4VmGInhRsfF8X/ihXCq6+9l9qbxmKRiq407/7z5fxE7cVWQNgQ==