@await-widget/runtime 0.0.30 → 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 +2 -0
- package/types/model.d.ts +7 -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
|
@@ -132,6 +132,7 @@ type AwaitDefineConfig<T extends Record<string, unknown>, Intents> = {
|
|
|
132
132
|
context: TimelineContext,
|
|
133
133
|
) => Timeline<T> | Promise<Timeline<T>>;
|
|
134
134
|
widgetFamilies?: WidgetFamily[];
|
|
135
|
+
autoAccented?: boolean;
|
|
135
136
|
widgetIntents?: {
|
|
136
137
|
[IntentKey in keyof Intents]: Intents[IntentKey] extends (
|
|
137
138
|
...args: infer IntentArguments
|
|
@@ -165,6 +166,7 @@ export declare const AwaitEnv: {
|
|
|
165
166
|
readonly tag: number;
|
|
166
167
|
readonly host: 'app' | 'widget';
|
|
167
168
|
readonly version: string;
|
|
169
|
+
readonly appVersion: string;
|
|
168
170
|
test(...args: unknown[]): unknown;
|
|
169
171
|
};
|
|
170
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 = {
|
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;
|