react-native-gtkx 0.3.0-alpha.1 → 0.4.0-alpha.3

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 (169) hide show
  1. package/README.md +35 -96
  2. package/dist/adw/index.d.ts +3 -2
  3. package/dist/adw/index.js +24 -6
  4. package/dist/adw/index.js.map +1 -1
  5. package/dist/adw/widgets.generated.d.ts +1 -1
  6. package/dist/adw/widgets.generated.js +2 -2
  7. package/dist/adw/widgets.generated.js.map +1 -1
  8. package/dist/animated/create-animated.d.ts +2 -0
  9. package/dist/animated/create-animated.js +2 -0
  10. package/dist/animated/create-animated.js.map +1 -1
  11. package/dist/animated/event.d.ts +15 -0
  12. package/dist/animated/event.js +80 -0
  13. package/dist/animated/event.js.map +1 -0
  14. package/dist/animated/index.d.ts +4 -0
  15. package/dist/animated/index.js +8 -0
  16. package/dist/animated/index.js.map +1 -1
  17. package/dist/animated/spring.d.ts +10 -0
  18. package/dist/animated/spring.js +20 -6
  19. package/dist/animated/spring.js.map +1 -1
  20. package/dist/animated/timing.d.ts +10 -0
  21. package/dist/animated/timing.js +21 -13
  22. package/dist/animated/timing.js.map +1 -1
  23. package/dist/apis/host.gtkx.js +70 -11
  24. package/dist/apis/host.gtkx.js.map +1 -1
  25. package/dist/common/navigation-stack.d.ts +6 -3
  26. package/dist/common/navigation-stack.js +8 -1
  27. package/dist/common/navigation-stack.js.map +1 -1
  28. package/dist/common/widget.js +2 -11
  29. package/dist/common/widget.js.map +1 -1
  30. package/dist/components/animated.d.ts +1 -0
  31. package/dist/components/animated.js +28 -4
  32. package/dist/components/animated.js.map +1 -1
  33. package/dist/components/app-registry.js +32 -8
  34. package/dist/components/app-registry.js.map +1 -1
  35. package/dist/components/request-animation-frame.d.ts +33 -0
  36. package/dist/components/request-animation-frame.js +83 -0
  37. package/dist/components/request-animation-frame.js.map +1 -0
  38. package/dist/components/scroll-view.js +60 -2
  39. package/dist/components/scroll-view.js.map +1 -1
  40. package/dist/components/virtualized-list.js +1 -4
  41. package/dist/components/virtualized-list.js.map +1 -1
  42. package/dist/dnd/autoscroll.d.ts +44 -0
  43. package/dist/dnd/autoscroll.js +176 -0
  44. package/dist/dnd/autoscroll.js.map +1 -0
  45. package/dist/dnd/grid-order.d.ts +45 -0
  46. package/dist/dnd/grid-order.js +151 -0
  47. package/dist/dnd/grid-order.js.map +1 -0
  48. package/dist/dnd/grid.d.ts +44 -0
  49. package/dist/dnd/grid.js +397 -0
  50. package/dist/dnd/grid.js.map +1 -0
  51. package/dist/dnd/gtk-controllers.d.ts +16 -2
  52. package/dist/dnd/gtk-controllers.js +24 -4
  53. package/dist/dnd/gtk-controllers.js.map +1 -1
  54. package/dist/dnd/index.d.ts +4 -2
  55. package/dist/dnd/index.js +9 -2
  56. package/dist/dnd/index.js.map +1 -1
  57. package/dist/dnd/order-state.d.ts +14 -0
  58. package/dist/dnd/order-state.js +55 -0
  59. package/dist/dnd/order-state.js.map +1 -0
  60. package/dist/dnd/order.d.ts +19 -0
  61. package/dist/dnd/order.js +19 -0
  62. package/dist/dnd/order.js.map +1 -1
  63. package/dist/dnd/sortable.d.ts +29 -4
  64. package/dist/dnd/sortable.js +308 -115
  65. package/dist/dnd/sortable.js.map +1 -1
  66. package/dist/dnd/types.d.ts +236 -14
  67. package/dist/dnd/types.js +30 -0
  68. package/dist/dnd/types.js.map +1 -1
  69. package/dist/gesture-handler-compat/attach-context.d.ts +29 -0
  70. package/dist/gesture-handler-compat/attach-context.js +90 -0
  71. package/dist/gesture-handler-compat/attach-context.js.map +1 -0
  72. package/dist/gesture-handler-compat/detector-runtime.d.ts +14 -3
  73. package/dist/gesture-handler-compat/detector-runtime.js +15 -5
  74. package/dist/gesture-handler-compat/detector-runtime.js.map +1 -1
  75. package/dist/gesture-handler-compat/detector.js +57 -2
  76. package/dist/gesture-handler-compat/detector.js.map +1 -1
  77. package/dist/gesture-handler-compat/gesture-state-manager.d.ts +5 -0
  78. package/dist/gesture-handler-compat/gesture-state-manager.js +77 -0
  79. package/dist/gesture-handler-compat/gesture-state-manager.js.map +1 -0
  80. package/dist/gesture-handler-compat/index.d.ts +2 -2
  81. package/dist/gesture-handler-compat/index.js +38 -33
  82. package/dist/gesture-handler-compat/index.js.map +1 -1
  83. package/dist/gesture-handler-compat/recognizer.d.ts +12 -1
  84. package/dist/gesture-handler-compat/recognizer.js +23 -9
  85. package/dist/gesture-handler-compat/recognizer.js.map +1 -1
  86. package/dist/gesture-handler-compat/tag-registry.d.ts +14 -0
  87. package/dist/gesture-handler-compat/tag-registry.js +19 -0
  88. package/dist/gesture-handler-compat/tag-registry.js.map +1 -0
  89. package/dist/globals/index.d.ts +47 -0
  90. package/dist/globals/index.js +181 -0
  91. package/dist/globals/index.js.map +1 -0
  92. package/dist/globals/install.d.ts +1 -0
  93. package/dist/globals/install.js +14 -0
  94. package/dist/globals/install.js.map +1 -0
  95. package/dist/gtk/index.js +4 -3
  96. package/dist/gtk/index.js.map +1 -1
  97. package/dist/gtkx/bridge/adw-namespace.d.ts +2 -0
  98. package/dist/gtkx/bridge/adw-namespace.js +26 -0
  99. package/dist/gtkx/bridge/adw-namespace.js.map +1 -0
  100. package/dist/gtkx/bridge/adw.d.ts +23 -0
  101. package/dist/gtkx/bridge/adw.js +93 -0
  102. package/dist/gtkx/bridge/adw.js.map +1 -0
  103. package/dist/gtkx/bridge/color-scheme-parse.d.ts +11 -0
  104. package/dist/gtkx/bridge/color-scheme-parse.js +42 -0
  105. package/dist/gtkx/bridge/color-scheme-parse.js.map +1 -0
  106. package/dist/gtkx/bridge/color-scheme-portal.d.ts +24 -0
  107. package/dist/gtkx/bridge/color-scheme-portal.js +172 -0
  108. package/dist/gtkx/bridge/color-scheme-portal.js.map +1 -0
  109. package/dist/gtkx/bridge/core.d.ts +25 -0
  110. package/dist/gtkx/bridge/core.js +69 -0
  111. package/dist/gtkx/bridge/core.js.map +1 -0
  112. package/dist/gtkx/bridge/drag-layer.d.ts +27 -0
  113. package/dist/gtkx/bridge/drag-layer.js +177 -0
  114. package/dist/gtkx/bridge/drag-layer.js.map +1 -0
  115. package/dist/gtkx/bridge/index.d.ts +1 -27
  116. package/dist/gtkx/bridge/index.js +12 -71
  117. package/dist/gtkx/bridge/index.js.map +1 -1
  118. package/dist/gtkx/bridge/view-box.js +1 -1
  119. package/dist/gtkx/bridge/view-box.js.map +1 -1
  120. package/dist/gtkx/bridge/widgets.generated.adw.d.ts +1 -0
  121. package/dist/gtkx/bridge/widgets.generated.adw.js +16 -0
  122. package/dist/gtkx/bridge/widgets.generated.adw.js.map +1 -0
  123. package/dist/gtkx/bridge/widgets.generated.d.ts +0 -1
  124. package/dist/gtkx/bridge/widgets.generated.js +3 -3
  125. package/dist/gtkx/bridge/widgets.generated.js.map +1 -1
  126. package/dist/index.js +20 -0
  127. package/dist/index.js.map +1 -1
  128. package/dist/mcp/bin.js +1 -1
  129. package/dist/mcp/bin.js.map +1 -1
  130. package/dist/mcp/data/generated.d.ts +815 -481
  131. package/dist/mcp/data/generated.js +933 -513
  132. package/dist/mcp/data/generated.js.map +1 -1
  133. package/dist/mcp/resolve.d.ts +2 -2
  134. package/dist/mcp/resolve.js +2 -2
  135. package/dist/mcp/resolve.js.map +1 -1
  136. package/dist/mcp/server.js +2 -2
  137. package/dist/mcp/server.js.map +1 -1
  138. package/dist/metro/index.d.ts +1 -0
  139. package/dist/metro/index.js +12 -0
  140. package/dist/metro/index.js.map +1 -1
  141. package/dist/navigation/sidebar.js +2 -45
  142. package/dist/navigation/sidebar.js.map +1 -1
  143. package/dist/reanimated-compat/animatable-value.d.ts +158 -0
  144. package/dist/reanimated-compat/animatable-value.js +316 -0
  145. package/dist/reanimated-compat/animatable-value.js.map +1 -0
  146. package/dist/reanimated-compat/animation.d.ts +34 -13
  147. package/dist/reanimated-compat/animation.js +97 -25
  148. package/dist/reanimated-compat/animation.js.map +1 -1
  149. package/dist/reanimated-compat/mutable.js +6 -6
  150. package/dist/reanimated-compat/mutable.js.map +1 -1
  151. package/dist/reanimated-compat/updater-animations.js +32 -12
  152. package/dist/reanimated-compat/updater-animations.js.map +1 -1
  153. package/dist/runner/host-dev.js +5 -1
  154. package/dist/runner/host-dev.js.map +1 -1
  155. package/dist/runner/host.js +9 -1
  156. package/dist/runner/host.js.map +1 -1
  157. package/dist/sea/bundle.js +1 -1
  158. package/dist/sea/bundle.js.map +1 -1
  159. package/dist/sea/native-shim.js +3 -2
  160. package/dist/sea/native-shim.js.map +1 -1
  161. package/dist/vite/index.js +130 -0
  162. package/dist/vite/index.js.map +1 -1
  163. package/dist/vitest/index.d.ts +1 -1
  164. package/dist/vitest/index.js +1 -1
  165. package/dist/vitest/index.js.map +1 -1
  166. package/package.json +1 -1
  167. package/dist/gtkx/bridge/theme.d.ts +0 -4
  168. package/dist/gtkx/bridge/theme.js +0 -5
  169. package/dist/gtkx/bridge/theme.js.map +0 -1
package/README.md CHANGED
@@ -5,8 +5,9 @@
5
5
  <h1 align="center">react-native-gtkx</h1>
6
6
 
7
7
  <p align="center"><b>React Native for the Linux desktop.</b><br/>
8
- Write apps against the familiar React Native APIthey run as native GNOME<br/>
9
- applications on real GTK4/Adwaita widgets, with no WebView and no canvas rendering.</p>
8
+ The <code>react-native</code> API, rendered as real GTK4/Adwaita widgetsno WebView,<br/>
9
+ no canvas, no bridge. Linux is a React Native out-of-tree platform here:<br/>
10
+ <code>npx react-native run-linux</code>, next to <code>run-ios</code> and <code>run-android</code>.</p>
10
11
 
11
12
  <p align="center">
12
13
  <a href="https://github.com/itsmepetrov/react-native-gtkx/actions/workflows/ci.yml"><img src="https://github.com/itsmepetrov/react-native-gtkx/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
@@ -14,110 +15,48 @@ applications on real GTK4/Adwaita widgets, with no WebView and no canvas renderi
14
15
  <a href="https://github.com/itsmepetrov/react-native-gtkx/releases"><img src="https://img.shields.io/github/v/release/itsmepetrov/react-native-gtkx?label=deb%20packages" alt="releases" /></a>
15
16
  </p>
16
17
 
