@gtkx/react 0.18.9 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/dist/components/list.d.ts +35 -0
  2. package/dist/components/list.d.ts.map +1 -0
  3. package/dist/components/list.js +40 -0
  4. package/dist/components/list.js.map +1 -0
  5. package/dist/generated/internal.d.ts +8 -3
  6. package/dist/generated/internal.d.ts.map +1 -1
  7. package/dist/generated/internal.js +3553 -53
  8. package/dist/generated/internal.js.map +1 -1
  9. package/dist/generated/jsx.d.ts +178 -326
  10. package/dist/generated/jsx.d.ts.map +1 -1
  11. package/dist/generated/jsx.js +0 -324
  12. package/dist/generated/jsx.js.map +1 -1
  13. package/dist/host-config.d.ts.map +1 -1
  14. package/dist/host-config.js +48 -10
  15. package/dist/host-config.js.map +1 -1
  16. package/dist/jsx.d.ts +111 -54
  17. package/dist/jsx.d.ts.map +1 -1
  18. package/dist/jsx.js +3 -28
  19. package/dist/jsx.js.map +1 -1
  20. package/dist/metadata.d.ts +1 -0
  21. package/dist/metadata.d.ts.map +1 -1
  22. package/dist/metadata.js +7 -1
  23. package/dist/metadata.js.map +1 -1
  24. package/dist/node.d.ts +0 -2
  25. package/dist/node.d.ts.map +1 -1
  26. package/dist/node.js +19 -25
  27. package/dist/node.js.map +1 -1
  28. package/dist/nodes/application.d.ts.map +1 -1
  29. package/dist/nodes/application.js +4 -0
  30. package/dist/nodes/application.js.map +1 -1
  31. package/dist/nodes/column-view-column.d.ts +19 -16
  32. package/dist/nodes/column-view-column.d.ts.map +1 -1
  33. package/dist/nodes/column-view-column.js +129 -97
  34. package/dist/nodes/column-view-column.js.map +1 -1
  35. package/dist/nodes/event-controller.d.ts +1 -0
  36. package/dist/nodes/event-controller.d.ts.map +1 -1
  37. package/dist/nodes/event-controller.js +9 -7
  38. package/dist/nodes/event-controller.js.map +1 -1
  39. package/dist/nodes/fixed-child.d.ts +1 -2
  40. package/dist/nodes/fixed-child.d.ts.map +1 -1
  41. package/dist/nodes/fixed-child.js +21 -21
  42. package/dist/nodes/fixed-child.js.map +1 -1
  43. package/dist/nodes/font-dialog-button.d.ts +1 -1
  44. package/dist/nodes/font-dialog-button.d.ts.map +1 -1
  45. package/dist/nodes/font-dialog-button.js +8 -0
  46. package/dist/nodes/font-dialog-button.js.map +1 -1
  47. package/dist/nodes/internal/accessible.d.ts +5 -0
  48. package/dist/nodes/internal/accessible.d.ts.map +1 -0
  49. package/dist/nodes/internal/accessible.js +119 -0
  50. package/dist/nodes/internal/accessible.js.map +1 -0
  51. package/dist/nodes/internal/bound-item.d.ts +4 -0
  52. package/dist/nodes/internal/bound-item.d.ts.map +1 -0
  53. package/dist/nodes/internal/bound-item.js +2 -0
  54. package/dist/nodes/internal/bound-item.js.map +1 -0
  55. package/dist/nodes/internal/construct.d.ts +3 -0
  56. package/dist/nodes/internal/construct.d.ts.map +1 -0
  57. package/dist/nodes/internal/construct.js +44 -0
  58. package/dist/nodes/internal/construct.js.map +1 -0
  59. package/dist/nodes/internal/text-buffer-controller.d.ts +4 -0
  60. package/dist/nodes/internal/text-buffer-controller.d.ts.map +1 -1
  61. package/dist/nodes/internal/text-buffer-controller.js +49 -9
  62. package/dist/nodes/internal/text-buffer-controller.js.map +1 -1
  63. package/dist/nodes/internal/widget.d.ts.map +1 -1
  64. package/dist/nodes/internal/widget.js +4 -1
  65. package/dist/nodes/internal/widget.js.map +1 -1
  66. package/dist/nodes/list-item-node.d.ts +12 -0
  67. package/dist/nodes/list-item-node.d.ts.map +1 -0
  68. package/dist/nodes/list-item-node.js +23 -0
  69. package/dist/nodes/list-item-node.js.map +1 -0
  70. package/dist/nodes/list.d.ts +100 -0
  71. package/dist/nodes/list.d.ts.map +1 -0
  72. package/dist/nodes/list.js +950 -0
  73. package/dist/nodes/list.js.map +1 -0
  74. package/dist/nodes/notebook-page.d.ts.map +1 -1
  75. package/dist/nodes/notebook-page.js +4 -0
  76. package/dist/nodes/notebook-page.js.map +1 -1
  77. package/dist/nodes/shortcut.d.ts +3 -2
  78. package/dist/nodes/shortcut.d.ts.map +1 -1
  79. package/dist/nodes/shortcut.js +19 -4
  80. package/dist/nodes/shortcut.js.map +1 -1
  81. package/dist/nodes/text-anchor.d.ts.map +1 -1
  82. package/dist/nodes/text-anchor.js +7 -1
  83. package/dist/nodes/text-anchor.js.map +1 -1
  84. package/dist/nodes/text-tag.d.ts.map +1 -1
  85. package/dist/nodes/text-tag.js +5 -1
  86. package/dist/nodes/text-tag.js.map +1 -1
  87. package/dist/nodes/text-view.d.ts +1 -0
  88. package/dist/nodes/text-view.d.ts.map +1 -1
  89. package/dist/nodes/text-view.js +4 -0
  90. package/dist/nodes/text-view.js.map +1 -1
  91. package/dist/nodes/widget.d.ts +0 -2
  92. package/dist/nodes/widget.d.ts.map +1 -1
  93. package/dist/nodes/widget.js +51 -67
  94. package/dist/nodes/widget.js.map +1 -1
  95. package/dist/nodes/window.d.ts.map +1 -1
  96. package/dist/nodes/window.js +2 -2
  97. package/dist/nodes/window.js.map +1 -1
  98. package/dist/registry.d.ts +0 -2
  99. package/dist/registry.d.ts.map +1 -1
  100. package/dist/registry.js +4 -13
  101. package/dist/registry.js.map +1 -1
  102. package/dist/types.d.ts +2 -2
  103. package/dist/types.d.ts.map +1 -1
  104. package/package.json +5 -4
  105. package/src/components/list.tsx +83 -0
  106. package/src/generated/internal.ts +3559 -49
  107. package/src/generated/jsx.ts +178 -326
  108. package/src/host-config.ts +43 -10
  109. package/src/jsx.ts +121 -62
  110. package/src/metadata.ts +8 -1
  111. package/src/node.ts +23 -25
  112. package/src/nodes/application.ts +5 -0
  113. package/src/nodes/column-view-column.ts +125 -104
  114. package/src/nodes/event-controller.ts +8 -8
  115. package/src/nodes/fixed-child.ts +24 -23
  116. package/src/nodes/font-dialog-button.ts +10 -0
  117. package/src/nodes/internal/accessible.ts +155 -0
  118. package/src/nodes/internal/bound-item.ts +4 -0
  119. package/src/nodes/internal/construct.ts +60 -0
  120. package/src/nodes/internal/text-buffer-controller.ts +51 -8
  121. package/src/nodes/internal/widget.ts +3 -1
  122. package/src/nodes/list-item-node.ts +29 -0
  123. package/src/nodes/list.ts +1082 -0
  124. package/src/nodes/notebook-page.ts +4 -0
  125. package/src/nodes/shortcut.ts +22 -5
  126. package/src/nodes/text-anchor.ts +6 -1
  127. package/src/nodes/text-tag.ts +7 -1
  128. package/src/nodes/text-view.ts +5 -0
  129. package/src/nodes/widget.ts +47 -69
  130. package/src/nodes/window.ts +2 -2
  131. package/src/registry.ts +11 -17
  132. package/src/types.ts +7 -2
  133. package/dist/fiber-root.d.ts +0 -4
  134. package/dist/fiber-root.d.ts.map +0 -1
  135. package/dist/fiber-root.js +0 -6
  136. package/dist/fiber-root.js.map +0 -1
  137. package/dist/nodes/column-view.d.ts +0 -36
  138. package/dist/nodes/column-view.d.ts.map +0 -1
  139. package/dist/nodes/column-view.js +0 -175
  140. package/dist/nodes/column-view.js.map +0 -1
  141. package/dist/nodes/drop-down.d.ts +0 -27
  142. package/dist/nodes/drop-down.d.ts.map +0 -1
  143. package/dist/nodes/drop-down.js +0 -85
  144. package/dist/nodes/drop-down.js.map +0 -1
  145. package/dist/nodes/grid-view.d.ts +0 -29
  146. package/dist/nodes/grid-view.d.ts.map +0 -1
  147. package/dist/nodes/grid-view.js +0 -85
  148. package/dist/nodes/grid-view.js.map +0 -1
  149. package/dist/nodes/internal/base-item-renderer.d.ts +0 -28
  150. package/dist/nodes/internal/base-item-renderer.d.ts.map +0 -1
  151. package/dist/nodes/internal/base-item-renderer.js +0 -86
  152. package/dist/nodes/internal/base-item-renderer.js.map +0 -1
  153. package/dist/nodes/internal/grid-item-renderer.d.ts +0 -20
  154. package/dist/nodes/internal/grid-item-renderer.d.ts.map +0 -1
  155. package/dist/nodes/internal/grid-item-renderer.js +0 -66
  156. package/dist/nodes/internal/grid-item-renderer.js.map +0 -1
  157. package/dist/nodes/internal/list-item-renderer.d.ts +0 -27
  158. package/dist/nodes/internal/list-item-renderer.d.ts.map +0 -1
  159. package/dist/nodes/internal/list-item-renderer.js +0 -131
  160. package/dist/nodes/internal/list-item-renderer.js.map +0 -1
  161. package/dist/nodes/internal/list-store.d.ts +0 -22
  162. package/dist/nodes/internal/list-store.d.ts.map +0 -1
  163. package/dist/nodes/internal/list-store.js +0 -91
  164. package/dist/nodes/internal/list-store.js.map +0 -1
  165. package/dist/nodes/internal/selection-model-controller.d.ts +0 -26
  166. package/dist/nodes/internal/selection-model-controller.d.ts.map +0 -1
  167. package/dist/nodes/internal/selection-model-controller.js +0 -79
  168. package/dist/nodes/internal/selection-model-controller.js.map +0 -1
  169. package/dist/nodes/internal/simple-list-store.d.ts +0 -20
  170. package/dist/nodes/internal/simple-list-store.d.ts.map +0 -1
  171. package/dist/nodes/internal/simple-list-store.js +0 -87
  172. package/dist/nodes/internal/simple-list-store.js.map +0 -1
  173. package/dist/nodes/internal/tree-store.d.ts +0 -34
  174. package/dist/nodes/internal/tree-store.d.ts.map +0 -1
  175. package/dist/nodes/internal/tree-store.js +0 -208
  176. package/dist/nodes/internal/tree-store.js.map +0 -1
  177. package/dist/nodes/list-item.d.ts +0 -24
  178. package/dist/nodes/list-item.d.ts.map +0 -1
  179. package/dist/nodes/list-item.js +0 -83
  180. package/dist/nodes/list-item.js.map +0 -1
  181. package/dist/nodes/list-view.d.ts +0 -29
  182. package/dist/nodes/list-view.d.ts.map +0 -1
  183. package/dist/nodes/list-view.js +0 -83
  184. package/dist/nodes/list-view.js.map +0 -1
  185. package/dist/nodes/models/grid.d.ts +0 -28
  186. package/dist/nodes/models/grid.d.ts.map +0 -1
  187. package/dist/nodes/models/grid.js +0 -69
  188. package/dist/nodes/models/grid.js.map +0 -1
  189. package/dist/nodes/models/list.d.ts +0 -31
  190. package/dist/nodes/models/list.d.ts.map +0 -1
  191. package/dist/nodes/models/list.js +0 -93
  192. package/dist/nodes/models/list.js.map +0 -1
  193. package/dist/nodes/shortcut-controller.d.ts +0 -10
  194. package/dist/nodes/shortcut-controller.d.ts.map +0 -1
  195. package/dist/nodes/shortcut-controller.js +0 -23
  196. package/dist/nodes/shortcut-controller.js.map +0 -1
  197. package/src/fiber-root.ts +0 -20
  198. package/src/nodes/column-view.ts +0 -217
  199. package/src/nodes/drop-down.ts +0 -108
  200. package/src/nodes/grid-view.ts +0 -109
  201. package/src/nodes/internal/base-item-renderer.ts +0 -108
  202. package/src/nodes/internal/grid-item-renderer.ts +0 -78
  203. package/src/nodes/internal/list-item-renderer.ts +0 -162
  204. package/src/nodes/internal/list-store.ts +0 -105
  205. package/src/nodes/internal/selection-model-controller.ts +0 -115
  206. package/src/nodes/internal/simple-list-store.ts +0 -99
  207. package/src/nodes/internal/tree-store.ts +0 -237
  208. package/src/nodes/list-item.ts +0 -107
  209. package/src/nodes/list-view.ts +0 -113
  210. package/src/nodes/models/grid.ts +0 -105
  211. package/src/nodes/models/list.ts +0 -140
  212. package/src/nodes/shortcut-controller.ts +0 -27
