@await-widget/runtime 0.0.34 → 0.0.36

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.34",
3
+ "version": "0.0.36",
4
4
  "description": "TypeScript declarations for Await widgets.",
5
5
  "license": "MIT",
6
6
  "author": "Maundy",
package/types/await.d.ts CHANGED
@@ -275,14 +275,6 @@ declare module 'await' {
275
275
  children: NativeView[];
276
276
  },
277
277
  ): NativeView;
278
- /** Cycles through a sequence of views once per second, enabling effects such as a ticking second hand. It is less efficient than `Ticker`. Available on iOS 18 and earlier. */
279
- export function ClockSecond(
280
- props: ClockSecondValue &
281
- ID &
282
- Mods & {
283
- children: NativeView[];
284
- },
285
- ): NativeView;
286
278
  }
287
279
 
288
280
  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
@@ -433,16 +433,6 @@ type DateFormatYearToken = {
433
433
  style?: 'default' | 'twoDigits';
434
434
  };
435
435
 
436
- type DateFormatQuarterToken = {
437
- field: 'quarter';
438
- values: [
439
- firstQuarter: string,
440
- secondQuarter: string,
441
- thirdQuarter: string,
442
- fourthQuarter: string,
443
- ];
444
- };
445
-
446
436
  type DateFormatMonthToken = {
447
437
  field: 'month';
448
438
  style?: 'default' | 'twoDigits' | 'short' | 'long';
@@ -458,19 +448,6 @@ type DateFormatDayOfYearToken = {
458
448
  style?: 'default' | 'twoDigits' | 'threeDigits';
459
449
  };
460
450
 
461
- type DateFormatWeekdayToken = {
462
- field: 'weekday';
463
- values: [
464
- monday: string,
465
- tuesday: string,
466
- wednesday: string,
467
- thursday: string,
468
- friday: string,
469
- saturday: string,
470
- sunday: string,
471
- ];
472
- };
473
-
474
451
  type DateFormatHourToken = {
475
452
  field: 'hour';
476
453
  style?: 'default' | 'twoDigits';
@@ -495,7 +472,6 @@ type DateFormatFractionalSecondToken = {
495
472
 
496
473
  type DateFormatAMPMToken = {
497
474
  field: 'ampm';
498
- values?: [am: string, pm: string];
499
475
  };
500
476
 
501
477
  type DateFormatTimeZoneToken = {
@@ -506,11 +482,9 @@ type DateFormatTimeZoneToken = {
506
482
  type DateFormatToken =
507
483
  | string
508
484
  | DateFormatYearToken
509
- | DateFormatQuarterToken
510
485
  | DateFormatMonthToken
511
486
  | DateFormatDayToken
512
487
  | DateFormatDayOfYearToken
513
- | DateFormatWeekdayToken
514
488
  | DateFormatHourToken
515
489
  | DateFormatMinuteToken
516
490
  | DateFormatSecondToken
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
@@ -118,6 +118,8 @@ type ImageValue = {
118
118
  style?: TemplateRenderingMode;
119
119
  /** The mode that indicates how images are rendered on widget accented mode */
120
120
  accented?: Accented;
121
+ /** The maximum number of pixels along the image's longest edge. Defaults to 1000. */
122
+ maxPixel?: number;
121
123
  };
122
124
 
123
125
  type IconValue = {
@@ -128,13 +130,13 @@ type IconValue = {
128
130
  type TimeValue =
129
131
  | {
130
132
  /** IANA time-zone identifier. Omit to use the system time zone. */
131
- timezone?: string;
133
+ timeZone?: string;
132
134
  format?: DateFormatToken[];
133
135
  date?: never;
134
136
  style?: never;
135
137
  }
136
138
  | {
137
- timezone?: never;
139
+ timeZone?: never;
138
140
  format?: never;
139
141
  date?: Date;
140
142
  style?: TimeStyle;