@await-widget/runtime 0.0.43 → 0.0.45
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 +1 -1
- package/types/await.d.ts +2 -3
- package/types/bridge.d.ts +1 -0
- package/types/prop.d.ts +6 -0
package/package.json
CHANGED
package/types/await.d.ts
CHANGED
|
@@ -291,9 +291,8 @@ declare module 'await' {
|
|
|
291
291
|
): NativeView;
|
|
292
292
|
/** Flashes once per second in a 60-second cycle, achieving the effect of a ticking second hand. Available on iOS 18 and later. */
|
|
293
293
|
export function FlashTicker(
|
|
294
|
-
props:
|
|
295
|
-
|
|
296
|
-
} & ID &
|
|
294
|
+
props: FlashTickerValue &
|
|
295
|
+
ID &
|
|
297
296
|
Mods & {
|
|
298
297
|
children: NativeView[];
|
|
299
298
|
},
|
package/types/bridge.d.ts
CHANGED
|
@@ -162,6 +162,7 @@ export declare const Await: {
|
|
|
162
162
|
export declare const AwaitLive: {
|
|
163
163
|
start(views: LiveViews): Promise<void>;
|
|
164
164
|
end(): Promise<void>;
|
|
165
|
+
toggle(views: LiveViews): Promise<void>;
|
|
165
166
|
};
|
|
166
167
|
export declare const AwaitLaunch: {
|
|
167
168
|
start(bundleId: string): any;
|
package/types/prop.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ type ButtonValue = {
|
|
|
41
41
|
live?: boolean;
|
|
42
42
|
/** Opens a universal link directly, such as `https://github.com/await-widget/skills`. */
|
|
43
43
|
url?: string;
|
|
44
|
+
/** Shortcut index for iOS 27, based on the shortcuts selected in widget configuration. */
|
|
45
|
+
shortcut?: number;
|
|
44
46
|
};
|
|
45
47
|
|
|
46
48
|
type ShapeValue = {
|
|
@@ -133,11 +135,15 @@ type ImageValue = {
|
|
|
133
135
|
accented?: Accented;
|
|
134
136
|
/** The maximum number of pixels along the image's longest edge. Defaults to 1000. */
|
|
135
137
|
maxPixel?: number;
|
|
138
|
+
/** Maximum width and height for the image's natural layout size. Scales down proportionally. */
|
|
139
|
+
proposedSize?: {width?: number; height?: number};
|
|
136
140
|
};
|
|
137
141
|
|
|
138
142
|
type IconValue = {
|
|
139
143
|
/** The name of the system symbol image. Use the SF Symbols app to look up the names of system symbol images. */
|
|
140
144
|
value?: string;
|
|
145
|
+
/** The modes used to resize the symbol to fit within its containing view. */
|
|
146
|
+
resizable?: Resizable;
|
|
141
147
|
};
|
|
142
148
|
|
|
143
149
|
type TimeValue =
|