@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.
@@ -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-CeblAJYh.js").then((i) => new i.FilesystemWeb())
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-CRSMW9BX.js").then((i) => new i.ImmersiveModeWeb())
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
- next: t,
78906
- data: s,
78907
- updateStore: r,
78908
- delayMs: n = 0
78905
+ className: t,
78906
+ containerClass: s,
78907
+ next: r,
78908
+ data: n,
78909
+ updateStore: a,
78910
+ delayMs: o = 0
78909
78911
  }) {
78910
- const a = /* @__PURE__ */ A.jsxs("div", { className: "flex flex-col items-center", children: [
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
- ] }), [o, l] = rt(!1), u = fe(!1), h = fe(null), c = Xe(() => {
78914
- h.current && (clearTimeout(h.current), h.current = null);
78915
- }, []), d = Xe(() => {
78916
- document.removeEventListener("fullscreenchange", y), document.removeEventListener("webkitfullscreenchange", y), document.removeEventListener("mozfullscreenchange", y), document.removeEventListener("MSFullscreenChange", y), c(), u.current = !1;
78917
- }, [c]), f = Xe(() => {
78918
- c(), l(!0), h.current = setTimeout(() => {
78919
- h.current = null, t({});
78920
- }, n);
78921
- }, [t, n, c]), y = Xe(() => {
78922
- if (!u.current) return;
78923
- const g = Ul();
78924
- d(), g ? f() : l(!1);
78925
- }, [f, d]), v = Xe(() => {
78926
- d(), u.current = !0, document.addEventListener("fullscreenchange", y), document.addEventListener("webkitfullscreenchange", y), document.addEventListener("mozfullscreenchange", y), document.addEventListener("MSFullscreenChange", y);
78927
- }, [y, d]), m = Xe(async () => {
78928
- l(!0), d();
78929
- const g = document.documentElement;
78930
- if (Ed() === "mobile" && Fa.getPlatform() === "android" && (t7.hide(), s7.enable()), g.requestFullscreen)
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 g.requestFullscreen(), f();
78934
+ await x.requestFullscreen(), v();
78933
78935
  return;
78934
- } catch (b) {
78935
- console.error("Fullscreen request failed:", b);
78936
+ } catch (T) {
78937
+ console.error("Fullscreen request failed:", T);
78936
78938
  return;
78937
78939
  }
78938
- g.mozRequestFullScreen ? (g.mozRequestFullScreen(), v()) : g.webkitRequestFullscreen ? (g.webkitRequestFullscreen(), v()) : g.msRequestFullscreen ? (g.msRequestFullscreen(), v()) : console.warn("Fullscreen API is not supported by this browser.");
78939
- }, [f, v, d]);
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
- d();
78942
- }, [d]), o ? null : /* @__PURE__ */ A.jsx(
78943
+ y();
78944
+ }, [y]), u ? null : /* @__PURE__ */ A.jsx(
78943
78945
  wv,
78944
78946
  {
78945
- data: s,
78946
- updateStore: r,
78947
- content: a,
78947
+ data: n,
78948
+ updateStore: a,
78949
+ className: t,
78950
+ containerClass: s,
78951
+ content: l,
78948
78952
  buttonText: e ?? "Enter Fullscreen Mode",
78949
- next: m
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
 
@@ -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-jEMvaWXA.js";
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,