@await-widget/runtime 0.0.44 → 0.0.46

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.44",
3
+ "version": "0.0.46",
4
4
  "description": "TypeScript declarations for Await widgets.",
5
5
  "license": "MIT",
6
6
  "author": "Maundy",
@@ -33,8 +33,8 @@
33
33
  "cli:test": "node bin/await-widget.js --help"
34
34
  },
35
35
  "devDependencies": {
36
- "typescript": "^6.0.2",
37
- "xo": "^2.0.2"
36
+ "typescript": "^6.0.3",
37
+ "xo": "^4.0.0"
38
38
  },
39
39
  "bin": {
40
40
  "await-widget": "bin/await-widget.js"
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
@@ -296,8 +296,12 @@ type BaseMods = {
296
296
  rotation3DEffect?: Rotation3DEffect;
297
297
  rotationEffect?: RotationEffect;
298
298
  safeAreaInset?:
299
- | {edge: HorizontalEdge; alignment: VerticalAlignment; content: NativeView}
300
- | {edge: VerticalEdge; alignment: HorizontalAlignment; content: NativeView};
299
+ | {edge: HorizontalEdge; alignment?: VerticalAlignment; content: NativeView}
300
+ | {
301
+ edge: VerticalEdge;
302
+ alignment?: HorizontalAlignment;
303
+ content: NativeView;
304
+ };
301
305
  saturation?: number;
302
306
  scaleEffect?: ScaleEffect;
303
307
  shadow?: Shadow;