@multiplatform.one/components 7.77.2 → 7.78.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.
Files changed (76) hide show
  1. package/dist/cjs/Lightbox/MediaControl.cjs +2 -6
  2. package/dist/cjs/Lightbox/MediaControl.native.js +2 -8
  3. package/dist/cjs/Lightbox/MediaControl.native.js.map +1 -1
  4. package/dist/cjs/appShell/TabHost.native.js +1 -0
  5. package/dist/cjs/appShell/TabHost.native.js.map +1 -1
  6. package/dist/cjs/componentColors.cjs +1 -1
  7. package/dist/cjs/componentColors.native.js +1 -1
  8. package/dist/cjs/layouts/page.cjs +0 -4
  9. package/dist/cjs/layouts/page.native.js +0 -4
  10. package/dist/cjs/layouts/page.native.js.map +1 -1
  11. package/dist/cjs/views/ImageGrid.cjs +9 -12
  12. package/dist/cjs/views/ImageGrid.native.js +9 -16
  13. package/dist/cjs/views/ImageGrid.native.js.map +1 -1
  14. package/dist/cjs/views/usePageFlowLoadMore.cjs +83 -0
  15. package/dist/cjs/views/usePageFlowLoadMore.native.js +93 -0
  16. package/dist/cjs/views/usePageFlowLoadMore.native.js.map +1 -0
  17. package/dist/esm/Lightbox/MediaControl.mjs +3 -7
  18. package/dist/esm/Lightbox/MediaControl.mjs.map +1 -1
  19. package/dist/esm/Lightbox/MediaControl.native.js +3 -9
  20. package/dist/esm/Lightbox/MediaControl.native.js.map +1 -1
  21. package/dist/esm/appShell/TabHost.native.js +1 -0
  22. package/dist/esm/appShell/TabHost.native.js.map +1 -1
  23. package/dist/esm/componentColors.mjs +1 -1
  24. package/dist/esm/componentColors.native.js +1 -1
  25. package/dist/esm/layouts/page.mjs +0 -4
  26. package/dist/esm/layouts/page.mjs.map +1 -1
  27. package/dist/esm/layouts/page.native.js +0 -4
  28. package/dist/esm/layouts/page.native.js.map +1 -1
  29. package/dist/esm/views/ImageGrid.mjs +10 -13
  30. package/dist/esm/views/ImageGrid.mjs.map +1 -1
  31. package/dist/esm/views/ImageGrid.native.js +10 -17
  32. package/dist/esm/views/ImageGrid.native.js.map +1 -1
  33. package/dist/esm/views/usePageFlowLoadMore.mjs +57 -0
  34. package/dist/esm/views/usePageFlowLoadMore.mjs.map +1 -0
  35. package/dist/esm/views/usePageFlowLoadMore.native.js +64 -0
  36. package/dist/esm/views/usePageFlowLoadMore.native.js.map +1 -0
  37. package/dist/jsx/Lightbox/MediaControl.mjs +3 -7
  38. package/dist/jsx/Lightbox/MediaControl.mjs.map +1 -1
  39. package/dist/jsx/Lightbox/MediaControl.native.js +2 -8
  40. package/dist/jsx/Lightbox/MediaControl.native.js.map +1 -1
  41. package/dist/jsx/appShell/TabHost.native.js +1 -0
  42. package/dist/jsx/appShell/TabHost.native.js.map +1 -1
  43. package/dist/jsx/componentColors.mjs +1 -1
  44. package/dist/jsx/componentColors.native.js +1 -1
  45. package/dist/jsx/layouts/page.mjs +0 -4
  46. package/dist/jsx/layouts/page.mjs.map +1 -1
  47. package/dist/jsx/layouts/page.native.js +0 -4
  48. package/dist/jsx/layouts/page.native.js.map +1 -1
  49. package/dist/jsx/views/ImageGrid.mjs +10 -13
  50. package/dist/jsx/views/ImageGrid.mjs.map +1 -1
  51. package/dist/jsx/views/ImageGrid.native.js +9 -16
  52. package/dist/jsx/views/ImageGrid.native.js.map +1 -1
  53. package/dist/jsx/views/usePageFlowLoadMore.mjs +57 -0
  54. package/dist/jsx/views/usePageFlowLoadMore.mjs.map +1 -0
  55. package/dist/jsx/views/usePageFlowLoadMore.native.js +93 -0
  56. package/dist/jsx/views/usePageFlowLoadMore.native.js.map +1 -0
  57. package/package.json +9 -9
  58. package/src/Lightbox/Lightbox.spec.tsx +1 -1
  59. package/src/Lightbox/MediaControl.tsx +6 -14
  60. package/src/appShell/TabHost.native.spec.tsx +21 -1
  61. package/src/appShell/TabHost.native.tsx +8 -0
  62. package/src/componentColors.ts +1 -1
  63. package/src/layouts/page.tsx +1 -8
  64. package/src/layouts/pageChrome.phone.spec.tsx +14 -0
  65. package/src/views/ImageGrid.native-press.spec.tsx +172 -0
  66. package/src/views/ImageGrid.tsx +11 -17
  67. package/src/views/usePageFlowLoadMore.ts +79 -0
  68. package/types/Lightbox/MediaControl.d.ts +2 -4
  69. package/types/Lightbox/MediaControl.d.ts.map +1 -1
  70. package/types/appShell/TabHost.native.d.ts +1 -0
  71. package/types/appShell/TabHost.native.d.ts.map +1 -1
  72. package/types/componentColors.d.ts +1 -1
  73. package/types/layouts/page.d.ts.map +1 -1
  74. package/types/views/ImageGrid.d.ts.map +1 -1
  75. package/types/views/usePageFlowLoadMore.d.ts +26 -0
  76. package/types/views/usePageFlowLoadMore.d.ts.map +1 -0
