@capgo/inappbrowser 0.4.3 → 0.4.6

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/dist/docs.json CHANGED
@@ -16,8 +16,13 @@
16
16
  }
17
17
  ],
18
18
  "returns": "any",
19
- "tags": [],
20
- "docs": "",
19
+ "tags": [
20
+ {
21
+ "name": "since",
22
+ "text": "0.1.0"
23
+ }
24
+ ],
25
+ "docs": "Open url in a new window fullscreen",
21
26
  "complexTypes": [
22
27
  "OpenOptions"
23
28
  ],
@@ -44,8 +49,13 @@
44
49
  }
45
50
  ],
46
51
  "returns": "any",
47
- "tags": [],
48
- "docs": "",
52
+ "tags": [
53
+ {
54
+ "name": "since",
55
+ "text": "0.1.0"
56
+ }
57
+ ],
58
+ "docs": "Open url in a new webview with toolbars",
49
59
  "complexTypes": [
50
60
  "OpenWebViewOptions"
51
61
  ],
@@ -69,7 +79,7 @@
69
79
  },
70
80
  {
71
81
  "name": "addListener",
72
- "signature": "(eventName: 'urlChangeEvent', listenerFunc: UrlChangeListener) => Promise<PluginListenerHandle> & PluginListenerHandle",
82
+ "signature": "(eventName: \"urlChangeEvent\", listenerFunc: UrlChangeListener) => Promise<PluginListenerHandle> & PluginListenerHandle",
73
83
  "parameters": [
74
84
  {
75
85
  "name": "eventName",
@@ -98,7 +108,7 @@
98
108
  },
99
109
  {
100
110
  "name": "addListener",
101
- "signature": "(eventName: 'closeEvent', listenerFunc: UrlChangeListener) => Promise<PluginListenerHandle> & PluginListenerHandle",
111
+ "signature": "(eventName: \"closeEvent\", listenerFunc: UrlChangeListener) => Promise<PluginListenerHandle> & PluginListenerHandle",
102
112
  "parameters": [
103
113
  {
104
114
  "name": "eventName",
@@ -127,7 +137,7 @@
127
137
  },
128
138
  {
129
139
  "name": "addListener",
130
- "signature": "(eventName: 'confirmBtnClicked', listenerFunc: ConfirmBtnListener) => Promise<PluginListenerHandle> & PluginListenerHandle",
140
+ "signature": "(eventName: \"confirmBtnClicked\", listenerFunc: ConfirmBtnListener) => Promise<PluginListenerHandle> & PluginListenerHandle",
131
141
  "parameters": [
132
142
  {
133
143
  "name": "eventName",
@@ -153,6 +163,21 @@
153
163
  "PluginListenerHandle"
154
164
  ],
155
165
  "slug": "addlistenerconfirmbtnclicked"
166
+ },
167
+ {
168
+ "name": "removeAllListeners",
169
+ "signature": "() => any",
170
+ "parameters": [],
171
+ "returns": "any",
172
+ "tags": [
173
+ {
174
+ "name": "since",
175
+ "text": "1.0.0"
176
+ }
177
+ ],
178
+ "docs": "Remove all listeners for this plugin.",
179
+ "complexTypes": [],
180
+ "slug": "removealllisteners"
156
181
  }
157
182
  ],
158
183
  "properties": []
@@ -167,15 +192,25 @@
167
192
  "properties": [
168
193
  {
169
194
  "name": "url",
170
- "tags": [],
171
- "docs": "",
195
+ "tags": [
196
+ {
197
+ "text": "0.1.0",
198
+ "name": "since"
199
+ }
200
+ ],
201
+ "docs": "Target URL to load.",
172
202
  "complexTypes": [],
173
203
  "type": "string"
174
204
  },
175
205
  {
176
206
  "name": "headers",
177
- "tags": [],
178
- "docs": "",
207
+ "tags": [
208
+ {
209
+ "text": "0.1.0",
210
+ "name": "since"
211
+ }
212
+ ],
213
+ "docs": "Headers to send with the request.",
179
214
  "complexTypes": [
180
215
  "Headers"
181
216
  ],
@@ -183,8 +218,13 @@
183
218
  },
184
219
  {
185
220
  "name": "isPresentAfterPageLoad",
186
- "tags": [],
187
- "docs": "",
221
+ "tags": [
222
+ {
223
+ "text": "0.1.0",
224
+ "name": "since"
225
+ }
226
+ ],
227
+ "docs": "if true, the browser will be presented after the page is loaded, if false, the browser will be presented immediately.",
188
228
  "complexTypes": [],
189
229
  "type": "boolean | undefined"
190
230
  }
@@ -207,15 +247,25 @@
207
247
  "properties": [
208
248
  {
209
249
  "name": "url",
210
- "tags": [],
211
- "docs": "",
250
+ "tags": [
251
+ {
252
+ "text": "0.1.0",
253
+ "name": "since"
254
+ }
255
+ ],
256
+ "docs": "Target URL to load.",
212
257
  "complexTypes": [],
213
258
  "type": "string"
214
259
  },
215
260
  {
216
261
  "name": "headers",
217
- "tags": [],
218
- "docs": "",
262
+ "tags": [
263
+ {
264
+ "text": "0.1.0",
265
+ "name": "since"
266
+ }
267
+ ],
268
+ "docs": "Headers to send with the request.",
219
269
  "complexTypes": [
220
270
  "Headers"
221
271
  ],
@@ -223,8 +273,13 @@
223
273
  },
224
274
  {
225
275
  "name": "shareDisclaimer",
226
- "tags": [],
227
- "docs": "",
276
+ "tags": [
277
+ {
278
+ "text": "0.1.0",
279
+ "name": "since"
280
+ }
281
+ ],
282
+ "docs": "share options",
228
283
  "complexTypes": [
229
284
  "DisclaimerOptions"
230
285
  ],
@@ -232,8 +287,17 @@
232
287
  },
233
288
  {
234
289
  "name": "toolbarType",
235
- "tags": [],
236
- "docs": "",
290
+ "tags": [
291
+ {
292
+ "text": "0.1.0",
293
+ "name": "since"
294
+ },
295
+ {
296
+ "text": "ToolBarType.DEFAULT",
297
+ "name": "default"
298
+ }
299
+ ],
300
+ "docs": "Toolbar type",
237
301
  "complexTypes": [
238
302
  "ToolBarType"
239
303
  ],
@@ -241,22 +305,45 @@
241
305
  },
242
306
  {
243
307
  "name": "shareSubject",
244
- "tags": [],
245
- "docs": "",
308
+ "tags": [
309
+ {
310
+ "text": "0.1.0",
311
+ "name": "since"
312
+ }
313
+ ],
314
+ "docs": "Share subject",
246
315
  "complexTypes": [],
247
316
  "type": "string | undefined"
248
317
  },
249
318
  {
250
319
  "name": "title",
251
- "tags": [],
252
- "docs": "",
320
+ "tags": [
321
+ {
322
+ "text": "0.1.0",
323
+ "name": "since"
324
+ },
325
+ {
326
+ "text": "'New Window'",
327
+ "name": "default"
328
+ }
329
+ ],
330
+ "docs": "Title of the browser",
253
331
  "complexTypes": [],
254
332
  "type": "string"
255
333
  },
256
334
  {
257
335
  "name": "backgroundColor",
258
- "tags": [],
259
- "docs": "",
336
+ "tags": [
337
+ {
338
+ "text": "0.1.0",
339
+ "name": "since"
340
+ },
341
+ {
342
+ "text": "BackgroundColor.BLACK",
343
+ "name": "default"
344
+ }
345
+ ],
346
+ "docs": "Background color of the browser, only on IOS",
260
347
  "complexTypes": [
261
348
  "BackgroundColor"
262
349
  ],
@@ -264,8 +351,17 @@
264
351
  },
265
352
  {
266
353
  "name": "isPresentAfterPageLoad",
267
- "tags": [],
268
- "docs": "",
354
+ "tags": [
355
+ {
356
+ "text": "0.1.0",
357
+ "name": "since"
358
+ },
359
+ {
360
+ "text": "false",
361
+ "name": "default"
362
+ }
363
+ ],
364
+ "docs": "Open url in a new window fullscreen\n\nisPresentAfterPageLoad: if true, the browser will be presented after the page is loaded, if false, the browser will be presented immediately.",
269
365
  "complexTypes": [],
270
366
  "type": "boolean | undefined"
271
367
  }
@@ -374,25 +470,25 @@
374
470
  "members": [
375
471
  {
376
472
  "name": "ACTIVITY",
377
- "value": "'activity'",
473
+ "value": "\"activity\"",
378
474
  "tags": [],
379
475
  "docs": ""
380
476
  },
381
477
  {
382
478
  "name": "NAVIGATION",
383
- "value": "'navigation'",
479
+ "value": "\"navigation\"",
384
480
  "tags": [],
385
481
  "docs": ""
386
482
  },
387
483
  {
388
484
  "name": "BLANK",
389
- "value": "'blank'",
485
+ "value": "\"blank\"",
390
486
  "tags": [],
391
487
  "docs": ""
392
488
  },
393
489
  {
394
490
  "name": "DEFAULT",
395
- "value": "''",
491
+ "value": "\"\"",
396
492
  "tags": [],
397
493
  "docs": ""
398
494
  }
@@ -404,13 +500,13 @@
404
500
  "members": [
405
501
  {
406
502
  "name": "WHITE",
407
- "value": "'white'",
503
+ "value": "\"white\"",
408
504
  "tags": [],
409
505
  "docs": ""
410
506
  },
411
507
  {
412
508
  "name": "BLACK",
413
- "value": "'black'",
509
+ "value": "\"black\"",
414
510
  "tags": [],
415
511
  "docs": ""
416
512
  }
@@ -1,4 +1,4 @@
1
- import type { PluginListenerHandle } from '@capacitor/core';
1
+ import type { PluginListenerHandle } from "@capacitor/core";
2
2
  export interface UrlEvent {
3
3
  /**
4
4
  * Emit when the url changes
@@ -31,8 +31,20 @@ export interface Headers {
31
31
  [key: string]: string;
32
32
  }
33
33
  export interface OpenOptions {
34
+ /**
35
+ * Target URL to load.
36
+ * @since 0.1.0
37
+ */
34
38
  url: string;
39
+ /**
40
+ * Headers to send with the request.
41
+ * @since 0.1.0
42
+ */
35
43
  headers?: Headers;
44
+ /**
45
+ * if true, the browser will be presented after the page is loaded, if false, the browser will be presented immediately.
46
+ * @since 0.1.0
47
+ */
36
48
  isPresentAfterPageLoad?: boolean;
37
49
  }
38
50
  export interface DisclaimerOptions {
@@ -42,18 +54,66 @@ export interface DisclaimerOptions {
42
54
  cancelBtn: string;
43
55
  }
44
56
  export interface OpenWebViewOptions {
57
+ /**
58
+ * Target URL to load.
59
+ * @since 0.1.0
60
+ */
45
61
  url: string;
62
+ /**
63
+ * Headers to send with the request.
64
+ * @since 0.1.0
65
+ */
46
66
  headers?: Headers;
67
+ /**
68
+ * share options
69
+ * @since 0.1.0
70
+ */
47
71
  shareDisclaimer?: DisclaimerOptions;
72
+ /**
73
+ * Toolbar type
74
+ * @since 0.1.0
75
+ * @default ToolBarType.DEFAULT
76
+ */
48
77
  toolbarType?: ToolBarType;
78
+ /**
79
+ * Share subject
80
+ * @since 0.1.0
81
+ */
49
82
  shareSubject?: string;
83
+ /**
84
+ * Title of the browser
85
+ * @since 0.1.0
86
+ * @default 'New Window'
87
+ */
50
88
  title: string;
89
+ /**
90
+ * Background color of the browser, only on IOS
91
+ * @since 0.1.0
92
+ * @default BackgroundColor.BLACK
93
+ */
51
94
  backgroundColor?: BackgroundColor;
95
+ /**
96
+ * Open url in a new window fullscreen
97
+ *
98
+ * isPresentAfterPageLoad: if true, the browser will be presented after the page is loaded, if false, the browser will be presented immediately.
99
+ * @since 0.1.0
100
+ * @default false
101
+ */
52
102
  isPresentAfterPageLoad?: boolean;
53
103
  }
54
104
  export interface InAppBrowserPlugin {
105
+ /**
106
+ * Open url in a new window fullscreen
107
+ *
108
+ * @since 0.1.0
109
+ */
55
110
  open(options: OpenOptions): Promise<any>;
56
111
  close(): Promise<any>;
112
+ /**
113
+ * Open url in a new webview with toolbars
114
+ *
115
+ * @since 0.1.0
116
+ */
57
117
  openWebView(options: OpenWebViewOptions): Promise<any>;
58
118
  setUrl(options: {
59
119
  url: string;
@@ -63,17 +123,23 @@ export interface InAppBrowserPlugin {
63
123
  *
64
124
  * @since 0.0.1
65
125
  */
66
- addListener(eventName: 'urlChangeEvent', listenerFunc: UrlChangeListener): Promise<PluginListenerHandle> & PluginListenerHandle;
126
+ addListener(eventName: "urlChangeEvent", listenerFunc: UrlChangeListener): Promise<PluginListenerHandle> & PluginListenerHandle;
67
127
  /**
68
128
  * Listen for close click
69
129
  *
70
130
  * @since 0.4.0
71
131
  */
72
- addListener(eventName: 'closeEvent', listenerFunc: UrlChangeListener): Promise<PluginListenerHandle> & PluginListenerHandle;
132
+ addListener(eventName: "closeEvent", listenerFunc: UrlChangeListener): Promise<PluginListenerHandle> & PluginListenerHandle;
73
133
  /**
74
134
  * Will be triggered when user clicks on confirm button when disclaimer is required, works only on iOS
75
135
  *
76
136
  * @since 0.0.1
77
137
  */
78
- addListener(eventName: 'confirmBtnClicked', listenerFunc: ConfirmBtnListener): Promise<PluginListenerHandle> & PluginListenerHandle;
138
+ addListener(eventName: "confirmBtnClicked", listenerFunc: ConfirmBtnListener): Promise<PluginListenerHandle> & PluginListenerHandle;
139
+ /**
140
+ * Remove all listeners for this plugin.
141
+ *
142
+ * @since 1.0.0
143
+ */
144
+ removeAllListeners(): Promise<void>;
79
145
  }
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,kCAAe,CAAA;IACf,kCAAe,CAAA;AACjB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AACD,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,oCAAqB,CAAA;IACrB,wCAAyB,CAAA;IACzB,8BAAe,CAAA;IACf,2BAAY,CAAA;AACd,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB","sourcesContent":["import type { PluginListenerHandle } from '@capacitor/core';\n\nexport interface UrlEvent {\n /**\n * Emit when the url changes\n *\n * @since 0.0.1\n */\n url: string;\n}\nexport interface BtnEvent {\n /**\n * Emit when a button is clicked.\n *\n * @since 0.0.1\n */\n url: string;\n}\n\nexport type UrlChangeListener = (state: UrlEvent) => void;\nexport type ConfirmBtnListener = (state: BtnEvent) => void;\n\nexport enum BackgroundColor {\n WHITE = 'white',\n BLACK = 'black',\n}\nexport enum ToolBarType {\n ACTIVITY = 'activity',\n NAVIGATION = 'navigation',\n BLANK = 'blank',\n DEFAULT = '',\n}\n\nexport interface Headers {\n [key: string]: string;\n}\n\nexport interface OpenOptions {\n url: string;\n headers?: Headers;\n isPresentAfterPageLoad?: boolean;\n}\n\nexport interface DisclaimerOptions {\n title: string;\n message: string;\n confirmBtn: string;\n cancelBtn: string;\n}\n\nexport interface OpenWebViewOptions {\n url: string;\n headers?: Headers;\n shareDisclaimer?: DisclaimerOptions;\n toolbarType?: ToolBarType;\n shareSubject?: string;\n title: string;\n backgroundColor?: BackgroundColor;\n isPresentAfterPageLoad?: boolean;\n}\n\n// CapBrowser.addListener(\"urlChangeEvent\", (info: any) => {\n// console.log(info.url)\n// })\n\n// CapBrowser.addListener(\"confirmBtnClicked\", (info: any) => {\n// // will be triggered when user clicks on confirm button when disclaimer is required, works only on iOS\n// console.log(info.url)\n// })\nexport interface InAppBrowserPlugin {\n open(options: OpenOptions): Promise<any>;\n close(): Promise<any>;\n openWebView(options: OpenWebViewOptions): Promise<any>;\n setUrl(options: { url: string }): Promise<any>;\n /**\n * Listen for url change\n *\n * @since 0.0.1\n */\n addListener(\n eventName: 'urlChangeEvent',\n listenerFunc: UrlChangeListener\n ): Promise<PluginListenerHandle> & PluginListenerHandle;\n\n /**\n * Listen for close click\n *\n * @since 0.4.0\n */\n addListener(\n eventName: 'closeEvent',\n listenerFunc: UrlChangeListener\n ): Promise<PluginListenerHandle> & PluginListenerHandle;\n /**\n * Will be triggered when user clicks on confirm button when disclaimer is required, works only on iOS\n *\n * @since 0.0.1\n */\n addListener(\n eventName: 'confirmBtnClicked',\n listenerFunc: ConfirmBtnListener\n ): Promise<PluginListenerHandle> & PluginListenerHandle;\n}\n"]}
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,kCAAe,CAAA;IACf,kCAAe,CAAA;AACjB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AACD,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,oCAAqB,CAAA;IACrB,wCAAyB,CAAA;IACzB,8BAAe,CAAA;IACf,2BAAY,CAAA;AACd,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB","sourcesContent":["import type { PluginListenerHandle } from \"@capacitor/core\";\n\nexport interface UrlEvent {\n /**\n * Emit when the url changes\n *\n * @since 0.0.1\n */\n url: string;\n}\nexport interface BtnEvent {\n /**\n * Emit when a button is clicked.\n *\n * @since 0.0.1\n */\n url: string;\n}\n\nexport type UrlChangeListener = (state: UrlEvent) => void;\nexport type ConfirmBtnListener = (state: BtnEvent) => void;\n\nexport enum BackgroundColor {\n WHITE = \"white\",\n BLACK = \"black\",\n}\nexport enum ToolBarType {\n ACTIVITY = \"activity\",\n NAVIGATION = \"navigation\",\n BLANK = \"blank\",\n DEFAULT = \"\",\n}\n\nexport interface Headers {\n [key: string]: string;\n}\n\nexport interface OpenOptions {\n /**\n * Target URL to load.\n * @since 0.1.0\n */\n url: string;\n /**\n * Headers to send with the request.\n * @since 0.1.0\n */\n headers?: Headers;\n /**\n * if true, the browser will be presented after the page is loaded, if false, the browser will be presented immediately.\n * @since 0.1.0\n */\n isPresentAfterPageLoad?: boolean;\n}\n\nexport interface DisclaimerOptions {\n title: string;\n message: string;\n confirmBtn: string;\n cancelBtn: string;\n}\n\nexport interface OpenWebViewOptions {\n /**\n * Target URL to load.\n * @since 0.1.0\n */\n url: string;\n /**\n * Headers to send with the request.\n * @since 0.1.0\n */\n headers?: Headers;\n /**\n * share options\n * @since 0.1.0\n */\n shareDisclaimer?: DisclaimerOptions;\n /**\n * Toolbar type\n * @since 0.1.0\n * @default ToolBarType.DEFAULT\n */\n toolbarType?: ToolBarType;\n /**\n * Share subject\n * @since 0.1.0\n */\n shareSubject?: string;\n /**\n * Title of the browser\n * @since 0.1.0\n * @default 'New Window'\n */\n title: string;\n /**\n * Background color of the browser, only on IOS\n * @since 0.1.0\n * @default BackgroundColor.BLACK\n */\n backgroundColor?: BackgroundColor;\n /**\n * Open url in a new window fullscreen\n *\n * isPresentAfterPageLoad: if true, the browser will be presented after the page is loaded, if false, the browser will be presented immediately.\n * @since 0.1.0\n * @default false\n */\n isPresentAfterPageLoad?: boolean;\n}\n\n// CapBrowser.addListener(\"urlChangeEvent\", (info: any) => {\n// console.log(info.url)\n// })\n\n// CapBrowser.addListener(\"confirmBtnClicked\", (info: any) => {\n// // will be triggered when user clicks on confirm button when disclaimer is required, works only on iOS\n// console.log(info.url)\n// })\nexport interface InAppBrowserPlugin {\n /**\n * Open url in a new window fullscreen\n *\n * @since 0.1.0\n */\n open(options: OpenOptions): Promise<any>;\n close(): Promise<any>;\n /**\n * Open url in a new webview with toolbars\n *\n * @since 0.1.0\n */\n openWebView(options: OpenWebViewOptions): Promise<any>;\n setUrl(options: { url: string }): Promise<any>;\n /**\n * Listen for url change\n *\n * @since 0.0.1\n */\n addListener(\n eventName: \"urlChangeEvent\",\n listenerFunc: UrlChangeListener\n ): Promise<PluginListenerHandle> & PluginListenerHandle;\n\n /**\n * Listen for close click\n *\n * @since 0.4.0\n */\n addListener(\n eventName: \"closeEvent\",\n listenerFunc: UrlChangeListener\n ): Promise<PluginListenerHandle> & PluginListenerHandle;\n /**\n * Will be triggered when user clicks on confirm button when disclaimer is required, works only on iOS\n *\n * @since 0.0.1\n */\n addListener(\n eventName: \"confirmBtnClicked\",\n listenerFunc: ConfirmBtnListener\n ): Promise<PluginListenerHandle> & PluginListenerHandle;\n\n /**\n * Remove all listeners for this plugin.\n *\n * @since 1.0.0\n */\n removeAllListeners(): Promise<void>;\n}\n"]}
@@ -1,4 +1,4 @@
1
- import type { InAppBrowserPlugin } from './definitions';
1
+ import type { InAppBrowserPlugin } from "./definitions";
2
2
  declare const InAppBrowser: InAppBrowserPlugin;
3
- export * from './definitions';
3
+ export * from "./definitions";
4
4
  export { InAppBrowser };
package/dist/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { registerPlugin } from '@capacitor/core';
2
- const InAppBrowser = registerPlugin('InAppBrowser', {
3
- web: () => import('./web').then((m) => new m.InAppBrowserWeb()),
1
+ import { registerPlugin } from "@capacitor/core";
2
+ const InAppBrowser = registerPlugin("InAppBrowser", {
3
+ web: () => import("./web").then((m) => new m.InAppBrowserWeb()),
4
4
  });
5
- export * from './definitions';
5
+ export * from "./definitions";
6
6
  export { InAppBrowser };
7
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,YAAY,GAAG,cAAc,CAAqB,cAAc,EAAE;IACtE,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;CAChE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { InAppBrowserPlugin } from './definitions';\n\nconst InAppBrowser = registerPlugin<InAppBrowserPlugin>('InAppBrowser', {\n web: () => import('./web').then((m) => new m.InAppBrowserWeb()),\n});\n\nexport * from './definitions';\nexport { InAppBrowser };\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,YAAY,GAAG,cAAc,CAAqB,cAAc,EAAE;IACtE,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;CAChE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,CAAC","sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\n\nimport type { InAppBrowserPlugin } from \"./definitions\";\n\nconst InAppBrowser = registerPlugin<InAppBrowserPlugin>(\"InAppBrowser\", {\n web: () => import(\"./web\").then((m) => new m.InAppBrowserWeb()),\n});\n\nexport * from \"./definitions\";\nexport { InAppBrowser };\n"]}
package/dist/esm/web.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { WebPlugin } from '@capacitor/core';
2
- import type { InAppBrowserPlugin, OpenWebViewOptions, OpenOptions } from './definitions';
1
+ import { WebPlugin } from "@capacitor/core";
2
+ import type { InAppBrowserPlugin, OpenWebViewOptions, OpenOptions } from "./definitions";
3
3
  export declare class InAppBrowserWeb extends WebPlugin implements InAppBrowserPlugin {
4
4
  open(options: OpenOptions): Promise<any>;
5
5
  openWebView(options: OpenWebViewOptions): Promise<any>;
package/dist/esm/web.js CHANGED
@@ -1,19 +1,19 @@
1
- import { WebPlugin } from '@capacitor/core';
1
+ import { WebPlugin } from "@capacitor/core";
2
2
  export class InAppBrowserWeb extends WebPlugin {
3
3
  async open(options) {
4
- console.log('open', options);
4
+ console.log("open", options);
5
5
  return options;
6
6
  }
7
7
  async openWebView(options) {
8
- console.log('openWebView', options);
8
+ console.log("openWebView", options);
9
9
  return options;
10
10
  }
11
11
  async close() {
12
- console.log('close');
12
+ console.log("close");
13
13
  return;
14
14
  }
15
15
  async setUrl(options) {
16
- console.log('setUrl', options.url);
16
+ console.log("setUrl", options.url);
17
17
  return;
18
18
  }
19
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAC5C,KAAK,CAAC,IAAI,CAAC,OAAoB;QAC7B,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC7B,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,OAA2B;QAC3C,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QACpC,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,KAAK,CAAC,KAAK;QACT,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACrB,OAAO;IACT,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAAwB;QACnC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;QACnC,OAAO;IACT,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type { InAppBrowserPlugin, OpenWebViewOptions, OpenOptions } from './definitions';\n\nexport class InAppBrowserWeb extends WebPlugin implements InAppBrowserPlugin {\n async open(options: OpenOptions): Promise<any> {\n console.log('open', options);\n return options;\n }\n async openWebView(options: OpenWebViewOptions): Promise<any> {\n console.log('openWebView', options);\n return options;\n }\n async close(): Promise<any> {\n console.log('close');\n return;\n }\n async setUrl(options: { url: string }): Promise<any> {\n console.log('setUrl', options.url);\n return;\n }\n}\n"]}
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAQ5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAC5C,KAAK,CAAC,IAAI,CAAC,OAAoB;QAC7B,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC7B,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,OAA2B;QAC3C,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QACpC,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,KAAK,CAAC,KAAK;QACT,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACrB,OAAO;IACT,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAAwB;QACnC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;QACnC,OAAO;IACT,CAAC;CACF","sourcesContent":["import { WebPlugin } from \"@capacitor/core\";\n\nimport type {\n InAppBrowserPlugin,\n OpenWebViewOptions,\n OpenOptions,\n} from \"./definitions\";\n\nexport class InAppBrowserWeb extends WebPlugin implements InAppBrowserPlugin {\n async open(options: OpenOptions): Promise<any> {\n console.log(\"open\", options);\n return options;\n }\n async openWebView(options: OpenWebViewOptions): Promise<any> {\n console.log(\"openWebView\", options);\n return options;\n }\n async close(): Promise<any> {\n console.log(\"close\");\n return;\n }\n async setUrl(options: { url: string }): Promise<any> {\n console.log(\"setUrl\", options.url);\n return;\n }\n}\n"]}
@@ -15,25 +15,25 @@ exports.ToolBarType = void 0;
15
15
  ToolBarType["DEFAULT"] = "";
16
16
  })(exports.ToolBarType || (exports.ToolBarType = {}));
17
17
 
18
- const InAppBrowser = core.registerPlugin('InAppBrowser', {
18
+ const InAppBrowser = core.registerPlugin("InAppBrowser", {
19
19
  web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.InAppBrowserWeb()),
20
20
  });
21
21
 
22
22
  class InAppBrowserWeb extends core.WebPlugin {
23
23
  async open(options) {
24
- console.log('open', options);
24
+ console.log("open", options);
25
25
  return options;
26
26
  }
27
27
  async openWebView(options) {
28
- console.log('openWebView', options);
28
+ console.log("openWebView", options);
29
29
  return options;
30
30
  }
31
31
  async close() {
32
- console.log('close');
32
+ console.log("close");
33
33
  return;
34
34
  }
35
35
  async setUrl(options) {
36
- console.log('setUrl', options.url);
36
+ console.log("setUrl", options.url);
37
37
  return;
38
38
  }
39
39
  }
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["export var BackgroundColor;\n(function (BackgroundColor) {\n BackgroundColor[\"WHITE\"] = \"white\";\n BackgroundColor[\"BLACK\"] = \"black\";\n})(BackgroundColor || (BackgroundColor = {}));\nexport var ToolBarType;\n(function (ToolBarType) {\n ToolBarType[\"ACTIVITY\"] = \"activity\";\n ToolBarType[\"NAVIGATION\"] = \"navigation\";\n ToolBarType[\"BLANK\"] = \"blank\";\n ToolBarType[\"DEFAULT\"] = \"\";\n})(ToolBarType || (ToolBarType = {}));\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from '@capacitor/core';\nconst InAppBrowser = registerPlugin('InAppBrowser', {\n web: () => import('./web').then((m) => new m.InAppBrowserWeb()),\n});\nexport * from './definitions';\nexport { InAppBrowser };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class InAppBrowserWeb extends WebPlugin {\n async open(options) {\n console.log('open', options);\n return options;\n }\n async openWebView(options) {\n console.log('openWebView', options);\n return options;\n }\n async close() {\n console.log('close');\n return;\n }\n async setUrl(options) {\n console.log('setUrl', options.url);\n return;\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["BackgroundColor","ToolBarType","registerPlugin","WebPlugin"],"mappings":";;;;AAAWA,iCAAgB;AAC3B,CAAC,UAAU,eAAe,EAAE;AAC5B,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O,CAAC,GAAG,CAAC,CAAC;AAC3C,QAAQ,OAAO;AACf,KAAK;AACL;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["export var BackgroundColor;\n(function (BackgroundColor) {\n BackgroundColor[\"WHITE\"] = \"white\";\n BackgroundColor[\"BLACK\"] = \"black\";\n})(BackgroundColor || (BackgroundColor = {}));\nexport var ToolBarType;\n(function (ToolBarType) {\n ToolBarType[\"ACTIVITY\"] = \"activity\";\n ToolBarType[\"NAVIGATION\"] = \"navigation\";\n ToolBarType[\"BLANK\"] = \"blank\";\n ToolBarType[\"DEFAULT\"] = \"\";\n})(ToolBarType || (ToolBarType = {}));\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from \"@capacitor/core\";\nconst InAppBrowser = registerPlugin(\"InAppBrowser\", {\n web: () => import(\"./web\").then((m) => new m.InAppBrowserWeb()),\n});\nexport * from \"./definitions\";\nexport { InAppBrowser };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class InAppBrowserWeb extends WebPlugin {\n async open(options) {\n console.log(\"open\", options);\n return options;\n }\n async openWebView(options) {\n console.log(\"openWebView\", options);\n return options;\n }\n async close() {\n console.log(\"close\");\n return;\n }\n async setUrl(options) {\n console.log(\"setUrl\", options.url);\n return;\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["BackgroundColor","ToolBarType","registerPlugin","WebPlugin"],"mappings":";;;;AAAWA,iCAAgB;AAC3B,CAAC,UAAU,eAAe,EAAE;AAC5B,IAAI,eAAe,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;AACvC,IAAI,eAAe,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;AACvC,CAAC,EAAEA,uBAAe,KAAKA,uBAAe,GAAG,EAAE,CAAC,CAAC,CAAC;AACnCC,6BAAY;AACvB,CAAC,UAAU,WAAW,EAAE;AACxB,IAAI,WAAW,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC;AACzC,IAAI,WAAW,CAAC,YAAY,CAAC,GAAG,YAAY,CAAC;AAC7C,IAAI,WAAW,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;AACnC,IAAI,WAAW,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC;AAChC,CAAC,EAAEA,mBAAW,KAAKA,mBAAW,GAAG,EAAE,CAAC,CAAC;;ACVhC,MAAC,YAAY,GAAGC,mBAAc,CAAC,cAAc,EAAE;AACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACnE,CAAC;;ACFM,MAAM,eAAe,SAASC,cAAS,CAAC;AAC/C,IAAI,MAAM,IAAI,CAAC,OAAO,EAAE;AACxB,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACrC,QAAQ,OAAO,OAAO,CAAC;AACvB,KAAK;AACL,IAAI,MAAM,WAAW,CAAC,OAAO,EAAE;AAC/B,QAAQ,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;AAC5C,QAAQ,OAAO,OAAO,CAAC;AACvB,KAAK;AACL,IAAI,MAAM,KAAK,GAAG;AAClB,QAAQ,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAC7B,QAAQ,OAAO;AACf,KAAK;AACL,IAAI,MAAM,MAAM,CAAC,OAAO,EAAE;AAC1B,QAAQ,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;AAC3C,QAAQ,OAAO;AACf,KAAK;AACL;;;;;;;;;"}
package/dist/plugin.js CHANGED
@@ -14,25 +14,25 @@ var capacitorInAppBrowser = (function (exports, core) {
14
14
  ToolBarType["DEFAULT"] = "";
15
15
  })(exports.ToolBarType || (exports.ToolBarType = {}));
16
16
 
17
- const InAppBrowser = core.registerPlugin('InAppBrowser', {
17
+ const InAppBrowser = core.registerPlugin("InAppBrowser", {
18
18
  web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.InAppBrowserWeb()),
19
19
  });
20
20
 
21
21
  class InAppBrowserWeb extends core.WebPlugin {
22
22
  async open(options) {
23
- console.log('open', options);
23
+ console.log("open", options);
24
24
  return options;
25
25
  }
26
26
  async openWebView(options) {
27
- console.log('openWebView', options);
27
+ console.log("openWebView", options);
28
28
  return options;
29
29
  }
30
30
  async close() {
31
- console.log('close');
31
+ console.log("close");
32
32
  return;
33
33
  }
34
34
  async setUrl(options) {
35
- console.log('setUrl', options.url);
35
+ console.log("setUrl", options.url);
36
36
  return;
37
37
  }
38
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["export var BackgroundColor;\n(function (BackgroundColor) {\n BackgroundColor[\"WHITE\"] = \"white\";\n BackgroundColor[\"BLACK\"] = \"black\";\n})(BackgroundColor || (BackgroundColor = {}));\nexport var ToolBarType;\n(function (ToolBarType) {\n ToolBarType[\"ACTIVITY\"] = \"activity\";\n ToolBarType[\"NAVIGATION\"] = \"navigation\";\n ToolBarType[\"BLANK\"] = \"blank\";\n ToolBarType[\"DEFAULT\"] = \"\";\n})(ToolBarType || (ToolBarType = {}));\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from '@capacitor/core';\nconst InAppBrowser = registerPlugin('InAppBrowser', {\n web: () => import('./web').then((m) => new m.InAppBrowserWeb()),\n});\nexport * from './definitions';\nexport { InAppBrowser };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class InAppBrowserWeb extends WebPlugin {\n async open(options) {\n console.log('open', options);\n return options;\n }\n async openWebView(options) {\n console.log('openWebView', options);\n return options;\n }\n async close() {\n console.log('close');\n return;\n }\n async setUrl(options) {\n console.log('setUrl', options.url);\n return;\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["BackgroundColor","ToolBarType","registerPlugin","Web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AC,OAAO,EAAE;IAC1B,QAAQ,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IAC3C,QAAQ,OAAO;IACf,KAAK;IACL;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["export var BackgroundColor;\n(function (BackgroundColor) {\n BackgroundColor[\"WHITE\"] = \"white\";\n BackgroundColor[\"BLACK\"] = \"black\";\n})(BackgroundColor || (BackgroundColor = {}));\nexport var ToolBarType;\n(function (ToolBarType) {\n ToolBarType[\"ACTIVITY\"] = \"activity\";\n ToolBarType[\"NAVIGATION\"] = \"navigation\";\n ToolBarType[\"BLANK\"] = \"blank\";\n ToolBarType[\"DEFAULT\"] = \"\";\n})(ToolBarType || (ToolBarType = {}));\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from \"@capacitor/core\";\nconst InAppBrowser = registerPlugin(\"InAppBrowser\", {\n web: () => import(\"./web\").then((m) => new m.InAppBrowserWeb()),\n});\nexport * from \"./definitions\";\nexport { InAppBrowser };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class InAppBrowserWeb extends WebPlugin {\n async open(options) {\n console.log(\"open\", options);\n return options;\n }\n async openWebView(options) {\n console.log(\"openWebView\", options);\n return options;\n }\n async close() {\n console.log(\"close\");\n return;\n }\n async setUrl(options) {\n console.log(\"setUrl\", options.url);\n return;\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["BackgroundColor","ToolBarType","registerPlugin","WebPlugin"],"mappings":";;;AAAWA,qCAAgB;IAC3B,CAAC,UAAU,eAAe,EAAE;IAC5B,IAAI,eAAe,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;IACvC,IAAI,eAAe,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;IACvC,CAAC,EAAEA,uBAAe,KAAKA,uBAAe,GAAG,EAAE,CAAC,CAAC,CAAC;AACnCC,iC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onItemPosition = .right
76
76
  self.webViewController?.capBrowserPlugin = self
77
- self.webViewController?.title = call.getString("title", "")
77
+ self.webViewController?.title = call.getString("title", "New Window")
78
78
  self.webViewController?.shareSubject = call.getString("shareSubject")
79
79
  self.webViewController?.shareDisclaimer = disclaimerContent
80
80
  self.navigationWebViewController = UINavigationController.init(rootViewController: self.webViewController!)
@@ -14,9 +14,9 @@ private let titleKeyPath = "title"
14
14
  private let cookieKey = "Cookie"
15
15
 
16
16
  private struct UrlsHandledByApp {
17
- public static var hosts = ["itunes.apple.com"]
18
- public static var schemes = ["tel", "mailto", "sms"]
19
- public static var blank = true
17
+ static var hosts = ["itunes.apple.com"]
18
+ static var schemes = ["tel", "mailto", "sms"]
19
+ static var blank = true
20
20
  }
21
21
 
22
22
  @objc public protocol WKWebViewControllerDelegate {