@capgo/capacitor-navigation-bar
Advanced tools
Comparing version 0.0.4 to 4.0.0
@@ -10,3 +10,3 @@ { | ||
"name": "setNavigationBarColor", | ||
"signature": "(options: { color: string; }) => Promise<void>", | ||
"signature": "(options: { color: string; }) => any", | ||
"parameters": [ | ||
@@ -19,3 +19,3 @@ { | ||
], | ||
"returns": "Promise<void>", | ||
"returns": "any", | ||
"tags": [], | ||
@@ -28,5 +28,5 @@ "docs": "", | ||
"name": "getNavigationBarColor", | ||
"signature": "() => Promise<{ color: string; }>", | ||
"signature": "() => any", | ||
"parameters": [], | ||
"returns": "Promise<{ color: string; }>", | ||
"returns": "any", | ||
"tags": [], | ||
@@ -33,0 +33,0 @@ "docs": "", |
@@ -1,4 +0,4 @@ | ||
import type { NavigationBarPlugin } from './definitions'; | ||
import type { NavigationBarPlugin } from "./definitions"; | ||
declare const NavigationBar: NavigationBarPlugin; | ||
export * from './definitions'; | ||
export * from "./definitions"; | ||
export { NavigationBar }; |
@@ -1,7 +0,7 @@ | ||
import { registerPlugin } from '@capacitor/core'; | ||
const NavigationBar = registerPlugin('NavigationBar', { | ||
web: () => import('./web').then(m => new m.NavigationBarWeb()), | ||
import { registerPlugin } from "@capacitor/core"; | ||
const NavigationBar = registerPlugin("NavigationBar", { | ||
web: () => import("./web").then((m) => new m.NavigationBarWeb()), | ||
}); | ||
export * from './definitions'; | ||
export * from "./definitions"; | ||
export { NavigationBar }; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
import { WebPlugin } from '@capacitor/core'; | ||
import type { NavigationBarPlugin } from './definitions'; | ||
import { WebPlugin } from "@capacitor/core"; | ||
import type { NavigationBarPlugin } from "./definitions"; | ||
export declare class NavigationBarWeb extends WebPlugin implements NavigationBarPlugin { | ||
@@ -4,0 +4,0 @@ setNavigationBarColor(options: { |
@@ -1,13 +0,12 @@ | ||
import { WebPlugin } from '@capacitor/core'; | ||
import { WebPlugin } from "@capacitor/core"; | ||
export class NavigationBarWeb extends WebPlugin { | ||
async setNavigationBarColor(options) { | ||
console.log('Cannot setNavigationBarColor on web', options); | ||
console.log("Cannot setNavigationBarColor on web", options); | ||
return; | ||
} | ||
; | ||
async getNavigationBarColor() { | ||
console.log('Cannot getNavigationBarColor on web'); | ||
return { color: '#000000' }; | ||
console.log("Cannot getNavigationBarColor on web"); | ||
return { color: "#000000" }; | ||
} | ||
} | ||
//# sourceMappingURL=web.js.map |
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var core = require('@capacitor/core'); | ||
const NavigationBar = core.registerPlugin('NavigationBar', { | ||
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.NavigationBarWeb()), | ||
const NavigationBar = core.registerPlugin("NavigationBar", { | ||
web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.NavigationBarWeb()), | ||
}); | ||
@@ -13,9 +11,8 @@ | ||
async setNavigationBarColor(options) { | ||
console.log('Cannot setNavigationBarColor on web', options); | ||
console.log("Cannot setNavigationBarColor on web", options); | ||
return; | ||
} | ||
; | ||
async getNavigationBarColor() { | ||
console.log('Cannot getNavigationBarColor on web'); | ||
return { color: '#000000' }; | ||
console.log("Cannot getNavigationBarColor on web"); | ||
return { color: "#000000" }; | ||
} | ||
@@ -22,0 +19,0 @@ } |
@@ -1,6 +0,6 @@ | ||
var capacitorNavigationBar = (function (exports, core) { | ||
var capacitorCapacitorUpdater = (function (exports, core) { | ||
'use strict'; | ||
const NavigationBar = core.registerPlugin('NavigationBar', { | ||
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.NavigationBarWeb()), | ||
const NavigationBar = core.registerPlugin("NavigationBar", { | ||
web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.NavigationBarWeb()), | ||
}); | ||
@@ -10,9 +10,8 @@ | ||
async setNavigationBarColor(options) { | ||
console.log('Cannot setNavigationBarColor on web', options); | ||
console.log("Cannot setNavigationBarColor on web", options); | ||
return; | ||
} | ||
; | ||
async getNavigationBarColor() { | ||
console.log('Cannot getNavigationBarColor on web'); | ||
return { color: '#000000' }; | ||
console.log("Cannot getNavigationBarColor on web"); | ||
return { color: "#000000" }; | ||
} | ||
@@ -28,4 +27,2 @@ } | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
return exports; | ||
@@ -32,0 +29,0 @@ |
{ | ||
"name": "@capgo/capacitor-navigation-bar", | ||
"private": false, | ||
"version": "0.0.4", | ||
"version": "4.0.0", | ||
"description": "Set navigation bar color for android lolipop and higher", | ||
@@ -41,6 +40,6 @@ "main": "dist/plugin.cjs.js", | ||
"eslint": "eslint . --ext ts", | ||
"prettier": "prettier \"**/*.{css,html,ts,js,java}\"", | ||
"prettier": "prettier --config .prettierrc.js \"**/*.{css,html,ts,js,java}\"", | ||
"swiftlint": "node-swiftlint", | ||
"docgen": "docgen --api NavigationBarPlugin --output-readme README.md --output-json dist/docs.json", | ||
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js", | ||
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs", | ||
"clean": "rimraf ./dist", | ||
@@ -51,19 +50,24 @@ "watch": "tsc --watch", | ||
"devDependencies": { | ||
"@capacitor/android": "^4.0.0", | ||
"@capacitor/core": "^4.0.0", | ||
"@capacitor/docgen": "^0.0.18", | ||
"@capacitor/ios": "^4.0.0", | ||
"@capacitor/android": "^5.0.3", | ||
"@capacitor/cli": "^5.0.3", | ||
"@capacitor/core": "^5.0.3", | ||
"@capacitor/docgen": "^0.2.1", | ||
"@capacitor/ios": "^5.0.3", | ||
"@ionic/eslint-config": "^0.3.0", | ||
"@ionic/prettier-config": "^1.0.1", | ||
"@ionic/prettier-config": "^3.0.0", | ||
"@ionic/swiftlint-config": "^1.1.2", | ||
"eslint": "^7.11.0", | ||
"prettier": "~2.3.0", | ||
"prettier-plugin-java": "~1.0.2", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.32.0", | ||
"swiftlint": "^1.0.1", | ||
"typescript": "~4.1.5" | ||
"@typescript-eslint/eslint-plugin": "^5.59.7", | ||
"@typescript-eslint/parser": "^5.59.7", | ||
"eslint": "^8.41.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"husky": "^8.0.3", | ||
"prettier": "^2.8.8", | ||
"prettier-plugin-java": "^2.1.0", | ||
"rimraf": "^5.0.1", | ||
"rollup": "^3.23.0", | ||
"swiftlint": "^1.0.2", | ||
"typescript": "^5.0.4" | ||
}, | ||
"peerDependencies": { | ||
"@capacitor/core": "^4.0.0" | ||
"@capacitor/core": "^5.0.0" | ||
}, | ||
@@ -70,0 +74,0 @@ "prettier": "@ionic/prettier-config", |
@@ -33,3 +33,3 @@ <a href="https://capgo.app/"><img src='https://raw.githubusercontent.com/Cap-go/capgo/main/assets/capgo_banner.png' alt='Capgo - Instant updates for capacitor'/></a> | ||
```typescript | ||
setNavigationBarColor(options: { color: string; }) => Promise<void> | ||
setNavigationBarColor(options: { color: string; }) => any | ||
``` | ||
@@ -41,2 +41,4 @@ | ||
**Returns:** <code>any</code> | ||
-------------------- | ||
@@ -48,6 +50,6 @@ | ||
```typescript | ||
getNavigationBarColor() => Promise<{ color: string; }> | ||
getNavigationBarColor() => any | ||
``` | ||
**Returns:** <code>Promise<{ color: string; }></code> | ||
**Returns:** <code>any</code> | ||
@@ -54,0 +56,0 @@ -------------------- |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
26
187
1
56
19418
19