Skip to content

Commit 3cff397

Browse files
committed
fix: add [email protected] peerDep
1 parent 0ca34ae commit 3cff397

22 files changed

+14541
-15547
lines changed

package-lock.json

Lines changed: 14482 additions & 15265 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@
22
"name": "react-wavesurfer.js",
33
"version": "0.0.5",
44
"description": "React bindings for wavesurfer.js",
5-
"repository": {
6-
"type": "git",
7-
"url": "git+https://github.com/amilajack/react-wavesurfer.js.git"
8-
},
9-
"bugs": {
10-
"url": "https://github.com/amilajack/react-wavesurfer.js/issues"
11-
},
12-
"homepage": "https://github.com/amilajack/react-wavesurfer.js",
135
"keywords": [
146
"react",
157
"wavesurfer",
@@ -22,6 +14,14 @@
2214
"zoom",
2315
"timeline"
2416
],
17+
"homepage": "https://github.com/amilajack/react-wavesurfer.js",
18+
"bugs": {
19+
"url": "https://github.com/amilajack/react-wavesurfer.js/issues"
20+
},
21+
"repository": {
22+
"type": "git",
23+
"url": "git+https://github.com/amilajack/react-wavesurfer.js.git"
24+
},
2525
"license": "MIT",
2626
"author": "Amila Welihinda <[email protected]>",
2727
"main": "./dist/index.js",
@@ -31,15 +31,15 @@
3131
],
3232
"scripts": {
3333
"build": "rm -rf dist && tsc && npm run build-storybook && rm -rf storybook-static",
34+
"build-storybook": "build-storybook",
35+
"deploy-storybook": "storybook-to-ghpages",
3436
"docs": "rm -rf docs && typedoc ./src --out",
3537
"lint": "eslint . --ignore-pattern dist --fix",
36-
"start": "npm run storybook",
37-
"test": "npm run build && jest && tsc",
38+
"prepare": "husky install",
3839
"release": "standard-version",
40+
"start": "npm run storybook",
3941
"storybook": "start-storybook -p 6006",
40-
"build-storybook": "build-storybook",
41-
"deploy-storybook": "storybook-to-ghpages",
42-
"prepare": "husky install"
42+
"test": "npm run build && jest && tsc"
4343
},
4444
"commitlint": {
4545
"extends": [
@@ -72,59 +72,59 @@
7272
"import/prefer-default-export": "off"
7373
}
7474
},
75+
"release": {
76+
"branches": [
77+
"main"
78+
]
79+
},
7580
"jest": {
7681
"preset": "ts-jest",
7782
"testEnvironment": "jsdom"
7883
},
7984
"devDependencies": {
80-
"@commitlint/cli": "^13.2.1",
81-
"@commitlint/config-conventional": "^13.2.0",
82-
"@storybook/addon-actions": "^6.3.7",
83-
"@storybook/addon-essentials": "^6.3.7",
84-
"@storybook/addon-links": "^6.3.7",
85-
"@storybook/react": "^6.3.7",
86-
"@storybook/storybook-deployer": "^2.8.11",
87-
"@testing-library/jest-dom": "^5.16.3",
88-
"@testing-library/react": "^12.1.3",
89-
"@types/jest": "^27.0.2",
90-
"@types/react": "^17.0.38",
91-
"@types/react-addons-test-utils": "^0.14.26",
92-
"@types/react-dom": "^17.0.11",
93-
"@types/wavesurfer.js": "^5.2.2",
94-
"@typescript-eslint/eslint-plugin": "^4.33.0",
95-
"canvas": "^2.9.0",
96-
"eslint": "7.32.0",
97-
"eslint-config-airbnb": "18.2.1",
98-
"eslint-config-bliss-typescript": "^5.0.0",
99-
"eslint-plugin-import": "^2.24.2",
100-
"eslint-plugin-jsx-a11y": "^6.4.1",
101-
"eslint-plugin-react": "^7.24.0",
102-
"eslint-plugin-react-hooks": "4.2.0",
103-
"gh-pages": "^3.2.3",
104-
"husky": "^7.0.4",
105-
"jest": "^27.1.0",
106-
"prettier": "^2.3.2",
107-
"react": "^17.0.2",
108-
"react-dom": "^17.0.2",
109-
"standard-version": "^9.3.2",
110-
"ts-jest": "^27.0.5",
111-
"typedoc": "^0.21.9",
112-
"typescript": "^4.4.3",
113-
"wavesurfer.js": "^5.2.0"
85+
"@commitlint/cli": "^17.1.2",
86+
"@commitlint/config-conventional": "^17.1.0",
87+
"@storybook/addon-actions": "^6.5.10",
88+
"@storybook/addon-essentials": "^6.5.10",
89+
"@storybook/addon-links": "^6.5.10",
90+
"@storybook/react": "^6.5.10",
91+
"@storybook/storybook-deployer": "^2.8.12",
92+
"@testing-library/jest-dom": "^5.16.5",
93+
"@testing-library/react": "^13.3.0",
94+
"@types/jest": "^29.0.0",
95+
"@types/react": "^18.0.18",
96+
"@types/react-dom": "^18.0.6",
97+
"@types/wavesurfer.js": "^6.0.3",
98+
"@typescript-eslint/eslint-plugin": "^5.36.1",
99+
"canvas": "^2.9.3",
100+
"eslint": "8.23.0",
101+
"eslint-config-airbnb": "19.0.4",
102+
"eslint-config-bliss-typescript": "^6.0.1",
103+
"eslint-plugin-import": "^2.26.0",
104+
"eslint-plugin-jsx-a11y": "^6.6.1",
105+
"eslint-plugin-react": "^7.31.4",
106+
"eslint-plugin-react-hooks": "4.6.0",
107+
"gh-pages": "^4.0.0",
108+
"husky": "^8.0.1",
109+
"jest": "^28.1.3",
110+
"jest-environment-jsdom": "^29.0.2",
111+
"prettier": "^2.7.1",
112+
"react": "^18.2.0",
113+
"react-dom": "^18.2.0",
114+
"standard-version": "^9.5.0",
115+
"ts-jest": "^28.0.8",
116+
"typedoc": "^0.23.14",
117+
"typescript": "^4.8.2",
118+
"wavesurfer.js": "^6.2.0"
114119
},
115120
"peerDependencies": {
116121
"react": ">=17.0.2",
117122
"react-dom": ">=17.0.2",
118-
"wavesurfer.js": "^5.2.0"
123+
"wavesurfer.js": "5.x.x || 6.x.x"
119124
},
120125
"renovate": {
121126
"extends": [
122127
"bliss"
123128
]
124-
},
125-
"release": {
126-
"branches": [
127-
"main"
128-
]
129129
}
130130
}

