From 049ae108de434bbdcee6d34c4758e7fc4f3ef869 Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Fri, 5 May 2023 10:07:29 -0700 Subject: [PATCH] chore: cleans up types --- assets/components/ScrollProgress.vue | 2 +- package.json | 6 +- pnpm-lock.yaml | 162 ++++++++++++++++++++------- 3 files changed, 125 insertions(+), 45 deletions(-) diff --git a/assets/components/ScrollProgress.vue b/assets/components/ScrollProgress.vue index 2289da34..822c7b79 100644 --- a/assets/components/ScrollProgress.vue +++ b/assets/components/ScrollProgress.vue @@ -29,7 +29,7 @@ const root = ref(); const store = useContainerStore(); const { activeContainers } = storeToRefs(store); const scrollElement = ref((root.value?.closest("[data-scrolling]") as HTMLElement) ?? document); -const { y: scrollY } = useScroll(scrollElement, { throttle: 100 }); +const { y: scrollY } = useScroll(scrollElement as Ref, { throttle: 100 }); onMounted(() => { watch( diff --git a/package.json b/package.json index 752da538..0f1ed513 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@iconify-json/octicon": "^1.1.38", "@intlify/unplugin-vue-i18n": "^0.10.0", "@oruga-ui/oruga-next": "^0.6.0", - "@oruga-ui/theme-bulma": "^0.2.9", + "@oruga-ui/theme-bulma": "^0.2.10", "@vueuse/core": "^10.1.2", "@vueuse/integrations": "^10.1.2", "@vueuse/router": "^10.1.2", @@ -64,7 +64,7 @@ "@types/d3-shape": "^3.1.1", "@types/d3-transition": "^3.0.3", "@types/lodash.debounce": "^4.0.7", - "@types/node": "^18.16.3", + "@types/node": "^20.0.0", "@types/semver": "^7.3.13", "@vitejs/plugin-basic-ssl": "^1.0.1", "@vitejs/plugin-vue": "4.2.1", @@ -90,7 +90,7 @@ "vite-plugin-vue-layouts": "^0.8.0", "vitepress": "1.0.0-alpha.75", "vitest": "^0.31.0", - "vue-tsc": "^1.6.1" + "vue-tsc": "^1.6.4" }, "lint-staged": { "*.{js,vue,css,ts,html,md}": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3fbe6739..7f9e1892 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,8 +23,8 @@ dependencies: specifier: ^0.6.0 version: 0.6.0(vue@3.2.47) '@oruga-ui/theme-bulma': - specifier: ^0.2.9 - version: 0.2.9 + specifier: ^0.2.10 + version: 0.2.10 '@vueuse/core': specifier: ^10.1.2 version: 10.1.2(vue@3.2.47) @@ -112,8 +112,8 @@ devDependencies: specifier: ^4.0.7 version: 4.0.7 '@types/node': - specifier: ^18.16.3 - version: 18.16.3 + specifier: ^20.0.0 + version: 20.0.0 '@types/semver': specifier: ^7.3.13 version: 7.3.13 @@ -161,7 +161,7 @@ devDependencies: version: 2.8.1 ts-node: specifier: ^10.9.1 - version: 10.9.1(@types/node@18.16.3)(typescript@5.0.4) + version: 10.9.1(@types/node@20.0.0)(typescript@5.0.4) typescript: specifier: ^5.0.4 version: 5.0.4 @@ -176,7 +176,7 @@ devDependencies: version: 0.24.1(vue@3.2.47) vite: specifier: 4.3.5 - version: 4.3.5(@types/node@18.16.3)(sass@1.62.1) + version: 4.3.5(@types/node@20.0.0)(sass@1.62.1) vite-plugin-pages: specifier: ^0.29.0 version: 0.29.0(@vue/compiler-sfc@3.2.47)(vite@4.3.5) @@ -185,13 +185,13 @@ devDependencies: version: 0.8.0(vite@4.3.5)(vue-router@4.1.6)(vue@3.2.47) vitepress: specifier: 1.0.0-alpha.75 - version: 1.0.0-alpha.75(@algolia/client-search@4.17.0)(@types/node@18.16.3)(sass@1.62.1) + version: 1.0.0-alpha.75(@algolia/client-search@4.17.0)(@types/node@20.0.0)(sass@1.62.1) vitest: specifier: ^0.31.0 version: 0.31.0(jsdom@22.0.0)(sass@1.62.1) vue-tsc: - specifier: ^1.6.1 - version: 1.6.1(typescript@5.0.4) + specifier: ^1.6.4 + version: 1.6.4(typescript@5.0.4) packages: @@ -356,6 +356,11 @@ packages: resolution: {integrity: sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==} engines: {node: '>=6.9.0'} + /@babel/helper-string-parser@7.21.5: + resolution: {integrity: sha512-5pTUx3hAJaZIdW99sJ6ZUUgWq/Y+Hja7TowEnLNMm1VivRgZQL3vpBY3qUACVsvw+yQU6+YgfBVmcbLaZtrA1w==} + engines: {node: '>=6.9.0'} + dev: true + /@babel/helper-validator-identifier@7.19.1: resolution: {integrity: sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==} engines: {node: '>=6.9.0'} @@ -367,6 +372,14 @@ packages: dependencies: '@babel/types': 7.21.2 + /@babel/parser@7.21.8: + resolution: {integrity: sha512-6zavDGdzG3gUqAdWvlLFfk+36RilI+Pwyuuh7HItyeScCWP3k6i8vKclAQ0bM/0y/Kz/xiwvxhMv9MgTJP5gmA==} + engines: {node: '>=6.0.0'} + hasBin: true + dependencies: + '@babel/types': 7.21.5 + dev: true + /@babel/runtime@7.21.5: resolution: {integrity: sha512-8jI69toZqqcsnqGGqwGS4Qb1VwLOEp4hz+CXPywcvjs60u3B4Pom/U/7rm4W8tMOYEB+E9wgD0mW1l3r8qlI9Q==} engines: {node: '>=6.9.0'} @@ -382,6 +395,15 @@ packages: '@babel/helper-validator-identifier': 7.19.1 to-fast-properties: 2.0.0 + /@babel/types@7.21.5: + resolution: {integrity: sha512-m4AfNvVF2mVC/F7fDEdH2El3HzUg9It/XsCxZiOTTA3m3qYfcSVSbTfM6Q9xG+hYDniZssYhlXKKUMD5m8tF4Q==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-string-parser': 7.21.5 + '@babel/helper-validator-identifier': 7.19.1 + to-fast-properties: 2.0.0 + dev: true + /@bcoe/v8-coverage@0.2.3: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} dev: true @@ -850,8 +872,8 @@ packages: vue: 3.2.47 dev: false - /@oruga-ui/theme-bulma@0.2.9: - resolution: {integrity: sha512-ybluoX6TuocyIMDsq4X71yPB6+N76rAuJnsPdan+BCJx7HdGatSEzi8EioQ4307B3mHNbeeFy3749iSR+rqVjg==} + /@oruga-ui/theme-bulma@0.2.10: + resolution: {integrity: sha512-aUwz7K9yz/whqGheCgTOCjQvTSUwtxc4XSwuVJbwOKQdy9NzzMecElwdNIWXO1OHGS4cxA76rzZtGXVinzdySQ==} dependencies: bulma: 0.9.4 dev: false @@ -977,8 +999,8 @@ packages: resolution: {integrity: sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==} dev: true - /@types/node@18.16.3: - resolution: {integrity: sha512-OPs5WnnT1xkCBiuQrZA4+YAV4HEJejmHneyraIaxsbev5yCEr6KMwINNFP9wQeFIw8FWcoTqF3vQsa5CDaI+8Q==} + /@types/node@20.0.0: + resolution: {integrity: sha512-cD2uPTDnQQCVpmRefonO98/PPijuOnnEy5oytWJFPY1N9aJCz2wJ5kSGWO+zJoed2cY2JxQh6yBuUq4vIn61hw==} dev: true /@types/semver@7.3.13: @@ -994,7 +1016,7 @@ packages: peerDependencies: vite: ^3.0.0 || ^4.0.0 dependencies: - vite: 4.3.5(@types/node@18.16.3)(sass@1.62.1) + vite: 4.3.5(@types/node@20.0.0)(sass@1.62.1) dev: true /@vitejs/plugin-vue@4.2.1(vite@4.3.5)(vue@3.2.47): @@ -1004,7 +1026,7 @@ packages: vite: ^4.0.0 vue: ^3.2.25 dependencies: - vite: 4.3.5(@types/node@18.16.3)(sass@1.62.1) + vite: 4.3.5(@types/node@20.0.0)(sass@1.62.1) vue: 3.2.47 dev: true @@ -1068,27 +1090,27 @@ packages: typescript: 5.0.4 dev: true - /@volar/vue-language-core@1.6.1: - resolution: {integrity: sha512-lIuxzvIx5U8MfoF+vrXNG1aZgmk8T0uyPEwI8g3EUJdESuU0qIKM84o+L4TUw77IQCYXiSefaJmsSSY87/VWnA==} + /@volar/vue-language-core@1.6.4: + resolution: {integrity: sha512-1o+cAtN2DIDNAX/HS8rkjZc8wTMTK+zCab/qtYbvEVlmokhZiDrQeoD9/l0Ug7YCNg+mVuMNHKNBY7pX8U2/Jw==} dependencies: '@volar/language-core': 1.4.1 '@volar/source-map': 1.4.1 - '@vue/compiler-dom': 3.2.47 - '@vue/compiler-sfc': 3.2.47 - '@vue/reactivity': 3.2.47 - '@vue/shared': 3.2.47 + '@vue/compiler-dom': 3.3.0-beta.4 + '@vue/compiler-sfc': 3.3.0-beta.4 + '@vue/reactivity': 3.3.0-beta.4 + '@vue/shared': 3.3.0-beta.4 minimatch: 9.0.0 muggle-string: 0.2.2 vue-template-compiler: 2.7.14 dev: true - /@volar/vue-typescript@1.6.1(typescript@5.0.4): - resolution: {integrity: sha512-5mhG6Lv2niq/AGNvHy4RSAGlJhkR+EcH7zRQ19JlffzhWDVXEdDp8luSSabCkrJzejXIMh0rsTGlKy2EFYy7vQ==} + /@volar/vue-typescript@1.6.4(typescript@5.0.4): + resolution: {integrity: sha512-qKwgP0KVQR/aaH/SN3AP7RB8NnXPWDn3tjyXP6IT6etxkDeZLBLsXWUD9KMak/RvV1DgbXDuz4F9yuZlbt29rA==} peerDependencies: typescript: '*' dependencies: '@volar/typescript': 1.4.1(typescript@5.0.4) - '@volar/vue-language-core': 1.6.1 + '@volar/vue-language-core': 1.6.4 typescript: 5.0.4 dev: true @@ -1100,12 +1122,28 @@ packages: estree-walker: 2.0.2 source-map: 0.6.1 + /@vue/compiler-core@3.3.0-beta.4: + resolution: {integrity: sha512-P4K3tkaAPhv9KSRnqpvPvvE8f8LORXVC0wP9b0sHOU2ooi2k3f7sNtVCMkCOsW0WA6FeZ7Ec4o0e7H9tazXqBQ==} + dependencies: + '@babel/parser': 7.21.8 + '@vue/shared': 3.3.0-beta.4 + estree-walker: 2.0.2 + source-map-js: 1.0.2 + dev: true + /@vue/compiler-dom@3.2.47: resolution: {integrity: sha512-dBBnEHEPoftUiS03a4ggEig74J2YBZ2UIeyfpcRM2tavgMWo4bsEfgCGsu+uJIL/vax9S+JztH8NmQerUo7shQ==} dependencies: '@vue/compiler-core': 3.2.47 '@vue/shared': 3.2.47 + /@vue/compiler-dom@3.3.0-beta.4: + resolution: {integrity: sha512-dbMAIqJCIwQTRdDZPGYV/rXzaVr2gkIuXxty/73U4zI6SJNqA2fPZo9Qv27TbKK8PWSUEKT6iqqbxaUszf9ivw==} + dependencies: + '@vue/compiler-core': 3.3.0-beta.4 + '@vue/shared': 3.3.0-beta.4 + dev: true + /@vue/compiler-sfc@3.2.47: resolution: {integrity: sha512-rog05W+2IFfxjMcFw10tM9+f7i/+FFpZJJ5XHX72NP9eC2uRD+42M3pYcQqDXVYoj74kHMSEdQ/WmCjt8JFksQ==} dependencies: @@ -1120,12 +1158,34 @@ packages: postcss: 8.4.21 source-map: 0.6.1 + /@vue/compiler-sfc@3.3.0-beta.4: + resolution: {integrity: sha512-yL/4Sc67j6HyYBLVBaV8ZgJcufuHq4qSvKzpyzxI4G7KxVf5oTdyxJ+ZigtYw99+kwefBa8tCvkl/+wgIk0x6Q==} + dependencies: + '@babel/parser': 7.21.8 + '@vue/compiler-core': 3.3.0-beta.4 + '@vue/compiler-dom': 3.3.0-beta.4 + '@vue/compiler-ssr': 3.3.0-beta.4 + '@vue/reactivity-transform': 3.3.0-beta.4 + '@vue/shared': 3.3.0-beta.4 + estree-walker: 2.0.2 + magic-string: 0.30.0 + postcss: 8.4.23 + source-map-js: 1.0.2 + dev: true + /@vue/compiler-ssr@3.2.47: resolution: {integrity: sha512-wVXC+gszhulcMD8wpxMsqSOpvDZ6xKXSVWkf50Guf/S+28hTAXPDYRTbLQ3EDkOP5Xz/+SY37YiwDquKbJOgZw==} dependencies: '@vue/compiler-dom': 3.2.47 '@vue/shared': 3.2.47 + /@vue/compiler-ssr@3.3.0-beta.4: + resolution: {integrity: sha512-IWTlqvEkkniPV2OJKNQ3ASg/XAu4VkQoxy1cAOE4oTwh3YV6twUaLFK2MAQSlL6Z96PhhcgnrLO+l4v1F8LhZQ==} + dependencies: + '@vue/compiler-dom': 3.3.0-beta.4 + '@vue/shared': 3.3.0-beta.4 + dev: true + /@vue/devtools-api@6.5.0: resolution: {integrity: sha512-o9KfBeaBmCKl10usN4crU53fYtC1r7jJwdGKjPT24t348rHxgfpZ0xL3Xm/gLUYnc0oTp8LAmrxOeLyu6tbk2Q==} @@ -1138,11 +1198,27 @@ packages: estree-walker: 2.0.2 magic-string: 0.25.9 + /@vue/reactivity-transform@3.3.0-beta.4: + resolution: {integrity: sha512-9qukjXoyHcSSGuQkhNvmR1IG9CLUfCZ42VVLq7me47VD/xHh49IpI9NYuNfdO5jH+va6F7EuUkXfiERIxuuebw==} + dependencies: + '@babel/parser': 7.21.8 + '@vue/compiler-core': 3.3.0-beta.4 + '@vue/shared': 3.3.0-beta.4 + estree-walker: 2.0.2 + magic-string: 0.30.0 + dev: true + /@vue/reactivity@3.2.47: resolution: {integrity: sha512-7khqQ/75oyyg+N/e+iwV6lpy1f5wq759NdlS1fpAhFXa8VeAIKGgk2E/C4VF59lx5b+Ezs5fpp/5WsRYXQiKxQ==} dependencies: '@vue/shared': 3.2.47 + /@vue/reactivity@3.3.0-beta.4: + resolution: {integrity: sha512-Cun0yLgiNz+tqWzOVTIr7R8cv2vtyHk3mQssWMgR6PpgC+91FEUyNvDNkc98L2jJxgVsOhC/ayXWfQR31+Hp9g==} + dependencies: + '@vue/shared': 3.3.0-beta.4 + dev: true + /@vue/runtime-core@3.2.47: resolution: {integrity: sha512-RZxbLQIRB/K0ev0K9FXhNbBzT32H9iRtYbaXb0ZIz2usLms/D55dJR2t6cIEUn6vyhS3ALNvNthI+Q95C+NOpA==} dependencies: @@ -1168,6 +1244,10 @@ packages: /@vue/shared@3.2.47: resolution: {integrity: sha512-BHGyyGN3Q97EZx0taMQ+OLNuZcW3d37ZEVmEAyeoA9ERdGvm9Irc/0Fua8SNyOtV1w6BS4q25wbMzJujO9HIfQ==} + /@vue/shared@3.3.0-beta.4: + resolution: {integrity: sha512-yRrdT1FUWhuLNgj3UUasmToYZ0zR0SOdmVyLa0FHIzbnn00LOiK4lZoPRELMRMnyPy6wwwWHRNmItUeWc2ZGPQ==} + dev: true + /@vue/test-utils@2.3.2(vue@3.2.47): resolution: {integrity: sha512-hJnVaYhbrIm0yBS0+e1Y0Sj85cMyAi+PAbK4JHqMRUZ6S622Goa+G7QzkRSyvCteG8wop7tipuEbHoZo26wsSA==} peerDependencies: @@ -3962,7 +4042,7 @@ packages: punycode: 2.3.0 dev: true - /ts-node@10.9.1(@types/node@18.16.3)(typescript@5.0.4): + /ts-node@10.9.1(@types/node@20.0.0)(typescript@5.0.4): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: @@ -3981,7 +4061,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.3 - '@types/node': 18.16.3 + '@types/node': 20.0.0 acorn: 8.8.2 acorn-walk: 8.2.0 arg: 4.1.3 @@ -4189,7 +4269,7 @@ packages: spdx-expression-parse: 3.0.1 dev: true - /vite-node@0.31.0(@types/node@18.16.3)(sass@1.62.1): + /vite-node@0.31.0(@types/node@20.0.0)(sass@1.62.1): resolution: {integrity: sha512-8x1x1LNuPvE2vIvkSB7c1mApX5oqlgsxzHQesYF7l5n1gKrEmrClIiZuOFbFDQcjLsmcWSwwmrWrcGWm9Fxc/g==} engines: {node: '>=v14.18.0'} hasBin: true @@ -4199,7 +4279,7 @@ packages: mlly: 1.2.0 pathe: 1.1.0 picocolors: 1.0.0 - vite: 4.3.5(@types/node@18.16.3)(sass@1.62.1) + vite: 4.3.5(@types/node@20.0.0)(sass@1.62.1) transitivePeerDependencies: - '@types/node' - less @@ -4228,7 +4308,7 @@ packages: json5: 2.2.3 local-pkg: 0.4.3 picocolors: 1.0.0 - vite: 4.3.5(@types/node@18.16.3)(sass@1.62.1) + vite: 4.3.5(@types/node@20.0.0)(sass@1.62.1) yaml: 2.2.1 transitivePeerDependencies: - supports-color @@ -4244,14 +4324,14 @@ packages: '@vue/compiler-sfc': 3.2.47 debug: 4.3.4 fast-glob: 3.2.12 - vite: 4.3.5(@types/node@18.16.3)(sass@1.62.1) + vite: 4.3.5(@types/node@20.0.0)(sass@1.62.1) vue: 3.2.47 vue-router: 4.1.6(vue@3.2.47) transitivePeerDependencies: - supports-color dev: true - /vite@4.3.5(@types/node@18.16.3)(sass@1.62.1): + /vite@4.3.5(@types/node@20.0.0)(sass@1.62.1): resolution: {integrity: sha512-0gEnL9wiRFxgz40o/i/eTBwm+NEbpUeTWhzKrZDSdKm6nplj+z4lKz8ANDgildxHm47Vg8EUia0aicKbawUVVA==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -4276,7 +4356,7 @@ packages: terser: optional: true dependencies: - '@types/node': 18.16.3 + '@types/node': 20.0.0 esbuild: 0.17.18 postcss: 8.4.23 rollup: 3.21.0 @@ -4285,7 +4365,7 @@ packages: fsevents: 2.3.2 dev: true - /vitepress@1.0.0-alpha.75(@algolia/client-search@4.17.0)(@types/node@18.16.3)(sass@1.62.1): + /vitepress@1.0.0-alpha.75(@algolia/client-search@4.17.0)(@types/node@20.0.0)(sass@1.62.1): resolution: {integrity: sha512-twpPZ/6UnDR8X0Nmj767KwKhXlTQQM9V/J1i2BP9ryO29/w4hpxBfEum6nvfpNhJ4H3h+cIhwzAK/e9crZ6HEQ==} hasBin: true dependencies: @@ -4298,7 +4378,7 @@ packages: mark.js: 8.11.1 minisearch: 6.0.1 shiki: 0.14.2 - vite: 4.3.5(@types/node@18.16.3)(sass@1.62.1) + vite: 4.3.5(@types/node@20.0.0)(sass@1.62.1) vue: 3.2.47 transitivePeerDependencies: - '@algolia/client-search' @@ -4347,7 +4427,7 @@ packages: dependencies: '@types/chai': 4.3.4 '@types/chai-subset': 1.3.3 - '@types/node': 18.16.3 + '@types/node': 20.0.0 '@vitest/expect': 0.31.0 '@vitest/runner': 0.31.0 '@vitest/snapshot': 0.31.0 @@ -4368,8 +4448,8 @@ packages: strip-literal: 1.0.1 tinybench: 2.4.0 tinypool: 0.5.0 - vite: 4.3.5(@types/node@18.16.3)(sass@1.62.1) - vite-node: 0.31.0(@types/node@18.16.3)(sass@1.62.1) + vite: 4.3.5(@types/node@20.0.0)(sass@1.62.1) + vite-node: 0.31.0(@types/node@20.0.0)(sass@1.62.1) why-is-node-running: 2.2.2 transitivePeerDependencies: - less @@ -4445,14 +4525,14 @@ packages: he: 1.2.0 dev: true - /vue-tsc@1.6.1(typescript@5.0.4): - resolution: {integrity: sha512-cKKKrv98MdU9kgd434fkjcIpU7a5bUflhklF9usf/GzebjmZpaht7tYGm/MNdBz7V9icySceCzCr3RiG02mOJg==} + /vue-tsc@1.6.4(typescript@5.0.4): + resolution: {integrity: sha512-8rg8S1AhRJ6/WriENQEhyqH5wsxSxuD5iaD+QnkZn2ArZ6evlhqfBAIcVN8mfSyCV9DeLkQXkOSv/MaeJiJPAQ==} hasBin: true peerDependencies: typescript: '*' dependencies: - '@volar/vue-language-core': 1.6.1 - '@volar/vue-typescript': 1.6.1(typescript@5.0.4) + '@volar/vue-language-core': 1.6.4 + '@volar/vue-typescript': 1.6.4(typescript@5.0.4) semver: 7.5.0 typescript: 5.0.4 dev: true