react-native-gtkx 0.2.0-alpha.1 → 0.3.0-alpha.1

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 (400) hide show
  1. package/README.md +14 -2
  2. package/dist/adw/widgets.generated.d.ts +4 -4
  3. package/dist/adw/widgets.generated.js +51 -51
  4. package/dist/adw/widgets.generated.js.map +1 -1
  5. package/dist/aliases/index.d.ts +84 -0
  6. package/dist/aliases/index.js +208 -0
  7. package/dist/aliases/index.js.map +1 -0
  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/index.d.ts +4 -0
  12. package/dist/animated/index.js +6 -0
  13. package/dist/animated/index.js.map +1 -1
  14. package/dist/animated/types.d.ts +1 -0
  15. package/dist/animated/types.js.map +1 -1
  16. package/dist/animated/value-animation.js +17 -4
  17. package/dist/animated/value-animation.js.map +1 -1
  18. package/dist/animated/value-xy.d.ts +41 -0
  19. package/dist/animated/value-xy.js +90 -0
  20. package/dist/animated/value-xy.js.map +1 -0
  21. package/dist/animated/value.d.ts +9 -0
  22. package/dist/animated/value.js +30 -2
  23. package/dist/animated/value.js.map +1 -1
  24. package/dist/apis/host.gtkx.js +9 -12
  25. package/dist/apis/host.gtkx.js.map +1 -1
  26. package/dist/apis/index.d.ts +4 -2
  27. package/dist/apis/index.js +2 -0
  28. package/dist/apis/index.js.map +1 -1
  29. package/dist/apis/keyboard.d.ts +60 -0
  30. package/dist/apis/keyboard.js +63 -0
  31. package/dist/apis/keyboard.js.map +1 -0
  32. package/dist/apis/log-box.d.ts +15 -0
  33. package/dist/apis/log-box.js +46 -0
  34. package/dist/apis/log-box.js.map +1 -0
  35. package/dist/apis/platform.d.ts +18 -1
  36. package/dist/apis/platform.js.map +1 -1
  37. package/dist/common/icon.d.ts +23 -0
  38. package/dist/common/icon.js +14 -0
  39. package/dist/common/icon.js.map +1 -0
  40. package/dist/common/index.d.ts +1 -0
  41. package/dist/common/index.js +25 -0
  42. package/dist/common/index.js.map +1 -1
  43. package/dist/common/widget.d.ts +1 -22
  44. package/dist/common/widget.js +75 -8
  45. package/dist/common/widget.js.map +1 -1
  46. package/dist/components/animated.d.ts +73 -7
  47. package/dist/components/animated.js +560 -45
  48. package/dist/components/animated.js.map +1 -1
  49. package/dist/components/app-registry.d.ts +26 -0
  50. package/dist/components/app-registry.js.map +1 -1
  51. package/dist/components/driven-size.d.ts +27 -0
  52. package/dist/components/driven-size.js +85 -0
  53. package/dist/components/driven-size.js.map +1 -0
  54. package/dist/components/find-node-handle.d.ts +11 -0
  55. package/dist/components/find-node-handle.js +53 -0
  56. package/dist/components/find-node-handle.js.map +1 -0
  57. package/dist/components/flat-list.d.ts +3 -2
  58. package/dist/components/flat-list.js.map +1 -1
  59. package/dist/components/frame-scheduler.d.ts +16 -0
  60. package/dist/components/frame-scheduler.js +37 -0
  61. package/dist/components/frame-scheduler.js.map +1 -0
  62. package/dist/components/host-node.d.ts +7 -0
  63. package/dist/components/host-node.js +26 -1
  64. package/dist/components/host-node.js.map +1 -1
  65. package/dist/components/image.d.ts +6 -1
  66. package/dist/components/image.js +15 -4
  67. package/dist/components/image.js.map +1 -1
  68. package/dist/components/index.d.ts +11 -5
  69. package/dist/components/index.js +7 -4
  70. package/dist/components/index.js.map +1 -1
  71. package/dist/components/measure.d.ts +63 -0
  72. package/dist/components/measure.js +150 -0
  73. package/dist/components/measure.js.map +1 -0
  74. package/dist/components/modal.d.ts +1 -1
  75. package/dist/components/press-event.d.ts +28 -0
  76. package/dist/components/press-event.js +46 -0
  77. package/dist/components/press-event.js.map +1 -0
  78. package/dist/components/pressable.d.ts +63 -7
  79. package/dist/components/pressable.js +165 -12
  80. package/dist/components/pressable.js.map +1 -1
  81. package/dist/components/rect-store.d.ts +58 -0
  82. package/dist/components/rect-store.js +124 -3
  83. package/dist/components/rect-store.js.map +1 -1
  84. package/dist/components/root.js +6 -1
  85. package/dist/components/root.js.map +1 -1
  86. package/dist/components/scroll-phase.d.ts +35 -0
  87. package/dist/components/scroll-phase.js +26 -0
  88. package/dist/components/scroll-phase.js.map +1 -0
  89. package/dist/components/scroll-view.d.ts +43 -3
  90. package/dist/components/scroll-view.js +386 -45
  91. package/dist/components/scroll-view.js.map +1 -1
  92. package/dist/components/text-input.js +9 -25
  93. package/dist/components/text-input.js.map +1 -1
  94. package/dist/components/text.d.ts +6 -2
  95. package/dist/components/text.js +68 -9
  96. package/dist/components/text.js.map +1 -1
  97. package/dist/components/use-focus.d.ts +27 -0
  98. package/dist/components/use-focus.js +116 -0
  99. package/dist/components/use-focus.js.map +1 -0
  100. package/dist/components/use-layout-child.d.ts +13 -1
  101. package/dist/components/use-layout-child.js +205 -19
  102. package/dist/components/use-layout-child.js.map +1 -1
  103. package/dist/components/view.d.ts +12 -4
  104. package/dist/components/view.js +25 -14
  105. package/dist/components/view.js.map +1 -1
  106. package/dist/components/virtualized-list.d.ts +45 -5
  107. package/dist/components/virtualized-list.js +90 -24
  108. package/dist/components/virtualized-list.js.map +1 -1
  109. package/dist/components/wheel-scroll-session.d.ts +7 -0
  110. package/dist/components/wheel-scroll-session.js +53 -0
  111. package/dist/components/wheel-scroll-session.js.map +1 -0
  112. package/dist/components/widget-retention.d.ts +35 -0
  113. package/dist/components/widget-retention.js +169 -0
  114. package/dist/components/widget-retention.js.map +1 -0
  115. package/dist/contracts.d.ts +23 -3
  116. package/dist/contracts.js.map +1 -1
  117. package/dist/dnd/context.d.ts +69 -0
  118. package/dist/dnd/context.js +149 -0
  119. package/dist/dnd/context.js.map +1 -0
  120. package/dist/dnd/draggable.d.ts +59 -0
  121. package/dist/dnd/draggable.js +149 -0
  122. package/dist/dnd/draggable.js.map +1 -0
  123. package/dist/dnd/droppable.d.ts +24 -0
  124. package/dist/dnd/droppable.js +74 -0
  125. package/dist/dnd/droppable.js.map +1 -0
  126. package/dist/dnd/gtk-controllers.d.ts +39 -0
  127. package/dist/dnd/gtk-controllers.js +110 -0
  128. package/dist/dnd/gtk-controllers.js.map +1 -0
  129. package/dist/dnd/index.d.ts +6 -0
  130. package/dist/dnd/index.js +31 -0
  131. package/dist/dnd/index.js.map +1 -0
  132. package/dist/dnd/order.d.ts +7 -0
  133. package/dist/dnd/order.js +20 -0
  134. package/dist/dnd/order.js.map +1 -0
  135. package/dist/dnd/payload.d.ts +14 -0
  136. package/dist/dnd/payload.js +41 -0
  137. package/dist/dnd/payload.js.map +1 -0
  138. package/dist/dnd/sortable.d.ts +49 -0
  139. package/dist/dnd/sortable.js +307 -0
  140. package/dist/dnd/sortable.js.map +1 -0
  141. package/dist/dnd/types.d.ts +290 -0
  142. package/dist/dnd/types.js +25 -0
  143. package/dist/dnd/types.js.map +1 -0
  144. package/dist/gesture-handler-compat/builder.d.ts +251 -0
  145. package/dist/gesture-handler-compat/builder.js +513 -0
  146. package/dist/gesture-handler-compat/builder.js.map +1 -0
  147. package/dist/gesture-handler-compat/composition.d.ts +23 -0
  148. package/dist/gesture-handler-compat/composition.js +111 -0
  149. package/dist/gesture-handler-compat/composition.js.map +1 -0
  150. package/dist/gesture-handler-compat/deciders.d.ts +3 -0
  151. package/dist/gesture-handler-compat/deciders.js +47 -0
  152. package/dist/gesture-handler-compat/deciders.js.map +1 -0
  153. package/dist/gesture-handler-compat/detector-runtime.d.ts +44 -0
  154. package/dist/gesture-handler-compat/detector-runtime.js +374 -0
  155. package/dist/gesture-handler-compat/detector-runtime.js.map +1 -0
  156. package/dist/gesture-handler-compat/detector.d.ts +22 -0
  157. package/dist/gesture-handler-compat/detector.js +104 -0
  158. package/dist/gesture-handler-compat/detector.js.map +1 -0
  159. package/dist/gesture-handler-compat/fling.d.ts +24 -0
  160. package/dist/gesture-handler-compat/fling.js +123 -0
  161. package/dist/gesture-handler-compat/fling.js.map +1 -0
  162. package/dist/gesture-handler-compat/force-touch.d.ts +13 -0
  163. package/dist/gesture-handler-compat/force-touch.js +40 -0
  164. package/dist/gesture-handler-compat/force-touch.js.map +1 -0
  165. package/dist/gesture-handler-compat/hooks.d.ts +157 -0
  166. package/dist/gesture-handler-compat/hooks.js +268 -0
  167. package/dist/gesture-handler-compat/hooks.js.map +1 -0
  168. package/dist/gesture-handler-compat/hover.d.ts +2 -0
  169. package/dist/gesture-handler-compat/hover.js +22 -0
  170. package/dist/gesture-handler-compat/hover.js.map +1 -0
  171. package/dist/gesture-handler-compat/index.d.ts +98 -0
  172. package/dist/gesture-handler-compat/index.js +255 -0
  173. package/dist/gesture-handler-compat/index.js.map +1 -0
  174. package/dist/gesture-handler-compat/long-press.d.ts +6 -0
  175. package/dist/gesture-handler-compat/long-press.js +21 -0
  176. package/dist/gesture-handler-compat/long-press.js.map +1 -0
  177. package/dist/gesture-handler-compat/manual.d.ts +2 -0
  178. package/dist/gesture-handler-compat/manual.js +18 -0
  179. package/dist/gesture-handler-compat/manual.js.map +1 -0
  180. package/dist/gesture-handler-compat/native.d.ts +7 -0
  181. package/dist/gesture-handler-compat/native.js +34 -0
  182. package/dist/gesture-handler-compat/native.js.map +1 -0
  183. package/dist/gesture-handler-compat/orchestrator.d.ts +77 -0
  184. package/dist/gesture-handler-compat/orchestrator.js +284 -0
  185. package/dist/gesture-handler-compat/orchestrator.js.map +1 -0
  186. package/dist/gesture-handler-compat/pan.d.ts +23 -0
  187. package/dist/gesture-handler-compat/pan.js +116 -0
  188. package/dist/gesture-handler-compat/pan.js.map +1 -0
  189. package/dist/gesture-handler-compat/recognizer.d.ts +268 -0
  190. package/dist/gesture-handler-compat/recognizer.js +1056 -0
  191. package/dist/gesture-handler-compat/recognizer.js.map +1 -0
  192. package/dist/gesture-handler-compat/relations.d.ts +43 -0
  193. package/dist/gesture-handler-compat/relations.js +128 -0
  194. package/dist/gesture-handler-compat/relations.js.map +1 -0
  195. package/dist/gesture-handler-compat/tap.d.ts +6 -0
  196. package/dist/gesture-handler-compat/tap.js +29 -0
  197. package/dist/gesture-handler-compat/tap.js.map +1 -0
  198. package/dist/gesture-handler-compat/touchpad.d.ts +41 -0
  199. package/dist/gesture-handler-compat/touchpad.js +64 -0
  200. package/dist/gesture-handler-compat/touchpad.js.map +1 -0
  201. package/dist/gesture-handler-compat/types.d.ts +441 -0
  202. package/dist/gesture-handler-compat/types.js +167 -0
  203. package/dist/gesture-handler-compat/types.js.map +1 -0
  204. package/dist/gtk/controllers.d.ts +39 -0
  205. package/dist/gtk/controllers.js +92 -0
  206. package/dist/gtk/controllers.js.map +1 -0
  207. package/dist/gtk/index.d.ts +3 -1
  208. package/dist/gtk/index.js +14 -1
  209. package/dist/gtk/index.js.map +1 -1
  210. package/dist/gtk/widgets.generated.d.ts +14 -14
  211. package/dist/gtk/widgets.generated.js +101 -102
  212. package/dist/gtk/widgets.generated.js.map +1 -1
  213. package/dist/gtk/window-actions.d.ts +77 -0
  214. package/dist/gtk/window-actions.js +193 -0
  215. package/dist/gtk/window-actions.js.map +1 -0
  216. package/dist/gtkx/bridge/geometry.d.ts +15 -0
  217. package/dist/gtkx/bridge/geometry.js +40 -0
  218. package/dist/gtkx/bridge/geometry.js.map +1 -0
  219. package/dist/gtkx/bridge/index.d.ts +7 -3
  220. package/dist/gtkx/bridge/index.js +12 -4
  221. package/dist/gtkx/bridge/index.js.map +1 -1
  222. package/dist/gtkx/bridge/slot-portal.d.ts +12 -0
  223. package/dist/gtkx/bridge/slot-portal.js +17 -0
  224. package/dist/gtkx/bridge/slot-portal.js.map +1 -0
  225. package/dist/gtkx/bridge/svg-node.js +10 -54
  226. package/dist/gtkx/bridge/svg-node.js.map +1 -1
  227. package/dist/gtkx/bridge/use-signal.js +2 -2
  228. package/dist/gtkx/bridge/use-signal.js.map +1 -1
  229. package/dist/gtkx/bridge/view-box.d.ts +56 -0
  230. package/dist/gtkx/bridge/view-box.js +394 -9
  231. package/dist/gtkx/bridge/view-box.js.map +1 -1
  232. package/dist/gtkx/bridge/widget-css.d.ts +17 -0
  233. package/dist/gtkx/bridge/widget-css.js +72 -0
  234. package/dist/gtkx/bridge/widget-css.js.map +1 -0
  235. package/dist/index.d.ts +3 -3
  236. package/dist/index.js +2 -2
  237. package/dist/index.js.map +1 -1
  238. package/dist/layout/driven-size.d.ts +12 -0
  239. package/dist/layout/driven-size.js +70 -0
  240. package/dist/layout/driven-size.js.map +1 -0
  241. package/dist/layout/engine.d.ts +17 -1
  242. package/dist/layout/engine.js +3 -20
  243. package/dist/layout/engine.js.map +1 -1
  244. package/dist/layout/node.d.ts +13 -0
  245. package/dist/layout/node.js +14 -0
  246. package/dist/layout/node.js.map +1 -1
  247. package/dist/layout/yoga.d.ts +3 -2
  248. package/dist/layout/yoga.js +5 -2
  249. package/dist/layout/yoga.js.map +1 -1
  250. package/dist/mcp/data/generated.d.ts +310 -91
  251. package/dist/mcp/data/generated.js +365 -90
  252. package/dist/mcp/data/generated.js.map +1 -1
  253. package/dist/mcp/server.js +1 -1
  254. package/dist/mcp/server.js.map +1 -1
  255. package/dist/metro/index.d.ts +10 -0
  256. package/dist/metro/index.js +21 -12
  257. package/dist/metro/index.js.map +1 -1
  258. package/dist/navigation/sidebar.d.ts +47 -1
  259. package/dist/navigation/sidebar.js +77 -3
  260. package/dist/navigation/sidebar.js.map +1 -1
  261. package/dist/reanimated-compat/animated-ref.d.ts +32 -0
  262. package/dist/reanimated-compat/animated-ref.js +57 -0
  263. package/dist/reanimated-compat/animated-ref.js.map +1 -0
  264. package/dist/reanimated-compat/animation.d.ts +177 -0
  265. package/dist/reanimated-compat/animation.js +540 -0
  266. package/dist/reanimated-compat/animation.js.map +1 -0
  267. package/dist/reanimated-compat/color.d.ts +28 -0
  268. package/dist/reanimated-compat/color.js +249 -0
  269. package/dist/reanimated-compat/color.js.map +1 -0
  270. package/dist/reanimated-compat/decay.d.ts +39 -0
  271. package/dist/reanimated-compat/decay.js +96 -0
  272. package/dist/reanimated-compat/decay.js.map +1 -0
  273. package/dist/reanimated-compat/easing.d.ts +30 -0
  274. package/dist/reanimated-compat/easing.js +76 -0
  275. package/dist/reanimated-compat/easing.js.map +1 -0
  276. package/dist/reanimated-compat/hooks.d.ts +14 -0
  277. package/dist/reanimated-compat/hooks.js +217 -0
  278. package/dist/reanimated-compat/hooks.js.map +1 -0
  279. package/dist/reanimated-compat/index.d.ts +258 -0
  280. package/dist/reanimated-compat/index.js +464 -0
  281. package/dist/reanimated-compat/index.js.map +1 -0
  282. package/dist/reanimated-compat/interpolation.d.ts +18 -0
  283. package/dist/reanimated-compat/interpolation.js +122 -0
  284. package/dist/reanimated-compat/interpolation.js.map +1 -0
  285. package/dist/reanimated-compat/layout-animation-config.d.ts +43 -0
  286. package/dist/reanimated-compat/layout-animation-config.js +78 -0
  287. package/dist/reanimated-compat/layout-animation-config.js.map +1 -0
  288. package/dist/reanimated-compat/layout-animation-presets.d.ts +117 -0
  289. package/dist/reanimated-compat/layout-animation-presets.js +498 -0
  290. package/dist/reanimated-compat/layout-animation-presets.js.map +1 -0
  291. package/dist/reanimated-compat/layout-animation-runtime.d.ts +21 -0
  292. package/dist/reanimated-compat/layout-animation-runtime.js +311 -0
  293. package/dist/reanimated-compat/layout-animation-runtime.js.map +1 -0
  294. package/dist/reanimated-compat/layout-animation-view.d.ts +27 -0
  295. package/dist/reanimated-compat/layout-animation-view.js +266 -0
  296. package/dist/reanimated-compat/layout-animation-view.js.map +1 -0
  297. package/dist/reanimated-compat/layout-animation.d.ts +171 -0
  298. package/dist/reanimated-compat/layout-animation.js +469 -0
  299. package/dist/reanimated-compat/layout-animation.js.map +1 -0
  300. package/dist/reanimated-compat/layout-transitions.d.ts +83 -0
  301. package/dist/reanimated-compat/layout-transitions.js +350 -0
  302. package/dist/reanimated-compat/layout-transitions.js.map +1 -0
  303. package/dist/reanimated-compat/mutable.d.ts +29 -0
  304. package/dist/reanimated-compat/mutable.js +139 -0
  305. package/dist/reanimated-compat/mutable.js.map +1 -0
  306. package/dist/reanimated-compat/props.d.ts +18 -0
  307. package/dist/reanimated-compat/props.js +111 -0
  308. package/dist/reanimated-compat/props.js.map +1 -0
  309. package/dist/reanimated-compat/scroll-handler.d.ts +119 -0
  310. package/dist/reanimated-compat/scroll-handler.js +274 -0
  311. package/dist/reanimated-compat/scroll-handler.js.map +1 -0
  312. package/dist/reanimated-compat/scroll-offset.d.ts +12 -0
  313. package/dist/reanimated-compat/scroll-offset.js +104 -0
  314. package/dist/reanimated-compat/scroll-offset.js.map +1 -0
  315. package/dist/reanimated-compat/style.d.ts +90 -0
  316. package/dist/reanimated-compat/style.js +452 -0
  317. package/dist/reanimated-compat/style.js.map +1 -0
  318. package/dist/reanimated-compat/test-timers.d.ts +28 -0
  319. package/dist/reanimated-compat/test-timers.js +136 -0
  320. package/dist/reanimated-compat/test-timers.js.map +1 -0
  321. package/dist/reanimated-compat/threads.d.ts +13 -0
  322. package/dist/reanimated-compat/threads.js +41 -0
  323. package/dist/reanimated-compat/threads.js.map +1 -0
  324. package/dist/reanimated-compat/tracking.d.ts +41 -0
  325. package/dist/reanimated-compat/tracking.js +106 -0
  326. package/dist/reanimated-compat/tracking.js.map +1 -0
  327. package/dist/reanimated-compat/updater-animations.d.ts +36 -0
  328. package/dist/reanimated-compat/updater-animations.js +273 -0
  329. package/dist/reanimated-compat/updater-animations.js.map +1 -0
  330. package/dist/responder/system.d.ts +100 -0
  331. package/dist/responder/system.js +304 -0
  332. package/dist/responder/system.js.map +1 -0
  333. package/dist/responder/touch-history.d.ts +10 -0
  334. package/dist/responder/touch-history.js +78 -0
  335. package/dist/responder/touch-history.js.map +1 -0
  336. package/dist/responder/types.d.ts +63 -0
  337. package/dist/responder/types.js +29 -0
  338. package/dist/responder/types.js.map +1 -0
  339. package/dist/responder/use-responder.d.ts +23 -0
  340. package/dist/responder/use-responder.js +317 -0
  341. package/dist/responder/use-responder.js.map +1 -0
  342. package/dist/runner/host-dev.js +4 -2
  343. package/dist/runner/host-dev.js.map +1 -1
  344. package/dist/runner/host.js +6 -2
  345. package/dist/runner/host.js.map +1 -1
  346. package/dist/runner/index.js +3 -3
  347. package/dist/runner/index.js.map +1 -1
  348. package/dist/sea/gtkx-config-module.js +2 -2
  349. package/dist/sea/gtkx-config-module.js.map +1 -1
  350. package/dist/style/absolute-insets.d.ts +26 -0
  351. package/dist/style/absolute-insets.js +113 -0
  352. package/dist/style/absolute-insets.js.map +1 -0
  353. package/dist/style/animated-size.d.ts +25 -0
  354. package/dist/style/animated-size.js +225 -0
  355. package/dist/style/animated-size.js.map +1 -0
  356. package/dist/style/box-shadow.d.ts +7 -0
  357. package/dist/style/box-shadow.js +197 -0
  358. package/dist/style/box-shadow.js.map +1 -0
  359. package/dist/style/colors.d.ts +17 -0
  360. package/dist/style/colors.js +25 -6
  361. package/dist/style/colors.js.map +1 -1
  362. package/dist/style/imperative-css.d.ts +21 -0
  363. package/dist/style/imperative-css.js +63 -0
  364. package/dist/style/imperative-css.js.map +1 -0
  365. package/dist/style/index.d.ts +4 -1
  366. package/dist/style/index.js +4 -1
  367. package/dist/style/index.js.map +1 -1
  368. package/dist/style/split-style.d.ts +5 -2
  369. package/dist/style/split-style.js +36 -3
  370. package/dist/style/split-style.js.map +1 -1
  371. package/dist/style/text-decoration.d.ts +15 -0
  372. package/dist/style/text-decoration.js +26 -0
  373. package/dist/style/text-decoration.js.map +1 -0
  374. package/dist/style/visual-css.js +37 -1
  375. package/dist/style/visual-css.js.map +1 -1
  376. package/dist/svg/gradient-geometry.js +2 -5
  377. package/dist/svg/gradient-geometry.js.map +1 -1
  378. package/dist/testing/index.js.map +1 -1
  379. package/dist/unsupported-export.d.ts +8 -0
  380. package/dist/unsupported-export.js +66 -0
  381. package/dist/unsupported-export.js.map +1 -0
  382. package/dist/vendor/react-native/pan-responder.d.ts +102 -0
  383. package/dist/vendor/react-native/pan-responder.js +196 -0
  384. package/dist/vendor/react-native/pan-responder.js.map +1 -0
  385. package/dist/vendor/react-native/touch-history-math.d.ts +18 -0
  386. package/dist/vendor/react-native/touch-history-math.js +102 -0
  387. package/dist/vendor/react-native/touch-history-math.js.map +1 -0
  388. package/dist/vite/index.d.ts +21 -8
  389. package/dist/vite/index.js +127 -82
  390. package/dist/vite/index.js.map +1 -1
  391. package/dist/vitest/index.d.ts +2 -2
  392. package/dist/vitest/index.js.map +1 -1
  393. package/dist/worklets-compat/index.d.ts +4 -0
  394. package/dist/worklets-compat/index.js +28 -0
  395. package/dist/worklets-compat/index.js.map +1 -0
  396. package/dist/worklets-compat/surface.d.ts +110 -0
  397. package/dist/worklets-compat/surface.js +153 -0
  398. package/dist/worklets-compat/surface.js.map +1 -0
  399. package/package.json +25 -9
  400. package/types.d.ts +9 -0
