@appkit/dek-lib 0.25.0 → 0.26.0

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.
@@ -1,12 +1,12 @@
1
- import { DekApiMessage, DekPlugin, DekPluginFactory, DekRegistry } from '@appkit/dek-plugin';
1
+ import { DekApiMessage, DekBoard, DekCommandGroup, DekIntegration, DekPluginFactory, DekRegistry } from '@appkit/dek-plugin';
2
2
  export type SetLocationFunc = (to: string, options?: {
3
3
  replace?: boolean | undefined;
4
4
  } | undefined) => void;
5
5
  type Globals = {
6
- boards: Record<string, any>;
7
- commandGroups: Record<string, any>;
6
+ boards: DekBoard[];
7
+ commandGroups: DekCommandGroup[];
8
8
  plugins: Readonly<Record<string, Readonly<DekPluginFactory>>>;
9
- pluginInstances: Readonly<Record<string, Readonly<DekPlugin>>>;
9
+ integrationInstances: Readonly<Record<string, Readonly<DekIntegration>>>;
10
10
  setLocation: SetLocationFunc;
11
11
  registry: DekRegistry;
12
12
  messages: DekApiMessage[];
@@ -1,4 +1,4 @@
1
- import { DekPlugin, DekPluginFactory } from '@appkit/dek-plugin';
1
+ import { DekIntegration, DekPlugin, DekPluginFactory } from '@appkit/dek-plugin';
2
2
  import { UserData } from '../data/fetchUserData';
3
3
  export type LibraryState = {
4
4
  plugins: Record<string, DekPluginFactory>;
@@ -6,8 +6,8 @@ export type LibraryState = {
6
6
  loading: boolean;
7
7
  };
8
8
  declare const state: LibraryState;
9
- export declare function getPluginInstances(): Record<string, DekPlugin>;
10
- export declare function updateStatePlugins(plugins: Record<string, DekPluginFactory>, instances: Record<string, DekPlugin>): void;
9
+ export declare function getIntegrationInstances(): Record<string, DekIntegration>;
10
+ export declare function updateStatePlugins(pluginFactories: Record<string, DekPluginFactory>, integrationInstances: Record<string, DekPlugin>): void;
11
11
  export declare function updateStateData(data: UserData | null): void;
12
12
  export declare function updateStateLoading(loading: boolean): void;
13
13
  export default state;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appkit/dek-lib",
3
3
  "private": false,
4
- "version": "0.25.0",
4
+ "version": "0.26.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite --port 5173 --host",