@@ -19,8 +19,9 @@ import {
19
19
  } from "@multiplatform.one/theme";
20
20
  import { useHotkey } from "@tanstack/react-hotkeys";
21
21
  import type { RegisterableHotkey } from "@tanstack/react-hotkeys";
22
- import React, { useCallback, useEffect, useId, useRef, useState } from "react";
22
+ import React, { useCallback, useId, useRef, useState } from "react";
23
23
  import { useTranslation } from "../shared/i18n";
24
+ import { usePageFlowLoadMore } from "./usePageFlowLoadMore";
24
25
  // useWindowDimensions from tamagui, NOT react-native: importing react-native
25
26
  // here pulls react-native-web's CJS inline-style-prefixer into the SSR module
26
27
  // graph, which the SSR runner evaluates as ESM ("exports is not defined").
@@ -429,21 +430,14 @@ export function ImageGrid<T>({
429
430
  hotkeyOpts,
430
431
  );
431
432
 
432
- // Page-flow mode (no explicit height): fire infinite loads when the
433
- // bottom sentinel enters the viewport. IntersectionObserver is web-only;
434
- // native consumers needing infinite scroll pass an explicit `height` so
435
- // the grid owns its own scroll container.
436
- useEffect(() => {
437
- if (height !== undefined || !onLoadMore || !hasMore || isLoading) return;
438
- if (typeof IntersectionObserver === "undefined") return;
439
- const el = sentinelRef.current;
440
- if (!el) return;
441
- const observer = new IntersectionObserver((entries) => {
442
- if (entries.some((entry) => entry.isIntersecting)) onLoadMore();
443
- });
444
- observer.observe(el);
445
- return () => observer.disconnect();
446
- }, [height, onLoadMore, hasMore, isLoading]);
433
+ // Page-flow mode (no explicit height): load the next page when the bottom
434
+ // sentinel enters the window, on the web and on native (FZ-8659).
435
+ usePageFlowLoadMore({
436
+ sentinelRef,
437
+ enabled: height === undefined && hasMore && !isLoading,
438
+ onLoadMore,
439
+ rearmKey: items.length,
440
+ });
447
441
 
448
442
  // Error wins over empty (DG-ST-01); initial load renders the grid twin.
449
443
  const hasError = resolveAsyncStatus({ error }) === "error";
@@ -533,7 +527,7 @@ export function ImageGrid<T>({
533
527
  <Spinner size="small" />
534
528
  </YStack>
535
529
  )}
536
- <View ref={sentinelRef as any} height={1} />
530
+ <View ref={sentinelRef as any} height={1} testID="image-grid-sentinel" />
537
531
  </View>
538
532
  );
539
533
 
