@adriansteffan/reactive 0.1.15 → 0.1.16
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-jEMvaWXA.js → mod-CnN_S4je.js} +40 -36
- package/dist/mod.d.ts +3 -1
- package/dist/reactive.es.js +1 -1
- package/dist/reactive.umd.js +1 -1
- package/dist/{web-CRSMW9BX.js → web-BcQhbLeU.js} +1 -1
- package/dist/{web-CeblAJYh.js → web-VTeCNj5V.js} +1 -1
- package/package.json +1 -1
- package/src/components/enterfullscreen.tsx +6 -0
|
@@ -78637,7 +78637,7 @@ var Ym;
|
|
|
78637
78637
|
i.UTF8 = "utf8", i.ASCII = "ascii", i.UTF16 = "utf16";
|
|
78638
78638
|
})(Ym || (Ym = {}));
|
|
78639
78639
|
const Ea = wu("Filesystem", {
|
|
78640
|
-
web: () => import("./web-
|
|
78640
|
+
web: () => import("./web-VTeCNj5V.js").then((i) => new i.FilesystemWeb())
|
|
78641
78641
|
});
|
|
78642
78642
|
vi("Upload", async (i, e, t, s) => {
|
|
78643
78643
|
const r = i.sessionID || `sim_${Date.now()}_${Math.floor(Lt(0, 2176782336)).toString(36)}`, n = VV({
|
|
@@ -78895,58 +78895,62 @@ var iw;
|
|
|
78895
78895
|
i.None = "NONE", i.Slide = "SLIDE", i.Fade = "FADE";
|
|
78896
78896
|
})(iw || (iw = {}));
|
|
78897
78897
|
const t7 = wu("StatusBar"), s7 = wu("ImmersiveMode", {
|
|
78898
|
-
web: () => import("./web-
|
|
78898
|
+
web: () => import("./web-BcQhbLeU.js").then((i) => new i.ImmersiveModeWeb())
|
|
78899
78899
|
});
|
|
78900
78900
|
Ai("EnterFullscreen", "session");
|
|
78901
78901
|
vi("EnterFullscreen", xu, {});
|
|
78902
78902
|
function rme({
|
|
78903
78903
|
content: i,
|
|
78904
78904
|
buttonText: e,
|
|
78905
|
-
|
|
78906
|
-
|
|
78907
|
-
|
|
78908
|
-
|
|
78905
|
+
className: t,
|
|
78906
|
+
containerClass: s,
|
|
78907
|
+
next: r,
|
|
78908
|
+
data: n,
|
|
78909
|
+
updateStore: a,
|
|
78910
|
+
delayMs: o = 0
|
|
78909
78911
|
}) {
|
|
78910
|
-
const
|
|
78912
|
+
const l = /* @__PURE__ */ A.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
78911
78913
|
!!i && i,
|
|
78912
78914
|
!i && /* @__PURE__ */ A.jsx("p", { className: "", children: "Please click the Button below to enter Fullscreen mode." })
|
|
78913
|
-
] }), [
|
|
78914
|
-
|
|
78915
|
-
}, []),
|
|
78916
|
-
document.removeEventListener("fullscreenchange",
|
|
78917
|
-
}, [
|
|
78918
|
-
|
|
78919
|
-
|
|
78920
|
-
},
|
|
78921
|
-
}, [
|
|
78922
|
-
if (!
|
|
78923
|
-
const
|
|
78924
|
-
|
|
78925
|
-
}, [
|
|
78926
|
-
|
|
78927
|
-
}, [
|
|
78928
|
-
|
|
78929
|
-
const
|
|
78930
|
-
if (Ed() === "mobile" && Fa.getPlatform() === "android" && (t7.hide(), s7.enable()),
|
|
78915
|
+
] }), [u, h] = rt(!1), c = fe(!1), d = fe(null), f = Xe(() => {
|
|
78916
|
+
d.current && (clearTimeout(d.current), d.current = null);
|
|
78917
|
+
}, []), y = Xe(() => {
|
|
78918
|
+
document.removeEventListener("fullscreenchange", m), document.removeEventListener("webkitfullscreenchange", m), document.removeEventListener("mozfullscreenchange", m), document.removeEventListener("MSFullscreenChange", m), f(), c.current = !1;
|
|
78919
|
+
}, [f]), v = Xe(() => {
|
|
78920
|
+
f(), h(!0), d.current = setTimeout(() => {
|
|
78921
|
+
d.current = null, r({});
|
|
78922
|
+
}, o);
|
|
78923
|
+
}, [r, o, f]), m = Xe(() => {
|
|
78924
|
+
if (!c.current) return;
|
|
78925
|
+
const x = Ul();
|
|
78926
|
+
y(), x ? v() : h(!1);
|
|
78927
|
+
}, [v, y]), g = Xe(() => {
|
|
78928
|
+
y(), c.current = !0, document.addEventListener("fullscreenchange", m), document.addEventListener("webkitfullscreenchange", m), document.addEventListener("mozfullscreenchange", m), document.addEventListener("MSFullscreenChange", m);
|
|
78929
|
+
}, [m, y]), b = Xe(async () => {
|
|
78930
|
+
h(!0), y();
|
|
78931
|
+
const x = document.documentElement;
|
|
78932
|
+
if (Ed() === "mobile" && Fa.getPlatform() === "android" && (t7.hide(), s7.enable()), x.requestFullscreen)
|
|
78931
78933
|
try {
|
|
78932
|
-
await
|
|
78934
|
+
await x.requestFullscreen(), v();
|
|
78933
78935
|
return;
|
|
78934
|
-
} catch (
|
|
78935
|
-
console.error("Fullscreen request failed:",
|
|
78936
|
+
} catch (T) {
|
|
78937
|
+
console.error("Fullscreen request failed:", T);
|
|
78936
78938
|
return;
|
|
78937
78939
|
}
|
|
78938
|
-
|
|
78939
|
-
}, [
|
|
78940
|
+
x.mozRequestFullScreen ? (x.mozRequestFullScreen(), g()) : x.webkitRequestFullscreen ? (x.webkitRequestFullscreen(), g()) : x.msRequestFullscreen ? (x.msRequestFullscreen(), g()) : console.warn("Fullscreen API is not supported by this browser.");
|
|
78941
|
+
}, [v, g, y]);
|
|
78940
78942
|
return lt(() => () => {
|
|
78941
|
-
|
|
78942
|
-
}, [
|
|
78943
|
+
y();
|
|
78944
|
+
}, [y]), u ? null : /* @__PURE__ */ A.jsx(
|
|
78943
78945
|
wv,
|
|
78944
78946
|
{
|
|
78945
|
-
data:
|
|
78946
|
-
updateStore:
|
|
78947
|
-
|
|
78947
|
+
data: n,
|
|
78948
|
+
updateStore: a,
|
|
78949
|
+
className: t,
|
|
78950
|
+
containerClass: s,
|
|
78951
|
+
content: l,
|
|
78948
78952
|
buttonText: e ?? "Enter Fullscreen Mode",
|
|
78949
|
-
next:
|
|
78953
|
+
next: b
|
|
78950
78954
|
}
|
|
78951
78955
|
);
|
|
78952
78956
|
}
|
package/dist/mod.d.ts
CHANGED
|
@@ -140,10 +140,12 @@ declare interface DeviceInfo {
|
|
|
140
140
|
|
|
141
141
|
export declare type DimensionSpec = UniformSpec | NormalSpec | PoissonSpec;
|
|
142
142
|
|
|
143
|
-
export declare function EnterFullscreen({ content, buttonText, next, data, updateStore, delayMs, }: {
|
|
143
|
+
export declare function EnterFullscreen({ content, buttonText, className, containerClass, next, data, updateStore, delayMs, }: {
|
|
144
144
|
prolificCode?: string;
|
|
145
145
|
content?: default_2.ReactNode;
|
|
146
146
|
buttonText?: string;
|
|
147
|
+
className?: string;
|
|
148
|
+
containerClass?: string;
|
|
147
149
|
delayMs?: number;
|
|
148
150
|
} & BaseComponentProps): JSX_2.Element | null;
|
|
149
151
|
|
package/dist/reactive.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as e, C as t, a as i, c as r, d as n, e as o, f as l, Y as m, z as u, M as c, P as p, g as P, h as g, Q as d, R as C, i as D, j as T, F as x, T as h, k, l as E, U as F, X as S, m as f, n as v, o as B, p as R, q as b, r as y, s as I, t as M, u as U, v as w, w as K, x as q, y as A, A as Q, B as Z, D as j, G as z, I as G, J as H, K as J, L, N, O, S as V, V as X, Z as Y, _, $, a0 as W, a1 as aa, a2 as sa, a3 as ea, a4 as ta, a5 as ia, a6 as ra, a7 as na, a8 as oa, a9 as la, aa as ma, ab as ua } from "./mod-
|
|
1
|
+
import { H as e, C as t, a as i, c as r, d as n, e as o, f as l, Y as m, z as u, M as c, P as p, g as P, h as g, Q as d, R as C, i as D, j as T, F as x, T as h, k, l as E, U as F, X as S, m as f, n as v, o as B, p as R, q as b, r as y, s as I, t as M, u as U, v as w, w as K, x as q, y as A, A as Q, B as Z, D as j, G as z, I as G, J as H, K as J, L, N, O, S as V, V as X, Z as Y, _, $, a0 as W, a1 as aa, a2 as sa, a3 as ea, a4 as ta, a5 as ia, a6 as ra, a7 as na, a8 as oa, a9 as la, aa as ma, ab as ua } from "./mod-CnN_S4je.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Bounce,
|
|
4
4
|
t as CanvasBlock,
|