@capgo/capacitor-navigation-bar 7.3.1 → 7.3.2

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/README.md CHANGED
@@ -35,15 +35,21 @@ npx cap sync
35
35
  <docgen-api>
36
36
  <!--Update the source file JSDoc comments and rerun docgen to update the docs below-->
37
37
 
38
+ Capacitor Navigation Bar Plugin for customizing the Android navigation bar.
39
+
38
40
  ### setNavigationBarColor(...)
39
41
 
40
42
  ```typescript
41
43
  setNavigationBarColor(options: { color: NavigationBarColor | string; darkButtons?: boolean; }) => Promise<void>
42
44
  ```
43
45
 
44
- | Param | Type |
45
- | ------------- | ------------------------------------------------------ |
46
- | **`options`** | <code>{ color: string; darkButtons?: boolean; }</code> |
46
+ Set the navigation bar color and button theme.
47
+
48
+ | Param | Type | Description |
49
+ | ------------- | ------------------------------------------------------ | --------------------------------------------- |
50
+ | **`options`** | <code>{ color: string; darkButtons?: boolean; }</code> | - Configuration for navigation bar appearance |
51
+
52
+ **Since:** 1.0.0
47
53
 
48
54
  --------------------
49
55
 
@@ -54,8 +60,12 @@ setNavigationBarColor(options: { color: NavigationBarColor | string; darkButtons
54
60
  getNavigationBarColor() => Promise<{ color: string; darkButtons: boolean; }>
55
61
  ```
56
62
 
63
+ Get the current navigation bar color and button theme.
64
+
57
65
  **Returns:** <code>Promise&lt;{ color: string; darkButtons: boolean; }&gt;</code>
58
66
 
67
+ **Since:** 1.0.0
68
+
59
69
  --------------------
60
70
 
61
71
 
@@ -65,10 +75,12 @@ getNavigationBarColor() => Promise<{ color: string; darkButtons: boolean; }>
65
75
  getPluginVersion() => Promise<{ version: string; }>
66
76
  ```
67
77
 
68
- Get the native Capacitor plugin version
78
+ Get the native Capacitor plugin version.
69
79
 
70
80
  **Returns:** <code>Promise&lt;{ version: string; }&gt;</code>
71
81
 
82
+ **Since:** 1.0.0
83
+
72
84
  --------------------
73
85
 
74
86
 
@@ -77,10 +89,10 @@ Get the native Capacitor plugin version
77
89
 
78
90
  #### NavigationBarColor
79
91
 
80
- | Members | Value |
81
- | ----------------- | -------------------------- |
82
- | **`WHITE`** | <code>'#FFFFFF'</code> |
83
- | **`BLACK`** | <code>'#000000'</code> |
84
- | **`TRANSPARENT`** | <code>'transparent'</code> |
92
+ | Members | Value | Description |
93
+ | ----------------- | -------------------------- | ----------------- |
94
+ | **`WHITE`** | <code>'#FFFFFF'</code> | White color |
95
+ | **`BLACK`** | <code>'#000000'</code> | Black color |
96
+ | **`TRANSPARENT`** | <code>'transparent'</code> | Transparent color |
85
97
 
86
98
  </docgen-api>
@@ -15,7 +15,7 @@ import java.util.Locale;
15
15
  @CapacitorPlugin(name = "NavigationBar")
16
16
  public class CapgoNavigationBarPlugin extends Plugin {
17
17
 
18
- private final String PLUGIN_VERSION = "7.3.1";
18
+ private final String PLUGIN_VERSION = "7.3.2";
19
19
 
20
20
  @PluginMethod
21
21
  public void setNavigationBarColor(PluginCall call) {
package/dist/docs.json CHANGED
@@ -2,8 +2,13 @@
2
2
  "api": {
3
3
  "name": "NavigationBarPlugin",
4
4
  "slug": "navigationbarplugin",
5
- "docs": "",
6
- "tags": [],
5
+ "docs": "Capacitor Navigation Bar Plugin for customizing the Android navigation bar.",
6
+ "tags": [
7
+ {
8
+ "text": "1.0.0",
9
+ "name": "since"
10
+ }
11
+ ],
7
12
  "methods": [
8
13
  {
9
14
  "name": "setNavigationBarColor",
@@ -11,13 +16,34 @@
11
16
  "parameters": [
12
17
  {
13
18
  "name": "options",
14
- "docs": "",
19
+ "docs": "- Configuration for navigation bar appearance",
15
20
  "type": "{ color: string; darkButtons?: boolean | undefined; }"
16
21
  }
17
22
  ],
18
23
  "returns": "Promise<void>",
19
- "tags": [],
20
- "docs": "",
24
+ "tags": [
25
+ {
26
+ "name": "param",
27
+ "text": "options - Configuration for navigation bar appearance"
28
+ },
29
+ {
30
+ "name": "returns",
31
+ "text": "Promise that resolves when the color is set"
32
+ },
33
+ {
34
+ "name": "throws",
35
+ "text": "Error if setting the color fails"
36
+ },
37
+ {
38
+ "name": "since",
39
+ "text": "1.0.0"
40
+ },
41
+ {
42
+ "name": "example",
43
+ "text": "```typescript\n// Set to white with dark buttons\nawait NavigationBar.setNavigationBarColor({\n color: NavigationBarColor.WHITE,\n darkButtons: true\n});\n\n// Set to custom color\nawait NavigationBar.setNavigationBarColor({\n color: '#FF5733',\n darkButtons: false\n});\n```"
44
+ }
45
+ ],
46
+ "docs": "Set the navigation bar color and button theme.",
21
47
  "complexTypes": [
22
48
  "NavigationBarColor"
23
49
  ],
@@ -28,8 +54,25 @@
28
54
  "signature": "() => Promise<{ color: string; darkButtons: boolean; }>",
29
55
  "parameters": [],
30
56
  "returns": "Promise<{ color: string; darkButtons: boolean; }>",
31
- "tags": [],
32
- "docs": "",
57
+ "tags": [
58
+ {
59
+ "name": "returns",
60
+ "text": "Promise that resolves with the current navigation bar configuration"
61
+ },
62
+ {
63
+ "name": "throws",
64
+ "text": "Error if getting the color fails"
65
+ },
66
+ {
67
+ "name": "since",
68
+ "text": "1.0.0"
69
+ },
70
+ {
71
+ "name": "example",
72
+ "text": "```typescript\nconst { color, darkButtons } = await NavigationBar.getNavigationBarColor();\nconsole.log('Current color:', color);\nconsole.log('Using dark buttons:', darkButtons);\n```"
73
+ }
74
+ ],
75
+ "docs": "Get the current navigation bar color and button theme.",
33
76
  "complexTypes": [],
34
77
  "slug": "getnavigationbarcolor"
35
78
  },
@@ -41,14 +84,22 @@
41
84
  "tags": [
42
85
  {
43
86
  "name": "returns",
44
- "text": "an Promise with version for this device"
87
+ "text": "Promise that resolves with the plugin version"
45
88
  },
46
89
  {
47
90
  "name": "throws",
48
- "text": "An error if the something went wrong"
91
+ "text": "Error if getting the version fails"
92
+ },
93
+ {
94
+ "name": "since",
95
+ "text": "1.0.0"
96
+ },
97
+ {
98
+ "name": "example",
99
+ "text": "```typescript\nconst { version } = await NavigationBar.getPluginVersion();\nconsole.log('Plugin version:', version);\n```"
49
100
  }
50
101
  ],
51
- "docs": "Get the native Capacitor plugin version",
102
+ "docs": "Get the native Capacitor plugin version.",
52
103
  "complexTypes": [],
53
104
  "slug": "getpluginversion"
54
105
  }
@@ -65,19 +116,19 @@
65
116
  "name": "WHITE",
66
117
  "value": "'#FFFFFF'",
67
118
  "tags": [],
68
- "docs": ""
119
+ "docs": "White color"
69
120
  },
70
121
  {
71
122
  "name": "BLACK",
72
123
  "value": "'#000000'",
73
124
  "tags": [],
74
- "docs": ""
125
+ "docs": "Black color"
75
126
  },
76
127
  {
77
128
  "name": "TRANSPARENT",
78
129
  "value": "'transparent'",
79
130
  "tags": [],
80
- "docs": ""
131
+ "docs": "Transparent color"
81
132
  }
82
133
  ]
83
134
  }
@@ -1,22 +1,80 @@
1
+ /**
2
+ * Predefined navigation bar colors.
3
+ *
4
+ * @since 1.0.0
5
+ */
1
6
  export declare enum NavigationBarColor {
7
+ /** White color */
2
8
  WHITE = "#FFFFFF",
9
+ /** Black color */
3
10
  BLACK = "#000000",
11
+ /** Transparent color */
4
12
  TRANSPARENT = "transparent"
5
13
  }
14
+ /**
15
+ * Capacitor Navigation Bar Plugin for customizing the Android navigation bar.
16
+ *
17
+ * @since 1.0.0
18
+ */
6
19
  export interface NavigationBarPlugin {
20
+ /**
21
+ * Set the navigation bar color and button theme.
22
+ *
23
+ * @param options - Configuration for navigation bar appearance
24
+ * @returns Promise that resolves when the color is set
25
+ * @throws Error if setting the color fails
26
+ * @since 1.0.0
27
+ * @example
28
+ * ```typescript
29
+ * // Set to white with dark buttons
30
+ * await NavigationBar.setNavigationBarColor({
31
+ * color: NavigationBarColor.WHITE,
32
+ * darkButtons: true
33
+ * });
34
+ *
35
+ * // Set to custom color
36
+ * await NavigationBar.setNavigationBarColor({
37
+ * color: '#FF5733',
38
+ * darkButtons: false
39
+ * });
40
+ * ```
41
+ */
7
42
  setNavigationBarColor(options: {
43
+ /** Predefined colors or any valid hex color code */
8
44
  color: NavigationBarColor | string;
45
+ /** Whether to use dark buttons. Defaults to true if not specified */
9
46
  darkButtons?: boolean;
10
47
  }): Promise<void>;
48
+ /**
49
+ * Get the current navigation bar color and button theme.
50
+ *
51
+ * @returns Promise that resolves with the current navigation bar configuration
52
+ * @throws Error if getting the color fails
53
+ * @since 1.0.0
54
+ * @example
55
+ * ```typescript
56
+ * const { color, darkButtons } = await NavigationBar.getNavigationBarColor();
57
+ * console.log('Current color:', color);
58
+ * console.log('Using dark buttons:', darkButtons);
59
+ * ```
60
+ */
11
61
  getNavigationBarColor(): Promise<{
62
+ /** Current navigation bar color */
12
63
  color: string;
64
+ /** Whether dark buttons are enabled */
13
65
  darkButtons: boolean;
14
66
  }>;
15
67
  /**
16
- * Get the native Capacitor plugin version
68
+ * Get the native Capacitor plugin version.
17
69
  *
18
- * @returns {Promise<{ id: string }>} an Promise with version for this device
19
- * @throws An error if the something went wrong
70
+ * @returns Promise that resolves with the plugin version
71
+ * @throws Error if getting the version fails
72
+ * @since 1.0.0
73
+ * @example
74
+ * ```typescript
75
+ * const { version } = await NavigationBar.getPluginVersion();
76
+ * console.log('Plugin version:', version);
77
+ * ```
20
78
  */
21
79
  getPluginVersion(): Promise<{
22
80
  version: string;
@@ -1,7 +1,15 @@
1
+ /**
2
+ * Predefined navigation bar colors.
3
+ *
4
+ * @since 1.0.0
5
+ */
1
6
  export var NavigationBarColor;
2
7
  (function (NavigationBarColor) {
8
+ /** White color */
3
9
  NavigationBarColor["WHITE"] = "#FFFFFF";
10
+ /** Black color */
4
11
  NavigationBarColor["BLACK"] = "#000000";
12
+ /** Transparent color */
5
13
  NavigationBarColor["TRANSPARENT"] = "transparent";
6
14
  })(NavigationBarColor || (NavigationBarColor = {}));
7
15
  //# sourceMappingURL=definitions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,iDAA2B,CAAA;AAC7B,CAAC,EAJW,kBAAkB,KAAlB,kBAAkB,QAI7B","sourcesContent":["export enum NavigationBarColor {\n WHITE = '#FFFFFF',\n BLACK = '#000000',\n TRANSPARENT = 'transparent',\n}\n\nexport interface NavigationBarPlugin {\n setNavigationBarColor(options: {\n color: NavigationBarColor | string; // Predefined colors or any valid hex\n darkButtons?: boolean; // Set to true when not specified\n }): Promise<void>;\n getNavigationBarColor(): Promise<{\n color: string;\n darkButtons: boolean;\n }>;\n\n /**\n * Get the native Capacitor plugin version\n *\n * @returns {Promise<{ id: string }>} an Promise with version for this device\n * @throws An error if the something went wrong\n */\n getPluginVersion(): Promise<{ version: string }>;\n}\n"]}
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAN,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC5B,kBAAkB;IAClB,uCAAiB,CAAA;IACjB,kBAAkB;IAClB,uCAAiB,CAAA;IACjB,wBAAwB;IACxB,iDAA2B,CAAA;AAC7B,CAAC,EAPW,kBAAkB,KAAlB,kBAAkB,QAO7B","sourcesContent":["/**\n * Predefined navigation bar colors.\n *\n * @since 1.0.0\n */\nexport enum NavigationBarColor {\n /** White color */\n WHITE = '#FFFFFF',\n /** Black color */\n BLACK = '#000000',\n /** Transparent color */\n TRANSPARENT = 'transparent',\n}\n\n/**\n * Capacitor Navigation Bar Plugin for customizing the Android navigation bar.\n *\n * @since 1.0.0\n */\nexport interface NavigationBarPlugin {\n /**\n * Set the navigation bar color and button theme.\n *\n * @param options - Configuration for navigation bar appearance\n * @returns Promise that resolves when the color is set\n * @throws Error if setting the color fails\n * @since 1.0.0\n * @example\n * ```typescript\n * // Set to white with dark buttons\n * await NavigationBar.setNavigationBarColor({\n * color: NavigationBarColor.WHITE,\n * darkButtons: true\n * });\n *\n * // Set to custom color\n * await NavigationBar.setNavigationBarColor({\n * color: '#FF5733',\n * darkButtons: false\n * });\n * ```\n */\n setNavigationBarColor(options: {\n /** Predefined colors or any valid hex color code */\n color: NavigationBarColor | string;\n /** Whether to use dark buttons. Defaults to true if not specified */\n darkButtons?: boolean;\n }): Promise<void>;\n\n /**\n * Get the current navigation bar color and button theme.\n *\n * @returns Promise that resolves with the current navigation bar configuration\n * @throws Error if getting the color fails\n * @since 1.0.0\n * @example\n * ```typescript\n * const { color, darkButtons } = await NavigationBar.getNavigationBarColor();\n * console.log('Current color:', color);\n * console.log('Using dark buttons:', darkButtons);\n * ```\n */\n getNavigationBarColor(): Promise<{\n /** Current navigation bar color */\n color: string;\n /** Whether dark buttons are enabled */\n darkButtons: boolean;\n }>;\n\n /**\n * Get the native Capacitor plugin version.\n *\n * @returns Promise that resolves with the plugin version\n * @throws Error if getting the version fails\n * @since 1.0.0\n * @example\n * ```typescript\n * const { version } = await NavigationBar.getPluginVersion();\n * console.log('Plugin version:', version);\n * ```\n */\n getPluginVersion(): Promise<{ version: string }>;\n}\n"]}
@@ -2,10 +2,18 @@
2
2
 
3
3
  var core = require('@capacitor/core');
4
4
 
5
+ /**
6
+ * Predefined navigation bar colors.
7
+ *
8
+ * @since 1.0.0
9
+ */
5
10
  exports.NavigationBarColor = void 0;
6
11
  (function (NavigationBarColor) {
12
+ /** White color */
7
13
  NavigationBarColor["WHITE"] = "#FFFFFF";
14
+ /** Black color */
8
15
  NavigationBarColor["BLACK"] = "#000000";
16
+ /** Transparent color */
9
17
  NavigationBarColor["TRANSPARENT"] = "transparent";
10
18
  })(exports.NavigationBarColor || (exports.NavigationBarColor = {}));
11
19
 
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["export var NavigationBarColor;\n(function (NavigationBarColor) {\n NavigationBarColor[\"WHITE\"] = \"#FFFFFF\";\n NavigationBarColor[\"BLACK\"] = \"#000000\";\n NavigationBarColor[\"TRANSPARENT\"] = \"transparent\";\n})(NavigationBarColor || (NavigationBarColor = {}));\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from '@capacitor/core';\nconst NavigationBar = registerPlugin('NavigationBar', {\n web: () => import('./web').then((m) => new m.NavigationBarWeb()),\n});\nexport * from './definitions';\nexport { NavigationBar };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class NavigationBarWeb extends WebPlugin {\n async setNavigationBarColor(options) {\n console.log('Cannot setNavigationBarColor on web', options);\n return;\n }\n async getNavigationBarColor() {\n console.log('Cannot getNavigationBarColor on web');\n return { color: '#000000', darkButtons: true };\n }\n async getPluginVersion() {\n return { version: 'web' };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["NavigationBarColor","registerPlugin","WebPlugin"],"mappings":";;;;AAAWA;AACX,CAAC,UAAU,kBAAkB,EAAE;AAC/B,IAAI,kBAAkB,CAAC,OAAO,CAAC,GAAG,SAAS;AAC3C,IAAI,kBAAkB,CAAC,OAAO,CAAC,GAAG,SAAS;AAC3C,IAAI,kBAAkB,CAAC,aAAa,CAAC,GAAG,aAAa;AACrD,CAAC,EAAEA,0BAAkB,KAAKA,0BAAkB,GAAG,EAAE,CAAC,CAAC;;ACJ9C,MAAC,aAAa,GAAGC,mBAAc,CAAC,eAAe,EAAE;AACtD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,gBAAgB,EAAE,CAAC;AACpE,CAAC;;ACFM,MAAM,gBAAgB,SAASC,cAAS,CAAC;AAChD,IAAI,MAAM,qBAAqB,CAAC,OAAO,EAAE;AACzC,QAAQ,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,OAAO,CAAC;AACnE,QAAQ;AACR,IAAI;AACJ,IAAI,MAAM,qBAAqB,GAAG;AAClC,QAAQ,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC;AAC1D,QAAQ,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE;AACtD,IAAI;AACJ,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;AACjC,IAAI;AACJ;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["/**\n * Predefined navigation bar colors.\n *\n * @since 1.0.0\n */\nexport var NavigationBarColor;\n(function (NavigationBarColor) {\n /** White color */\n NavigationBarColor[\"WHITE\"] = \"#FFFFFF\";\n /** Black color */\n NavigationBarColor[\"BLACK\"] = \"#000000\";\n /** Transparent color */\n NavigationBarColor[\"TRANSPARENT\"] = \"transparent\";\n})(NavigationBarColor || (NavigationBarColor = {}));\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from '@capacitor/core';\nconst NavigationBar = registerPlugin('NavigationBar', {\n web: () => import('./web').then((m) => new m.NavigationBarWeb()),\n});\nexport * from './definitions';\nexport { NavigationBar };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class NavigationBarWeb extends WebPlugin {\n async setNavigationBarColor(options) {\n console.log('Cannot setNavigationBarColor on web', options);\n return;\n }\n async getNavigationBarColor() {\n console.log('Cannot getNavigationBarColor on web');\n return { color: '#000000', darkButtons: true };\n }\n async getPluginVersion() {\n return { version: 'web' };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["NavigationBarColor","registerPlugin","WebPlugin"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACWA;AACX,CAAC,UAAU,kBAAkB,EAAE;AAC/B;AACA,IAAI,kBAAkB,CAAC,OAAO,CAAC,GAAG,SAAS;AAC3C;AACA,IAAI,kBAAkB,CAAC,OAAO,CAAC,GAAG,SAAS;AAC3C;AACA,IAAI,kBAAkB,CAAC,aAAa,CAAC,GAAG,aAAa;AACrD,CAAC,EAAEA,0BAAkB,KAAKA,0BAAkB,GAAG,EAAE,CAAC,CAAC;;ACZ9C,MAAC,aAAa,GAAGC,mBAAc,CAAC,eAAe,EAAE;AACtD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,gBAAgB,EAAE,CAAC;AACpE,CAAC;;ACFM,MAAM,gBAAgB,SAASC,cAAS,CAAC;AAChD,IAAI,MAAM,qBAAqB,CAAC,OAAO,EAAE;AACzC,QAAQ,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,OAAO,CAAC;AACnE,QAAQ;AACR,IAAI;AACJ,IAAI,MAAM,qBAAqB,GAAG;AAClC,QAAQ,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC;AAC1D,QAAQ,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE;AACtD,IAAI;AACJ,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;AACjC,IAAI;AACJ;;;;;;;;;"}
package/dist/plugin.js CHANGED
@@ -1,10 +1,18 @@
1
1
  var NavigationBarPlugin = (function (exports, core) {
2
2
  'use strict';
3
3
 
4
+ /**
5
+ * Predefined navigation bar colors.
6
+ *
7
+ * @since 1.0.0
8
+ */
4
9
  exports.NavigationBarColor = void 0;
5
10
  (function (NavigationBarColor) {
11
+ /** White color */
6
12
  NavigationBarColor["WHITE"] = "#FFFFFF";
13
+ /** Black color */
7
14
  NavigationBarColor["BLACK"] = "#000000";
15
+ /** Transparent color */
8
16
  NavigationBarColor["TRANSPARENT"] = "transparent";
9
17
  })(exports.NavigationBarColor || (exports.NavigationBarColor = {}));
10
18
 
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["export var NavigationBarColor;\n(function (NavigationBarColor) {\n NavigationBarColor[\"WHITE\"] = \"#FFFFFF\";\n NavigationBarColor[\"BLACK\"] = \"#000000\";\n NavigationBarColor[\"TRANSPARENT\"] = \"transparent\";\n})(NavigationBarColor || (NavigationBarColor = {}));\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from '@capacitor/core';\nconst NavigationBar = registerPlugin('NavigationBar', {\n web: () => import('./web').then((m) => new m.NavigationBarWeb()),\n});\nexport * from './definitions';\nexport { NavigationBar };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class NavigationBarWeb extends WebPlugin {\n async setNavigationBarColor(options) {\n console.log('Cannot setNavigationBarColor on web', options);\n return;\n }\n async getNavigationBarColor() {\n console.log('Cannot getNavigationBarColor on web');\n return { color: '#000000', darkButtons: true };\n }\n async getPluginVersion() {\n return { version: 'web' };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["NavigationBarColor","registerPlugin","WebPlugin"],"mappings":";;;AAAWA;IACX,CAAC,UAAU,kBAAkB,EAAE;IAC/B,IAAI,kBAAkB,CAAC,OAAO,CAAC,GAAG,SAAS;IAC3C,IAAI,kBAAkB,CAAC,OAAO,CAAC,GAAG,SAAS;IAC3C,IAAI,kBAAkB,CAAC,aAAa,CAAC,GAAG,aAAa;IACrD,CAAC,EAAEA,0BAAkB,KAAKA,0BAAkB,GAAG,EAAE,CAAC,CAAC;;ACJ9C,UAAC,aAAa,GAAGC,mBAAc,CAAC,eAAe,EAAE;IACtD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACpE,CAAC;;ICFM,MAAM,gBAAgB,SAASC,cAAS,CAAC;IAChD,IAAI,MAAM,qBAAqB,CAAC,OAAO,EAAE;IACzC,QAAQ,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,OAAO,CAAC;IACnE,QAAQ;IACR,IAAI;IACJ,IAAI,MAAM,qBAAqB,GAAG;IAClC,QAAQ,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC;IAC1D,QAAQ,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE;IACtD,IAAI;IACJ,IAAI,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;IACjC,IAAI;IACJ;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["/**\n * Predefined navigation bar colors.\n *\n * @since 1.0.0\n */\nexport var NavigationBarColor;\n(function (NavigationBarColor) {\n /** White color */\n NavigationBarColor[\"WHITE\"] = \"#FFFFFF\";\n /** Black color */\n NavigationBarColor[\"BLACK\"] = \"#000000\";\n /** Transparent color */\n NavigationBarColor[\"TRANSPARENT\"] = \"transparent\";\n})(NavigationBarColor || (NavigationBarColor = {}));\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from '@capacitor/core';\nconst NavigationBar = registerPlugin('NavigationBar', {\n web: () => import('./web').then((m) => new m.NavigationBarWeb()),\n});\nexport * from './definitions';\nexport { NavigationBar };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class NavigationBarWeb extends WebPlugin {\n async setNavigationBarColor(options) {\n console.log('Cannot setNavigationBarColor on web', options);\n return;\n }\n async getNavigationBarColor() {\n console.log('Cannot getNavigationBarColor on web');\n return { color: '#000000', darkButtons: true };\n }\n async getPluginVersion() {\n return { version: 'web' };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["NavigationBarColor","registerPlugin","WebPlugin"],"mappings":";;;IAAA;IACA;IACA;IACA;IACA;AACWA;IACX,CAAC,UAAU,kBAAkB,EAAE;IAC/B;IACA,IAAI,kBAAkB,CAAC,OAAO,CAAC,GAAG,SAAS;IAC3C;IACA,IAAI,kBAAkB,CAAC,OAAO,CAAC,GAAG,SAAS;IAC3C;IACA,IAAI,kBAAkB,CAAC,aAAa,CAAC,GAAG,aAAa;IACrD,CAAC,EAAEA,0BAAkB,KAAKA,0BAAkB,GAAG,EAAE,CAAC,CAAC;;ACZ9C,UAAC,aAAa,GAAGC,mBAAc,CAAC,eAAe,EAAE;IACtD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACpE,CAAC;;ICFM,MAAM,gBAAgB,SAASC,cAAS,CAAC;IAChD,IAAI,MAAM,qBAAqB,CAAC,OAAO,EAAE;IACzC,QAAQ,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,OAAO,CAAC;IACnE,QAAQ;IACR,IAAI;IACJ,IAAI,MAAM,qBAAqB,GAAG;IAClC,QAAQ,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC;IAC1D,QAAQ,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE;IACtD,IAAI;IACJ,IAAI,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;IACjC,IAAI;IACJ;;;;;;;;;;;;;;;"}
@@ -7,7 +7,7 @@ import Capacitor
7
7
  */
8
8
  @objc(CapgoNavigationBarPlugin)
9
9
  public class CapgoNavigationBarPlugin: CAPPlugin, CAPBridgedPlugin {
10
- private let PLUGIN_VERSION: String = "7.3.1"
10
+ private let PLUGIN_VERSION: String = "7.3.2"
11
11
  public let identifier = "CapgoNavigationBarPlugin"
12
12
  public let jsName = "NavigationBar"
13
13
  public let pluginMethods: [CAPPluginMethod] = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-navigation-bar",
3
- "version": "7.3.1",
3
+ "version": "7.3.2",
4
4
  "description": "Capacitor plugin Set navigation bar color for android lolipop and higher",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",