@await-widget/runtime 0.0.10 → 0.0.12

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@await-widget/runtime",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "description": "TypeScript declarations for Await widgets.",
5
5
  "license": "MIT",
6
6
  "author": "LitoMore",
package/types/await.d.ts CHANGED
@@ -65,6 +65,13 @@ declare module 'await' {
65
65
  children?: never;
66
66
  },
67
67
  ): NativeView;
68
+ export function ProgressView(
69
+ props: ProgressViewValue &
70
+ ID &
71
+ Mods & {
72
+ children?: never;
73
+ },
74
+ ): NativeView;
68
75
  export function Image(
69
76
  props: ImageValue &
70
77
  ID &
package/types/bridge.d.ts CHANGED
@@ -69,7 +69,7 @@ export declare const AwaitMedia: {
69
69
  nowPlayingMedia(config?: AwaitNowPlayingConfig): Promise<AwaitNowPlayingInfo>;
70
70
  mediaPlayerCommand(
71
71
  command: AwaitMusicPlayerCommand,
72
- config?: AwaitMediaCommandConfig,
72
+ config?: AwaitMediaPlayConfig,
73
73
  ): Promise<void>;
74
74
  };
75
75
  export declare const AwaitStore: {
package/types/meta.d.ts CHANGED
@@ -2,6 +2,8 @@ type CornerRadiusStyle = 'circular' | 'continuous';
2
2
 
3
3
  type TimeStyle = 'time' | 'date' | 'relative' | 'offset' | 'timer';
4
4
 
5
+ type ProgressViewStyle = 'automatic' | 'linear' | 'circular';
6
+
5
7
  type Material = 'regular' | 'thin' | 'thick' | 'ultraThin' | 'ultraThick';
6
8
 
7
9
  type ShapeStyle =
package/types/model.d.ts CHANGED
@@ -11,7 +11,6 @@ type WidgetFamily =
11
11
  | 'medium'
12
12
  | 'large'
13
13
  | 'extraLarge'
14
- | 'extraLargePortrait'
15
14
  | 'accessoryInline'
16
15
  | 'accessoryCircular'
17
16
  | 'accessoryRectangular'
@@ -172,7 +171,9 @@ type AwaitMusicPlayerCommand =
172
171
  | 'toggle'
173
172
  | 'next'
174
173
  | 'previous'
175
- | 'favorite';
174
+ | 'favorite'
175
+ | 'clearRating'
176
+ | 'dislike';
176
177
 
177
178
  type AwaitMediaPlayConfig =
178
179
  | {
@@ -198,12 +199,6 @@ type AwaitMediaPlayConfig =
198
199
  id?: string;
199
200
  };
200
201
 
201
- type AwaitMediaFavoriteConfig = {
202
- rating?: -1 | 0 | 1;
203
- };
204
-
205
- type AwaitMediaCommandConfig = AwaitMediaPlayConfig | AwaitMediaFavoriteConfig;
206
-
207
202
  type AwaitCalendarConfig = {
208
203
  start?: Date;
209
204
  end?: Date;
package/types/prop.d.ts CHANGED
@@ -124,6 +124,12 @@ type TimeValue = {
124
124
  style?: TimeStyle;
125
125
  };
126
126
 
127
+ type ProgressViewValue = {
128
+ value: number | [start: Date, end: Date];
129
+ /** Default true. Only applies when value is a date range. */
130
+ countsDown?: boolean;
131
+ };
132
+
127
133
  type SvgValue = {
128
134
  /** For example, `img.png`, `path/img.png`, or `https://example.com/img.png`. */
129
135
  url?: string;
@@ -225,6 +231,7 @@ type BaseMods = {
225
231
  padding?: Padding | boolean;
226
232
  pixelPerfectCenter?: boolean | Point;
227
233
  position?: Point;
234
+ progressViewStyle?: ProgressViewStyle;
228
235
  reverseMask?: NativeView;
229
236
  rotation3DEffect?: Rotation3DEffect;
230
237
  rotationEffect?: RotationEffect;