@capacitor/browser 7.0.1 → 7.0.2-dev-2372-20250521T134243.0

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  var core = require('@capacitor/core');
4
4
 
5
- const Browser$1 = core.registerPlugin('Browser', {
5
+ const Browser = core.registerPlugin('Browser', {
6
6
  web: () => Promise.resolve().then(function () { return web; }).then(m => new m.BrowserWeb()),
7
7
  });
8
8
 
@@ -27,13 +27,12 @@ class BrowserWeb extends core.WebPlugin {
27
27
  });
28
28
  }
29
29
  }
30
- const Browser = new BrowserWeb();
30
+ new BrowserWeb();
31
31
 
32
32
  var web = /*#__PURE__*/Object.freeze({
33
33
  __proto__: null,
34
- Browser: Browser,
35
34
  BrowserWeb: BrowserWeb
36
35
  });
37
36
 
38
- exports.Browser = Browser$1;
37
+ exports.Browser = Browser;
39
38
  //# sourceMappingURL=plugin.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Browser = registerPlugin('Browser', {\n web: () => import('./web').then(m => new m.BrowserWeb()),\n});\nexport * from './definitions';\nexport { Browser };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class BrowserWeb extends WebPlugin {\n constructor() {\n super();\n this._lastWindow = null;\n }\n async open(options) {\n this._lastWindow = window.open(options.url, options.windowName || '_blank');\n }\n async close() {\n return new Promise((resolve, reject) => {\n if (this._lastWindow != null) {\n this._lastWindow.close();\n this._lastWindow = null;\n resolve();\n }\n else {\n reject('No active window to close!');\n }\n });\n }\n}\nconst Browser = new BrowserWeb();\nexport { Browser };\n//# sourceMappingURL=web.js.map"],"names":["Browser","registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAACA,SAAO,GAAGC,mBAAc,CAAC,SAAS,EAAE;AAC1C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;AAC5D,CAAC;;ACFM,MAAM,UAAU,SAASC,cAAS,CAAC;AAC1C,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,EAAE;AACf,QAAQ,IAAI,CAAC,WAAW,GAAG,IAAI;AAC/B;AACA,IAAI,MAAM,IAAI,CAAC,OAAO,EAAE;AACxB,QAAQ,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,UAAU,IAAI,QAAQ,CAAC;AACnF;AACA,IAAI,MAAM,KAAK,GAAG;AAClB,QAAQ,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK;AAChD,YAAY,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;AAC1C,gBAAgB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE;AACxC,gBAAgB,IAAI,CAAC,WAAW,GAAG,IAAI;AACvC,gBAAgB,OAAO,EAAE;AACzB;AACA,iBAAiB;AACjB,gBAAgB,MAAM,CAAC,4BAA4B,CAAC;AACpD;AACA,SAAS,CAAC;AACV;AACA;AACA,MAAM,OAAO,GAAG,IAAI,UAAU,EAAE;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Browser = registerPlugin('Browser', {\n web: () => import('./web').then(m => new m.BrowserWeb()),\n});\nexport * from './definitions';\nexport { Browser };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class BrowserWeb extends WebPlugin {\n constructor() {\n super();\n this._lastWindow = null;\n }\n async open(options) {\n this._lastWindow = window.open(options.url, options.windowName || '_blank');\n }\n async close() {\n return new Promise((resolve, reject) => {\n if (this._lastWindow != null) {\n this._lastWindow.close();\n this._lastWindow = null;\n resolve();\n }\n else {\n reject('No active window to close!');\n }\n });\n }\n}\nconst Browser = new BrowserWeb();\nexport { Browser };\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,OAAO,GAAGA,mBAAc,CAAC,SAAS,EAAE;AAC1C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;AAC5D,CAAC;;ACFM,MAAM,UAAU,SAASC,cAAS,CAAC;AAC1C,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,EAAE;AACf,QAAQ,IAAI,CAAC,WAAW,GAAG,IAAI;AAC/B;AACA,IAAI,MAAM,IAAI,CAAC,OAAO,EAAE;AACxB,QAAQ,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,UAAU,IAAI,QAAQ,CAAC;AACnF;AACA,IAAI,MAAM,KAAK,GAAG;AAClB,QAAQ,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK;AAChD,YAAY,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;AAC1C,gBAAgB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE;AACxC,gBAAgB,IAAI,CAAC,WAAW,GAAG,IAAI;AACvC,gBAAgB,OAAO,EAAE;AACzB;AACA,iBAAiB;AACjB,gBAAgB,MAAM,CAAC,4BAA4B,CAAC;AACpD;AACA,SAAS,CAAC;AACV;AACA;AACgB,IAAI,UAAU;;;;;;;;;"}
