From 0a3d291949d5a256ed184aa592413d84205c5878 Mon Sep 17 00:00:00 2001 From: Ivan Voskoboinyk Date: Fri, 10 May 2024 14:32:27 +0200 Subject: [PATCH 1/2] [CARE-4941] Bump dependencies --- package-lock.json | 139 +++++++++++++++++++--------------------------- package.json | 12 ++-- 2 files changed, 64 insertions(+), 87 deletions(-) diff --git a/package-lock.json b/package-lock.json index bb613256..35942f87 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,13 +12,13 @@ "@hcaptcha/react-hcaptcha": "1.9.3", "@headlessui/react": "1.7.18", "@playwright/test": "^1.33.0", - "@prezly/analytics-nextjs": "2.1.4", - "@prezly/content-renderer-react-js": "0.36.2", - "@prezly/sdk": "18.3.0", + "@prezly/analytics-nextjs": "3.0.0", + "@prezly/content-renderer-react-js": "0.37.0", + "@prezly/sdk": "21.0.0", "@prezly/story-content-format": "0.64.0", - "@prezly/theme-kit-core": "7.2.0", - "@prezly/theme-kit-intl": "7.2.0", - "@prezly/theme-kit-nextjs": "7.3.0", + "@prezly/theme-kit-core": "7.4.0", + "@prezly/theme-kit-intl": "7.4.0", + "@prezly/theme-kit-nextjs": "7.4.0", "@prezly/uploadcare": "2.4.4", "@prezly/uploadcare-image": "0.3.2", "@react-hookz/web": "14.7.1", @@ -2649,9 +2649,9 @@ "dev": true }, "node_modules/@prezly/analytics-nextjs": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@prezly/analytics-nextjs/-/analytics-nextjs-2.1.4.tgz", - "integrity": "sha512-k3uPTT82Kh/s6baq4aIYlq3f+MT0HioXLQlNA2IzPrPzeQtbWe9yNXA/xZ0xxcUPq+GHNVgn9qvMOvoftso83w==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@prezly/analytics-nextjs/-/analytics-nextjs-3.0.0.tgz", + "integrity": "sha512-6xF9zuuAE6uUKemAqfQKDLYoxHii4jhypngILcGuh1Pbn5o7nrHqFUmYIFtnXcKRYMFQLlrC1Y8dJ9mVJZPyUA==", "dependencies": { "@react-hookz/web": "^14.2.2", "@segment/analytics-next": "^1.66.0", @@ -2674,12 +2674,12 @@ } }, "node_modules/@prezly/content-renderer-react-js": { - "version": "0.36.2", - "resolved": "https://registry.npmjs.org/@prezly/content-renderer-react-js/-/content-renderer-react-js-0.36.2.tgz", - "integrity": "sha512-vO3TQ/zSj10GWH+h2kapDaX5OA3s6BPzcqmgF8yiBCtqfgFP4mev5FQFF0VPbLgdCBl6/WQfIi8uxmipAy98ug==", + "version": "0.37.0", + "resolved": "https://registry.npmjs.org/@prezly/content-renderer-react-js/-/content-renderer-react-js-0.37.0.tgz", + "integrity": "sha512-gUB0CWlrT+PZ2rejjQxdsmF/3AE15Q3aRDfJnvbtmtVH35uqzYmJl1Hd9f1uN5tO4mAifxjcAbvIDuxHdVTirQ==", "dependencies": { "@prezly/linear-partition": "^1.0.2", - "@prezly/sdk": "^20.0.0", + "@prezly/sdk": "^21.0.0", "@prezly/story-content-format": "^0.64.0", "@prezly/uploadcare": "^2.4.4", "@react-hookz/web": "^12.0.0", @@ -2695,19 +2695,6 @@ "react-dom": "18" } }, - "node_modules/@prezly/content-renderer-react-js/node_modules/@prezly/sdk": { - "version": "20.3.0", - "resolved": "https://registry.npmjs.org/@prezly/sdk/-/sdk-20.3.0.tgz", - "integrity": "sha512-fPUNmFpEry9hUsKCsEQBTKSwiAffl0soFEZ8LLTmiXyvwnKtRPBu17BxNatyRIMO63tZXTmx/rPcMJmvyzzDpw==", - "dependencies": { - "@prezly/progress-promise": "^2.0.1", - "@prezly/uploads": "^0.2.1", - "query-string": "^6.14.1" - }, - "engines": { - "node": ">= 16" - } - }, "node_modules/@prezly/content-renderer-react-js/node_modules/@react-hookz/web": { "version": "12.3.0", "resolved": "https://registry.npmjs.org/@react-hookz/web/-/web-12.3.0.tgz", @@ -2768,13 +2755,13 @@ "integrity": "sha512-uKBTA1gZ90ckKK/4wVoVORC3VUTkOgFwhZWwWsceKxVoAgDxqS5s0NXP5V7J+niEdvCkcoEVeCc25kCs+Hr/uQ==" }, "node_modules/@prezly/sdk": { - "version": "18.3.0", - "resolved": "https://registry.npmjs.org/@prezly/sdk/-/sdk-18.3.0.tgz", - "integrity": "sha512-59IJsa1Egm1bZm8v0KZkFQoxPrDILt8HTrRGkol1Dc8kECAzBt0d45auZyRwrJYj1gpZFYcwMzsAN5Tr+StnJg==", + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/@prezly/sdk/-/sdk-21.0.0.tgz", + "integrity": "sha512-XRxcURYRMurgwWIO8mtkq2TD4nNOkcqtDaCjA8JNvYA8ZiFxVzZDmH5wYfPREn2wetTcl9zzehDVHp5SmLRipw==", "dependencies": { "@prezly/progress-promise": "^2.0.1", "@prezly/uploads": "^0.2.1", - "query-string": "^6.9.0" + "query-string": "^6.14.1" }, "engines": { "node": ">= 16" @@ -2791,11 +2778,11 @@ } }, "node_modules/@prezly/theme-kit-core": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@prezly/theme-kit-core/-/theme-kit-core-7.2.0.tgz", - "integrity": "sha512-sef302PFIeWgynsSOALB5Eh1qG4xkyIg5X+VpuZteOmHtdeVddeJXpJf54QImOzLoj0xf7RFFWEbXtOKIBOs4g==", + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@prezly/theme-kit-core/-/theme-kit-core-7.4.0.tgz", + "integrity": "sha512-LlnOh4o8B7W9hYmyq4UhJymy2eLKVL6Ir8xVmNvYomnQwVo1OuDawGi8f+/PNSgOXHAPTue3Rzxz1NletXFevw==", "dependencies": { - "@prezly/theme-kit-intl": "^7.2.0", + "@prezly/theme-kit-intl": "^7.4.0", "@prezly/uploadcare": "^2.3.4", "isomorphic-fetch": "^3.0.0", "parse-data-url": "^4.0.1" @@ -2805,13 +2792,13 @@ "npm": ">= 8.x" }, "peerDependencies": { - "@prezly/sdk": "^18.3.0 || ^19.0.0" + "@prezly/sdk": "21.0.0" } }, "node_modules/@prezly/theme-kit-intl": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@prezly/theme-kit-intl/-/theme-kit-intl-7.2.0.tgz", - "integrity": "sha512-qX1ihKz2m0GWgaZtV7N1/TSpRBDGz3QQdnZyIzQAznliHGkVtvDWYB5AvDi8GzJ2ATzDMM66kJ/9IiknkxueRg==", + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@prezly/theme-kit-intl/-/theme-kit-intl-7.4.0.tgz", + "integrity": "sha512-d0pD76D18dRmC2lgpXhpQi1eM4850g9p4a0Hbb2dLlgsyOqv5l8VN9uADc7cxbZfy8opfPuktUmdcnL40WuLrQ==", "dependencies": { "@formatjs/intl": "^2.0.0" }, @@ -2821,11 +2808,11 @@ } }, "node_modules/@prezly/theme-kit-nextjs": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/@prezly/theme-kit-nextjs/-/theme-kit-nextjs-7.3.0.tgz", - "integrity": "sha512-ErgieWKTZ8BKwq8B+R1t+COo37GBk40ssFA8x9N5PucsJlt36p/wEUJeTGq7RBYetHnT4L500WcEn4zr+SdFWg==", + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@prezly/theme-kit-nextjs/-/theme-kit-nextjs-7.4.0.tgz", + "integrity": "sha512-1k/0YYQCVysSpdOd9qUcjnzs2HAAdBzGVeKu46SMzKI/ULnpBzbRKNuxKwvPMOYXsepcJvWeOtQG2bBf33Ah4w==", "dependencies": { - "@prezly/theme-kit-core": "^7.2.0", + "@prezly/theme-kit-core": "^7.4.0", "@technically/omit-undefined": "^1.0.2", "next-seo": "^5.4.0" }, @@ -2835,7 +2822,7 @@ }, "peerDependencies": { "@playwright/test": "1.x", - "@prezly/sdk": "^18.3.0 || ^19.0.0", + "@prezly/sdk": "21.0.0", "next": "^12.x || ^13.x || ^14.x", "react": "^17.x || ^18.x", "react-dom": "^17.x || ^18.x" @@ -17178,9 +17165,9 @@ } }, "node_modules/whatwg-fetch": { - "version": "3.6.19", - "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.19.tgz", - "integrity": "sha512-d67JP4dHSbm2TrpFj8AbO8DnL1JXL5J9u0Kq2xW6d0TFDbCA3Muhdt8orXC22utleTVj7Prqt82baN6RBvnEgw==" + "version": "3.6.20", + "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.20.tgz", + "integrity": "sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg==" }, "node_modules/whatwg-url": { "version": "5.0.0", @@ -19260,9 +19247,9 @@ "dev": true }, "@prezly/analytics-nextjs": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@prezly/analytics-nextjs/-/analytics-nextjs-2.1.4.tgz", - "integrity": "sha512-k3uPTT82Kh/s6baq4aIYlq3f+MT0HioXLQlNA2IzPrPzeQtbWe9yNXA/xZ0xxcUPq+GHNVgn9qvMOvoftso83w==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@prezly/analytics-nextjs/-/analytics-nextjs-3.0.0.tgz", + "integrity": "sha512-6xF9zuuAE6uUKemAqfQKDLYoxHii4jhypngILcGuh1Pbn5o7nrHqFUmYIFtnXcKRYMFQLlrC1Y8dJ9mVJZPyUA==", "requires": { "@react-hookz/web": "^14.2.2", "@segment/analytics-next": "^1.66.0", @@ -19280,12 +19267,12 @@ } }, "@prezly/content-renderer-react-js": { - "version": "0.36.2", - "resolved": "https://registry.npmjs.org/@prezly/content-renderer-react-js/-/content-renderer-react-js-0.36.2.tgz", - "integrity": "sha512-vO3TQ/zSj10GWH+h2kapDaX5OA3s6BPzcqmgF8yiBCtqfgFP4mev5FQFF0VPbLgdCBl6/WQfIi8uxmipAy98ug==", + "version": "0.37.0", + "resolved": "https://registry.npmjs.org/@prezly/content-renderer-react-js/-/content-renderer-react-js-0.37.0.tgz", + "integrity": "sha512-gUB0CWlrT+PZ2rejjQxdsmF/3AE15Q3aRDfJnvbtmtVH35uqzYmJl1Hd9f1uN5tO4mAifxjcAbvIDuxHdVTirQ==", "requires": { "@prezly/linear-partition": "^1.0.2", - "@prezly/sdk": "^20.0.0", + "@prezly/sdk": "^21.0.0", "@prezly/story-content-format": "^0.64.0", "@prezly/uploadcare": "^2.4.4", "@react-hookz/web": "^12.0.0", @@ -19297,16 +19284,6 @@ "social-links": "^1.10.0" }, "dependencies": { - "@prezly/sdk": { - "version": "20.3.0", - "resolved": "https://registry.npmjs.org/@prezly/sdk/-/sdk-20.3.0.tgz", - "integrity": "sha512-fPUNmFpEry9hUsKCsEQBTKSwiAffl0soFEZ8LLTmiXyvwnKtRPBu17BxNatyRIMO63tZXTmx/rPcMJmvyzzDpw==", - "requires": { - "@prezly/progress-promise": "^2.0.1", - "@prezly/uploads": "^0.2.1", - "query-string": "^6.14.1" - } - }, "@react-hookz/web": { "version": "12.3.0", "resolved": "https://registry.npmjs.org/@react-hookz/web/-/web-12.3.0.tgz", @@ -19354,13 +19331,13 @@ "integrity": "sha512-uKBTA1gZ90ckKK/4wVoVORC3VUTkOgFwhZWwWsceKxVoAgDxqS5s0NXP5V7J+niEdvCkcoEVeCc25kCs+Hr/uQ==" }, "@prezly/sdk": { - "version": "18.3.0", - "resolved": "https://registry.npmjs.org/@prezly/sdk/-/sdk-18.3.0.tgz", - "integrity": "sha512-59IJsa1Egm1bZm8v0KZkFQoxPrDILt8HTrRGkol1Dc8kECAzBt0d45auZyRwrJYj1gpZFYcwMzsAN5Tr+StnJg==", + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/@prezly/sdk/-/sdk-21.0.0.tgz", + "integrity": "sha512-XRxcURYRMurgwWIO8mtkq2TD4nNOkcqtDaCjA8JNvYA8ZiFxVzZDmH5wYfPREn2wetTcl9zzehDVHp5SmLRipw==", "requires": { "@prezly/progress-promise": "^2.0.1", "@prezly/uploads": "^0.2.1", - "query-string": "^6.9.0" + "query-string": "^6.14.1" } }, "@prezly/story-content-format": { @@ -19374,30 +19351,30 @@ } }, "@prezly/theme-kit-core": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@prezly/theme-kit-core/-/theme-kit-core-7.2.0.tgz", - "integrity": "sha512-sef302PFIeWgynsSOALB5Eh1qG4xkyIg5X+VpuZteOmHtdeVddeJXpJf54QImOzLoj0xf7RFFWEbXtOKIBOs4g==", + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@prezly/theme-kit-core/-/theme-kit-core-7.4.0.tgz", + "integrity": "sha512-LlnOh4o8B7W9hYmyq4UhJymy2eLKVL6Ir8xVmNvYomnQwVo1OuDawGi8f+/PNSgOXHAPTue3Rzxz1NletXFevw==", "requires": { - "@prezly/theme-kit-intl": "^7.2.0", + "@prezly/theme-kit-intl": "^7.4.0", "@prezly/uploadcare": "^2.3.4", "isomorphic-fetch": "^3.0.0", "parse-data-url": "^4.0.1" } }, "@prezly/theme-kit-intl": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@prezly/theme-kit-intl/-/theme-kit-intl-7.2.0.tgz", - "integrity": "sha512-qX1ihKz2m0GWgaZtV7N1/TSpRBDGz3QQdnZyIzQAznliHGkVtvDWYB5AvDi8GzJ2ATzDMM66kJ/9IiknkxueRg==", + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@prezly/theme-kit-intl/-/theme-kit-intl-7.4.0.tgz", + "integrity": "sha512-d0pD76D18dRmC2lgpXhpQi1eM4850g9p4a0Hbb2dLlgsyOqv5l8VN9uADc7cxbZfy8opfPuktUmdcnL40WuLrQ==", "requires": { "@formatjs/intl": "^2.0.0" } }, "@prezly/theme-kit-nextjs": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/@prezly/theme-kit-nextjs/-/theme-kit-nextjs-7.3.0.tgz", - "integrity": "sha512-ErgieWKTZ8BKwq8B+R1t+COo37GBk40ssFA8x9N5PucsJlt36p/wEUJeTGq7RBYetHnT4L500WcEn4zr+SdFWg==", + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@prezly/theme-kit-nextjs/-/theme-kit-nextjs-7.4.0.tgz", + "integrity": "sha512-1k/0YYQCVysSpdOd9qUcjnzs2HAAdBzGVeKu46SMzKI/ULnpBzbRKNuxKwvPMOYXsepcJvWeOtQG2bBf33Ah4w==", "requires": { - "@prezly/theme-kit-core": "^7.2.0", + "@prezly/theme-kit-core": "^7.4.0", "@technically/omit-undefined": "^1.0.2", "next-seo": "^5.4.0" } @@ -28547,9 +28524,9 @@ "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==" }, "whatwg-fetch": { - "version": "3.6.19", - "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.19.tgz", - "integrity": "sha512-d67JP4dHSbm2TrpFj8AbO8DnL1JXL5J9u0Kq2xW6d0TFDbCA3Muhdt8orXC22utleTVj7Prqt82baN6RBvnEgw==" + "version": "3.6.20", + "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.20.tgz", + "integrity": "sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg==" }, "whatwg-url": { "version": "5.0.0", diff --git a/package.json b/package.json index 5b032b68..08854c2a 100644 --- a/package.json +++ b/package.json @@ -29,13 +29,13 @@ "@hcaptcha/react-hcaptcha": "1.9.3", "@headlessui/react": "1.7.18", "@playwright/test": "^1.33.0", - "@prezly/analytics-nextjs": "2.1.4", - "@prezly/content-renderer-react-js": "0.36.2", - "@prezly/sdk": "18.3.0", + "@prezly/analytics-nextjs": "3.0.0", + "@prezly/content-renderer-react-js": "0.37.0", + "@prezly/sdk": "21.0.0", "@prezly/story-content-format": "0.64.0", - "@prezly/theme-kit-core": "7.2.0", - "@prezly/theme-kit-intl": "7.2.0", - "@prezly/theme-kit-nextjs": "7.3.0", + "@prezly/theme-kit-core": "7.4.0", + "@prezly/theme-kit-intl": "7.4.0", + "@prezly/theme-kit-nextjs": "7.4.0", "@prezly/uploadcare": "2.4.4", "@prezly/uploadcare-image": "0.3.2", "@react-hookz/web": "14.7.1", From c706213737f99dfa43f552158a22124967f9ee57 Mon Sep 17 00:00:00 2001 From: Ivan Voskoboinyk Date: Fri, 10 May 2024 14:33:22 +0200 Subject: [PATCH 2/2] [CARE-4941] Update usages of @prezly/analytics to the latest API --- modules/Layout/Layout.tsx | 4 ++-- pages/_app.tsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/Layout/Layout.tsx b/modules/Layout/Layout.tsx index 2ad00d71..18929afa 100644 --- a/modules/Layout/Layout.tsx +++ b/modules/Layout/Layout.tsx @@ -1,4 +1,4 @@ -import { Analytics, useAnalytics } from '@prezly/analytics-nextjs'; +import { Tracking, useAnalytics } from '@prezly/analytics-nextjs'; import { Notification, Story } from '@prezly/sdk'; import { PageSeo, @@ -94,7 +94,7 @@ function Layout({ children, description, imageUrl, title, hasError }: PropsWithC return ( <> - + - - + );