@marktiderman/genesis-ui-native 3.5.1 → 3.6.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 (89) hide show
  1. package/README.md +71 -7
  2. package/dist/{chunk-LBVD7XXL.js → chunk-2Z72MYHB.js} +627 -20
  3. package/dist/chunk-2Z72MYHB.js.map +1 -0
  4. package/dist/chunk-4OQOJ2OC.js +80 -0
  5. package/dist/chunk-4OQOJ2OC.js.map +1 -0
  6. package/dist/{chunk-6KWEAGRD.js → chunk-6PGLX6ET.js} +101 -6
  7. package/dist/chunk-6PGLX6ET.js.map +1 -0
  8. package/dist/{chunk-ONH2PCGH.js → chunk-AGTBABAH.js} +9 -15
  9. package/dist/chunk-AGTBABAH.js.map +1 -0
  10. package/dist/{chunk-ABVSSJNT.js → chunk-FUMSL7VZ.js} +198 -168
  11. package/dist/chunk-FUMSL7VZ.js.map +1 -0
  12. package/dist/{chunk-GHYUNNNU.js → chunk-NDXNSSM6.js} +175 -93
  13. package/dist/chunk-NDXNSSM6.js.map +1 -0
  14. package/dist/chunk-SEJ6RBP7.js +361 -0
  15. package/dist/chunk-SEJ6RBP7.js.map +1 -0
  16. package/dist/{chunk-D5RKSPMH.js → chunk-ZRQAFFTN.js} +4 -3
  17. package/dist/chunk-ZRQAFFTN.js.map +1 -0
  18. package/dist/components/index.d.ts +331 -4
  19. package/dist/components/index.js +5 -5
  20. package/dist/data/index.d.ts +68 -4
  21. package/dist/data/index.js +231 -30
  22. package/dist/data/index.js.map +1 -1
  23. package/dist/hooks/index.d.ts +60 -1
  24. package/dist/hooks/index.js +2 -3
  25. package/dist/icons/lucide.d.ts +1 -1
  26. package/dist/icons/lucide.js +7 -1
  27. package/dist/icons/lucide.js.map +1 -1
  28. package/dist/{inbox-page-BEarNEIP.d.ts → inbox-page-B7_Oi2fS.d.ts} +2 -44
  29. package/dist/index.d.ts +8 -5
  30. package/dist/index.js +8 -8
  31. package/dist/layouts/index.d.ts +40 -51
  32. package/dist/layouts/index.js +5 -4
  33. package/dist/{native-modules-PwnGltOU.d.ts → native-modules-Cl3zw3kh.d.ts} +27 -1
  34. package/package.json +78 -4
  35. package/src/__tests__/doctor-rules.test.ts +60 -0
  36. package/src/__tests__/native-modules-lists.test.tsx +1 -0
  37. package/src/components/__tests__/composer-bar.test.tsx +55 -0
  38. package/src/components/__tests__/gallery-card.test.tsx +59 -0
  39. package/src/components/__tests__/gallery-grid.test.tsx +160 -0
  40. package/src/components/__tests__/lightbox-resnap.test.tsx +50 -0
  41. package/src/components/__tests__/lightbox-zoom.test.ts +33 -0
  42. package/src/components/__tests__/lightbox.test.tsx +141 -0
  43. package/src/components/__tests__/live-indicator.test.tsx +72 -0
  44. package/src/components/__tests__/rating.test.tsx +82 -0
  45. package/src/components/__tests__/thread-list.test.tsx +156 -0
  46. package/src/components/composer-bar.tsx +198 -0
  47. package/src/components/drawer.tsx +15 -9
  48. package/src/components/gallery-card.tsx +109 -0
  49. package/src/components/gallery-grid.tsx +285 -0
  50. package/src/components/gallery-layout.ts +2 -0
  51. package/src/components/gallery-types.ts +2 -0
  52. package/src/components/index.ts +44 -0
  53. package/src/components/lightbox-zoom.tsx +282 -0
  54. package/src/components/lightbox.tsx +342 -0
  55. package/src/components/live-indicator.tsx +139 -0
  56. package/src/components/rating.tsx +128 -0
  57. package/src/components/skeleton.tsx +9 -4
  58. package/src/components/thread-list.tsx +427 -0
  59. package/src/components/toast.tsx +7 -4
  60. package/src/data/NativeConflictSheet.tsx +181 -0
  61. package/src/data/NativeResourceForm.tsx +15 -1
  62. package/src/data/index.ts +2 -0
  63. package/src/data/resource-view/NativeRecordView.tsx +85 -8
  64. package/src/data/resource-view/NativeResourceView.tsx +79 -32
  65. package/src/data/resource-view/__tests__/native-record-view.test.tsx +95 -1
  66. package/src/data/resource-view/__tests__/native-resource-gallery.test.tsx +125 -0
  67. package/src/hooks/__tests__/use-motion.test.tsx +106 -0
  68. package/src/hooks/__tests__/use-thread-jump.test.tsx +88 -0
  69. package/src/hooks/index.ts +3 -0
  70. package/src/hooks/use-motion.ts +128 -0
  71. package/src/hooks/use-thread-jump.ts +110 -0
  72. package/src/icon-names.ts +6 -0
  73. package/src/icons/lucide.ts +12 -0
  74. package/src/layouts/__tests__/inbox-page.test.tsx +6 -0
  75. package/src/layouts/__tests__/thread-page.test.tsx +114 -14
  76. package/src/layouts/inbox-page.tsx +6 -55
  77. package/src/layouts/index.ts +2 -0
  78. package/src/layouts/thread-page.tsx +326 -262
  79. package/src/native-modules.tsx +16 -2
  80. package/dist/chunk-6KWEAGRD.js.map +0 -1
  81. package/dist/chunk-7PCWEY6R.js +0 -27
  82. package/dist/chunk-7PCWEY6R.js.map +0 -1
  83. package/dist/chunk-ABVSSJNT.js.map +0 -1
  84. package/dist/chunk-D5RKSPMH.js.map +0 -1
  85. package/dist/chunk-GHYUNNNU.js.map +0 -1
  86. package/dist/chunk-LBVD7XXL.js.map +0 -1
  87. package/dist/chunk-ONH2PCGH.js.map +0 -1
  88. package/dist/chunk-Z3AQYVUA.js +0 -36
  89. package/dist/chunk-Z3AQYVUA.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/thread-list.tsx","../src/components/composer-bar.tsx"],"names":["useEffect","Platform","AccessibilityInfo","jsxs","View","jsx","Pressable"],"mappings":";;;;;;;AA+CA,IAAM,QAAA,GAAW,CAAC,IAAA,KAAkB,iBAAA,CAAyE,2BAA2B,IAAI,CAAA;AAGrI,IAAM,uBAAA,GAA0B;AAGvC,IAAM,WAAA,GAAc,GAAA;AAGb,SAAS,gBAAA,CAAiB,CAAA,EAAkB,KAAA,GAAQ,uBAAA,EAAkC;AAC3F,EAAA,OAAO,CAAA,CAAE,cAAc,CAAA,GAAI,CAAA,CAAE,kBAAkB,MAAA,IAAU,CAAA,CAAE,YAAY,MAAA,GAAS,KAAA;AAClF;AASO,SAAS,cAAA,CACd,KAAA,EACA,aAAA,EACA,cAAA,GAAiB,CAAA,EACoE;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EAAE,KAAA,EAAO,MAAA,CAAO,aAAA,IACjI,QAAA,EAAA,SAAA,EACH;AAAA;AAAA;AAEJ,SAAA,EAEJ;AAAA;AAAA;AAAA,GACF;AAEJ","file":"chunk-SEJ6RBP7.js","sourcesContent":["/**\n * NativeThreadList — a conversation's list: oldest first, top to bottom (the\n * order VoiceOver reads), that opens at the newest row, follows new rows only\n * while you're at the bottom, keeps your place while earlier rows load at the\n * top, and can go to one row (a search result, the first unread).\n *\n * The atom under ThreadPage, and the one any app builds its own thread from:\n * it renders the rows it's given and never fetches. Earlier pages come from\n * `onLoadEarlier`, a row out of reach from `onLoadUntil(id)`.\n *\n * FlashList v2 (`GenesisModules.list`) when the app passed it: its chat mode\n * (`startRenderingFromBottom`, `autoscrollToBottomThreshold`, the first\n * visible row held when rows prepend). Without it, FlatList, which keeps its\n * place with `maintainVisibleContentPosition` (anchored past the header) and\n * follows the bottom by hand.\n *\n * Not inverted: in an inverted FlashList a new row at index 0 lands under the\n * composer, and VoiceOver reads each day's heading after its messages.\n *\n * Earlier rows load by themselves near the top, and the explicit \"Load\n * earlier\" button stays: VoiceOver can't reach rows a virtualized list hasn't\n * rendered. Going to a row waits for `loading`, loads until it's held,\n * scrolls to it (again after FlashList's own placement on open), highlights\n * it for two seconds and announces it. Reduce Motion scrolls without\n * animating.\n *\n * Promoted from genesis-chat's thread and its `useJumpToMessage` (G4); chat\n * moves onto it later.\n *\n * @stability Beta\n */\nimport { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState, type ComponentType, type ReactElement, type ReactNode } from \"react\";\nimport { AccessibilityInfo, FlatList, Platform, Pressable, View } from \"react-native\";\nimport { useGenesisModules } from \"../native-modules\";\nimport { useReducedMotion } from \"../hooks/use-reduced-motion\";\nimport { useThemeRoles } from \"../hooks/use-theme-roles\";\nimport { useThreadJump } from \"@marktiderman/genesis-core/conversation\";\nimport { NativeSkeleton } from \"./skeleton\";\nimport { NativeText } from \"./text\";\n\n/** The scroll event fields the list reads. */\ninterface ScrollMetrics {\n contentOffset: { y: number };\n contentSize: { height: number };\n layoutMeasurement: { height: number };\n}\n\nconst announce = (text: string) => (AccessibilityInfo as { announceForAccessibility?: (t: string) => void }).announceForAccessibility?.(text);\n\n/** Points from the bottom that still count as \"at the bottom\". */\nexport const THREAD_AT_BOTTOM_POINTS = 120;\n\n/** After the list scrolls itself (to the newest, to a row), how long its own scroll events don't count. */\nconst SETTLING_MS = 400;\n\n/** Whether a scroll position is at (or near) the bottom of its content. */\nexport function threadNearBottom(m: ScrollMetrics, slack = THREAD_AT_BOTTOM_POINTS): boolean {\n return m.contentOffset.y + m.layoutMeasurement.height >= m.contentSize.height - slack;\n}\n\n/**\n * How the list is set up. FlashList follows by itself, within\n * `THREAD_AT_BOTTOM_POINTS` of the bottom (its threshold is a fraction of the\n * viewport: a fifth until the viewport's height is known); FlatList keeps its\n * place on prepend, anchored on the first row past the header (index 1: the\n * header is child 0), and the list follows the bottom by hand.\n */\nexport function threadListMode(\n flash: boolean,\n reducedMotion: boolean,\n viewportHeight = 0,\n): { followsByHand: boolean; maintainVisibleContentPosition: Record<string, unknown> } {\n if (flash) {\n const threshold = viewportHeight > 0 ? Math.min(1, THREAD_AT_BOTTOM_POINTS / viewportHeight) : 0.2;\n return {\n followsByHand: false,\n maintainVisibleContentPosition: { startRenderingFromBottom: true, autoscrollToBottomThreshold: threshold, animateAutoScrollToBottom: !reducedMotion },\n };\n }\n return { followsByHand: true, maintainVisibleContentPosition: { minIndexForVisible: 1 } };\n}\n\nexport interface NativeThreadListHandle {\n /** Go to the newest row (after a send: what you send is what you look at next). */\n scrollToEnd: (options?: { animated?: boolean }) => void;\n}\n\n/** What `renderItem` is told about a row besides the row itself. */\nexport interface ThreadRowInfo {\n index: number;\n /** The row a jump just landed on, for two seconds. */\n highlighted: boolean;\n}\n\nexport interface NativeThreadListProps<T> {\n /** Oldest first. */\n data: readonly T[];\n /** A row's id. It must stay the same across refreshes (from a cache to the server), or rows jump. */\n keyExtractor: (row: T) => string;\n renderItem: (row: T, info: ThreadRowInfo) => ReactElement | null;\n /** Rows of different shapes recycle apart (FlashList): \"mine\", \"theirs\", \"event\". */\n getItemType?: (row: T) => string;\n /** The first page is loading: shows `loadingView` (a skeleton by default), and a jump waits. */\n loading?: boolean;\n loadingView?: ReactNode;\n /** There are earlier rows: loads them near the top, and shows the \"Load earlier\" button. */\n hasEarlier?: boolean;\n onLoadEarlier?: () => void;\n loadingEarlier?: boolean;\n earlierLabel?: string;\n /** Replaces the default \"Load earlier\" button. */\n renderEarlier?: (props: { loading: boolean; onPress: () => void; label: string; testID: string }) => ReactNode;\n /** Go to this row, loading earlier pages with `onLoadUntil` until it's here. A new id, or the same one after `null`, goes again. */\n jumpTo?: string | null;\n /** Load earlier pages until the row is held; resolve false when it can't be found. */\n onLoadUntil?: (id: string) => Promise<boolean>;\n /** What VoiceOver says on arriving at `jumpTo`. */\n jumpAnnouncement?: (row: T) => string;\n /** The row couldn't be found (deleted, out of reach). The list goes back to the newest row first. */\n onJumpFailed?: (id: string) => void;\n /** Whether the reader is at the bottom, as it changes (to show a \"new messages\" pill, say). */\n onAtBottomChange?: (atBottom: boolean) => void;\n /** Above the first row, before the \"Load earlier\" button: what the thread is about. */\n header?: ReactNode;\n /** Under the last row: who is typing, a \"Sending…\" line. */\n footer?: ReactNode;\n /** Shown instead of the rows when there are none. */\n empty?: ReactNode;\n testID?: string;\n}\n\n/** The FlatList and FlashList v2 props the thread passes. */\ninterface ThreadListComponentProps {\n ref?: unknown;\n data: readonly unknown[];\n renderItem: (info: { item: unknown; index: number }) => ReactElement | null;\n keyExtractor: (row: unknown) => string;\n getItemType?: (row: unknown) => string;\n extraData?: unknown;\n onStartReached?: () => void;\n onStartReachedThreshold?: number;\n ListHeaderComponent?: ReactElement | null;\n ListFooterComponent?: ReactElement | null;\n keyboardShouldPersistTaps?: \"handled\";\n keyboardDismissMode?: \"interactive\" | \"on-drag\";\n contentInsetAdjustmentBehavior?: \"automatic\";\n contentContainerStyle?: Record<string, unknown>;\n maintainVisibleContentPosition?: Record<string, unknown>;\n onScroll?: (e: { nativeEvent: ScrollMetrics }) => void;\n scrollEventThrottle?: number;\n onContentSizeChange?: () => void;\n onLayout?: () => void;\n onScrollToIndexFailed?: (info: { index: number; averageItemLength: number }) => void;\n accessibilityRole?: \"list\";\n testID?: string;\n}\n\ninterface ListRef {\n scrollToEnd?: (o?: { animated?: boolean }) => void;\n scrollToIndex?: (o: { index: number; animated?: boolean; viewPosition?: number }) => void;\n scrollToOffset?: (o: { offset: number; animated?: boolean }) => void;\n}\n\nfunction NativeThreadListInner<T>(props: NativeThreadListProps<T>, ref: React.ForwardedRef<NativeThreadListHandle>) {\n const {\n data,\n keyExtractor,\n renderItem,\n getItemType,\n loading = false,\n loadingView,\n hasEarlier = false,\n onLoadEarlier,\n loadingEarlier = false,\n earlierLabel = \"Load earlier messages\",\n renderEarlier,\n jumpTo,\n onLoadUntil,\n jumpAnnouncement,\n onJumpFailed,\n onAtBottomChange,\n footer,\n header,\n empty,\n testID = \"thread-list\",\n } = props;\n const genesis = useGenesisModules();\n const reducedMotion = useReducedMotion();\n const List = (genesis.list ?? FlatList) as unknown as ComponentType<ThreadListComponentProps>;\n const [viewport, setViewport] = useState(0);\n const mode = threadListMode(Boolean(genesis.list), reducedMotion, viewport);\n // The last position the list reported, to re-check \"at the bottom\" after it moves itself.\n const metrics = useRef<ScrollMetrics | null>(null);\n const recheck = useRef<ReturnType<typeof setTimeout> | null>(null);\n useEffect(() => () => {\n if (recheck.current) clearTimeout(recheck.current);\n }, []);\n const listRef = useRef<ListRef | null>(null);\n // At the bottom (or not yet scrolled): new rows and a shorter list keep it there.\n const atBottom = useRef(true);\n // FlatList opens at the top and is moved down a frame later: until then the top isn't \"reached\".\n const placed = useRef(!mode.followsByHand);\n // While the list scrolls itself, its own scroll events don't move \"at the bottom\".\n const settlingUntil = useRef(0);\n const timers = useRef(new Set<ReturnType<typeof setTimeout>>());\n const later = useCallback((fn: () => void, ms: number) => {\n const t = setTimeout(() => {\n timers.current.delete(t);\n fn();\n }, ms);\n timers.current.add(t);\n }, []);\n useEffect(() => {\n const pending = timers.current;\n return () => pending.forEach(clearTimeout);\n }, []);\n const latest = useRef({ data, keyExtractor, jumpAnnouncement, onJumpFailed, onAtBottomChange });\n latest.current = { data, keyExtractor, jumpAnnouncement, onJumpFailed, onAtBottomChange };\n const indexOf = useCallback((id: string) => latest.current.data.findIndex((row) => latest.current.keyExtractor(row) === id), []);\n\n const setAtBottom = useCallback((v: boolean) => {\n if (atBottom.current === v) return;\n atBottom.current = v;\n latest.current.onAtBottomChange?.(v);\n }, []);\n\n const toBottom = useCallback(\n (animated: boolean) => {\n settlingUntil.current = Date.now() + SETTLING_MS;\n const go = (a: boolean) => listRef.current?.scrollToEnd?.({ animated: a && !reducedMotion });\n requestAnimationFrame(() => {\n go(animated);\n placed.current = true;\n });\n // Once more after a new row has its size (FlashList measures it after the first pass).\n if (animated) later(() => go(true), 180);\n },\n [later, reducedMotion],\n );\n\n useImperativeHandle(\n ref,\n () => ({\n scrollToEnd: (options) => {\n setAtBottom(true);\n toBottom(options?.animated ?? true);\n },\n }),\n [setAtBottom, toBottom],\n );\n\n // Going to a row: by id, so a page loading in between can't send it to the wrong row.\n const jumpTries = useRef<{ id: string; tries: number } | null>(null);\n const scrollToRow = useCallback(\n (id: string) => {\n const scroll = () => {\n const at = indexOf(id);\n if (at >= 0) listRef.current?.scrollToIndex?.({ index: at, animated: !reducedMotion, viewPosition: 0.5 });\n };\n jumpTries.current = { id, tries: 0 };\n settlingUntil.current = Date.now() + SETTLING_MS;\n requestAnimationFrame(scroll);\n // Once more after the first layout: on open, FlashList's start-at-the-bottom placement comes after\n // the first frame and would win, leaving the thread at the bottom.\n later(scroll, 250);\n },\n [indexOf, later, reducedMotion],\n );\n const has = useCallback((id: string) => indexOf(id) >= 0, [indexOf]);\n // `has` must change when the rows do, so the jump looks again.\n const hasNow = useMemo(() => (id: string) => has(id), [has, data]); // eslint-disable-line react-hooks/exhaustive-deps\n const { highlightedId, jumping } = useThreadJump({\n target: jumpTo,\n has: hasNow,\n loading,\n loadUntil: onLoadUntil,\n scrollTo: scrollToRow,\n onStart: () => {\n setAtBottom(false);\n placed.current = true;\n },\n onLanded: (id) => {\n // A jump to a row already at the bottom moves nothing, so no scroll event says so: look once it settles.\n if (recheck.current) clearTimeout(recheck.current);\n recheck.current = setTimeout(() => {\n if (metrics.current && threadNearBottom(metrics.current)) setAtBottom(true);\n }, SETTLING_MS + 50);\n const at = indexOf(id);\n const said = at >= 0 ? latest.current.jumpAnnouncement?.(latest.current.data[at]!) : undefined;\n if (said) announce(said);\n },\n onGone: (id) => {\n // Back to where the thread opens: the newest rows.\n setAtBottom(true);\n toBottom(false);\n latest.current.onJumpFailed?.(id);\n },\n });\n\n const loadEarlier = useCallback(() => {\n if (placed.current && !jumping && hasEarlier && !loadingEarlier) onLoadEarlier?.();\n }, [hasEarlier, jumping, loadingEarlier, onLoadEarlier]);\n\n const earlierProps = { loading: loadingEarlier, onPress: () => onLoadEarlier?.(), label: earlierLabel, testID: `${testID}-earlier` };\n const listHeader = (\n <View>\n {header}\n {hasEarlier && onLoadEarlier ? (renderEarlier ? renderEarlier(earlierProps) : <DefaultEarlier {...earlierProps} />) : null}\n </View>\n );\n\n const renderListItem = useCallback(\n ({ item, index }: { item: unknown; index: number }) => renderItem(item as T, { index, highlighted: highlightedId !== null && keyExtractor(item as T) === highlightedId }),\n [highlightedId, keyExtractor, renderItem],\n );\n const listKey = useCallback((row: unknown) => keyExtractor(row as T), [keyExtractor]);\n const listItemType = useMemo(() => (getItemType ? (row: unknown) => getItemType(row as T) : undefined), [getItemType]);\n const onScroll = useCallback(\n (e: { nativeEvent: ScrollMetrics }) => {\n metrics.current = { contentOffset: { y: e.nativeEvent.contentOffset.y }, contentSize: { height: e.nativeEvent.contentSize.height }, layoutMeasurement: { height: e.nativeEvent.layoutMeasurement.height } };\n const height = e.nativeEvent.layoutMeasurement.height;\n setViewport((v) => (Math.abs(v - height) < 1 ? v : height));\n const near = threadNearBottom(e.nativeEvent);\n // The list's own scroll (to the newest, to a row) passes through \"not at the bottom\": ignore that.\n if (!near && Date.now() < settlingUntil.current) return;\n setAtBottom(near);\n },\n [setAtBottom],\n );\n const onScrollToIndexFailed = useCallback(\n ({ index, averageItemLength }: { index: number; averageItemLength: number }) => {\n // FlatList hasn't measured that far up yet: get near it, then try again by id (three times at most).\n listRef.current?.scrollToOffset?.({ offset: Math.max(0, index * averageItemLength - 200), animated: false });\n const target = jumpTries.current;\n if (!target || target.tries >= 3) return;\n target.tries += 1;\n later(() => {\n const at = indexOf(target.id);\n if (at >= 0) listRef.current?.scrollToIndex?.({ index: at, animated: !reducedMotion, viewPosition: 0.5 });\n }, 250);\n },\n [indexOf, later, reducedMotion],\n );\n const follow = useCallback(() => {\n if (atBottom.current && !jumping) toBottom(false);\n }, [jumping, toBottom]);\n\n if (loading && data.length === 0) {\n return (\n <View testID={`${testID}-loading`} accessible accessibilityLabel=\"Loading\" style={{ flex: 1, justifyContent: \"flex-end\", padding: 16, gap: 10 }}>\n {loadingView ?? <DefaultLoading />}\n </View>\n );\n }\n\n if (data.length === 0 && empty) {\n return (\n <View testID={testID} style={{ flex: 1, justifyContent: \"center\" }}>\n {listHeader}\n {empty}\n </View>\n );\n }\n\n return (\n <List\n ref={listRef}\n testID={testID}\n accessibilityRole=\"list\"\n data={data as readonly unknown[]}\n renderItem={renderListItem}\n keyExtractor={listKey}\n getItemType={listItemType}\n extraData={highlightedId}\n onStartReached={loadEarlier}\n onStartReachedThreshold={0.5}\n keyboardShouldPersistTaps=\"handled\"\n keyboardDismissMode={Platform.select({ ios: \"interactive\" as const, default: \"on-drag\" as const })}\n contentInsetAdjustmentBehavior=\"automatic\"\n contentContainerStyle={{ paddingVertical: 8, paddingHorizontal: 12 }}\n maintainVisibleContentPosition={mode.maintainVisibleContentPosition}\n scrollEventThrottle={32}\n onScroll={onScroll}\n onScrollToIndexFailed={onScrollToIndexFailed}\n {...(mode.followsByHand ? { onContentSizeChange: follow, onLayout: follow } : {})}\n ListHeaderComponent={listHeader}\n ListFooterComponent={footer ? <View>{footer}</View> : null}\n />\n );\n}\n\n/** A conversation's list. See the module docs. */\nexport const NativeThreadList = forwardRef(NativeThreadListInner) as <T>(\n props: NativeThreadListProps<T> & { ref?: React.Ref<NativeThreadListHandle> },\n) => ReactElement | null;\n\nfunction DefaultEarlier({ loading, label, onPress, testID }: { loading: boolean; label: string; onPress: () => void; testID: string }) {\n const colors = useThemeRoles();\n return (\n <View style={{ alignItems: \"center\", paddingVertical: 12 }}>\n {loading ? (\n <View testID={`${testID}-loading`} accessible accessibilityLabel={label} accessibilityState={{ busy: true }} style={{ gap: 8, alignItems: \"center\" }}>\n <NativeSkeleton width={180} height={14} />\n <NativeSkeleton width={120} height={14} />\n </View>\n ) : (\n <Pressable testID={testID} accessibilityRole=\"button\" accessibilityLabel={label} onPress={onPress} style={{ minHeight: 44, justifyContent: \"center\", paddingHorizontal: 16 }}>\n <NativeText preset=\"label\" style={{ color: colors.tint }}>\n {label}\n </NativeText>\n </Pressable>\n )}\n </View>\n );\n}\n\nfunction DefaultLoading() {\n return (\n <>\n <NativeSkeleton width={200} height={36} className=\"rounded-2xl\" />\n <View style={{ alignItems: \"flex-end\" }}>\n <NativeSkeleton width={160} height={36} className=\"rounded-2xl\" />\n </View>\n <NativeSkeleton width={240} height={36} className=\"rounded-2xl\" />\n </>\n );\n}\n","/**\n * NativeComposerBar — the bar you write a message in: an input that grows\n * with what you type (up to `maxLines`, then scrolls), a send button, and\n * slots beside and above it. ThreadPage's composer; chat, comments and AI\n * prompts build on it too.\n *\n * - **Modes:** `modes` with a `tone` each (\"Reply\" / \"Internal note\"). The\n * picker sits above the input, and an `internal` tone edges the bar and\n * the input in the theme's `warning` role, so a staff-only note never\n * reads like a reply (the send button keeps the tint: text on `warning`\n * would fail contrast). The row it sends carries the same tone (ThreadPage).\n * - **Slots:** `leading` (attach), `trailing` (beside send: a mic), `above`\n * (a reply preview, attachments waiting to send).\n * - **Keyboard:** the bar doesn't move itself. Put it under a keyboard-aware\n * container (ThreadPage does, with `GenesisModules.keyboardAvoidingView`);\n * the list above it dismisses the keyboard interactively on a drag.\n * - **Accessibility:** send and the mode picker are 44pt targets, the input\n * is labelled by its placeholder (and says when it writes an internal\n * note), Sending is announced, and the input stays editable while a\n * message sends (the keyboard stays up).\n *\n * @stability Beta\n */\nimport { useEffect, type ReactNode } from \"react\";\nimport { AccessibilityInfo, ActivityIndicator, Dimensions, Platform, Pressable, TextInput, View } from \"react-native\";\nimport type { ComposerMode } from \"@marktiderman/genesis-core/conversation\";\nimport { useThemeRoles } from \"../hooks/use-theme-roles\";\nimport { useGenesisModules } from \"../native-modules\";\nimport { NativeIcon } from \"./icon\";\nimport { NativeText } from \"./text\";\n\nexport type { ComposerMode, ComposerTone } from \"@marktiderman/genesis-core/conversation\";\n\nexport interface NativeComposerBarProps {\n value: string;\n onChangeText: (text: string) => void;\n onSend: () => void;\n /** A send is in flight: the button spins and won't send twice. */\n sending?: boolean;\n /** Turns sending off (besides a blank value). */\n disabled?: boolean;\n placeholder?: string;\n /** Send's label, to VoiceOver. Default \"Send\". */\n sendLabel?: string;\n sendingLabel?: string;\n maxLength?: number;\n /** The input grows to this many lines, then scrolls. Default 6. */\n maxLines?: number;\n /** Ways to send (\"Reply\", \"Internal note\"). Two or more show the picker. */\n modes?: readonly ComposerMode[];\n /** The chosen mode's id. Default the first. */\n mode?: string;\n onModeChange?: (id: string) => void;\n leading?: ReactNode;\n trailing?: ReactNode;\n above?: ReactNode;\n testID?: string;\n}\n\nconst LINE = 22;\nconst PAD_Y = 8;\n\nexport function NativeComposerBar({\n value,\n onChangeText,\n onSend,\n sending = false,\n disabled = false,\n placeholder = \"Message\",\n sendLabel = \"Send\",\n sendingLabel = \"Sending\",\n maxLength,\n maxLines = 6,\n modes,\n mode,\n onModeChange,\n leading,\n trailing,\n above,\n testID = \"composer\",\n}: NativeComposerBarProps) {\n const colors = useThemeRoles();\n const { symbol, icons } = useGenesisModules();\n // No icon module: the arrow would draw nothing, so the button says its label.\n const hasIcon = Boolean(symbol || icons?.[\"arrow-up\"]);\n const current = modes?.find((m) => m.id === mode) ?? modes?.[0];\n const internal = current?.tone === \"internal\";\n const blank = !value.trim();\n const canSend = !blank && !disabled && !sending;\n // A multiline input grows with its text by itself; this caps it, after which it scrolls.\n // Lines grow with the person's text size (Dynamic Type, Android font scale).\n const fontScale = Dimensions.get(\"window\").fontScale || 1;\n const maxHeight = Math.ceil(LINE * fontScale) * maxLines + PAD_Y * 2;\n // Say \"Sending\" on iOS too (a live region is Android-only).\n useEffect(() => {\n if (sending && Platform.OS === \"ios\") (AccessibilityInfo as { announceForAccessibility?: (t: string) => void }).announceForAccessibility?.(sendingLabel);\n }, [sending, sendingLabel]);\n\n return (\n <View\n testID={testID}\n style={{\n paddingHorizontal: 12,\n paddingTop: 8,\n paddingBottom: 8,\n gap: 6,\n backgroundColor: colors.groupedBackground,\n borderTopWidth: internal ? 2 : 0,\n borderTopColor: colors.warning,\n }}\n >\n {modes && modes.length > 1 ? (\n <View testID={`${testID}-modes`} accessibilityRole=\"tablist\" style={{ flexDirection: \"row\", gap: 4 }}>\n {modes.map((m) => {\n const on = m.id === current?.id;\n return (\n <Pressable\n key={m.id}\n testID={`${testID}-mode-${m.id}`}\n accessibilityRole=\"tab\"\n accessibilityState={{ selected: on }}\n accessibilityLabel={m.label}\n onPress={() => onModeChange?.(m.id)}\n style={{\n minHeight: 44,\n justifyContent: \"center\",\n paddingHorizontal: 12,\n borderRadius: 22,\n backgroundColor: on ? colors.fill : \"transparent\",\n borderWidth: m.tone === \"internal\" ? 1 : 0,\n borderColor: colors.warning,\n }}\n >\n <NativeText preset=\"label\" style={{ color: on ? colors.label : colors.secondaryLabel }}>\n {m.label}\n </NativeText>\n </Pressable>\n );\n })}\n </View>\n ) : null}\n {above}\n <View style={{ flexDirection: \"row\", alignItems: \"flex-end\", gap: 8 }}>\n {leading}\n <TextInput\n testID={`${testID}-input`}\n value={value}\n onChangeText={onChangeText}\n placeholder={internal ? current!.label : placeholder}\n placeholderTextColor={colors.tertiaryLabel as string}\n accessibilityLabel={internal ? current!.label : placeholder}\n multiline\n maxLength={maxLength}\n style={{\n flex: 1,\n minHeight: 44,\n maxHeight,\n textAlignVertical: \"center\",\n paddingHorizontal: 14,\n paddingTop: PAD_Y,\n paddingBottom: PAD_Y,\n borderRadius: 22,\n fontSize: 17,\n lineHeight: LINE,\n color: colors.label as string,\n backgroundColor: colors.surface,\n borderWidth: internal ? 1 : 0,\n borderColor: colors.warning,\n }}\n />\n {trailing}\n {sending ? (\n <View testID={`${testID}-sending`} accessible accessibilityLabel={sendingLabel} accessibilityLiveRegion=\"polite\" style={{ width: 44, height: 44, alignItems: \"center\", justifyContent: \"center\" }}>\n <ActivityIndicator />\n </View>\n ) : (\n <Pressable\n testID={`${testID}-send`}\n accessibilityRole=\"button\"\n accessibilityLabel={sendLabel}\n accessibilityState={{ disabled: !canSend }}\n disabled={!canSend}\n onPress={onSend}\n style={{ minWidth: 44, height: 44, paddingHorizontal: hasIcon ? 0 : 14, borderRadius: 22, alignItems: \"center\", justifyContent: \"center\", backgroundColor: canSend ? colors.tint : colors.fill }}\n >\n {hasIcon ? (\n <NativeIcon name=\"arrow-up\" size={20} color={canSend ? colors.background : colors.tertiaryLabel} />\n ) : (\n <NativeText preset=\"label\" className={canSend ? \"text-primary-foreground\" : undefined} style={canSend ? undefined : { color: colors.tertiaryLabel }}>\n {sendLabel}\n </NativeText>\n )}\n </Pressable>\n )}\n </View>\n </View>\n );\n}\n"]}
