@await-widget/runtime 0.0.35 → 0.0.37

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.35",
3
+ "version": "0.0.37",
4
4
  "description": "TypeScript declarations for Await widgets.",
5
5
  "license": "MIT",
6
6
  "author": "Maundy",
package/types/await.d.ts CHANGED
@@ -275,6 +275,15 @@ declare module 'await' {
275
275
  children: NativeView[];
276
276
  },
277
277
  ): NativeView;
278
+ /** Flashes once per second in a 60-second cycle, achieving the effect of a ticking second hand. Available on iOS 18 and later. */
279
+ export function FlashTicker(
280
+ props: {
281
+ size: Size;
282
+ } & ID &
283
+ Mods & {
284
+ children: NativeView[];
285
+ },
286
+ ): NativeView;
278
287
  }
279
288
 
280
289
  declare module 'await/jsx-runtime' {
package/types/bridge.d.ts CHANGED
@@ -165,6 +165,7 @@ export declare const AwaitEnv: {
165
165
  readonly id: string;
166
166
  readonly tag: number;
167
167
  readonly host: 'app' | 'widget';
168
+ readonly language: string;
168
169
  readonly version: string;
169
170
  readonly appVersion: string;
170
171
  test(...args: unknown[]): unknown;
package/types/meta.d.ts CHANGED
@@ -304,8 +304,17 @@ type ScaleEffect =
304
304
  anchor?: UnitPoint;
305
305
  };
306
306
 
307
- type Font = {
308
- name: string;
307
+ type FontSource =
308
+ | {
309
+ name: string;
310
+ url?: never;
311
+ }
312
+ | {
313
+ name?: never;
314
+ url: string;
315
+ };
316
+
317
+ type Font = FontSource & {
309
318
  size: number;
310
319
  wght?: number;
311
320
  wdth?: number;
package/types/model.d.ts CHANGED
@@ -318,7 +318,7 @@ type AwaitMusicPlayConfig =
318
318
  | {
319
319
  source: 'station';
320
320
  query?: string;
321
- type?: 'discovery' | 'user';
321
+ type?: 'discovery' | 'user' | 'song' | 'artist';
322
322
  id?: string;
323
323
  }
324
324
  | {
package/types/prop.d.ts CHANGED
@@ -169,7 +169,7 @@ type TickerValue = {
169
169
  style: TickerStyle;
170
170
  };
171
171
 
172
- type ClockSecondValue = {
172
+ type FlashTickerValue = {
173
173
  size: Size;
174
174
  };
175
175