@await-widget/runtime 0.0.3 → 0.0.5

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.3",
3
+ "version": "0.0.5",
4
4
  "description": "TypeScript declarations for Await widgets.",
5
5
  "license": "MIT",
6
6
  "author": "LitoMore",
package/types/bridge.d.ts CHANGED
@@ -145,6 +145,9 @@ export declare const Await: {
145
145
  config: AwaitDefineConfig<Intents, T>,
146
146
  ): AwaitDefineResult<Intents>;
147
147
  };
148
+ export declare const AwaitLaunch: {
149
+ openApp(bundleId: string): any;
150
+ };
148
151
  export declare const AwaitEnv: {
149
152
  readonly id: string;
150
153
  readonly tag: number;
@@ -153,6 +156,7 @@ export declare const AwaitEnv: {
153
156
  };
154
157
  type AwaitGlobal = typeof Await;
155
158
  type AwaitEnvGlobal = typeof AwaitEnv;
159
+ type AwaitLaunchGlobal = typeof AwaitLaunch;
156
160
  type AwaitUIGlobal = typeof AwaitUI;
157
161
  type AwaitClipboardGlobal = typeof AwaitClipboard;
158
162
  type AwaitNetworkGlobal = typeof AwaitNetwork;
@@ -171,6 +175,7 @@ type SleepGlobal = typeof sleep;
171
175
  declare global {
172
176
  const Await: AwaitGlobal;
173
177
  const AwaitEnv: AwaitEnvGlobal;
178
+ const AwaitLaunch: AwaitLaunchGlobal;
174
179
  const AwaitUI: AwaitUIGlobal;
175
180
  const AwaitClipboard: AwaitClipboardGlobal;
176
181
  const AwaitNetwork: AwaitNetworkGlobal;
package/types/global.d.ts CHANGED
@@ -9,7 +9,7 @@ type AudioOption = "mix" | "duckOthers" | "solo";
9
9
  type ColorScheme = "light" | "dark";
10
10
  type RenderingMode = "fullColor" | "accented" | "vibrant";
11
11
  type TemplateRenderingMode = "original" | "template";
12
- type Update = Date | "end" | "never";
12
+ type Update = Date | "end" | "rapid" | "never";
13
13
  type WidgetFamily =
14
14
  | "small"
15
15
  | "medium"
@@ -278,4 +278,5 @@ type TimelineContext = {
278
278
  type Timeline<T extends Record<string, unknown> = Record<string, unknown>> = {
279
279
  entries: Array<{ date: Date } & T>;
280
280
  update?: Update;
281
+ skipOnPlayingNote?: boolean;
281
282
  };
package/types/prop.d.ts CHANGED
@@ -466,7 +466,7 @@ type LineHeight =
466
466
  | "variable";
467
467
 
468
468
  type BaseMods = {
469
- animation?: NativeAnimation | number;
469
+ animation?: NativeAnimation | number | "";
470
470
  aspectRatio?: AspectRatio;
471
471
  background?:
472
472
  | ShapeStyle