extra-map-card 1.7.1 → 1.7.2-beta.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/emc-entity-editor.d.ts +3 -2
- package/dist/components/emc-history-range-buttons.d.ts +23 -0
- package/dist/components/emc-map.d.ts +5 -2
- package/dist/components/emc-sub-entity-editor.d.ts +2 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/constants/map-schema.d.ts +1 -141
- package/dist/extra-map-card-bundle.js +112 -76
- package/dist/extra-map-card.d.ts +3 -10
- package/dist/extra-map-editor.d.ts +0 -3
- package/dist/index.d.ts +0 -4
- package/dist/index.js +112 -76
- package/dist/types/config.d.ts +1 -0
- package/dist/types/ha-frontend/home-assistant.d.ts +5 -4
- package/dist/types/index.d.ts +0 -1
- package/package.json +5 -4
package/dist/types/config.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { Auth, Connection, HassConfig, HassEntities, HassEntity, HassServices, HassServiceTarget, MessageBase } from 'home-assistant-js-websocket';
|
|
2
2
|
import { FrontendLocaleData } from './data/translation';
|
|
3
3
|
import { Themes, ThemeSettings } from './data/ws-themes';
|
|
4
|
-
|
|
4
|
+
interface Resources {
|
|
5
5
|
[language: string]: Record<string, string>;
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
interface Context {
|
|
8
8
|
id: string;
|
|
9
9
|
parent_id?: string;
|
|
10
10
|
user_id?: string | null;
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
interface ServiceCallResponse {
|
|
13
13
|
context: Context;
|
|
14
14
|
response?: any;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
interface ServiceCallRequest {
|
|
17
17
|
domain: string;
|
|
18
18
|
service: string;
|
|
19
19
|
serviceData?: Record<string, any>;
|
|
@@ -68,3 +68,4 @@ export interface HomeAssistant {
|
|
|
68
68
|
}
|
|
69
69
|
/** Return if a component is loaded. */
|
|
70
70
|
export declare const isComponentLoaded: (hass: HomeAssistant, component: string) => boolean;
|
|
71
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from './ha-frontend/home-assistant';
|
|
2
2
|
export * from './ha-frontend/lovelace/lovelace';
|
|
3
3
|
export * from './ha-frontend/fire-event';
|
|
4
|
-
export * from './ha-frontend/data/ws-templates';
|
|
5
4
|
export * from './ha-frontend/data/history';
|
|
6
5
|
export * from './ha-frontend/data/translation';
|
|
7
6
|
export * from './ha-frontend/common/entity/compute_domain';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "extra-map-card",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2-beta.0",
|
|
4
4
|
"description": "Lovelace custom map card for Home Assistant",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"home-assistant",
|
|
@@ -79,13 +79,14 @@
|
|
|
79
79
|
"crypto": false
|
|
80
80
|
},
|
|
81
81
|
"scripts": {
|
|
82
|
-
"dev": "
|
|
82
|
+
"dev": "rollup -c rollup.config.js --bundleConfigAsCjs --watch",
|
|
83
83
|
"build": "npm run clean && npm run lint && npm run rollup",
|
|
84
84
|
"lint": "eslint src/**/*.ts --fix",
|
|
85
85
|
"rollup": "rollup -c rollup.config.js --bundleConfigAsCjs",
|
|
86
86
|
"prepare": "husky install",
|
|
87
87
|
"postversion": "npm run build && git add .",
|
|
88
|
-
"clean": "rm -rf dist",
|
|
89
|
-
"start:hass": "docker run --rm -p8123:8123 -v ./test:/config homeassistant/home-assistant:beta"
|
|
88
|
+
"clean": "rm -rf dist && mkdir dist",
|
|
89
|
+
"start:hass": "docker run --rm --name hass -p8123:8123 -v ./test:/config homeassistant/home-assistant:beta",
|
|
90
|
+
"clean:cache": "rm -rf node_modules/.cache/rollup-plugin-typescript2/* && rm -rf node_modules/.cache/rollup-plugin-typescript2/rpt2_* "
|
|
90
91
|
}
|
|
91
92
|
}
|