@@ -1,6 +1,7 @@
1
+ export { JUMP_SETTLE_MS, useThreadJump } from '@marktiderman/genesis-core/conversation';
1
2
  import { createContext, createElement, useContext } from 'react';
2
3
 
3
- // src/hooks/use-genesis-extension.ts
4
+ // src/hooks/index.ts
4
5
  var BrandExtensionsContext = createContext(
5
6
  void 0
6
7
  );
@@ -20,5 +21,5 @@ function useGenesisExtension(key) {
20
21
  }
21
22
 
22
23
  export { BrandExtensionsProvider, useGenesisExtension };
23
- //# sourceMappingURL=chunk-D5RKSPMH.js.map
24
- //# sourceMappingURL=chunk-D5RKSPMH.js.map
24
+ //# sourceMappingURL=chunk-ZRQAFFTN.js.map
25
+ //# sourceMappingURL=chunk-ZRQAFFTN.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/hooks/use-genesis-extension.ts"],"names":[],"mappings":";;;;AAkDA,IAAM,sBAAA,GAAyB,aAAA;AAAA,EAC7B;AACF,CAAA;AAOO,SAAS,uBAAA,CAAwB;AAAA,EACtC,KAAA;AAAA,EACA;AACF,CAAA,EAAiC;AAC/B,EAAA,OAAO,aAAA;AAAA,IACL,sBAAA,CAAuB,QAAA;AAAA,IACvB,EAAE,KAAA,EAAM;AAAA,IACR;AAAA,GACF;AACF;AAOO,SAAS,oBACd,GAAA,EACgC;AAChC,EAAA,MAAM,GAAA,GAAM,WAAW,sBAAsB,CAAA;AAC7C,EAAA,OAAO,MAAM,GAAG,CAAA;AAClB","file":"chunk-ZRQAFFTN.js","sourcesContent":["/**\n * useGenesisExtension — read a brand-package `extensions[<key>]` token scale.\n *\n * Brand packages declare domain-specific token categories under the\n * `extensions` slot of the canonical schema (PRD-07 D8 design decision).\n * Genesis primitives don't read these — only consumer composites do — so\n * this hook is the canonical accessor.\n *\n * Resolution order:\n * 1. `BrandExtensionsContext` value (set via <BrandExtensionsProvider>)\n * 2. `undefined` — the extension key isn't declared\n *\n * Consumers wire the provider once at app root; calls anywhere downstream\n * read by key.\n *\n * <BrandExtensionsProvider value={brand.extensions}>\n * <App />\n * </BrandExtensionsProvider>\n *\n * const moodTokens = useGenesisExtension(\"mood\");\n * // moodTokens?.[500] etc. — shape is consumer-defined\n *\n * Type contract: the canonical `BrandExtensions` interface lives in\n * `@marktiderman/genesis-design-system` (declaration-merging surface). At\n * runtime, consumers may pass a partially-populated object whose keys\n * match their own augmented `BrandExtensions`. We intentionally accept\n * `Partial<BrandExtensions>` here so the provider works with brand\n * packages that haven't declared extensions yet (a common case in newly\n * scaffolded apps).\n *\n * @stability Beta\n */\nimport {\n createContext,\n createElement,\n useContext,\n type ReactNode,\n} from \"react\";\nimport type { BrandExtensions } from \"@marktiderman/genesis-design-system\";\n\n/**\n * Runtime shape passed to `<BrandExtensionsProvider>`. Consumers augment\n * the canonical `BrandExtensions` interface (in design-system) via TS\n * declaration merging; the provider accepts the resulting record.\n *\n * `Partial<>` so brand packages that have no extensions can still wrap\n * their app in the provider without TS errors.\n */\nexport type BrandExtensionsValue = Partial<BrandExtensions>;\n\nconst BrandExtensionsContext = createContext<BrandExtensionsValue | undefined>(\n undefined,\n);\n\nexport interface BrandExtensionsProviderProps {\n value?: BrandExtensionsValue;\n children: ReactNode;\n}\n\nexport function BrandExtensionsProvider({\n value,\n children,\n}: BrandExtensionsProviderProps) {\n return createElement(\n BrandExtensionsContext.Provider,\n { value },\n children,\n );\n}\n\n/**\n * Read an extension scale by key. Returns `undefined` when the provider\n * isn't mounted OR when the key isn't declared on the brand. The return\n * type follows the consumer's augmented `BrandExtensions[K]`.\n */\nexport function useGenesisExtension<K extends keyof BrandExtensions>(\n key: K,\n): BrandExtensions[K] | undefined {\n const ctx = useContext(BrandExtensionsContext);\n return ctx?.[key];\n}\n"]}
@@ -1,10 +1,14 @@
1
1
  import * as react from 'react';
