@capacitor/browser 1.0.2 → 1.0.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/CHANGELOG.md CHANGED
@@ -3,6 +3,47 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.6](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/browser@1.0.5...@capacitor/browser@1.0.6) (2021-11-03)
7
+
8
+ **Note:** Version bump only for package @capacitor/browser
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.0.5](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/browser@1.0.4...@capacitor/browser@1.0.5) (2021-10-14)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * remove postpublish scripts ([#656](https://github.com/ionic-team/capacitor-plugins/issues/656)) ([ed6ac49](https://github.com/ionic-team/capacitor-plugins/commit/ed6ac499ebf4a47525071ccbfc36c27503e11f60))
20
+
21
+
22
+
23
+
24
+
25
+ ## [1.0.4](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/browser@1.0.3...@capacitor/browser@1.0.4) (2021-10-13)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * correct addListeners links ([#655](https://github.com/ionic-team/capacitor-plugins/issues/655)) ([f9871e7](https://github.com/ionic-team/capacitor-plugins/commit/f9871e7bd53478addb21155e148829f550c0e457))
31
+
32
+
33
+
34
+
35
+
36
+ ## [1.0.3](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/browser@1.0.2...@capacitor/browser@1.0.3) (2021-09-01)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * Correct missing source_files path ([#590](https://github.com/ionic-team/capacitor-plugins/issues/590)) ([24e0fc2](https://github.com/ionic-team/capacitor-plugins/commit/24e0fc27cc314049012ab9915fa5e7bfb03313e1))
42
+
43
+
44
+
45
+
46
+
6
47
  ## [1.0.2](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/browser@1.0.1...@capacitor/browser@1.0.2) (2021-06-23)
7
48
 
8
49
 
@@ -7,10 +7,10 @@ Pod::Spec.new do |s|
7
7
  s.version = package['version']
8
8
  s.summary = package['description']
9
9
  s.license = package['license']
10
- s.homepage = package['repository']['url']
10
+ s.homepage = 'https://capacitorjs.com'
11
11
  s.author = package['author']
12
- s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
- s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
12
+ s.source = { :git => 'https://github.com/ionic-team/capacitor-plugins.git', :tag => package['name'] + '@' + package['version'] }
13
+ s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}', 'browser/ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
14
  s.ios.deployment_target = '12.0'
15
15
  s.dependency 'Capacitor'
16
16
  s.swift_version = '5.1'
package/README.md CHANGED
@@ -35,8 +35,8 @@ const openCapacitorSite = async () => {
35
35
 
36
36
  * [`open(...)`](#open)
37
37
  * [`close()`](#close)
38
- * [`addListener('browserFinished', ...)`](#addlistenerbrowserfinished-)
39
- * [`addListener('browserPageLoaded', ...)`](#addlistenerbrowserpageloaded-)
38
+ * [`addListener('browserFinished', ...)`](#addlistenerbrowserfinished)
39
+ * [`addListener('browserPageLoaded', ...)`](#addlistenerbrowserpageloaded)
40
40
  * [`removeAllListeners()`](#removealllisteners)
41
41
  * [Interfaces](#interfaces)
42
42
 
@@ -83,7 +83,8 @@ No-op on other platforms.
83
83
  addListener(eventName: 'browserFinished', listenerFunc: () => void) => Promise<PluginListenerHandle> & PluginListenerHandle
84
84
  ```
85
85
 
86
- Android & iOS only: Listen for the loading finished event.
86
+ Android & iOS only: Listen for the browser finished event.
87
+ It fires when the Browser is closed by the user.
87
88
 
88
89
  | Param | Type |
89
90
  | ------------------ | ------------------------------ |
@@ -104,6 +105,8 @@ addListener(eventName: 'browserPageLoaded', listenerFunc: () => void) => Promise
104
105
  ```
105
106
 
106
107
  Android & iOS only: Listen for the page loaded event.
108
+ It's only fired when the URL passed to open method finish loading.
109
+ It is not invoked for any subsequent page loads.
107
110
 
108
111
  | Param | Type |
109
112
  | ------------------ | -------------------------------- |
package/dist/docs.json CHANGED
@@ -65,11 +65,11 @@
65
65
  "text": "1.0.0"
66
66
  }
67
67
  ],
68
- "docs": "Android & iOS only: Listen for the loading finished event.",
68
+ "docs": "Android & iOS only: Listen for the browser finished event.\nIt fires when the Browser is closed by the user.",
69
69
  "complexTypes": [
70
70
  "PluginListenerHandle"
71
71
  ],
72
- "slug": "addlistenerbrowserfinished-"
72
+ "slug": "addlistenerbrowserfinished"
73
73
  },
74
74
  {
75
75
  "name": "addListener",
@@ -93,11 +93,11 @@
93
93
  "text": "1.0.0"
94
94
  }
95
95
  ],
96
- "docs": "Android & iOS only: Listen for the page loaded event.",
96
+ "docs": "Android & iOS only: Listen for the page loaded event.\nIt's only fired when the URL passed to open method finish loading.\nIt is not invoked for any subsequent page loads.",
97
97
  "complexTypes": [
98
98
  "PluginListenerHandle"
99
99
  ],
100
- "slug": "addlistenerbrowserpageloaded-"
100
+ "slug": "addlistenerbrowserpageloaded"
101
101
  },
102
102
  {
103
103
  "name": "removeAllListeners",
@@ -15,13 +15,16 @@ export interface BrowserPlugin {
15
15
  */
16
16
  close(): Promise<void>;
17
17
  /**
18
- * Android & iOS only: Listen for the loading finished event.
18
+ * Android & iOS only: Listen for the browser finished event.
19
+ * It fires when the Browser is closed by the user.
19
20
  *
20
21
  * @since 1.0.0
21
22
  */
22
23
  addListener(eventName: 'browserFinished', listenerFunc: () => void): Promise<PluginListenerHandle> & PluginListenerHandle;
23
24
  /**
24
25
  * Android & iOS only: Listen for the page loaded event.
26
+ * It's only fired when the URL passed to open method finish loading.
27
+ * It is not invoked for any subsequent page loads.
25
28
  *
26
29
  * @since 1.0.0
27
30
  */
package/dist/plugin.js CHANGED
@@ -40,5 +40,5 @@ var capacitorBrowser = (function (exports, core) {
40
40
 
41
41
  return exports;
42
42
 
43
- }({}, capacitorExports));
43
+ })({}, capacitorExports);
44
44
  //# sourceMappingURL=plugin.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/browser",
3
- "version": "1.0.2",
3
+ "version": "1.0.6",
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",
@@ -33,7 +33,7 @@
33
33
  "verify:android": "cd android && ./gradlew clean build test && cd ..",
34
34
  "verify:web": "npm run build",
35
35
  "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
36
- "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- autocorrect --format",
36
+ "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
37
37
  "eslint": "eslint . --ext ts",
38
38
  "prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
39
39
  "swiftlint": "node-swiftlint",
@@ -41,12 +41,13 @@
41
41
  "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js",
42
42
  "clean": "rimraf ./dist",
43
43
  "watch": "tsc --watch",
44
- "prepublishOnly": "npm run build"
44
+ "prepublishOnly": "npm run build",
45
+ "publish:cocoapod": "pod trunk push ./CapacitorBrowser.podspec --allow-warnings"
45
46
  },
46
47
  "devDependencies": {
47
48
  "@capacitor/android": "^3.0.0",
48
49
  "@capacitor/core": "^3.0.0",
49
- "@capacitor/docgen": "0.0.17",
50
+ "@capacitor/docgen": "0.0.18",
50
51
  "@capacitor/ios": "^3.0.0",
51
52
  "@ionic/eslint-config": "^0.3.0",
52
53
  "@ionic/prettier-config": "~1.0.1",
@@ -78,5 +79,5 @@
78
79
  "publishConfig": {
79
80
  "access": "public"
80
81
  },
81
- "gitHead": "8b20a24ada3d3f96944aaa7023c4409c2bdb12c5"
82
+ "gitHead": "64df93225736e9dfad336562f5e53e5a2243052b"
82
83
  }