@appkit/dek-lib 0.1.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/README.md +3 -0
- package/dist/components/Background/Background.d.ts +6 -0
- package/dist/components/Background/Background.styled.d.ts +10 -0
- package/dist/components/Board/Board.d.ts +5 -0
- package/dist/components/BoardProvider/BoardProvider.d.ts +8 -0
- package/dist/components/BoardProvider/BoardStyles.d.ts +6 -0
- package/dist/components/CommandGroup/CommandGroup.d.ts +5 -0
- package/dist/components/CommandGroup/CommandGroup.styled.d.ts +297 -0
- package/dist/components/Header/Header.d.ts +5 -0
- package/dist/components/Header/Header.styled.d.ts +822 -0
- package/dist/components/LayoutRenderer/LayoutRenderer.d.ts +5 -0
- package/dist/components/RouteResolver/RouteResolver.d.ts +12 -0
- package/dist/components/Router/Router.d.ts +6 -0
- package/dist/components/Router/Router.styled.d.ts +273 -0
- package/dist/components/Zone/Zone.d.ts +5 -0
- package/dist/data/fetchUserData.d.ts +4 -0
- package/dist/data/fetchUserPlugins.d.ts +5 -0
- package/dist/data/fetchUserToken.d.ts +2 -0
- package/dist/data/getClient.d.ts +3 -0
- package/dist/data/types/fragment-masking.d.ts +15 -0
- package/dist/data/types/gql.d.ts +50 -0
- package/dist/data/types/graphql.d.ts +1283 -0
- package/dist/data/types/index.d.ts +2 -0
- package/dist/data/watchUser.d.ts +2 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.es.js +65766 -0
- package/dist/index.umd.js +65783 -0
- package/dist/lib/data.d.ts +1 -0
- package/dist/lib/globals.d.ts +14 -0
- package/dist/lib/hooks/useUserConfig.d.ts +4 -0
- package/dist/lib/plugins.d.ts +5 -0
- package/dist/lib/state.d.ts +16 -0
- package/dist/lib/utils/delay.d.ts +5 -0
- package/dist/lib/utils/extractErrorMessage.d.ts +1 -0
- package/dist/lib/utils/loadCustomPlugin.d.ts +6 -0
- package/dist/lib/utils/noop.d.ts +2 -0
- package/dist/lib/utils/parsePropsForComponent.d.ts +6 -0
- package/dist/lib/utils/tryAsync.d.ts +2 -0
- package/dist/lib/utils/waitForChange.d.ts +2 -0
- package/dist/main.d.ts +1 -0
- package/dist/plugins/base/boards/MainBoard.d.ts +2 -0
- package/dist/plugins/base/components/Greeting/Greeting.d.ts +2 -0
- package/dist/plugins/base/components/Greeting/Greeting.styled.d.ts +545 -0
- package/dist/plugins/base/lib/formatDateTime.d.ts +2 -0
- package/dist/plugins/base/plugin.d.ts +19 -0
- package/dist/plugins/base/screens/AboutScreen.d.ts +2 -0
- package/dist/plugins/base/screens/SettingsScreen.d.ts +2 -0
- package/dist/plugins/calendar/CalendarTiles/CalendarTiles.d.ts +11 -0
- package/dist/plugins/calendar/CalendarTiles/CalendarTiles.styled.d.ts +817 -0
- package/dist/plugins/calendar/CalendarTiles/UpcomingEvents.d.ts +7 -0
- package/dist/plugins/calendar/api/events.d.ts +2 -0
- package/dist/plugins/calendar/hooks/useEvents.d.ts +31 -0
- package/dist/plugins/calendar/lib/areEventsEqual.d.ts +3 -0
- package/dist/plugins/calendar/lib/findPastEvents.d.ts +3 -0
- package/dist/plugins/calendar/lib/findUpcomingEvents.d.ts +3 -0
- package/dist/plugins/calendar/lib/formatDateTime.d.ts +2 -0
- package/dist/plugins/calendar/lib/getTextWidth.d.ts +10 -0
- package/dist/plugins/calendar/plugin.d.ts +24 -0
- package/dist/plugins/calendar/screens/EventScreen/DateBadge.d.ts +2 -0
- package/dist/plugins/calendar/screens/EventScreen/EventScreen.d.ts +5 -0
- package/dist/plugins/calendar/screens/EventScreen/EventScreen.styled.d.ts +273 -0
- package/dist/plugins/calendar/screens/EventScreen/TitleBarWithTime.d.ts +2 -0
- package/dist/plugins/calendar/types.d.ts +13 -0
- package/dist/plugins/clock/ClockComponent/ClockComponent.d.ts +2 -0
- package/dist/plugins/desktop/BrowserButton.d.ts +6 -0
- package/dist/plugins/desktop/api/browser.d.ts +1 -0
- package/dist/plugins/desktop/constants.d.ts +1 -0
- package/dist/plugins/home-assistant/EntityButton/EntityButton.d.ts +9 -0
- package/dist/plugins/home-assistant/MediaButton/MediaButton.d.ts +8 -0
- package/dist/plugins/home-assistant/MediaView/CoverArt/CoverArt.d.ts +7 -0
- package/dist/plugins/home-assistant/MediaView/CoverArt/CoverArt.styled.d.ts +6 -0
- package/dist/plugins/home-assistant/MediaView/MediaTrack/MediaTrack.d.ts +6 -0
- package/dist/plugins/home-assistant/MediaView/MediaView.d.ts +6 -0
- package/dist/plugins/home-assistant/MediaView/MediaView.styled.d.ts +1124 -0
- package/dist/plugins/home-assistant/WeatherView/WeatherIcon/WeatherIcon.d.ts +6 -0
- package/dist/plugins/home-assistant/WeatherView/WeatherIcon/WeatherIcon.styled.d.ts +7 -0
- package/dist/plugins/home-assistant/WeatherView/WeatherView.d.ts +2 -0
- package/dist/plugins/home-assistant/api/accessories.d.ts +7 -0
- package/dist/plugins/home-assistant/api/constants.d.ts +2 -0
- package/dist/plugins/home-assistant/api/getImageAsBase64.d.ts +2 -0
- package/dist/plugins/home-assistant/api/ha.d.ts +9 -0
- package/dist/plugins/home-assistant/api/index.d.ts +4 -0
- package/dist/plugins/home-assistant/api/media.d.ts +4 -0
- package/dist/plugins/home-assistant/api/state.d.ts +6 -0
- package/dist/plugins/home-assistant/api/transforms/transformMediaData.d.ts +3 -0
- package/dist/plugins/home-assistant/api/transforms/transformSwitchData.d.ts +3 -0
- package/dist/plugins/home-assistant/api/transforms/transformWeatherData.d.ts +3 -0
- package/dist/plugins/home-assistant/api/types.d.ts +32 -0
- package/dist/plugins/home-assistant/api/weather.d.ts +2 -0
- package/dist/plugins/home-assistant/hooks/useEntities.d.ts +27 -0
- package/dist/plugins/home-assistant/hooks/useEntity.d.ts +25 -0
- package/dist/plugins/home-assistant/plugin.d.ts +12 -0
- package/dist/plugins/homekit/HomekitButton.d.ts +8 -0
- package/dist/plugins/homekit/api/accessories.d.ts +6 -0
- package/dist/plugins/homekit/constants.d.ts +1 -0
- package/dist/plugins/weather/WeatherComponent/WeatherComponent.d.ts +2 -0
- package/dist/plugins/weather/WeatherComponent/WeatherComponent.styled.d.ts +817 -0
- package/dist/plugins/weather/WeatherDisplay/WeatherDisplay.d.ts +6 -0
- package/dist/plugins/weather/WeatherDisplay/WeatherDisplay.styled.d.ts +817 -0
- package/dist/plugins/weather/WeatherIcon/WeatherIcon.d.ts +6 -0
- package/dist/plugins/weather/WeatherIcon/WeatherIcon.styled.d.ts +6 -0
- package/dist/plugins/weather/getLocationWeather.d.ts +13 -0
- package/package.json +67 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type ContainerProps = {
|
|
3
|
+
$top: number;
|
|
4
|
+
};
|
|
5
|
+
export declare const Container: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContainerProps>>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type WeatherStatus = {
|
|
2
|
+
temperature: number;
|
|
3
|
+
type: WeatherType;
|
|
4
|
+
windDirection: number;
|
|
5
|
+
windSpeed: number;
|
|
6
|
+
};
|
|
7
|
+
export type WeatherType = 'clear' | 'partly-cloudy' | 'overcast' | 'fog' | 'drizzle' | 'rain' | 'heavy-rain' | 'freezing-rain' | 'snow' | 'heavy-snow' | 'thunderstorm' | 'hail' | 'unknown';
|
|
8
|
+
export type WeatherStatusResult = {
|
|
9
|
+
success: boolean;
|
|
10
|
+
data?: WeatherStatus;
|
|
11
|
+
error?: string;
|
|
12
|
+
};
|
|
13
|
+
export default function getLocationWeather(): Promise<WeatherStatusResult>;
|
package/package.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@appkit/dek-lib",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "tsc && vite build",
|
|
8
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
9
|
+
"codegen": "graphql-codegen",
|
|
10
|
+
"preview": "vite preview"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"axios": "^1.6.2",
|
|
14
|
+
"buffer": "^6.0.3",
|
|
15
|
+
"eventemitter3": "^5.0.1",
|
|
16
|
+
"home-assistant-js-websocket": "^9.1.0",
|
|
17
|
+
"lodash": "^4.17.21",
|
|
18
|
+
"moment": "^2.29.4",
|
|
19
|
+
"react": "^16.8.0 || 17.x || 18.x",
|
|
20
|
+
"react-dom": "^16.8.0 || 17.x || 18.x",
|
|
21
|
+
"react-icons": "^4.11.0",
|
|
22
|
+
"react-jsx-parser": "^1.29.0",
|
|
23
|
+
"react-transition-group": "^4.4.5",
|
|
24
|
+
"styled-components": "^5.0.0 || 6.x",
|
|
25
|
+
"valtio": "^1.11.3",
|
|
26
|
+
"vite-plugin-svgr": "^4.1.0",
|
|
27
|
+
"wouter": "^2.12.1"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@apollo/client": "^3.8.7",
|
|
31
|
+
"@graphql-codegen/cli": "^5.0.0",
|
|
32
|
+
"@graphql-codegen/client-preset": "^4.1.0",
|
|
33
|
+
"@graphql-typed-document-node/core": "^3.2.0",
|
|
34
|
+
"@types/lodash": "^4.14.202",
|
|
35
|
+
"@types/react": "^18.2.15",
|
|
36
|
+
"@types/react-dom": "^18.2.7",
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "^6.9.0",
|
|
38
|
+
"@typescript-eslint/parser": "^6.9.0",
|
|
39
|
+
"@vitejs/plugin-react": "^4.0.3",
|
|
40
|
+
"eslint": "^8.52.0",
|
|
41
|
+
"eslint-config-prettier": "^9.0.0",
|
|
42
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
43
|
+
"eslint-plugin-react": "^7.33.2",
|
|
44
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
45
|
+
"eslint-plugin-react-refresh": "^0.4.3",
|
|
46
|
+
"prettier": "^3.0.3",
|
|
47
|
+
"typescript": "^5.0.2",
|
|
48
|
+
"vite": "^4.4.5",
|
|
49
|
+
"vite-plugin-dts": "^3.6.3"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"react": "^16.8.0 || 17.x || 18.x",
|
|
53
|
+
"react-dom": "^16.8.0 || 17.x || 18.x"
|
|
54
|
+
},
|
|
55
|
+
"files": [
|
|
56
|
+
"dist"
|
|
57
|
+
],
|
|
58
|
+
"main": "./dist/index.umd.js",
|
|
59
|
+
"module": "./dist/index.es.js",
|
|
60
|
+
"types": "./dist/index.d.ts",
|
|
61
|
+
"Xexports": {
|
|
62
|
+
".": {
|
|
63
|
+
"import": "./dist/index.es.js",
|
|
64
|
+
"require": "./dist/index.umd.js"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|