@await-widget/runtime 0.0.18 → 0.0.19

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.19",
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 &
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;
@@ -200,6 +205,7 @@ type BaseMods = {
200
205
  fontWidth?: FontWidth | '';
201
206
  foreground?: ShapeStyle;
202
207
  frame?: Frame;
208
+ gaugeStyle?: GaugeStyle;
203
209
  geometryGroup?: boolean;
204
210
  grayscale?: number;
205
211
  height?: number;
@@ -217,6 +223,7 @@ type BaseMods = {
217
223
  maxHeight?: Dimension | boolean;
218
224
  maxSides?: Dimension | boolean;
219
225
  maxWidth?: Dimension | boolean;
226
+ /** There is a known issue where minimumScaleFactor may stop working when lineHeight is used. */
220
227
  minimumScaleFactor?: number;
221
228
  monospaced?: boolean;
222
229
  monospacedDigit?: boolean;