@appkit/dek-plugin 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/lib/plugins.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { DekPlugin, DekPluginBoardItem, DekPluginComponentItem, DekPluginConfig,
|
|
1
|
+
export type { DekPlugin, DekPluginBoardItem, DekPluginComponentItem, DekPluginConfig, DekPluginFactory, DekPluginScreenItem, } from './lib/plugins';
|
|
2
2
|
export { default as usePluginApi } from './lib/hooks/usePluginApi';
|
|
3
3
|
export { default as usePluginState } from './lib/hooks/usePluginState';
|
|
4
4
|
export { default as usePluginStateValue } from './lib/hooks/usePluginStateValue';
|
package/dist/lib/plugins.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export type DekPluginBoardItem = {
|
|
|
14
14
|
element: PluginElementFactory;
|
|
15
15
|
};
|
|
16
16
|
export type DekPluginConfig = Record<string, string>;
|
|
17
|
-
export type
|
|
17
|
+
export type DekPlugin = {
|
|
18
18
|
load?: (config: DekPluginConfig) => Promise<void>;
|
|
19
19
|
unload?: () => Promise<void>;
|
|
20
20
|
components?: DekPluginComponentItem[];
|
|
@@ -22,5 +22,5 @@ export type DekPluginInstance = {
|
|
|
22
22
|
boards?: DekPluginBoardItem[];
|
|
23
23
|
api?: any;
|
|
24
24
|
};
|
|
25
|
-
export declare class
|
|
25
|
+
export declare class DekPluginFactory implements DekPlugin {
|
|
26
26
|
}
|