src/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import React, { Component, ReactElement } from "react";
1+
import React, {
2+
Component,
3+
ReactElement,
4+
ReactNode,
5+
} from "react";
26
import WaveSurfer from "wavesurfer.js";
37
import { WaveSurferParams } from "wavesurfer.js/types/params";
48
import { ListenerDescriptor } from "wavesurfer.js/types/util";
@@ -102,6 +106,7 @@ export interface Props extends Omit<WaveSurferParams, "container"> {
102106
// pxPerSec Number of horizontal pixels per second of
103107
// audio, if none is set the waveform returns to unzoomed state
104108
onZoom?: (pxPerSec: number) => void;
109+
children?: ReactNode;
105110
}
106111

107112
type State = {

storybook-static/0.e5489f12ab94aa497491.manager.bundle.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

storybook-static/0.e5489f12ab94aa497491.manager.bundle.js.LICENSE.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

storybook-static/1.7d0dd704b26935d06a04.manager.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

storybook-static/10.398dd7a0522c1ff2b3a8.manager.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

storybook-static/5.23ef655b5acff6eac8ad.manager.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

storybook-static/6.d2f96bcf3b11b0f1a44b.manager.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

storybook-static/7.a1c5467faea0833b53d1.manager.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

storybook-static/8.65ec2749796fb05c258c.manager.bundle.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

storybook-static/8.65ec2749796fb05c258c.manager.bundle.js.LICENSE.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.

storybook-static/9.acd0ef9064e0667433ac.manager.bundle.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

storybook-static/9.acd0ef9064e0667433ac.manager.bundle.js.LICENSE.txt

Lines changed: 0 additions & 31 deletions
This file was deleted.

storybook-static/favicon.ico

-32.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)