2
- import react__default, { ReactNode } from 'react';
2
+ import react__default, { ReactNode, ReactElement } from 'react';
3
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
  import { TextProps, AccessibilityState, ScrollViewProps, TextInputProps, ViewProps, ColorValue, SwitchProps } from 'react-native';
6
- import { q as NativeIconName, b as GenesisGlassModule } from '../native-modules-PwnGltOU.js';
7
- export { G as GenesisDatePickerComponent, a as GenesisDatePickerProps, c as GenesisIconComponent, d as GenesisIconSet, e as GenesisImageComponent, f as GenesisImageProps, g as GenesisListComponent, h as GenesisListProps, i as GenesisModules, j as GenesisModulesProvider, k as GenesisModulesProviderProps, l as GenesisNavigationModule, m as GenesisNavigationTheme, n as GenesisReanimatedModule, o as GenesisSymbolComponent, p as GenesisSymbolProps, N as NATIVE_ICON_NAMES, S as SF_SYMBOLS, u as useGenesisModules } from '../native-modules-PwnGltOU.js';
6
+ import { q as NativeIconName, b as GenesisGlassModule } from '../native-modules-Cl3zw3kh.js';
7
+ export { G as GenesisDatePickerComponent, a as GenesisDatePickerProps, c as GenesisIconComponent, d as GenesisIconSet, e as GenesisImageComponent, f as GenesisImageProps, g as GenesisListComponent, h as GenesisListProps, i as GenesisModules, j as GenesisModulesProvider, k as GenesisModulesProviderProps, l as GenesisNavigationModule, m as GenesisNavigationTheme, n as GenesisReanimatedModule, o as GenesisSymbolComponent, p as GenesisSymbolProps, K as KeyboardAvoidingLike, N as NATIVE_ICON_NAMES, S as SF_SYMBOLS, u as useGenesisModules } from '../native-modules-Cl3zw3kh.js';
8
+ import { ComposerMode } from '@marktiderman/genesis-core/conversation';
9
+ export { ComposerMode, ComposerTone } from '@marktiderman/genesis-core/conversation';
10
+ import { GalleryItem, GalleryTileAspect } from '@marktiderman/genesis-core/gallery';
11
+ export { DEFAULT_GALLERY_RATIO, GALLERY_DEFAULTS, GalleryItem, GalleryTileAspect, JustifiedRow, JustifiedTile, galleryItemRatio, justifyRows } from '@marktiderman/genesis-core/gallery';
8
12
 
