This commit is contained in:
2026-01-30 11:49:04 +03:00
commit f8bb05a652
48 changed files with 9538 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import Plugin from '../index';
declare module "*.module.css";
declare module "*.module.scss";
declare global {
const __PLUGIN_DEV__: boolean;
const __PLUGIN_COMPONENTS_HOST__: string | null;
interface Window {
plugins: Record<string, Plugin | unknown>;
basename: string;
desktopAPI?: any;
}
}
+16
View File
@@ -0,0 +1,16 @@
import { GlobalState } from 'loop-plugin-sdk/loop/types/store';
import { ActionType } from '../store/reducers';
export type PluginStore = {
// Add your store state here
}
export type GlobalStatePlugin = GlobalState & {
[name: string]: {
pluginState: PluginStore
}
}
export type GetStateType = () => GlobalStatePlugin
export type DispatchFunc = (action: ActionType) => any;
+1
View File
@@ -0,0 +1 @@
// trackEvent: (event: Telemetry.Event, source: Telemetry.Source, props?: Record<string, string>) => void,