Compare commits

...

6 Commits

Author SHA1 Message Date
Marco Rodolfi
21fddeaf03 chore: new release 2023-06-22 10:15:41 +02:00
Marco Rodolfi
e9e7f5c026 chore: add new interface for openfilepicker 2023-06-22 10:09:01 +02:00
semantic-release-bot
9a691cea09 chore(release): 3.21.2 [CI SKIP] 2023-06-18 17:15:58 +00:00
AAGaming
44d9b90cdc fix(SidebarNavigation): allow ReactNode for page title 2023-06-18 13:15:21 -04:00
TrainDoctor
585c3b8348 Merge pull request #85 from Woovie/patch-1
Update Discord link
2023-06-07 17:35:53 -07:00
Jordan Banasik
1287493b63 Update Discord link 2023-06-07 17:15:40 -07:00
5 changed files with 35 additions and 18 deletions

View File

@@ -1,3 +1,10 @@
## [3.21.2](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v3.21.1...v3.21.2) (2023-06-18)
### Bug Fixes
* **SidebarNavigation:** allow ReactNode for page title ([44d9b90](https://github.com/SteamDeckHomebrew/decky-frontend-lib/commit/44d9b90cdcfb9e6441fdb1e4b21fe844f1f29fd5))
## [3.21.1](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v3.21.0...v3.21.1) (2023-05-28)

View File

@@ -2,9 +2,9 @@
Library used to develop plugins used for use with [decky-loader](https://github.com/SteamDeckHomebrew/decky-loader).
## Decky Loader Discord [![Chat](https://img.shields.io/badge/chat-on%20discord-7289da.svg)](https://discord.gg/ZU74G2NJzk)
## Decky Loader Discord [![Chat](https://img.shields.io/discord/960281551428522045?color=%235865F2&label=discord)](https://deckbrew.xyz/discord)
Please contact the developers here for questions and support that cannot be addressed via a Github issue.
Please [contact the developers here](https://deckbrew.xyz/discord) for questions and support that cannot be addressed via a Github issue.
## Developers and Contributors

View File

@@ -1,6 +1,6 @@
{
"name": "decky-frontend-lib",
"version": "3.21.1",
"version": "3.21.3",
"description": "A library for building decky plugins",
"main": "dist/index.js",
"types": "dist/index.d.ts",
@@ -41,26 +41,26 @@
}
},
"devDependencies": {
"@commitlint/cli": "^17.0.2",
"@commitlint/config-conventional": "^17.0.2",
"@commitlint/cz-commitlint": "^17.0.0",
"@semantic-release/changelog": "^6.0.1",
"@commitlint/cli": "^17.6.5",
"@commitlint/config-conventional": "^17.6.5",
"@commitlint/cz-commitlint": "^17.5.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/jest": "^27.4.1",
"@types/jest": "^27.5.2",
"@types/react": "16.14.0",
"@types/react-router": "5.1.18",
"commitizen": "^4.2.4",
"husky": "^8.0.1",
"commitizen": "^4.3.0",
"husky": "^8.0.3",
"import-sort-style-module": "^6.0.0",
"jest": "^27.5.1",
"minimist": "^1.2.6",
"prettier": "^2.7.1",
"minimist": "^1.2.8",
"prettier": "^2.8.8",
"prettier-plugin-import-sort": "^0.0.7",
"semantic-release": "^19.0.3",
"semantic-release": "^19.0.5",
"shx": "^0.3.4",
"ts-jest": "^27.1.4",
"typedoc": "^0.23.24",
"typedoc-plugin-mdn-links": "^2.0.0",
"ts-jest": "^27.1.5",
"typedoc": "^0.23.28",
"typedoc-plugin-mdn-links": "^2.0.2",
"typedoc-plugin-missing-exports": "^1.0.0",
"typedoc-wikijs-theme": "^1.0.5",
"typescript": "^4.9.5"

View File

@@ -3,7 +3,7 @@ import { ReactNode, VFC } from 'react';
import { Module, findModuleChild } from '../webpack';
export interface SidebarNavigationPage {
title: string;
title: ReactNode;
content: ReactNode;
icon?: ReactNode;
visible?: boolean;

View File

@@ -55,12 +55,22 @@ export interface Toaster {
export interface FilePickerRes {
path: string;
realpath: string;
total: number;
}
export interface ServerAPI {
routerHook: RouterHook;
toaster: Toaster;
openFilePicker(startPath: string, includeFiles?: boolean, regex?: RegExp): Promise<FilePickerRes>;
openFilePicker(
startPath: string,
includeFiles?: boolean,
filter?: RegExp | ((file: File) => boolean),
includeFolders?: boolean,
extensions?: string[],
showHiddenFiles?: boolean,
allowAllFiles?: boolean,
max?: number,
): Promise<FilePickerRes>;
callPluginMethod<TArgs = {}, TRes = {}>(methodName: string, args: TArgs): Promise<ServerResponse<TRes>>;
callServerMethod<TArgs = {}, TRes = {}>(methodName: string, args: TArgs): Promise<ServerResponse<TRes>>;
fetchNoCors<TRes = {}>(url: RequestInfo, request?: RequestInit): Promise<ServerResponse<TRes>>;