Skip to content

Commit

Permalink
refactor: migrate to consent manager v1
Browse files Browse the repository at this point in the history
  • Loading branch information
axe312ger committed Dec 19, 2023
1 parent 94eec0b commit 57c1adb
Show file tree
Hide file tree
Showing 8 changed files with 194 additions and 142 deletions.
10 changes: 5 additions & 5 deletions create-react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
"private": true,
"version": "0.0.1",
"dependencies": {
"@consent-manager/core": "0.0.1",
"@consent-manager/core": "next",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^13.1.9",
"@types/jest": "^26.0.24",
"@types/node": "^16.3.1",
"@types/react": "^17.0.14",
"@types/react-dom": "^17.0.9",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.18",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "4.0.3",
"typescript": "^4.3.5",
"web-vitals": "^2.1.0"
Expand Down
56 changes: 31 additions & 25 deletions create-react-app/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1203,10 +1203,10 @@
exec-sh "^0.3.2"
minimist "^1.2.0"

"@consent-manager/core@0.0.1":
version "0.0.1"
resolved "https://registry.yarnpkg.com/@consent-manager/core/-/core-0.0.1.tgz#a4e9601b59f4cc529c9155265847744259745125"
integrity sha512-M3A04rb1hPasW75JE8/9rUwkpo9S6mU2YAMZYvzK3LyRxA8Vp6zJ90fyIX7oZ4ox05KAAtQ7Yagahyv4zDFfKQ==
"@consent-manager/core@next":
version "2.0.0-next.0"
resolved "https://registry.yarnpkg.com/@consent-manager/core/-/core-2.0.0-next.0.tgz#339bd5196cb3595f5d2d95407b3e79e004455288"
integrity sha512-AmSfp7BYOh9aatR94eoUoM8KFr6RZkYvLsU0PY97eTMU/wRdNQGxH2os/4xCu5I9RwnckGxb7CjW8lBw45Yp9Q==
dependencies:
"@types/history" "^4.7.8"
history "^5.0.0"
Expand Down Expand Up @@ -1875,14 +1875,14 @@
resolved "https://registry.yarnpkg.com/@types/q/-/q-1.5.2.tgz#690a1475b84f2a884fd07cd797c00f5f31356ea8"
integrity sha512-ce5d3q03Ex0sy4R14722Rmt6MT07Ua+k4FwDfdcToYJcMKNtRVQvJ6JCAPdAmAnbRb6CsX6aYb9m96NGod9uTw==

"@types/react-dom@^17.0.9":
version "17.0.9"
resolved "https://registry.npmjs.org/@types/react-dom/-/react-dom-17.0.9.tgz#441a981da9d7be117042e1a6fd3dac4b30f55add"
integrity sha512-wIvGxLfgpVDSAMH5utdL9Ngm5Owu0VsGmldro3ORLXV8CShrL8awVj06NuEXFQ5xyaYfdca7Sgbk/50Ri1GdPg==
"@types/react-dom@^18.2.18":
version "18.2.18"
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.18.tgz#16946e6cd43971256d874bc3d0a72074bb8571dd"
integrity sha512-TJxDm6OfAX2KJWJdMEVTwWke5Sc/E/RlnPGvGfS0W7+6ocy2xhDVQVh/KvC2Uf7kACs+gDytdusDSdWfWkaNzw==
dependencies:
"@types/react" "*"

"@types/react@*", "@types/react@^17.0.14":
"@types/react@*":
version "17.0.14"
resolved "https://registry.npmjs.org/@types/react/-/react-17.0.14.tgz#f0629761ca02945c4e8fea99b8177f4c5c61fb0f"
integrity sha512-0WwKHUbWuQWOce61UexYuWTGuGY/8JvtUe/dtQ6lR4sZ3UiylHotJeWpf3ArP9+DSGUoLY3wbU59VyMrJps5VQ==
Expand All @@ -1891,6 +1891,15 @@
"@types/scheduler" "*"
csstype "^3.0.2"

"@types/react@^18.2.45":
version "18.2.45"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.45.tgz#253f4fac288e7e751ab3dc542000fb687422c15c"
integrity sha512-TtAxCNrlrBp8GoeEp1npd5g+d/OejJHFxS3OWmrPBMFaVQMSN0OFySozJio5BHxTuTeug00AVXVAjfDSfk+lUg==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
csstype "^3.0.2"

"@types/[email protected]":
version "0.0.8"
resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-0.0.8.tgz#f26074d238e02659e323ce1a13d041eee280e194"
Expand Down Expand Up @@ -9151,14 +9160,13 @@ react-dev-utils@^11.0.3:
strip-ansi "6.0.0"
text-table "0.2.0"

react-dom@^17.0.2:
version "17.0.2"
resolved "https://registry.npmjs.org/react-dom/-/react-dom-17.0.2.tgz#ecffb6845e3ad8dbfcdc498f0d0a939736502c23"
integrity sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==
react-dom@^18.2.0:
version "18.2.0"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.2.0.tgz#22aaf38708db2674ed9ada224ca4aa708d821e3d"
integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"
scheduler "^0.20.2"
scheduler "^0.23.0"

react-error-overlay@^6.0.9:
version "6.0.9"
Expand Down Expand Up @@ -9271,13 +9279,12 @@ react-use@^17.2.4:
ts-easing "^0.2.0"
tslib "^2.1.0"

react@^17.0.2:
version "17.0.2"
resolved "https://registry.npmjs.org/react/-/react-17.0.2.tgz#d0b5cc516d29eb3eee383f75b62864cfb6800037"
integrity sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==
react@^18.2.0:
version "18.2.0"
resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5"
integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"

read-pkg-up@^2.0.0:
version "2.0.0"
Expand Down Expand Up @@ -9805,13 +9812,12 @@ saxes@^5.0.0:
dependencies:
xmlchars "^2.2.0"

scheduler@^0.20.2:
version "0.20.2"
resolved "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz#4baee39436e34aa93b4874bddcbf0fe8b8b50e91"
integrity sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==
scheduler@^0.23.0:
version "0.23.0"
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.23.0.tgz#ba8041afc3d30eb206a487b6b384002e4e61fdfe"
integrity sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"

schema-utils@^1.0.0:
version "1.0.0"
Expand Down
10 changes: 5 additions & 5 deletions gatsby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"private": true,
"version": "0.0.1",
"dependencies": {
"@consent-manager/core": "0.0.1",
"@consent-manager/integration-matomo": "0.0.1",
"@consent-manager/integration-youtube": "0.0.1",
"@consent-manager/core": "1.0.1",
"@consent-manager/integration-matomo": "1.0.0",
"@consent-manager/integration-youtube": "1.0.0",
"autoprefixer": "^10.2.5",
"final-form": "^4.20.2",
"gatsby": "3.9.1",
Expand All @@ -20,8 +20,8 @@
"gatsby-transformer-sharp": "3.9.0",
"postcss": "^8.2.8",
"prop-types": "^15.7.2",
"react": "17.0.2",
"react-dom": "17.0.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-final-form": "^6.5.2",
"react-helmet": "^6.1.0",
"react-icons": "^4.2.0",
Expand Down
53 changes: 25 additions & 28 deletions gatsby/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1043,27 +1043,27 @@
"@babel/helper-validator-identifier" "^7.14.5"
to-fast-properties "^2.0.0"

"@consent-manager/core@0.0.1":
version "0.0.1"
resolved "https://registry.yarnpkg.com/@consent-manager/core/-/core-0.0.1.tgz#a4e9601b59f4cc529c9155265847744259745125"
integrity sha512-M3A04rb1hPasW75JE8/9rUwkpo9S6mU2YAMZYvzK3LyRxA8Vp6zJ90fyIX7oZ4ox05KAAtQ7Yagahyv4zDFfKQ==
"@consent-manager/core@1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@consent-manager/core/-/core-1.0.1.tgz#ce90078d9506a1ac5f9c52906c900d6bd8174659"
integrity sha512-SNbrOEziJiK8Aah11MJRJp7kJSzd25vt0D9u8fxts98ByO37EItmbWfRLbMTzfHbHZGLMK4ALnp+IjZgifuq+g==
dependencies:
"@types/history" "^4.7.8"
history "^5.0.0"
react-use "^17.2.4"
wcag-contrast "^3.0.0"

"@consent-manager/integration-matomo@0.0.1":
version "0.0.1"
resolved "https://registry.yarnpkg.com/@consent-manager/integration-matomo/-/integration-matomo-0.0.1.tgz#2ea03039452d865587850cf673eb8fcc8bc5e2ee"
integrity sha512-O1QIoejbW253kn2E8DGyq4gqv/vPb4c9/F/ytwE6hv0qQ/LuNsdYKR0sjzlsX+H0ZZxhmSHCCaiRy5T3DIJTHQ==
"@consent-manager/integration-matomo@1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@consent-manager/integration-matomo/-/integration-matomo-1.0.0.tgz#7c9fb40ebd46d43f10d696d3026e6987eed8a6c7"
integrity sha512-aMXBxBFVnxU7+W/tlbewy/SmhrZTfs26cTFu8FGjxk+gDv66ivYgfyl2bX5r4didatvEcup+IHJhcRCv6Thaaw==
dependencies:
simple-icons "^4.14.0"

"@consent-manager/integration-youtube@0.0.1":
version "0.0.1"
resolved "https://registry.yarnpkg.com/@consent-manager/integration-youtube/-/integration-youtube-0.0.1.tgz#2a702372512ea12a8e3b881c41847b6585e1f2bb"
integrity sha512-2FplJX8tVNaoCCR1gu6lG2R/NWuxhMtO5p/e+ZpExbU44ukSc/rj2rtNLgtdks2WkQsVgfFfE7QRZDRcJ0pTCQ==
"@consent-manager/integration-youtube@1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@consent-manager/integration-youtube/-/integration-youtube-1.0.0.tgz#07116597a07ba7b0ea7ce343acf8949f6bc02539"
integrity sha512-vmDHkFZEnNsvFhlBynGHCTmBAWF1Zw/TB97hhaW1zFQdEuuRQxdkUFQxFvD7/Qk5aIhuxXy3sFfTBU9CJvoxCw==
dependencies:
simple-icons "^4.14.0"

Expand Down Expand Up @@ -10461,14 +10461,13 @@ react-dev-utils@^11.0.3:
strip-ansi "6.0.0"
text-table "0.2.0"

react-dom@17.0.2:
version "17.0.2"
resolved "https://registry.npmjs.org/react-dom/-/react-dom-17.0.2.tgz#ecffb6845e3ad8dbfcdc498f0d0a939736502c23"
integrity sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==
react-dom@18.2.0:
version "18.2.0"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.2.0.tgz#22aaf38708db2674ed9ada224ca4aa708d821e3d"
integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"
scheduler "^0.20.2"
scheduler "^0.23.0"

react-error-overlay@^6.0.9:
version "6.0.9"
Expand Down Expand Up @@ -10556,13 +10555,12 @@ react-youtube@^7.13.1:
prop-types "15.7.2"
youtube-player "5.5.2"

react@17.0.2:
version "17.0.2"
resolved "https://registry.npmjs.org/react/-/react-17.0.2.tgz#d0b5cc516d29eb3eee383f75b62864cfb6800037"
integrity sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==
react@18.2.0:
version "18.2.0"
resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5"
integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"

read-pkg-up@^1.0.1:
version "1.0.1"
Expand Down Expand Up @@ -11093,13 +11091,12 @@ sax@>=0.6.0, sax@^1.2.4, sax@~1.2.4:
resolved "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==

scheduler@^0.20.2:
version "0.20.2"
resolved "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz#4baee39436e34aa93b4874bddcbf0fe8b8b50e91"
integrity sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==
scheduler@^0.23.0:
version "0.23.0"
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.23.0.tgz#ba8041afc3d30eb206a487b6b384002e4e61fdfe"
integrity sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"

schema-utils@^1.0.0:
version "1.0.0"
Expand Down
12 changes: 6 additions & 6 deletions nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"lint": "next lint"
},
"dependencies": {
"@consent-manager/core": "0.0.1",
"@consent-manager/integration-matomo": "0.0.1",
"@consent-manager/interface-default": "0.0.1",
"@consent-manager/core": "1.0.1",
"@consent-manager/integration-matomo": "1.0.0",
"@consent-manager/interface-default": "1.0.2",
"next": "11.0.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"use-persisted-state": "^0.3.3"
},
"devDependencies": {
"@types/react": "17.0.14",
"@types/react": "18.2.45",
"@types/use-persisted-state": "^0.3.0",
"eslint": "7.30.0",
"eslint-config-next": "11.0.1",
Expand Down
Loading

0 comments on commit 57c1adb

Please sign in to comment.