From 98e8d89ce6411c743d570adf7f01cc8a204f8ce3 Mon Sep 17 00:00:00 2001 From: Adam Kadlec Date: Mon, 25 Nov 2024 19:18:04 +0100 Subject: [PATCH] [web-ui-library] Make dependencies stable (#322) * Make dependencies stable * QA fix * QA fix --- src/FastyBird/Connector/HomeKit/package.json | 2 +- src/FastyBird/Core/Tools/package.json | 2 +- src/FastyBird/Library/Metadata/package.json | 2 +- .../WebUi/packages/components/package.json | 4 +- .../expandable-box/src/expandable-box.vue | 1 - .../src/directives/touch-horizontal-pan.ts | 4 +- .../Library/WebUi/packages/utils/package.json | 4 +- .../WebUi/packages/utils/src/dom/aria.ts | 4 +- .../Library/WebUi/web-ui-library/package.json | 48 +++++++++---------- src/FastyBird/Module/Accounts/package.json | 2 +- src/FastyBird/Module/Devices/package.json | 2 +- src/FastyBird/Module/Triggers/package.json | 4 +- src/FastyBird/Module/Ui/package.json | 4 +- 13 files changed, 42 insertions(+), 41 deletions(-) diff --git a/src/FastyBird/Connector/HomeKit/package.json b/src/FastyBird/Connector/HomeKit/package.json index 34b823a1c..7a5a1a3a4 100644 --- a/src/FastyBird/Connector/HomeKit/package.json +++ b/src/FastyBird/Connector/HomeKit/package.json @@ -109,7 +109,7 @@ "typescript-eslint": "^8.15", "unocss": "^0.64", "vite": "^5.4", - "vite-plugin-dts": "^4.3", + "vite-plugin-dts": "4.1.1", "vite-plugin-vue-type-imports": "^0.2", "vue": "^3.5", "vue-i18n": "^10.0", diff --git a/src/FastyBird/Core/Tools/package.json b/src/FastyBird/Core/Tools/package.json index 48091ae6a..9bf7d6fff 100644 --- a/src/FastyBird/Core/Tools/package.json +++ b/src/FastyBird/Core/Tools/package.json @@ -78,7 +78,7 @@ "rollup-plugin-delete": "^2.1", "typescript": "5.6.2", "vite": "^5.4", - "vite-plugin-dts": "^4.3", + "vite-plugin-dts": "4.1.1", "vue": "^3.5", "vue-i18n": "^10.0", "vue-loader": "^17.4", diff --git a/src/FastyBird/Library/Metadata/package.json b/src/FastyBird/Library/Metadata/package.json index ace7f4ce2..f6c38f14f 100644 --- a/src/FastyBird/Library/Metadata/package.json +++ b/src/FastyBird/Library/Metadata/package.json @@ -67,7 +67,7 @@ "typescript": "5.6.2", "typescript-eslint": "^8.15", "vite": "^5.4", - "vite-plugin-dts": "^4.3", + "vite-plugin-dts": "4.1.1", "vue-tsc": "^2.1" }, "engines": { diff --git a/src/FastyBird/Library/WebUi/packages/components/package.json b/src/FastyBird/Library/WebUi/packages/components/package.json index b3da49b70..23c480a57 100644 --- a/src/FastyBird/Library/WebUi/packages/components/package.json +++ b/src/FastyBird/Library/WebUi/packages/components/package.json @@ -60,7 +60,7 @@ "@types/node": "^20.12", "@typescript-eslint/eslint-plugin": "^7.8", "@typescript-eslint/parser": "^7.8", - "@vitejs/plugin-vue": "^5.0", + "@vitejs/plugin-vue": "^5.2", "@vue/eslint-config-prettier": "^9.0", "@vue/eslint-config-typescript": "^13.0", "eslint": "^9.1", @@ -73,7 +73,7 @@ "typescript": "5.6.2", "typescript-eslint": "^7.8", "vite": "^5.2", - "vite-plugin-dts": "^3.9", + "vite-plugin-dts": "4.1.1", "vue": "^3.4", "vue-loader": "^17.4", "vue-tsc": "^2.0" diff --git a/src/FastyBird/Library/WebUi/packages/components/src/components/expandable-box/src/expandable-box.vue b/src/FastyBird/Library/WebUi/packages/components/src/components/expandable-box/src/expandable-box.vue index 799a6f048..b3a261797 100644 --- a/src/FastyBird/Library/WebUi/packages/components/src/components/expandable-box/src/expandable-box.vue +++ b/src/FastyBird/Library/WebUi/packages/components/src/components/expandable-box/src/expandable-box.vue @@ -35,7 +35,6 @@ const beforeEnter = (el: Element): void => { const enter = (el: Element, done: () => void): void => { const element = el as HTMLElement; - element.offsetHeight; element.style.transition = 'height 0.5s ease-in-out'; element.style.height = '100%'; element.addEventListener('transitionend', done); diff --git a/src/FastyBird/Library/WebUi/packages/components/src/components/swipe/src/directives/touch-horizontal-pan.ts b/src/FastyBird/Library/WebUi/packages/components/src/components/swipe/src/directives/touch-horizontal-pan.ts index 14665f8b3..e2f00a1dd 100644 --- a/src/FastyBird/Library/WebUi/packages/components/src/components/swipe/src/directives/touch-horizontal-pan.ts +++ b/src/FastyBird/Library/WebUi/packages/components/src/components/swipe/src/directives/touch-horizontal-pan.ts @@ -95,8 +95,8 @@ const testPassive = (): boolean => { ); passive = true; - } catch (e) { - // do nothing + } catch (e: any) { + console.log(e); } return passive; diff --git a/src/FastyBird/Library/WebUi/packages/utils/package.json b/src/FastyBird/Library/WebUi/packages/utils/package.json index 694b20eea..a1cb9c38d 100644 --- a/src/FastyBird/Library/WebUi/packages/utils/package.json +++ b/src/FastyBird/Library/WebUi/packages/utils/package.json @@ -50,7 +50,7 @@ "@types/node": "^20.12", "@typescript-eslint/eslint-plugin": "^7.8", "@typescript-eslint/parser": "^7.8", - "@vitejs/plugin-vue": "^5.0", + "@vitejs/plugin-vue": "^5.2", "@vue/eslint-config-prettier": "^9.0", "@vue/eslint-config-typescript": "^13.0", "eslint": "^9.1", @@ -64,7 +64,7 @@ "typescript-eslint": "^7.8", "type-fest": "^4.18", "vite": "^5.2", - "vite-plugin-dts": "^3.9", + "vite-plugin-dts": "4.1.1", "vue": "^3.4", "vue-loader": "^17.4", "vue-tsc": "^2.0" diff --git a/src/FastyBird/Library/WebUi/packages/utils/src/dom/aria.ts b/src/FastyBird/Library/WebUi/packages/utils/src/dom/aria.ts index 07f1c5687..ce2ffde8a 100644 --- a/src/FastyBird/Library/WebUi/packages/utils/src/dom/aria.ts +++ b/src/FastyBird/Library/WebUi/packages/utils/src/dom/aria.ts @@ -120,5 +120,7 @@ export const focusNode = (el: HTMLElement): void => { el.focus(); - !isLeaf(el) && el.click(); + if (!isLeaf(el)) { + el.click(); + } }; diff --git a/src/FastyBird/Library/WebUi/web-ui-library/package.json b/src/FastyBird/Library/WebUi/web-ui-library/package.json index eb708c58f..b68ffabcf 100644 --- a/src/FastyBird/Library/WebUi/web-ui-library/package.json +++ b/src/FastyBird/Library/WebUi/web-ui-library/package.json @@ -39,46 +39,46 @@ "pretty:write": "prettier src --write" }, "dependencies": { - "@ctrl/tinycolor": "^4.0", + "@ctrl/tinycolor": "^4.1", "@fastybird/web-ui-theme-chalk": "1.0.0-dev.24", "@popperjs/core": "^2.11", - "@vueuse/core": "^10.9", + "@vueuse/core": "^11.3", "async-validator": "^4.2", "csstype": "^3.1", - "element-plus": "^2.7", + "element-plus": "^2.8", "lodash": "^4.17", - "vue-router": "^4.3" + "vue-router": "^4.5" }, "devDependencies": { - "@eslint/js": "^9.1", + "@eslint/js": "^9.15", "@fastybird/web-ui-components": "1.0.0-dev.24", "@fastybird/web-ui-icons": "1.0.0-dev.24", "@fastybird/web-ui-theme-chalk": "1.0.0-dev.24", "@nabla/vite-plugin-eslint": "^2.0", "@types/lodash": "^4.17", - "@types/node": "^20.12", - "@typescript-eslint/eslint-plugin": "^7.8", - "@typescript-eslint/parser": "^7.8", - "@vitejs/plugin-vue": "^5.0", - "@vue/eslint-config-prettier": "^9.0", - "@vue/eslint-config-typescript": "^13.0", + "@types/node": "^20.17", + "@typescript-eslint/eslint-plugin": "^8.16", + "@typescript-eslint/parser": "^8.16", + "@vitejs/plugin-vue": "^5.2", + "@vue/eslint-config-prettier": "^10.1", + "@vue/eslint-config-typescript": "^14.1", "consola": "^3.2", - "eslint": "^9.1", + "eslint": "^9.15", "eslint-config-prettier": "^9.1", - "eslint-plugin-prettier": "^5.1", - "eslint-plugin-vue": "^9.25", - "prettier": "^3.2", - "rimraf": "^5.0", - "rollup-plugin-delete": "^2.0", - "tsx": "^4.9", - "type-fest": "^4.18", + "eslint-plugin-prettier": "^5.2", + "eslint-plugin-vue": "^9.31", + "prettier": "^3.3", + "rimraf": "^6.0", + "rollup-plugin-delete": "^2.1", + "tsx": "^4.19", + "type-fest": "^4.28", "typescript": "5.6.2", - "typescript-eslint": "^7.8", - "vite": "^5.2", - "vite-plugin-dts": "^3.9", - "vue": "^3.4", + "typescript-eslint": "^8.16", + "vite": "^5.4", + "vite-plugin-dts": "4.1.1", + "vue": "^3.5", "vue-loader": "^17.4", - "vue-tsc": "^2.0" + "vue-tsc": "^2.1" }, "engines": { "node": ">=20" diff --git a/src/FastyBird/Module/Accounts/package.json b/src/FastyBird/Module/Accounts/package.json index c9b11ae2e..892ef72b7 100644 --- a/src/FastyBird/Module/Accounts/package.json +++ b/src/FastyBird/Module/Accounts/package.json @@ -114,7 +114,7 @@ "typescript-eslint": "^8.15", "unocss": "^0.64", "vite": "^5.4", - "vite-plugin-dts": "^4.3", + "vite-plugin-dts": "4.1.1", "vite-plugin-vue-type-imports": "^0.2", "vite-svg-loader": "^5.1", "vue": "^3.5", diff --git a/src/FastyBird/Module/Devices/package.json b/src/FastyBird/Module/Devices/package.json index 23a05c4b7..6af5322d3 100644 --- a/src/FastyBird/Module/Devices/package.json +++ b/src/FastyBird/Module/Devices/package.json @@ -117,7 +117,7 @@ "typescript-eslint": "^8.15", "unocss": "^0.64", "vite": "^5.4", - "vite-plugin-dts": "^4.3", + "vite-plugin-dts": "4.1.1", "vite-plugin-vue-type-imports": "^0.2", "vue": "^3.5", "vue-i18n": "^10.0", diff --git a/src/FastyBird/Module/Triggers/package.json b/src/FastyBird/Module/Triggers/package.json index 13be32555..97f73341c 100644 --- a/src/FastyBird/Module/Triggers/package.json +++ b/src/FastyBird/Module/Triggers/package.json @@ -75,7 +75,7 @@ "@types/uuid": "^9.0", "@typescript-eslint/eslint-plugin": "^7.1", "@typescript-eslint/parser": "^7.1", - "@vitejs/plugin-vue": "^5.0", + "@vitejs/plugin-vue": "^5.2", "@vue/eslint-config-prettier": "^9.0", "@vue/eslint-config-typescript": "^12.0", "babel-loader": "^9.1", @@ -105,7 +105,7 @@ "typescript": "5.6.2", "vee-validate": "^4.12", "vite": "^5.1", - "vite-plugin-dts": "^3.7", + "vite-plugin-dts": "4.1.1", "vite-plugin-vue-type-imports": "^0.2", "vite-svg-loader": "^5.1", "vue": "^3.4", diff --git a/src/FastyBird/Module/Ui/package.json b/src/FastyBird/Module/Ui/package.json index fe3076dfa..975966cef 100644 --- a/src/FastyBird/Module/Ui/package.json +++ b/src/FastyBird/Module/Ui/package.json @@ -96,7 +96,7 @@ "@types/uuid": "^9.0", "@typescript-eslint/eslint-plugin": "^7.8", "@typescript-eslint/parser": "^7.8", - "@vitejs/plugin-vue": "^5.0", + "@vitejs/plugin-vue": "^5.2", "@vue/eslint-config-prettier": "^9.0", "@vue/eslint-config-typescript": "^13.0", "eslint": "^9.1", @@ -122,7 +122,7 @@ "typescript-eslint": "^7.8", "unocss": "^0.59", "vite": "^5.2", - "vite-plugin-dts": "^3.9", + "vite-plugin-dts": "4.1.1", "vite-plugin-vue-type-imports": "^0.2", "vite-svg-loader": "^5.1", "vue": "^3.4",