@totalpave/cordova-plugin-insets 0.3.1 → 0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@totalpave/cordova-plugin-insets",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Cordova Android Plugin to receive native information regarding the unsafe area insets.",
5
5
  "main": "www/insets.js",
6
6
  "types": "www/api.d.ts",
@@ -26,15 +26,15 @@
26
26
  },
27
27
  "homepage": "https://github.com/totalpaveinc/cordova-plugin-insets#readme",
28
28
  "devDependencies": {
29
- "@rollup/plugin-commonjs": "25.0.7",
30
- "@rollup/plugin-node-resolve": "15.2.3",
29
+ "@rollup/plugin-commonjs": "28.0.0",
30
+ "@rollup/plugin-node-resolve": "15.3.0",
31
31
  "@types/cordova": "11.0.3",
32
- "ejs": "3.1.9",
33
- "rollup": "4.9.2",
32
+ "ejs": "3.1.10",
33
+ "rollup": "4.22.4",
34
34
  "rollup-plugin-progress": "1.1.2",
35
35
  "rollup-plugin-typescript2": "0.36.0",
36
36
  "ts-node": "10.9.2",
37
- "typescript": "5.3.3"
37
+ "typescript": "5.5.4"
38
38
  },
39
39
  "engines": {
40
40
  "cordovaDependencies": {
@@ -44,6 +44,6 @@
44
44
  }
45
45
  },
46
46
  "dependencies": {
47
- "tslib": "2.6.2"
47
+ "tslib": "2.7.0"
48
48
  }
49
49
  }
package/plugin.xml CHANGED
@@ -2,7 +2,7 @@
2
2
  <plugin
3
3
  xmlns="http://apache.org/cordova/ns/plugins/1.0"
4
4
  id="@totalpave/cordova-plugin-insets"
5
- version="0.3.1"
5
+ version="0.3.2"
6
6
  >
7
7
  <name>cordova-plugin-insets</name>
8
8
  <description>Cordova Android Plugin to receive native information regarding the unsafe area insets</description>
@@ -0,0 +1,22 @@
1
+ /**
2
+ * An enumeration of Inset Types.
3
+ * These are mapped to android's native WindowInsetsCompat.TYPE
4
+ *
5
+ * See https://developer.android.com/reference/androidx/core/view/WindowInsetsCompat.Type
6
+ * for more information.
7
+ *
8
+ * Note that the native constant values is an implementation detail,
9
+ * therefore the values here isn't a direct mapping, but will be resolved
10
+ * appropriately.
11
+ */
12
+ export declare enum InsetType {
13
+ CAPTION_BAR = 1,
14
+ DISPLAY_CUTOUT = 2,
15
+ IME = 4,
16
+ MANDATORY_SYSTEM_GESTURES = 8,
17
+ NAVIGATION_BARS = 16,
18
+ STATUS_BARS = 32,
19
+ SYSTEM_BARS = 64,
20
+ SYSTEM_GESTURES = 128,
21
+ TAPPABLE_ELEMENT = 256
22
+ }
package/www/Insets.d.ts CHANGED
@@ -23,6 +23,7 @@ declare class InsetsAPI implements IInsetsAPI {
23
23
  private initPromise;
24
24
  private listeners;
25
25
  private insets;
26
+ setMask(mask: number): Promise<IInsets>;
26
27
  /**
27
28
  * Initializes javascript side of the plugin.
28
29
  *