@@ -0,0 +1,39 @@
1
+ import { type ReactNode } from "react";
2
+ export type ControllersProps = {
3
+ /** `Gtk.EventController` elements — `GtkDragSource`, `GtkDropTarget`,
4
+ * `GtkShortcutController`, and anything else gtkx exposes as one. */
5
+ children?: ReactNode;
6
+ };
7
+ /**
8
+ * Attaches its children as event controllers on the widget of the enclosing
9
+ * React Native component.
10
+ *
11
+ * ```tsx
12
+ * // Controllers and GtkDragSource are both exported by this subpath.
13
+ * // (Not written as a real import line: the metro-preset test scans src for
14
+ * // bare imports with a regex, and an import-shaped sentence in a doc
15
+ * // comment reads to it exactly like a real one — see components/host-node.)
16
+ *
17
+ * <Pressable onPress={open}>
18
+ * <Controllers>
19
+ * <GtkDragSource actions={Gdk.DragAction.MOVE} onPrepare={…} />
20
+ * </Controllers>
21
+ * <Text>{task.title}</Text>
22
+ * </Pressable>
23
+ * ```
24
+ *
25
+ * It renders nothing where it sits: like `WindowControllers`, it is a
26
+ * portal in React's own sense, so the children keep the context, state and
27
+ * effects they would have at that position while the attachment lands on
28
+ * the widget. They are removed when this component unmounts.
29
+ *
30
+ * Works inside `View`, `Pressable`, `ScrollView`, `Animated.View` and
31
+ * `Root` — every component that owns a widget and hands it down. Inside a
32
+ * GTK widget's own slot there is no enclosing React Native component, and
33
+ * nothing is attached: pass `controllers={…}` to the widget itself there,
34
+ * which is the prop this exists to substitute for.
35
+ *
36
+ * **Linux-only, and the import says so.** Guard it with `Platform.OS` or
37
+ * split the file if the same screen also builds for iOS or Android.
38
+ */
39
+ export declare const Controllers: ({ children }: ControllersProps) => ReactNode;
@@ -0,0 +1,92 @@
1
+ // Attaching a GTK event controller to a component written in React Native.
2
+ //
3
+ // WHY this is a component in THIS subpath rather than a `controllers` prop
4
+ // on `View`. A `View`'s ref is a `ViewHandle` — measure/measureInWindow/
5
+ // measureLayout — and that is right: React Native's contract says nothing
6
+ // about widgets, and an app that reaches through the ref to a `Gtk.Widget`
7
+ // has pinned every internal of this platform as public API. But GTK carries
8
+ // real behaviour that no style and no RN prop expresses — drag-and-drop
9
+ // above all — and before this component there was simply no way to reach it
10
+ // from a row written in React Native (see
11
+ // docs/research/react-native-first-showcase.md, and `examples/tasks-nav`'s
12
+ // rows, which could not be rewritten because of it).
13
+ //
14
+ // A `controllers` prop on `View`/`Pressable` would have been three lines.
15
+ // It was rejected because it puts a GTK concept on the two components an
16
+ // app shares with iOS and Android, imported from the PORTABLE entry point:
17
+ // the file would still compile everywhere, the prop would be ignored off
18
+ // Linux, and the feature would vanish with no diagnostic. The import is the
19
+ // signal on this platform — `react-native-gtkx/gtk` is the line an app
20
+ // knows it is crossing — and a prop on `View` throws that signal away. An
21
+ // ELEMENT, by contrast, is something an RN developer already knows how to
22
+ // put behind a `Platform.OS` check or a `.linux.tsx` split, and its absence
23
+ // is visible in the tree.
24
+ //
25
+ // The shape is not new here: `WindowActions`/`WindowControllers` next door
26
+ // already mean "declare in the app tree, attach to the window". This means
27
+ // "declare in the app tree, attach to the enclosing view" — same portal,
28
+ // same mount/unmount lifecycle, one level down. Nothing was added to
29
+ // `View`, `Pressable`, `ScrollView` or `Animated.View` to make it work on
30
+ // all four: each already publishes its widget through HostNodeContext.
31
+ import { useContext, useEffect, useState } from "react";
32
+ import { HostNodeContext } from "../components/host-node";
33
+ import { createSlotPortal } from "../gtkx/bridge/index";
34
+ /**
35
+ * Attaches its children as event controllers on the widget of the enclosing
36
+ * React Native component.
37
+ *
38
+ * ```tsx
39
+ * // Controllers and GtkDragSource are both exported by this subpath.
40
+ * // (Not written as a real import line: the metro-preset test scans src for
41
+ * // bare imports with a regex, and an import-shaped sentence in a doc
42
+ * // comment reads to it exactly like a real one — see components/host-node.)
43
+ *
44
+ * <Pressable onPress={open}>
45
+ * <Controllers>
46
+ * <GtkDragSource actions={Gdk.DragAction.MOVE} onPrepare={…} />
47
+ * </Controllers>
48
+ * <Text>{task.title}</Text>
49
+ * </Pressable>
50
+ * ```
51
+ *
52
+ * It renders nothing where it sits: like `WindowControllers`, it is a
53
+ * portal in React's own sense, so the children keep the context, state and
54
+ * effects they would have at that position while the attachment lands on
55
+ * the widget. They are removed when this component unmounts.
56
+ *
57
+ * Works inside `View`, `Pressable`, `ScrollView`, `Animated.View` and
58
+ * `Root` — every component that owns a widget and hands it down. Inside a
59
+ * GTK widget's own slot there is no enclosing React Native component, and
60
+ * nothing is attached: pass `controllers={…}` to the widget itself there,
61
+ * which is the prop this exists to substitute for.
62
+ *
63
+ * **Linux-only, and the import says so.** Guard it with `Platform.OS` or
64
+ * split the file if the same screen also builds for iOS or Android.
65
+ */
66
+ export const Controllers = ({ children }) => {
67
+ const host = useContext(HostNodeContext);
68
+ // Captured in a PASSIVE effect, not a layout effect, and that is forced:
69
+ // React attaches host refs bottom-up, so the enclosing `<ViewBox
70
+ // ref={…}>`'s ref is still null while this child's layout effects run on
71
+ // the first mount. Passive effects run after the whole commit, by which
72
+ // time it is set. The cost is that controllers attach one commit late —
73
+ // unobservable for an event controller (no pointer reaches a widget in
74
+ // its first frame), and the same delay `WindowActions` already documents
75
+ // for the window.
76
+ //
77
+ // react-hooks/set-state-in-effect is disabled rather than worked around:
78
+ // the rule guards against effects that derive state from PROPS, which
79
+ // should be computed during render instead. This derives it from an
80
+ // imperative handle that does not exist until after the commit — the one
81
+ // case an effect is the only place it can come from. It runs once and
82
+ // settles (the setter bails on an unchanged value), so there is no
83
+ // cascade for the rule to be protecting against.
84
+ const [widget, setWidget] = useState(null);
85
+ // eslint-disable-next-line react-hooks/set-state-in-effect
86
+ useEffect(() => setWidget(host?.widgetRef.current ?? null), [host]);
87
+ if (widget === null) {
88
+ return null;
89
+ }
90
+ return createSlotPortal(children, widget, "controllers");
91
+ };
92
+ //# sourceMappingURL=controllers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controllers.js","sourceRoot":"","sources":["../../src/gtk/controllers.tsx"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,EAAE;AACF,2EAA2E;AAC3E,yEAAyE;AACzE,0EAA0E;AAC1E,2EAA2E;AAC3E,4EAA4E;AAC5E,wEAAwE;AACxE,4EAA4E;AAC5E,0CAA0C;AAC1C,2EAA2E;AAC3E,qDAAqD;AACrD,EAAE;AACF,0EAA0E;AAC1E,yEAAyE;AACzE,2EAA2E;AAC3E,yEAAyE;AACzE,4EAA4E;AAC5E,uEAAuE;AACvE,0EAA0E;AAC1E,0EAA0E;AAC1E,4EAA4E;AAC5E,0BAA0B;AAC1B,EAAE;AACF,2EAA2E;AAC3E,2EAA2E;AAC3E,yEAAyE;AACzE,qEAAqE;AACrE,0EAA0E;AAC1E,uEAAuE;AACvE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAA;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EAAE,gBAAgB,EAAY,MAAM,sBAAsB,CAAA;AAQjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAE,QAAQ,EAAoB,EAAa,EAAE;IACvE,MAAM,IAAI,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IACxC,yEAAyE;IACzE,iEAAiE;IACjE,yEAAyE;IACzE,wEAAwE;IACxE,wEAAwE;IACxE,uEAAuE;IACvE,yEAAyE;IACzE,kBAAkB;IAClB,EAAE;IACF,yEAAyE;IACzE,sEAAsE;IACtE,oEAAoE;IACpE,yEAAyE;IACzE,sEAAsE;IACtE,mEAAmE;IACnE,iDAAiD;IACjD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAoB,IAAI,CAAC,CAAA;IAC7D,2DAA2D;IAC3D,SAAS,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,IAAI,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAA;IAEnE,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;QACpB,OAAO,IAAI,CAAA;IACb,CAAC;IACD,OAAO,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,CAAC,CAAA;AAC1D,CAAC,CAAA","sourcesContent":["// Attaching a GTK event controller to a component written in React Native.\n//\n// WHY this is a component in THIS subpath rather than a `controllers` prop\n// on `View`. A `View`'s ref is a `ViewHandle` — measure/measureInWindow/\n// measureLayout — and that is right: React Native's contract says nothing\n// about widgets, and an app that reaches through the ref to a `Gtk.Widget`\n// has pinned every internal of this platform as public API. But GTK carries\n// real behaviour that no style and no RN prop expresses — drag-and-drop\n// above all — and before this component there was simply no way to reach it\n// from a row written in React Native (see\n// docs/research/react-native-first-showcase.md, and `examples/tasks-nav`'s\n// rows, which could not be rewritten because of it).\n//\n// A `controllers` prop on `View`/`Pressable` would have been three lines.\n// It was rejected because it puts a GTK concept on the two components an\n// app shares with iOS and Android, imported from the PORTABLE entry point:\n// the file would still compile everywhere, the prop would be ignored off\n// Linux, and the feature would vanish with no diagnostic. The import is the\n// signal on this platform — `react-native-gtkx/gtk` is the line an app\n// knows it is crossing — and a prop on `View` throws that signal away. An\n// ELEMENT, by contrast, is something an RN developer already knows how to\n// put behind a `Platform.OS` check or a `.linux.tsx` split, and its absence\n// is visible in the tree.\n//\n// The shape is not new here: `WindowActions`/`WindowControllers` next door\n// already mean \"declare in the app tree, attach to the window\". This means\n// \"declare in the app tree, attach to the enclosing view\" — same portal,\n// same mount/unmount lifecycle, one level down. Nothing was added to\n// `View`, `Pressable`, `ScrollView` or `Animated.View` to make it work on\n// all four: each already publishes its widget through HostNodeContext.\nimport { useContext, useEffect, useState, type ReactNode } from \"react\"\nimport { HostNodeContext } from \"../components/host-node\"\nimport { createSlotPortal, type Gtk } from \"../gtkx/bridge/index\"\n\nexport type ControllersProps = {\n /** `Gtk.EventController` elements — `GtkDragSource`, `GtkDropTarget`,\n * `GtkShortcutController`, and anything else gtkx exposes as one. */\n children?: ReactNode\n}\n\n/**\n * Attaches its children as event controllers on the widget of the enclosing\n * React Native component.\n *\n * ```tsx\n * // Controllers and GtkDragSource are both exported by this subpath.\n * // (Not written as a real import line: the metro-preset test scans src for\n * // bare imports with a regex, and an import-shaped sentence in a doc\n * // comment reads to it exactly like a real one — see components/host-node.)\n *\n * <Pressable onPress={open}>\n * <Controllers>\n * <GtkDragSource actions={Gdk.DragAction.MOVE} onPrepare={…} />\n * </Controllers>\n * <Text>{task.title}</Text>\n * </Pressable>\n * ```\n *\n * It renders nothing where it sits: like `WindowControllers`, it is a\n * portal in React's own sense, so the children keep the context, state and\n * effects they would have at that position while the attachment lands on\n * the widget. They are removed when this component unmounts.\n *\n * Works inside `View`, `Pressable`, `ScrollView`, `Animated.View` and\n * `Root` — every component that owns a widget and hands it down. Inside a\n * GTK widget's own slot there is no enclosing React Native component, and\n * nothing is attached: pass `controllers={…}` to the widget itself there,\n * which is the prop this exists to substitute for.\n *\n * **Linux-only, and the import says so.** Guard it with `Platform.OS` or\n * split the file if the same screen also builds for iOS or Android.\n */\nexport const Controllers = ({ children }: ControllersProps): ReactNode => {\n const host = useContext(HostNodeContext)\n // Captured in a PASSIVE effect, not a layout effect, and that is forced:\n // React attaches host refs bottom-up, so the enclosing `<ViewBox\n // ref={…}>`'s ref is still null while this child's layout effects run on\n // the first mount. Passive effects run after the whole commit, by which\n // time it is set. The cost is that controllers attach one commit late —\n // unobservable for an event controller (no pointer reaches a widget in\n // its first frame), and the same delay `WindowActions` already documents\n // for the window.\n //\n // react-hooks/set-state-in-effect is disabled rather than worked around:\n // the rule guards against effects that derive state from PROPS, which\n // should be computed during render instead. This derives it from an\n // imperative handle that does not exist until after the commit — the one\n // case an effect is the only place it can come from. It runs once and\n // settles (the setter bails on an unchanged value), so there is no\n // cascade for the rule to be protecting against.\n const [widget, setWidget] = useState<Gtk.Widget | null>(null)\n // eslint-disable-next-line react-hooks/set-state-in-effect\n useEffect(() => setWidget(host?.widgetRef.current ?? null), [host])\n\n if (widget === null) {\n return null\n }\n return createSlotPortal(children, widget, \"controllers\")\n}\n"]}
@@ -1,6 +1,8 @@
1
1
  export * from "./widgets.generated";
