@adriansteffan/reactive 0.0.22 → 0.0.23
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/dist/{mod-DgcCRxWo.js → mod-BdnVCIUb.js} +3109 -3093
- package/dist/reactive.es.js +1 -1
- package/dist/reactive.umd.js +23 -23
- package/dist/{web-Dtpv_Ihb.js → web-CT23TBmf.js} +1 -1
- package/dist/web-DTNatzmE.js +31 -0
- package/package.json +3 -1
- package/src/components/enterfullscreen.tsx +9 -0
- package/src/components/exitfullscreen.tsx +6 -0
- package/template/README.md +2 -0
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adriansteffan/reactive",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -34,6 +34,8 @@
|
|
|
34
34
|
"@capacitor/core": "^7.0.1",
|
|
35
35
|
"@capacitor/filesystem": "^7.0.0",
|
|
36
36
|
"@capacitor/share": "^7.0.0",
|
|
37
|
+
"@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",
|
|
37
39
|
"@tanstack/react-query": "^5.61.3",
|
|
38
40
|
"@tanstack/react-query-devtools": "^5.61.3",
|
|
39
41
|
"@zip.js/zip.js": "^2.7.53",
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { BaseComponentProps } from '../utils/common';
|
|
2
2
|
import Text from '../components/text';
|
|
3
3
|
|
|
4
|
+
import { StatusBar } from '@capacitor/status-bar';
|
|
5
|
+
import { NavigationBar } from '@hugotomazi/capacitor-navigation-bar';
|
|
6
|
+
|
|
7
|
+
|
|
4
8
|
function enterFullscreen(element: any) {
|
|
9
|
+
|
|
10
|
+
// Android
|
|
11
|
+
StatusBar.hide();
|
|
12
|
+
NavigationBar.hide();
|
|
13
|
+
|
|
5
14
|
if (element.requestFullscreen) {
|
|
6
15
|
element.requestFullscreen();
|
|
7
16
|
} else if (element.mozRequestFullScreen) {
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { BaseComponentProps } from '../utils/common';
|
|
2
2
|
import { useEffect } from 'react';
|
|
3
|
+
import { StatusBar } from '@capacitor/status-bar';
|
|
4
|
+
import { NavigationBar } from '@hugotomazi/capacitor-navigation-bar';
|
|
3
5
|
|
|
4
6
|
function exitFullscreen() {
|
|
7
|
+
|
|
8
|
+
StatusBar.show();
|
|
9
|
+
NavigationBar.show();
|
|
10
|
+
|
|
5
11
|
if (document.exitFullscreen) {
|
|
6
12
|
document.exitFullscreen();
|
|
7
13
|
} else if ((document as any).mozCancelFullScreen) {
|
package/template/README.md
CHANGED
|
@@ -178,6 +178,8 @@ For ease of use, it makes sense to run the web version for most of the developme
|
|
|
178
178
|
|
|
179
179
|
To build an iOS app containing your experiment, you will need a machine running MacOS and an installation of [XCode](https://apps.apple.com/us/app/xcode/id497799835). Furthermore, you will need to install [CocoaPods](https://cocoapods.org/), which is most easily installed with [Homebrew](https://brew.sh/).
|
|
180
180
|
|
|
181
|
+
Temporary uglyness: Due to a bug in the dependency in for the capacitor fullscreening plugin, we need to manually add a file if we want to build for iOS, described (in the related Github issue)[https://github.com/hugotomazi/navigation-bar/issues/31#issuecomment-2687412929]. Here's to hope that that will be fixed in the near future.
|
|
182
|
+
|
|
181
183
|
To set up the iOS project, run
|
|
182
184
|
|
|
183
185
|
```
|