@@ -0,0 +1,79 @@
1
+ import { type RefObject, useEffect, useRef } from "react";
2
+ import { isWeb, useWindowDimensions } from "tamagui";
3
+
4
+ /** How often native re-measures the sentinel while another page can load. */
5
+ export const PAGE_FLOW_POLL_MS = 250;
6
+
7
+ type WindowRect = (x: number, y: number, width: number, height: number) => void;
8
+
9
+ interface MeasurableNode {
10
+ measureInWindow?: (callback: WindowRect) => void;
11
+ }
12
+
13
+ export interface PageFlowLoadMoreOptions {
14
+ /** A 1px view after the last row. */
15
+ sentinelRef: RefObject<unknown>;
16
+ /** False while a page is in flight, when nothing remains, or when the caller owns the scroll. */
17
+ enabled: boolean;
18
+ onLoadMore?: () => void;
19
+ /** Re-arms the trigger when it changes (the rendered item count), so short pages keep loading. */
20
+ rearmKey: number;
21
+ }
22
+
23
+ /**
24
+ * Infinite load for a list that flows with its host's scroll (FZ-8659).
25
+ *
26
+ * The list never sees that scroll: on a phone the screen's ScrollView owns
27
+ * it. Web watches the sentinel with an IntersectionObserver. React Native has
28
+ * none, so native measures the sentinel in window coordinates on a short
29
+ * interval and fires when it crosses into the window, the same edge the
30
+ * observer reports. Both fire once per crossing: the observer by its own
31
+ * transitions, native by latching until the sentinel leaves again. `enabled`
32
+ * going false (a page in flight) and `rearmKey` changing (a page landed)
33
+ * start a fresh watch on both.
34
+ */
35
+ export function usePageFlowLoadMore({
36
+ sentinelRef,
37
+ enabled,
38
+ onLoadMore,
39
+ rearmKey,
40
+ }: PageFlowLoadMoreOptions): void {
41
+ const onLoadMoreRef = useRef(onLoadMore);
42
+ onLoadMoreRef.current = onLoadMore;
43
+ const { width, height } = useWindowDimensions();
44
+ const windowRef = useRef({ width, height });
45
+ windowRef.current = { width, height };
46
+ const live = enabled && Boolean(onLoadMore);
47
+
48
+ useEffect(() => {
49
+ if (!live) return;
50
+ if (isWeb) {
51
+ if (typeof IntersectionObserver === "undefined") return;
52
+ const el = sentinelRef.current as Element | null;
53
+ if (!el) return;
54
+ const observer = new IntersectionObserver((entries) => {
55
+ if (entries.some((entry) => entry.isIntersecting)) onLoadMoreRef.current?.();
56
+ });
57
+ observer.observe(el);
58
+ return () => observer.disconnect();
59
+ }
60
+ let active = true;
61
+ let inside = false;
62
+ const timer = setInterval(() => {
63
+ const node = sentinelRef.current as MeasurableNode | null;
64
+ if (typeof node?.measureInWindow !== "function") return;
65
+ node.measureInWindow((x, y, w, h) => {
66
+ // An unmeasured view reports all zeros; width 0 means not laid out.
67
+ if (!active || w <= 0) return;
68
+ const win = windowRef.current;
69
+ const now = y <= win.height && y + h >= 0 && x < win.width && x + w > 0;
70
+ if (now && !inside) onLoadMoreRef.current?.();
71
+ inside = now;
72
+ });
73
+ }, PAGE_FLOW_POLL_MS);
74
+ return () => {
75
+ active = false;
76
+ clearInterval(timer);
77
+ };
78
+ }, [live, rearmKey, sentinelRef]);
79
+ }
@@ -3,10 +3,8 @@ import { Button } from "../Button";
3
3
  type MediaControlProps = Pick<ComponentProps<typeof Button>, "icon" | "aria-label" | "onPress" | "disabled">;
4
4
  /**
5
5
  * An icon-only control floating over a photo (LC-176 ICON-BUTTON, over-media
6
- * case): a bare glyph on a round plate of the MPO material, so it stays
7
- * legible on any frame. The blur comes from Material, the one sanctioned
8
- * backdrop blur (LC-206). Swaps for the shared IconButton's over-media
9
- * variant once FZ-8020 lands.
6
+ * case): a bare glyph on a flat round plate, so it stays legible on any frame.
7
+ * The plate is a fill and nothing else; it does not pretend to be glass.
10
8
  */
11
9
  export declare function MediaControl(props: MediaControlProps): import("react/jsx-runtime").JSX.Element;
12
10
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"MediaControl.d.ts","sourceRoot":"","sources":["../../src/Lightbox/MediaControl.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAInC,KAAK,iBAAiB,GAAG,IAAI,CAC3B,cAAc,CAAC,OAAO,MAAM,CAAC,EAC7B,MAAM,GAAG,YAAY,GAAG,SAAS,GAAG,UAAU,CAC/C,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CAwBpD"}
1
+ {"version":3,"file":"MediaControl.d.ts","sourceRoot":"","sources":["../../src/Lightbox/MediaControl.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,KAAK,iBAAiB,GAAG,IAAI,CAC3B,cAAc,CAAC,OAAO,MAAM,CAAC,EAC7B,MAAM,GAAG,YAAY,GAAG,SAAS,GAAG,UAAU,CAC/C,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CAmBpD"}
@@ -37,6 +37,7 @@ export interface NativeTabs {
37
37
  selectedIcon?: IconProp["ios"];
38
38
  tabBarItemAccessibilityLabel?: string;
39
39
  tabBarItemTestID?: string;
40
+ overrideScrollViewContentInsetAdjustmentBehavior?: boolean;
40
41
  }>;
41
42
  }
