@ionic-native/keyboard
Advanced tools
Comparing version 3.0.0 to 3.1.0-alpha.1
@@ -7,3 +7,3 @@ import { Observable } from 'rxjs/Observable'; | ||
* ```typescript | ||
* import { Keyboard } from 'ionic-native'; | ||
* import { Keyboard } from '@ionic-native/keyboard'; | ||
* | ||
@@ -19,11 +19,11 @@ * | ||
*/ | ||
static hideKeyboardAccessoryBar(hide: boolean): void; | ||
hideKeyboardAccessoryBar(hide: boolean): void; | ||
/** | ||
* Force keyboard to be shown. | ||
*/ | ||
static show(): void; | ||
show(): void; | ||
/** | ||
* Close the keyboard if open. | ||
*/ | ||
static close(): void; | ||
close(): void; | ||
/** | ||
@@ -33,3 +33,3 @@ * Prevents the native UIScrollView from moving when an input is focused. | ||
*/ | ||
static disableScroll(disable: boolean): void; | ||
disableScroll(disable: boolean): void; | ||
/** | ||
@@ -39,3 +39,3 @@ * Creates an observable that notifies you when the keyboard is shown. Unsubscribe to observable to cancel event watch. | ||
*/ | ||
static onKeyboardShow(): Observable<any>; | ||
onKeyboardShow(): Observable<any>; | ||
/** | ||
@@ -45,3 +45,3 @@ * Creates an observable that notifies you when the keyboard is hidden. Unsubscribe to observable to cancel event watch. | ||
*/ | ||
static onKeyboardHide(): Observable<any>; | ||
onKeyboardHide(): Observable<any>; | ||
} |
33
index.js
@@ -7,2 +7,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
}; | ||
import { Injectable } from '@angular/core'; | ||
import { Cordova, Plugin } from '@ionic-native/core'; | ||
@@ -14,3 +15,3 @@ /** | ||
* ```typescript | ||
* import { Keyboard } from 'ionic-native'; | ||
* import { Keyboard } from '@ionic-native/keyboard'; | ||
* | ||
@@ -28,11 +29,11 @@ * | ||
*/ | ||
Keyboard.hideKeyboardAccessoryBar = function (hide) { }; | ||
Keyboard.prototype.hideKeyboardAccessoryBar = function (hide) { }; | ||
/** | ||
* Force keyboard to be shown. | ||
*/ | ||
Keyboard.show = function () { }; | ||
Keyboard.prototype.show = function () { }; | ||
/** | ||
* Close the keyboard if open. | ||
*/ | ||
Keyboard.close = function () { }; | ||
Keyboard.prototype.close = function () { }; | ||
/** | ||
@@ -42,3 +43,3 @@ * Prevents the native UIScrollView from moving when an input is focused. | ||
*/ | ||
Keyboard.disableScroll = function (disable) { }; | ||
Keyboard.prototype.disableScroll = function (disable) { }; | ||
/** | ||
@@ -48,3 +49,3 @@ * Creates an observable that notifies you when the keyboard is shown. Unsubscribe to observable to cancel event watch. | ||
*/ | ||
Keyboard.onKeyboardShow = function () { return; }; | ||
Keyboard.prototype.onKeyboardShow = function () { return; }; | ||
/** | ||
@@ -54,6 +55,11 @@ * Creates an observable that notifies you when the keyboard is hidden. Unsubscribe to observable to cancel event watch. | ||
*/ | ||
Keyboard.onKeyboardHide = function () { return; }; | ||
Keyboard.prototype.onKeyboardHide = function () { return; }; | ||
Keyboard.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
Keyboard.ctorParameters = function () { return []; }; | ||
__decorate([ | ||
Cordova({ sync: true }) | ||
], Keyboard, "hideKeyboardAccessoryBar", null); | ||
], Keyboard.prototype, "hideKeyboardAccessoryBar", null); | ||
__decorate([ | ||
@@ -64,3 +70,3 @@ Cordova({ | ||
}) | ||
], Keyboard, "show", null); | ||
], Keyboard.prototype, "show", null); | ||
__decorate([ | ||
@@ -71,3 +77,3 @@ Cordova({ | ||
}) | ||
], Keyboard, "close", null); | ||
], Keyboard.prototype, "close", null); | ||
__decorate([ | ||
@@ -78,3 +84,3 @@ Cordova({ | ||
}) | ||
], Keyboard, "disableScroll", null); | ||
], Keyboard.prototype, "disableScroll", null); | ||
__decorate([ | ||
@@ -86,3 +92,3 @@ Cordova({ | ||
}) | ||
], Keyboard, "onKeyboardShow", null); | ||
], Keyboard.prototype, "onKeyboardShow", null); | ||
__decorate([ | ||
@@ -94,3 +100,3 @@ Cordova({ | ||
}) | ||
], Keyboard, "onKeyboardHide", null); | ||
], Keyboard.prototype, "onKeyboardHide", null); | ||
Keyboard = __decorate([ | ||
@@ -106,2 +112,1 @@ Plugin({ | ||
}()); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@ionic-native/keyboard", | ||
"version": "3.0.0", | ||
"version": "3.1.0-alpha.1", | ||
"description": "Ionic Native - Native plugins for ionic apps", | ||
@@ -9,6 +9,6 @@ "module": "index.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@ionic-native/core": "3.0.0" | ||
}, | ||
"peerDependencies": { | ||
"@angular/core": "2.2.1", | ||
"@ionic-native/core": "3.1.0-alpha.1", | ||
"@ionic-native/utils": "3.1.0-alpha.1", | ||
"rxjs": "5.0.0-beta.12" | ||
@@ -19,3 +19,6 @@ }, | ||
"url": "https://github.com/driftyco/ionic-native.git" | ||
}, | ||
"scripts": { | ||
"postinstall": "node -e \"require('@ionic-native/utils').install(require('./plugin-config.json'))\"" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9425
5
146
4
2
1
1
+ Added@angular/core@2.2.1(transitive)
+ Added@ionic-native/core@3.1.0-alpha.1(transitive)
+ Addedzone.js@0.6.26(transitive)
- Removed@ionic-native/core@3.0.0
- Removed@ionic-native/core@3.0.0(transitive)