@await-widget/runtime 0.0.6 → 0.0.8

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/types/meta.d.ts CHANGED
@@ -1,392 +1,416 @@
1
- type CornerRadiusStyle = "circular" | "continuous";
1
+ type CornerRadiusStyle = 'circular' | 'continuous';
2
2
 
3
- type TimeStyle = "time" | "date" | "relative" | "offset" | "timer";
3
+ type TimeStyle = 'time' | 'date' | 'relative' | 'offset' | 'timer';
4
4
 
5
- type Material = "regular" | "thin" | "thick" | "ultraThin" | "ultraThick";
5
+ type Material = 'regular' | 'thin' | 'thick' | 'ultraThin' | 'ultraThick';
6
6
 
7
7
  type ShapeStyle =
8
- | Color
9
- | Material
10
- | LinearGradient
11
- | RadialGradient
12
- | AngularGradient
13
- | "primary"
14
- | "secondary"
15
- | "tertiary"
16
- | "quaternary"
17
- | "quinary";
8
+ | Color
9
+ | Material
10
+ | LinearGradient
11
+ | RadialGradient
12
+ | AngularGradient
13
+ | 'primary'
14
+ | 'secondary'
15
+ | 'tertiary'
16
+ | 'quaternary'
17
+ | 'quinary';
18
18
 
19
19
  type NativeAnimation = (
20
- | {
21
- type?:
22
- | "linear"
23
- | "default"
24
- | "easeIn"
25
- | "easeInOut"
26
- | "easeOut"
27
- | "circularEaseIn"
28
- | "circularEaseInOut"
29
- | "circularEaseOut";
30
- duration?: number;
31
- }
32
- | {
33
- type: "interactiveSpring";
34
- blendDuration?: number;
35
- duration?: number;
36
- bounce?: number;
37
- }
38
- | {
39
- type: "bouncy";
40
- bounce?: number;
41
- duration?: number;
42
- }
43
- | {
44
- type: "smooth";
45
- duration?: number;
46
- bounce?: number;
47
- }
48
- | {
49
- type: "spring";
50
- blendDuration?: number;
51
- duration?: number;
52
- bounce?: number;
53
- }
54
- | {
55
- type: "timingCurve";
56
- start: UnitPoint;
57
- end: UnitPoint;
58
- duration?: number;
59
- }
60
- | {
61
- type: "snappy";
62
- bounce?: number;
63
- duration?: number;
64
- }
20
+ | {
21
+ type?:
22
+ | 'linear'
23
+ | 'default'
24
+ | 'easeIn'
25
+ | 'easeInOut'
26
+ | 'easeOut'
27
+ | 'circularEaseIn'
28
+ | 'circularEaseInOut'
29
+ | 'circularEaseOut';
30
+ duration?: number;
31
+ }
32
+ | {
33
+ type: 'interactiveSpring';
34
+ blendDuration?: number;
35
+ duration?: number;
36
+ bounce?: number;
37
+ }
38
+ | {
39
+ type: 'bouncy';
40
+ bounce?: number;
41
+ duration?: number;
42
+ }
43
+ | {
44
+ type: 'smooth';
45
+ duration?: number;
46
+ bounce?: number;
47
+ }
48
+ | {
49
+ type: 'spring';
50
+ blendDuration?: number;
51
+ duration?: number;
52
+ bounce?: number;
53
+ }
54
+ | {
55
+ type: 'timingCurve';
56
+ start: UnitPoint;
57
+ end: UnitPoint;
58
+ duration?: number;
59
+ }
60
+ | {
61
+ type: 'snappy';
62
+ bounce?: number;
63
+ duration?: number;
64
+ }
65
65
  ) & {
66
- value?: unknown;
67
- delay?: number;
68
- autoreverses?: boolean;
69
- speed?: number;
70
- loop?: boolean | number;
66
+ value?: unknown;
67
+ delay?: number;
68
+ autoreverses?: boolean;
69
+ speed?: number;
70
+ loop?: boolean | number;
71
71
  };
72
72
 
73
73
  type ContentTransition =
