chayns-api 2.2.17 → 2.2.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.
@@ -374,7 +374,10 @@ class AppWrapper {
374
374
  });
375
375
  },
376
376
  openUrl: async value => {
377
- window.open(value.url);
377
+ this.appCall(9, {
378
+ url: value.url,
379
+ inAppBrowser: value.openInApp
380
+ });
378
381
  },
379
382
  openVideo: async value => {
380
383
  this.appCall(15, {
@@ -337,7 +337,10 @@ export class AppWrapper {
337
337
  });
338
338
  },
339
339
  openUrl: async value => {
340
- window.open(value.url);
340
+ this.appCall(9, {
341
+ url: value.url,
342
+ inAppBrowser: value.openInApp
343
+ });
341
344
  },
342
345
  openVideo: async value => {
343
346
  this.appCall(15, {
@@ -98,6 +98,7 @@ export interface DialogModule<T = object> {
98
98
  backgroundColor?: string;
99
99
  allowAnonymousUser?: boolean;
100
100
  seamless?: boolean;
101
+ height?: string | number;
101
102
  }
102
103
  export interface DialogIFrame<T = object> {
103
104
  type: DialogType.IFRAME;
@@ -106,6 +107,7 @@ export interface DialogIFrame<T = object> {
106
107
  backgroundColor?: string;
107
108
  allowAnonymousUser?: boolean;
108
109
  seamless?: boolean;
110
+ height?: string | number;
109
111
  }
110
112
  export declare enum DialogInputType {
111
113
  NUMBER = "number",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "2.2.17",
3
+ "version": "2.2.19",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",