42
43
  export interface NativeTabsSources {
@@ -1 +1 @@
1
- {"version":3,"file":"TabHost.native.d.ts","sourceRoot":"","sources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GAAG,IAAI,CAS3F;AASD,qEAAqE;AACrE,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,SAAS,UAAU,EAAE,GAAG,OAAO,CAE1E;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,KAAK,EACL,SAAS,EACT,UAAU,EACV,QAAQ,GACT,EAAE,YAAY,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,2CAkDrC;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,2CAI1C"}
@@ -108,7 +108,7 @@ export declare const componentColors: {
108
108
  /** Debug indicator color */
109
109
  readonly debug: "$color9";
110
110
  /**
111
- * The round material plate under an icon control floating over a photo
111
+ * The flat round plate under an icon control floating over a photo
112
112
  * (LC-176). The fill sits steps above the viewer's dark ground so the
113
113
  * plate reads on black as well as on a bright frame (FZ-8009 r2).
114
114
  */
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../src/layouts/page.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAeL,KAAK,cAAc,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAA2B,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAErF,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,EAAE,eAAe,IAAI,sBAAsB,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAkCnG,OAAO,EAIL,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAC;AAe5B;;;GAGG;AACH,eAAO,MAAM,iBAAiB,MAAuB,CAAC;AAEtD,MAAM,WAAW,WAAY,SAAQ,WAAW;IAC9C,mDAAmD;IACnD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IACtB,kEAAkE;IAClE,KAAK,CAAC,EAAE,OAAO,C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AAElD,gFAAgF;AAChF,eAAO,MAAM,kBAAkB,IAAI,CAAC;AAOpC;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,QAAQ,EACR,OAAiB,GAClB,GAAE,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAM,GAAG;IAC1E,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAiBA;AAyHD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,EAC3B,KAAK,EACL,UAAU,EACV,WAAW,EACX,UAAU,EACV,OAAe,EACf,SAAiB,EACjB,KAAY,EACZ,OAAO,EACP,OAAO,EAAE,WAAW,EACpB,QAAQ,EACR,WAAW,EACX,YAAY,EAAE,aAAa,EAC3B,QAAQ,EAAE,SAAS,EACnB,MAAM,EAAE,UAAU,EAClB,YAAY,EAAE,gBAAgB,EAC9B,OAAO,EAAE,eAAe,EACxB,OAAiB,EACjB,QAAQ,EACR,GAAG,UAAU,EACd,EAAE,cAAc,CAAC,CAAC,CAAC,2CA0OnB"}
@@ -0,0 +1,26 @@
1
+ import { type RefObject } from "react";
2
+ /** How often native re-measures the sentinel while another page can load. */
3
+ export declare const PAGE_FLOW_POLL_MS = 250;
4
+ export interface PageFlowLoadMoreOptions {
5
+ /** A 1px view after the last row. */
6
+ sentinelRef: RefObject<unknown>;
7
+ /** False while a page is in flight, when nothing remains, or when the caller owns the scroll. */
8
+ enabled: boolean;
9
+ onLoadMore?: () => void;
10
+ /** Re-arms the trigger when it changes (the rendered item count), so short pages keep loading. */
11
+ rearmKey: number;
12
+ }
13
+ /**
14
+ * Infinite load for a list that flows with its host's scroll (FZ-8659).
15
+ *
16
+ * The list never sees that scroll: on a phone the screen's ScrollView owns
17
+ * it. Web watches the sentinel with an IntersectionObserver. React Native has
18
+ * none, so native measures the sentinel in window coordinates on a short
19
+ * interval and fires when it crosses into the window, the same edge the
20
+ * observer reports. Both fire once per crossing: the observer by its own
21
+ * transitions, native by latching until the sentinel leaves again. `enabled`
22
+ * going false (a page in flight) and `rearmKey` changing (a page landed)
23
+ * start a fresh watch on both.
24
+ */
25
+ export declare function usePageFlowLoadMore({ sentinelRef, enabled, onLoadMore, rearmKey, }: PageFlowLoadMoreOptions): void;
26
+ //# sourceMappingURL=usePageFlowLoadMore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePageFlowLoadMore.d.ts","sourceRoot":"","sources":["../../src/views/usePageFlowLoadMore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAG1D,6EAA6E;AAC7E,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAQrC,MAAM,WAAW,uBAAuB;IACtC,qCAAqC;IACrC,WAAW,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAChC,iGAAiG;IACjG,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,kGAAkG;IAClG,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,WAAW,EACX,OAAO,EACP,UAAU,EACV,QAAQ,GACT,EAAE,uBAAuB,GAAG,IAAI,CAuChC"}