74
- | "identity"
75
- | "interpolate"
76
- | "opacity"
77
- | "symbolEffect"
78
- | "numericText"
79
- | ["numericText", boolean]
80
- | ["numericText", number];
74
+ | 'identity'
75
+ | 'interpolate'
76
+ | 'opacity'
77
+ | 'symbolEffect'
78
+ | 'numericText'
79
+ | ['numericText', boolean]
80
+ | ['numericText', number];
81
81
 
82
- type Edge = "top" | "bottom" | "leading" | "trailing";
82
+ type Edge = 'top' | 'bottom' | 'leading' | 'trailing';
83
83
 
84
84
  type RawTransition =
85
- | "identity"
86
- | "blurReplace"
87
- | "opacity"
88
- | "slide"
89
- | "scale"
90
- | ["scale", number, UnitPoint?]
91
- | ["push", Edge]
92
- | ["offset", number, number]
93
- | ["move", Edge];
85
+ | 'identity'
86
+ | 'blurReplace'
87
+ | 'opacity'
88
+ | 'slide'
89
+ | 'scale'
90
+ | ['scale', number, UnitPoint?]
91
+ | ['push', Edge]
92
+ | ['offset', number, number]
93
+ | ['move', Edge];
94
94
 
95
95
  type Transition = RawTransition | [RawTransition, RawTransition];
96
96
 
97
97
  type Padding =
98
- | number
99
- | {
100
- left?: number;
101
- right?: number;
102
- top?: number;
103
- bottom?: number;
104
- vertical?: number;
105
- horizontal?: number;
106
- other?: number;
107
- };
98
+ | number
99
+ | {
100
+ left?: number;
101
+ right?: number;
102
+ top?: number;
103
+ bottom?: number;
104
+ vertical?: number;
105
+ horizontal?: number;
106
+ other?: number;
107
+ };
108
108
 
109
109
  type RadialGradient = {
110
- gradient: "radial";
111
- colors?: Color[];
112
- stops?: Array<[Color, number]>;
113
- startRadius?: number;
114
- endRadius?: number;
110
+ gradient: 'radial';
111
+ colors?: Color[];
112
+ stops?: Array<[Color, number]>;
113
+ startRadius?: number;
114
+ endRadius?: number;
115
115
  };
116
116
 
117
117
  type AngularGradient = {
118
- gradient: "angular";
119
- colors?: Color[];
120
- stops?: Array<[Color, number]>;
121
- angle?: number;
122
- center?: UnitPoint;
118
+ gradient: 'angular';
119
+ colors?: Color[];
120
+ stops?: Array<[Color, number]>;
121
+ angle?: number;
122
+ center?: UnitPoint;
123
123
  };
124
124
 
125
125
  type LinearGradient = {
126
- gradient: "linear";
127
- colors?: Color[];
128
- stops?: Stop[];
129
- startPoint?: UnitPoint;
130
- endPoint?: UnitPoint;
126
+ gradient: 'linear';
127
+ colors?: Color[];
128
+ stops?: Stop[];
129
+ startPoint?: UnitPoint;
130
+ endPoint?: UnitPoint;
131
131
  };
132
132
 
133
133
  type UnitPoint =
134
- | "center"
135
- | "zero"
136
- | "leading"
137
- | "trailing"
138
- | "top"
139
- | "topLeading"
140
- | "topTrailing"
141
- | "bottom"
142
- | "bottomLeading"
143
- | "bottomTrailing"
144
- | Point;
134
+ | 'center'
135
+ | 'zero'
136
+ | 'leading'
137
+ | 'trailing'
138
+ | 'top'
139
+ | 'topLeading'
140
+ | 'topTrailing'
141
+ | 'bottom'
142
+ | 'bottomLeading'
143
+ | 'bottomTrailing'
144
+ | Point;
145
145
 
146
146
  type Stop = [Color, number];
147
147
 
148
148
  type RawColor =
