app-studio 0.8.5 → 0.8.7
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/native/index.d.mts +5 -5
- package/dist/native/index.d.ts +5 -5
- package/dist/web/app-studio.umd.production.min.global.js +8 -14
- package/dist/web/app-studio.umd.production.min.global.js.map +1 -1
- package/dist/web/index.cjs +4 -4
- package/dist/web/index.cjs.map +1 -1
- package/dist/web/index.d.mts +79 -13
- package/dist/web/index.d.ts +79 -13
- package/dist/web/index.js +4 -4
- package/dist/web/index.js.map +1 -1
- package/package.json +16 -21
package/dist/web/index.cjs
CHANGED
|
@@ -5051,7 +5051,7 @@ var WindowSizeProvider = ({
|
|
|
5051
5051
|
width: win?.innerWidth || 0,
|
|
5052
5052
|
height: win?.innerHeight || 0
|
|
5053
5053
|
});
|
|
5054
|
-
const timeoutRef = (0, import_react12.useRef)();
|
|
5054
|
+
const timeoutRef = (0, import_react12.useRef)(void 0);
|
|
5055
5055
|
(0, import_react12.useEffect)(() => {
|
|
5056
5056
|
if (!win) return;
|
|
5057
5057
|
const handleResize = () => {
|
|
@@ -5427,7 +5427,7 @@ var useScroll = ({
|
|
|
5427
5427
|
elementProgress: 0
|
|
5428
5428
|
});
|
|
5429
5429
|
const lastUpdateRef = (0, import_react22.useRef)(0);
|
|
5430
|
-
const frameRef = (0, import_react22.useRef)();
|
|
5430
|
+
const frameRef = (0, import_react22.useRef)(void 0);
|
|
5431
5431
|
const ticking = (0, import_react22.useRef)(false);
|
|
5432
5432
|
const getContext = (0, import_react22.useCallback)(() => {
|
|
5433
5433
|
const targetEl = container?.current ?? null;
|
|
@@ -5588,7 +5588,7 @@ var useSmoothScroll = (targetWindow) => {
|
|
|
5588
5588
|
var useInfiniteScroll = (callback, options = DEFAULT_INFINITE_SCROLL_OPTIONS) => {
|
|
5589
5589
|
const [sentinel, setSentinel] = (0, import_react22.useState)(null);
|
|
5590
5590
|
const callbackRef = (0, import_react22.useRef)(callback);
|
|
5591
|
-
const timeoutRef = (0, import_react22.useRef)();
|
|
5591
|
+
const timeoutRef = (0, import_react22.useRef)(void 0);
|
|
5592
5592
|
(0, import_react22.useEffect)(() => {
|
|
5593
5593
|
callbackRef.current = callback;
|
|
5594
5594
|
}, [callback]);
|
|
@@ -5635,7 +5635,7 @@ var useScrollDirection = (threshold = 5, targetWindow) => {
|
|
|
5635
5635
|
const [scrollDirection, setScrollDirection] = (0, import_react22.useState)("up");
|
|
5636
5636
|
const lastScrollY = (0, import_react22.useRef)(0);
|
|
5637
5637
|
const lastDirection = (0, import_react22.useRef)("up");
|
|
5638
|
-
const animationFrame = (0, import_react22.useRef)();
|
|
5638
|
+
const animationFrame = (0, import_react22.useRef)(void 0);
|
|
5639
5639
|
const ticking = (0, import_react22.useRef)(false);
|
|
5640
5640
|
const updateDirection = (0, import_react22.useCallback)(() => {
|
|
5641
5641
|
const win = targetWindow || (typeof window !== "undefined" ? window : null);
|