2
2
  export { Gdk, Gio, GLib, GObject, Gtk, Pango } from "../gtkx/bridge/index";
3
- export { GMenu, GSimpleAction, GtkAdjustment, GtkDragSource, GtkDropTarget, GtkShortcut, GtkShortcutController, GtkTextBuffer, } from "../gtkx/bridge/index";
3
+ export { GMenu, GtkAdjustment, GtkDragSource, GtkDropControllerMotion, GtkDropTarget, GtkShortcut, GtkShortcutController, GtkTextBuffer, } from "../gtkx/bridge/index";
4
+ export { ApplicationActions, GSimpleAction, WindowActions, WindowControllers, type ApplicationActionsProps, type GSimpleActionProps, type WindowActionsProps, type WindowControllersProps, } from "./window-actions";
5
+ export { Controllers, type ControllersProps } from "./controllers";
4
6
  export { useBindSetting, useSetting, type SettingsSchema, type SettingsSchemaKeys, type SettingValue, } from "../gtkx/bridge/index";
5
7
  export { css, cx, injectGlobal } from "../gtkx/bridge/index";
6
8
  export { quit, useApplication, useParentWindow } from "../gtkx/bridge/index";
package/dist/gtk/index.js CHANGED
@@ -14,7 +14,20 @@ export { Gdk, Gio, GLib, GObject, Gtk, Pango } from "../gtkx/bridge/index";
14
14
  // adjustment (the model objects `GtkTextView`/`GtkSpinRow`-style widgets