9
13
  declare const textVariants: (props?: ({
10
14
  preset?: "h1" | "h2" | "h3" | "h4" | "body" | "body-sm" | "caption" | "label" | null | undefined;
@@ -1095,4 +1099,327 @@ interface NativeGlassSurfaceProps {
1095
1099
  }
1096
1100
  declare function NativeGlassSurface({ children, className, fallbackClassName, radius, tintColor, interactive, glassEffectStyle, testID, }: NativeGlassSurfaceProps): react.JSX.Element;
1097
1101
 
1098
- export { Box, type BoxBackground, type BoxProps, FULL_SCREEN_DARK, type FlexAlign, type FlexJustify, GenesisGlassModule, Grid, type GridProps, Inline, type InlineProps, NativeAccordion, NativeAccordionContent, type NativeAccordionContentProps, NativeAccordionItem, type NativeAccordionItemProps, type NativeAccordionProps, NativeAccordionTrigger, type NativeAccordionTriggerProps, type NativeAccordionType, NativeAlert, NativeAlertDescription, type NativeAlertDescriptionProps, type NativeAlertProps, NativeAlertTitle, type NativeAlertTitleProps, NativeAvatar, type NativeAvatarProps, NativeBadge, type NativeBadgeProps, NativeBanner, type NativeBannerProps, NativeButton, type NativeButtonProps, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, type NativeCardProps, NativeCardTitle, type NativeCardTitleProps, NativeCheckbox, type NativeCheckboxProps, NativeChip, NativeChipGroup, type NativeChipGroupMode, type NativeChipGroupProps, type NativeChipProps, NativeCombobox, type NativeComboboxOption, type NativeComboboxProps, NativeDatePicker, type NativeDatePickerProps, NativeDialog, NativeDialogContent, type NativeDialogContentProps, NativeDialogDescription, type NativeDialogDescriptionProps, NativeDialogFooter, type NativeDialogFooterProps, NativeDialogHeader, type NativeDialogHeaderProps, type NativeDialogProps, NativeDialogTitle, type NativeDialogTitleProps, NativeDrawer, type NativeDrawerProps, NativeDropdownMenu, NativeDropdownMenuContent, type NativeDropdownMenuContentProps, NativeDropdownMenuItem, type NativeDropdownMenuItemProps, type NativeDropdownMenuProps, NativeDropdownMenuTrigger, type NativeDropdownMenuTriggerProps, NativeEmptyState, type NativeEmptyStateProps, type NativeEmptyStateVariant, NativeFullScreenModal, type NativeFullScreenModalProps, NativeGlassSurface, type NativeGlassSurfaceProps, NativeHeaderCard, type NativeHeaderCardProps, NativeIcon, NativeIconName, type NativeIconProps, NativeImage, type NativeImageProps, NativeInlineAlert, type NativeInlineAlertProps, type NativeInlineAlertVariant, NativeInput, type NativeInputProps, NativeLabel, type NativeLabelProps, NativeListItem, NativeListItemDivider, type NativeListItemProps, NativeLoadingState, type NativeLoadingStateEdge, type NativeLoadingStateProps, NativeNumberInput, type NativeNumberInputProps, NativePagination, type NativePaginationProps, NativePopover, NativePopoverContent, type NativePopoverContentProps, type NativePopoverProps, NativePopoverTrigger, type NativePopoverTriggerProps, NativeProgress, type NativeProgressProps, NativeRadioGroup, NativeRadioGroupItem, type NativeRadioGroupItemProps, type NativeRadioGroupProps, NativeRangeSlider, type NativeRangeSliderProps, NativeRefreshControl, type NativeRefreshControlProps, NativeSearchBar, type NativeSearchBarProps, NativeSectionListHeader, type NativeSectionListHeaderProps, NativeSegmentedControl, type NativeSegmentedControlOption, type NativeSegmentedControlProps, NativeSelect, NativeSelectContent, type NativeSelectContentProps, NativeSelectItem, type NativeSelectItemProps, type NativeSelectProps, NativeSelectTrigger, type NativeSelectTriggerProps, NativeSeparator, type NativeSeparatorProps, NativeSheet, type NativeSheetLibrary, type NativeSheetProps, NativeSheetProvider, type NativeSheetProviderProps, NativeSheetScrollView, NativeSkeleton, type NativeSkeletonProps, NativeSlider, type NativeSliderProps, NativeStepper, type NativeStepperProps, type NativeStepperStep, NativeSwitch, type NativeSwitchProps, NativeTabs, NativeTabsContent, type NativeTabsContentProps, NativeTabsList, type NativeTabsListProps, type NativeTabsProps, NativeTabsTrigger, type NativeTabsTriggerProps, NativeText, type NativeTextProps, NativeTextarea, type NativeTextareaProps, NativeTimePicker, type NativeTimePickerProps, type NativeToastOptions, NativeToastProvider, type NativeToastProviderProps, type NativeToastVariant, NativeToggle, type NativeToggleProps, NativeTooltip, NativeTooltipContent, type NativeTooltipContentProps, type NativeTooltipProps, NativeTooltipTrigger, type NativeTooltipTriggerProps, type SpaceToken, type SpacingPrefix, Stack, type StackProps, type TextPreset, alertVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, spaceScale, spacingClass, textVariants, toggleVariants, useLiquidGlass, useReduceTransparency, useToast };
1102
+ /**
1103
+ * NativeThreadList — a conversation's list: oldest first, top to bottom (the
1104
+ * order VoiceOver reads), that opens at the newest row, follows new rows only
1105
+ * while you're at the bottom, keeps your place while earlier rows load at the
1106
+ * top, and can go to one row (a search result, the first unread).
1107
+ *
1108
+ * The atom under ThreadPage, and the one any app builds its own thread from:
1109
+ * it renders the rows it's given and never fetches. Earlier pages come from
1110
+ * `onLoadEarlier`, a row out of reach from `onLoadUntil(id)`.
1111
+ *
1112
+ * FlashList v2 (`GenesisModules.list`) when the app passed it: its chat mode
1113
+ * (`startRenderingFromBottom`, `autoscrollToBottomThreshold`, the first
1114
+ * visible row held when rows prepend). Without it, FlatList, which keeps its
1115
+ * place with `maintainVisibleContentPosition` (anchored past the header) and
1116
+ * follows the bottom by hand.
1117
+ *
1118
+ * Not inverted: in an inverted FlashList a new row at index 0 lands under the
1119
+ * composer, and VoiceOver reads each day's heading after its messages.
1120
+ *
1121
+ * Earlier rows load by themselves near the top, and the explicit "Load
1122
+ * earlier" button stays: VoiceOver can't reach rows a virtualized list hasn't
1123
+ * rendered. Going to a row waits for `loading`, loads until it's held,
1124
+ * scrolls to it (again after FlashList's own placement on open), highlights
1125
+ * it for two seconds and announces it. Reduce Motion scrolls without
1126
+ * animating.
1127
+ *
1128
+ * Promoted from genesis-chat's thread and its `useJumpToMessage` (G4); chat
1129
+ * moves onto it later.
1130
+ *
1131
+ * @stability Beta
1132
+ */
1133
+
1134
+ /** The scroll event fields the list reads. */
1135
+ interface ScrollMetrics {
1136
+ contentOffset: {
1137
+ y: number;
1138
+ };
1139
+ contentSize: {
1140
+ height: number;
1141
+ };
1142
+ layoutMeasurement: {
1143
+ height: number;
1144
+ };
1145
+ }
1146
+ /** Points from the bottom that still count as "at the bottom". */
1147
+ declare const THREAD_AT_BOTTOM_POINTS = 120;
1148
+ /** Whether a scroll position is at (or near) the bottom of its content. */
1149
+ declare function threadNearBottom(m: ScrollMetrics, slack?: number): boolean;
1150
+ /**
1151
+ * How the list is set up. FlashList follows by itself, within
1152
+ * `THREAD_AT_BOTTOM_POINTS` of the bottom (its threshold is a fraction of the
1153
+ * viewport: a fifth until the viewport's height is known); FlatList keeps its
1154
+ * place on prepend, anchored on the first row past the header (index 1: the
1155
+ * header is child 0), and the list follows the bottom by hand.
1156
+ */
1157
+ declare function threadListMode(flash: boolean, reducedMotion: boolean, viewportHeight?: number): {
1158
+ followsByHand: boolean;
1159
+ maintainVisibleContentPosition: Record<string, unknown>;
1160
+ };
1161
+ interface NativeThreadListHandle {
1162
+ /** Go to the newest row (after a send: what you send is what you look at next). */
1163
+ scrollToEnd: (options?: {
1164
+ animated?: boolean;
1165
+ }) => void;
1166
+ }
1167
+ /** What `renderItem` is told about a row besides the row itself. */
1168
+ interface ThreadRowInfo {
1169
+ index: number;
1170
+ /** The row a jump just landed on, for two seconds. */
1171
+ highlighted: boolean;
1172
+ }
1173
+ interface NativeThreadListProps<T> {
1174
+ /** Oldest first. */
1175
+ data: readonly T[];
1176
+ /** A row's id. It must stay the same across refreshes (from a cache to the server), or rows jump. */
1177
+ keyExtractor: (row: T) => string;
1178
+ renderItem: (row: T, info: ThreadRowInfo) => ReactElement | null;
1179
+ /** Rows of different shapes recycle apart (FlashList): "mine", "theirs", "event". */
1180
+ getItemType?: (row: T) => string;
1181
+ /** The first page is loading: shows `loadingView` (a skeleton by default), and a jump waits. */
1182
+ loading?: boolean;
1183
+ loadingView?: ReactNode;
1184
+ /** There are earlier rows: loads them near the top, and shows the "Load earlier" button. */
1185
+ hasEarlier?: boolean;
1186
+ onLoadEarlier?: () => void;
1187
+ loadingEarlier?: boolean;
1188
+ earlierLabel?: string;
1189
+ /** Replaces the default "Load earlier" button. */
1190
+ renderEarlier?: (props: {
1191
+ loading: boolean;
1192
+ onPress: () => void;
1193
+ label: string;
1194
+ testID: string;
1195
+ }) => ReactNode;
1196
+ /** Go to this row, loading earlier pages with `onLoadUntil` until it's here. A new id, or the same one after `null`, goes again. */
1197
+ jumpTo?: string | null;
1198
+ /** Load earlier pages until the row is held; resolve false when it can't be found. */
1199
+ onLoadUntil?: (id: string) => Promise<boolean>;
1200
+ /** What VoiceOver says on arriving at `jumpTo`. */
1201
+ jumpAnnouncement?: (row: T) => string;
1202
+ /** The row couldn't be found (deleted, out of reach). The list goes back to the newest row first. */
1203
+ onJumpFailed?: (id: string) => void;
1204
+ /** Whether the reader is at the bottom, as it changes (to show a "new messages" pill, say). */
1205
+ onAtBottomChange?: (atBottom: boolean) => void;
1206
+ /** Above the first row, before the "Load earlier" button: what the thread is about. */
1207
+ header?: ReactNode;
1208
+ /** Under the last row: who is typing, a "Sending…" line. */
1209
+ footer?: ReactNode;
1210
+ /** Shown instead of the rows when there are none. */
1211
+ empty?: ReactNode;
1212
+ testID?: string;
1213
+ }
1214
+ /** A conversation's list. See the module docs. */
1215
+ declare const NativeThreadList: <T>(props: NativeThreadListProps<T> & {
1216
+ ref?: React.Ref<NativeThreadListHandle>;
1217
+ }) => ReactElement | null;
1218
+
1219
+ interface NativeComposerBarProps {
1220
+ value: string;
1221
+ onChangeText: (text: string) => void;
1222
+ onSend: () => void;
1223
+ /** A send is in flight: the button spins and won't send twice. */
1224
+ sending?: boolean;
1225
+ /** Turns sending off (besides a blank value). */
1226
+ disabled?: boolean;
1227
+ placeholder?: string;
1228
+ /** Send's label, to VoiceOver. Default "Send". */
1229
+ sendLabel?: string;
1230
+ sendingLabel?: string;
1231
+ maxLength?: number;
1232
+ /** The input grows to this many lines, then scrolls. Default 6. */
1233
+ maxLines?: number;
1234
+ /** Ways to send ("Reply", "Internal note"). Two or more show the picker. */
1235
+ modes?: readonly ComposerMode[];
1236
+ /** The chosen mode's id. Default the first. */
1237
+ mode?: string;
1238
+ onModeChange?: (id: string) => void;
1239
+ leading?: ReactNode;
1240
+ trailing?: ReactNode;
1241
+ above?: ReactNode;
1242
+ testID?: string;
1243
+ }
1244
+ declare function NativeComposerBar({ value, onChangeText, onSend, sending, disabled, placeholder, sendLabel, sendingLabel, maxLength, maxLines, modes, mode, onModeChange, leading, trailing, above, testID, }: NativeComposerBarProps): react.JSX.Element;
1245
+
1246
+ type NativeRatingSize = "sm" | "md" | "lg";
1247
+ interface NativeRatingProps {
1248
+ /** The score, 0..`max`. Fractions round to the nearest star. */
1249
+ value: number;
1250
+ /** Number of stars. Default 5. */
1251
+ max?: number;
1252
+ /** Makes the stars tappable; absent, the rating is read-only. */
1253
+ onChange?: (value: number) => void;
1254
+ /** Read-only even with `onChange`. */
1255
+ readOnly?: boolean;
1256
+ /** Default "md". */
1257
+ size?: NativeRatingSize;
1258
+ /** The control's accessible name ("Service rating"): read-only reads "Service rating: 3 of 5 stars". */
1259
+ label?: string;
1260
+ /** The accessibility text for a value, in place of "N of M stars" (read-only label, each radio's label and value). */
1261
+ getLabel?: (value: number, max: number) => string;
1262
+ className?: string;
1263
+ testID?: string;
1264
+ }
1265
+ /** The value after pressing `star`: that star, or 0 when it is the current value (a press clears). */
1266
+ declare function nextRating(value: number, star: number): number;
1267
+ declare function NativeRating({ value, max, onChange, readOnly, size, label, getLabel, className, testID, }: NativeRatingProps): react.JSX.Element;
1268
+
1269
+ type NativeGalleryLayout = "justified" | "grid";
1270
+ interface NativeGalleryGridProps {
1271
+ items: GalleryItem[];
1272
+ /** Default "justified". */
1273
+ layout?: NativeGalleryLayout;
1274
+ /** Grid layout only: tiles per row. Default 3. */
1275
+ columns?: number;
1276
+ /** Grid layout only: each tile's shape, a ratio or `"item"` for the item's own. Default 1 (square), as on web. */
1277
+ aspectRatio?: GalleryTileAspect;
1278
+ /** Justified layout only: target row height in points. Default 180. */
1279
+ rowHeight?: number;
1280
+ /** Points between tiles. Default 4. */
1281
+ gap?: number;
1282
+ /** Called on a press. Not called when `onSelectionChange` is set: a press then only toggles the selection. */
1283
+ onItemPress?: (item: GalleryItem, index: number) => void;
1284
+ /** Replaces the tile's content (the image by default). */
1285
+ renderItem?: (item: GalleryItem, index: number) => ReactNode;
1286
+ /** Overlaid top-left of the default tile. */
1287
+ renderBadges?: (item: GalleryItem, index: number) => ReactNode;
1288
+ /** Ids of the selected items. With `onSelectionChange`, a press toggles the tile. */
1289
+ selected?: string[];
1290
+ onSelectionChange?: (ids: string[], detail: {
1291
+ item: GalleryItem;
1292
+ index: number;
1293
+ }) => void;
1294
+ /** Called when scrolling nears the last rows (FlatList's `onEndReached`): the hook for "load more" (NativeResourceView's name). */
1295
+ loadMore?: () => void;
1296
+ /** @deprecated Use `loadMore`. */
1297
+ onNearEnd?: () => void;
1298
+ /** Above the first row, scrolling with it. */
1299
+ header?: ReactNode;
1300
+ /** Below the last row (a "Loading more" spinner). */
1301
+ footer?: ReactNode;
1302
+ /** Groups items (in order of first appearance), each under a header reading the key (a view's `groupBy`, for an array). */
1303
+ groupBy?: (item: GalleryItem) => string;
1304
+ /** @deprecated Use `groupBy`. */
1305
+ getGroup?: (item: GalleryItem) => string;
1306
+ className?: string;
1307
+ testID?: string;
1308
+ }
1309
+ declare function NativeGalleryGrid({ items, layout, columns, aspectRatio, rowHeight, gap, onItemPress, renderItem, renderBadges, selected, onSelectionChange, loadMore: loadMoreProp, onNearEnd, header, footer, groupBy: groupByProp, getGroup, className, testID, }: NativeGalleryGridProps): react.JSX.Element;
1310
+
1311
+ /** The viewer's words, for another language. */
1312
+ interface NativeLightboxLabels {
1313
+ close: string;
1314
+ /** The pager's value for screen readers: "3 of 12". */
1315
+ position: (n: number, count: number) => string;
1316
+ /** The pager's hint for screen readers, when there's more than one. */
1317
+ pagerHint: string;
1318
+ /** A picture with no `alt`. */
1319
+ photo: (n: number, count: number) => string;
1320
+ }
1321
+ declare const defaultNativeLightboxLabels: NativeLightboxLabels;
1322
+ interface NativeLightboxProps {
1323
+ open: boolean;
1324
+ onOpenChange: (open: boolean) => void;
1325
+ items: GalleryItem[];
1326
+ /** The item shown, 0-based. */
1327
+ index: number;
1328
+ onIndexChange: (index: number) => void;
1329
+ /** Replaces the default caption (the item's `caption`). */
1330
+ renderCaption?: (item: GalleryItem, index: number) => ReactNode;
1331
+ /** Top-right slot: icon buttons for the current item. */
1332
+ renderActions?: (item: GalleryItem, index: number) => ReactNode;
1333
+ /** Replaces the page's picture (a video player, a before/after view); fills the page. */
1334
+ renderMedia?: (item: GalleryItem, index: number) => ReactNode;
1335
+ /** In the top bar, and the viewer's accessibility label. */
1336
+ title?: string;
1337
+ /** Under the title in the top bar. */
1338
+ description?: ReactNode;
1339
+ /** Pinch or double-tap the built-in photo pages to zoom. Default true. */
1340
+ zoomable?: boolean;
1341
+ /** A pull down at full size closes the viewer. Default true. */
1342
+ swipeToDismiss?: boolean;
1343
+ labels?: Partial<NativeLightboxLabels>;
1344
+ testID?: string;
1345
+ }
1346
+ declare function NativeLightbox({ open, onOpenChange, items, index, onIndexChange, renderCaption, renderActions, renderMedia, title, description, zoomable, swipeToDismiss, labels: labelOverrides, testID, }: NativeLightboxProps): react.JSX.Element;
1347
+
1348
+ /** Points pulled down (or dragged, on Android) that close the viewer on release. */
1349
+ declare const LIGHTBOX_DISMISS_DISTANCE = 110;
1350
+ /** Or a quick flick down, in points per millisecond. */
1351
+ declare const LIGHTBOX_DISMISS_VELOCITY = 1.1;
1352
+ /** How far a photo zooms in. */
1353
+ declare const LIGHTBOX_MAX_ZOOM = 4;
1354
+ /** Between two taps (each fires on release) for a double tap: a quick one measured 330ms apart on iOS. */
1355
+ declare const LIGHTBOX_DOUBLE_TAP_MS = 400;
1356
+ /** Whether a drag down that ended here closes the viewer. */
1357
+ declare function lightboxShouldDismiss(dy: number, vy: number): boolean;
1358
+ /** The zoom a pinch has reached: from where it started, by how far the fingers spread. */
1359
+ declare function lightboxPinchScale(startScale: number, startDistance: number, distance: number): number;
1360
+ /** Points between two touches. */
1361
+ declare function lightboxTouchDistance(touches: readonly {
1362
+ pageX: number;
1363
+ pageY: number;
1364
+ }[]): number;
1365
+ /** How far a zoomed photo may pan before an edge shows, per axis. */
1366
+ declare function lightboxPanLimit(scale: number, size: number): number;
1367
+ interface NativeZoomablePhotoProps {
1368
+ src: string;
1369
+ alt?: string;
1370
+ width: number;
1371
+ height: number;
1372
+ /** The page on screen: another page resets its zoom. */
1373
+ active: boolean;
1374
+ onZoomChange: (zoomed: boolean) => void;
1375
+ /** Pinch and double-tap zoom (on by default). Off, the page still pulls down to close. */
1376
+ zoomable?: boolean;
1377
+ /** How far it's pulled down, for the backdrop's fade; null when swiping down doesn't close. */
1378
+ onPull: ((dy: number) => void) | null;
1379
+ onDismiss: () => void;
1380
+ /** A single tap (shows or hides the viewer's chrome). */
1381
+ onTap: () => void;
1382
+ testID: string;
1383
+ }
1384
+ /** The page: iOS's zooming scroll view, or Android's pinch and pan. */
1385
+ declare function NativeZoomablePhoto(props: NativeZoomablePhotoProps): react.JSX.Element;
1386
+
1387
+ interface NativeGalleryCardProps {
1388
+ /** The cover picture. Without it the cover is a placeholder. */
1389
+ src?: string;
1390
+ alt?: string;
1391
+ title?: string;
1392
+ subtitle?: string;
1393
+ /** Over the cover, top-left (a `NativeBadge`, a `NativeLiveIndicator`). */
1394
+ badges?: ReactNode;
1395
+ /** Over the cover, top-right (an icon button, a menu). */
1396
+ actions?: ReactNode;
1397
+ /** Cover width ÷ height. Default 4/3. */
1398
+ ratio?: number;
1399
+ /** Draws the cover as a skeleton. */
1400
+ loading?: boolean;
1401
+ onPress?: () => void;
1402
+ className?: string;
1403
+ testID?: string;
1404
+ }
1405
+ declare function NativeGalleryCard({ src, alt, title, subtitle, badges, actions, ratio, loading, onPress, className, testID, }: NativeGalleryCardProps): react.JSX.Element;
1406
+
1407
+ type NativeLiveIndicatorVariant = "pill" | "dot";
1408
+ type NativeLiveIndicatorState = "live" | "idle" | "offline";
1409
+ interface NativeLiveIndicatorProps {
1410
+ /** Default true. `live={false}` is `state="idle"`. */
1411
+ live?: boolean;
1412
+ /** Overrides `live`: "live", "idle" (grey) or "offline" (faint). */
1413
+ state?: NativeLiveIndicatorState;
1414
+ /** Visible text and screen-reader label. Default follows the state: "Live", "Idle" or "Offline". */
1415
+ label?: string;
1416
+ /** After the label ("12 watching", "since 9:00"). */
1417
+ detail?: string;
1418
+ /** "pill" (default): dot and label on a rounded surface. "dot": the dot alone. */
1419
+ variant?: NativeLiveIndicatorVariant;
1420
+ className?: string;
1421
+ testID?: string;
1422
+ }
1423
+ declare function NativeLiveIndicator({ live, state, label, detail, variant, className, testID, }: NativeLiveIndicatorProps): react.JSX.Element;
1424
+
1425
+ export { Box, type BoxBackground, type BoxProps, FULL_SCREEN_DARK, type FlexAlign, type FlexJustify, GenesisGlassModule, Grid, type GridProps, Inline, type InlineProps, LIGHTBOX_DISMISS_DISTANCE, LIGHTBOX_DISMISS_VELOCITY, LIGHTBOX_DOUBLE_TAP_MS, LIGHTBOX_MAX_ZOOM, NativeAccordion, NativeAccordionContent, type NativeAccordionContentProps, NativeAccordionItem, type NativeAccordionItemProps, type NativeAccordionProps, NativeAccordionTrigger, type NativeAccordionTriggerProps, type NativeAccordionType, NativeAlert, NativeAlertDescription, type NativeAlertDescriptionProps, type NativeAlertProps, NativeAlertTitle, type NativeAlertTitleProps, NativeAvatar, type NativeAvatarProps, NativeBadge, type NativeBadgeProps, NativeBanner, type NativeBannerProps, NativeButton, type NativeButtonProps, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, type NativeCardProps, NativeCardTitle, type NativeCardTitleProps, NativeCheckbox, type NativeCheckboxProps, NativeChip, NativeChipGroup, type NativeChipGroupMode, type NativeChipGroupProps, type NativeChipProps, NativeCombobox, type NativeComboboxOption, type NativeComboboxProps, NativeComposerBar, type NativeComposerBarProps, NativeDatePicker, type NativeDatePickerProps, NativeDialog, NativeDialogContent, type NativeDialogContentProps, NativeDialogDescription, type NativeDialogDescriptionProps, NativeDialogFooter, type NativeDialogFooterProps, NativeDialogHeader, type NativeDialogHeaderProps, type NativeDialogProps, NativeDialogTitle, type NativeDialogTitleProps, NativeDrawer, type NativeDrawerProps, NativeDropdownMenu, NativeDropdownMenuContent, type NativeDropdownMenuContentProps, NativeDropdownMenuItem, type NativeDropdownMenuItemProps, type NativeDropdownMenuProps, NativeDropdownMenuTrigger, type NativeDropdownMenuTriggerProps, NativeEmptyState, type NativeEmptyStateProps, type NativeEmptyStateVariant, NativeFullScreenModal, type NativeFullScreenModalProps, NativeGalleryCard, type NativeGalleryCardProps, NativeGalleryGrid, type NativeGalleryGridProps, type NativeGalleryLayout, NativeGlassSurface, type NativeGlassSurfaceProps, NativeHeaderCard, type NativeHeaderCardProps, NativeIcon, NativeIconName, type NativeIconProps, NativeImage, type NativeImageProps, NativeInlineAlert, type NativeInlineAlertProps, type NativeInlineAlertVariant, NativeInput, type NativeInputProps, NativeLabel, type NativeLabelProps, NativeLightbox, type NativeLightboxLabels, type NativeLightboxProps, NativeListItem, NativeListItemDivider, type NativeListItemProps, NativeLiveIndicator, type NativeLiveIndicatorProps, type NativeLiveIndicatorState, type NativeLiveIndicatorVariant, NativeLoadingState, type NativeLoadingStateEdge, type NativeLoadingStateProps, NativeNumberInput, type NativeNumberInputProps, NativePagination, type NativePaginationProps, NativePopover, NativePopoverContent, type NativePopoverContentProps, type NativePopoverProps, NativePopoverTrigger, type NativePopoverTriggerProps, NativeProgress, type NativeProgressProps, NativeRadioGroup, NativeRadioGroupItem, type NativeRadioGroupItemProps, type NativeRadioGroupProps, NativeRangeSlider, type NativeRangeSliderProps, NativeRating, type NativeRatingProps, type NativeRatingSize, NativeRefreshControl, type NativeRefreshControlProps, NativeSearchBar, type NativeSearchBarProps, NativeSectionListHeader, type NativeSectionListHeaderProps, NativeSegmentedControl, type NativeSegmentedControlOption, type NativeSegmentedControlProps, NativeSelect, NativeSelectContent, type NativeSelectContentProps, NativeSelectItem, type NativeSelectItemProps, type NativeSelectProps, NativeSelectTrigger, type NativeSelectTriggerProps, NativeSeparator, type NativeSeparatorProps, NativeSheet, type NativeSheetLibrary, type NativeSheetProps, NativeSheetProvider, type NativeSheetProviderProps, NativeSheetScrollView, NativeSkeleton, type NativeSkeletonProps, NativeSlider, type NativeSliderProps, NativeStepper, type NativeStepperProps, type NativeStepperStep, NativeSwitch, type NativeSwitchProps, NativeTabs, NativeTabsContent, type NativeTabsContentProps, NativeTabsList, type NativeTabsListProps, type NativeTabsProps, NativeTabsTrigger, type NativeTabsTriggerProps, NativeText, type NativeTextProps, NativeTextarea, type NativeTextareaProps, NativeThreadList, type NativeThreadListHandle, type NativeThreadListProps, NativeTimePicker, type NativeTimePickerProps, type NativeToastOptions, NativeToastProvider, type NativeToastProviderProps, type NativeToastVariant, NativeToggle, type NativeToggleProps, NativeTooltip, NativeTooltipContent, type NativeTooltipContentProps, type NativeTooltipProps, NativeTooltipTrigger, type NativeTooltipTriggerProps, NativeZoomablePhoto, type NativeZoomablePhotoProps, type SpaceToken, type SpacingPrefix, Stack, type StackProps, THREAD_AT_BOTTOM_POINTS, type TextPreset, type ThreadRowInfo, alertVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, defaultNativeLightboxLabels, lightboxPanLimit, lightboxPinchScale, lightboxShouldDismiss, lightboxTouchDistance, nextRating, spaceScale, spacingClass, textVariants, threadListMode, threadNearBottom, toggleVariants, useLiquidGlass, useReduceTransparency, useToast };
@@ -1,8 +1,8 @@
1
- export { Box, FULL_SCREEN_DARK, Grid, Inline, NativeAccordion, NativeAccordionContent, NativeAccordionItem, NativeAccordionTrigger, NativeChip, NativeChipGroup, NativeCombobox, NativeDialog, NativeDialogContent, NativeDialogDescription, NativeDialogFooter, NativeDialogHeader, NativeDialogTitle, NativeDrawer, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuItem, NativeDropdownMenuTrigger, NativeFullScreenModal, NativeGlassSurface, NativeHeaderCard, NativeNumberInput, NativePagination, NativePopover, NativePopoverContent, NativePopoverTrigger, NativeProgress, NativeRadioGroup, NativeRadioGroupItem, NativeRangeSlider, NativeSlider, NativeStepper, NativeTabs, NativeTabsContent, NativeTabsList, NativeTabsTrigger, NativeToastProvider, NativeToggle, NativeTooltip, NativeTooltipContent, NativeTooltipTrigger, Stack, spaceScale, spacingClass, toggleVariants, useLiquidGlass, useReduceTransparency, useToast } from '../chunk-LBVD7XXL.js';
2
- export { NativeAlert, NativeAlertDescription, NativeAlertTitle, NativeAvatar, NativeBanner, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, NativeCardTitle, NativeCheckbox, NativeDatePicker, NativeImage, NativeInlineAlert, NativeLabel, NativeSearchBar, NativeSegmentedControl, NativeSelect, NativeSelectContent, NativeSelectItem, NativeSelectTrigger, NativeSeparator, NativeSheet, NativeSheetProvider, NativeSheetScrollView, NativeSkeleton, NativeSwitch, NativeTextarea, NativeTimePicker, alertVariants } from '../chunk-GHYUNNNU.js';
3
- import '../chunk-7PCWEY6R.js';
4
- export { GenesisModulesProvider, NATIVE_ICON_NAMES, NativeBadge, NativeButton, NativeEmptyState, NativeIcon, NativeInput, NativeListItem, NativeListItemDivider, NativeLoadingState, NativeRefreshControl, NativeSectionListHeader, NativeText, SF_SYMBOLS, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, textVariants, useGenesisModules } from '../chunk-6KWEAGRD.js';
5
- import '../chunk-Z3AQYVUA.js';
1
+ export { Box, FULL_SCREEN_DARK, Grid, Inline, LIGHTBOX_DISMISS_DISTANCE, LIGHTBOX_DISMISS_VELOCITY, LIGHTBOX_DOUBLE_TAP_MS, LIGHTBOX_MAX_ZOOM, NativeAccordion, NativeAccordionContent, NativeAccordionItem, NativeAccordionTrigger, NativeChip, NativeChipGroup, NativeCombobox, NativeDialog, NativeDialogContent, NativeDialogDescription, NativeDialogFooter, NativeDialogHeader, NativeDialogTitle, NativeDrawer, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuItem, NativeDropdownMenuTrigger, NativeFullScreenModal, NativeGalleryCard, NativeGlassSurface, NativeHeaderCard, NativeLightbox, NativeLiveIndicator, NativeNumberInput, NativePagination, NativePopover, NativePopoverContent, NativePopoverTrigger, NativeProgress, NativeRadioGroup, NativeRadioGroupItem, NativeRangeSlider, NativeRating, NativeSlider, NativeStepper, NativeTabs, NativeTabsContent, NativeTabsList, NativeTabsTrigger, NativeToastProvider, NativeToggle, NativeTooltip, NativeTooltipContent, NativeTooltipTrigger, NativeZoomablePhoto, Stack, defaultNativeLightboxLabels, lightboxPanLimit, lightboxPinchScale, lightboxShouldDismiss, lightboxTouchDistance, nextRating, spaceScale, spacingClass, toggleVariants, useLiquidGlass, useReduceTransparency, useToast } from '../chunk-2Z72MYHB.js';
2
+ export { DEFAULT_GALLERY_RATIO, GALLERY_DEFAULTS, NativeAlert, NativeAlertDescription, NativeAlertTitle, NativeAvatar, NativeBanner, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, NativeCardTitle, NativeCheckbox, NativeDatePicker, NativeGalleryGrid, NativeImage, NativeInlineAlert, NativeLabel, NativeSearchBar, NativeSegmentedControl, NativeSelect, NativeSelectContent, NativeSelectItem, NativeSelectTrigger, NativeSeparator, NativeSheet, NativeSheetProvider, NativeSheetScrollView, NativeSwitch, NativeTextarea, NativeTimePicker, alertVariants, galleryItemRatio, justifyRows } from '../chunk-NDXNSSM6.js';
3
+ export { NativeComposerBar, NativeThreadList, THREAD_AT_BOTTOM_POINTS, threadListMode, threadNearBottom } from '../chunk-SEJ6RBP7.js';
4
+ export { GenesisModulesProvider, NATIVE_ICON_NAMES, NativeBadge, NativeButton, NativeEmptyState, NativeIcon, NativeInput, NativeListItem, NativeListItemDivider, NativeLoadingState, NativeRefreshControl, NativeSectionListHeader, NativeSkeleton, NativeText, SF_SYMBOLS, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, textVariants, useGenesisModules } from '../chunk-6PGLX6ET.js';
5
+ import '../chunk-4OQOJ2OC.js';
6
6
  import '../chunk-OHZD7KRO.js';
7
7
  import '../chunk-DGUM43GV.js';
8
8
  //# sourceMappingURL=index.js.map
@@ -1,10 +1,11 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode, ComponentType } from 'react';
3
- import { ResourceFormFieldDef, BaseRecord, DataRow, FieldReference, ResourceContract } from '@marktiderman/genesis-core';
3
+ import { ResourceFormFieldDef, BaseRecord, DataRow, FieldReference, WriteConflict, ResourceContract } from '@marktiderman/genesis-core';
4
4
  import { Control, UseFormReturn } from 'react-hook-form';
5
5
  import { UseResourceOptions } from '@marktiderman/genesis-core/hooks';
6
- import { d as InboxSwipeAction, c as InboxPageSlotMap, g as ScreenHeaderProps } from '../inbox-page-BEarNEIP.js';
7
- import { ResourceView, DisplayHint, ResolvedFormField, ResolvedLink, Allowed, RowSummary, RowPicture, Viewer, ResolvedColumn, RecordView } from '@marktiderman/genesis-core/resource-view';
6
+ import { ResourceView, DisplayHint, ResolvedFormField, ResolvedLink, Allowed, RowSummary, RowPicture, Viewer, ViewGallery, ResolvedColumn, RecordView } from '@marktiderman/genesis-core/resource-view';
7
+ import { b as InboxPageSlotMap, e as ScreenHeaderProps } from '../inbox-page-B7_Oi2fS.js';
8
+ import { InboxSwipeAction } from '@marktiderman/genesis-core/conversation';
8
9
  import { ReadinessLabels } from '@marktiderman/genesis-core/resource';
9
10
  import '@marktiderman/genesis-core/slots';
10
11
  import 'react-native';
@@ -522,6 +523,12 @@ interface NativeResourceViewProps<T extends Row$1 = Row$1> extends NativeResourc
522
523
  mode?: NativeResourceViewMode;
523
524
  /** Columns in grid mode (React Native's FlatList name). Default 2. */
524
525
  numColumns?: number;
526
+ /**
527
+ * With `mode="grid"`: overrides the view's `gallery` block, or adds one. With a gallery, grid mode
528
+ * draws a photo per row in justified rows (NativeGalleryGrid, the web's layout) in place of
529
+ * cards; a row without an image is a placeholder tile, and a press opens the row as a card's does.
530
+ */
531
+ gallery?: Partial<ViewGallery>;
525
532
  /**
526
533
  * Draws each row (list) or card (grid) yourself, as the web's `renderCard`. Spread
527
534
  * `card.pressableProps` on your Pressable for the press, long press and accessibility; the
@@ -627,6 +634,61 @@ declare function useNativeResourceViewMessages(): NativeResourceViewMessages;
627
634
  /** Draw one value: the empty mark for no value or a value the row (or viewer) hides (`when`), else its hint's renderer. */
628
635
  declare function useDisplayCell(): (column: ResolvedColumn<Record<string, unknown>>, row: Record<string, unknown>) => ReactNode;
629
636
 
637
+ /** The words NativeConflictSheet shows. The same keys as genesis-ui's `uiMessages.conflict`. */
638
+ interface NativeConflictSheetMessages {
639
+ /** `{noun}`: the record's noun ("task"). */
640
+ title: string;
641
+ description: string;
642
+ /** When their change already matches what was tried. */
643
+ same: string;
644
+ theirs: string;
645
+ mine: string;
646
+ /** An empty value in the comparison. */
647
+ empty: string;
648
+ /** Their value for a field their row as read here doesn't carry. */
649
+ unknown: string;
650
+ keepMine: string;
651
+ takeTheirs: string;
652
+ /** When "keep mine" failed for another reason (offline, refused). */
653
+ failed: string;
654
+ yes: string;
655
+ no: string;
656
+ /** The noun when the screen gave none. */
657
+ record: string;
658
+ }
659
+ /**
660
+ * Props for {@link NativeConflictSheet}.
661
+ *
662
+ * @stability Beta
663
+ */
664
+ interface NativeConflictSheetProps {
665
+ /** The conflict to show (`writeConflict(error, values)`); null keeps it closed. */
666
+ conflict: WriteConflict | null;
667
+ /** The record's noun ("task"), for the title. */
668
+ noun?: string;
669
+ /** A field's label. Default: the field name, title-cased. */
670
+ label?: (field: string) => string;
671
+ /** A field's value as shown. Default: plain text. */
672
+ format?: (field: string, value: unknown) => ReactNode;
673
+ /** Save these values over theirs, at the version the conflict reported. The sheet waits for it. */
674
+ onKeepMine: () => void | Promise<void>;
675
+ /** Drop these values and show their row. */
676
+ onTakeTheirs: () => void;
677
+ /** Closed without choosing: the changes stay where they are, unsaved. */
678
+ onDismiss: () => void;
679
+ messages?: Partial<NativeConflictSheetMessages>;
680
+ testID?: string;
681
+ }
682
+ /**
683
+ * The phone's ConflictSheet: when a save met someone else's change, a bottom
684
+ * sheet shows their value above the one this person tried to save, for each
685
+ * field where they differ, then "Take theirs" or "Keep mine".
686
+ * NativeRecordView's settings sections open it on a `conflict`.
687
+ *
688
+ * @stability Beta
689
+ */
690
+ declare function NativeConflictSheet({ conflict, noun, label, format, onKeepMine, onTakeTheirs, onDismiss, messages, testID, }: NativeConflictSheetProps): react.JSX.Element;
691
+
630
692
  type Row = Record<string, unknown>;
631
693
  type AnyRecordView<T extends Row> = RecordView<ResourceContract<any>, T & DataRow>;
632
694
  /**
@@ -649,6 +711,8 @@ interface NativeRecordViewMessages extends ReadinessLabels {
649
711
  /** The back row of a section opened from the list of sections. */
650
712
  allSections: string;
651
713
  notANumber: string;
714
+ /** The conflict sheet's words (NativeConflictSheet's English when unset). */
715
+ conflict?: Partial<NativeConflictSheetMessages>;
652
716
  }
653
717
  declare const defaultNativeRecordViewMessages: NativeRecordViewMessages;
654
718
  /** Up to this many sections show as a segmented control; more are pushed rows. */
@@ -747,4 +811,4 @@ declare const defaultNativeResourceWorkspaceMessages: NativeRecordViewMessages;
747
811
  */
748
812
  declare function parseSettingNumber(text: string): number | null;
749
813
 
750
- export { type AnyResourceView, DEFAULT_MAX_PAGES, type DisplayContext, type DisplayRenderer, type DisplayRenderers, DisplayRenderersProvider, type DisplayTimeZones, DisplayTimeZonesProvider, type NativeCardFieldDef, NativeDataFilters, type NativeDataFiltersProps, NativeDataPageShell, type NativeDataPageShellProps, type NativeDetailField, NativeDetailPanel, type NativeDetailPanelProps, NativeEmptyState, type NativeEmptyStateProps, type NativeFormField, type NativeFormFieldKind, NativeRecordView, type NativeRecordViewHeaderProps, NativeRecordViewMenu, type NativeRecordViewMessages, type NativeRecordViewProps, type NativeResourceCardActions, type NativeResourceCardPressableProps, NativeResourceForm, NativeResourceFormFieldRenderer, type NativeResourceFormFieldRendererProps, type NativeResourceFormProps, NativeResourceFormSheet, type NativeResourceFormSheetProps, NativeResourcePage, type NativeResourcePageProps, type NativeResourceRowItem, type NativeResourceScreenCan, type NativeResourceSection, type NativeResourceSwipeAction, type NativeResourceSwipeableProps, NativeResourceView, type NativeResourceViewMessages, NativeResourceViewMessagesProvider, type NativeResourceViewMode, type NativeResourceViewOptions, type NativeResourceViewProps, NativeResourceWorkspace, type NativeResourceWorkspaceHeaderProps, NativeResourceWorkspaceMenu, type NativeResourceWorkspaceMessages, type NativeResourceWorkspaceProps, SEARCH_DEBOUNCE_MS, SEGMENTED_SECTIONS_MAX, type SaveResult, type UseNativeResourceViewReturn, allowed, dateToDay, dayToDate, defaultNativeRecordViewMessages, defaultNativeResourceViewMessages, defaultNativeResourceWorkspaceMessages, displayText, formFieldsFor, formatDay, formatInstant, getNativeRecordViewStackOptions, getNativeResourceWorkspaceStackOptions, nativeDisplayRenderers, openableUrl, parseSettingNumber, resolveZone, rowItem, screenValues, sectionsFor, serverSort, serverSorts, swipeActionsFor, useDisplayCell, useDisplayTimeZones, useNativeResourceView, useNativeResourceViewMessages, validateValues, writableValues };
814
+ export { type AnyResourceView, DEFAULT_MAX_PAGES, type DisplayContext, type DisplayRenderer, type DisplayRenderers, DisplayRenderersProvider, type DisplayTimeZones, DisplayTimeZonesProvider, type NativeCardFieldDef, NativeConflictSheet, type NativeConflictSheetMessages, type NativeConflictSheetProps, NativeDataFilters, type NativeDataFiltersProps, NativeDataPageShell, type NativeDataPageShellProps, type NativeDetailField, NativeDetailPanel, type NativeDetailPanelProps, NativeEmptyState, type NativeEmptyStateProps, type NativeFormField, type NativeFormFieldKind, NativeRecordView, type NativeRecordViewHeaderProps, NativeRecordViewMenu, type NativeRecordViewMessages, type NativeRecordViewProps, type NativeResourceCardActions, type NativeResourceCardPressableProps, NativeResourceForm, NativeResourceFormFieldRenderer, type NativeResourceFormFieldRendererProps, type NativeResourceFormProps, NativeResourceFormSheet, type NativeResourceFormSheetProps, NativeResourcePage, type NativeResourcePageProps, type NativeResourceRowItem, type NativeResourceScreenCan, type NativeResourceSection, type NativeResourceSwipeAction, type NativeResourceSwipeableProps, NativeResourceView, type NativeResourceViewMessages, NativeResourceViewMessagesProvider, type NativeResourceViewMode, type NativeResourceViewOptions, type NativeResourceViewProps, NativeResourceWorkspace, type NativeResourceWorkspaceHeaderProps, NativeResourceWorkspaceMenu, type NativeResourceWorkspaceMessages, type NativeResourceWorkspaceProps, SEARCH_DEBOUNCE_MS, SEGMENTED_SECTIONS_MAX, type SaveResult, type UseNativeResourceViewReturn, allowed, dateToDay, dayToDate, defaultNativeRecordViewMessages, defaultNativeResourceViewMessages, defaultNativeResourceWorkspaceMessages, displayText, formFieldsFor, formatDay, formatInstant, getNativeRecordViewStackOptions, getNativeResourceWorkspaceStackOptions, nativeDisplayRenderers, openableUrl, parseSettingNumber, resolveZone, rowItem, screenValues, sectionsFor, serverSort, serverSorts, swipeActionsFor, useDisplayCell, useDisplayTimeZones, useNativeResourceView, useNativeResourceViewMessages, validateValues, writableValues };