package/dist/plugin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var capacitorBrowser = (function (exports, core) {
2
2
  'use strict';
3
3
 
4
- const Browser$1 = core.registerPlugin('Browser', {
4
+ const Browser = core.registerPlugin('Browser', {
5
5
  web: () => Promise.resolve().then(function () { return web; }).then(m => new m.BrowserWeb()),
6
6
  });
7
7
 
@@ -26,15 +26,14 @@ var capacitorBrowser = (function (exports, core) {
26
26
  });
27
27
  }
28
28
  }
29
- const Browser = new BrowserWeb();
29
+ new BrowserWeb();
30
30
 
31
31
  var web = /*#__PURE__*/Object.freeze({
32
32
  __proto__: null,
33
- Browser: Browser,
34
33
  BrowserWeb: BrowserWeb
35
34
  });
36
35
 
37
- exports.Browser = Browser$1;
36
+ exports.Browser = Browser;
38
37
 
39
38
  return exports;
40
39
 
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Browser = registerPlugin('Browser', {\n web: () => import('./web').then(m => new m.BrowserWeb()),\n});\nexport * from './definitions';\nexport { Browser };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class BrowserWeb extends WebPlugin {\n constructor() {\n super();\n this._lastWindow = null;\n }\n async open(options) {\n this._lastWindow = window.open(options.url, options.windowName || '_blank');\n }\n async close() {\n return new Promise((resolve, reject) => {\n if (this._lastWindow != null) {\n this._lastWindow.close();\n this._lastWindow = null;\n resolve();\n }\n else {\n reject('No active window to close!');\n }\n });\n }\n}\nconst Browser = new BrowserWeb();\nexport { Browser };\n//# sourceMappingURL=web.js.map"],"names":["Browser","registerPlugin","WebPlugin"],"mappings":";;;AACK,UAACA,SAAO,GAAGC,mBAAc,CAAC,SAAS,EAAE;IAC1C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC5D,CAAC;;ICFM,MAAM,UAAU,SAASC,cAAS,CAAC;IAC1C,IAAI,WAAW,GAAG;IAClB,QAAQ,KAAK,EAAE;IACf,QAAQ,IAAI,CAAC,WAAW,GAAG,IAAI;IAC/B;IACA,IAAI,MAAM,IAAI,CAAC,OAAO,EAAE;IACxB,QAAQ,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,UAAU,IAAI,QAAQ,CAAC;IACnF;IACA,IAAI,MAAM,KAAK,GAAG;IAClB,QAAQ,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK;IAChD,YAAY,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;IAC1C,gBAAgB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE;IACxC,gBAAgB,IAAI,CAAC,WAAW,GAAG,IAAI;IACvC,gBAAgB,OAAO,EAAE;IACzB;IACA,iBAAiB;IACjB,gBAAgB,MAAM,CAAC,4BAA4B,CAAC;IACpD;IACA,SAAS,CAAC;IACV;IACA;IACA,MAAM,OAAO,GAAG,IAAI,UAAU,EAAE;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Browser = registerPlugin('Browser', {\n web: () => import('./web').then(m => new m.BrowserWeb()),\n});\nexport * from './definitions';\nexport { Browser };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class BrowserWeb extends WebPlugin {\n constructor() {\n super();\n this._lastWindow = null;\n }\n async open(options) {\n this._lastWindow = window.open(options.url, options.windowName || '_blank');\n }\n async close() {\n return new Promise((resolve, reject) => {\n if (this._lastWindow != null) {\n this._lastWindow.close();\n this._lastWindow = null;\n resolve();\n }\n else {\n reject('No active window to close!');\n }\n });\n }\n}\nconst Browser = new BrowserWeb();\nexport { Browser };\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,OAAO,GAAGA,mBAAc,CAAC,SAAS,EAAE;IAC1C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC5D,CAAC;;ICFM,MAAM,UAAU,SAASC,cAAS,CAAC;IAC1C,IAAI,WAAW,GAAG;IAClB,QAAQ,KAAK,EAAE;IACf,QAAQ,IAAI,CAAC,WAAW,GAAG,IAAI;IAC/B;IACA,IAAI,MAAM,IAAI,CAAC,OAAO,EAAE;IACxB,QAAQ,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,UAAU,IAAI,QAAQ,CAAC;IACnF;IACA,IAAI,MAAM,KAAK,GAAG;IAClB,QAAQ,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK;IAChD,YAAY,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;IAC1C,gBAAgB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE;IACxC,gBAAgB,IAAI,CAAC,WAAW,GAAG,IAAI;IACvC,gBAAgB,OAAO,EAAE;IACzB;IACA,iBAAiB;IACjB,gBAAgB,MAAM,CAAC,4BAA4B,CAAC;IACpD;IACA,SAAS,CAAC;IACV;IACA;IACgB,IAAI,UAAU;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/browser",
3
- "version": "7.0.1",
3
+ "version": "7.0.2-dev-2372-20250521T134243.0",
4
4
  "description": "The Browser API provides the ability to open an in-app browser and subscribe to browser events.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -47,10 +47,10 @@
47
47
  "publish:cocoapod": "pod trunk push ./CapacitorBrowser.podspec --allow-warnings"
48
48
  },
49
49
  "devDependencies": {
50
- "@capacitor/android": "next",
51
- "@capacitor/core": "next",
50
+ "@capacitor/android": "^7.0.0",
51
+ "@capacitor/core": "^7.0.0",
52
52
  "@capacitor/docgen": "0.2.2",
53
- "@capacitor/ios": "next",
53
+ "@capacitor/ios": "^7.0.0",
54
54
  "@ionic/eslint-config": "^0.4.0",
55
55
  "@ionic/prettier-config": "~1.0.1",
56
56
  "@ionic/swiftlint-config": "^1.1.2",
@@ -80,6 +80,5 @@
80
80
  },
81
81
  "publishConfig": {
82
82
  "access": "public"
83
- },
84
- "gitHead": "927f549a995118acd8e5735835300c4c3cbf3de7"
83
+ }
85
84
  }