mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Plugin api improvements (#5703)
* Add ReactSelect to PluginApi.libraries * Make Performer tabs patchable * Make PerformerCard patchable * Use registration pattern for HoverPopover, TagLink and LoadingIndicator Initialising the components map to include these was causing an initialisation error. * Add showZero property to PopoverCountButton * Make TagCard patchable * Make ScenePage and ScenePlayer patchable * Pass properties to container components * Add example for scene tabs * Make FrontPage patchable * Add FrontPage example
This commit is contained in:
24
ui/v2.5/src/pluginApi.d.ts
vendored
24
ui/v2.5/src/pluginApi.d.ts
vendored
@@ -616,6 +616,7 @@ declare namespace PluginApi {
|
||||
const FontAwesomeSolid: typeof import("@fortawesome/free-solid-svg-icons");
|
||||
const Intl: typeof import("react-intl");
|
||||
const Mousetrap: typeof import("mousetrap");
|
||||
const ReactSelect: typeof import("react-select");
|
||||
|
||||
// @ts-expect-error
|
||||
import { MousetrapStatic } from "mousetrap";
|
||||
@@ -688,6 +689,29 @@ declare namespace PluginApi {
|
||||
StringListSetting: React.FC<any>;
|
||||
ConstantSetting: React.FC<any>;
|
||||
SceneFileInfoPanel: React.FC<any>;
|
||||
PerformerPage: React.FC<any>;
|
||||
PerformerAppearsWithPanel: React.FC<any>;
|
||||
PerformerGalleriesPanel: React.FC<any>;
|
||||
PerformerGroupsPanel: React.FC<any>;
|
||||
PerformerScenesPanel: React.FC<any>;
|
||||
PerformerImagesPanel: React.FC<any>;
|
||||
TabTitleCounter: React.FC<any>;
|
||||
PerformerCard: React.FC<any>;
|
||||
"PerformerCard.Popovers": React.FC<any>;
|
||||
"PerformerCard.Details": React.FC<any>;
|
||||
"PerformerCard.Overlays": React.FC<any>;
|
||||
"PerformerCard.Image": React.FC<any>;
|
||||
"PerformerCard.Title": React.FC<any>;
|
||||
"TagCard.Popovers": React.FC<any>;
|
||||
"TagCard.Details": React.FC<any>;
|
||||
"TagCard.Overlays": React.FC<any>;
|
||||
"TagCard.Image": React.FC<any>;
|
||||
"TagCard.Title": React.FC<any>;
|
||||
ScenePage: React.FC<any>;
|
||||
"ScenePage.Tabs": React.FC<any>;
|
||||
"ScenePage.TabContent": React.FC<any>;
|
||||
ScenePlayer: React.FC<any>;
|
||||
FrontPage: React.FC<any>;
|
||||
};
|
||||
type PatchableComponentNames = keyof typeof components | string;
|
||||
namespace utils {
|
||||
|
||||
Reference in New Issue
Block a user