mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Adding the ability to support different Haptic Devices (#5856)
* refactored `Interactive` class to allow more HapticDevice devices * simplified api hooks * update creation of `interactive` to pass `stashConfig` * updated UIPluginApi to mention `PluginApi.InteractiveUtils`
This commit is contained in:
@@ -16,9 +16,10 @@ import * as ReactSelect from "react-select";
|
||||
import { useSpriteInfo } from "./hooks/sprite";
|
||||
import { useToast } from "./hooks/Toast";
|
||||
import Event from "./hooks/event";
|
||||
import { before, instead, after, components, RegisterComponent } from "./patch";
|
||||
import { after, before, components, instead, RegisterComponent } from "./patch";
|
||||
import { useSettings } from "./components/Settings/context";
|
||||
import { useInteractive } from "./hooks/Interactive/context";
|
||||
import InteractiveUtils from "./hooks/Interactive/utils";
|
||||
import { useLightbox, useGalleryLightbox } from "./hooks/Lightbox/hooks";
|
||||
|
||||
// due to code splitting, some components may not have been loaded when a plugin
|
||||
@@ -152,6 +153,7 @@ export const PluginApi = {
|
||||
},
|
||||
components,
|
||||
utils: {
|
||||
InteractiveUtils,
|
||||
NavUtils,
|
||||
StashService,
|
||||
loadComponents,
|
||||
|
||||
Reference in New Issue
Block a user