@await-widget/runtime 0.0.7 → 0.0.9

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.7",
3
+ "version": "0.0.9",
4
4
  "description": "TypeScript declarations for Await widgets.",
5
5
  "license": "MIT",
6
6
  "author": "LitoMore",
package/types/await.d.ts CHANGED
@@ -192,6 +192,20 @@ declare module 'await' {
192
192
  children?: never;
193
193
  },
194
194
  ): NativeView;
195
+ export function VFlip(
196
+ props: FlipValue &
197
+ ID &
198
+ Mods & {
199
+ children?: never;
200
+ },
201
+ ): NativeView;
202
+ export function HFlip(
203
+ props: FlipValue &
204
+ ID &
205
+ Mods & {
206
+ children?: never;
207
+ },
208
+ ): NativeView;
195
209
  export function Gif(
196
210
  props: GifValue &
197
211
  ID &
@@ -199,6 +213,13 @@ declare module 'await' {
199
213
  children: NativeView[];
200
214
  },
201
215
  ): NativeView;
216
+ export function Ticker(
217
+ props: TickerValue &
218
+ ID &
219
+ Mods & {
220
+ children: NativeView[];
221
+ },
222
+ ): NativeView;
202
223
  }
203
224
 
204
225
  declare module 'await/jsx-runtime' {
package/types/meta.d.ts CHANGED
@@ -384,6 +384,8 @@ type CustomButtonStyle = {
384
384
 
385
385
  type GifDuration = 2 | 4 | 6 | 10 | 12 | 20 | 30 | 60;
386
386
 
387
+ type TickerStyle = 'minute' | 'second' | 'hour12' | 'hour24';
388
+
387
389
  type LineHeight =
388
390
  | number
389
391
  | 'loose'
package/types/model.d.ts CHANGED
@@ -155,6 +155,7 @@ type AwaitNowPlayingInfo = {
155
155
  title?: string;
156
156
  artistName?: string;
157
157
  albumTitle?: string;
158
+ duration?: number;
158
159
  artworkURL?: string;
159
160
  maximumWidth?: number;
160
161
  maximumHeight?: number;
package/types/prop.d.ts CHANGED
@@ -140,6 +140,22 @@ type GifValue = {
140
140
  duration: GifDuration;
141
141
  };
142
142
 
143
+ type TickerValue = {
144
+ size: Size;
145
+ style: TickerStyle;
146
+ };
147
+
148
+ type FlipValue = {
149
+ index: number;
150
+ delta: number;
151
+ curr: NativeView;
152
+ prev: NativeView;
153
+ perspective?: number;
154
+ shadowOpacity?: number;
155
+ leadingHidden?: boolean;
156
+ trailingHidden?: boolean;
157
+ };
158
+
143
159
  type Mods = {
144
160
  [K in keyof BaseMods]?: BaseMods[K];
145
161
  } & {