@await-widget/runtime 0.0.29 → 0.0.31
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/package.json +1 -1
- package/types/await.d.ts +14 -0
- package/types/bridge.d.ts +3 -0
- package/types/model.d.ts +13 -0
- package/types/prop.d.ts +8 -3
package/package.json
CHANGED
package/types/await.d.ts
CHANGED
|
@@ -213,6 +213,20 @@ declare module 'await' {
|
|
|
213
213
|
children?: never;
|
|
214
214
|
},
|
|
215
215
|
): NativeView;
|
|
216
|
+
export function XFlip(
|
|
217
|
+
props: AxisFlipValue &
|
|
218
|
+
ID &
|
|
219
|
+
Mods & {
|
|
220
|
+
children?: never;
|
|
221
|
+
},
|
|
222
|
+
): NativeView;
|
|
223
|
+
export function YFlip(
|
|
224
|
+
props: AxisFlipValue &
|
|
225
|
+
ID &
|
|
226
|
+
Mods & {
|
|
227
|
+
children?: never;
|
|
228
|
+
},
|
|
229
|
+
): NativeView;
|
|
216
230
|
export function HFlip(
|
|
217
231
|
props: FlipValue &
|
|
218
232
|
ID &
|
package/types/bridge.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ export declare const AwaitStore: {
|
|
|
88
88
|
delete(key: string): void;
|
|
89
89
|
set(key: string, value: Encodable): void;
|
|
90
90
|
};
|
|
91
|
+
/** `AwaitFile` can interact only with files located within the widget directory. Do not access hidden paths or parent directories. */
|
|
91
92
|
export declare const AwaitFile: {
|
|
92
93
|
files(path: string): string[];
|
|
93
94
|
readJSON(path: string): unknown;
|
|
@@ -131,6 +132,7 @@ type AwaitDefineConfig<T extends Record<string, unknown>, Intents> = {
|
|
|
131
132
|
context: TimelineContext,
|
|
132
133
|
) => Timeline<T> | Promise<Timeline<T>>;
|
|
133
134
|
widgetFamilies?: WidgetFamily[];
|
|
135
|
+
autoAccented?: boolean;
|
|
134
136
|
widgetIntents?: {
|
|
135
137
|
[IntentKey in keyof Intents]: Intents[IntentKey] extends (
|
|
136
138
|
...args: infer IntentArguments
|
|
@@ -164,6 +166,7 @@ export declare const AwaitEnv: {
|
|
|
164
166
|
readonly tag: number;
|
|
165
167
|
readonly host: 'app' | 'widget';
|
|
166
168
|
readonly version: string;
|
|
169
|
+
readonly appVersion: string;
|
|
167
170
|
test(...args: unknown[]): unknown;
|
|
168
171
|
};
|
|
169
172
|
type AwaitGlobal = typeof Await;
|
package/types/model.d.ts
CHANGED
|
@@ -4,6 +4,12 @@ type ColorScheme = 'light' | 'dark';
|
|
|
4
4
|
|
|
5
5
|
type RenderingMode = 'fullColor' | 'accented' | 'vibrant';
|
|
6
6
|
|
|
7
|
+
type Accented =
|
|
8
|
+
| 'fullColor'
|
|
9
|
+
| 'accented'
|
|
10
|
+
| 'accentedDesaturated'
|
|
11
|
+
| 'desaturated';
|
|
12
|
+
|
|
7
13
|
type Update = Date | 'end' | 'rapid' | 'never';
|
|
8
14
|
|
|
9
15
|
type WidgetFamily =
|
|
@@ -71,6 +77,7 @@ type AwaitWeatherConfig = {
|
|
|
71
77
|
longitude?: number;
|
|
72
78
|
hourlyLimit?: number;
|
|
73
79
|
dailyLimit?: number;
|
|
80
|
+
start?: Date;
|
|
74
81
|
};
|
|
75
82
|
|
|
76
83
|
type AwaitWeatherCurrent = {
|
|
@@ -92,9 +99,13 @@ type AwaitWeatherHourly = {
|
|
|
92
99
|
condition: string;
|
|
93
100
|
symbolName: string;
|
|
94
101
|
temperatureCelsius: number;
|
|
102
|
+
apparentTemperatureCelsius: number;
|
|
95
103
|
humidity: number;
|
|
96
104
|
uvIndex: number;
|
|
97
105
|
windSpeedMetersPerSecond: number;
|
|
106
|
+
windDirectionDegrees: number;
|
|
107
|
+
pressureHectopascals: number;
|
|
108
|
+
visibilityKilometers: number;
|
|
98
109
|
precipitationChance: number;
|
|
99
110
|
};
|
|
100
111
|
|
|
@@ -106,6 +117,8 @@ type AwaitWeatherDaily = {
|
|
|
106
117
|
lowTemperatureCelsius: number;
|
|
107
118
|
precipitationChance: number;
|
|
108
119
|
uvIndex: number;
|
|
120
|
+
windSpeedMetersPerSecond: number;
|
|
121
|
+
windDirectionDegrees: number;
|
|
109
122
|
};
|
|
110
123
|
|
|
111
124
|
type AwaitWeatherResult = {
|
package/types/prop.d.ts
CHANGED
|
@@ -114,8 +114,10 @@ type ImageValue = {
|
|
|
114
114
|
resizable?: Resizable;
|
|
115
115
|
/** The level of quality for rendering an image that requires interpolation, such as a scaled image. */
|
|
116
116
|
interpolation?: Interpolation;
|
|
117
|
-
/**
|
|
117
|
+
/** The mode that indicates how images are rendered */
|
|
118
118
|
style?: TemplateRenderingMode;
|
|
119
|
+
/** The mode that indicates how images are rendered on widget accented mode */
|
|
120
|
+
accented?: Accented;
|
|
119
121
|
};
|
|
120
122
|
|
|
121
123
|
type IconValue = {
|
|
@@ -160,12 +162,15 @@ type ClockSecondValue = {
|
|
|
160
162
|
size: Size;
|
|
161
163
|
};
|
|
162
164
|
|
|
163
|
-
type
|
|
165
|
+
type AxisFlipValue = {
|
|
164
166
|
index: number;
|
|
165
|
-
delta: number;
|
|
166
167
|
curr: NativeView;
|
|
167
168
|
prev: NativeView;
|
|
168
169
|
perspective?: number;
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
type FlipValue = AxisFlipValue & {
|
|
173
|
+
delta: number;
|
|
169
174
|
shadowOpacity?: number;
|
|
170
175
|
leadingHidden?: boolean;
|
|
171
176
|
trailingHidden?: boolean;
|