149
- | ""
150
- | "background"
151
- | "black"
152
- | "blue"
153
- | "brown"
154
- | "cyan"
155
- | "gray"
156
- | "green"
157
- | "indigo"
158
- | "magenta"
159
- | "mint"
160
- | "orange"
161
- | "pink"
162
- | "primary"
163
- | "purple"
164
- | "red"
165
- | "secondary"
166
- | "teal"
167
- | "white"
168
- | "yellow"
169
- | string
170
- | number;
149
+ | ''
150
+ | 'background'
151
+ | 'black'
152
+ | 'blue'
153
+ | 'brown'
154
+ | 'cyan'
155
+ | 'gray'
156
+ | 'green'
157
+ | 'indigo'
158
+ | 'magenta'
159
+ | 'mint'
160
+ | 'orange'
161
+ | 'pink'
162
+ | 'primary'
163
+ | 'purple'
164
+ | 'red'
165
+ | 'secondary'
166
+ | 'teal'
167
+ | 'white'
168
+ | 'yellow'
169
+ | string
170
+ | number;
171
171
 
172
172
  type RawThemeColor = RawColor | [RawColor, number];
173
173
 
174
174
  type Color =
175
- | RawThemeColor
176
- | {
177
- dark?: RawThemeColor;
178
- light?: RawThemeColor;
179
- };
175
+ | RawThemeColor
176
+ | {
177
+ dark?: RawThemeColor;
178
+ light?: RawThemeColor;
179
+ };
180
180
 
181
181
  type VerticalAlignment =
182
- | "firstTextBaseline"
183
- | "lastTextBaseline"
184
- | "top"
185
- | "bottom"
186
- | "center";
182
+ | 'firstTextBaseline'
183
+ | 'lastTextBaseline'
184
+ | 'top'
185
+ | 'bottom'
186
+ | 'center';
187
187
 
188
188
  type HorizontalAlignment =
189
- | "listRowSeparatorLeading"
190
- | "listRowSeparatorTrailing"
191
- | "leading"
192
- | "trailing"
193
- | "center";
189
+ | 'listRowSeparatorLeading'
190
+ | 'listRowSeparatorTrailing'
191
+ | 'leading'
192
+ | 'trailing'
193
+ | 'center';
194
194
 
195
195
  type Alignment =
196
- | "leading"
197
- | "trailing"
198
- | "top"
199
- | "bottom"
200
- | "topLeading"
201
- | "topTrailing"
202
- | "bottomLeading"
203
- | "bottomTrailing"
204
- | "center"
205
- | "trailingFirstTextBaseline"
206
- | "leadingLastTextBaseline"
207
- | "leadingFirstTextBaseline"
208
- | "centerLastTextBaseline"
209
- | "centerFirstTextBaseline"
210
- | "trailingLastTextBaseline";
211
-
212
- type Dimension = "max" | number;
196
+ | 'leading'
197
+ | 'trailing'
198
+ | 'top'
199
+ | 'bottom'
200
+ | 'topLeading'
201
+ | 'topTrailing'
202
+ | 'bottomLeading'
203
+ | 'bottomTrailing'
204
+ | 'center'
205
+ | 'trailingFirstTextBaseline'
206
+ | 'leadingLastTextBaseline'
207
+ | 'leadingFirstTextBaseline'
208
+ | 'centerLastTextBaseline'
209
+ | 'centerFirstTextBaseline'
210
+ | 'trailingLastTextBaseline';
211
+
212
+ type Dimension = 'max' | number;
213
+
214
+ type Size = {
215
+ width: number;
216
+ height: number;
217
+ };
218
+
219
+ type TemplateRenderingMode = 'original' | 'template';
213
220
 
214
221
  type AspectRatio =
215
- | "fill"
216
- | "fit"
217
- | [aspectRatio: number, contentMode: "fill" | "fit"];
222
+ | 'fill'
223
+ | 'fit'
224
+ | [aspectRatio: number, contentMode: 'fill' | 'fit'];
225
+
226
+ type IntentInfo = {
227
+ name: string;
228
+ args: Encodable[];
229
+ };
230
+
231
+ type Encodable =
232
+ | string
233
+ | number
234
+ | boolean
235
+ | undefined
236
+ | Encodable[]
237
+ | {
238
+ [key: string]: Encodable;
239
+ };
218
240
 
219
241
  type ID = {
220
- id?: Encodable;
242
+ id?: Encodable;
221
243
  };
222
244
 
223
- type TextAlignment = "center" | "leading" | "trailing";
245
+ type TextAlignment = 'center' | 'leading' | 'trailing';
224
246
 
