@capgo/capacitor-navigation-bar 8.2.10 → 8.2.12

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
@@ -1,13 +1,27 @@
1
- <a href="https://capgo.app/"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-navigation-bar" alt="Capgo - Instant updates for Capacitor" /></a>
1
+ # capacitor-navigation-bar
2
+
3
+ Control the Android navigation bar from your Capacitor app: set its color and button style, make it transparent, or hide it for immersive screens.
4
+
5
+ <a href="https://capgo.app/?ref=plugin_navigation_bar"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-navigation-bar" alt="Capgo - Instant updates for Capacitor" /></a>
2
6
 
3
7
  <div align="center">
4
- <h2><a href="https://capgo.app/?ref=plugin_navigation_bar"> ➡️ Get Instant updates for your App with Capgo</a></h2>
5
- <h2><a href="https://capgo.app/consulting/?ref=plugin_navigation_bar"> Missing a feature? We’ll build the plugin for you 💪</a></h2>
8
+ <p><b>Capgo</b>: push fixes to your Capacitor users in minutes, build signed iOS and Android apps without a Mac, and roll back in one click.</p>
9
+ <h2><a href="https://capgo.app/register/?ref=plugin_navigation_bar">➡️ Get started for free</a></h2>
10
+ <p>14-day unlimited free trial. No credit card required</p>
11
+ <p><a href="https://capgo.app/consulting/?ref=plugin_navigation_bar">Missing a feature? We'll build the plugin for you 💪</a></p>
6
12
  </div>
7
13
 
8
- # capacitor-navigation-bar
14
+ <p align="center">
15
+ <img src="https://raw.githubusercontent.com/Cap-go/capacitor-navigation-bar/main/assets/github-social-preview.png" alt="@capgo/capacitor-navigation-bar for Capacitor apps" width="300" />
16
+ </p>
17
+
18
+ ## Key features
9
19
 
10
- Set navigation bar color for android lollipop and higher
20
+ - **Color**: `setNavigationBarColor()` sets the bar color, including `transparent`, and light or dark buttons.
21
+ - **Read state**: `getNavigationBarColor()` returns the current color and button theme.
22
+ - **Hide and show**: `hide()` and `show()` for fullscreen content.
23
+ - **Config defaults**: set `color`, `dividerColor` and `style` in `capacitor.config` to apply them at launch.
24
+ - **Platforms**: Android. Android only. iOS rejects the calls, and web only logs them.
11
25
 
12
26
  ## Documentation
13
27
 
@@ -26,7 +26,7 @@ public class CapgoNavigationBarPlugin extends Plugin {
26
26
  private static final String TAG = "NavigationBar";
27
27
  private static final String TRANSPARENT = "transparent";
28
28
 
29
- private final String pluginVersion = "8.2.10";
29
+ private final String pluginVersion = "8.2.12";
30
30
 
31
31
  @Override
32
32
  public void load() {
@@ -199,7 +199,7 @@ public class CapgoNavigationBarPlugin extends Plugin {
199
199
  if (Color.alpha(intColor) == 0) {
200
200
  return TRANSPARENT;
201
201
  }
202
- return String.format("#%06X", (0xFFFFFF & intColor));
202
+ return String.format("#%06X", 0xFFFFFF & intColor);
203
203
  }
204
204
 
205
205
  private boolean isNightMode() {
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["/// <reference types=\"@capacitor/cli\" />\n/**\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 hide() {\n console.log('Cannot hide navigation bar on web');\n }\n async show() {\n console.log('Cannot show navigation bar on web');\n }\n async setNavigationBarColor(options) {\n console.log('Cannot setNavigationBarColor on web', options);\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;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;;ACb9C,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,IAAI,GAAG;AACjB,QAAQ,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;AACxD,IAAI;AACJ,IAAI,MAAM,IAAI,GAAG;AACjB,QAAQ,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;AACxD,IAAI;AACJ,IAAI,MAAM,qBAAqB,CAAC,OAAO,EAAE;AACzC,QAAQ,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,OAAO,CAAC;AACnE,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":["/// <reference types=\"@capacitor/cli\" />\n/**\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 hide() {\n console.log('Cannot hide navigation bar on web');\n }\n async show() {\n console.log('Cannot show navigation bar on web');\n }\n async setNavigationBarColor(options) {\n console.log('Cannot setNavigationBarColor on web', options);\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;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;;ACb9C,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,IAAI,GAAG;AACjB,QAAQ,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;AACxD,IAAI;AACJ,IAAI,MAAM,IAAI,GAAG;AACjB,QAAQ,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;AACxD,IAAI;AACJ,IAAI,MAAM,qBAAqB,CAAC,OAAO,EAAE;AACzC,QAAQ,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,OAAO,CAAC;AACnE,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 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["/// <reference types=\"@capacitor/cli\" />\n/**\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 hide() {\n console.log('Cannot hide navigation bar on web');\n }\n async show() {\n console.log('Cannot show navigation bar on web');\n }\n async setNavigationBarColor(options) {\n console.log('Cannot setNavigationBarColor on web', options);\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;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;;ACb9C,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,IAAI,GAAG;IACjB,QAAQ,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;IACxD,IAAI;IACJ,IAAI,MAAM,IAAI,GAAG;IACjB,QAAQ,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;IACxD,IAAI;IACJ,IAAI,MAAM,qBAAqB,CAAC,OAAO,EAAE;IACzC,QAAQ,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,OAAO,CAAC;IACnE,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":["/// <reference types=\"@capacitor/cli\" />\n/**\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 hide() {\n console.log('Cannot hide navigation bar on web');\n }\n async show() {\n console.log('Cannot show navigation bar on web');\n }\n async setNavigationBarColor(options) {\n console.log('Cannot setNavigationBarColor on web', options);\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;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;;ACb9C,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,IAAI,GAAG;IACjB,QAAQ,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;IACxD,IAAI;IACJ,IAAI,MAAM,IAAI,GAAG;IACjB,QAAQ,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;IACxD,IAAI;IACJ,IAAI,MAAM,qBAAqB,CAAC,OAAO,EAAE;IACzC,QAAQ,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,OAAO,CAAC;IACnE,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 pluginVersion: String = "8.2.10"
10
+ private let pluginVersion: String = "8.2.12"
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": "8.2.10",
3
+ "version": "8.2.12",
4
4
  "description": "Capacitor plugin Set navigation bar color for android lollipop and higher",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -63,7 +63,7 @@
63
63
  "@ionic/eslint-config": "^0.5.0",
64
64
  "@ionic/prettier-config": "^4.0.0",
65
65
  "@ionic/swiftlint-config": "^2.0.0",
66
- "@types/node": "^24.10.1",
66
+ "@types/node": "^26.0.0",
67
67
  "@typescript-eslint/eslint-plugin": "^8.70.0",
68
68
  "@typescript-eslint/parser": "^8.70.0",
69
69
  "eslint": "^10.0.0",