17
- Under the hood: [gtkx](https://github.com/gtkx-org/gtkx) (a React reconciler for GTK4 on Node.js) + [Yoga](https://yogalayout.dev) (the RN flexbox engine). The model follows react-native-web: a compatibility layer on top of another renderer, with the `react-native` `react-native-gtkx` alias provided by the Metro preset (Linux as a standard RN [out-of-tree platform](https://reactnative.dev/docs/out-of-tree-platforms) `npx react-native run-linux` next to `run-ios`/`run-android`) or by the vite preset for Linux-first projects.
18
+ Under the hood: [gtkx](https://github.com/gtkx-org/gtkx) (a React reconciler for GTK4, with an in-process FFI into libgtk) and [Yoga](https://yogalayout.dev) the same flexbox engine React Native itself uses. Navigation runs on real Adwaita widgets: react-navigation's stack and drawer are backed by an actual `Adw.NavigationView`/`Adw.NavigationSplitView`, so the back button, the slide transition, Escape, the back gesture and the back-history menu are the platform's, not a JS re-implementation. Past the portable surface, `react-native-gtkx/gtk` and `/adw` hand you every GTK/Adwaita widget directly — including a navigation stack that needs no router at all.
18
19
 
19
- | ![Hacker News list — react-native-gtkx](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/shots/hn-list.png) | ![story screen with comments](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/shots/hn-story.png) |
20
- | :-------------------------------------------------------------: | :----------------------------------------------------: |
20
+ <table align="center">
21
+ <tr>
22
+ <td><img src="https://raw.githubusercontent.com/itsmepetrov/react-native-gtkx/main/docs/shots/hn-list.png" alt="Hacker News list — react-native-gtkx"/></td>
23
+ <td><img src="https://raw.githubusercontent.com/itsmepetrov/react-native-gtkx/main/docs/shots/hn-story.png" alt="story screen with comments"/></td>
24
+ </tr>
25
+ </table>
21
26
 
22
- _`examples/hn-app`, live in native GTK windows: a Hacker News reader on the standard React Native Metro toolchain. Tapping a card pushes a real `Adw.NavigationView` page — the back button, the slide and the preserved list position come from the platform, not from JS. The search field sits **inside** the HeaderBar (real RN content in native chrome) and queries the HN API; comments load as you scroll. The data layer is plain Node `fetch` — on this platform "native modules" are just Node._
27
+ <p align="center"><i><code>examples/hn-app</code>, live in native GTK windows: a Hacker News reader on the standard React Native Metro toolchain. Tapping a card pushes a real <code>Adw.NavigationView</code> page — the back button, the slide and the preserved list position come from the platform, not from JS. The search field sits <b>inside</b> the HeaderBar (real RN content in native chrome) and queries the HN API; comments load as you scroll. The data layer is plain Node <code>fetch</code> — on this platform "native modules" are just Node.</i></p>
23
28
 
24
29
  And the portability proof — `examples/profile` renders ONE source file with both renderers, not a single `@gtkx/*` import in it:
25
30
 
26
- | react-native-gtkx (GTK4) | react-native-web (browser) |
27
- | ------------------------------------------------------------------- | ----------------------------------------------------------------------- |
28
- | <img src="https://raw.githubusercontent.com/itsmepetrov/react-native-gtkx/main/docs/shots/profile.png" width="400" alt="profile — GTK"/> | <img src="https://raw.githubusercontent.com/itsmepetrov/react-native-gtkx/main/docs/shots/profile-web.png" width="400" alt="profile — web"/> |
29
-
30
- ## Status
31
-
32
- - [x] Yoga + GtkFixed spike — **GO** (0 px accuracy, 500-node reflow in 0.17 ms, 60 fps `docs/research/yoga-gtk-spike.md`)
33
- - [x] Dev environment (UTM VM with a native GNOME session, headless sway for tests) and dev workflow
34
- - [x] gtkx bridge (isolation from the RC API; [workaround catalog](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/gtkx-rc4-notes.md))
35
- - [x] Layout engine (Yoga shadow tree, measure via Pango, batching, diffing, onLayout)
36
- - [x] StyleSheet: layout/visual split, CSS Color 4 colors, PlatformColor → Adwaita
37
- - [x] View / Text / Image / AppRegistry — first RN render in GTK
38
- - [x] Platform / Dimensions / Appearance / AppState / Alert / Linking (+ hooks)
39
- - [x] Pressable / TouchableOpacity / TextInput / ScrollView / FlatList / Switch / Modal / Animated
40
- - [x] Vite preset (alias, platform extensions) + project template (install window in 63 s)
41
- - [x] Component gallery and documentation
42
- - [x] Windowed lists: virtualization (10k rows), sticky headers, SectionList, scrollToIndex, viewability, inverted (RN chat semantics), refresh parity
43
- - [x] Linux as an RN **out-of-tree platform**: the standard Metro/Babel toolchain, `react-native.config.js` declared by the dependency, `npx react-native run-linux`, compiled package distribution (attw-checked) — see `examples/rn-app` (a cli-init app with ios + android + linux)
44
- - [x] **Fast Refresh on both toolchains**: `run-linux --dev` (Metro dev server + HMR in the GTK host, state preserved) and `gtkx dev` (vite)
45
- - [x] **Navigation on real Adwaita widgets**: react-navigation navigators backed by `Adw.NavigationView` and `Adw.NavigationSplitView` — see below
46
-
47
- Verified live: `examples/hn-app` (a Hacker News reader on the Metro path), `examples/gallery` (the whole surface, 32 sections), and `examples/tasks-app` (a full GNOME task manager — a port of the [gtkx tutorial](https://gtkx.dev/tutorial/)'s Tasks app, and the platform's most demanding app so far) — 1,647 tests (unit + component tests under headless Wayland).
48
-
49
- ## Navigation is native, not redrawn
50
-
51
- ```tsx
52
- import { NavigationContainer } from "@react-navigation/native"
53
- import { createStackNavigator } from "react-native-gtkx/navigation"
31
+ <table align="center">
32
+ <tr>
33
+ <th>react-native-gtkx (GTK4)</th>
34
+ <th>react-native-web (browser)</th>
35
+ </tr>
36
+ <tr>
37
+ <td><img src="https://raw.githubusercontent.com/itsmepetrov/react-native-gtkx/main/docs/shots/profile.png" width="400" alt="profileGTK"/></td>
38
+ <td><img src="https://raw.githubusercontent.com/itsmepetrov/react-native-gtkx/main/docs/shots/profile-web.png" width="400" alt="profile web"/></td>
39
+ </tr>
40
+ </table>
41
+
42
+ ## Quickstart
43
+
44
+ ```bash
45
+ npx degit itsmepetrov/react-native-gtkx/template my-app && cd my-app
46
+ npm install && npm run dev # a window, with Fast Refresh
54
47
  ```
55
48
 
56
- Screens are real `Adw.NavigationPage`s inside an `Adw.NavigationView`, and
57
- react-navigation state stays the source of truth. The consequence: the back
58
- button, the slide transition, Escape, the back gesture and the back-history
59
- menu are the platform's, not a JS re-implementation — and a native pop is
60
- reported back into react-navigation state instead of fighting it. Screen
61
- options map onto the real chrome (`title`, `headerShown`, `gestureEnabled`
62
- → the page's `can-pop`, which is also what makes `usePreventRemove` work),
63
- `headerLeft`/`headerRight` accept ordinary React Native content rendered
64
- _inside_ the HeaderBar, and `createSidebarNavigator` gives the desktop
65
- answer to a drawer: a persistent `Adw.NavigationSplitView` sidebar
66
- (`examples/gallery` runs on it).
67
-
68
- **No other out-of-tree React Native platform does this.** react-native-screens
69
- lists Windows support, but it is an old-architecture stub that does not build
70
- against modern react-native-windows — Microsoft's own showcase app falls back
71
- to the JS drawer; react-native-macos is not supported by it at all, because
72
- AppKit has no navigation-stack primitive to bind to. GTK4/libadwaita does have
73
- one, so the model here is the iOS `native-stack` one:
74
- [docs/research/navigation-extensibility.md](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/research/navigation-extensibility.md)
75
- lays out the split, what an app can reach, and what is meaningless on a
76
- desktop.
77
-
78
- Underneath it, [`react-native-gtkx/gtk` and `react-native-gtkx/adw`](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/platform-layer.md) exposes the
79
- widgets themselves — including a navigation stack that needs no router at
80
- all, and GTK widgets that take a React Native `style` for position and
81
- appearance. react-navigation is a convenience here, not the ceiling.
82
-
83
- ## Performance architecture
84
-
85
- There is no "bridge tax" here. React Native's historic bottleneck — JSON
86
- batches serialized between the JS and native threads — does not exist in this
87
- architecture: gtkx binds GTK through an in-process FFI (NAPI-RS), so a widget
88
- call is a synchronous C call on the same thread, with numbers and pointers
89
- marshalled directly. That is the same direction React Native itself took with
90
- JSI/Fabric, where Yoga and view commits run through direct synchronous calls.
91
-
92
- Layout math runs in Yoga compiled to WASM (near-native speed): a 500-node
93
- reflow measures at 0.13–0.17 ms. The GTK side is driven by our own
94
- GtkLayoutManager subclass; a full measure+allocate pass over a 50-child
95
- container costs ~0.21 ms including every FFI hop. Animation frames bypass
96
- layout entirely — an Animated value write is a WeakMap store plus one queued
97
- GTK allocation. Two orders of magnitude of headroom against a 60 fps frame
98
- budget, measured, not estimated (see docs/research/yoga-gtk-spike.md and
99
- docs/research/layout-manager.md).
100
-
101
- Those are this layer's own costs, and a scrolling-list study measured what
102
- share of a real frame they are: 0.6 ms of a 44.5 ms frame at full screen,
103
- where the rest is software rasterization on a GPU-less test VM. Windowed,
104
- a `FlatList` is indistinguishable from a native `GtkScrolledWindow`. Read
105
- that as "the compatibility layer is not what costs frames on that rig"
106
- rather than as an absolute — the same study retracted an earlier headline
107
- number that had compared two different window sizes
108
- (docs/research/scroll-performance.md).
49
+ Adding Linux to an app that already ships iOS/Android is `npm install react-native-gtkx`, a one-line Metro config wrap, and `npx react-native run-linux` — see [installation](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/guide/installation.md).
109
50
 
110
51
  ## Documentation
111
52
 
112
- - [Getting Started](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/getting-started.md) a new project in a minute, and adding Linux to an existing RN app;
113
- - [API v1](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/api.md) — the full surface and differences from RN;
114
- - [The platform layer](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/platform-layer.md) — `react-native-gtkx/gtk` and `react-native-gtkx/adw`: Adwaita and GTK widgets as React components, driven by React Native style, usable with your own router or none at all;
115
- - [Gestures](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/gestures.md) — the responder system and `PanResponder` on GTK: which layer to reach for, how the negotiation works, every difference from React Native, and what to do about `react-native-gesture-handler`;
116
- - [Drag and drop](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/api.md#drag-and-drop-react-native-gtkxdnd) — `react-native-gtkx/dnd`: `react-native-reanimated-dnd`'s API on GTK's own drag-and-drop, aliased by both bundler presets (along with `GestureHandlerRootView`) so an app that already has drag-and-drop adds a Linux build without touching its source. That claim is tested by running **upstream's own example app** here: [`examples/reanimated-dnd`](examples/reanimated-dnd/README.md), whose README lists every line the port had to change;
117
- - [Reanimated](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/api.md#react-native-reanimated-react-native-gtkxreanimated) — `react-native-gtkx/reanimated`: shared values, `useAnimatedStyle` and the `with*` animations reimplemented on one runtime and aliased onto the package name, plus the honest boundary of what a widget can be told without a React render;
118
- - [Navigation research](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/research/navigation-extensibility.md) — the two layers, how an existing react-navigation app ports, and why the other desktop RN platforms never got native navigation;
119
- - [What we need from gtkx](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/upstream-gtkx.md) — the standing upstream agenda (bugs with repros, API asks, workarounds we want to delete);
120
- - [CONTRIBUTING](https://github.com/itsmepetrov/react-native-gtkx/blob/main/CONTRIBUTING.md) — developing the library (from macOS — via the UTM VM).
53
+ The full docs, including screenshots per component and a searchable reference, are published at [itsmepetrov.github.io/react-native-gtkx](https://itsmepetrov.github.io/react-native-gtkx/) (source in this repo's `docs/` tree):
54
+
55
+ - [Guide](https://itsmepetrov.github.io/react-native-gtkx/docs/guide/installation) — [installation](https://itsmepetrov.github.io/react-native-gtkx/docs/guide/installation), [your first app](https://itsmepetrov.github.io/react-native-gtkx/docs/guide/first-app), [Metro vs. vite toolchains](https://itsmepetrov.github.io/react-native-gtkx/docs/guide/toolchains), the [plain-GTK profile](https://itsmepetrov.github.io/react-native-gtkx/docs/guide/plain-gtk), [packaging](https://itsmepetrov.github.io/react-native-gtkx/docs/guide/packaging) (debs, standalone).
56
+ - [Reference](https://itsmepetrov.github.io/react-native-gtkx/docs/reference) — every component and API, each with its GTK/Adw badge and its differences from React Native.
57
+ - [Architecture](https://itsmepetrov.github.io/react-native-gtkx/docs/architecture/overview) — [overview](https://itsmepetrov.github.io/react-native-gtkx/docs/architecture/overview) (the reconciler-to-gtkx path, the widget surface), [layout and styling](https://itsmepetrov.github.io/react-native-gtkx/docs/architecture/layout-and-styling) (the Yoga shadow tree, the style split), [gestures](https://itsmepetrov.github.io/react-native-gtkx/docs/architecture/gestures), and [window/navigation/settings integration](https://itsmepetrov.github.io/react-native-gtkx/docs/architecture/integration).
58
+ - [gtkx upstream agenda](https://github.com/itsmepetrov/react-native-gtkx/blob/main/docs/upstream-gtkx.md) — the standing agenda for gtkx itself.
59
+ - [CONTRIBUTING](https://github.com/itsmepetrov/react-native-gtkx/blob/main/CONTRIBUTING.md) — developing the library from macOS, via a Linux VM.
121
60
 
122
61
  ## Requirements
123
62
 
@@ -1,3 +1,4 @@
1
1
  export * from "./widgets.generated";
2
- export { Adw } from "../gtkx/bridge/index";
3
- export { AdwBreakpoint, AdwShortcutsItem, AdwShortcutsSection, AdwToggle, } from "../gtkx/bridge/index";
2
+ export { Adw } from "../gtkx/bridge/adw-namespace";
3
+ declare const AdwBreakpoint: (props: import("@gtkx/jsx/adw").AdwBreakpointProps) => React.ReactNode, AdwShortcutsItem: (props: import("@gtkx/jsx/adw").AdwShortcutsItemProps) => React.ReactNode, AdwShortcutsSection: (props: import("@gtkx/jsx/adw").AdwShortcutsSectionProps) => React.ReactNode, AdwToggle: (props: import("@gtkx/jsx/adw").AdwToggleProps) => React.ReactNode;
4
+ export { AdwBreakpoint, AdwShortcutsItem, AdwShortcutsSection, AdwToggle };
package/dist/adw/index.js CHANGED
@@ -13,6 +13,7 @@
13
13
  // Here, this subpath exposes primitives and react-native-gtkx/navigation
14
14
  // binds them to react-navigation. You can skip the binding entirely — drive
15
15
  // NavigationStack from useState, from your own router, from anything.
16
+ import { requireAdwJsx } from "../gtkx/bridge/adw";
16
17
  // The raw widgets, exactly as gtkx binds them — every GObject property and
17
18
  // signal, including ones added after this file was written.
18
19
  //
@@ -25,17 +26,34 @@
25
26
  // in react-native-gtkx/common is a declarative alternative, never a
26
27
  // replacement, and a standard widget must stay reachable.
27
28
  export * from "./widgets.generated";
28
- // Exported as a value: it carries both the enums you need at runtime and the
29
- // types you need for refs `useRef<Adw.NavigationView | null>(null)`.
30
- export { Adw } from "../gtkx/bridge/index";
29
+ // This whole subpath REQUIRES Adw-1 (see .claude/epics/adw-optional/001.md
30
+ // and docs/api.md) a bare re-export of an actual namespace import (see
31
+ // gtkx/bridge/adw-namespace.ts), so `Adw` keeps working exactly as it did
32
+ // before this epic: both a value (`Adw.Toast.new(title)`, `Adw.ColorScheme
33
+ // .FORCE_DARK`) and a namespace in type position (`Ref<Adw.ToastOverlay |
34
+ // null>`), in ONE import, from real apps (examples/tasks-app/tasks-nav's
35
+ // toast.tsx and window.tsx, examples/gallery's adwaita-stack.tsx) as well
36
+ // as ours. That duality does not survive being synthesized through a
37
+ // function call (tried: adw.ts's requireAdwGi() — the value comes through
38
+ // fine, but "Cannot find namespace 'Adw'" everywhere it was used as a
39
+ // type), which is why this is a re-export of a plain, eager, static import
40
+ // rather than routed through the lazy probe every other Adw value in this
41
+ // package goes through. Importing react-native-gtkx/adw without Adw-1
42
+ // throws at import time regardless — just as a build failure one line
43
+ // down (adw-namespace.ts's own `@gtkx/gi/adw` import, unresolvable without
44
+ // it) instead of a thrown Error, which is an equally loud refusal for a
45
+ // subpath that always requires Adw.
46
+ export { Adw } from "../gtkx/bridge/adw-namespace";
31
47
  // Auxiliary JSX elements that are not Adw.Widget subclasses, so the
32
48
  // generated widget surface above never sees them: a responsive breakpoint
33
49
  // (the `breakpoints` prop of AdwApplicationWindow/AdwBreakpointBin/AdwDialog
34
50
  // takes one of these as a child) and the two leaf elements a
35
51
  // AdwShortcutsDialog's AdwShortcutsSection is built from. See
36
- // docs/platform-layer.md "Unwrapped by necessity" and "Two ways to react
37
- // to size" createSidebarNavigator's own collapse
52
+ // docs/architecture/overview.md, "The widget surface: wrapped, raw, and
53
+ // auxiliary", and docs/architecture/layout-and-styling.md, "Two ways to
54
+ // react to size" — createSidebarNavigator's own collapse
38
55
  // (src/navigation/sidebar.tsx) pairs AdwBreakpoint with AdwBreakpointBin
39
56
  // (a real widget, wrapped above) to scope a breakpoint to a subtree.
40
- export { AdwBreakpoint, AdwShortcutsItem, AdwShortcutsSection, AdwToggle, } from "../gtkx/bridge/index";
57
+ const { AdwBreakpoint, AdwShortcutsItem, AdwShortcutsSection, AdwToggle } = requireAdwJsx("react-native-gtkx/adw");
58
+ export { AdwBreakpoint, AdwShortcutsItem, AdwShortcutsSection, AdwToggle };
41
59
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/adw/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,EAAE;AACF,iEAAiE;AACjE,8DAA8D;AAC9D,yFAAyF;AACzF,4BAA4B;AAC5B,EAAE;AACF,0EAA0E;AAC1E,4EAA4E;AAC5E,EAAE;AACF,wEAAwE;AACxE,6EAA6E;AAC7E,yEAAyE;AACzE,4EAA4E;AAC5E,sEAAsE;AAEtE,2EAA2E;AAC3E,4DAA4D;AAC5D,EAAE;AACF,wEAAwE;AACxE,6EAA6E;AAC7E,yEAAyE;AACzE,mEAAmE;AACnE,6EAA6E;AAC7E,6EAA6E;AAC7E,oEAAoE;AACpE,0DAA0D;AAC1D,cAAc,qBAAqB,CAAA;AAEnC,6EAA6E;AAC7E,uEAAuE;AACvE,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,oEAAoE;AACpE,0EAA0E;AAC1E,6EAA6E;AAC7E,6DAA6D;AAC7D,8DAA8D;AAC9D,yEAAyE;AACzE,mDAAmD;AACnD,yEAAyE;AACzE,qEAAqE;AACrE,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,SAAS,GACV,MAAM,sBAAsB,CAAA","sourcesContent":["// react-native-gtkx/adw — libadwaita widgets as React components.\n//\n// The Adwaita half of the platform layer; its GTK counterpart is\n// react-native-gtkx/gtk, and what we wrote ourselves lives in\n// react-native-gtkx/common (NavigationStack, SlotContent, wrapReactNative). Nothing here\n// imports react-navigation.\n//\n// NAMING, one rule across both subpaths: a name carrying a `Gtk` or `Adw`\n// prefix IS that widget, as gtkx binds it. A name without a prefix is ours.\n//\n// The layering mirrors the React Native ecosystem: react-native-screens\n// exposes primitives, @react-navigation/native-stack binds them to a router.\n// Here, this subpath exposes primitives and react-native-gtkx/navigation\n// binds them to react-navigation. You can skip the binding entirely — drive\n// NavigationStack from useState, from your own router, from anything.\n\n// The raw widgets, exactly as gtkx binds them — every GObject property and\n// signal, including ones added after this file was written.\n//\n// AdwNavigationView and AdwNavigationPage are the imperative originals:\n// NavigationStack above is a declarative alternative, NOT a replacement, and\n// a standard widget must never become unreachable because we wrapped it.\n// The full Adwaita widget surface lives in a generated file: every\n// Adw.Widget subclass gtkx binds, wrapped so React Native drives it. The raw\n// AdwNavigationView and AdwNavigationPage are in there too — NavigationStack\n// in react-native-gtkx/common is a declarative alternative, never a\n// replacement, and a standard widget must stay reachable.\nexport * from \"./widgets.generated\"\n\n// Exported as a value: it carries both the enums you need at runtime and the\n// types you need for refs`useRef<Adw.NavigationView | null>(null)`.\nexport { Adw } from \"../gtkx/bridge/index\"\n\n// Auxiliary JSX elements that are not Adw.Widget subclasses, so the\n// generated widget surface above never sees them: a responsive breakpoint\n// (the `breakpoints` prop of AdwApplicationWindow/AdwBreakpointBin/AdwDialog\n// takes one of these as a child) and the two leaf elements a\n// AdwShortcutsDialog's AdwShortcutsSection is built from. See\n// docs/platform-layer.md \"Unwrapped by necessity\" and \"Two ways to react\n// to size\" — createSidebarNavigator's own collapse\n// (src/navigation/sidebar.tsx) pairs AdwBreakpoint with AdwBreakpointBin\n// (a real widget, wrapped above) to scope a breakpoint to a subtree.\nexport {\n AdwBreakpoint,\n AdwShortcutsItem,\n AdwShortcutsSection,\n AdwToggle,\n} from \"../gtkx/bridge/index\"\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/adw/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,EAAE;AACF,iEAAiE;AACjE,8DAA8D;AAC9D,yFAAyF;AACzF,4BAA4B;AAC5B,EAAE;AACF,0EAA0E;AAC1E,4EAA4E;AAC5E,EAAE;AACF,wEAAwE;AACxE,6EAA6E;AAC7E,yEAAyE;AACzE,4EAA4E;AAC5E,sEAAsE;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAElD,2EAA2E;AAC3E,4DAA4D;AAC5D,EAAE;AACF,wEAAwE;AACxE,6EAA6E;AAC7E,yEAAyE;AACzE,mEAAmE;AACnE,6EAA6E;AAC7E,6EAA6E;AAC7E,oEAAoE;AACpE,0DAA0D;AAC1D,cAAc,qBAAqB,CAAA;AAEnC,2EAA2E;AAC3E,yEAAyE;AACzE,0EAA0E;AAC1E,2EAA2E;AAC3E,0EAA0E;AAC1E,yEAAyE;AACzE,0EAA0E;AAC1E,qEAAqE;AACrE,0EAA0E;AAC1E,sEAAsE;AACtE,2EAA2E;AAC3E,0EAA0E;AAC1E,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,wEAAwE;AACxE,oCAAoC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,8BAA8B,CAAA;AAElD,oEAAoE;AACpE,0EAA0E;AAC1E,6EAA6E;AAC7E,6DAA6D;AAC7D,8DAA8D;AAC9D,wEAAwE;AACxE,wEAAwE;AACxE,yDAAyD;AACzD,yEAAyE;AACzE,qEAAqE;AACrE,MAAM,EAAE,aAAa,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,SAAS,EAAE,GACvE,aAAa,CAAC,uBAAuB,CAAC,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,SAAS,EAAE,CAAA","sourcesContent":["// react-native-gtkx/adw — libadwaita widgets as React components.\n//\n// The Adwaita half of the platform layer; its GTK counterpart is\n// react-native-gtkx/gtk, and what we wrote ourselves lives in\n// react-native-gtkx/common (NavigationStack, SlotContent, wrapReactNative). Nothing here\n// imports react-navigation.\n//\n// NAMING, one rule across both subpaths: a name carrying a `Gtk` or `Adw`\n// prefix IS that widget, as gtkx binds it. A name without a prefix is ours.\n//\n// The layering mirrors the React Native ecosystem: react-native-screens\n// exposes primitives, @react-navigation/native-stack binds them to a router.\n// Here, this subpath exposes primitives and react-native-gtkx/navigation\n// binds them to react-navigation. You can skip the binding entirely — drive\n// NavigationStack from useState, from your own router, from anything.\nimport { requireAdwJsx } from \"../gtkx/bridge/adw\"\n\n// The raw widgets, exactly as gtkx binds them — every GObject property and\n// signal, including ones added after this file was written.\n//\n// AdwNavigationView and AdwNavigationPage are the imperative originals:\n// NavigationStack above is a declarative alternative, NOT a replacement, and\n// a standard widget must never become unreachable because we wrapped it.\n// The full Adwaita widget surface lives in a generated file: every\n// Adw.Widget subclass gtkx binds, wrapped so React Native drives it. The raw\n// AdwNavigationView and AdwNavigationPage are in there too — NavigationStack\n// in react-native-gtkx/common is a declarative alternative, never a\n// replacement, and a standard widget must stay reachable.\nexport * from \"./widgets.generated\"\n\n// This whole subpath REQUIRES Adw-1 (see .claude/epics/adw-optional/001.md\n// and docs/api.md) — a bare re-export of an actual namespace import (see\n// gtkx/bridge/adw-namespace.ts), so `Adw` keeps working exactly as it did\n// before this epic: both a value (`Adw.Toast.new(title)`, `Adw.ColorScheme\n// .FORCE_DARK`) and a namespace in type position (`Ref<Adw.ToastOverlay |\n// null>`), in ONE import, from real apps (examples/tasks-app/tasks-nav's\n// toast.tsx and window.tsx, examples/gallery's adwaita-stack.tsx) as well\n// as ours. That duality does not survive being synthesized through a\n// function call (tried: adw.ts's requireAdwGi() — the value comes through\n// fine, but \"Cannot find namespace 'Adw'\" everywhere it was used as a\n// type), which is why this is a re-export of a plain, eager, static import\n// rather than routed through the lazy probe every other Adw value in this\n// package goes through. Importing react-native-gtkx/adw without Adw-1\n// throws at import time regardless just as a build failure one line\n// down (adw-namespace.ts's own `@gtkx/gi/adw` import, unresolvable without\n// it) instead of a thrown Error, which is an equally loud refusal for a\n// subpath that always requires Adw.\nexport { Adw } from \"../gtkx/bridge/adw-namespace\"\n\n// Auxiliary JSX elements that are not Adw.Widget subclasses, so the\n// generated widget surface above never sees them: a responsive breakpoint\n// (the `breakpoints` prop of AdwApplicationWindow/AdwBreakpointBin/AdwDialog\n// takes one of these as a child) and the two leaf elements a\n// AdwShortcutsDialog's AdwShortcutsSection is built from. See\n// docs/architecture/overview.md, \"The widget surface: wrapped, raw, and\n// auxiliary\", and docs/architecture/layout-and-styling.md, \"Two ways to\n// react to size\" — createSidebarNavigator's own collapse\n// (src/navigation/sidebar.tsx) pairs AdwBreakpoint with AdwBreakpointBin\n// (a real widget, wrapped above) to scope a breakpoint to a subtree.\nconst { AdwBreakpoint, AdwShortcutsItem, AdwShortcutsSection, AdwToggle } =\n requireAdwJsx(\"react-native-gtkx/adw\")\nexport { AdwBreakpoint, AdwShortcutsItem, AdwShortcutsSection, AdwToggle }\n"]}
@@ -59,5 +59,5 @@ AdwPreferencesRow, // child-only (derives Gtk.ListBoxRow)
59
59
  AdwPreferencesWindow, // toplevel (implements GtkRoot)
60
60
  AdwSpinRow, // child-only (derives Gtk.ListBoxRow)
61
61
  AdwSwitchRow, // child-only (derives Gtk.ListBoxRow)
62
- AdwWindow, } from "../gtkx/bridge/widgets.generated";
62
+ AdwWindow, } from "../gtkx/bridge/widgets.generated.adw";
63
63
  export declare const ADW_WRAPPED_WIDGET_NAMES: readonly ["AdwAboutDialog", "AdwAlertDialog", "AdwAvatar", "AdwBanner", "AdwBin", "AdwBottomSheet", "AdwBreakpointBin", "AdwButtonContent", "AdwCarousel", "AdwCarouselIndicatorDots", "AdwCarouselIndicatorLines", "AdwClamp", "AdwClampScrollable", "AdwDialog", "AdwFlap", "AdwHeaderBar", "AdwInlineViewSwitcher", "AdwLayoutSlot", "AdwLeaflet", "AdwMultiLayoutView", "AdwNavigationSplitView", "AdwNavigationView", "AdwOverlaySplitView", "AdwPreferencesDialog", "AdwPreferencesGroup", "AdwShortcutLabel", "AdwShortcutsDialog", "AdwSidebar", "AdwSpinner", "AdwSplitButton", "AdwSqueezer", "AdwStatusPage", "AdwTabBar", "AdwTabButton", "AdwTabOverview", "AdwTabView", "AdwToastOverlay", "AdwToggleGroup", "AdwToolbarView", "AdwViewStack", "AdwViewSwitcher", "AdwViewSwitcherBar", "AdwViewSwitcherSidebar", "AdwViewSwitcherTitle", "AdwWindowTitle", "AdwWrapBox"];
@@ -10,7 +10,7 @@
10
10
  // invalid GTK rather than a convenience — exported as gtkx binds them, same
11
11
  // as the hand-picked ones were before this file existed.
12
12
  import { wrapReactNative } from "../common/widget";
13
- import { AdwAboutDialog as RawAdwAboutDialog, AdwAlertDialog as RawAdwAlertDialog, AdwAvatar as RawAdwAvatar, AdwBanner as RawAdwBanner, AdwBin as RawAdwBin, AdwBottomSheet as RawAdwBottomSheet, AdwBreakpointBin as RawAdwBreakpointBin, AdwButtonContent as RawAdwButtonContent, AdwCarousel as RawAdwCarousel, AdwCarouselIndicatorDots as RawAdwCarouselIndicatorDots, AdwCarouselIndicatorLines as RawAdwCarouselIndicatorLines, AdwClamp as RawAdwClamp, AdwClampScrollable as RawAdwClampScrollable, AdwDialog as RawAdwDialog, AdwFlap as RawAdwFlap, AdwHeaderBar as RawAdwHeaderBar, AdwInlineViewSwitcher as RawAdwInlineViewSwitcher, AdwLayoutSlot as RawAdwLayoutSlot, AdwLeaflet as RawAdwLeaflet, AdwMultiLayoutView as RawAdwMultiLayoutView, AdwNavigationSplitView as RawAdwNavigationSplitView, AdwNavigationView as RawAdwNavigationView, AdwOverlaySplitView as RawAdwOverlaySplitView, AdwPreferencesDialog as RawAdwPreferencesDialog, AdwPreferencesGroup as RawAdwPreferencesGroup, AdwShortcutLabel as RawAdwShortcutLabel, AdwShortcutsDialog as RawAdwShortcutsDialog, AdwSidebar as RawAdwSidebar, AdwSpinner as RawAdwSpinner, AdwSplitButton as RawAdwSplitButton, AdwSqueezer as RawAdwSqueezer, AdwStatusPage as RawAdwStatusPage, AdwTabBar as RawAdwTabBar, AdwTabButton as RawAdwTabButton, AdwTabOverview as RawAdwTabOverview, AdwTabView as RawAdwTabView, AdwToastOverlay as RawAdwToastOverlay, AdwToggleGroup as RawAdwToggleGroup, AdwToolbarView as RawAdwToolbarView, AdwViewStack as RawAdwViewStack, AdwViewSwitcher as RawAdwViewSwitcher, AdwViewSwitcherBar as RawAdwViewSwitcherBar, AdwViewSwitcherSidebar as RawAdwViewSwitcherSidebar, AdwViewSwitcherTitle as RawAdwViewSwitcherTitle, AdwWindowTitle as RawAdwWindowTitle, AdwWrapBox as RawAdwWrapBox, } from "../gtkx/bridge/widgets.generated";
13
+ import { AdwAboutDialog as RawAdwAboutDialog, AdwAlertDialog as RawAdwAlertDialog, AdwAvatar as RawAdwAvatar, AdwBanner as RawAdwBanner, AdwBin as RawAdwBin, AdwBottomSheet as RawAdwBottomSheet, AdwBreakpointBin as RawAdwBreakpointBin, AdwButtonContent as RawAdwButtonContent, AdwCarousel as RawAdwCarousel, AdwCarouselIndicatorDots as RawAdwCarouselIndicatorDots, AdwCarouselIndicatorLines as RawAdwCarouselIndicatorLines, AdwClamp as RawAdwClamp, AdwClampScrollable as RawAdwClampScrollable, AdwDialog as RawAdwDialog, AdwFlap as RawAdwFlap, AdwHeaderBar as RawAdwHeaderBar, AdwInlineViewSwitcher as RawAdwInlineViewSwitcher, AdwLayoutSlot as RawAdwLayoutSlot, AdwLeaflet as RawAdwLeaflet, AdwMultiLayoutView as RawAdwMultiLayoutView, AdwNavigationSplitView as RawAdwNavigationSplitView, AdwNavigationView as RawAdwNavigationView, AdwOverlaySplitView as RawAdwOverlaySplitView, AdwPreferencesDialog as RawAdwPreferencesDialog, AdwPreferencesGroup as RawAdwPreferencesGroup, AdwShortcutLabel as RawAdwShortcutLabel, AdwShortcutsDialog as RawAdwShortcutsDialog, AdwSidebar as RawAdwSidebar, AdwSpinner as RawAdwSpinner, AdwSplitButton as RawAdwSplitButton, AdwSqueezer as RawAdwSqueezer, AdwStatusPage as RawAdwStatusPage, AdwTabBar as RawAdwTabBar, AdwTabButton as RawAdwTabButton, AdwTabOverview as RawAdwTabOverview, AdwTabView as RawAdwTabView, AdwToastOverlay as RawAdwToastOverlay, AdwToggleGroup as RawAdwToggleGroup, AdwToolbarView as RawAdwToolbarView, AdwViewStack as RawAdwViewStack, AdwViewSwitcher as RawAdwViewSwitcher, AdwViewSwitcherBar as RawAdwViewSwitcherBar, AdwViewSwitcherSidebar as RawAdwViewSwitcherSidebar, AdwViewSwitcherTitle as RawAdwViewSwitcherTitle, AdwWindowTitle as RawAdwWindowTitle, AdwWrapBox as RawAdwWrapBox, } from "../gtkx/bridge/widgets.generated.adw";
14
14
  export const AdwAboutDialog = wrapReactNative(RawAdwAboutDialog, "AdwAboutDialog");
15
15
  export const AdwAlertDialog = wrapReactNative(RawAdwAlertDialog, "AdwAlertDialog");
16
16
  export const AdwAvatar = wrapReactNative(RawAdwAvatar, "AdwAvatar");
@@ -73,7 +73,7 @@ AdwPreferencesWindow, // toplevel (implements GtkRoot)
73
73
  AdwSpinRow, // child-only (derives Gtk.ListBoxRow)
74
74
  AdwSwitchRow, // child-only (derives Gtk.ListBoxRow)
75
75
  AdwWindow, // toplevel (implements GtkRoot)
76
- } from "../gtkx/bridge/widgets.generated";
76
+ } from "../gtkx/bridge/widgets.generated.adw";
77
77
  export const ADW_WRAPPED_WIDGET_NAMES = [
78
78
  "AdwAboutDialog",
79
79
  "AdwAlertDialog",
@@ -1 +1 @@
1
- {"version":3,"file":"widgets.generated.js","sourceRoot":"","sources":["../../src/adw/widgets.generated.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,0EAA0E;AAC1E,sDAAsD;AACtD,yEAAyE;AACzE,6DAA6D;AAC7D,EAAE;AACF,4EAA4E;AAC5E,4EAA4E;AAC5E,sEAAsE;AACtE,4EAA4E;AAC5E,yDAAyD;AAEzD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EACL,cAAc,IAAI,iBAAiB,EACnC,cAAc,IAAI,iBAAiB,EACnC,SAAS,IAAI,YAAY,EACzB,SAAS,IAAI,YAAY,EACzB,MAAM,IAAI,SAAS,EACnB,cAAc,IAAI,iBAAiB,EACnC,gBAAgB,IAAI,mBAAmB,EACvC,gBAAgB,IAAI,mBAAmB,EACvC,WAAW,IAAI,cAAc,EAC7B,wBAAwB,IAAI,2BAA2B,EACvD,yBAAyB,IAAI,4BAA4B,EACzD,QAAQ,IAAI,WAAW,EACvB,kBAAkB,IA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AE,gCAAgC;AAClD,iBAAiB,EAAE,iEAAiE;AACpF,mBAAmB,EAAE,sCAAsC;AAC3D,kBAAkB,EAAE,iEAAiE;AACrF,iBAAiB,EAAE,sCAAsC;AACzD,oBAAoB,EAAE,gCAAgC;AACtD,UAAU,EAAE,sCAAsC;AAClD,YAAY,EAAE,sCAAsC;AACpD,SAAS,EAAE,gCAAgC;EAC5C,MAAM,kCAAkC,CAAA;AAEzC,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,gBAAgB;IAChB,gBAAgB;IAChB,WAAW;IACX,WAAW;IACX,QAAQ;IACR,gBAAgB;IAChB,kBAAkB;IAClB,kBAAkB;IAClB,aAAa;IACb,0BAA0B;IAC1B,2BAA2B;IAC3B,UAAU;IACV,oBAAoB;IACpB,WAAW;IACX,SAAS;IACT,cAAc;IACd,uBAAuB;IACvB,eAAe;IACf,YAAY;IACZ,oBAAoB;IACpB,wBAAwB;IACxB,mBAAmB;IACnB,qBAAqB;IACrB,sBAAsB;IACtB,qBAAqB;IACrB,kBAAkB;IAClB,oBAAoB;IACpB,YAAY;IACZ,YAAY;IACZ,gBAAgB;IAChB,aAAa;IACb,eAAe;IACf,WAAW;IACX,cAAc;IACd,gBAAgB;IAChB,YAAY;IACZ,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,cAAc;IACd,iBAAiB;IACjB,oBAAoB;IACpB,wBAAwB;IACxB,sBAAsB;IACtB,gBAAgB;IAChB,YAAY;CACJ,CAAA","sourcesContent":["// GENERATED FILE — do not edit by hand.\n// Produced by scripts/generate-widget-surface.ts. Re-run it inside the VM\n// after `npm run codegen` picks up a gtkx update; see\n// scripts/widget-surface/classification.json for the full classification\n// and .claude/epics/widget-surface/ for the rules behind it.\n//\n// Wrapped: RN layout + a GTK CSS class from the style prop, steps aside and\n// renders bare outside RN layout (see wrapReactNative in ../common/widget).\n// Raw: toplevels and child-only widgets, where a wrapper box would be\n// invalid GTK rather than a convenience — exported as gtkx binds them, same\n// as the hand-picked ones were before this file existed.\n\nimport { wrapReactNative } from \"../common/widget\"\nimport {\n AdwAboutDialog as RawAdwAboutDialog,\n AdwAlertDialog as RawAdwAlertDialog,\n AdwAvatar as RawAdwAvatar,\n AdwBanner as RawAdwBanner,\n AdwBin as RawAdwBin,\n AdwBottomSheet as RawAdwBottomSheet,\n AdwBreakpointBin as RawAdwBreakpointBin,\n AdwButtonContent as RawAdwButtonContent,\n AdwCarousel as RawAdwCarousel,\n AdwCarouselIndicatorDots as RawAdwCarouselIndicatorDots,\n AdwCarouselIndicatorLines as RawAdwCarouselIndicatorLines,\n AdwClamp as RawAdwClamp,\n AdwClampScrollable as RawAdwClampScrollable,\n AdwDialog as RawAdwDialog,\n AdwFlap as RawAdwFlap,\n AdwHeaderBar as RawAdwHeaderBar,\n AdwInlineViewSwitcher as RawAdwInlineViewSwitcher,\n AdwLayoutSlot as RawAdwLayoutSlot,\n AdwLeaflet as RawAdwLeaflet,\n AdwMultiLayoutView as RawAdwMultiLayoutView,\n AdwNavigationSplitView as RawAdwNavigationSplitView,\n AdwNavigationView as RawAdwNavigationView,\n AdwOverlaySplitView as RawAdwOverlaySplitView,\n AdwPreferencesDialog as RawAdwPreferencesDialog,\n AdwPreferencesGroup as RawAdwPreferencesGroup,\n AdwShortcutLabel as RawAdwShortcutLabel,\n AdwShortcutsDialog as RawAdwShortcutsDialog,\n AdwSidebar as RawAdwSidebar,\n AdwSpinner as RawAdwSpinner,\n AdwSplitButton as RawAdwSplitButton,\n AdwSqueezer as RawAdwSqueezer,\n AdwStatusPage as RawAdwStatusPage,\n AdwTabBar as RawAdwTabBar,\n AdwTabButton as RawAdwTabButton,\n AdwTabOverview as RawAdwTabOverview,\n AdwTabView as RawAdwTabView,\n AdwToastOverlay as RawAdwToastOverlay,\n AdwToggleGroup as RawAdwToggleGroup,\n AdwToolbarView as RawAdwToolbarView,\n AdwViewStack as RawAdwViewStack,\n AdwViewSwitcher as RawAdwViewSwitcher,\n AdwViewSwitcherBar as RawAdwViewSwitcherBar,\n AdwViewSwitcherSidebar as RawAdwViewSwitcherSidebar,\n AdwViewSwitcherTitle as RawAdwViewSwitcherTitle,\n AdwWindowTitle as RawAdwWindowTitle,\n AdwWrapBox as RawAdwWrapBox,\n} from \"../gtkx/bridge/widgets.generated\"\n\nexport const AdwAboutDialog = wrapReactNative(\n RawAdwAboutDialog,\n \"AdwAboutDialog\",\n)\nexport const AdwAlertDialog = wrapReactNative(\n RawAdwAlertDialog,\n \"AdwAlertDialog\",\n)\nexport const AdwAvatar = wrapReactNative(RawAdwAvatar, \"AdwAvatar\")\nexport const AdwBanner = wrapReactNative(RawAdwBanner, \"AdwBanner\")\nexport const AdwBin = wrapReactNative(RawAdwBin, \"AdwBin\")\nexport const AdwBottomSheet = wrapReactNative(\n RawAdwBottomSheet,\n \"AdwBottomSheet\",\n)\nexport const AdwBreakpointBin = wrapReactNative(\n RawAdwBreakpointBin,\n \"AdwBreakpointBin\",\n)\nexport const AdwButtonContent = wrapReactNative(\n RawAdwButtonContent,\n \"AdwButtonContent\",\n)\nexport const AdwCarousel = wrapReactNative(RawAdwCarousel, \"AdwCarousel\")\nexport const AdwCarouselIndicatorDots = wrapReactNative(\n RawAdwCarouselIndicatorDots,\n \"AdwCarouselIndicatorDots\",\n)\nexport const AdwCarouselIndicatorLines = wrapReactNative(\n RawAdwCarouselIndicatorLines,\n \"AdwCarouselIndicatorLines\",\n)\nexport const AdwClamp = wrapReactNative(RawAdwClamp, \"AdwClamp\")\nexport const AdwClampScrollable = wrapReactNative(\n RawAdwClampScrollable,\n \"AdwClampScrollable\",\n)\nexport const AdwDialog = wrapReactNative(RawAdwDialog, \"AdwDialog\")\nexport const AdwFlap = wrapReactNative(RawAdwFlap, \"AdwFlap\")\nexport const AdwHeaderBar = wrapReactNative(RawAdwHeaderBar, \"AdwHeaderBar\")\nexport const AdwInlineViewSwitcher = wrapReactNative(\n RawAdwInlineViewSwitcher,\n \"AdwInlineViewSwitcher\",\n)\nexport const AdwLayoutSlot = wrapReactNative(RawAdwLayoutSlot, \"AdwLayoutSlot\")\nexport const AdwLeaflet = wrapReactNative(RawAdwLeaflet, \"AdwLeaflet\")\nexport const AdwMultiLayoutView = wrapReactNative(\n RawAdwMultiLayoutView,\n \"AdwMultiLayoutView\",\n)\nexport const AdwNavigationSplitView = wrapReactNative(\n RawAdwNavigationSplitView,\n \"AdwNavigationSplitView\",\n)\nexport const AdwNavigationView = wrapReactNative(\n RawAdwNavigationView,\n \"AdwNavigationView\",\n)\nexport const AdwOverlaySplitView = wrapReactNative(\n RawAdwOverlaySplitView,\n \"AdwOverlaySplitView\",\n)\nexport const AdwPreferencesDialog = wrapReactNative(\n RawAdwPreferencesDialog,\n \"AdwPreferencesDialog\",\n)\nexport const AdwPreferencesGroup = wrapReactNative(\n RawAdwPreferencesGroup,\n \"AdwPreferencesGroup\",\n)\nexport const AdwShortcutLabel = wrapReactNative(\n RawAdwShortcutLabel,\n \"AdwShortcutLabel\",\n)\nexport const AdwShortcutsDialog = wrapReactNative(\n RawAdwShortcutsDialog,\n \"AdwShortcutsDialog\",\n)\nexport const AdwSidebar = wrapReactNative(RawAdwSidebar, \"AdwSidebar\")\nexport const AdwSpinner = wrapReactNative(RawAdwSpinner, \"AdwSpinner\")\nexport const AdwSplitButton = wrapReactNative(\n RawAdwSplitButton,\n \"AdwSplitButton\",\n)\nexport const AdwSqueezer = wrapReactNative(RawAdwSqueezer, \"AdwSqueezer\")\nexport const AdwStatusPage = wrapReactNative(RawAdwStatusPage, \"AdwStatusPage\")\nexport const AdwTabBar = wrapReactNative(RawAdwTabBar, \"AdwTabBar\")\nexport const AdwTabButton = wrapReactNative(RawAdwTabButton, \"AdwTabButton\")\nexport const AdwTabOverview = wrapReactNative(\n RawAdwTabOverview,\n \"AdwTabOverview\",\n)\nexport const AdwTabView = wrapReactNative(RawAdwTabView, \"AdwTabView\")\nexport const AdwToastOverlay = wrapReactNative(\n RawAdwToastOverlay,\n \"AdwToastOverlay\",\n)\nexport const AdwToggleGroup = wrapReactNative(\n RawAdwToggleGroup,\n \"AdwToggleGroup\",\n)\nexport const AdwToolbarView = wrapReactNative(\n RawAdwToolbarView,\n \"AdwToolbarView\",\n)\nexport const AdwViewStack = wrapReactNative(RawAdwViewStack, \"AdwViewStack\")\nexport const AdwViewSwitcher = wrapReactNative(\n RawAdwViewSwitcher,\n \"AdwViewSwitcher\",\n)\nexport const AdwViewSwitcherBar = wrapReactNative(\n RawAdwViewSwitcherBar,\n \"AdwViewSwitcherBar\",\n)\nexport const AdwViewSwitcherSidebar = wrapReactNative(\n RawAdwViewSwitcherSidebar,\n \"AdwViewSwitcherSidebar\",\n)\nexport const AdwViewSwitcherTitle = wrapReactNative(\n RawAdwViewSwitcherTitle,\n \"AdwViewSwitcherTitle\",\n)\nexport const AdwWindowTitle = wrapReactNative(\n RawAdwWindowTitle,\n \"AdwWindowTitle\",\n)\nexport const AdwWrapBox = wrapReactNative(RawAdwWrapBox, \"AdwWrapBox\")\n\nexport {\n AdwAboutWindow, // toplevel (implements GtkRoot)\n AdwActionRow, // child-only (derives Gtk.ListBoxRow)\n AdwApplicationWindow, // toplevel (implements GtkRoot)\n AdwButtonRow, // child-only (derives Gtk.ListBoxRow)\n AdwComboRow, // child-only (derives Gtk.ListBoxRow)\n AdwEntryRow, // child-only (derives Gtk.ListBoxRow)\n AdwExpanderRow, // child-only (derives Gtk.ListBoxRow)\n AdwMessageDialog, // toplevel (implements GtkRoot)\n AdwNavigationPage, // child-only (denylist — see scripts/widget-surface/classify.ts)\n AdwPasswordEntryRow, // child-only (derives Gtk.ListBoxRow)\n AdwPreferencesPage, // child-only (denylist — see scripts/widget-surface/classify.ts)\n AdwPreferencesRow, // child-only (derives Gtk.ListBoxRow)\n AdwPreferencesWindow, // toplevel (implements GtkRoot)\n AdwSpinRow, // child-only (derives Gtk.ListBoxRow)\n AdwSwitchRow, // child-only (derives Gtk.ListBoxRow)\n AdwWindow, // toplevel (implements GtkRoot)\n} from \"../gtkx/bridge/widgets.generated\"\n\nexport const ADW_WRAPPED_WIDGET_NAMES = [\n \"AdwAboutDialog\",\n \"AdwAlertDialog\",\n \"AdwAvatar\",\n \"AdwBanner\",\n \"AdwBin\",\n \"AdwBottomSheet\",\n \"AdwBreakpointBin\",\n \"AdwButtonContent\",\n \"AdwCarousel\",\n \"AdwCarouselIndicatorDots\",\n \"AdwCarouselIndicatorLines\",\n \"AdwClamp\",\n \"AdwClampScrollable\",\n \"AdwDialog\",\n \"AdwFlap\",\n \"AdwHeaderBar\",\n \"AdwInlineViewSwitcher\",\n \"AdwLayoutSlot\",\n \"AdwLeaflet\",\n \"AdwMultiLayoutView\",\n \"AdwNavigationSplitView\",\n \"AdwNavigationView\",\n \"AdwOverlaySplitView\",\n \"AdwPreferencesDialog\",\n \"AdwPreferencesGroup\",\n \"AdwShortcutLabel\",\n \"AdwShortcutsDialog\",\n \"AdwSidebar\",\n \"AdwSpinner\",\n \"AdwSplitButton\",\n \"AdwSqueezer\",\n \"AdwStatusPage\",\n \"AdwTabBar\",\n \"AdwTabButton\",\n \"AdwTabOverview\",\n \"AdwTabView\",\n \"AdwToastOverlay\",\n \"AdwToggleGroup\",\n \"AdwToolbarView\",\n \"AdwViewStack\",\n \"AdwViewSwitcher\",\n \"AdwViewSwitcherBar\",\n \"AdwViewSwitcherSidebar\",\n \"AdwViewSwitcherTitle\",\n \"AdwWindowTitle\",\n \"AdwWrapBox\",\n] as const\n"]}
1
+ {"version":3,"file":"widgets.generated.js","sourceRoot":"","sources":["../../src/adw/widgets.generated.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,0EAA0E;AAC1E,sDAAsD;AACtD,yEAAyE;AACzE,6DAA6D;AAC7D,EAAE;AACF,4EAA4E;AAC5E,4EAA4E;AAC5E,sEAAsE;AACtE,4EAA4E;AAC5E,yDAAyD;AAEzD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EACL,cAAc,IAAI,iBAAiB,EACnC,cAAc,IAAI,iB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not edit by hand.\n// Produced by scripts/generate-widget-surface.ts. Re-run it inside the VM\n// after `npm run codegen` picks up a gtkx update; see\n// scripts/widget-surface/classification.json for the full classification\n// and .claude/epics/widget-surface/ for the rules behind it.\n//\n// Wrapped: RN layout + a GTK CSS class from the style prop, steps aside and\n// renders bare outside RN layout (see wrapReactNative in ../common/widget).\n// Raw: toplevels and child-only widgets, where a wrapper box would be\n// invalid GTK rather than a convenience — exported as gtkx binds them, same\n// as the hand-picked ones were before this file existed.\n\nimport { wrapReactNative } from \"../common/widget\"\nimport {\n AdwAboutDialog as RawAdwAboutDialog,\n AdwAlertDialog as RawAdwAlertDialog,\n AdwAvatar as RawAdwAvatar,\n AdwBanner as RawAdwBanner,\n AdwBin as RawAdwBin,\n AdwBottomSheet as RawAdwBottomSheet,\n AdwBreakpointBin as RawAdwBreakpointBin,\n AdwButtonContent as RawAdwButtonContent,\n AdwCarousel as RawAdwCarousel,\n AdwCarouselIndicatorDots as RawAdwCarouselIndicatorDots,\n AdwCarouselIndicatorLines as RawAdwCarouselIndicatorLines,\n AdwClamp as RawAdwClamp,\n AdwClampScrollable as RawAdwClampScrollable,\n AdwDialog as RawAdwDialog,\n AdwFlap as RawAdwFlap,\n AdwHeaderBar as RawAdwHeaderBar,\n AdwInlineViewSwitcher as RawAdwInlineViewSwitcher,\n AdwLayoutSlot as RawAdwLayoutSlot,\n AdwLeaflet as RawAdwLeaflet,\n AdwMultiLayoutView as RawAdwMultiLayoutView,\n AdwNavigationSplitView as RawAdwNavigationSplitView,\n AdwNavigationView as RawAdwNavigationView,\n AdwOverlaySplitView as RawAdwOverlaySplitView,\n AdwPreferencesDialog as RawAdwPreferencesDialog,\n AdwPreferencesGroup as RawAdwPreferencesGroup,\n AdwShortcutLabel as RawAdwShortcutLabel,\n AdwShortcutsDialog as RawAdwShortcutsDialog,\n AdwSidebar as RawAdwSidebar,\n AdwSpinner as RawAdwSpinner,\n AdwSplitButton as RawAdwSplitButton,\n AdwSqueezer as RawAdwSqueezer,\n AdwStatusPage as RawAdwStatusPage,\n AdwTabBar as RawAdwTabBar,\n AdwTabButton as RawAdwTabButton,\n AdwTabOverview as RawAdwTabOverview,\n AdwTabView as RawAdwTabView,\n AdwToastOverlay as RawAdwToastOverlay,\n AdwToggleGroup as RawAdwToggleGroup,\n AdwToolbarView as RawAdwToolbarView,\n AdwViewStack as RawAdwViewStack,\n AdwViewSwitcher as RawAdwViewSwitcher,\n AdwViewSwitcherBar as RawAdwViewSwitcherBar,\n AdwViewSwitcherSidebar as RawAdwViewSwitcherSidebar,\n AdwViewSwitcherTitle as RawAdwViewSwitcherTitle,\n AdwWindowTitle as RawAdwWindowTitle,\n AdwWrapBox as RawAdwWrapBox,\n} from \"../gtkx/bridge/widgets.generated.adw\"\n\nexport const AdwAboutDialog = wrapReactNative(\n RawAdwAboutDialog,\n \"AdwAboutDialog\",\n)\nexport const AdwAlertDialog = wrapReactNative(\n RawAdwAlertDialog,\n \"AdwAlertDialog\",\n)\nexport const AdwAvatar = wrapReactNative(RawAdwAvatar, \"AdwAvatar\")\nexport const AdwBanner = wrapReactNative(RawAdwBanner, \"AdwBanner\")\nexport const AdwBin = wrapReactNative(RawAdwBin, \"AdwBin\")\nexport const AdwBottomSheet = wrapReactNative(\n RawAdwBottomSheet,\n \"AdwBottomSheet\",\n)\nexport const AdwBreakpointBin = wrapReactNative(\n RawAdwBreakpointBin,\n \"AdwBreakpointBin\",\n)\nexport const AdwButtonContent = wrapReactNative(\n RawAdwButtonContent,\n \"AdwButtonContent\",\n)\nexport const AdwCarousel = wrapReactNative(RawAdwCarousel, \"AdwCarousel\")\nexport const AdwCarouselIndicatorDots = wrapReactNative(\n RawAdwCarouselIndicatorDots,\n \"AdwCarouselIndicatorDots\",\n)\nexport const AdwCarouselIndicatorLines = wrapReactNative(\n RawAdwCarouselIndicatorLines,\n \"AdwCarouselIndicatorLines\",\n)\nexport const AdwClamp = wrapReactNative(RawAdwClamp, \"AdwClamp\")\nexport const AdwClampScrollable = wrapReactNative(\n RawAdwClampScrollable,\n \"AdwClampScrollable\",\n)\nexport const AdwDialog = wrapReactNative(RawAdwDialog, \"AdwDialog\")\nexport const AdwFlap = wrapReactNative(RawAdwFlap, \"AdwFlap\")\nexport const AdwHeaderBar = wrapReactNative(RawAdwHeaderBar, \"AdwHeaderBar\")\nexport const AdwInlineViewSwitcher = wrapReactNative(\n RawAdwInlineViewSwitcher,\n \"AdwInlineViewSwitcher\",\n)\nexport const AdwLayoutSlot = wrapReactNative(RawAdwLayoutSlot, \"AdwLayoutSlot\")\nexport const AdwLeaflet = wrapReactNative(RawAdwLeaflet, \"AdwLeaflet\")\nexport const AdwMultiLayoutView = wrapReactNative(\n RawAdwMultiLayoutView,\n \"AdwMultiLayoutView\",\n)\nexport const AdwNavigationSplitView = wrapReactNative(\n RawAdwNavigationSplitView,\n \"AdwNavigationSplitView\",\n)\nexport const AdwNavigationView = wrapReactNative(\n RawAdwNavigationView,\n \"AdwNavigationView\",\n)\nexport const AdwOverlaySplitView = wrapReactNative(\n RawAdwOverlaySplitView,\n \"AdwOverlaySplitView\",\n)\nexport const AdwPreferencesDialog = wrapReactNative(\n RawAdwPreferencesDialog,\n \"AdwPreferencesDialog\",\n)\nexport const AdwPreferencesGroup = wrapReactNative(\n RawAdwPreferencesGroup,\n \"AdwPreferencesGroup\",\n)\nexport const AdwShortcutLabel = wrapReactNative(\n RawAdwShortcutLabel,\n \"AdwShortcutLabel\",\n)\nexport const AdwShortcutsDialog = wrapReactNative(\n RawAdwShortcutsDialog,\n \"AdwShortcutsDialog\",\n)\nexport const AdwSidebar = wrapReactNative(RawAdwSidebar, \"AdwSidebar\")\nexport const AdwSpinner = wrapReactNative(RawAdwSpinner, \"AdwSpinner\")\nexport const AdwSplitButton = wrapReactNative(\n RawAdwSplitButton,\n \"AdwSplitButton\",\n)\nexport const AdwSqueezer = wrapReactNative(RawAdwSqueezer, \"AdwSqueezer\")\nexport const AdwStatusPage = wrapReactNative(RawAdwStatusPage, \"AdwStatusPage\")\nexport const AdwTabBar = wrapReactNative(RawAdwTabBar, \"AdwTabBar\")\nexport const AdwTabButton = wrapReactNative(RawAdwTabButton, \"AdwTabButton\")\nexport const AdwTabOverview = wrapReactNative(\n RawAdwTabOverview,\n \"AdwTabOverview\",\n)\nexport const AdwTabView = wrapReactNative(RawAdwTabView, \"AdwTabView\")\nexport const AdwToastOverlay = wrapReactNative(\n RawAdwToastOverlay,\n \"AdwToastOverlay\",\n)\nexport const AdwToggleGroup = wrapReactNative(\n RawAdwToggleGroup,\n \"AdwToggleGroup\",\n)\nexport const AdwToolbarView = wrapReactNative(\n RawAdwToolbarView,\n \"AdwToolbarView\",\n)\nexport const AdwViewStack = wrapReactNative(RawAdwViewStack, \"AdwViewStack\")\nexport const AdwViewSwitcher = wrapReactNative(\n RawAdwViewSwitcher,\n \"AdwViewSwitcher\",\n)\nexport const AdwViewSwitcherBar = wrapReactNative(\n RawAdwViewSwitcherBar,\n \"AdwViewSwitcherBar\",\n)\nexport const AdwViewSwitcherSidebar = wrapReactNative(\n RawAdwViewSwitcherSidebar,\n \"AdwViewSwitcherSidebar\",\n)\nexport const AdwViewSwitcherTitle = wrapReactNative(\n RawAdwViewSwitcherTitle,\n \"AdwViewSwitcherTitle\",\n)\nexport const AdwWindowTitle = wrapReactNative(\n RawAdwWindowTitle,\n \"AdwWindowTitle\",\n)\nexport const AdwWrapBox = wrapReactNative(RawAdwWrapBox, \"AdwWrapBox\")\n\nexport {\n AdwAboutWindow, // toplevel (implements GtkRoot)\n AdwActionRow, // child-only (derives Gtk.ListBoxRow)\n AdwApplicationWindow, // toplevel (implements GtkRoot)\n AdwButtonRow, // child-only (derives Gtk.ListBoxRow)\n AdwComboRow, // child-only (derives Gtk.ListBoxRow)\n AdwEntryRow, // child-only (derives Gtk.ListBoxRow)\n AdwExpanderRow, // child-only (derives Gtk.ListBoxRow)\n AdwMessageDialog, // toplevel (implements GtkRoot)\n AdwNavigationPage, // child-only (denylist — see scripts/widget-surface/classify.ts)\n AdwPasswordEntryRow, // child-only (derives Gtk.ListBoxRow)\n AdwPreferencesPage, // child-only (denylist — see scripts/widget-surface/classify.ts)\n AdwPreferencesRow, // child-only (derives Gtk.ListBoxRow)\n AdwPreferencesWindow, // toplevel (implements GtkRoot)\n AdwSpinRow, // child-only (derives Gtk.ListBoxRow)\n AdwSwitchRow, // child-only (derives Gtk.ListBoxRow)\n AdwWindow, // toplevel (implements GtkRoot)\n} from \"../gtkx/bridge/widgets.generated.adw\"\n\nexport const ADW_WRAPPED_WIDGET_NAMES = [\n \"AdwAboutDialog\",\n \"AdwAlertDialog\",\n \"AdwAvatar\",\n \"AdwBanner\",\n \"AdwBin\",\n \"AdwBottomSheet\",\n \"AdwBreakpointBin\",\n \"AdwButtonContent\",\n \"AdwCarousel\",\n \"AdwCarouselIndicatorDots\",\n \"AdwCarouselIndicatorLines\",\n \"AdwClamp\",\n \"AdwClampScrollable\",\n \"AdwDialog\",\n \"AdwFlap\",\n \"AdwHeaderBar\",\n \"AdwInlineViewSwitcher\",\n \"AdwLayoutSlot\",\n \"AdwLeaflet\",\n \"AdwMultiLayoutView\",\n \"AdwNavigationSplitView\",\n \"AdwNavigationView\",\n \"AdwOverlaySplitView\",\n \"AdwPreferencesDialog\",\n \"AdwPreferencesGroup\",\n \"AdwShortcutLabel\",\n \"AdwShortcutsDialog\",\n \"AdwSidebar\",\n \"AdwSpinner\",\n \"AdwSplitButton\",\n \"AdwSqueezer\",\n \"AdwStatusPage\",\n \"AdwTabBar\",\n \"AdwTabButton\",\n \"AdwTabOverview\",\n \"AdwTabView\",\n \"AdwToastOverlay\",\n \"AdwToggleGroup\",\n \"AdwToolbarView\",\n \"AdwViewStack\",\n \"AdwViewSwitcher\",\n \"AdwViewSwitcherBar\",\n \"AdwViewSwitcherSidebar\",\n \"AdwViewSwitcherTitle\",\n \"AdwWindowTitle\",\n \"AdwWrapBox\",\n] as const\n"]}
@@ -1,3 +1,4 @@
1
+ import type { AnimatedEventConfig, EventMapping } from "./event";
1
2
  import type { CompositeAnimation, FrameScheduler, LoopConfig, ParallelConfig, SpringConfig, TimingConfig } from "./types";
2
3
  import { AnimatedValue } from "./value";
3
4
  import { AnimatedValueXY } from "./value-xy";
@@ -10,5 +11,6 @@ export type AnimatedApi = {
10
11
  parallel(animations: CompositeAnimation[], config?: ParallelConfig): CompositeAnimation;
11
12
  delay(ms: number): CompositeAnimation;
12
13
  loop(animation: CompositeAnimation, config?: LoopConfig): CompositeAnimation;
14
+ event(argMapping: readonly (EventMapping | null | undefined)[], config?: AnimatedEventConfig): (...args: unknown[]) => void;
13
15
  };
14
16
  export declare const createAnimated: (scheduler: FrameScheduler) => AnimatedApi;
@@ -2,6 +2,7 @@
2
2
  // passes a scheduler backed by the frame clock;
3
3
  // tests pass a manual scheduler and drive frames by hand.
4
4
  import { createDelay, loop, parallel, sequence } from "./composite";
5
+ import { createAnimatedEvent } from "./event";
5
6
  import { createSpring } from "./spring";
6
7
  import { createTiming } from "./timing";
7
8
  import { AnimatedValue } from "./value";
@@ -15,5 +16,6 @@ export const createAnimated = (scheduler) => ({
15
16
  parallel,
16
17
  delay: (ms) => createDelay(scheduler, ms),
17
18
  loop,
19
+ event: createAnimatedEvent,
18
20
  });
19
21
  //# sourceMappingURL=create-animated.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-animated.js","sourceRoot":"","sources":["../../src/animated/create-animated.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,gDAAgD;AAChD,0DAA0D;AAE1D,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AASvC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAgB5C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,SAAyB,EAAe,EAAE,CAAC,CAAC;IACzE,KAAK,EAAE,aAAa;IACpB,OAAO,EAAE,eAAe;IACxB,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC;IACjE,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC;IACjE,QAAQ;IACR,QAAQ;IACR,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,WAAW,CAAC,SAAS,EAAE,EAAE,CAAC;IACzC,IAAI;CACL,CAAC,CAAA","sourcesContent":["// Factory wiring the frame driver into the whole Animated API. The GTK side\n// passes a scheduler backed by the frame clock;\n// tests pass a manual scheduler and drive frames by hand.\n\nimport { createDelay, loop, parallel, sequence } from \"./composite\"\nimport { createSpring } from \"./spring\"\nimport { createTiming } from \"./timing\"\nimport type {\n CompositeAnimation,\n FrameScheduler,\n LoopConfig,\n ParallelConfig,\n SpringConfig,\n TimingConfig,\n} from \"./types\"\nimport { AnimatedValue } from \"./value\"\nimport { AnimatedValueXY } from \"./value-xy\"\n\nexport type AnimatedApi = {\n Value: typeof AnimatedValue\n ValueXY: typeof AnimatedValueXY\n timing(value: AnimatedValue, config: TimingConfig): CompositeAnimation\n spring(value: AnimatedValue, config: SpringConfig): CompositeAnimation\n sequence(animations: CompositeAnimation[]): CompositeAnimation\n parallel(\n animations: CompositeAnimation[],\n config?: ParallelConfig,\n ): CompositeAnimation\n delay(ms: number): CompositeAnimation\n loop(animation: CompositeAnimation, config?: LoopConfig): CompositeAnimation\n}\n\nexport const createAnimated = (scheduler: FrameScheduler): AnimatedApi => ({\n Value: AnimatedValue,\n ValueXY: AnimatedValueXY,\n timing: (value, config) => createTiming(scheduler, value, config),\n spring: (value, config) => createSpring(scheduler, value, config),\n sequence,\n parallel,\n delay: (ms) => createDelay(scheduler, ms),\n loop,\n})\n"]}
1
+ {"version":3,"file":"create-animated.js","sourceRoot":"","sources":["../../src/animated/create-animated.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,gDAAgD;AAChD,0DAA0D;AAE1D,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAE7C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AASvC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAoB5C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,SAAyB,EAAe,EAAE,CAAC,CAAC;IACzE,KAAK,EAAE,aAAa;IACpB,OAAO,EAAE,eAAe;IACxB,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC;IACjE,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC;IACjE,QAAQ;IACR,QAAQ;IACR,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,WAAW,CAAC,SAAS,EAAE,EAAE,CAAC;IACzC,IAAI;IACJ,KAAK,EAAE,mBAAmB;CAC3B,CAAC,CAAA","sourcesContent":["// Factory wiring the frame driver into the whole Animated API. The GTK side\n// passes a scheduler backed by the frame clock;\n// tests pass a manual scheduler and drive frames by hand.\n\nimport { createDelay, loop, parallel, sequence } from \"./composite\"\nimport { createAnimatedEvent } from \"./event\"\nimport type { AnimatedEventConfig, EventMapping } from \"./event\"\nimport { createSpring } from \"./spring\"\nimport { createTiming } from \"./timing\"\nimport type {\n CompositeAnimation,\n FrameScheduler,\n LoopConfig,\n ParallelConfig,\n SpringConfig,\n TimingConfig,\n} from \"./types\"\nimport { AnimatedValue } from \"./value\"\nimport { AnimatedValueXY } from \"./value-xy\"\n\nexport type AnimatedApi = {\n Value: typeof AnimatedValue\n ValueXY: typeof AnimatedValueXY\n timing(value: AnimatedValue, config: TimingConfig): CompositeAnimation\n spring(value: AnimatedValue, config: SpringConfig): CompositeAnimation\n sequence(animations: CompositeAnimation[]): CompositeAnimation\n parallel(\n animations: CompositeAnimation[],\n config?: ParallelConfig,\n ): CompositeAnimation\n delay(ms: number): CompositeAnimation\n loop(animation: CompositeAnimation, config?: LoopConfig): CompositeAnimation\n event(\n argMapping: readonly (EventMapping | null | undefined)[],\n config?: AnimatedEventConfig,\n ): (...args: unknown[]) => void\n}\n\nexport const createAnimated = (scheduler: FrameScheduler): AnimatedApi => ({\n Value: AnimatedValue,\n ValueXY: AnimatedValueXY,\n timing: (value, config) => createTiming(scheduler, value, config),\n spring: (value, config) => createSpring(scheduler, value, config),\n sequence,\n parallel,\n delay: (ms) => createDelay(scheduler, ms),\n loop,\n event: createAnimatedEvent,\n})\n"]}
@@ -0,0 +1,15 @@
1
+ import { AnimatedValue } from "./value";
2
+ import { AnimatedValueXY } from "./value-xy";
3
+ export type EventMapping = {
4
+ [key: string]: EventMapping | null | undefined;
5
+ } | AnimatedValue | AnimatedValueXY;
6
+ export type AnimatedEventConfig = {
7
+ listener?: (...args: never[]) => void;
8
+ useNativeDriver?: boolean;
9
+ };
10
+ /**
11
+ * `Animated.event(argMapping, config?)`. Returns a plain callback — assign
12
+ * it directly to `ScrollView.onScroll`, to `onPanResponderMove`, or to any
13
+ * other RN event prop whose argument shape `argMapping` mirrors.
14
+ */
15
+ export declare const createAnimatedEvent: (argMapping: readonly (EventMapping | null | undefined)[], config?: AnimatedEventConfig) => ((...args: unknown[]) => void);
@@ -0,0 +1,80 @@
1
+ // Animated.event: the arg-mapping traversal RN's AnimatedEvent runs on every
2
+ // callback invocation, transcribed from
3
+ // node_modules/react-native/Libraries/Animated/AnimatedEvent.js —
4
+ // `__getHandler`'s NON-native branch, which is the only branch this platform
5
+ // ever needs. Upstream's native branch exists to hand a view tag, an event
6
+ // name and a serialized path to a native module that patches the animated
7
+ // value from the native thread, bypassing JS entirely; there is no such
8
+ // native side here (see native-driver.ts), so `Animated.event` always
9
+ // returns the plain JS callback (upstream's `eventImpl` does the same thing
10
+ // whenever `!animatedEvent.__isNative` — this platform's `__isNative` is
11
+ // simply always false).
12
+ //
13
+ // argMapping is POSITIONAL over the callback's own arguments — not always
14
+ // "the event": a `ScrollView.onScroll` handler takes one argument, so
15
+ // `[{ nativeEvent: { contentOffset: { y: scrollY } } }]` maps it; a
16
+ // `PanResponder.onPanResponderMove` handler takes two,
17
+ // `(event, gestureState)`, and a drag reads the SECOND one —
18
+ // `[null, { dx: pan.x, dy: pan.y }]` — leaving the first argument's slot
19
+ // `null` (RN supports mapping either argument; this is the one PanResponder
20
+ // actually uses in every example in the wild). A `null` entry, and anything
21
+ // past the end of `argMapping`, is simply never traversed.
22
+ //
23
+ // A leaf that is an Animated.Value gets `setValue()`'d with the number found
24
+ // at the same path in the real argument; an Animated.ValueXY recurses into
25
+ // its own `x`/`y`. A missing path — the real argument genuinely has nothing
26
+ // at that key — resolves to `undefined` and is silently skipped, AT ANY
27
+ // DEPTH. That widening is deliberate and is the one place this
28
+ // reimplementation departs from the source it is transcribed from: upstream
29
+ // indexes the missing object directly (`recEvt[mappingKey]`), which throws
30
+ // one level up from a leaf rather than at it — a mapping that reaches for
31
+ // `contentSize.height` against an event shape that happens not to carry a
32
+ // `contentSize` crashes upstream and does not here.
33
+ import { warnNativeDriverIgnored } from "./native-driver";
34
+ import { AnimatedValue } from "./value";
35
+ import { AnimatedValueXY } from "./value-xy";
36
+ const traverse = (mapping, value) => {
37
+ if (mapping instanceof AnimatedValue) {
38
+ if (typeof value === "number") {
39
+ mapping.setValue(value);
40
+ }
41
+ return;
42
+ }
43
+ if (mapping instanceof AnimatedValueXY) {
44
+ if (value !== null && typeof value === "object") {
45
+ const record = value;
46
+ traverse(mapping.x, record.x);
47
+ traverse(mapping.y, record.y);
48
+ }
49
+ return;
50
+ }
51
+ if (mapping !== null && typeof mapping === "object") {
52
+ // A missing path in the real argument resolves every key under it to
53
+ // `undefined` rather than throwing — see the file header.
54
+ const record = value;
55
+ for (const key of Object.keys(mapping)) {
56
+ traverse(mapping[key], record?.[key]);
57
+ }
58
+ }
59
+ };
60
+ /**
61
+ * `Animated.event(argMapping, config?)`. Returns a plain callback — assign
62
+ * it directly to `ScrollView.onScroll`, to `onPanResponderMove`, or to any
63
+ * other RN event prop whose argument shape `argMapping` mirrors.
64
+ */
65
+ export const createAnimatedEvent = (argMapping, config = {}) => {
66
+ if (config.useNativeDriver) {
67
+ warnNativeDriverIgnored();
68
+ }
69
+ const { listener } = config;
70
+ return (...args) => {
71
+ argMapping.forEach((mapping, index) => {
72
+ traverse(mapping, args[index]);
73
+ });
74
+ // `never[]` is unconstructible from real values on purpose (see the
75
+ // config type above) — this is the one place that trades back for the
76
+ // ability to actually call the listener with what was received.
77
+ listener?.(...args);
78
+ };
79
+ };
80
+ //# sourceMappingURL=event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/animated/event.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,wCAAwC;AACxC,kEAAkE;AAClE,6EAA6E;AAC7E,2EAA2E;AAC3E,0EAA0E;AAC1E,wEAAwE;AACxE,sEAAsE;AACtE,4EAA4E;AAC5E,yEAAyE;AACzE,wBAAwB;AACxB,EAAE;AACF,0EAA0E;AAC1E,sEAAsE;AACtE,oEAAoE;AACpE,uDAAuD;AACvD,6DAA6D;AAC7D,yEAAyE;AACzE,4EAA4E;AAC5E,4EAA4E;AAC5E,2DAA2D;AAC3D,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,4EAA4E;AAC5E,wEAAwE;AACxE,+DAA+D;AAC/D,4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AE;IAClC,IAAI,MAAM,CAAC,eAAe,EAAE,CAAC;QAC3B,uBAAuB,EAAE,CAAA;IAC3B,CAAC;IACD,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAA;IAE3B,OAAO,CAAC,GAAG,IAAe,EAAQ,EAAE;QAClC,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE;YACpC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAA;QAChC,CAAC,CAAC,CAAA;QACF,oEAAoE;QACpE,sEAAsE;QACtE,gEAAgE;QAChE,QAAQ,EAAE,CAAC,GAAI,IAAgB,CAAC,CAAA;IAClC,CAAC,CAAA;AACH,CAAC,CAAA","sourcesContent":["// Animated.event: the arg-mapping traversal RN's AnimatedEvent runs on every\n// callback invocation, transcribed from\n// node_modules/react-native/Libraries/Animated/AnimatedEvent.js —\n// `__getHandler`'s NON-native branch, which is the only branch this platform\n// ever needs. Upstream's native branch exists to hand a view tag, an event\n// name and a serialized path to a native module that patches the animated\n// value from the native thread, bypassing JS entirely; there is no such\n// native side here (see native-driver.ts), so `Animated.event` always\n// returns the plain JS callback (upstream's `eventImpl` does the same thing\n// whenever `!animatedEvent.__isNative` — this platform's `__isNative` is\n// simply always false).\n//\n// argMapping is POSITIONAL over the callback's own arguments — not always\n// \"the event\": a `ScrollView.onScroll` handler takes one argument, so\n// `[{ nativeEvent: { contentOffset: { y: scrollY } } }]` maps it; a\n// `PanResponder.onPanResponderMove` handler takes two,\n// `(event, gestureState)`, and a drag reads the SECOND one —\n// `[null, { dx: pan.x, dy: pan.y }]` — leaving the first argument's slot\n// `null` (RN supports mapping either argument; this is the one PanResponder\n// actually uses in every example in the wild). A `null` entry, and anything\n// past the end of `argMapping`, is simply never traversed.\n//\n// A leaf that is an Animated.Value gets `setValue()`'d with the number found\n// at the same path in the real argument; an Animated.ValueXY recurses into\n// its own `x`/`y`. A missing path — the real argument genuinely has nothing\n// at that key — resolves to `undefined` and is silently skipped, AT ANY\n// DEPTH. That widening is deliberate and is the one place this\n// reimplementation departs from the source it is transcribed from: upstream\n// indexes the missing object directly (`recEvt[mappingKey]`), which throws\n// one level up from a leaf rather than at it — a mapping that reaches for\n// `contentSize.height` against an event shape that happens not to carry a\n// `contentSize` crashes upstream and does not here.\nimport { warnNativeDriverIgnored } from \"./native-driver\"\nimport { AnimatedValue } from \"./value\"\nimport { AnimatedValueXY } from \"./value-xy\"\n\n// RN's `Mapping` type (AnimatedEvent.js), transcribed: a leaf is an\n// Animated.Value/ValueXY, anything else recurses one key at a time.\nexport type EventMapping =\n | { [key: string]: EventMapping | null | undefined }\n | AnimatedValue\n | AnimatedValueXY\n\nexport type AnimatedEventConfig = {\n // Called with the SAME arguments the returned handler itself received —\n // RN's `_callListeners(...args)` — so a listener attached to\n // `ScrollView.onScroll` gets the one `ScrollEvent`, and one attached to\n // `onPanResponderMove` gets `(event, gestureState)` both, after the\n // mapping has already written this call's values.\n //\n // `never[]` rather than `unknown[]`: this field is filled in by a caller\n // whose listener has a concrete signature (`(event: ScrollEvent) => void`,\n // or the two-argument PanResponder shape), and a parameter position is\n // CONTRAVARIANT — a listener typed for `unknown` arguments would reject\n // every concretely-typed listener there is. `never` is the parameter type\n // every function's parameters are wider than, which is what makes a\n // listener of any real event shape assignable here; the handler below\n // casts back on the one call site that actually invokes it.\n listener?: (...args: never[]) => void\n // Accepted for RN source compatibility and ignored, with the platform's\n // usual one-line warning (native-driver.ts) — the GTK backend has no\n // native side to attach the event to, so unlike upstream this never\n // changes what `Animated.event` RETURNS: it is always the plain JS\n // handler below, `useNativeDriver` true or false.\n useNativeDriver?: boolean\n}\n\nconst traverse = (\n mapping: EventMapping | null | undefined,\n value: unknown,\n): void => {\n if (mapping instanceof AnimatedValue) {\n if (typeof value === \"number\") {\n mapping.setValue(value)\n }\n return\n }\n if (mapping instanceof AnimatedValueXY) {\n if (value !== null && typeof value === \"object\") {\n const record = value as Record<string, unknown>\n traverse(mapping.x, record.x)\n traverse(mapping.y, record.y)\n }\n return\n }\n if (mapping !== null && typeof mapping === \"object\") {\n // A missing path in the real argument resolves every key under it to\n // `undefined` rather than throwing — see the file header.\n const record = value as Record<string, unknown> | null | undefined\n for (const key of Object.keys(mapping)) {\n traverse(mapping[key], record?.[key])\n }\n }\n}\n\n/**\n * `Animated.event(argMapping, config?)`. Returns a plain callback — assign\n * it directly to `ScrollView.onScroll`, to `onPanResponderMove`, or to any\n * other RN event prop whose argument shape `argMapping` mirrors.\n */\nexport const createAnimatedEvent = (\n argMapping: readonly (EventMapping | null | undefined)[],\n config: AnimatedEventConfig = {},\n): ((...args: unknown[]) => void) => {\n if (config.useNativeDriver) {\n warnNativeDriverIgnored()\n }\n const { listener } = config\n\n return (...args: unknown[]): void => {\n argMapping.forEach((mapping, index) => {\n traverse(mapping, args[index])\n })\n // `never[]` is unconstructible from real values on purpose (see the\n // config type above) — this is the one place that trades back for the\n // ability to actually call the listener with what was received.\n listener?.(...(args as never[]))\n }\n}\n"]}
@@ -2,6 +2,10 @@ export type { AnimatedApi } from "./create-animated";
2
2
  export { createAnimated } from "./create-animated";
3
3
  export type { EasingFunction } from "./easing";
4
4
  export { Easing } from "./easing";
5
+ export type { AnimatedEventConfig, EventMapping } from "./event";
6
+ export { createAnimatedEvent } from "./event";
7
+ export { springStep } from "./spring";
8
+ export { timingStep } from "./timing";
5
9
  export type { CompositeAnimation, EndCallback, EndResult, ExtrapolateType, FrameScheduler, InterpolationConfig, InterpolationListener, LoopConfig, ParallelConfig, SpringConfig, TimingConfig, ValueListener, } from "./types";
6
10
  export { AnimatedInterpolation, AnimatedValue } from "./value";
7
11
  export { createValueAnimation } from "./value-animation";
@@ -3,6 +3,14 @@
3
3
  // Animated.* components are built.
4
4
  export { createAnimated } from "./create-animated";
5
5
  export { Easing } from "./easing";
6
+ export { createAnimatedEvent } from "./event";
7
+ // The pure per-frame closed-form solvers behind Animated.timing/.spring,
8
+ // exported alongside MakeStep for the same reason createValueAnimation is: a
9
+ // layer built on this engine may need the exact curve without a single
10
+ // AnimatedValue attached to it — reanimated-compat's object/array leaves
11
+ // (one MakeStep per leaf, stepped in lockstep) are the first such caller.
12
+ export { springStep } from "./spring";
13
+ export { timingStep } from "./timing";
6
14
  export { AnimatedInterpolation, AnimatedValue } from "./value";
7
15
  // The frame-driven lifecycle every single-value animation shares. Not part of
8
16
  // `AnimatedApi` — RN's `Animated` has no such method and this object is spread
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/animated/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,uEAAuE;AACvE,mCAAmC;AAGnC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAElD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAejC,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC9D,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,2EAA2E;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAExD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA","sourcesContent":["// Animated module entry point. Pure by contract: everything is driven by an\n// injected FrameScheduler — the GTK frame clock is connected where the\n// Animated.* components are built.\n\nexport type { AnimatedApi } from \"./create-animated\"\nexport { createAnimated } from \"./create-animated\"\nexport type { EasingFunction } from \"./easing\"\nexport { Easing } from \"./easing\"\nexport type {\n CompositeAnimation,\n EndCallback,\n EndResult,\n ExtrapolateType,\n FrameScheduler,\n InterpolationConfig,\n InterpolationListener,\n LoopConfig,\n ParallelConfig,\n SpringConfig,\n TimingConfig,\n ValueListener,\n} from \"./types\"\nexport { AnimatedInterpolation, AnimatedValue } from \"./value\"\n// The frame-driven lifecycle every single-value animation shares. Not part of\n// `AnimatedApi` — RN's `Animated` has no such method and this object is spread\n// into the public one — but exported because a layer built ON this engine may\n// need a per-frame step RN itself does not have: `withDecay` is the first.\nexport { createValueAnimation } from \"./value-animation\"\nexport type { MakeStep, StepFn, StepResult } from \"./value-animation\"\nexport { AnimatedValueXY } from \"./value-xy\"\nexport type { ValueXYListener, ValueXYLiteral } from \"./value-xy\"\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/animated/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,uEAAuE;AACvE,mCAAmC;AAGnC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAElD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAC7C,yEAAyE;AACzE,6EAA6E;AAC7E,uEAAuE;AACvE,yEAAyE;AACzE,0EAA0E;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAerC,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC9D,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,2EAA2E;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAExD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA","sourcesContent":["// Animated module entry point. Pure by contract: everything is driven by an\n// injected FrameScheduler — the GTK frame clock is connected where the\n// Animated.* components are built.\n\nexport type { AnimatedApi } from \"./create-animated\"\nexport { createAnimated } from \"./create-animated\"\nexport type { EasingFunction } from \"./easing\"\nexport { Easing } from \"./easing\"\nexport type { AnimatedEventConfig, EventMapping } from \"./event\"\nexport { createAnimatedEvent } from \"./event\"\n// The pure per-frame closed-form solvers behind Animated.timing/.spring,\n// exported alongside MakeStep for the same reason createValueAnimation is: a\n// layer built on this engine may need the exact curve without a single\n// AnimatedValue attached to it — reanimated-compat's object/array leaves\n// (one MakeStep per leaf, stepped in lockstep) are the first such caller.\nexport { springStep } from \"./spring\"\nexport { timingStep } from \"./timing\"\nexport type {\n CompositeAnimation,\n EndCallback,\n EndResult,\n ExtrapolateType,\n FrameScheduler,\n InterpolationConfig,\n InterpolationListener,\n LoopConfig,\n ParallelConfig,\n SpringConfig,\n TimingConfig,\n ValueListener,\n} from \"./types\"\nexport { AnimatedInterpolation, AnimatedValue } from \"./value\"\n// The frame-driven lifecycle every single-value animation shares. Not part of\n// `AnimatedApi` — RN's `Animated` has no such method and this object is spread\n// into the public one — but exported because a layer built ON this engine may\n// need a per-frame step RN itself does not have: `withDecay` is the first.\nexport { createValueAnimation } from \"./value-animation\"\nexport type { MakeStep, StepFn, StepResult } from \"./value-animation\"\nexport { AnimatedValueXY } from \"./value-xy\"\nexport type { ValueXYListener, ValueXYLiteral } from \"./value-xy\"\n"]}
@@ -1,3 +1,13 @@
1
1
  import type { CompositeAnimation, FrameScheduler, SpringConfig } from "./types";
2
2
  import type { AnimatedValue } from "./value";
3
+ import type { MakeStep } from "./value-animation";
4
+ /**
5
+ * The pure per-frame math, with no `AnimatedValue` or scheduler attached —
6
+ * exported for the same reason `timingStep` is (see timing.ts): a caller
7
+ * animating one leaf of an object/array target needs this exact solver, not
8
+ * a re-derivation of it, and needs it without a single number driver
9
+ * attached. `createSpring` below is a thin wrapper over this and
10
+ * `createValueAnimation`.
11
+ */
12
+ export declare const springStep: (config: SpringConfig) => MakeStep;
3
13
  export declare const createSpring: (scheduler: FrameScheduler, value: AnimatedValue, config: SpringConfig) => CompositeAnimation;