|
|
@ -32,7 +32,7 @@ export class RemixAppManager extends PluginManager { |
|
|
|
constructor() |
|
|
|
constructor() |
|
|
|
event: EventEmitter |
|
|
|
event: EventEmitter |
|
|
|
pluginsDirectory: string |
|
|
|
pluginsDirectory: string |
|
|
|
pluginLoader: PluginLoader |
|
|
|
pluginLoader: PluginLoader // eslint-disable-line no-use-before-define
|
|
|
|
permissionHandler: PermissionHandler |
|
|
|
permissionHandler: PermissionHandler |
|
|
|
getAll(): import('@remixproject/plugin-utils').Profile<any>[] |
|
|
|
getAll(): import('@remixproject/plugin-utils').Profile<any>[] |
|
|
|
getIds(): string[] |
|
|
|
getIds(): string[] |
|
|
@ -70,11 +70,11 @@ export class PluginManagerComponent extends ViewPlugin extends Plugin implements |
|
|
|
constructor(appManager: RemixAppManager, engine: Engine) |
|
|
|
constructor(appManager: RemixAppManager, engine: Engine) |
|
|
|
appManager: RemixAppManager |
|
|
|
appManager: RemixAppManager |
|
|
|
pluginSettings: PluginManagerSettings |
|
|
|
pluginSettings: PluginManagerSettings |
|
|
|
app: PluginApi<any> |
|
|
|
app: PluginApi<any> // eslint-disable-line no-undef
|
|
|
|
engine: Engine |
|
|
|
engine: Engine |
|
|
|
htmlElement: HTMLDivElement |
|
|
|
htmlElement: HTMLDivElement |
|
|
|
views: { root: null, items: {} } |
|
|
|
views: { root: null, items: {} } |
|
|
|
localPlugin: LocalPlugin |
|
|
|
localPlugin: LocalPlugin // eslint-disable-line no-use-before-define
|
|
|
|
pluginNames: string[] |
|
|
|
pluginNames: string[] |
|
|
|
inactivePlugins: Profile[] |
|
|
|
inactivePlugins: Profile[] |
|
|
|
activePlugins: Profile[] |
|
|
|
activePlugins: Profile[] |
|
|
@ -133,7 +133,7 @@ declare class LocalPlugin { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export interface PluginManagerContextProviderProps { |
|
|
|
export interface PluginManagerContextProviderProps { |
|
|
|
children: React.ReactNode |
|
|
|
children: React.ReactNode // eslint-disable-line no-undef
|
|
|
|
pluginComponent: PluginManagerComponent |
|
|
|
pluginComponent: PluginManagerComponent |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -153,7 +153,7 @@ declare class PluginLoader { |
|
|
|
set(plugin: any, actives: any): void |
|
|
|
set(plugin: any, actives: any): void |
|
|
|
get(): any |
|
|
|
get(): any |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// eslint-disable-next-line no-redeclare
|
|
|
|
export type PluginManagerSettings = { |
|
|
|
export type PluginManagerSettings = { |
|
|
|
openDialog: () => void |
|
|
|
openDialog: () => void |
|
|
|
onValidation: () => void |
|
|
|
onValidation: () => void |
|
|
@ -197,6 +197,7 @@ export type PluginManagerProfile = Profile & { |
|
|
|
type: 'iframe' | 'ws' |
|
|
|
type: 'iframe' | 'ws' |
|
|
|
hash: string |
|
|
|
hash: string |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// eslint-disable-next-line no-redeclare
|
|
|
|
export type LocalPlugin = { |
|
|
|
export type LocalPlugin = { |
|
|
|
create: () => Profile |
|
|
|
create: () => Profile |
|
|
|
updateName: (target: string) => void |
|
|
|
updateName: (target: string) => void |
|
|
|