15
15
  // bind to), keyboard shortcuts, and the two drag-and-drop controllers. See
16
16
  // docs/platform-layer.md "Unwrapped by necessity".
17
- export { GMenu, GSimpleAction, GtkAdjustment, GtkDragSource, GtkDropTarget, GtkShortcut, GtkShortcutController, GtkTextBuffer, } from "../gtkx/bridge/index";
17
+ export { GMenu, GtkAdjustment, GtkDragSource, GtkDropControllerMotion, GtkDropTarget, GtkShortcut, GtkShortcutController, GtkTextBuffer, } from "../gtkx/bridge/index";
18
+ // Window and application actions declared inside the app tree instead of
19
+ // around it (the AppRegistry options they replace cannot see app context —
20
+ // see window-actions.tsx). GSimpleAction comes from here rather than
21
+ // straight from the bridge because inside these components it arbitrates
22
+ // duplicate action names; on every other path it is gtkx's element,
23
+ // unchanged.
24
+ export { ApplicationActions, GSimpleAction, WindowActions, WindowControllers, } from "./window-actions";
25
+ // The same idea one level down: event controllers attached to the widget of
26
+ // the enclosing React Native component, so a row written in View/Pressable
27
+ // can still carry GTK drag-and-drop. The door onto GTK behaviour that no RN
28
+ // prop expresses — deliberately an element in THIS subpath rather than a
29
+ // prop on `View`, see controllers.tsx.
30
+ export { Controllers } from "./controllers";
18
31
  // GSettings: reads and writes backed by a compiled `.gschema.xml` schema.
19
32
  // `useSetting`/`useBindSetting` come straight from @gtkx/react; loading a
