@appkit/dek-lib 0.2.8 → 0.3.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 -5
- package/dist/components/CommandGroup/CommandGroup.styled.d.ts +4 -2
- package/dist/components/Header/Header.styled.d.ts +3 -3
- package/dist/components/Router/Router.styled.d.ts +1 -1
- package/dist/components/Zone/Zone.d.ts +2 -0
- package/dist/index.es.js +28251 -25083
- package/dist/index.umd.js +28274 -25106
- package/dist/lib/globals.d.ts +3 -1
- package/dist/lib/registry.d.ts +15 -0
- package/dist/plugins/base/components/Greeting/Greeting.styled.d.ts +2 -2
- package/dist/plugins/base/components/backgrounds/BlobBackground/BlobBackground.d.ts +7 -0
- package/dist/plugins/base/components/backgrounds/BlobBackground/BlobBackground.styled.d.ts +11 -0
- package/dist/plugins/base/components/backgrounds/BlurredLightsBackground/BlurredLightsBackground.d.ts +7 -0
- package/dist/plugins/base/components/backgrounds/BlurredLightsBackground/BlurredLightsBackground.styled.d.ts +5187 -0
- package/dist/plugins/base/components/backgrounds/GradientBackground/GradientBackground.d.ts +7 -0
- package/dist/plugins/base/components/backgrounds/GradientBackground/GradientBackground.styled.d.ts +8 -0
- package/dist/plugins/base/components/backgrounds/ImageBackground/ImageBackground.d.ts +6 -0
- package/dist/plugins/base/components/backgrounds/ImageBackground/ImageBackground.styled.d.ts +10 -0
- package/dist/plugins/base/plugin.d.ts +4 -3
- package/dist/plugins/base/screens/BackgroundsScreen.d.ts +2 -0
- package/dist/plugins/base/screens/SettingsScreen/About.d.ts +2 -0
- package/dist/plugins/base/screens/SettingsScreen/Backgrounds.d.ts +2 -0
- package/dist/plugins/base/screens/SettingsScreen/Boards.d.ts +2 -0
- package/dist/plugins/base/screens/SettingsScreen/Messages.d.ts +2 -0
- package/dist/plugins/base/screens/SettingsScreen/PluginDev.d.ts +2 -0
- package/dist/plugins/base/screens/SettingsScreen/SettingsScreen.d.ts +5 -0
- package/dist/plugins/calendar/CalendarTiles/CalendarTiles.styled.d.ts +3 -3
- package/dist/plugins/calendar/plugin.d.ts +2 -2
- package/dist/plugins/calendar/screens/EventScreen/EventScreen.styled.d.ts +1 -1
- package/dist/plugins/home-assistant/MediaView/MediaView.styled.d.ts +7 -5
- package/dist/plugins/home-assistant/plugin.d.ts +2 -2
- package/dist/plugins/weather/WeatherComponent/WeatherComponent.styled.d.ts +3 -3
- package/dist/plugins/weather/WeatherDisplay/WeatherDisplay.styled.d.ts +3 -3
- package/package.json +1 -1
package/dist/lib/globals.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DekPlugin, DekPluginFactory } from '@appkit/dek-plugin';
|
|
1
|
+
import { DekApiMessage, DekPlugin, DekPluginFactory, DekRegistry } from '@appkit/dek-plugin';
|
|
2
2
|
export type SetLocationFunc = (to: string, options?: {
|
|
3
3
|
replace?: boolean | undefined;
|
|
4
4
|
} | undefined) => void;
|
|
@@ -9,6 +9,8 @@ type Globals = {
|
|
|
9
9
|
plugins: Readonly<Record<string, Readonly<DekPluginFactory>>>;
|
|
10
10
|
pluginInstances: Readonly<Record<string, Readonly<DekPlugin>>>;
|
|
11
11
|
setLocation: SetLocationFunc;
|
|
12
|
+
registry: DekRegistry;
|
|
13
|
+
messages: DekApiMessage[];
|
|
12
14
|
};
|
|
13
15
|
declare const globals: Globals;
|
|
14
16
|
export default globals;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DekRegistry, DekRegistryCollection, DekRegistryCollectionItem, DekRegistrySchemaItem } from '@appkit/dek-plugin';
|
|
2
|
+
export declare class Registry implements DekRegistry {
|
|
3
|
+
_collections: Record<string, DekRegistryCollection>;
|
|
4
|
+
get collections(): Record<string, DekRegistryCollection>;
|
|
5
|
+
collection(collectionKey: string): DekRegistryCollection | undefined;
|
|
6
|
+
collectionItems(collectionKey: string): DekRegistryCollectionItem[] | undefined;
|
|
7
|
+
registerCollection(collectionKey: string, name: string, schema: Record<string, DekRegistrySchemaItem>): void;
|
|
8
|
+
registerCollectionItem(collectionKey: string, itemKey: string, item: DekRegistryCollectionItem): void;
|
|
9
|
+
reset(): void;
|
|
10
|
+
private validateCollectionItem;
|
|
11
|
+
private validateCollectionItemProp;
|
|
12
|
+
private validatePropsType;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: Registry;
|
|
15
|
+
export default _default;
|
|
@@ -84,7 +84,7 @@ export declare const Container: import("styled-components").IStyledComponent<"we
|
|
|
84
84
|
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
85
85
|
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
86
86
|
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
87
|
-
"aria-orientation"?: "
|
|
87
|
+
"aria-orientation"?: "vertical" | "horizontal" | undefined;
|
|
88
88
|
"aria-owns"?: string | undefined;
|
|
89
89
|
"aria-placeholder"?: string | undefined;
|
|
90
90
|
"aria-posinset"?: number | undefined;
|
|
@@ -356,7 +356,7 @@ export declare const Text: import("styled-components").IStyledComponent<"web", {
|
|
|
356
356
|
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
357
357
|
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
358
358
|
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
359
|
-
"aria-orientation"?: "
|
|
359
|
+
"aria-orientation"?: "vertical" | "horizontal" | undefined;
|
|
360
360
|
"aria-owns"?: string | undefined;
|
|
361
361
|
"aria-placeholder"?: string | undefined;
|
|
362
362
|
"aria-posinset"?: number | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type ContainerProps = {
|
|
3
|
+
$colorStart: string;
|
|
4
|
+
$colorEnd: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const Container: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContainerProps>>;
|
|
7
|
+
export type ContentProps = {
|
|
8
|
+
$speed: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const Content: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContentProps>>;
|
|
11
|
+
export {};
|