|
|
@ -11,12 +11,12 @@ interface SetPluginOptionType { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export class RemixEngine extends Engine { |
|
|
|
export class RemixEngine extends Engine { |
|
|
|
event: EventEmitter; |
|
|
|
event: EventEmitter |
|
|
|
setPluginOption ({ name, kind }) : SetPluginOptionType |
|
|
|
setPluginOption ({ name, kind }) : SetPluginOptionType |
|
|
|
onRegistration (plugin) : void |
|
|
|
onRegistration (plugin) : void |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export function isNative(name: any): any; |
|
|
|
export function isNative(name: any): any |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Checks if plugin caller 'from' is allowed to activate plugin 'to' |
|
|
|
* Checks if plugin caller 'from' is allowed to activate plugin 'to' |
|
|
|
* The caller can have 'canActivate' as a optional property in the plugin profile. |
|
|
|
* The caller can have 'canActivate' as a optional property in the plugin profile. |
|
|
@ -27,33 +27,33 @@ export function isNative(name: any): any; |
|
|
|
* @param {any, any} |
|
|
|
* @param {any, any} |
|
|
|
* @returns {boolean} |
|
|
|
* @returns {boolean} |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function canActivate(from: any, to: any): boolean; |
|
|
|
export function canActivate(from: any, to: any): boolean |
|
|
|
export class RemixAppManager extends PluginManager { |
|
|
|
export class RemixAppManager extends PluginManager { |
|
|
|
constructor(); |
|
|
|
constructor() |
|
|
|
event: EventEmitter; |
|
|
|
event: EventEmitter |
|
|
|
pluginsDirectory: string; |
|
|
|
pluginsDirectory: string |
|
|
|
pluginLoader: PluginLoader; |
|
|
|
pluginLoader: PluginLoader |
|
|
|
permissionHandler: PermissionHandler; |
|
|
|
permissionHandler: PermissionHandler |
|
|
|
getAll(): import('@remixproject/plugin-utils').Profile<any>[]; |
|
|
|
getAll(): import('@remixproject/plugin-utils').Profile<any>[] |
|
|
|
getIds(): string[]; |
|
|
|
getIds(): string[] |
|
|
|
isDependent(name: any): any; |
|
|
|
isDependent(name: any): any |
|
|
|
isRequired(name: any): any; |
|
|
|
isRequired(name: any): any |
|
|
|
registeredPlugins(): Promise<any>; |
|
|
|
registeredPlugins(): Promise<any> |
|
|
|
turnPluginOn(name: string | string[]); |
|
|
|
turnPluginOn(name: string | string[]) |
|
|
|
turnPluginOff(name: string); |
|
|
|
turnPluginOff(name: string) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export class PluginManagerSettings { |
|
|
|
export class PluginManagerSettings { |
|
|
|
openDialog(): void; |
|
|
|
openDialog(): void |
|
|
|
permissions: any; |
|
|
|
permissions: any |
|
|
|
currentSetting: any; |
|
|
|
currentSetting: any |
|
|
|
onValidation(): void; |
|
|
|
onValidation(): void |
|
|
|
/** Clear one permission from a plugin */ |
|
|
|
/** Clear one permission from a plugin */ |
|
|
|
clearPersmission(from: string, to: string, method: string): void; |
|
|
|
clearPersmission(from: string, to: string, method: string): void |
|
|
|
/** Clear all persmissions from a plugin */ |
|
|
|
/** Clear all persmissions from a plugin */ |
|
|
|
clearAllPersmission(to: string): void; |
|
|
|
clearAllPersmission(to: string): void |
|
|
|
settings(): any; |
|
|
|
settings(): any |
|
|
|
render(): any; |
|
|
|
render(): any |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export type PluginPermissions = { |
|
|
|
export type PluginPermissions = { |
|
|
@ -94,7 +94,7 @@ export class PluginManagerComponent extends ViewPlugin extends Plugin implements |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// eslint-disable-next-line no-use-before-define
|
|
|
|
// eslint-disable-next-line no-use-before-define
|
|
|
|
export = LocalPlugin; |
|
|
|
export = LocalPlugin |
|
|
|
declare class LocalPlugin { |
|
|
|
declare class LocalPlugin { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Open a modal to create a local plugin |
|
|
|
* Open a modal to create a local plugin |
|
|
@ -102,34 +102,34 @@ declare class LocalPlugin { |
|
|
|
* @returns {Promise<{api: any, profile: any}>} A promise with the new plugin profile |
|
|
|
* @returns {Promise<{api: any, profile: any}>} A promise with the new plugin profile |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
open(plugins: any[]): Promise<{ |
|
|
|
open(plugins: any[]): Promise<{ |
|
|
|
api: any; |
|
|
|
api: any |
|
|
|
profile: any; |
|
|
|
profile: any |
|
|
|
}>; |
|
|
|
}> |
|
|
|
|
|
|
|
|
|
|
|
profile: any; |
|
|
|
profile: any |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Create the object to add to the plugin-list |
|
|
|
* Create the object to add to the plugin-list |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
create(): any; |
|
|
|
create(): any |
|
|
|
updateName({ target }: { |
|
|
|
updateName({ target }: { |
|
|
|
target: any; |
|
|
|
target: any |
|
|
|
}): void; |
|
|
|
}): void |
|
|
|
|
|
|
|
|
|
|
|
updateUrl({ target }: { |
|
|
|
updateUrl({ target }: { |
|
|
|
target: any; |
|
|
|
target: any |
|
|
|
}): void; |
|
|
|
}): void |
|
|
|
|
|
|
|
|
|
|
|
updateDisplayName({ target }: { |
|
|
|
updateDisplayName({ target }: { |
|
|
|
target: any; |
|
|
|
target: any |
|
|
|
}): void; |
|
|
|
}): void |
|
|
|
|
|
|
|
|
|
|
|
updateProfile(key: any, e: any): void; |
|
|
|
updateProfile(key: any, e: any): void |
|
|
|
updateMethods({ target }: { |
|
|
|
updateMethods({ target }: { |
|
|
|
target: any; |
|
|
|
target: any |
|
|
|
}): void; |
|
|
|
}): void |
|
|
|
|
|
|
|
|
|
|
|
/** The form to create a local plugin */ |
|
|
|
/** The form to create a local plugin */ |
|
|
|
form(): any; |
|
|
|
form(): any |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export interface PluginManagerContextProviderProps { |
|
|
|
export interface PluginManagerContextProviderProps { |
|
|
@ -146,12 +146,12 @@ export interface RemixUiPluginManagerProps { |
|
|
|
* (localStorage, queryParams) |
|
|
|
* (localStorage, queryParams) |
|
|
|
**/ |
|
|
|
**/ |
|
|
|
declare class PluginLoader { |
|
|
|
declare class PluginLoader { |
|
|
|
get currentLoader(): any; |
|
|
|
get currentLoader(): any |
|
|
|
donotAutoReload: string[]; |
|
|
|
donotAutoReload: string[] |
|
|
|
loaders: {}; |
|
|
|
loaders: {} |
|
|
|
current: string; |
|
|
|
current: string |
|
|
|
set(plugin: any, actives: any): void; |
|
|
|
set(plugin: any, actives: any): void |
|
|
|
get(): any; |
|
|
|
get(): any |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export type PluginManagerSettings = { |
|
|
|
export type PluginManagerSettings = { |
|
|
|