225
- type FontDesign = "monospaced" | "rounded" | "serif" | "default";
247
+ type FontDesign = 'monospaced' | 'rounded' | 'serif' | 'default';
226
248
 
227
249
  type FontWeight =
228
- | 100
229
- | "ultraLight"
230
- | 200
231
- | "thin"
232
- | 300
233
- | "light"
234
- | 400
235
- | "regular"
236
- | 500
237
- | "medium"
238
- | 600
239
- | "semibold"
240
- | 700
241
- | "bold"
242
- | 800
243
- | "heavy"
244
- | 900
245
- | "black";
246
-
247
- type FontWidth = "compressed" | "condensed" | "standard" | "expanded" | number;
248
-
249
- type Interpolation = "none" | "low" | "medium" | "high";
250
-
251
- type Resizable = boolean | "stretch" | "tile";
250
+ | 100
251
+ | 'ultraLight'
252
+ | 200
253
+ | 'thin'
254
+ | 300
255
+ | 'light'
256
+ | 400
257
+ | 'regular'
258
+ | 500
259
+ | 'medium'
260
+ | 600
261
+ | 'semibold'
262
+ | 700
263
+ | 'bold'
264
+ | 800
265
+ | 'heavy'
266
+ | 900
267
+ | 'black';
268
+
269
+ type FontWidth = 'compressed' | 'condensed' | 'standard' | 'expanded' | number;
270
+
271
+ type Interpolation = 'none' | 'low' | 'medium' | 'high';
272
+
273
+ type Resizable = boolean | 'stretch' | 'tile';
252
274
 
253
275
  type Point =
254
- | number
255
- | {
256
- x?: number;
257
- y?: number;
258
- };
276
+ | number
277
+ | {
278
+ x?: number;
279
+ y?: number;
280
+ };
259
281
 
260
282
  type ScaleEffect =
261
- | number
262
- | {
263
- scale?: number;
264
- anchor?: UnitPoint;
265
- }
266
- | {
267
- x?: number;
268
- y?: number;
269
- anchor?: UnitPoint;
270
- };
283
+ | number
284
+ | {
285
+ scale?: number;
286
+ anchor?: UnitPoint;
287
+ }
288
+ | {
289
+ x?: number;
290
+ y?: number;
291
+ anchor?: UnitPoint;
292
+ };
271
293
 
272
294
  type Font = {
273
- name: string;
274
- size: number;
275
- wght?: number;
276
- wdth?: number;
277
- opsz?: number;
278
- slnt?: number;
279
- ital?: number;
280
-
281
- GRAD?: number;
282
- HGHT?: number;
283
- SOFT?: number;
284
-
285
- monospacedDigit?: boolean;
286
- features?: string[] | string;
295
+ name: string;
296
+ size: number;
297
+ wght?: number;
298
+ wdth?: number;
299
+ opsz?: number;
300
+ slnt?: number;
301
+ ital?: number;
302
+
303
+ GRAD?: number;
304
+ HGHT?: number;
305
+ SOFT?: number;
306
+
307
+ monospacedDigit?: boolean;
308
+ features?: string[] | string;
287
309
  };
288
310
 
289
311
  type Rotation3DEffect = {
290
- angle: number;
291
- x?: number;
292
- y?: number;
293
- z?: number;
294
- anchor?: UnitPoint;
295
- anchorZ?: number;
296
- perspective?: number;
312
+ angle: number;
313
+ x?: number;
314
+ y?: number;
315
+ z?: number;
316
+ anchor?: UnitPoint;
317
+ anchorZ?: number;
318
+ perspective?: number;
297
319
  };
298
320
 
299
321
  type RotationEffect =
300
- | number
301
- | {
302
- angle: number;
303
- anchor: UnitPoint;
304
- };
322
+ | number
323
+ | {
324
+ angle: number;
325
+ anchor: UnitPoint;
326
+ };
305
327
 
306
328
  type Frame =