20
33
  // `.gschema.xml` file into the `SettingsSchema` object they expect is a
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/gtk/index.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,8DAA8D;AAC9D,yCAAyC;AACzC,0EAA0E;AAC1E,cAAc,qBAAqB,CAAA;AAEnC,4EAA4E;AAC5E,8EAA8E;AAC9E,mCAAmC;AACnC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAE1E,oEAAoE;AACpE,0EAA0E;AAC1E,oEAAoE;AACpE,mEAAmE;AACnE,yEAAyE;AACzE,2EAA2E;AAC3E,mDAAmD;AACnD,OAAO,EACL,KAAK,EACL,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,WAAW,EACX,qBAAqB,EACrB,aAAa,GACd,MAAM,sBAAsB,CAAA;AAE7B,0EAA0E;AAC1E,0EAA0E;AAC1E,wEAAwE;AACxE,mDAAmD;AACnD,OAAO,EACL,cAAc,EACd,UAAU,GAIX,MAAM,sBAAsB,CAAA;AAE7B,oEAAoE;AACpE,0EAA0E;AAC1E,sEAAsE;AACtE,0EAA0E;AAC1E,uEAAuE;AACvE,yEAAyE;AACzE,yEAAyE;AACzE,6DAA6D;AAC7D,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAE5D,yEAAyE;AACzE,wEAAwE;AACxE,uEAAuE;AACvE,6DAA6D;AAC7D,yEAAyE;AACzE,mEAAmE;AACnE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA","sourcesContent":["// The full GTK widget surface lives in a generated file: every Gtk.Widget\n// subclass gtkx binds, wrapped so React Native drives it. See\n// scripts/generate-widget-surface.ts and\n// scripts/widget-surface/classification.json for how the list is derived.\nexport * from \"./widgets.generated\"\n\n// The GTK namespaces themselves, exported as values because they carry both\n// the enums you need at runtime — `hscrollbarPolicy={Gtk.PolicyType.NEVER}` —\n// and the types you need for refs.\nexport { Gdk, Gio, GLib, GObject, Gtk, Pango } from \"../gtkx/bridge/index\"\n\n// Auxiliary JSX elements that are not Gtk.Widget subclasses, so the\n// generated widget surface above never sees them — real building blocks a\n// non-trivial app still needs: actions and menus (Gio, used through\n// `Gtk.Application`/`Gtk.ApplicationWindow`), a text buffer and an\n// adjustment (the model objects `GtkTextView`/`GtkSpinRow`-style widgets\n// bind to), keyboard shortcuts, and the two drag-and-drop controllers. See\n// docs/platform-layer.md \"Unwrapped by necessity\".\nexport {\n GMenu,\n GSimpleAction,\n GtkAdjustment,\n GtkDragSource,\n GtkDropTarget,\n GtkShortcut,\n GtkShortcutController,\n GtkTextBuffer,\n} from \"../gtkx/bridge/index\"\n\n// GSettings: reads and writes backed by a compiled `.gschema.xml` schema.\n// `useSetting`/`useBindSetting` come straight from @gtkx/react; loading a\n// `.gschema.xml` file into the `SettingsSchema` object they expect is a\n// build-time concern (see docs/platform-layer.md).\nexport {\n useBindSetting,\n useSetting,\n type SettingsSchema,\n type SettingsSchemaKeys,\n type SettingValue,\n} from \"../gtkx/bridge/index\"\n\n// @gtkx/css — a real GTK CSS class from a tagged template, the same\n// mechanism the style prop's visual half uses under the hood. Re-exported\n// here rather than left to a direct @gtkx/css dependency for the same\n// reason the namespaces above are: one subpath for the whole gtkx toolkit\n// surface, not just Gtk.Widget subclasses. `GObject` above is exported\n// mainly for `GObject.Value` — constructing a boxed value is required by\n// APIs like `Adw.Breakpoint.addSetter`, which reject a bare JS primitive\n// (see docs/platform-layer.md, \"Two ways to react to size\").\nexport { css, cx, injectGlobal } from \"../gtkx/bridge/index\"\n\n// The window and application AppRegistry itself sits on: useParentWindow\n// reaches the Gtk.Window ancestor (for anything not modeled by a prop —\n// e.g. binding a GSettings key to its own defaultWidth/defaultHeight),\n// useApplication reaches the Adw.Application (e.g. to send a\n// Gio.Notification), quit tears the whole app down programmatically (the\n// same function AppRegistry wires to a window's own close button).\nexport { quit, useApplication, useParentWindow } from \"../gtkx/bridge/index\"\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/gtk/index.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,8DAA8D;AAC9D,yCAAyC;AACzC,0EAA0E;AAC1E,cAAc,qBAAqB,CAAA;AAEnC,4EAA4E;AAC5E,8EAA8E;AAC9E,mCAAmC;AACnC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAE1E,oEAAoE;AACpE,0EAA0E;AAC1E,oEAAoE;AACpE,mEAAmE;AACnE,yEAAyE;AACzE,2EAA2E;AAC3E,mDAAmD;AACnD,OAAO,EACL,KAAK,EACL,aAAa,EACb,aAAa,EACb,uBAAuB,EACvB,aAAa,EACb,WAAW,EACX,qBAAqB,EACrB,aAAa,GACd,MAAM,sBAAsB,CAAA;AAE7B,yEAAyE;AACzE,2EAA2E;AAC3E,qEAAqE;AACrE,yEAAyE;AACzE,oEAAoE;AACpE,aAAa;AACb,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,iBAAiB,GAKlB,MAAM,kBAAkB,CAAA;AAEzB,4EAA4E;AAC5E,2EAA2E;AAC3E,4EAA4E;AAC5E,yEAAyE;AACzE,uCAAuC;AACvC,OAAO,EAAE,WAAW,EAAyB,MAAM,eAAe,CAAA;AAElE,0EAA0E;AAC1E,0EAA0E;AAC1E,wEAAwE;AACxE,mDAAmD;AACnD,OAAO,EACL,cAAc,EACd,UAAU,GAIX,MAAM,sBAAsB,CAAA;AAE7B,oEAAoE;AACpE,0EAA0E;AAC1E,sEAAsE;AACtE,0EAA0E;AAC1E,uEAAuE;AACvE,yEAAyE;AACzE,yEAAyE;AACzE,6DAA6D;AAC7D,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAE5D,yEAAyE;AACzE,wEAAwE;AACxE,uEAAuE;AACvE,6DAA6D;AAC7D,yEAAyE;AACzE,mEAAmE;AACnE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA","sourcesContent":["// The full GTK widget surface lives in a generated file: every Gtk.Widget\n// subclass gtkx binds, wrapped so React Native drives it. See\n// scripts/generate-widget-surface.ts and\n// scripts/widget-surface/classification.json for how the list is derived.\nexport * from \"./widgets.generated\"\n\n// The GTK namespaces themselves, exported as values because they carry both\n// the enums you need at runtime — `hscrollbarPolicy={Gtk.PolicyType.NEVER}` —\n// and the types you need for refs.\nexport { Gdk, Gio, GLib, GObject, Gtk, Pango } from \"../gtkx/bridge/index\"\n\n// Auxiliary JSX elements that are not Gtk.Widget subclasses, so the\n// generated widget surface above never sees them — real building blocks a\n// non-trivial app still needs: actions and menus (Gio, used through\n// `Gtk.Application`/`Gtk.ApplicationWindow`), a text buffer and an\n// adjustment (the model objects `GtkTextView`/`GtkSpinRow`-style widgets\n// bind to), keyboard shortcuts, and the two drag-and-drop controllers. See\n// docs/platform-layer.md \"Unwrapped by necessity\".\nexport {\n GMenu,\n GtkAdjustment,\n GtkDragSource,\n GtkDropControllerMotion,\n GtkDropTarget,\n GtkShortcut,\n GtkShortcutController,\n GtkTextBuffer,\n} from \"../gtkx/bridge/index\"\n\n// Window and application actions declared inside the app tree instead of\n// around it (the AppRegistry options they replace cannot see app context —\n// see window-actions.tsx). GSimpleAction comes from here rather than\n// straight from the bridge because inside these components it arbitrates\n// duplicate action names; on every other path it is gtkx's element,\n// unchanged.\nexport {\n ApplicationActions,\n GSimpleAction,\n WindowActions,\n WindowControllers,\n type ApplicationActionsProps,\n type GSimpleActionProps,\n type WindowActionsProps,\n type WindowControllersProps,\n} from \"./window-actions\"\n\n// The same idea one level down: event controllers attached to the widget of\n// the enclosing React Native component, so a row written in View/Pressable\n// can still carry GTK drag-and-drop. The door onto GTK behaviour that no RN\n// prop expresses — deliberately an element in THIS subpath rather than a\n// prop on `View`, see controllers.tsx.\nexport { Controllers, type ControllersProps } from \"./controllers\"\n\n// GSettings: reads and writes backed by a compiled `.gschema.xml` schema.\n// `useSetting`/`useBindSetting` come straight from @gtkx/react; loading a\n// `.gschema.xml` file into the `SettingsSchema` object they expect is a\n// build-time concern (see docs/platform-layer.md).\nexport {\n useBindSetting,\n useSetting,\n type SettingsSchema,\n type SettingsSchemaKeys,\n type SettingValue,\n} from \"../gtkx/bridge/index\"\n\n// @gtkx/css — a real GTK CSS class from a tagged template, the same\n// mechanism the style prop's visual half uses under the hood. Re-exported\n// here rather than left to a direct @gtkx/css dependency for the same\n// reason the namespaces above are: one subpath for the whole gtkx toolkit\n// surface, not just Gtk.Widget subclasses. `GObject` above is exported\n// mainly for `GObject.Value` — constructing a boxed value is required by\n// APIs like `Adw.Breakpoint.addSetter`, which reject a bare JS primitive\n// (see docs/platform-layer.md, \"Two ways to react to size\").\nexport { css, cx, injectGlobal } from \"../gtkx/bridge/index\"\n\n// The window and application AppRegistry itself sits on: useParentWindow\n// reaches the Gtk.Window ancestor (for anything not modeled by a prop —\n// e.g. binding a GSettings key to its own defaultWidth/defaultHeight),\n// useApplication reaches the Adw.Application (e.g. to send a\n// Gio.Notification), quit tears the whole app down programmatically (the\n// same function AppRegistry wires to a window's own close button).\nexport { quit, useApplication, useParentWindow } from \"../gtkx/bridge/index\"\n"]}
@@ -14,7 +14,6 @@ export declare const GtkColorDialogButton: React.ComponentType<import("@gtkx/jsx
14
14
  export declare const GtkColumnView: React.ComponentType<import("@gtkx/jsx/gtk").GtkColumnViewProps<import("@gtkx/gi/gtk").ColumnView> & import("../common").ReactNativeLayoutProps>;
15
15
  export declare const GtkComboBox: React.ComponentType<import("@gtkx/jsx/gtk").GtkComboBoxProps<import("@gtkx/gi/gtk").ComboBox> & import("../common").ReactNativeLayoutProps>;
16
16
  export declare const GtkComboBoxText: React.ComponentType<import("@gtkx/jsx/gtk").GtkComboBoxTextProps<import("@gtkx/gi/gtk").ComboBoxText> & import("../common").ReactNativeLayoutProps>;
17
- export declare const GtkDragIcon: React.ComponentType<import("@gtkx/jsx/gtk").GtkDragIconProps<import("@gtkx/gi/gtk").DragIcon> & import("../common").ReactNativeLayoutProps>;
18
17
  export declare const GtkDrawingArea: React.ComponentType<import("@gtkx/jsx/gtk").GtkDrawingAreaProps<import("@gtkx/gi/gtk").DrawingArea> & import("../common").ReactNativeLayoutProps>;
19
18
  export declare const GtkDropDown: React.ComponentType<import("@gtkx/jsx/gtk").GtkDropDownProps<import("@gtkx/gi/gtk").DropDown> & import("../common").ReactNativeLayoutProps>;
20
19
  export declare const GtkEditableLabel: React.ComponentType<import("@gtkx/jsx/gtk").GtkEditableLabelProps<import("@gtkx/gi/gtk").EditableLabel> & import("../common").ReactNativeLayoutProps>;
@@ -85,19 +84,20 @@ export declare const GtkViewport: React.ComponentType<import("@gtkx/jsx/gtk").Gt
85
84
  export declare const GtkVolumeButton: React.ComponentType<import("@gtkx/jsx/gtk").GtkVolumeButtonProps<import("@gtkx/gi/gtk").VolumeButton> & import("../common").ReactNativeLayoutProps>;
86
85
  export declare const GtkWindowControls: React.ComponentType<import("@gtkx/jsx/gtk").GtkWindowControlsProps<import("@gtkx/gi/gtk").WindowControls> & import("../common").ReactNativeLayoutProps>;
87
86
  export declare const GtkWindowHandle: React.ComponentType<import("@gtkx/jsx/gtk").GtkWindowHandleProps<import("@gtkx/gi/gtk").WindowHandle> & import("../common").ReactNativeLayoutProps>;
88
- export { GtkAboutDialog, // toplevel (derives Gtk.Window)
89
- GtkAppChooserDialog, // toplevel (derives Gtk.Window)
90
- GtkApplicationWindow, // toplevel (derives Gtk.Window)
91
- GtkAssistant, // toplevel (derives Gtk.Window)
92
- GtkColorChooserDialog, // toplevel (derives Gtk.Window)
93
- GtkDialog, // toplevel (derives Gtk.Window)
94
- GtkFileChooserDialog, // toplevel (derives Gtk.Window)
87
+ export { GtkAboutDialog, // toplevel (implements GtkRoot)
88
+ GtkAppChooserDialog, // toplevel (implements GtkRoot)
89
+ GtkApplicationWindow, // toplevel (implements GtkRoot)
90
+ GtkAssistant, // toplevel (implements GtkRoot)
91
+ GtkColorChooserDialog, // toplevel (implements GtkRoot)
92
+ GtkDialog, // toplevel (implements GtkRoot)
93
+ GtkDragIcon, // toplevel (implements GtkRoot)
94
+ GtkFileChooserDialog, // toplevel (implements GtkRoot)
95
95
  GtkFlowBoxChild, // child-only (derives Gtk.FlowBoxChild)
96
- GtkFontChooserDialog, // toplevel (derives Gtk.Window)
96
+ GtkFontChooserDialog, // toplevel (implements GtkRoot)
97
97
  GtkListBoxRow, // child-only (derives Gtk.ListBoxRow)
98
- GtkMessageDialog, // toplevel (derives Gtk.Window)
99
- GtkPageSetupUnixDialog, // toplevel (derives Gtk.Window)
100
- GtkPrintUnixDialog, // toplevel (derives Gtk.Window)
101
- GtkShortcutsWindow, // toplevel (derives Gtk.Window)
98
+ GtkMessageDialog, // toplevel (implements GtkRoot)
99
+ GtkPageSetupUnixDialog, // toplevel (implements GtkRoot)
100
+ GtkPrintUnixDialog, // toplevel (implements GtkRoot)
101
+ GtkShortcutsWindow, // toplevel (implements GtkRoot)
102
102
  GtkWindow, } from "../gtkx/bridge/widgets.generated";
103
- export declare const GTK_WRAPPED_WIDGET_NAMES: readonly ["GtkActionBar", "GtkAppChooserButton", "GtkAppChooserWidget", "GtkAspectFrame", "GtkBox", "GtkButton", "GtkCalendar", "GtkCellView", "GtkCenterBox", "GtkCheckButton", "GtkColorButton", "GtkColorChooserWidget", "GtkColorDialogButton", "GtkColumnView", "GtkComboBox", "GtkComboBoxText", "GtkDragIcon", "GtkDrawingArea", "GtkDropDown", "GtkEditableLabel", "GtkEmojiChooser", "GtkEntry", "GtkExpander", "GtkFileChooserWidget", "GtkFixed", "GtkFlowBox", "GtkFontButton", "GtkFontChooserWidget", "GtkFontDialogButton", "GtkFrame", "GtkGLArea", "GtkGraphicsOffload", "GtkGrid", "GtkGridView", "GtkHeaderBar", "GtkIconView", "GtkImage", "GtkInfoBar", "GtkInscription", "GtkLabel", "GtkLevelBar", "GtkLinkButton", "GtkListBox", "GtkListView", "GtkLockButton", "GtkMediaControls", "GtkMenuButton", "GtkNotebook", "GtkOverlay", "GtkPaned", "GtkPasswordEntry", "GtkPicture", "GtkPopover", "GtkPopoverBin", "GtkPopoverMenu", "GtkPopoverMenuBar", "GtkProgressBar", "GtkRange", "GtkRevealer", "GtkScale", "GtkScaleButton", "GtkScrollbar", "GtkScrolledWindow", "GtkSearchBar", "GtkSearchEntry", "GtkSeparator", "GtkShortcutLabel", "GtkShortcutsGroup", "GtkShortcutsSection", "GtkShortcutsShortcut", "GtkSpinButton", "GtkSpinner", "GtkStack", "GtkStackSidebar", "GtkStackSwitcher", "GtkStatusbar", "GtkSwitch", "GtkText", "GtkTextView", "GtkToggleButton", "GtkTreeExpander", "GtkTreeView", "GtkVideo", "GtkViewport", "GtkVolumeButton", "GtkWindowControls", "GtkWindowHandle"];
103
+ export declare const GTK_WRAPPED_WIDGET_NAMES: readonly ["GtkActionBar", "GtkAppChooserButton", "GtkAppChooserWidget", "GtkAspectFrame", "GtkBox", "GtkButton", "GtkCalendar", "GtkCellView", "GtkCenterBox", "GtkCheckButton", "GtkColorButton", "GtkColorChooserWidget", "GtkColorDialogButton", "GtkColumnView", "GtkComboBox", "GtkComboBoxText", "GtkDrawingArea", "GtkDropDown", "GtkEditableLabel", "GtkEmojiChooser", "GtkEntry", "GtkExpander", "GtkFileChooserWidget", "GtkFixed", "GtkFlowBox", "GtkFontButton", "GtkFontChooserWidget", "GtkFontDialogButton", "GtkFrame", "GtkGLArea", "GtkGraphicsOffload", "GtkGrid", "GtkGridView", "GtkHeaderBar", "GtkIconView", "GtkImage", "GtkInfoBar", "GtkInscription", "GtkLabel", "GtkLevelBar", "GtkLinkButton", "GtkListBox", "GtkListView", "GtkLockButton", "GtkMediaControls", "GtkMenuButton", "GtkNotebook", "GtkOverlay", "GtkPaned", "GtkPasswordEntry", "GtkPicture", "GtkPopover", "GtkPopoverBin", "GtkPopoverMenu", "GtkPopoverMenuBar", "GtkProgressBar", "GtkRange", "GtkRevealer", "GtkScale", "GtkScaleButton", "GtkScrollbar", "GtkScrolledWindow", "GtkSearchBar", "GtkSearchEntry", "GtkSeparator", "GtkShortcutLabel", "GtkShortcutsGroup", "GtkShortcutsSection", "GtkShortcutsShortcut", "GtkSpinButton", "GtkSpinner", "GtkStack", "GtkStackSidebar", "GtkStackSwitcher", "GtkStatusbar", "GtkSwitch", "GtkText", "GtkTextView", "GtkToggleButton", "GtkTreeExpander", "GtkTreeView", "GtkVideo", "GtkViewport", "GtkVolumeButton", "GtkWindowControls", "GtkWindowHandle"];
@@ -10,109 +10,109 @@
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 { GtkActionBar as RawGtkActionBar, GtkAppChooserButton as RawGtkAppChooserButton, GtkAppChooserWidget as RawGtkAppChooserWidget, GtkAspectFrame as RawGtkAspectFrame, GtkBox as RawGtkBox, GtkButton as RawGtkButton, GtkCalendar as RawGtkCalendar, GtkCellView as RawGtkCellView, GtkCenterBox as RawGtkCenterBox, GtkCheckButton as RawGtkCheckButton, GtkColorButton as RawGtkColorButton, GtkColorChooserWidget as RawGtkColorChooserWidget, GtkColorDialogButton as RawGtkColorDialogButton, GtkColumnView as RawGtkColumnView, GtkComboBox as RawGtkComboBox, GtkComboBoxText as RawGtkComboBoxText, GtkDragIcon as RawGtkDragIcon, GtkDrawingArea as RawGtkDrawingArea, GtkDropDown as RawGtkDropDown, GtkEditableLabel as RawGtkEditableLabel, GtkEmojiChooser as RawGtkEmojiChooser, GtkEntry as RawGtkEntry, GtkExpander as RawGtkExpander, GtkFileChooserWidget as RawGtkFileChooserWidget, GtkFixed as RawGtkFixed, GtkFlowBox as RawGtkFlowBox, GtkFontButton as RawGtkFontButton, GtkFontChooserWidget as RawGtkFontChooserWidget, GtkFontDialogButton as RawGtkFontDialogButton, GtkFrame as RawGtkFrame, GtkGLArea as RawGtkGLArea, GtkGraphicsOffload as RawGtkGraphicsOffload, GtkGrid as RawGtkGrid, GtkGridView as RawGtkGridView, GtkHeaderBar as RawGtkHeaderBar, GtkIconView as RawGtkIconView, GtkImage as RawGtkImage, GtkInfoBar as RawGtkInfoBar, GtkInscription as RawGtkInscription, GtkLabel as RawGtkLabel, GtkLevelBar as RawGtkLevelBar, GtkLinkButton as RawGtkLinkButton, GtkListBox as RawGtkListBox, GtkListView as RawGtkListView, GtkLockButton as RawGtkLockButton, GtkMediaControls as RawGtkMediaControls, GtkMenuButton as RawGtkMenuButton, GtkNotebook as RawGtkNotebook, GtkOverlay as RawGtkOverlay, GtkPaned as RawGtkPaned, GtkPasswordEntry as RawGtkPasswordEntry, GtkPicture as RawGtkPicture, GtkPopover as RawGtkPopover, GtkPopoverBin as RawGtkPopoverBin, GtkPopoverMenu as RawGtkPopoverMenu, GtkPopoverMenuBar as RawGtkPopoverMenuBar, GtkProgressBar as RawGtkProgressBar, GtkRange as RawGtkRange, GtkRevealer as RawGtkRevealer, GtkScale as RawGtkScale, GtkScaleButton as RawGtkScaleButton, GtkScrollbar as RawGtkScrollbar, GtkScrolledWindow as RawGtkScrolledWindow, GtkSearchBar as RawGtkSearchBar, GtkSearchEntry as RawGtkSearchEntry, GtkSeparator as RawGtkSeparator, GtkShortcutLabel as RawGtkShortcutLabel, GtkShortcutsGroup as RawGtkShortcutsGroup, GtkShortcutsSection as RawGtkShortcutsSection, GtkShortcutsShortcut as RawGtkShortcutsShortcut, GtkSpinButton as RawGtkSpinButton, GtkSpinner as RawGtkSpinner, GtkStack as RawGtkStack, GtkStackSidebar as RawGtkStackSidebar, GtkStackSwitcher as RawGtkStackSwitcher, GtkStatusbar as RawGtkStatusbar, GtkSwitch as RawGtkSwitch, GtkText as RawGtkText, GtkTextView as RawGtkTextView, GtkToggleButton as RawGtkToggleButton, GtkTreeExpander as RawGtkTreeExpander, GtkTreeView as RawGtkTreeView, GtkVideo as RawGtkVideo, GtkViewport as RawGtkViewport, GtkVolumeButton as RawGtkVolumeButton, GtkWindowControls as RawGtkWindowControls, GtkWindowHandle as RawGtkWindowHandle, } from "../gtkx/bridge/widgets.generated";
14
- export const GtkActionBar = wrapReactNative(RawGtkActionBar);
15
- export const GtkAppChooserButton = wrapReactNative(RawGtkAppChooserButton);
16
- export const GtkAppChooserWidget = wrapReactNative(RawGtkAppChooserWidget);
17
- export const GtkAspectFrame = wrapReactNative(RawGtkAspectFrame);
18
- export const GtkBox = wrapReactNative(RawGtkBox);
19
- export const GtkButton = wrapReactNative(RawGtkButton);
20
- export const GtkCalendar = wrapReactNative(RawGtkCalendar);
21
- export const GtkCellView = wrapReactNative(RawGtkCellView);
22
- export const GtkCenterBox = wrapReactNative(RawGtkCenterBox);
23
- export const GtkCheckButton = wrapReactNative(RawGtkCheckButton);
24
- export const GtkColorButton = wrapReactNative(RawGtkColorButton);
25
- export const GtkColorChooserWidget = wrapReactNative(RawGtkColorChooserWidget);
26
- export const GtkColorDialogButton = wrapReactNative(RawGtkColorDialogButton);
27
- export const GtkColumnView = wrapReactNative(RawGtkColumnView);
28
- export const GtkComboBox = wrapReactNative(RawGtkComboBox);
29
- export const GtkComboBoxText = wrapReactNative(RawGtkComboBoxText);
30
- export const GtkDragIcon = wrapReactNative(RawGtkDragIcon);
31
- export const GtkDrawingArea = wrapReactNative(RawGtkDrawingArea);
32
- export const GtkDropDown = wrapReactNative(RawGtkDropDown);
33
- export const GtkEditableLabel = wrapReactNative(RawGtkEditableLabel);
34
- export const GtkEmojiChooser = wrapReactNative(RawGtkEmojiChooser);
35
- export const GtkEntry = wrapReactNative(RawGtkEntry);
36
- export const GtkExpander = wrapReactNative(RawGtkExpander);
37
- export const GtkFileChooserWidget = wrapReactNative(RawGtkFileChooserWidget);
38
- export const GtkFixed = wrapReactNative(RawGtkFixed);
39
- export const GtkFlowBox = wrapReactNative(RawGtkFlowBox);
40
- export const GtkFontButton = wrapReactNative(RawGtkFontButton);
41
- export const GtkFontChooserWidget = wrapReactNative(RawGtkFontChooserWidget);
42
- export const GtkFontDialogButton = wrapReactNative(RawGtkFontDialogButton);
43
- export const GtkFrame = wrapReactNative(RawGtkFrame);
44
- export const GtkGLArea = wrapReactNative(RawGtkGLArea);
45
- export const GtkGraphicsOffload = wrapReactNative(RawGtkGraphicsOffload);
46
- export const GtkGrid = wrapReactNative(RawGtkGrid);
47
- export const GtkGridView = wrapReactNative(RawGtkGridView);
48
- export const GtkHeaderBar = wrapReactNative(RawGtkHeaderBar);
49
- export const GtkIconView = wrapReactNative(RawGtkIconView);
50
- export const GtkImage = wrapReactNative(RawGtkImage);
51
- export const GtkInfoBar = wrapReactNative(RawGtkInfoBar);
52
- export const GtkInscription = wrapReactNative(RawGtkInscription);
53
- export const GtkLabel = wrapReactNative(RawGtkLabel);
54
- export const GtkLevelBar = wrapReactNative(RawGtkLevelBar);
55
- export const GtkLinkButton = wrapReactNative(RawGtkLinkButton);
56
- export const GtkListBox = wrapReactNative(RawGtkListBox);
57
- export const GtkListView = wrapReactNative(RawGtkListView);
58
- export const GtkLockButton = wrapReactNative(RawGtkLockButton);
59
- export const GtkMediaControls = wrapReactNative(RawGtkMediaControls);
60
- export const GtkMenuButton = wrapReactNative(RawGtkMenuButton);
61
- export const GtkNotebook = wrapReactNative(RawGtkNotebook);
62
- export const GtkOverlay = wrapReactNative(RawGtkOverlay);
63
- export const GtkPaned = wrapReactNative(RawGtkPaned);
64
- export const GtkPasswordEntry = wrapReactNative(RawGtkPasswordEntry);
65
- export const GtkPicture = wrapReactNative(RawGtkPicture);
66
- export const GtkPopover = wrapReactNative(RawGtkPopover);
67
- export const GtkPopoverBin = wrapReactNative(RawGtkPopoverBin);
68
- export const GtkPopoverMenu = wrapReactNative(RawGtkPopoverMenu);
69
- export const GtkPopoverMenuBar = wrapReactNative(RawGtkPopoverMenuBar);
70
- export const GtkProgressBar = wrapReactNative(RawGtkProgressBar);
71
- export const GtkRange = wrapReactNative(RawGtkRange);
72
- export const GtkRevealer = wrapReactNative(RawGtkRevealer);
73
- export const GtkScale = wrapReactNative(RawGtkScale);
74
- export const GtkScaleButton = wrapReactNative(RawGtkScaleButton);
75
- export const GtkScrollbar = wrapReactNative(RawGtkScrollbar);
76
- export const GtkScrolledWindow = wrapReactNative(RawGtkScrolledWindow);
77
- export const GtkSearchBar = wrapReactNative(RawGtkSearchBar);
78
- export const GtkSearchEntry = wrapReactNative(RawGtkSearchEntry);
79
- export const GtkSeparator = wrapReactNative(RawGtkSeparator);
80
- export const GtkShortcutLabel = wrapReactNative(RawGtkShortcutLabel);
81
- export const GtkShortcutsGroup = wrapReactNative(RawGtkShortcutsGroup);
82
- export const GtkShortcutsSection = wrapReactNative(RawGtkShortcutsSection);
83
- export const GtkShortcutsShortcut = wrapReactNative(RawGtkShortcutsShortcut);
84
- export const GtkSpinButton = wrapReactNative(RawGtkSpinButton);
85
- export const GtkSpinner = wrapReactNative(RawGtkSpinner);
86
- export const GtkStack = wrapReactNative(RawGtkStack);
87
- export const GtkStackSidebar = wrapReactNative(RawGtkStackSidebar);
88
- export const GtkStackSwitcher = wrapReactNative(RawGtkStackSwitcher);
89
- export const GtkStatusbar = wrapReactNative(RawGtkStatusbar);
90
- export const GtkSwitch = wrapReactNative(RawGtkSwitch);
91
- export const GtkText = wrapReactNative(RawGtkText);
92
- export const GtkTextView = wrapReactNative(RawGtkTextView);
93
- export const GtkToggleButton = wrapReactNative(RawGtkToggleButton);
94
- export const GtkTreeExpander = wrapReactNative(RawGtkTreeExpander);
95
- export const GtkTreeView = wrapReactNative(RawGtkTreeView);
96
- export const GtkVideo = wrapReactNative(RawGtkVideo);
97
- export const GtkViewport = wrapReactNative(RawGtkViewport);
98
- export const GtkVolumeButton = wrapReactNative(RawGtkVolumeButton);
99
- export const GtkWindowControls = wrapReactNative(RawGtkWindowControls);
100
- export const GtkWindowHandle = wrapReactNative(RawGtkWindowHandle);
101
- export { GtkAboutDialog, // toplevel (derives Gtk.Window)
102
- GtkAppChooserDialog, // toplevel (derives Gtk.Window)
103
- GtkApplicationWindow, // toplevel (derives Gtk.Window)
104
- GtkAssistant, // toplevel (derives Gtk.Window)
105
- GtkColorChooserDialog, // toplevel (derives Gtk.Window)
106
- GtkDialog, // toplevel (derives Gtk.Window)
107
- GtkFileChooserDialog, // toplevel (derives Gtk.Window)
13
+ import { GtkActionBar as RawGtkActionBar, GtkAppChooserButton as RawGtkAppChooserButton, GtkAppChooserWidget as RawGtkAppChooserWidget, GtkAspectFrame as RawGtkAspectFrame, GtkBox as RawGtkBox, GtkButton as RawGtkButton, GtkCalendar as RawGtkCalendar, GtkCellView as RawGtkCellView, GtkCenterBox as RawGtkCenterBox, GtkCheckButton as RawGtkCheckButton, GtkColorButton as RawGtkColorButton, GtkColorChooserWidget as RawGtkColorChooserWidget, GtkColorDialogButton as RawGtkColorDialogButton, GtkColumnView as RawGtkColumnView, GtkComboBox as RawGtkComboBox, GtkComboBoxText as RawGtkComboBoxText, GtkDrawingArea as RawGtkDrawingArea, GtkDropDown as RawGtkDropDown, GtkEditableLabel as RawGtkEditableLabel, GtkEmojiChooser as RawGtkEmojiChooser, GtkEntry as RawGtkEntry, GtkExpander as RawGtkExpander, GtkFileChooserWidget as RawGtkFileChooserWidget, GtkFixed as RawGtkFixed, GtkFlowBox as RawGtkFlowBox, GtkFontButton as RawGtkFontButton, GtkFontChooserWidget as RawGtkFontChooserWidget, GtkFontDialogButton as RawGtkFontDialogButton, GtkFrame as RawGtkFrame, GtkGLArea as RawGtkGLArea, GtkGraphicsOffload as RawGtkGraphicsOffload, GtkGrid as RawGtkGrid, GtkGridView as RawGtkGridView, GtkHeaderBar as RawGtkHeaderBar, GtkIconView as RawGtkIconView, GtkImage as RawGtkImage, GtkInfoBar as RawGtkInfoBar, GtkInscription as RawGtkInscription, GtkLabel as RawGtkLabel, GtkLevelBar as RawGtkLevelBar, GtkLinkButton as RawGtkLinkButton, GtkListBox as RawGtkListBox, GtkListView as RawGtkListView, GtkLockButton as RawGtkLockButton, GtkMediaControls as RawGtkMediaControls, GtkMenuButton as RawGtkMenuButton, GtkNotebook as RawGtkNotebook, GtkOverlay as RawGtkOverlay, GtkPaned as RawGtkPaned, GtkPasswordEntry as RawGtkPasswordEntry, GtkPicture as RawGtkPicture, GtkPopover as RawGtkPopover, GtkPopoverBin as RawGtkPopoverBin, GtkPopoverMenu as RawGtkPopoverMenu, GtkPopoverMenuBar as RawGtkPopoverMenuBar, GtkProgressBar as RawGtkProgressBar, GtkRange as RawGtkRange, GtkRevealer as RawGtkRevealer, GtkScale as RawGtkScale, GtkScaleButton as RawGtkScaleButton, GtkScrollbar as RawGtkScrollbar, GtkScrolledWindow as RawGtkScrolledWindow, GtkSearchBar as RawGtkSearchBar, GtkSearchEntry as RawGtkSearchEntry, GtkSeparator as RawGtkSeparator, GtkShortcutLabel as RawGtkShortcutLabel, GtkShortcutsGroup as RawGtkShortcutsGroup, GtkShortcutsSection as RawGtkShortcutsSection, GtkShortcutsShortcut as RawGtkShortcutsShortcut, GtkSpinButton as RawGtkSpinButton, GtkSpinner as RawGtkSpinner, GtkStack as RawGtkStack, GtkStackSidebar as RawGtkStackSidebar, GtkStackSwitcher as RawGtkStackSwitcher, GtkStatusbar as RawGtkStatusbar, GtkSwitch as RawGtkSwitch, GtkText as RawGtkText, GtkTextView as RawGtkTextView, GtkToggleButton as RawGtkToggleButton, GtkTreeExpander as RawGtkTreeExpander, GtkTreeView as RawGtkTreeView, GtkVideo as RawGtkVideo, GtkViewport as RawGtkViewport, GtkVolumeButton as RawGtkVolumeButton, GtkWindowControls as RawGtkWindowControls, GtkWindowHandle as RawGtkWindowHandle, } from "../gtkx/bridge/widgets.generated";
14
+ export const GtkActionBar = wrapReactNative(RawGtkActionBar, "GtkActionBar");
15
+ export const GtkAppChooserButton = wrapReactNative(RawGtkAppChooserButton, "GtkAppChooserButton");
16
+ export const GtkAppChooserWidget = wrapReactNative(RawGtkAppChooserWidget, "GtkAppChooserWidget");
17
+ export const GtkAspectFrame = wrapReactNative(RawGtkAspectFrame, "GtkAspectFrame");
18
+ export const GtkBox = wrapReactNative(RawGtkBox, "GtkBox");
19
+ export const GtkButton = wrapReactNative(RawGtkButton, "GtkButton");
20
+ export const GtkCalendar = wrapReactNative(RawGtkCalendar, "GtkCalendar");
21
+ export const GtkCellView = wrapReactNative(RawGtkCellView, "GtkCellView");
22
+ export const GtkCenterBox = wrapReactNative(RawGtkCenterBox, "GtkCenterBox");
23
+ export const GtkCheckButton = wrapReactNative(RawGtkCheckButton, "GtkCheckButton");
24
+ export const GtkColorButton = wrapReactNative(RawGtkColorButton, "GtkColorButton");
25
+ export const GtkColorChooserWidget = wrapReactNative(RawGtkColorChooserWidget, "GtkColorChooserWidget");
26
+ export const GtkColorDialogButton = wrapReactNative(RawGtkColorDialogButton, "GtkColorDialogButton");
27
+ export const GtkColumnView = wrapReactNative(RawGtkColumnView, "GtkColumnView");
28
+ export const GtkComboBox = wrapReactNative(RawGtkComboBox, "GtkComboBox");
29
+ export const GtkComboBoxText = wrapReactNative(RawGtkComboBoxText, "GtkComboBoxText");
30
+ export const GtkDrawingArea = wrapReactNative(RawGtkDrawingArea, "GtkDrawingArea");
31
+ export const GtkDropDown = wrapReactNative(RawGtkDropDown, "GtkDropDown");
32
+ export const GtkEditableLabel = wrapReactNative(RawGtkEditableLabel, "GtkEditableLabel");
33
+ export const GtkEmojiChooser = wrapReactNative(RawGtkEmojiChooser, "GtkEmojiChooser");
34
+ export const GtkEntry = wrapReactNative(RawGtkEntry, "GtkEntry");
35
+ export const GtkExpander = wrapReactNative(RawGtkExpander, "GtkExpander");
36
+ export const GtkFileChooserWidget = wrapReactNative(RawGtkFileChooserWidget, "GtkFileChooserWidget");
37
+ export const GtkFixed = wrapReactNative(RawGtkFixed, "GtkFixed");
38
+ export const GtkFlowBox = wrapReactNative(RawGtkFlowBox, "GtkFlowBox");
39
+ export const GtkFontButton = wrapReactNative(RawGtkFontButton, "GtkFontButton");
40
+ export const GtkFontChooserWidget = wrapReactNative(RawGtkFontChooserWidget, "GtkFontChooserWidget");
41
+ export const GtkFontDialogButton = wrapReactNative(RawGtkFontDialogButton, "GtkFontDialogButton");
42
+ export const GtkFrame = wrapReactNative(RawGtkFrame, "GtkFrame");
43
+ export const GtkGLArea = wrapReactNative(RawGtkGLArea, "GtkGLArea");
44
+ export const GtkGraphicsOffload = wrapReactNative(RawGtkGraphicsOffload, "GtkGraphicsOffload");
45
+ export const GtkGrid = wrapReactNative(RawGtkGrid, "GtkGrid");
46
+ export const GtkGridView = wrapReactNative(RawGtkGridView, "GtkGridView");
47
+ export const GtkHeaderBar = wrapReactNative(RawGtkHeaderBar, "GtkHeaderBar");
48
+ export const GtkIconView = wrapReactNative(RawGtkIconView, "GtkIconView");
49
+ export const GtkImage = wrapReactNative(RawGtkImage, "GtkImage");
50
+ export const GtkInfoBar = wrapReactNative(RawGtkInfoBar, "GtkInfoBar");
51
+ export const GtkInscription = wrapReactNative(RawGtkInscription, "GtkInscription");
52
+ export const GtkLabel = wrapReactNative(RawGtkLabel, "GtkLabel");
53
+ export const GtkLevelBar = wrapReactNative(RawGtkLevelBar, "GtkLevelBar");
54
+ export const GtkLinkButton = wrapReactNative(RawGtkLinkButton, "GtkLinkButton");
55
+ export const GtkListBox = wrapReactNative(RawGtkListBox, "GtkListBox");
56
+ export const GtkListView = wrapReactNative(RawGtkListView, "GtkListView");
57
+ export const GtkLockButton = wrapReactNative(RawGtkLockButton, "GtkLockButton");
58
+ export const GtkMediaControls = wrapReactNative(RawGtkMediaControls, "GtkMediaControls");
59
+ export const GtkMenuButton = wrapReactNative(RawGtkMenuButton, "GtkMenuButton");
60
+ export const GtkNotebook = wrapReactNative(RawGtkNotebook, "GtkNotebook");
61
+ export const GtkOverlay = wrapReactNative(RawGtkOverlay, "GtkOverlay");
62
+ export const GtkPaned = wrapReactNative(RawGtkPaned, "GtkPaned");
63
+ export const GtkPasswordEntry = wrapReactNative(RawGtkPasswordEntry, "GtkPasswordEntry");
64
+ export const GtkPicture = wrapReactNative(RawGtkPicture, "GtkPicture");
65
+ export const GtkPopover = wrapReactNative(RawGtkPopover, "GtkPopover");
66
+ export const GtkPopoverBin = wrapReactNative(RawGtkPopoverBin, "GtkPopoverBin");
67
+ export const GtkPopoverMenu = wrapReactNative(RawGtkPopoverMenu, "GtkPopoverMenu");
68
+ export const GtkPopoverMenuBar = wrapReactNative(RawGtkPopoverMenuBar, "GtkPopoverMenuBar");
69
+ export const GtkProgressBar = wrapReactNative(RawGtkProgressBar, "GtkProgressBar");
70
+ export const GtkRange = wrapReactNative(RawGtkRange, "GtkRange");
71
+ export const GtkRevealer = wrapReactNative(RawGtkRevealer, "GtkRevealer");
72
+ export const GtkScale = wrapReactNative(RawGtkScale, "GtkScale");
73
+ export const GtkScaleButton = wrapReactNative(RawGtkScaleButton, "GtkScaleButton");
74
+ export const GtkScrollbar = wrapReactNative(RawGtkScrollbar, "GtkScrollbar");
75
+ export const GtkScrolledWindow = wrapReactNative(RawGtkScrolledWindow, "GtkScrolledWindow");
76
+ export const GtkSearchBar = wrapReactNative(RawGtkSearchBar, "GtkSearchBar");
77
+ export const GtkSearchEntry = wrapReactNative(RawGtkSearchEntry, "GtkSearchEntry");
78
+ export const GtkSeparator = wrapReactNative(RawGtkSeparator, "GtkSeparator");
79
+ export const GtkShortcutLabel = wrapReactNative(RawGtkShortcutLabel, "GtkShortcutLabel");
80
+ export const GtkShortcutsGroup = wrapReactNative(RawGtkShortcutsGroup, "GtkShortcutsGroup");
81
+ export const GtkShortcutsSection = wrapReactNative(RawGtkShortcutsSection, "GtkShortcutsSection");
82
+ export const GtkShortcutsShortcut = wrapReactNative(RawGtkShortcutsShortcut, "GtkShortcutsShortcut");
83
+ export const GtkSpinButton = wrapReactNative(RawGtkSpinButton, "GtkSpinButton");
84
+ export const GtkSpinner = wrapReactNative(RawGtkSpinner, "GtkSpinner");
85
+ export const GtkStack = wrapReactNative(RawGtkStack, "GtkStack");
86
+ export const GtkStackSidebar = wrapReactNative(RawGtkStackSidebar, "GtkStackSidebar");
87
+ export const GtkStackSwitcher = wrapReactNative(RawGtkStackSwitcher, "GtkStackSwitcher");
88
+ export const GtkStatusbar = wrapReactNative(RawGtkStatusbar, "GtkStatusbar");
89
+ export const GtkSwitch = wrapReactNative(RawGtkSwitch, "GtkSwitch");
90
+ export const GtkText = wrapReactNative(RawGtkText, "GtkText");
91
+ export const GtkTextView = wrapReactNative(RawGtkTextView, "GtkTextView");
92
+ export const GtkToggleButton = wrapReactNative(RawGtkToggleButton, "GtkToggleButton");
93
+ export const GtkTreeExpander = wrapReactNative(RawGtkTreeExpander, "GtkTreeExpander");
94
+ export const GtkTreeView = wrapReactNative(RawGtkTreeView, "GtkTreeView");
95
+ export const GtkVideo = wrapReactNative(RawGtkVideo, "GtkVideo");
96
+ export const GtkViewport = wrapReactNative(RawGtkViewport, "GtkViewport");
97
+ export const GtkVolumeButton = wrapReactNative(RawGtkVolumeButton, "GtkVolumeButton");
98
+ export const GtkWindowControls = wrapReactNative(RawGtkWindowControls, "GtkWindowControls");
99
+ export const GtkWindowHandle = wrapReactNative(RawGtkWindowHandle, "GtkWindowHandle");
100
+ export { GtkAboutDialog, // toplevel (implements GtkRoot)
101
+ GtkAppChooserDialog, // toplevel (implements GtkRoot)
102
+ GtkApplicationWindow, // toplevel (implements GtkRoot)
103
+ GtkAssistant, // toplevel (implements GtkRoot)
104
+ GtkColorChooserDialog, // toplevel (implements GtkRoot)
105
+ GtkDialog, // toplevel (implements GtkRoot)
106
+ GtkDragIcon, // toplevel (implements GtkRoot)
107
+ GtkFileChooserDialog, // toplevel (implements GtkRoot)
108
108
  GtkFlowBoxChild, // child-only (derives Gtk.FlowBoxChild)
109
- GtkFontChooserDialog, // toplevel (derives Gtk.Window)
109
+ GtkFontChooserDialog, // toplevel (implements GtkRoot)
110
110
  GtkListBoxRow, // child-only (derives Gtk.ListBoxRow)
111
- GtkMessageDialog, // toplevel (derives Gtk.Window)
112
- GtkPageSetupUnixDialog, // toplevel (derives Gtk.Window)
113
- GtkPrintUnixDialog, // toplevel (derives Gtk.Window)
114
- GtkShortcutsWindow, // toplevel (derives Gtk.Window)
115
- GtkWindow, // toplevel (derives Gtk.Window)
111
+ GtkMessageDialog, // toplevel (implements GtkRoot)
112
+ GtkPageSetupUnixDialog, // toplevel (implements GtkRoot)
113
+ GtkPrintUnixDialog, // toplevel (implements GtkRoot)
114
+ GtkShortcutsWindow, // toplevel (implements GtkRoot)
115
+ GtkWindow, // toplevel (implements GtkRoot)
116
116
  } from "../gtkx/bridge/widgets.generated";
117
117
  export const GTK_WRAPPED_WIDGET_NAMES = [
118
118
  "GtkActionBar",
@@ -131,7 +131,6 @@ export const GTK_WRAPPED_WIDGET_NAMES = [
131
131
  "GtkColumnView",
132
132
  "GtkComboBox",
133
133
  "GtkComboBoxText",
134
- "GtkDragIcon",
135
134
  "GtkDrawingArea",
136
135
  "GtkDropDown",
137
136
  "GtkEditableLabel",