diff --git a/package.json b/package.json index c907622ec4..d1543d5d77 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "@nuxtjs/sentry": "^5.1.7", "@nuxtjs/sitemap": "^2.4.0", "@nuxtjs/svg": "^0.4.0", - "@pinia/nuxt": "0.2.1", + "@pinia/nuxt": "^0.1.8", "@popperjs/core": "^2.11.2", "@tailwindcss/line-clamp": "^0.3.1", "@tailwindcss/typography": "^0.5.2", @@ -88,12 +88,12 @@ "glob": "^8.0.1", "node-html-parser": "^5.3.3", "nuxt": "^2.15.4", - "pinia": "^2.0.16", + "pinia": "^2.0.13", "postcss-focus-visible": "^6.0.4", "prom-client": "^14.0.1", "rfdc": "^1.3.0", "seeded-rand": "^2.0.1", - "throttle-debounce": "^5.0.0", + "throttle-debounce": "^4.0.1", "uuid": "^8.3.2", "vue": "^2.7.8", "vue-i18n": "^8.26.7" @@ -121,7 +121,6 @@ "@types/lodash.sortby": "^4.7.7", "@types/module-alias": "^2.0.1", "@types/node": "^17.0.32", - "@types/throttle-debounce": "^5.0.0", "@types/uuid": "^8.3.4", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", @@ -160,7 +159,7 @@ "vue-i18n-extract": "^2.0.7", "vue-jest": "^3.0.7", "vue-loader": "^15.10.0", - "vue-template-compiler": "^2.6.14", + "vue-template-compiler": "^2.7.8", "vue-tsc": "^0.39.5", "webpack": "^4.46.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7172f68acb..7f2e1dfbad 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,8 +21,8 @@ specifiers: '@nuxtjs/storybook': ^4.3.2 '@nuxtjs/style-resources': ^1.0.0 '@nuxtjs/svg': ^0.4.0 - '@pinia/nuxt': 0.2.1 - '@pinia/testing': ^0.0.11 + '@pinia/nuxt': ^0.1.8 + '@pinia/testing': ^0.0.12 '@playwright/test': ^1.20.2 '@popperjs/core': ^2.11.2 '@tailwindcss/line-clamp': ^0.3.1 @@ -36,7 +36,6 @@ specifiers: '@types/lodash.sortby': ^4.7.7 '@types/module-alias': ^2.0.1 '@types/node': ^17.0.32 - '@types/throttle-debounce': ^5.0.0 '@types/uuid': ^8.3.4 '@typescript-eslint/eslint-plugin': ^5.20.0 '@typescript-eslint/parser': ^5.20.0 @@ -80,13 +79,12 @@ specifiers: node-html-parser: ^5.3.3 npm-run-all: ^4.1.5 nuxt: ^2.15.4 - pinia: ^2.0.16 + pinia: ^2.0.13 postcss: ^8.4.12 postcss-focus-visible: ^6.0.4 prettier: ^2.2.1 prettier-plugin-tailwindcss: ^0.1.12 prom-client: ^14.0.1 - reakit-utils: ^0.15.2 rfdc: ^1.3.0 rimraf: ^3.0.2 seeded-rand: ^2.0.1 @@ -94,7 +92,7 @@ specifiers: tailwindcss: ^3.0.23 tailwindcss-rtl: ^0.9.0 talkback: ^3.0.1 - throttle-debounce: ^5.0.0 + throttle-debounce: ^4.0.1 ts-node: ^10.7.0 typescript: ^4.6.2 uuid: ^8.3.2 @@ -112,12 +110,12 @@ dependencies: '@nuxt/postcss8': 1.1.3_webpack@4.46.0 '@nuxt/vue-app': 2.15.8 '@nuxtjs/composition-api': 0.33.1_ndg5g6d2rkyeqt4q3tlrv66tjm - '@nuxtjs/i18n': 7.2.3 + '@nuxtjs/i18n': 7.2.3_vue@2.7.8 '@nuxtjs/redirect-module': 0.3.1 '@nuxtjs/sentry': 5.1.7 '@nuxtjs/sitemap': 2.4.0 '@nuxtjs/svg': 0.4.0_722bkfgggquglpspz4lfcpgpxe - '@pinia/nuxt': 0.2.1_pinia@2.0.17+vue@2.7.8 + '@pinia/nuxt': 0.1.9_pinia@2.0.17+vue@2.7.8 '@popperjs/core': 2.11.5 '@tailwindcss/line-clamp': 0.3.1_tailwindcss@3.1.8 '@tailwindcss/typography': 0.5.4_tailwindcss@3.1.8 @@ -142,13 +140,12 @@ dependencies: pinia: 2.0.17_typescript@4.7.4+vue@2.7.8 postcss-focus-visible: 6.0.4_postcss@8.4.16 prom-client: 14.0.1 - reakit-utils: 0.15.2 rfdc: 1.3.0 seeded-rand: 2.0.1 - throttle-debounce: 5.0.0 + throttle-debounce: 4.0.1 uuid: 8.3.2 vue: 2.7.8 - vue-i18n: 8.27.2 + vue-i18n: 8.27.2_vue@2.7.8 devDependencies: '@babel/core': 7.18.10 @@ -162,7 +159,7 @@ devDependencies: '@nuxtjs/eslint-module': 3.1.0_pfo3ge5a7dhg5w52ro6wyzpxsq '@nuxtjs/storybook': 4.3.2_igq3emebnkucz77ytmuzz22eoa '@nuxtjs/style-resources': 1.2.1 - '@pinia/testing': 0.0.11_pinia@2.0.17+vue@2.7.8 + '@pinia/testing': 0.0.12_pinia@2.0.17+vue@2.7.8 '@playwright/test': 1.24.2 '@testing-library/dom': 8.17.1 '@testing-library/jest-dom': 5.16.5 @@ -173,7 +170,6 @@ devDependencies: '@types/lodash.sortby': 4.7.7 '@types/module-alias': 2.0.1 '@types/node': 17.0.45 - '@types/throttle-debounce': 5.0.0 '@types/uuid': 8.3.4 '@typescript-eslint/eslint-plugin': 5.33.0_njno5y7ry2l2lcmiu4tywxkwnq '@typescript-eslint/parser': 5.33.0_qugx7qdu5zevzvxaiqyxfiwquq @@ -204,7 +200,7 @@ devDependencies: prettier-plugin-tailwindcss: 0.1.13_prettier@2.7.1 rimraf: 3.0.2 tailwind-config-viewer: 1.7.1_tailwindcss@3.1.8 - tailwindcss: 3.1.8_ts-node@10.9.1 + tailwindcss: 3.1.8_57znarxsqwmnneadci5z5fd5gu tailwindcss-rtl: 0.9.0 talkback: 3.0.1 ts-node: 10.9.1_x2utdhayajzrh747hktprshhby @@ -2497,7 +2493,7 @@ packages: vue-client-only: 2.1.0 vue-meta: 2.4.0 vue-no-ssr: 1.1.1 - vue-router: 3.5.4 + vue-router: 3.5.4_vue@2.7.8 vue-template-compiler: 2.7.8 vuex: 3.6.2_vue@2.7.8 transitivePeerDependencies: @@ -2664,7 +2660,7 @@ packages: - webpack dev: true - /@nuxtjs/i18n/7.2.3: + /@nuxtjs/i18n/7.2.3_vue@2.7.8: resolution: {integrity: sha512-Zi/1df2ISXtsPs5+IhdHbh3ebWLq4V+tU71SkAuB2F9Es2qANF5EIq2dT9rCDW/1bbfO48MQU/eUWectDX6D7g==} engines: {node: '>=14.16'} dependencies: @@ -2679,9 +2675,10 @@ packages: klona: 2.0.5 lodash.merge: 4.6.2 ufo: 0.8.5 - vue-i18n: 8.27.2 + vue-i18n: 8.27.2_vue@2.7.8 transitivePeerDependencies: - supports-color + - vue dev: false /@nuxtjs/redirect-module/0.3.1: @@ -2853,10 +2850,10 @@ packages: stack-trace: 0.0.10 dev: false - /@pinia/nuxt/0.2.1_pinia@2.0.17+vue@2.7.8: - resolution: {integrity: sha512-XPsuClG2ag/zSdSDqU8FRkTxwWKVZTYD6TVTzjMon3l9QZKC9YvW+jdZWasQilLCnU+jWpmhx41YpfIoPSwMbg==} + /@pinia/nuxt/0.1.9_pinia@2.0.17+vue@2.7.8: + resolution: {integrity: sha512-5YmfBOxXHM5eA5pE4mq5opJnSmVYn2qYJ2ak01FrCww0esxfRLkmuu4emynu0Ar5eQ/DDz9wI3ukgRwAubXqmg==} peerDependencies: - pinia: '>=2.0.16' + pinia: '>=2.0.14' dependencies: pinia: 2.0.17_typescript@4.7.4+vue@2.7.8 vue-demi: 0.13.6_vue@2.7.8 @@ -2865,10 +2862,10 @@ packages: - vue dev: false - /@pinia/testing/0.0.11_pinia@2.0.17+vue@2.7.8: - resolution: {integrity: sha512-iJxUHV0Uj1jS7zvN5oVtSZ2BRI4PlG1xbqPkMeJasPtbqsnoxBmkwputDzqX5Dd1I1z9gEfyYOeE2duK3xGWpQ==} + /@pinia/testing/0.0.12_pinia@2.0.17+vue@2.7.8: + resolution: {integrity: sha512-OGJ5kZihiuNua9trREAVLiv8wAlxT2+gZAz3Cen1L4ch51MbSgY5/nbo9htYsP2my9dhbggBhecgYWlhejhRcQ==} peerDependencies: - pinia: '>=2.0.13' + pinia: '>=2.0.14' dependencies: pinia: 2.0.17_typescript@4.7.4+vue@2.7.8 vue-demi: 0.13.6_vue@2.7.8 @@ -4478,7 +4475,7 @@ packages: peerDependencies: tailwindcss: '>=2.0.0 || >=3.0.0 || >=3.0.0-alpha.1' dependencies: - tailwindcss: 3.1.8_ts-node@10.9.1 + tailwindcss: 3.1.8_57znarxsqwmnneadci5z5fd5gu dev: false /@tailwindcss/typography/0.5.4_tailwindcss@3.1.8: @@ -4489,7 +4486,7 @@ packages: lodash.castarray: 4.4.0 lodash.isplainobject: 4.0.6 lodash.merge: 4.6.2 - tailwindcss: 3.1.8_ts-node@10.9.1 + tailwindcss: 3.1.8_57znarxsqwmnneadci5z5fd5gu dev: false /@testing-library/dom/7.31.2: @@ -4959,10 +4956,6 @@ packages: '@types/jest': 26.0.24 dev: true - /@types/throttle-debounce/5.0.0: - resolution: {integrity: sha512-Pb7k35iCGFcGPECoNE4DYp3Oyf2xcTd3FbFQxXUI9hEYKUl6YX+KLf7HrBmgVcD05nl50LIH6i+80js4iYmWbw==} - dev: true - /@types/uglify-js/3.16.0: resolution: {integrity: sha512-0yeUr92L3r0GLRnBOvtYK1v2SjqMIqQDHMl7GLb+l2L8+6LSFWEEWEIgVsPdMn5ImLM8qzWT8xFPtQYpp8co0g==} dependencies: @@ -15046,18 +15039,6 @@ packages: dependencies: picomatch: 2.3.1 - /reakit-utils/0.15.2: - resolution: {integrity: sha512-i/RYkq+W6hvfFmXw5QW7zvfJJT/K8a4qZ0hjA79T61JAFPGt23DsfxwyBbyK91GZrJ9HMrXFVXWMovsKBc1qEQ==} - peerDependencies: - react: ^16.8.0 || ^17.0.0 - react-dom: ^16.8.0 || ^17.0.0 - peerDependenciesMeta: - react: - optional: true - react-dom: - optional: true - dev: false - /recast/0.20.5: resolution: {integrity: sha512-E5qICoPoNL4yU0H0NoBDntNB0Q5oMSNh9usFctYniLBluTthi3RsQVBXIJNbApOlvSwW/RGxIuokPcAc59J5fQ==} engines: {node: '>= 4'} @@ -16377,7 +16358,7 @@ packages: open: 7.4.2 portfinder: 1.0.29 replace-in-file: 6.3.5 - tailwindcss: 3.1.8_ts-node@10.9.1 + tailwindcss: 3.1.8_57znarxsqwmnneadci5z5fd5gu transitivePeerDependencies: - supports-color dev: true @@ -16386,10 +16367,12 @@ packages: resolution: {integrity: sha512-y7yC8QXjluDBEFMSX33tV6xMYrf0B3sa+tOB5JSQb6/G6laBU313a+Z+qxu55M1Qyn8tDMttjomsA8IsJD+k+w==} dev: true - /tailwindcss/3.1.8_ts-node@10.9.1: + /tailwindcss/3.1.8_57znarxsqwmnneadci5z5fd5gu: resolution: {integrity: sha512-YSneUCZSFDYMwk+TGq8qYFdCA3yfBRdBlS7txSq0LUmzyeqRe3a8fBQzbz9M3WS/iFT4BNf/nmw9mEzrnSaC0g==} engines: {node: '>=12.13.0'} hasBin: true + peerDependencies: + postcss: ^8.0.9 || 5.2.18 dependencies: arg: 5.0.2 chokidar: 3.5.3 @@ -16567,8 +16550,8 @@ packages: resolution: {integrity: sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==} dev: true - /throttle-debounce/5.0.0: - resolution: {integrity: sha512-2iQTSgkkc1Zyk0MeVrt/3BvuOXYPl/R8Z0U2xxo9rjwNciaHDG3R+Lm6dh4EeUci49DanvBnuqI6jshoQQRGEg==} + /throttle-debounce/4.0.1: + resolution: {integrity: sha512-s3PedbXdZtr8v3J5Sxd5T/GmWG80BcK5GVpwDdvgEaUXsaMqQe4zxgmC4TA7B8luSDCPxo3CeSBS3F9rF1CZwg==} engines: {node: '>=12.22'} dev: false @@ -16937,6 +16920,7 @@ packages: /unified/9.2.0: resolution: {integrity: sha512-vx2Z0vY+a3YoTj8+pttM3tiJHCwY5UFbYdiWrwBEbHmK8pvsPj2rtAX2BFfgXen8T39CJWblWRDT4L5WGXtDdg==} dependencies: + '@types/unist': 2.0.6 bail: 1.0.5 extend: 3.0.2 is-buffer: 2.0.5 @@ -17334,8 +17318,12 @@ packages: js-yaml: 4.1.0 dev: true - /vue-i18n/8.27.2: + /vue-i18n/8.27.2_vue@2.7.8: resolution: {integrity: sha512-QVzn7u2WVH8F7eSKIM00lujC7x1mnuGPaTnDTmB01Hd709jDtB9kYtBqM+MWmp5AJRx3gnqAdZbee9MelqwFBg==} + peerDependencies: + vue: ^2 + dependencies: + vue: 2.7.8 dev: false /vue-inbrowser-compiler-independent-utils/4.52.0_vue@2.7.8: @@ -17542,8 +17530,12 @@ packages: resolution: {integrity: sha512-ZMjqRpWabMPqPc7gIrG0Nw6vRf1+itwf0Itft7LbMXs2g3Zs/NFmevjZGN1x7K3Q95GmIjWbQZTVerxiBxI+0g==} dev: false - /vue-router/3.5.4: + /vue-router/3.5.4_vue@2.7.8: resolution: {integrity: sha512-x+/DLAJZv2mcQ7glH2oV9ze8uPwcI+H+GgTgTmb5I55bCgY3+vXWIsqbYUzbBSZnwFHEJku4eoaH/x98veyymQ==} + peerDependencies: + vue: ^2 + dependencies: + vue: 2.7.8 dev: false /vue-server-renderer/2.7.8: diff --git a/src/composables/use-window-scroll.ts b/src/composables/use-window-scroll.ts index f93e292291..b285a67c7f 100644 --- a/src/composables/use-window-scroll.ts +++ b/src/composables/use-window-scroll.ts @@ -1,4 +1,7 @@ // code taken from Vueuse +// TODO: remove this comment by updating throttle-debounce to version 5 +// eslint-disable-next-line @typescript-eslint/ban-ts-comment +// @ts-ignore import { throttle } from 'throttle-debounce' import { ref } from '@nuxtjs/composition-api'