@@ -25,6 +25,13 @@ export interface WidgetProps {
25
25
  canTarget?: boolean;
26
26
  /** A list of css classes applied to this widget. */
27
27
  cssClasses?: string[];
28
+ /**
29
+ * The name of this widget in the CSS tree.
30
+ *
31
+ * This property is meant to be set by widget implementations,
32
+ * typically in their instance init function.
33
+ */
34
+ cssName?: string;
28
35
  /** The cursor used by `widget`. */
29
36
  cursor?: Gdk.Cursor | null;
30
37
  /**
@@ -300,8 +307,6 @@ export interface WidgetProps {
300
307
  * detail strings for the notify signal.
301
308
  */
302
309
  onNotify?: ((pspec: GObject.ParamSpec, self: Gtk.Widget) => void) | null;
303
- /** When set to true, the widget will grab focus. Useful for focusing a widget when a condition becomes true. */
304
- grabFocus?: boolean;
305
310
  /** Children elements (child widgets or event controllers). */
306
311
  children?: ReactNode;
307
312
  }
@@ -1308,6 +1313,12 @@ export interface GtkAppChooserButtonProps extends WidgetProps {
1308
1313
  * a `GtkAppChooserDialog`.
1309
1314
  */
1310
1315
  showDialogItem?: boolean;
1316
+ /**
1317
+ * The content type of the `GtkAppChooser` object.
1318
+ *
1319
+ * See `GContentType` for more information about content types.
1320
+ */
1321
+ contentType?: string;
1311
1322
  /**
1312
1323
  * Emitted to when the button is activated.
1313
1324
  *
@@ -1328,12 +1339,25 @@ export interface GtkAppChooserButtonProps extends WidgetProps {
1328
1339
  }
1329
1340
  /** Props for the {@link GtkAppChooserDialog} widget. */
1330
1341
  export interface GtkAppChooserDialogProps extends GtkDialogProps {
1342
+ /**
1343
+ * The GFile used by the `GtkAppChooserDialog`.
1344
+ *
1345
+ * The dialog's `GtkAppChooserWidget` content type will
1346
+ * be guessed from the file, if present.
1347
+ */
1348
+ gfile?: Gio.File;
1331
1349
  /**
1332
1350
  * The text to show at the top of the dialog.
1333
1351
  *
1334
1352
  * The string may contain Pango markup.
1335
1353
  */
1336
1354
  heading?: string;
1355
+ /**
1356
+ * The content type of the `GtkAppChooser` object.
1357
+ *
1358
+ * See `GContentType` for more information about content types.
1359
+ */
1360
+ contentType?: string;
1337
1361
  ref?: Ref<Gtk.AppChooserDialog>;
1338
1362
  }
1339
1363
  /** Props for the {@link GtkAppChooserWidget} widget. */
@@ -1378,6 +1402,12 @@ export interface GtkAppChooserWidgetProps extends WidgetProps {
1378
1402
  * among the other applications.
1379
1403
  */
1380
1404
  showRecommended?: boolean;
1405
+ /**
1406
+ * The content type of the `GtkAppChooser` object.
1407
+ *
1408
+ * See `GContentType` for more information about content types.
1409
+ */
1410
+ contentType?: string;
1381
1411
  /**
1382
1412
  * Emitted when an application item is activated from the widget's list.
1383
1413
  *
@@ -1465,6 +1495,14 @@ export interface GtkAspectFrameProps extends WidgetProps {
1465
1495
  }
1466
1496
  /** Props for the {@link GtkAssistant} widget. */
1467
1497
  export interface GtkAssistantProps extends GtkWindowProps {
1498
+ /**
1499
+ * %TRUE if the assistant uses a `GtkHeaderBar` for action buttons
1500
+ * instead of the action-area.
1501
+ *
1502
+ * For technical reasons, this property is declared as an integer
1503
+ * property, but you should only set it to %TRUE or %FALSE.
1504
+ */
1505
+ useHeaderBar?: number;
1468
1506
  /**
1469
1507
  * Emitted when the apply button is clicked.
1470
1508
  *
@@ -1896,6 +1934,30 @@ export interface AdwCarouselIndicatorLinesProps extends WidgetProps {
1896
1934
  }
1897
1935
  /** Props for the {@link GtkCellView} widget. */
1898
1936
  export interface GtkCellViewProps extends WidgetProps {
1937
+ /**
1938
+ * The `GtkCellArea` rendering cells
1939
+ *
1940
+ * If no area is specified when creating the cell view with gtk_cell_view_new_with_context()
1941
+ * a horizontally oriented `GtkCellArea`Box will be used.
1942
+ *
1943
+ * since 3.0
1944
+ */
1945
+ cellArea?: Gtk.CellArea;
1946
+ /**
1947
+ * The `GtkCellAreaContext` used to compute the geometry of the cell view.
1948
+ *
1949
+ * A group of cell views can be assigned the same context in order to
1950
+ * ensure the sizes and cell alignments match across all the views with
1951
+ * the same context.
1952
+ *
1953
+ * `GtkComboBox` menus uses this to assign the same context to all cell views
1954
+ * in the menu items for a single menu (each submenu creates its own
1955
+ * context since the size of each submenu does not depend on parent
1956
+ * or sibling menus).
1957
+ *
1958
+ * since 3.0
1959
+ */
1960
+ cellAreaContext?: Gtk.CellAreaContext;
1899
1961
  /**
1900
1962
  * Whether all cells should be draw as sensitive for this view regardless
1901
1963
  * of the actual cell properties (used to make menus with submenus appear
@@ -2335,6 +2397,8 @@ export interface GtkComboBoxProps extends WidgetProps {
2335
2397
  * {@link ComboBox.has-entry} is %TRUE.
2336
2398
  */
2337
2399
  entryTextColumn?: number;
2400
+ /** Whether the combo box has an entry. */
2401
+ hasEntry?: boolean;
2338
2402
  /** The `has-frame` property controls whether a frame is drawn around the entry. */
2339
2403
  hasFrame?: boolean;
2340
2404
  /**
@@ -2488,6 +2552,7 @@ export interface AdwComboRowProps extends AdwActionRowProps {
2488
2552
  }
2489
2553
  /** Props for the {@link GtkSourceCompletionCell} widget. */
2490
2554
  export interface GtkSourceCompletionCellProps extends WidgetProps {
2555
+ column?: GtkSource.CompletionColumn;
2491
2556
  markup?: string;
2492
2557
  paintable?: Gdk.Paintable;
2493
2558
  text?: string | null;
@@ -2569,6 +2634,27 @@ export interface AdwDialogProps extends WidgetProps {
2569
2634
  }
2570
2635
  /** Props for the {@link GtkDialog} widget. */
2571
2636
  export interface GtkDialogProps extends GtkWindowProps {
2637
+ /**
2638
+ * %TRUE if the dialog uses a headerbar for action buttons
2639
+ * instead of the action-area.
2640
+ *
2641
+ * For technical reasons, this property is declared as an integer
2642
+ * property, but you should only set it to %TRUE or %FALSE.
2643
+ *
2644
+ * ## Creating a dialog with headerbar
2645
+ *
2646
+ * Builtin `GtkDialog` subclasses such as {@link ColorChooserDialog}
2647
+ * set this property according to platform conventions (using the
2648
+ * {@link Settings.gtk-dialogs-use-header} setting).
2649
+ *
2650
+ * Here is how you can achieve the same:
2651
+ *
2652
+ * ```c
2653
+ * g_object_get (settings, "gtk-dialogs-use-header", &header, NULL);
2654
+ * dialog = g_object_new (GTK_TYPE_DIALOG, header, TRUE, NULL);
2655
+ * ```
2656
+ */
2657
+ useHeaderBar?: number;
2572
2658
  /**
2573
2659
  * Emitted when an action widget is clicked.
2574
2660
  *
@@ -3818,6 +3904,10 @@ export interface GtkGridViewProps extends GtkListBaseProps {
3818
3904
  }
3819
3905
  /** Props for the {@link GtkSourceGutter} widget. */
3820
3906
  export interface GtkSourceGutterProps extends WidgetProps {
3907
+ /** The #GtkSourceView of the gutter. */
3908
+ view?: GtkSource.View;
3909
+ /** The text window type on which the window is placed. */
3910
+ windowType?: Gtk.TextWindowType;
3821
3911
  ref?: Ref<GtkSource.Gutter>;
3822
3912
  }
3823
3913
  /** Props for the {@link GtkSourceGutterRenderer} widget. */
@@ -3983,6 +4073,13 @@ export interface GtkIconViewProps extends WidgetProps {
3983
4073
  * will be emitted after a single click.
3984
4074
  */
3985
4075
  activateOnSingleClick?: boolean;
4076
+ /**
4077
+ * The `GtkCellArea` used to layout cell renderers for this view.
4078
+ *
4079
+ * If no area is specified when creating the icon view with gtk_icon_view_new_with_area()
4080
+ * a `GtkCellAreaBox` will be used.
4081
+ */
4082
+ cellArea?: Gtk.CellArea;
3986
4083
  /**
3987
4084
  * The column-spacing property specifies the space which is inserted between
3988
4085
  * the columns of the icon view.
@@ -4555,6 +4652,12 @@ export interface GtkLabelProps extends WidgetProps {
4555
4652
  }
4556
4653
  /** Props for the {@link AdwLayoutSlot} widget. */
4557
4654
  export interface AdwLayoutSlotProps extends WidgetProps {
4655
+ /**
4656
+ * The slot ID.
4657
+ *
4658
+ * See {@link MultiLayoutViewset_child}.
4659
+ */
4660
+ id?: string;
4558
4661
  ref?: Ref<Adw.LayoutSlot>;
4559
4662
  }
4560
4663
  /** Props for the {@link AdwLeaflet} widget. */
@@ -5006,6 +5109,8 @@ export interface AdwMessageDialogProps extends GtkWindowProps {
5006
5109
  }
5007
5110
  /** Props for the {@link GtkMessageDialog} widget. */
5008
5111
  export interface GtkMessageDialogProps extends GtkDialogProps {
5112
+ /** Set of buttons to display on the dialog. */
5113
+ buttons?: Gtk.ButtonsType;
5009
5114
  /** The type of the message. */
5010
5115
  messageType?: Gtk.MessageType;
5011
5116
  /** The secondary text of the message dialog. */
@@ -7002,6 +7107,7 @@ export interface GtkSourceStyleSchemeChooserWidgetProps extends WidgetProps {
7002
7107
  }
7003
7108
  /** Props for the {@link GtkSourceStyleSchemePreview} widget. */
7004
7109
  export interface GtkSourceStyleSchemePreviewProps extends WidgetProps {
7110
+ scheme: GtkSource.StyleScheme;
7005
7111
  selected?: boolean;
7006
7112
  /** The name of the action with which this widget should be associated. */
7007
7113
  actionName?: string;
@@ -8726,6 +8832,13 @@ export interface GtkVolumeButtonProps extends GtkScaleButtonProps {
8726
8832
  }
8727
8833
  /** Props for the {@link WebKitWebView} widget. */
8728
8834
  export interface WebKitWebViewProps extends WebKitWebViewBaseProps {
8835
+ /**
8836
+ * The #WebKitAutomationBrowsingContextPresentation of #WebKitWebView. This should only be used when
8837
+ * creating a new #WebKitWebView as a response to #WebKitAutomationSession::create-web-view
8838
+ * signal request. If the new WebView was added to a new tab of current browsing context window
8839
+ * %WEBKIT_AUTOMATION_BROWSING_CONTEXT_PRESENTATION_TAB should be used.
8840
+ */
8841
+ automationPresentationType?: WebKit.AutomationBrowsingContextPresentation;
8729
8842
  /**
8730
8843
  * Capture state of the camera device. Whenever the user grants a media-request sent by the web
8731
8844
  * page, requesting video capture capabilities (`navigator.mediaDevices.getUserMedia({video:
@@ -8740,6 +8853,19 @@ export interface WebKitWebViewProps extends WebKitWebViewBaseProps {
8740
8853
  * application.
8741
8854
  */
8742
8855
  cameraCaptureState?: WebKit.MediaCaptureState;
8856
+ /**
8857
+ * The default Content-Security-Policy used by the webview as if it were set
8858
+ * by an HTTP header.
8859
+ *
8860
+ * This applies to all content loaded including through navigation or via the various
8861
+ * webkit_web_view_load_\* APIs. However do note that many WebKit APIs bypass
8862
+ * Content-Security-Policy in general such as #WebKitUserContentManager and
8863
+ * webkit_web_view_run_javascript().
8864
+ *
8865
+ * Policies are additive so if a website sets its own policy it still applies
8866
+ * on top of the policy set here.
8867
+ */
8868
+ defaultContentSecurityPolicy?: string;
8743
8869
  /**
8744
8870
  * Capture state of the display device. Whenever the user grants a media-request sent by the web
8745
8871
  * page, requesting screencasting capabilities (`navigator.mediaDevices.getDisplayMedia() this
@@ -8759,6 +8885,19 @@ export interface WebKitWebViewProps extends WebKitWebViewBaseProps {
8759
8885
  * information see webkit_web_view_set_editable().
8760
8886
  */
8761
8887
  editable?: boolean;
8888
+ /**
8889
+ * Whether the #WebKitWebView is controlled by automation tools (e.g. WebDriver, Selenium). This is
8890
+ * required for views returned as a response to #WebKitAutomationSession::create-web-view signal,
8891
+ * alongside any view you want to control during an automation session.
8892
+ *
8893
+ * As a %G_PARAM_CONSTRUCT_ONLY, you need to set it during construction and it can't be modified.
8894
+ *
8895
+ * If #WebKitWebView:related-view is also passed during construction, #WebKitWebView:is-controlled-by-automation
8896
+ * ignores its own parameter and inherits directly from the related view #WebKitWebView:is-controlled-by-automation
8897
+ * property. This is the recommended way when creating new views as a response to the #WebKitWebView::create
8898
+ * signal. For example, as response to JavaScript `window.open()` calls during an automation session.
8899
+ */
8900
+ isControlledByAutomation?: boolean;
8762
8901
  /**
8763
8902
  * Whether the #WebKitWebView audio is muted. When %TRUE, audio is silenced.
8764
8903
  * It may still be playing, i.e. #WebKitWebView:is-playing-audio may be %TRUE.
@@ -8778,8 +8917,32 @@ export interface WebKitWebViewProps extends WebKitWebViewBaseProps {
8778
8917
  * application.
8779
8918
  */
8780
8919
  microphoneCaptureState?: WebKit.MediaCaptureState;
8920
+ /** The #WebKitNetworkSession of the view */
8921
+ networkSession?: WebKit.NetworkSession;
8922
+ /**
8923
+ * The related #WebKitWebView used when creating the view to share the
8924
+ * same web process and network session. This property is not readable
8925
+ * because the related web view is only valid during the object construction.
8926
+ */
8927
+ relatedView?: WebKit.WebView;
8781
8928
  /** The #WebKitSettings of the view. */
8782
8929
  settings?: WebKit.Settings;
8930
+ /** The #WebKitUserContentManager of the view. */
8931
+ userContentManager?: WebKit.UserContentManager;
8932
+ /** The #WebKitWebContext of the view. */
8933
+ webContext?: WebKit.WebContext;
8934
+ /**
8935
+ * This configures `web_view` to treat the content as a WebExtension.
8936
+ *
8937
+ * Note that this refers to the web standard [WebExtensions](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions)
8938
+ * and not WebKitWebExtensions.
8939
+ *
8940
+ * In practice this limits the Content-Security-Policies that are allowed to be set. Some details can be found in
8941
+ * [Chrome's documentation](https://developer.chrome.com/docs/extensions/mv3/intro/mv3-migration/#content-security-policy).
8942
+ */
8943
+ webExtensionMode?: WebKit.WebExtensionMode;
8944
+ /** The #WebKitWebsitePolicies for the view. */
8945
+ websitePolicies?: WebKit.WebsitePolicies;
8783
8946
  /**
8784
8947
  * The zoom level of the #WebKitWebView content.
8785
8948
  * See webkit_web_view_set_zoom_level() for more details.
@@ -9505,6 +9668,8 @@ export interface GtkDropControllerMotionProps extends EventControllerBaseProps {
9505
9668
  export interface GtkDropTargetProps extends EventControllerBaseProps {
9506
9669
  /** The `GdkDragActions` that this drop target supports. */
9507
9670
  actions?: Gdk.DragAction;
9671
+ /** The `GdkContentFormats` that determine the supported data formats. */
9672
+ formats?: Gdk.ContentFormats;
9508
9673
  /**
9509
9674
  * Whether the drop data should be preloaded when the pointer is only
9510
9675
  * hovering over the widget but has not been released.
@@ -9732,6 +9897,11 @@ export interface GtkEventControllerScrollProps extends EventControllerBaseProps
9732
9897
  }
9733
9898
  /** Props for the {@link GtkGesture} controller element. */
9734
9899
  export interface GtkGestureProps extends EventControllerBaseProps {
9900
+ /**
9901
+ * The number of touch points that trigger
9902
+ * recognition on this gesture.
9903
+ */
9904
+ nPoints?: number;
9735
9905
  /**
9736
9906
  * Emitted when the gesture is recognized.
9737
9907
  *
@@ -9896,12 +10066,18 @@ export interface GtkGestureZoomProps extends GtkGestureProps {
9896
10066
  }
9897
10067
  /** Props for the {@link GtkPadController} controller element. */
9898
10068
  export interface GtkPadControllerProps extends EventControllerBaseProps {
10069
+ /** The action group of the controller. */
10070
+ actionGroup?: Gio.ActionGroup;
10071
+ /** The pad of the controller. */
10072
+ pad?: Gdk.Device;
9899
10073
  ref?: Ref<Gtk.PadController>;
9900
10074
  }
9901
10075
  /** Props for the {@link GtkShortcutController} controller element. */
9902
10076
  export interface GtkShortcutControllerProps extends EventControllerBaseProps {
9903
10077
  /** The modifiers that need to be pressed to allow mnemonics activation. */
9904
10078
  mnemonicModifiers?: Gdk.ModifierType;
10079
+ /** A list model to take shortcuts from. */
10080
+ model?: Gio.ListModel;
9905
10081
  /** What scope the shortcuts will be handled in. */
9906
10082
  scope?: Gtk.ShortcutScope;
9907
10083
  /**
@@ -12124,73 +12300,6 @@ export declare const GtkColorChooserWidget: "GtkColorChooserWidget";
12124
12300
  * it gets the .color style class.
12125
12301
  */
12126
12302
  export declare const GtkColorDialogButton: "GtkColorDialogButton";
12127
- /**
12128
- * Presents a large dynamic list of items using multiple columns with headers.
12129
- *
12130
- * `GtkColumnView` uses the factories of its columns to generate a cell widget for
12131
- * each column, for each visible item and displays them together as the row for
12132
- * this item.
12133
- *
12134
- * The {@link Gtk.ColumnView.show-row-separators} and
12135
- * {@link Gtk.ColumnView.show-column-separators} properties offer a simple way
12136
- * to display separators between the rows or columns.
12137
- *
12138
- * `GtkColumnView` allows the user to select items according to the selection
12139
- * characteristics of the model. For models that allow multiple selected items,
12140
- * it is possible to turn on *rubberband selection*, using
12141
- * {@link Gtk.ColumnView.enable-rubberband}.
12142
- *
12143
- * The column view supports sorting that can be customized by the user by
12144
- * clicking on column headers. To set this up, the `GtkSorter` returned by
12145
- * {@link Gtk.ColumnView.get_sorter} must be attached to a sort model for the
12146
- * data that the view is showing, and the columns must have sorters attached to
12147
- * them by calling {@link Gtk.ColumnViewColumn.set_sorter}. The initial sort
12148
- * order can be set with {@link Gtk.ColumnView.sort_by_column}.
12149
- *
12150
- * The column view also supports interactive resizing and reordering of
12151
- * columns, via Drag-and-Drop of the column headers. This can be enabled or
12152
- * disabled with the {@link Gtk.ColumnView.reorderable} and
12153
- * {@link Gtk.ColumnViewColumn.resizable} properties.
12154
- *
12155
- * To learn more about the list widget framework, see the
12156
- * overview.
12157
- *
12158
- * # CSS nodes
12159
- *
12160
- * ```
12161
- * columnview[.column-separators][.rich-list][.navigation-sidebar][.data-table]
12162
- * ├── header
12163
- * │ ├── <column header>
12164
- * ┊ ┊
12165
- * │ ╰── <column header>
12166
- * │
12167
- * ├── listview
12168
- * │
12169
- * ┊
12170
- * ╰── [rubberband]
12171
- * ```
12172
- *
12173
- * `GtkColumnView` uses a single CSS node named columnview. It may carry the
12174
- * .column-separators style class, when {@link Gtk.ColumnView.show-column-separators}
12175
- * property is set. Header widgets appear below a node with name header.
12176
- * The rows are contained in a `GtkListView` widget, so there is a listview
12177
- * node with the same structure as for a standalone `GtkListView` widget.
12178
- * If {@link Gtk.ColumnView.show-row-separators} is set, it will be passed
12179
- * on to the list view, causing its CSS node to carry the .separators style class.
12180
- * For rubberband selection, a node with name rubberband is used.
12181
- *
12182
- * The main columnview node may also carry style classes to select
12183
- * the style of list presentation:
12184
- * .rich-list, .navigation-sidebar or .data-table.
12185
- *
12186
- * # Accessibility
12187
- *
12188
- * `GtkColumnView` uses the {@link Gtk.AccessibleRole.tree_grid} role, header title
12189
- * widgets are using the {@link Gtk.AccessibleRole.column_header} role. The row widgets
12190
- * are using the {@link Gtk.AccessibleRole.row} role, and individual cells are using
12191
- * the {@link Gtk.AccessibleRole.grid_cell} role
12192
- */
12193
- export declare const GtkColumnView: "GtkColumnView";
12194
12303
  /**
12195
12304
  * A `GtkComboBox` is a widget that allows the user to choose from a list of
12196
12305
  * valid choices.
@@ -12312,53 +12421,6 @@ export declare const GtkComboBox: "GtkComboBox";
12312
12421
  * children, and the .linked class to the node of its internal box.
12313
12422
  */
12314
12423
  export declare const GtkComboBoxText: "GtkComboBoxText";
12315
- /**
12316
- * A {@link Gtk.ListBoxRow} used to choose from a list of items.
12317
- *
12318
- * ![combo-row](https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1-latest/combo-row.png)
12319
- *
12320
- * The `AdwComboRow` widget allows the user to choose from a list of valid
12321
- * choices. The row displays the selected choice. When activated, the row
12322
- * displays a popover which allows the user to make a new choice.
12323
- *
12324
- * Example of an `AdwComboRow` UI definition:
12325
- * ```xml
12326
- * <object class="AdwComboRow">
12327
- * <property name="title" translatable="yes">Combo Row</property>
12328
- * <property name="model">
12329
- * <object class="GtkStringList">
12330
- * <items>
12331
- * <item translatable="yes">Foo</item>
12332
- * <item translatable="yes">Bar</item>
12333
- * <item translatable="yes">Baz</item>
12334
- * </items>
12335
- * </object>
12336
- * </property>
12337
- * </object>
12338
- * ```
12339
- *
12340
- * The {@link ComboRow.selected} and {@link ComboRow.selected-item}
12341
- * properties can be used to keep track of the selected item and react to their
12342
- * changes.
12343
- *
12344
- * `AdwComboRow` mirrors {@link Gtk.DropDown}, see that widget for details.
12345
- *
12346
- * `AdwComboRow` is {@link Gtk.ListBoxRow.activatable} if a model is set.
12347
- *
12348
- * ## CSS nodes
12349
- *
12350
- * `AdwComboRow` has a main CSS node with name `row` and the `.combo` style
12351
- * class.
12352
- *
12353
- * Its popover has the node named `popover` with the `.menu` style class, it
12354
- * contains a {@link Gtk.ScrolledWindow}, which in turn contains a
12355
- * {@link Gtk.ListView}, both are accessible via their regular nodes.
12356
- *
12357
- * ## Accessibility
12358
- *
12359
- * `AdwComboRow` uses the `GTK_ACCESSIBLE_ROLE_COMBO_BOX` role.
12360
- */
12361
- export declare const AdwComboRow: "AdwComboRow";
12362
12424
  /**
12363
12425
  * Widget for single cell of completion proposal.
12364
12426
  *
@@ -12650,64 +12712,6 @@ export declare const GtkDragIcon: "GtkDragIcon";
12650
12712
  * creating your own `GtkWidget` subclass.
12651
12713
  */
12652
12714
  export declare const GtkDrawingArea: "GtkDrawingArea";
12653
- /**
12654
- * Allows the user to choose an item from a list of options.
12655
- *
12656
- * ![An example GtkDropDown](https://docs.gtk.org/gtk4/drop-down.png)
12657
- *
12658
- * The `GtkDropDown` displays the [selected]{@link Gtk.DropDown.selected}
12659
- * choice.
12660
- *
12661
- * The options are given to `GtkDropDown` in the form of `GListModel`
12662
- * and how the individual options are represented is determined by
12663
- * a {@link Gtk.ListItemFactory}. The default factory displays simple strings,
12664
- * and adds a checkmark to the selected item in the popup.
12665
- *
12666
- * To set your own factory, use {@link Gtk.DropDown.set_factory}. It is
12667
- * possible to use a separate factory for the items in the popup, with
12668
- * {@link Gtk.DropDown.set_list_factory}.
12669
- *
12670
- * `GtkDropDown` knows how to obtain strings from the items in a
12671
- * {@link Gtk.StringList}; for other models, you have to provide an expression
12672
- * to find the strings via {@link Gtk.DropDown.set_expression}.
12673
- *
12674
- * `GtkDropDown` can optionally allow search in the popup, which is
12675
- * useful if the list of options is long. To enable the search entry,
12676
- * use {@link Gtk.DropDown.set_enable_search}.
12677
- *
12678
- * Here is a UI definition example for `GtkDropDown` with a simple model:
12679
- *
12680
- * ```xml
12681
- * <object class="GtkDropDown">
12682
- * <property name="model">
12683
- * <object class="GtkStringList">
12684
- * <items>
12685
- * <item translatable="yes">Factory</item>
12686
- * <item translatable="yes">Home</item>
12687
- * <item translatable="yes">Subway</item>
12688
- * </items>
12689
- * </object>
12690
- * </property>
12691
- * </object>
12692
- * ```
12693
- *
12694
- * If a `GtkDropDown` is created in this manner, or with
12695
- * {@link Gtk.DropDown.new_from_strings}, for instance, the object returned from
12696
- * {@link Gtk.DropDown.get_selected_item} will be a {@link Gtk.StringObject}.
12697
- *
12698
- * To learn more about the list widget framework, see the
12699
- * overview.
12700
- *
12701
- * ## CSS nodes
12702
- *
12703
- * `GtkDropDown` has a single CSS node with name dropdown,
12704
- * with the button and popover nodes as children.
12705
- *
12706
- * ## Accessibility
12707
- *
12708
- * `GtkDropDown` uses the {@link Gtk.AccessibleRole.combo_box} role.
12709
- */
12710
- export declare const GtkDropDown: "GtkDropDown";
12711
12715
  /**
12712
12716
  * Allows users to edit the displayed text by switching to an “edit mode”.
12713
12717
  *
@@ -13779,51 +13783,6 @@ export declare const GtkGraphicsOffload: "GtkGraphicsOffload";
13779
13783
  * Starting from GTK 4.12, `GtkGrid` uses the {@link Gtk.AccessibleRole.generic} role.
13780
13784
  */
13781
13785
  export declare const GtkGrid: "GtkGrid";
13782
- /**
13783
- * Presents a large dynamic grid of items.
13784
- *
13785
- * `GtkGridView` uses its factory to generate one child widget for each
13786
- * visible item and shows them in a grid. The orientation of the grid view
13787
- * determines if the grid reflows vertically or horizontally.
13788
- *
13789
- * `GtkGridView` allows the user to select items according to the selection
13790
- * characteristics of the model. For models that allow multiple selected items,
13791
- * it is possible to turn on _rubberband selection_, using
13792
- * {@link Gtk.GridView.enable-rubberband}.
13793
- *
13794
- * To learn more about the list widget framework, see the
13795
- * overview.
13796
- *
13797
- * # Actions
13798
- *
13799
- * `GtkGridView` defines a set of built-in actions:
13800
- *
13801
- * - `list.activate-item` activates the item at given position by emitting the
13802
- * the {@link Gtk.GridView.:activate} signal.
13803
- *
13804
- * # CSS nodes
13805
- *
13806
- * ```
13807
- * gridview
13808
- * ├── child[.activatable]
13809
- * │
13810
- * ├── child[.activatable]
13811
- * │
13812
- * ┊
13813
- * ╰── [rubberband]
13814
- * ```
13815
- *
13816
- * `GtkGridView` uses a single CSS node with name `gridview`. Each child uses
13817
- * a single CSS node with name `child`. If the {@link Gtk.ListItem.activatable}
13818
- * property is set, the corresponding row will have the `.activatable` style
13819
- * class. For rubberband selection, a subnode with name `rubberband` is used.
13820
- *
13821
- * # Accessibility
13822
- *
13823
- * `GtkGridView` uses the {@link Gtk.AccessibleRole.grid} role, and the items
13824
- * use the {@link Gtk.AccessibleRole.grid_cell} role.
13825
- */
13826
- export declare const GtkGridView: "GtkGridView";
13827
13786
  /**
13828
13787
  * Gutter object for {@link View}.
13829
13788
  *
@@ -14784,113 +14743,6 @@ export declare const GtkListBox: "GtkListBox";
14784
14743
  * when necessary.
14785
14744
  */
14786
14745
  export declare const GtkListBoxRow: "GtkListBoxRow";
14787
- /**
14788
- * Presents a large dynamic list of items.
14789
- *
14790
- * `GtkListView` uses its factory to generate one row widget for each visible
14791
- * item and shows them in a linear display, either vertically or horizontally.
14792
- *
14793
- * The {@link Gtk.ListView.show-separators} property offers a simple way to
14794
- * display separators between the rows.
14795
- *
14796
- * `GtkListView` allows the user to select items according to the selection
14797
- * characteristics of the model. For models that allow multiple selected items,
14798
- * it is possible to turn on _rubberband selection_, using
14799
- * {@link Gtk.ListView.enable-rubberband}.
14800
- *
14801
- * If you need multiple columns with headers, see {@link Gtk.ColumnView}.
14802
- *
14803
- * To learn more about the list widget framework, see the
14804
- * overview.
14805
- *
14806
- * An example of using `GtkListView`:
14807
- * ```c
14808
- * static void
14809
- * setup_listitem_cb (GtkListItemFactory *factory,
14810
- * GtkListItem *list_item)
14811
- * {
14812
- * GtkWidget *image;
14813
- *
14814
- * image = gtk_image_new ();
14815
- * gtk_image_set_icon_size (GTK_IMAGE (image), GTK_ICON_SIZE_LARGE);
14816
- * gtk_list_item_set_child (list_item, image);
14817
- * }
14818
- *
14819
- * static void
14820
- * bind_listitem_cb (GtkListItemFactory *factory,
14821
- * GtkListItem *list_item)
14822
- * {
14823
- * GtkWidget *image;
14824
- * GAppInfo *app_info;
14825
- *
14826
- * image = gtk_list_item_get_child (list_item);
14827
- * app_info = gtk_list_item_get_item (list_item);
14828
- * gtk_image_set_from_gicon (GTK_IMAGE (image), g_app_info_get_icon (app_info));
14829
- * }
14830
- *
14831
- * static void
14832
- * activate_cb (GtkListView *list,
14833
- * guint position,
14834
- * gpointer unused)
14835
- * {
14836
- * GAppInfo *app_info;
14837
- *
14838
- * app_info = g_list_model_get_item (G_LIST_MODEL (gtk_list_view_get_model (list)), position);
14839
- * g_app_info_launch (app_info, NULL, NULL, NULL);
14840
- * g_object_unref (app_info);
14841
- * }
14842
- *
14843
- * ...
14844
- *
14845
- * model = create_application_list ();
14846
- *
14847
- * factory = gtk_signal_list_item_factory_new ();
14848
- * g_signal_connect (factory, "setup", G_CALLBACK (setup_listitem_cb), NULL);
14849
- * g_signal_connect (factory, "bind", G_CALLBACK (bind_listitem_cb), NULL);
14850
- *
14851
- * list = gtk_list_view_new (GTK_SELECTION_MODEL (gtk_single_selection_new (model)), factory);
14852
- *
14853
- * g_signal_connect (list, "activate", G_CALLBACK (activate_cb), NULL);
14854
- *
14855
- * gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (sw), list);
14856
- * ```
14857
- *
14858
- * # Actions
14859
- *
14860
- * `GtkListView` defines a set of built-in actions:
14861
- *
14862
- * - `list.activate-item` activates the item at given position by emitting
14863
- * the {@link Gtk.ListView.:activate} signal.
14864
- *
14865
- * # CSS nodes
14866
- *
14867
- * ```
14868
- * listview[.separators][.rich-list][.navigation-sidebar][.data-table]
14869
- * ├── row[.activatable]
14870
- * │
14871
- * ├── row[.activatable]
14872
- * │
14873
- * ┊
14874
- * ╰── [rubberband]
14875
- * ```
14876
- *
14877
- * `GtkListView` uses a single CSS node named `listview`. It may carry the
14878
- * `.separators` style class, when {@link Gtk.ListView.show-separators}
14879
- * property is set. Each child widget uses a single CSS node named `row`.
14880
- * If the {@link Gtk.ListItem.activatable} property is set, the
14881
- * corresponding row will have the `.activatable` style class. For
14882
- * rubberband selection, a node with name `rubberband` is used.
14883
- *
14884
- * The main listview node may also carry style classes to select
14885
- * the style of list presentation:
14886
- * .rich-list, .navigation-sidebar or .data-table.
14887
- *
14888
- * # Accessibility
14889
- *
14890
- * `GtkListView` uses the {@link Gtk.AccessibleRole.list} role, and the list
14891
- * items use the {@link Gtk.AccessibleRole.list_item} role.
14892
- */
14893
- export declare const GtkListView: "GtkListView";
14894
14746
  /**
14895
14747
  * `GtkLockButton` is a widget to obtain and revoke authorizations
14896
14748
  * needed to operate the controls.