@adriansteffan/reactive 0.0.23 → 0.0.24

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.
@@ -0,0 +1,12 @@
1
+ import { W as e } from "./mod-DFT88PVZ.js";
2
+ class s extends e {
3
+ async enable() {
4
+ console.log("Immersive mode is only available on Android");
5
+ }
6
+ async disable() {
7
+ console.log("Immersive mode is only available on Android");
8
+ }
9
+ }
10
+ export {
11
+ s as ImmersiveModeWeb
12
+ };
@@ -1,4 +1,4 @@
1
- import { W as P, b as x, E } from "./mod-BdnVCIUb.js";
1
+ import { W as P, b as x, E } from "./mod-DFT88PVZ.js";
2
2
  function m(w) {
3
3
  const e = w.split("/").filter((t) => t !== "."), r = [];
4
4
  return e.forEach((t) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adriansteffan/reactive",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -31,11 +31,11 @@
31
31
  "url": "https://github.com/adriansteffan/reactive/issues"
32
32
  },
33
33
  "dependencies": {
34
+ "@adriansteffan/immersive-mode": "^0.0.1",
34
35
  "@capacitor/core": "^7.0.1",
35
36
  "@capacitor/filesystem": "^7.0.0",
36
37
  "@capacitor/share": "^7.0.0",
37
38
  "@capacitor/status-bar": "^7.0.0",
38
- "@hugotomazi/capacitor-navigation-bar": "https://github.com/NYPL/capacitor-navigation-bar/releases/download/v4.1.0-fix.1/hugotomazi-capacitor-navigation-bar-4.1.0-fix.1.tgz",
39
39
  "@tanstack/react-query": "^5.61.3",
40
40
  "@tanstack/react-query-devtools": "^5.61.3",
41
41
  "@zip.js/zip.js": "^2.7.53",
@@ -2,14 +2,14 @@ import { BaseComponentProps } from '../utils/common';
2
2
  import Text from '../components/text';
3
3
 
4
4
  import { StatusBar } from '@capacitor/status-bar';
5
- import { NavigationBar } from '@hugotomazi/capacitor-navigation-bar';
5
+ import { ImmersiveMode } from '@adriansteffan/immersive-mode';
6
6
 
7
7
 
8
8
  function enterFullscreen(element: any) {
9
9
 
10
10
  // Android
11
11
  StatusBar.hide();
12
- NavigationBar.hide();
12
+ ImmersiveMode.enable();
13
13
 
14
14
  if (element.requestFullscreen) {
15
15
  element.requestFullscreen();
@@ -1,12 +1,12 @@
1
1
  import { BaseComponentProps } from '../utils/common';
2
2
  import { useEffect } from 'react';
3
3
  import { StatusBar } from '@capacitor/status-bar';
4
- import { NavigationBar } from '@hugotomazi/capacitor-navigation-bar';
4
+ import { ImmersiveMode } from '@adriansteffan/immersive-mode';
5
5
 
6
6
  function exitFullscreen() {
7
7
 
8
8
  StatusBar.show();
9
- NavigationBar.show();
9
+ ImmersiveMode.disable();
10
10
 
11
11
  if (document.exitFullscreen) {
12
12
  document.exitFullscreen();
package/src/mod.tsx CHANGED
@@ -14,4 +14,3 @@ import { BaseComponentProps, ExperimentConfig } from './utils/common';
14
14
  export { Text, ProlificEnding, MicCheck, Quest, Upload, EnterFullscreen, ExitFullscreen, Experiment, ExperimentProvider, PlainInput};
15
15
  export type { BaseComponentProps, ExperimentConfig };
16
16
  export * from './utils/common';
17
-
@@ -1,31 +0,0 @@
1
- import { W as e } from "./mod-BdnVCIUb.js";
2
- class s extends e {
3
- async show() {
4
- return new Promise((o) => {
5
- console.log("Navigation Bar Showed!"), o();
6
- });
7
- }
8
- async hide() {
9
- return new Promise((o) => {
10
- console.log("Navigation Bar Hided!"), o();
11
- });
12
- }
13
- async setColor(o) {
14
- return new Promise((r) => {
15
- console.log(`Navigation Bar color changed to ${o.color ? o.color : "#FFFFFF"} : Dark Buttons: ${o.darkButtons ? "YES" : "NO"}`), r();
16
- });
17
- }
18
- async setTransparency(o) {
19
- return new Promise((r) => {
20
- console.log(`Navigation Bar is transparent: ${o.isTransparent ? "YES" : "NO"}`), r();
21
- });
22
- }
23
- async getColor() {
24
- return new Promise((o) => {
25
- o({ color: "#FFFFFF" });
26
- });
27
- }
28
- }
29
- export {
30
- s as NavigationBarWeb
31
- };