diff options
| author | AAGaming <aa@mail.catvibers.me> | 2022-12-15 21:16:22 -0500 |
|---|---|---|
| committer | AAGaming <aa@mail.catvibers.me> | 2022-12-15 21:16:22 -0500 |
| commit | 346f80beb31d1e2a95d31a5997b5a233d08e0645 (patch) | |
| tree | ad56b8d274f79faaa6c75b025158ec0737c338b5 /frontend | |
| parent | 2a6bf75f0232d96a687605b121c5a2da42c7f3b1 (diff) | |
| download | decky-loader-346f80beb31d1e2a95d31a5997b5a233d08e0645.tar.gz decky-loader-346f80beb31d1e2a95d31a5997b5a233d08e0645.zip | |
bump DFL to fix modals, Router -> Navigation in some placesv2.4.6-pre4
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/package.json | 2 | ||||
| -rw-r--r-- | frontend/pnpm-lock.yaml | 8 | ||||
| -rw-r--r-- | frontend/src/components/modals/PluginInstallModal.tsx | 4 | ||||
| -rw-r--r-- | frontend/src/components/store/PluginCard.tsx | 6 | ||||
| -rw-r--r-- | frontend/src/developer.tsx | 6 |
5 files changed, 14 insertions, 12 deletions
diff --git a/frontend/package.json b/frontend/package.json index 6ca1d017..3e45e49a 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -41,7 +41,7 @@ } }, "dependencies": { - "decky-frontend-lib": "^3.14.0", + "decky-frontend-lib": "^3.18.4", "react-file-icon": "^1.2.0", "react-icons": "^4.4.0", "react-markdown": "^8.0.3", diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index d2d0f7ac..58fa64ce 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -10,7 +10,7 @@ specifiers: '@types/react-file-icon': ^1.0.1 '@types/react-router': 5.1.18 '@types/webpack': ^5.28.0 - decky-frontend-lib: ^3.14.0 + decky-frontend-lib: ^3.18.4 husky: ^8.0.1 import-sort-style-module: ^6.0.0 inquirer: ^8.2.4 @@ -30,7 +30,7 @@ specifiers: typescript: ^4.7.4 dependencies: - decky-frontend-lib: 3.14.0 + decky-frontend-lib: 3.18.4 react-file-icon: 1.2.0_wcqkhtmu7mswc6yz4uyexck3ty react-icons: 4.4.0_react@16.14.0 react-markdown: 8.0.3_vshvapmxg47tngu7tvrsqpq55u @@ -944,8 +944,8 @@ packages: dependencies: ms: 2.1.2 - /decky-frontend-lib/3.14.0: - resolution: {integrity: sha512-cBGgS960ftGgpF/oDlRj02nISWq7rwKHIUzG7RJeHchLmz/M4W4OwDL2/oEYO+0WeSx/AWRHTIfLU27jdHiZYQ==} + /decky-frontend-lib/3.18.4: + resolution: {integrity: sha512-i3TAe3RJtT1TK0rJgW9Ek5jxMWZRCYLDvqHDylGVieUvuyI7c8X+cogz30pP4cqeGOaA1d/MxBEbhlpD3JhVvg==} dev: false /decode-named-character-reference/1.0.2: diff --git a/frontend/src/components/modals/PluginInstallModal.tsx b/frontend/src/components/modals/PluginInstallModal.tsx index 8b927523..dfddc199 100644 --- a/frontend/src/components/modals/PluginInstallModal.tsx +++ b/frontend/src/components/modals/PluginInstallModal.tsx @@ -1,4 +1,4 @@ -import { ConfirmModal, QuickAccessTab, Router, Spinner, staticClasses } from 'decky-frontend-lib'; +import { ConfirmModal, Navigation, QuickAccessTab, Spinner, staticClasses } from 'decky-frontend-lib'; import { FC, useState } from 'react'; interface PluginInstallModalProps { @@ -20,7 +20,7 @@ const PluginInstallModal: FC<PluginInstallModalProps> = ({ artifact, version, ha onOK={async () => { setLoading(true); await onOK(); - setTimeout(() => Router.OpenQuickAccessMenu(QuickAccessTab.Decky), 250); + setTimeout(() => Navigation.OpenQuickAccessMenu(QuickAccessTab.Decky), 250); setTimeout(() => window.DeckyPluginLoader.checkPluginUpdates(), 1000); }} onCancel={async () => { diff --git a/frontend/src/components/store/PluginCard.tsx b/frontend/src/components/store/PluginCard.tsx index ffa2d1f1..27f98590 100644 --- a/frontend/src/components/store/PluginCard.tsx +++ b/frontend/src/components/store/PluginCard.tsx @@ -2,8 +2,8 @@ import { DialogButton, Dropdown, Focusable, + Navigation, QuickAccessTab, - Router, SingleDropdownOption, SuspensefulImage, joinClassNames, @@ -38,8 +38,8 @@ const PluginCard: FC<PluginCardProps> = ({ plugin }) => { }} onCancel={(_: CustomEvent) => { if (containerRef.current!.querySelectorAll('* :focus').length === 0) { - Router.NavigateBackOrOpenMenu(); - setTimeout(() => Router.OpenQuickAccessMenu(QuickAccessTab.Decky), 1000); + Navigation.NavigateBack(); + setTimeout(() => Navigation.OpenQuickAccessMenu(QuickAccessTab.Decky), 1000); } else { containerRef.current!.focus(); } diff --git a/frontend/src/developer.tsx b/frontend/src/developer.tsx index 3b2812fc..e4e4b335 100644 --- a/frontend/src/developer.tsx +++ b/frontend/src/developer.tsx @@ -1,4 +1,5 @@ import { + Navigation, ReactRouter, Router, fakeRenderComponent, @@ -74,13 +75,14 @@ export async function startup() { window.DFL = { findModuleChild, findModule, + Navigation, + Router, + ReactRouter, ReactUtils: { fakeRenderComponent, findInReactTree, findInTree, }, - Router, - ReactRouter, classes: { scrollClasses, staticClasses, |
