Compare commits

...

7 Commits

Author SHA1 Message Date
semantic-release-bot
678084e4fd chore(release): 3.22.0 [CI SKIP] 2023-08-09 22:23:32 +00:00
TrainDoctor
4f8f65d429 feat: add components found while working on tabmaster 2023-08-09 15:22:56 -07:00
Tormak
8a352d288d chore: adjusted per aa's request 2023-08-09 13:17:52 -05:00
Tormak
fd0d011cbf feat: add components found while working on tabmaster 2023-07-10 07:47:03 -05:00
Travis Lane
70219d90bc Merge branch 'SteamDeckHomebrew:main' into main 2023-07-10 07:32:04 -05:00
Travis Lane
a06650cf09 Update react.ts with requested changes 2023-06-26 11:26:45 -05:00
Tormak
3170779c6b fix: add patch indicator to prevent crashes 2023-06-25 17:23:45 -05:00
6 changed files with 47 additions and 1 deletions

View File

@@ -1,3 +1,16 @@
# [3.22.0](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v3.21.8...v3.22.0) (2023-08-09)
### Bug Fixes
* add patch indicator to prevent crashes ([3170779](https://github.com/SteamDeckHomebrew/decky-frontend-lib/commit/3170779c6b3d02ea17f7b6c1fbd57e00498ffe4f))
### Features
* add components found while working on tabmaster ([4f8f65d](https://github.com/SteamDeckHomebrew/decky-frontend-lib/commit/4f8f65d42979149cc80b4a86545d3d0d9bf14bf3))
* add components found while working on tabmaster ([fd0d011](https://github.com/SteamDeckHomebrew/decky-frontend-lib/commit/fd0d011cbf05790c5a1078970b5be72f9267402c))
## [3.21.8](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v3.21.7...v3.21.8) (2023-06-27)

View File

@@ -1,6 +1,6 @@
{
"name": "decky-frontend-lib",
"version": "3.21.8",
"version": "3.22.0",
"description": "A library for building decky plugins",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@@ -154,3 +154,16 @@ export const ModalRoot = (Object.values(
}
}
})) as FC<ModalRootProps>;
interface SimpleModalProps{
active?: boolean,
children: ReactNode
}
const ModalModule = findModule((mod) => {
if (typeof mod !== 'object' || !mod.__esModule) return undefined;
if (mod.SimpleModal && mod.ModalPosition) return mod;
})
export const SimpleModal = ModalModule.SimpleModal as FC<SimpleModalProps>
export const ModalPosition = ModalModule.ModalPosition as FC<SimpleModalProps>

View File

@@ -2,6 +2,11 @@ import { FC, ReactNode } from 'react';
import { findModuleChild } from '../webpack';
export const Panel: FC<{ children?: ReactNode; }> = findModuleChild((mod) => {
if (typeof mod !== 'object' || !mod.__esModule) return undefined;
return mod.Panel;
})
export interface PanelSectionProps {
title?: string;
spinner?: boolean;

View File

@@ -0,0 +1,14 @@
import { FC, ReactNode } from "react";
import { findModuleChild, findModule } from "../webpack";
const ScrollingModule = findModule((mod) => {
if (typeof mod !== 'object' || !mod.__esModule) return undefined;
if (mod.ScrollPanel) return mod;
});
export const ScrollPanel: FC<{ children?: ReactNode; }> = ScrollingModule.ScrollPanel;
export const ScrollPanelGroup: FC<{ children?: ReactNode; }> = findModuleChild((mod) => {
if (typeof mod !== 'object' || !mod.__esModule) return undefined;
return mod.ScrollPanelGroup;
})

View File

@@ -25,6 +25,7 @@ export * from './TextField';
export * from './Toggle';
export * from './ToggleField';
export * from './SteamClient';
export * from './Scroll';
import { AppDetails, LogoPosition, SteamAppOverview, SteamClient } from './SteamClient';