@incodetech/welcome 1.85.0-20251106212758.0 → 1.85.0-20251106221029.0
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.
|
@@ -16,7 +16,7 @@ export declare const useSessionState: (initialState: unknown) => any[];
|
|
|
16
16
|
export declare function usePermissions(): readonly [boolean, React.Dispatch<React.SetStateAction<boolean>>, boolean];
|
|
17
17
|
export declare function useInterval(callback: () => unknown, delay: number): number;
|
|
18
18
|
export declare function useTimeout(callback: () => unknown, delay: number): void;
|
|
19
|
-
export declare const useResize: (
|
|
19
|
+
export declare const useResize: () => void;
|
|
20
20
|
export declare const isPortrait: () => boolean;
|
|
21
21
|
export declare function useOrientation(): {
|
|
22
22
|
isRotated: boolean;
|
package/dist/onBoarding.mjs
CHANGED
|
@@ -2413,8 +2413,7 @@ const resize = async () => {
|
|
|
2413
2413
|
await sleep(100);
|
|
2414
2414
|
const Le = window.innerWidth * 0.01, Be = window.innerHeight * 0.01;
|
|
2415
2415
|
document.documentElement.style.setProperty("--vw", `${Le}px`), document.documentElement.style.setProperty("--vh", `${Be}px`);
|
|
2416
|
-
}, useResize = (
|
|
2417
|
-
const { isRotated: Be } = useOrientation();
|
|
2416
|
+
}, useResize = () => {
|
|
2418
2417
|
useEventListener(
|
|
2419
2418
|
"resize",
|
|
2420
2419
|
() => {
|
|
@@ -2422,8 +2421,8 @@ const resize = async () => {
|
|
|
2422
2421
|
},
|
|
2423
2422
|
window
|
|
2424
2423
|
), useLayoutEffect(() => {
|
|
2425
|
-
|
|
2426
|
-
}, [
|
|
2424
|
+
resize();
|
|
2425
|
+
}, []);
|
|
2427
2426
|
}, isPortrait = () => {
|
|
2428
2427
|
var Le;
|
|
2429
2428
|
return ((Le = screen.orientation) == null ? void 0 : Le.type.includes("portrait")) || Math.abs(window.orientation) === 0;
|
|
@@ -8375,7 +8374,7 @@ class MlWasmJSApi {
|
|
|
8375
8374
|
);
|
|
8376
8375
|
}
|
|
8377
8376
|
}
|
|
8378
|
-
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-
|
|
8377
|
+
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251106221029.0";
|
|
8379
8378
|
function e$2(Le, Be) {
|
|
8380
8379
|
return function(Ye, tt) {
|
|
8381
8380
|
return Object.prototype.hasOwnProperty.call(Ye, tt);
|
|
@@ -173184,7 +173183,7 @@ const AppProvider = ({ children: Le }) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
|
173184
173183
|
disableUnsupportedBrowserScreen: ft = !1
|
|
173185
173184
|
}) => {
|
|
173186
173185
|
const { isRotated: ht } = useOrientation(), { ready: gt } = useTranslation$1(), { shouldShow: At, onContinue: xt } = useBrowserNotSupported();
|
|
173187
|
-
return useResize(
|
|
173186
|
+
return useResize(), useEffect(() => {
|
|
173188
173187
|
tt && initialize(tt);
|
|
173189
173188
|
}, [tt]), gt ? options.redirectFromUnsupportedBrowsers && At && !ft ? /* @__PURE__ */ jsxRuntimeExports.jsx(BrowserNotSupported, { onContinue: xt, token: tt }) : /* @__PURE__ */ jsxRuntimeExports.jsx(AppProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ReadyToRenderProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(NotificationProvider, { initialValue: { isOpen: !1 }, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
173190
173189
|
Container$f,
|