@appkit/dek-lib 0.10.0 → 0.11.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.
@@ -0,0 +1,3 @@
1
+ import { DekApi } from '../../../../plugin/dist';
2
+ declare function getPluginApi(integrationKey?: string): DekApi;
3
+ export default getPluginApi;
@@ -1,2 +1,4 @@
1
- declare const DevBoard: () => import("react/jsx-runtime").JSX.Element;
1
+ import { DekPluginElementProps } from '@appkit/dek-plugin';
2
+ type Props = DekPluginElementProps;
3
+ declare const DevBoard: (props: Props) => import("react/jsx-runtime").JSX.Element;
2
4
  export default DevBoard;
@@ -1,2 +1,4 @@
1
- declare const MainBoard: () => import("react/jsx-runtime").JSX.Element;
1
+ import { DekPluginElementProps } from '@appkit/dek-plugin';
2
+ type Props = DekPluginElementProps;
3
+ declare const MainBoard: (props: Props) => import("react/jsx-runtime").JSX.Element;
2
4
  export default MainBoard;
@@ -1,2 +1,4 @@
1
- declare const Greeting: () => import("react/jsx-runtime").JSX.Element;
1
+ import { DekPluginElementProps } from '@appkit/dek-plugin';
2
+ type Props = DekPluginElementProps;
3
+ declare const Greeting: ({ api }: Props) => import("react/jsx-runtime").JSX.Element;
2
4
  export default Greeting;
@@ -1,20 +1,11 @@
1
- import { DekApi, DekPlugin, DekPluginConfig, DekRegistry } from '@appkit/dek-plugin';
1
+ import { DekApi, DekPlugin, DekPluginBoardItem, DekPluginComponentItem, DekPluginConfig, DekPluginScreenItem, DekRegistry } from '@appkit/dek-plugin';
2
2
  declare class Plugin implements DekPlugin {
3
3
  readonly config: DekPluginConfig;
4
4
  constructor(config: DekPluginConfig, registry: DekRegistry);
5
5
  load(api: DekApi): Promise<void>;
6
6
  unload(): Promise<void>;
7
- get screens(): {
8
- path: string;
9
- element: () => import("react/jsx-runtime").JSX.Element;
10
- }[];
11
- get components(): {
12
- key: string;
13
- element: (props: any) => import("react/jsx-runtime").JSX.Element;
14
- }[];
15
- get boards(): {
16
- key: string;
17
- element: () => import("react/jsx-runtime").JSX.Element;
18
- }[];
7
+ get screens(): DekPluginScreenItem[];
8
+ get components(): DekPluginComponentItem[];
9
+ get boards(): DekPluginBoardItem[];
19
10
  }
20
11
  export default Plugin;
@@ -1,2 +1,4 @@
1
- declare const AboutScreen: () => import("react/jsx-runtime").JSX.Element;
1
+ import { DekPluginElementProps } from '@appkit/dek-plugin';
2
+ type Props = DekPluginElementProps;
3
+ declare const AboutScreen: ({ api }: Props) => import("react/jsx-runtime").JSX.Element;
2
4
  export default AboutScreen;
@@ -1,2 +1,6 @@
1
- declare const Backgrounds: () => import("react/jsx-runtime").JSX.Element;
1
+ import { DekApi } from '@appkit/dek-plugin';
2
+ type Props = {
3
+ api: DekApi;
4
+ };
5
+ declare const Backgrounds: ({ api }: Props) => import("react/jsx-runtime").JSX.Element;
2
6
  export default Backgrounds;
@@ -1,2 +1,6 @@
1
- declare const Boards: () => import("react/jsx-runtime").JSX.Element;
1
+ import { DekApi } from '@appkit/dek-plugin';
2
+ type Props = {
3
+ api: DekApi;
4
+ };
5
+ declare const Boards: ({ api }: Props) => import("react/jsx-runtime").JSX.Element;
2
6
  export default Boards;
@@ -1,2 +1,6 @@
1
- declare const Messages: () => import("react/jsx-runtime").JSX.Element;
1
+ import { DekApi } from '@appkit/dek-plugin';
2
+ type Props = {
3
+ api: DekApi;
4
+ };
5
+ declare const Messages: ({ api }: Props) => import("react/jsx-runtime").JSX.Element;
2
6
  export default Messages;
@@ -1,2 +1,6 @@
1
- declare const PluginDev: () => import("react/jsx-runtime").JSX.Element;
1
+ import { DekApi } from '@appkit/dek-plugin';
2
+ type Props = {
3
+ api: DekApi;
4
+ };
5
+ declare const PluginDev: ({ api }: Props) => import("react/jsx-runtime").JSX.Element;
2
6
  export default PluginDev;
@@ -1,5 +1,6 @@
1
- type Props = {
1
+ import { DekPluginElementProps } from '@appkit/dek-plugin';
2
+ type Props = DekPluginElementProps & {
2
3
  isPluginDev?: boolean;
3
4
  };
4
- declare const SettingsScreen: ({ isPluginDev }: Props) => import("react/jsx-runtime").JSX.Element;
5
+ declare const SettingsScreen: ({ api, isPluginDev }: Props) => import("react/jsx-runtime").JSX.Element;
5
6
  export default SettingsScreen;
@@ -1,2 +1,6 @@
1
- declare const Theme: () => import("react/jsx-runtime").JSX.Element;
1
+ import { DekApi } from '@appkit/dek-plugin';
2
+ type Props = {
3
+ api: DekApi;
4
+ };
5
+ declare const Theme: ({ api }: Props) => import("react/jsx-runtime").JSX.Element;
2
6
  export default Theme;
@@ -1,2 +1,4 @@
1
- declare const ComponentScreen: () => import("react/jsx-runtime").JSX.Element;
1
+ import { DekPluginElementProps } from '@appkit/dek-plugin';
2
+ type Props = DekPluginElementProps;
3
+ declare const ComponentScreen: ({ api }: Props) => import("react/jsx-runtime").JSX.Element;
2
4
  export default ComponentScreen;
@@ -1,6 +1,8 @@
1
+ import { DekApi } from '@appkit/dek-plugin';
1
2
  type Props = {
3
+ api: DekApi;
2
4
  entityId: string;
3
5
  showLargeContent?: boolean;
4
6
  };
5
- declare const MediaView: ({ entityId, showLargeContent }: Props) => import("react/jsx-runtime").JSX.Element | null;
7
+ declare const MediaView: ({ api, entityId, showLargeContent }: Props) => import("react/jsx-runtime").JSX.Element | null;
6
8
  export default MediaView;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appkit/dek-lib",
3
3
  "private": false,
4
- "version": "0.10.0",
4
+ "version": "0.11.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "tsc && vite build",
@@ -1,2 +0,0 @@
1
- declare const SettingsScreen: () => import("react/jsx-runtime").JSX.Element;
2
- export default SettingsScreen;