307
- | {
308
- maxWidth?: Dimension;
309
- maxHeight?: Dimension;
310
- alignment?: Alignment;
311
- }
312
- | {
313
- width?: number;
314
- height?: number;
315
- alignment?: Alignment;
316
- };
329
+ | {
330
+ maxWidth?: Dimension;
331
+ maxHeight?: Dimension;
332
+ alignment?: Alignment;
333
+ }
334
+ | {
335
+ width?: number;
336
+ height?: number;
337
+ alignment?: Alignment;
338
+ };
317
339
 
318
340
  type Shadow = {
319
- color?: Color;
320
- x?: number;
321
- y?: number;
322
- blur?: number;
341
+ color?: Color;
342
+ x?: number;
343
+ y?: number;
344
+ blur?: number;
323
345
  };
324
346
 
325
- type Pattern = "dash" | "dashDot" | "dashDotDot" | "dot" | "solid";
347
+ type Pattern = 'dash' | 'dashDot' | 'dashDotDot' | 'dot' | 'solid';
326
348
 
327
349
  type BlendMode =
328
- | "normal"
329
- | "multiply"
330
- | "screen"
331
- | "overlay"
332
- | "darken"
333
- | "lighten"
334
- | "colorDodge"
335
- | "colorBurn"
336
- | "softLight"
337
- | "hardLight"
338
- | "difference"
339
- | "exclusion"
340
- | "hue"
341
- | "saturation"
342
- | "color"
343
- | "luminosity"
344
- | "sourceAtop"
345
- | "destinationOver"
346
- | "destinationOut"
347
- | "plusDarker"
348
- | "plusLighter";
350
+ | 'normal'
351
+ | 'multiply'
352
+ | 'screen'
353
+ | 'overlay'
354
+ | 'darken'
355
+ | 'lighten'
356
+ | 'colorDodge'
357
+ | 'colorBurn'
358
+ | 'softLight'
359
+ | 'hardLight'
360
+ | 'difference'
361
+ | 'exclusion'
362
+ | 'hue'
363
+ | 'saturation'
364
+ | 'color'
365
+ | 'luminosity'
366
+ | 'sourceAtop'
367
+ | 'destinationOver'
368
+ | 'destinationOut'
369
+ | 'plusDarker'
370
+ | 'plusLighter';
349
371
 
350
372
  type ButtonStyle =
351
- | "automatic"
352
- | "bordered"
353
- | "borderedProminent"
354
- | "borderless"
355
- | "plain"
356
- | CustomButtonStyle;
373
+ | 'automatic'
374
+ | 'bordered'
375
+ | 'borderedProminent'
376
+ | 'borderless'
377
+ | 'plain'
378
+ | CustomButtonStyle;
357
379
 
358
380
  type CustomButtonStyle = {
359
- press: NativeView;
360
- normal: NativeView;
381
+ press: NativeView;
382
+ normal: NativeView;
361
383
  };
362
384
 
363
385
  type GifDuration = 2 | 4 | 6 | 10 | 12 | 20 | 30 | 60;
364
386
 
387
+ type TickerStyle = 'minute' | 'second' | 'hour12' | 'hour24';
388
+
365
389
  type LineHeight =
366
- | number
367
- | "loose"
368
- | "normal"
369
- | "tight"
370
- | "variable"
371
- | [type: "multiple" | "leading", value: number];
390
+ | number
391
+ | 'loose'
392
+ | 'normal'
393
+ | 'tight'
394
+ | 'variable'
395
+ | [type: 'multiple' | 'leading', value: number];
372
396
 
373
397
  type Blur =
374
- | number
375
- | {
376
- blur: number;
377
- opaque?: boolean;
378
- };
398
+ | number
399
+ | {
400
+ blur: number;
401
+ opaque?: boolean;
402
+ };
379
403
 
380
404
  type FixedSize =
381
- | boolean
382
- | {
383
- horizontal?: boolean;
384
- vertical?: boolean;
385
- };
405
+ | boolean
406
+ | {
407
+ horizontal?: boolean;
408
+ vertical?: boolean;
409
+ };
386
410
 
387
411
  type strikethrough =
388
- | boolean
389
- | {
390
- isActive?: boolean;
391
- color?: Color;
392
- };
412
+ | boolean
413
+ | {
414
+ isActive?: boolean;
415
+ color?: Color;
416
+ };