Skip to content

Commit 3b4e91f

Browse files
committed
Update demo dependencies to fix peer dependency warning
1 parent 0d2f3c2 commit 3b4e91f

File tree

4 files changed

+39
-25
lines changed

4 files changed

+39
-25
lines changed

packages/react-renderer-demo/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"@mui/styles": "^5.2.3",
4141
"@next/bundle-analyzer": "^12.1.0",
4242
"@next/mdx": "^12.0.1",
43+
"@rvsia/next-offline": "^5.0.5",
4344
"@stackblitz/sdk": "^1.5.3",
4445
"clsx": "^1.1.1",
4546
"codesandbox": "2.2.3",
@@ -48,15 +49,14 @@
4849
"firebase-functions": "^3.16.0",
4950
"markdown-to-jsx": "^7.1.6",
5051
"next": "12.1.0",
51-
"next-offline": "^5.0.5",
5252
"prism-react-renderer": "^1.2.1",
5353
"prop-types": "^15.8.1",
5454
"raw-loader": "^4.0.2",
5555
"react": "^17.0.2",
5656
"react-copy-to-clipboard": "^5.0.4",
5757
"react-dom": "^17.0.2",
58-
"react-github-buttons": "^0.5.0",
59-
"react-sticky-box": "^0.9.3",
58+
"react-github-btn": "^1.2.2",
59+
"react-sticky-box": "^1.0.2",
6060
"webpack": "^5.66.0"
6161
},
6262
"devDependencies": {

packages/react-renderer-demo/src/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const withMDX = require('@next/mdx')({
22
extension: /\.mdx?$/,
33
});
44
const path = require('path');
5-
const withOffline = require('next-offline');
5+
const withOffline = require('@rvsia/next-offline');
66

77
const withBundleAnalyzer = require('@next/bundle-analyzer')({
88
enabled: process.env.ANALYZE === 'true',

packages/react-renderer-demo/src/pages/index.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import Typography from '@mui/material/Typography';
33
import Button from '@mui/material/Button';
44
import Link from 'next/link';
5-
import { Star } from 'react-github-buttons';
5+
import GitHubButton from 'react-github-btn';
66

77
import LandingPageTitle from '@docs/components/landing-page/landing-page-title';
88
import LandingPageCards from '@docs/components/landing-page/landing-page-cards';
@@ -46,6 +46,7 @@ const Root = styled(Typography)(({ theme }) => ({
4646
},
4747
'& .github-star': {
4848
textDecoration: 'none',
49+
marginRight: '8px',
4950
'& button': {
5051
lineHeight: 1.43,
5152
padding: '1px 6px',
@@ -76,7 +77,14 @@ const LandingPage = () => (
7677
</div>
7778
<div className="landing-page-npm-link">
7879
<span className="github-star">
79-
<Star owner="data-driven-forms" repo="react-forms" />
80+
<GitHubButton
81+
href="https://github.com/data-driven-forms/react-forms"
82+
data-icon="octicon-star"
83+
data-show-count="true"
84+
aria-label="Star data-driven-forms/react-forms on GitHub"
85+
>
86+
Star
87+
</GitHubButton>{' '}
8088
</span>
8189
<a href="https://badge.fury.io/js/%40data-driven-forms%2Freact-form-renderer" rel="noopener noreferrer" target="_blank">
8290
<img src="https://badge.fury.io/js/%40data-driven-forms%2Freact-form-renderer.svg" alt="current version" />

yarn.lock

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@
11271127
core-js-pure "^3.20.2"
11281128
regenerator-runtime "^0.13.4"
11291129

1130-
"@babel/runtime@^7.1.2", "@babel/runtime@^7.1.5", "@babel/runtime@^7.10.0", "@babel/runtime@^7.10.1", "@babel/runtime@^7.10.2", "@babel/runtime@^7.10.4", "@babel/runtime@^7.10.5", "@babel/runtime@^7.11.1", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.1", "@babel/runtime@^7.12.5", "@babel/runtime@^7.13.10", "@babel/runtime@^7.14.6", "@babel/runtime@^7.15.4", "@babel/runtime@^7.16.3", "@babel/runtime@^7.3.1", "@babel/runtime@^7.4.4", "@babel/runtime@^7.5.5", "@babel/runtime@^7.7.2", "@babel/runtime@^7.8.3", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.1", "@babel/runtime@^7.9.2":
1130+
"@babel/runtime@^7.1.2", "@babel/runtime@^7.10.0", "@babel/runtime@^7.10.1", "@babel/runtime@^7.10.2", "@babel/runtime@^7.10.4", "@babel/runtime@^7.10.5", "@babel/runtime@^7.11.1", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.1", "@babel/runtime@^7.12.5", "@babel/runtime@^7.13.10", "@babel/runtime@^7.14.6", "@babel/runtime@^7.15.4", "@babel/runtime@^7.16.3", "@babel/runtime@^7.3.1", "@babel/runtime@^7.4.4", "@babel/runtime@^7.5.5", "@babel/runtime@^7.7.2", "@babel/runtime@^7.8.3", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.1", "@babel/runtime@^7.9.2":
11311131
version "7.16.7"
11321132
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.16.7.tgz#03ff99f64106588c9c403c6ecb8c3bafbbdff1fa"
11331133
integrity sha512-9E9FJowqAsytyOY6LG+1KuueckRL+aQW+mKvXRXnuFGyRAyepJPmEo9vgMfXUA6O9u3IeEdv9MAkppFcaQwogQ==
@@ -3428,6 +3428,15 @@
34283428
resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.1.0.tgz#7f698254aadf921e48dda8c0a6b304026b8a9323"
34293429
integrity sha512-JLo+Y592QzIE+q7Dl2pMUtt4q8SKYI5jDrZxrozEQxnGVOyYE+GWK9eLkwTaeN9DDctlaRAQ3TBmzZ1qdLE30A==
34303430

3431+
"@rvsia/next-offline@^5.0.5":
3432+
version "5.0.5"
3433+
resolved "https://registry.yarnpkg.com/@rvsia/next-offline/-/next-offline-5.0.5.tgz#6bf5c156ef30a4907f9e0b5a3a1bfad2d0c67829"
3434+
integrity sha512-n1Tzzen/4HF1mU0ZAH6gLA2cbwsRRdq9KaPyeqZsSkIzethO78BeVkk9gV/NTK7cbF0I10u/2Cp12gF1IRmwmA==
3435+
dependencies:
3436+
copy-webpack-plugin "~5.1.2"
3437+
fs-extra "~8.1.0"
3438+
workbox-webpack-plugin "^5.0.0"
3439+
34313440
"@semantic-release/commit-analyzer@^9.0.2":
34323441
version "9.0.2"
34333442
resolved "https://registry.yarnpkg.com/@semantic-release/commit-analyzer/-/commit-analyzer-9.0.2.tgz#a78e54f9834193b55f1073fa6258eecc9a545e03"
@@ -9676,6 +9685,11 @@ gitconfiglocal@^1.0.0:
96769685
dependencies:
96779686
ini "^1.3.2"
96789687

9688+
github-buttons@^2.21.1:
9689+
version "2.21.1"
9690+
resolved "https://registry.yarnpkg.com/github-buttons/-/github-buttons-2.21.1.tgz#9e55eb83b70c9149a21c235db2e971c53d4d98a2"
9691+
integrity sha512-n9bCQ8sj+5oX1YH5NeyWGbAclRDtHEhMBzqw2ctsWpdEHOwVgfruRu0VIVy01Ah10dd/iFajMHYU71L7IBWBOw==
9692+
96799693
glob-base@^0.3.0:
96809694
version "0.3.0"
96819695
resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4"
@@ -13938,15 +13952,6 @@ netmask@^2.0.1:
1393813952
resolved "https://registry.yarnpkg.com/netmask/-/netmask-2.0.2.tgz#8b01a07644065d536383835823bc52004ebac5e7"
1393913953
integrity sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==
1394013954

13941-
next-offline@^5.0.5:
13942-
version "5.0.5"
13943-
resolved "https://registry.yarnpkg.com/next-offline/-/next-offline-5.0.5.tgz#91b2792f92a65e33eee00c9ab0dd1af9b9f71caa"
13944-
integrity sha512-GOpq+mD7ecrgW+A8+Y31BLNca3b8EeyRMhW5C9PsCc/C2RO1AzrssgIgQIrRulFuXDvXuPE5hWI4/DTHeOUp6Q==
13945-
dependencies:
13946-
copy-webpack-plugin "~5.1.2"
13947-
fs-extra "~8.1.0"
13948-
workbox-webpack-plugin "^5.0.0"
13949-
1395013955
next-tick@1, next-tick@^1.1.0:
1395113956
version "1.1.0"
1395213957
resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.1.0.tgz#1836ee30ad56d67ef281b22bd199f709449b35eb"
@@ -16426,10 +16431,12 @@ react-final-form@^6.5.0:
1642616431
dependencies:
1642716432
"@babel/runtime" "^7.15.4"
1642816433

16429-
react-github-buttons@^0.5.0:
16430-
version "0.5.0"
16431-
resolved "https://registry.yarnpkg.com/react-github-buttons/-/react-github-buttons-0.5.0.tgz#f7ee1c934ed7410ea63c5fd2feacfc4be294dce2"
16432-
integrity sha512-Z062cVnNkCvvE3Hm0T+FHr6pjGvE0PKL9Vzl0JDCH7+vc7fuvT1yfYyEe1GBYGyvxna4HSJ8bNexvVl/N8wlhQ==
16434+
react-github-btn@^1.2.2:
16435+
version "1.2.2"
16436+
resolved "https://registry.yarnpkg.com/react-github-btn/-/react-github-btn-1.2.2.tgz#9aab2498ff311b9f9c448a2d2b902d0277037d5c"
16437+
integrity sha512-X4IcX2qwaLciSa4wcUsrFgF2PcT+ukMbZZRBT50ZvO2HJMyqQJNYNHErCN2R0sgZfSFQHUuUHlGndF15VQUhPA==
16438+
dependencies:
16439+
github-buttons "^2.21.1"
1643316440

1643416441
react-input-autosize@^3.0.0:
1643516442
version "3.0.0"
@@ -16512,12 +16519,11 @@ react-select@^3.0.8:
1651216519
react-input-autosize "^3.0.0"
1651316520
react-transition-group "^4.3.0"
1651416521

16515-
react-sticky-box@^0.9.3:
16516-
version "0.9.3"
16517-
resolved "https://registry.yarnpkg.com/react-sticky-box/-/react-sticky-box-0.9.3.tgz#8450d4cef8e4fdd7b0351520365bc98c97da11af"
16518-
integrity sha512-Y/qO7vTqAvXuRR6G6ZCW4fX2Bz0GZRwiiLTVeZN5CVz9wzs37ev0Xj3KSKF/PzF0jifwATivI4t24qXG8rSz4Q==
16522+
react-sticky-box@^1.0.2:
16523+
version "1.0.2"
16524+
resolved "https://registry.yarnpkg.com/react-sticky-box/-/react-sticky-box-1.0.2.tgz#7e72a0f237bdf8270cec9254337f49519a411174"
16525+
integrity sha512-Kyvtppdtv1KqJyNU4DtrSMI0unyQRgtraZvVQ0GAazVbYiTsIVpyhpr+5R0Aavzu4uJNSe1awj2rk/qI7i6Zfw==
1651916526
dependencies:
16520-
"@babel/runtime" "^7.1.5"
1652116527
resize-observer-polyfill "^1.5.1"
1652216528

1652316529
react-transition-group@^4.3.0, react-transition-group@^4.4.1, react-transition-group@^4.4.2:

0 commit comments

Comments
 (0)