Skip to content

Commit 67739a4

Browse files
committed
feat: support CSP
1 parent 5bff736 commit 67739a4

File tree

2 files changed

+36
-19
lines changed

2 files changed

+36
-19
lines changed

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,23 @@
4242
"dependencies": {
4343
"aria-hidden": "^1.1.1",
4444
"react-focus-lock": "^2.2.1",
45-
"react-remove-scroll": "^2.2.0",
46-
"react-style-singleton": "^2.0.0",
47-
"use-callback-ref": "^1.2.1",
45+
"react-remove-scroll": "^2.3.0",
46+
"react-style-singleton": "^2.1.0",
47+
"use-callback-ref": "^1.2.3",
4848
"use-sidecar": "^1.0.1"
4949
},
5050
"engines": {
5151
"node": ">=8.5.0"
5252
},
5353
"peerDependencies": {
54+
"@types/react": "^16.8.0",
5455
"react": "^16.8.0"
5556
},
57+
"peerDependenciesMeta": {
58+
"@types/react": {
59+
"optional": true
60+
}
61+
},
5662
"jsnext:main": "dist/es2015/index.js",
5763
"module": "dist/es2015/index.js",
5864
"types": "dist/es5/index.d.ts",

yarn.lock

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4668,6 +4668,11 @@ get-caller-file@^2.0.1:
46684668
resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e"
46694669
integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==
46704670

4671+
get-nonce@^1.0.0:
4672+
version "1.0.0"
4673+
resolved "https://registry.yarnpkg.com/get-nonce/-/get-nonce-1.0.0.tgz#ac4439ffe3cb7577e69e86c25fda687f09889b0b"
4674+
integrity sha512-zaQIwI5ynNwHZdbm98YbHQuCtr6s0nHM+1jbiIVUntwwdrI4p4DfYORynZCE9p/tCm6cXprx6MuWiPnBYh1zOA==
4675+
46714676
get-pkg-repo@^1.0.0:
46724677
version "1.4.0"
46734678
resolved "https://registry.yarnpkg.com/get-pkg-repo/-/get-pkg-repo-1.4.0.tgz#c73b489c06d80cc5536c2c853f9e05232056972d"
@@ -8623,30 +8628,31 @@ react-powerplug@^1.0.0:
86238628
dependencies:
86248629
"@babel/runtime" "^7.0.0"
86258630

8626-
react-remove-scroll-bar@^2.0.0:
8627-
version "2.0.0"
8628-
resolved "https://registry.yarnpkg.com/react-remove-scroll-bar/-/react-remove-scroll-bar-2.0.0.tgz#94437a7f3dbda99817ff64b928ee206e298ba157"
8629-
integrity sha512-HSdWZ+6vV6X1btLRhQlIcFulaMePCyg0Un2oXMmDdq8lK9KPUMSnWYINYWVCdgT35em9hiUaR8frBN1PYYLLpQ==
8631+
react-remove-scroll-bar@^2.1.0:
8632+
version "2.1.0"
8633+
resolved "https://registry.yarnpkg.com/react-remove-scroll-bar/-/react-remove-scroll-bar-2.1.0.tgz#edafe9b42a42c0dad9bdd10712772a1f9a39d7b9"
8634+
integrity sha512-5X5Y5YIPjIPrAoMJxf6Pfa7RLNGCgwZ95TdnVPgPuMftRfO8DaC7F4KP1b5eiO8hHbe7u+wZNDbYN5WUTpv7+g==
86308635
dependencies:
8631-
react-style-singleton "^2.0.0"
8636+
react-style-singleton "^2.1.0"
86328637
tslib "^1.0.0"
86338638

8634-
react-remove-scroll@^2.2.0:
8635-
version "2.2.0"
8636-
resolved "https://registry.yarnpkg.com/react-remove-scroll/-/react-remove-scroll-2.2.0.tgz#f42e6a4791ebfcce2c96f970d24deb1399fa9550"
8637-
integrity sha512-bT29xAkNuhS2tnsxhLNJrmmb6Rn8VsnlOfSoRaKdKi90DbhRcQfJ9vHG1TtgfkCP+rx059vCGIScPZaCWsyIKA==
8639+
react-remove-scroll@^2.3.0:
8640+
version "2.3.0"
8641+
resolved "https://registry.yarnpkg.com/react-remove-scroll/-/react-remove-scroll-2.3.0.tgz#3af06fe2f7130500704b676cdef94452c08fe593"
8642+
integrity sha512-UqVimLeAe+5EHXKfsca081hAkzg3WuDmoT9cayjBegd6UZVhlTEchleNp9J4TMGkb/ftLve7ARB5Wph+HJ7A5g==
86388643
dependencies:
8639-
react-remove-scroll-bar "^2.0.0"
8640-
react-style-singleton "^2.0.0"
8644+
react-remove-scroll-bar "^2.1.0"
8645+
react-style-singleton "^2.1.0"
86418646
tslib "^1.0.0"
8642-
use-callback-ref "^1.2.1"
8647+
use-callback-ref "^1.2.3"
86438648
use-sidecar "^1.0.1"
86448649

8645-
react-style-singleton@^2.0.0:
8646-
version "2.0.0"
8647-
resolved "https://registry.yarnpkg.com/react-style-singleton/-/react-style-singleton-2.0.0.tgz#fdc9ff3a82674c256f0033d140b7b1d9d37e7f17"
8648-
integrity sha512-1Kw9G/b7EqLspjtiKsC9jtoqkx+RAti+8PmBe47ioKTcdhB3gtaKw2Lc3Hsud/VrXh+QECZKmr2yDCwR7ObNtA==
8650+
react-style-singleton@^2.1.0:
8651+
version "2.1.0"
8652+
resolved "https://registry.yarnpkg.com/react-style-singleton/-/react-style-singleton-2.1.0.tgz#7396885332e9729957f9df51f08cadbfc164e1c4"
8653+
integrity sha512-DH4ED+YABC1dhvSDYGGreAHmfuTXj6+ezT3CmHoqIEfxNgEYfIMoOtmbRp42JsUst3IPqBTDL+8r4TF7EWhIHw==
86498654
dependencies:
8655+
get-nonce "^1.0.0"
86508656
invariant "^2.2.4"
86518657
tslib "^1.0.0"
86528658

@@ -10444,6 +10450,11 @@ use-callback-ref@^1.2.1:
1044410450
resolved "https://registry.yarnpkg.com/use-callback-ref/-/use-callback-ref-1.2.1.tgz#898759ccb9e14be6c7a860abafa3ffbd826c89bb"
1044510451
integrity sha512-C3nvxh0ZpaOxs9RCnWwAJ+7bJPwQI8LHF71LzbQ3BvzH5XkdtlkMadqElGevg5bYBDFip4sAnD4m06zAKebg1w==
1044610452

10453+
use-callback-ref@^1.2.3:
10454+
version "1.2.3"
10455+
resolved "https://registry.yarnpkg.com/use-callback-ref/-/use-callback-ref-1.2.3.tgz#9f939dfb5740807bbf9dd79cdd4e99d27e827756"
10456+
integrity sha512-DPBPh1i2adCZoIArRlTuKRy7yue7QogtEnfv0AKrWsY+GA+4EKe37zhRDouNnyWMoNQFYZZRF+2dLHsWE4YvJA==
10457+
1044710458
use-sidecar@^1.0.1:
1044810459
version "1.0.1"
1044910460
resolved "https://registry.yarnpkg.com/use-sidecar/-/use-sidecar-1.0.1.tgz#75c7a5fdacc14bd3ab64992c638e45a396ad2fad"

0 commit comments

Comments
 (0)