mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Interactive Tools Enhancements Support (#5115)
* added `useInteractive` hook and exposed to `PluginApi` * made `SceneFileInfoPanel` patchable
This commit is contained in:
@@ -16,6 +16,7 @@ import { useToast } from "./hooks/Toast";
|
||||
import Event from "./hooks/event";
|
||||
import { before, instead, after, components, RegisterComponent } from "./patch";
|
||||
import { useSettings } from "./components/Settings/context";
|
||||
import { useInteractive } from "./hooks/Interactive/context";
|
||||
|
||||
// due to code splitting, some components may not have been loaded when a plugin
|
||||
// page is loaded. This function will load all components passed to it.
|
||||
@@ -94,6 +95,7 @@ export const PluginApi = {
|
||||
useSpriteInfo,
|
||||
useToast,
|
||||
useSettings,
|
||||
useInteractive,
|
||||
},
|
||||
patch: {
|
||||
// intercept the arguments of supported functions
|
||||
|
||||
Reference in New Issue
Block a user