@await-widget/runtime 0.0.18 → 0.0.20

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.18",
3
+ "version": "0.0.20",
4
4
  "description": "TypeScript declarations for Await widgets.",
5
5
  "license": "MIT",
6
6
  "author": "LitoMore",
package/types/await.d.ts CHANGED
@@ -72,6 +72,13 @@ declare module 'await' {
72
72
  children?: never;
73
73
  },
74
74
  ): NativeView;
75
+ export function Gauge(
76
+ props: GaugeValue &
77
+ ID &
78
+ Mods & {
79
+ children?: never;
80
+ },
81
+ ): NativeView;
75
82
  export function Image(
76
83
  props: ImageValue &
77
84
  ID &
@@ -220,6 +227,15 @@ declare module 'await' {
220
227
  children: NativeView[];
221
228
  },
222
229
  ): NativeView;
230
+ /** This is a fallback for Ticker on iOS 18 and earlier. */
231
+ export function ClockSecond(
232
+ props: ClockSecondValue &
233
+ ID &
234
+ Mods & {
235
+ children: NativeView[];
236
+ },
237
+ ): NativeView;
238
+ /** Available on iOS 26 and later. */
223
239
  export function Ticker(
224
240
  props: TickerValue &
225
241
  ID &
package/types/bridge.d.ts CHANGED
@@ -156,6 +156,7 @@ export declare const AwaitEnv: {
156
156
  readonly id: string;
157
157
  readonly tag: number;
158
158
  readonly host: 'app' | 'widget';
159
+ readonly version: string;
159
160
  test(...args: unknown[]): unknown;
160
161
  };
161
162
  type AwaitGlobal = typeof Await;
package/types/meta.d.ts CHANGED
@@ -1,5 +1,13 @@
1
1
  type CornerRadiusStyle = 'circular' | 'continuous';
2
2
 
3
+ type GaugeStyle =
4
+ | 'accessoryCircular'
5
+ | 'accessoryCircularCapacity'
6
+ | 'accessoryLinear'
7
+ | 'accessoryLinearCapacity'
8
+ | 'linearCapacity'
9
+ | 'automatic';
10
+
3
11
  type TimeStyle = 'time' | 'date' | 'relative' | 'offset' | 'timer';
4
12
 
5
13
  type ProgressViewStyle = 'automatic' | 'linear' | 'circular';
package/types/model.d.ts CHANGED
@@ -152,6 +152,20 @@ type AwaitHealthSleepAnalysisSample = {
152
152
  endDate: Date;
153
153
  };
154
154
 
155
+ type AwaitHealthMenstrualFlowValue =
156
+ | 'unspecified'
157
+ | 'light'
158
+ | 'medium'
159
+ | 'heavy'
160
+ | 'none';
161
+
162
+ type AwaitHealthMenstrualFlowSample = {
163
+ value: AwaitHealthMenstrualFlowValue;
164
+ startDate: Date;
165
+ endDate: Date;
166
+ cycleStart: boolean;
167
+ };
168
+
155
169
  type AwaitHealthInfo = {
156
170
  stepCount?: number;
157
171
  distanceWalkingRunning?: number;
@@ -177,6 +191,7 @@ type AwaitHealthRangeInfo = {
177
191
  respiratoryRate?: AwaitHealthQuantitySample[];
178
192
  appleSleepingWristTemperature?: AwaitHealthQuantitySample[];
179
193
  sleepAnalysis?: AwaitHealthSleepAnalysisSample[];
194
+ menstrualFlow?: AwaitHealthMenstrualFlowSample[];
180
195
  };
181
196
 
182
197
  type AwaitLocationConfig = {
package/types/prop.d.ts CHANGED
@@ -102,6 +102,11 @@ type TextValue = {
102
102
  value?: Encodable;
103
103
  };
104
104
 
105
+ type GaugeValue = {
106
+ /** Number value in range 0~1. */
107
+ value?: number;
108
+ };
109
+
105
110
  type ImageValue = {
106
111
  /** Local or remote path such as `img.png` `path/img.png` `https://example.com/img.png` */
107
112
  url?: string;
@@ -151,6 +156,10 @@ type TickerValue = {
151
156
  style: TickerStyle;
152
157
  };
153
158
 
159
+ type ClockSecondValue = {
160
+ size: Size;
161
+ };
162
+
154
163
  type FlipValue = {
155
164
  index: number;
156
165
  delta: number;
@@ -200,6 +209,7 @@ type BaseMods = {
200
209
  fontWidth?: FontWidth | '';
201
210
  foreground?: ShapeStyle;
202
211
  frame?: Frame;
212
+ gaugeStyle?: GaugeStyle;
203
213
  geometryGroup?: boolean;
204
214
  grayscale?: number;
205
215
  height?: number;
@@ -217,6 +227,7 @@ type BaseMods = {
217
227
  maxHeight?: Dimension | boolean;
218
228
  maxSides?: Dimension | boolean;
219
229
  maxWidth?: Dimension | boolean;
230
+ /** There is a known issue where minimumScaleFactor may stop working when lineHeight is used. */
220
231
  minimumScaleFactor?: number;
221
232
  monospaced?: boolean;
222
233
  monospacedDigit?: boolean;