@appkit/dek-plugin 0.2.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 CHANGED
@@ -1,4 +1,4 @@
1
- export type { DekPlugin, DekPluginBoardItem, DekPluginComponentItem, DekPluginConfig, DekPluginInstance, DekPluginScreenItem, } from './lib/plugins';
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';
@@ -14,7 +14,7 @@ export type DekPluginBoardItem = {
14
14
  element: PluginElementFactory;
15
15
  };
16
16
  export type DekPluginConfig = Record<string, string>;
17
- export type DekPluginInstance = {
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 DekPlugin implements DekPluginInstance {
25
+ export declare class DekPluginFactory implements DekPlugin {
26
26
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appkit/dek-plugin",
3
3
  "private": false,
4
- "version": "0.2.0",
4
+ "version": "0.3.1",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -42,7 +42,7 @@
42
42
  "main": "./dist/index.umd.js",
43
43
  "module": "./dist/index.es.js",
44
44
  "types": "./dist/index.d.ts",
45
- "exports": {
45
+ "Xexports": {
46
46
  ".": {
47
47
  "import": "./dist/index.es.js",
48
48
  "require": "./dist/index.umd.js"