@telemetryos/development-application-host-ui 1.9.0 → 1.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/index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>TelemetryOS Development Environment</title>
7
- <script type="module" crossorigin src="/assets/index-COMSAWs2.js"></script>
7
+ <script type="module" crossorigin src="/assets/index-CRUceYZO.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="/assets/index-BJOW8iUK.css">
9
9
  </head>
10
10
  <body>
@@ -18,11 +18,14 @@ export declare class ApiCoordinator {
18
18
  _handleMediaGetAllByFolderId(message: ClientMessage): void;
19
19
  _handleMediaGetAllByTag(message: ClientMessage): void;
20
20
  _handleMediaGetById(message: ClientMessage): void;
21
+ private _handleMediaOpenPicker;
21
22
  private _handleWeatherGetConditions;
22
23
  private _handleWeatherGetDailyForecast;
23
24
  private _handleWeatherGetHourlyForecast;
24
25
  private _handleWeatherGetCities;
25
26
  private _handleWeatherGetAlerts;
27
+ private _handleCurrencyGetSymbols;
28
+ private _handleCurrencyGetRates;
26
29
  _handleProxyFetch(message: ClientMessage): Promise<void>;
27
30
  _handlePlaylistNextPage(message: ClientMessage): void;
28
31
  _handlePlaylistPreviousPage(message: ClientMessage): void;
@@ -0,0 +1,20 @@
1
+ import type { Bridge, ClientMessage } from '@telemetryos/root-sdk/bridge';
2
+ import type { CurrencySymbols, CurrencyRates } from '@telemetryos/root-sdk';
3
+ import type { CurrencyStubConfig } from '../types/stubs';
4
+ /** Default currency symbols - common currencies with their full names */
5
+ export declare const defaultCurrencySymbols: CurrencySymbols;
6
+ /** Default exchange rates with USD as base (approximate values for development) */
7
+ export declare const defaultCurrencyRates: Record<string, CurrencyRates>;
8
+ type CurrencyListener = () => void;
9
+ export declare function handleCurrencyMessage(bridge: Bridge, message: ClientMessage): void;
10
+ export declare function getSymbols(): CurrencySymbols;
11
+ export declare function getRates(base: string, targetSymbols: string[]): CurrencyRates;
12
+ export declare function getAllRates(): Record<string, CurrencyRates>;
13
+ export declare function setSymbols(value: CurrencySymbols): void;
14
+ export declare function setRates(value: Record<string, CurrencyRates>): void;
15
+ export declare function setRatesForBase(base: string, value: CurrencyRates): void;
16
+ export declare function onCurrencyChange(listener: CurrencyListener): () => void;
17
+ export declare function resetCurrencyToDefaults(): void;
18
+ export declare function getCurrencyConfig(): CurrencyStubConfig;
19
+ export declare function setCurrencyConfig(config: CurrencyStubConfig): void;
20
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { Bridge, ClientMessage } from '@telemetryos/root-sdk/bridge';
2
+ export declare function handleMediaMessage(bridge: Bridge, message: ClientMessage): void;
@@ -88,6 +88,12 @@ export type WeatherStubConfig = {
88
88
  dailyForecast?: WeatherForecastStub[];
89
89
  hourlyForecast?: WeatherForecastStub[];
90
90
  };
91
+ export type CurrencyStubConfig = {
92
+ /** Mapping of currency codes to their full names (e.g., "USD": "United States Dollar") */
93
+ symbols: Record<string, string>;
94
+ /** Mapping of base currency to target currency rates (e.g., "USD": { "EUR": 0.92 }) */
95
+ rates: Record<string, Record<string, number>>;
96
+ };
91
97
  export interface StubsConfig {
92
98
  device: DeviceStubConfig;
93
99
  account: AccountStubConfig;
@@ -98,6 +104,7 @@ export interface StubsConfig {
98
104
  environment: EnvironmentStubConfig;
99
105
  overrides: string[];
100
106
  weather?: WeatherStubConfig;
107
+ currency?: CurrencyStubConfig;
101
108
  }
102
109
  export type PresetName = 'default' | 'minimal' | 'rich' | 'errors';
103
110
  export interface StubsPreset {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telemetryos/development-application-host-ui",
3
- "version": "1.9.0",
3
+ "version": "1.11.0",
4
4
  "description": "The official TelemetryOS application CLI package. Use it to build applications that run on the TelemetryOS platform",
5
5
  "type": "module",
6
6
  "files": [
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@hugeicons/core-free-icons": "^1.0.5",
40
40
  "@hugeicons/react": "^1.0.5",
41
- "@telemetryos/root-sdk": "^1.9.0",
41
+ "@telemetryos/root-sdk": "^1.11.0",
42
42
  "react": "^19.1.1",
43
43
  "react-dom": "^19.1.1",
44
44
  "zod": "^3.24.0"