@appkit/dek-lib 0.32.0 → 0.34.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.
- package/dist/components/Background/Background.d.ts +1 -1
- package/dist/components/Background/Background.styled.d.ts +9 -0
- package/dist/components/Board/Board.d.ts +4 -4
- package/dist/components/Board/Board.styled.d.ts +8 -0
- package/dist/components/BoardProvider/BoardProvider.d.ts +7 -3
- package/dist/components/BoardScreen/BoardScreen.d.ts +6 -0
- package/dist/components/BoardScreen/BoardScreen.styled.d.ts +7 -0
- package/dist/components/BoardStylesProvider/BoardStylesProvider.d.ts +8 -0
- package/dist/components/BoardStylesProvider/BoardStylesProvider.styled.d.ts +7 -0
- package/dist/components/BoardStylesProvider/components/BoardPreviewOverlay/BoardPreviewOverlay.d.ts +2 -0
- package/dist/components/BoardStylesProvider/components/BoardPreviewOverlay/BoardPreviewOverlay.styled.d.ts +7 -0
- package/dist/components/BoardStylesProvider/components/BoardStyles.d.ts +6 -0
- package/dist/components/BoardWrapper/BoardWrapper.d.ts +6 -0
- package/dist/components/Command/Command.d.ts +5 -0
- package/dist/components/Component/Component.d.ts +8 -0
- package/dist/components/PreviewBoardLoader/PreviewBoardLoader.d.ts +2 -0
- package/dist/components/PreviewBoardLoader/PreviewBoardLoader.styled.d.ts +7 -0
- package/dist/data/fetchUserData.d.ts +1 -1
- package/dist/data/fetchUserPlugins.d.ts +1 -1
- package/dist/data/getClient.d.ts +1 -1
- package/dist/data/types/gql.d.ts +2 -2
- package/dist/data/types/graphql.d.ts +23 -3
- package/dist/data/watchUser.d.ts +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.es.js +57314 -57091
- package/dist/index.umd.js +58166 -57943
- package/dist/lib/contexts/PreviewConfigContext.d.ts +12 -0
- package/dist/lib/contexts/UserConfigContext.d.ts +4 -0
- package/dist/lib/data.d.ts +3 -2
- package/dist/lib/globals.d.ts +2 -1
- package/dist/lib/hooks/useAuthorization.d.ts +2 -0
- package/dist/lib/hooks/usePreviewContext.d.ts +2 -0
- package/dist/lib/hooks/useUserConfig.d.ts +1 -3
- package/dist/lib/hooks/useUserConfigLoader.d.ts +4 -0
- package/dist/lib/plugins.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/BoardProvider/BoardStyles.d.ts +0 -5
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type PreviewConfig = {
|
|
3
|
+
boardKey: string;
|
|
4
|
+
backgroundKey?: string;
|
|
5
|
+
backgroundProps?: Record<string, any>;
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
zoom?: number;
|
|
9
|
+
interactive?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const PreviewConfigContext: import("react").Context<PreviewConfig | undefined>;
|
|
12
|
+
export default PreviewConfigContext;
|
package/dist/lib/data.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { DekPluginFactory } from '@appkit/dek-plugin';
|
|
2
|
-
export declare function updateData(
|
|
3
|
-
export declare function watchForDataChanges(
|
|
2
|
+
export declare function updateData(authToken: string, plugin?: DekPluginFactory): Promise<void>;
|
|
3
|
+
export declare function watchForDataChanges(authToken: string, cb: () => void): void;
|
|
4
|
+
export declare function authorize(email: string, password: string): Promise<string>;
|
package/dist/lib/globals.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { DekApiMessage, DekBoard, DekCommandGroup, DekIntegration, DekPluginFactory, DekRegistry } from '@appkit/dek-plugin';
|
|
1
|
+
import { DekApiMessage, DekBoard, DekCommand, 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
6
|
boards: DekBoard[];
|
|
7
7
|
commandGroups: DekCommandGroup[];
|
|
8
|
+
commands: DekCommand[];
|
|
8
9
|
plugins: Readonly<Record<string, Readonly<DekPluginFactory>>>;
|
|
9
10
|
integrationInstances: Readonly<Record<string, Readonly<DekIntegration>>>;
|
|
10
11
|
setLocation: SetLocationFunc;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { LibraryState } from '../state';
|
|
3
|
-
declare function useUserConfig(email: string, password: string, plugin?: DekPluginFactory, pluginConfig?: any): Readonly<LibraryState>;
|
|
1
|
+
declare function useUserConfig(): import("../state").LibraryState | undefined;
|
|
4
2
|
export default useUserConfig;
|
package/dist/lib/plugins.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DekPluginFactory } from '@appkit/dek-plugin';
|
|
2
|
-
export declare function updatePlugins(
|
|
2
|
+
export declare function updatePlugins(authToken: string): Promise<void>;
|
|
3
3
|
export declare function unloadPlugins(): Promise<void>;
|
|
4
4
|
export declare function updateLocalPlugin(plugin: DekPluginFactory, pluginConfig: any): Promise<void>;
|
|
5
5
|
export declare function unloadLocalPlugin(): Promise<void>;
|
package/package.json
CHANGED