@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.
- package/dist/components/Board/Board.d.ts +3 -2
- package/dist/index.es.js +451 -373
- package/dist/index.umd.js +450 -372
- package/dist/lib/utils/getPluginApi.d.ts +3 -0
- package/dist/plugins/base/boards/DevBoard.d.ts +3 -1
- package/dist/plugins/base/boards/MainBoard.d.ts +3 -1
- package/dist/plugins/base/components/Greeting/Greeting.d.ts +3 -1
- package/dist/plugins/base/plugin.d.ts +4 -13
- package/dist/plugins/base/screens/AboutScreen.d.ts +3 -1
- package/dist/plugins/base/screens/SettingsScreen/Backgrounds.d.ts +5 -1
- package/dist/plugins/base/screens/SettingsScreen/Boards.d.ts +5 -1
- package/dist/plugins/base/screens/SettingsScreen/Messages.d.ts +5 -1
- package/dist/plugins/base/screens/SettingsScreen/PluginDev.d.ts +5 -1
- package/dist/plugins/base/screens/SettingsScreen/SettingsScreen.d.ts +3 -2
- package/dist/plugins/base/screens/SettingsScreen/Theme.d.ts +5 -1
- package/dist/plugins/base/screens/dev/ComponentScreen/ComponentScreen.d.ts +3 -1
- package/dist/plugins/home-assistant/MediaView/MediaView.d.ts +3 -1
- package/package.json +1 -1
- package/dist/plugins/base/screens/SettingsScreen.d.ts +0 -2
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
9
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,4 @@
|
|
|
1
|
-
|
|
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