@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
@@ -26,6 +26,13 @@ export interface WidgetProps {
26
26
  canTarget?: boolean;
27
27
  /** A list of css classes applied to this widget. */
28
28
  cssClasses?: string[];
29
+ /**
30
+ * The name of this widget in the CSS tree.
31
+ *
32
+ * This property is meant to be set by widget implementations,
33
+ * typically in their instance init function.
34
+ */
35
+ cssName?: string;
29
36
  /** The cursor used by `widget`. */
30
37
  cursor?: Gdk.Cursor | null;
31
38
  /**
@@ -303,8 +310,6 @@ export interface WidgetProps {
303
310
  * detail strings for the notify signal.
304
311
  */
305
312
  onNotify?: ((pspec: GObject.ParamSpec, self: Gtk.Widget) => void) | null;
306
- /** When set to true, the widget will grab focus. Useful for focusing a widget when a condition becomes true. */
307
- grabFocus?: boolean;
308
313
  /** Children elements (child widgets or event controllers). */
309
314
  children?: ReactNode;
310
315
  }
@@ -1320,6 +1325,12 @@ export interface GtkAppChooserButtonProps extends WidgetProps {
1320
1325
  * a `GtkAppChooserDialog`.
1321
1326
  */
1322
1327
  showDialogItem?: boolean;
1328
+ /**
1329
+ * The content type of the `GtkAppChooser` object.
1330
+ *
1331
+ * See `GContentType` for more information about content types.
1332
+ */
1333
+ contentType?: string;
1323
1334
  /**
1324
1335
  * Emitted to when the button is activated.
1325
1336
  *
@@ -1341,12 +1352,25 @@ export interface GtkAppChooserButtonProps extends WidgetProps {
1341
1352
 
1342
1353
  /** Props for the {@link GtkAppChooserDialog} widget. */
1343
1354
  export interface GtkAppChooserDialogProps extends GtkDialogProps {
1355
+ /**
1356
+ * The GFile used by the `GtkAppChooserDialog`.
1357
+ *
1358
+ * The dialog's `GtkAppChooserWidget` content type will
1359
+ * be guessed from the file, if present.
1360
+ */
1361
+ gfile?: Gio.File;
1344
1362
  /**
1345
1363
  * The text to show at the top of the dialog.
1346
1364
  *
1347
1365
  * The string may contain Pango markup.
1348
1366
  */
1349
1367
  heading?: string;
1368
+ /**
1369
+ * The content type of the `GtkAppChooser` object.
1370
+ *
1371
+ * See `GContentType` for more information about content types.
1372
+ */
1373
+ contentType?: string;
1350
1374
  ref?: Ref<Gtk.AppChooserDialog>;
1351
1375
  }
1352
1376
 
@@ -1392,6 +1416,12 @@ export interface GtkAppChooserWidgetProps extends WidgetProps {
1392
1416
  * among the other applications.
1393
1417
  */
1394
1418
  showRecommended?: boolean;
1419
+ /**
1420
+ * The content type of the `GtkAppChooser` object.
1421
+ *
1422
+ * See `GContentType` for more information about content types.
1423
+ */
1424
+ contentType?: string;
1395
1425
  /**
1396
1426
  * Emitted when an application item is activated from the widget's list.
1397
1427
  *
@@ -1483,6 +1513,14 @@ export interface GtkAspectFrameProps extends WidgetProps {
1483
1513
 
1484
1514
  /** Props for the {@link GtkAssistant} widget. */
1485
1515
  export interface GtkAssistantProps extends GtkWindowProps {
1516
+ /**
1517
+ * %TRUE if the assistant uses a `GtkHeaderBar` for action buttons
1518
+ * instead of the action-area.
1519
+ *
1520
+ * For technical reasons, this property is declared as an integer
1521
+ * property, but you should only set it to %TRUE or %FALSE.
1522
+ */
1523
+ useHeaderBar?: number;
1486
1524
  /**
1487
1525
  * Emitted when the apply button is clicked.
1488
1526
  *
@@ -1928,6 +1966,30 @@ export interface AdwCarouselIndicatorLinesProps extends WidgetProps {
1928
1966
 
1929
1967
  /** Props for the {@link GtkCellView} widget. */
1930
1968
  export interface GtkCellViewProps extends WidgetProps {
1969
+ /**
1970
+ * The `GtkCellArea` rendering cells
1971
+ *
1972
+ * If no area is specified when creating the cell view with gtk_cell_view_new_with_context()
1973
+ * a horizontally oriented `GtkCellArea`Box will be used.
1974
+ *
1975
+ * since 3.0
1976
+ */
1977
+ cellArea?: Gtk.CellArea;
1978
+ /**
1979
+ * The `GtkCellAreaContext` used to compute the geometry of the cell view.
1980
+ *
1981
+ * A group of cell views can be assigned the same context in order to
1982
+ * ensure the sizes and cell alignments match across all the views with
1983
+ * the same context.
1984
+ *
1985
+ * `GtkComboBox` menus uses this to assign the same context to all cell views
1986
+ * in the menu items for a single menu (each submenu creates its own
1987
+ * context since the size of each submenu does not depend on parent
1988
+ * or sibling menus).
1989
+ *
1990
+ * since 3.0
1991
+ */
1992
+ cellAreaContext?: Gtk.CellAreaContext;
1931
1993
  /**
1932
1994
  * Whether all cells should be draw as sensitive for this view regardless
1933
1995
  * of the actual cell properties (used to make menus with submenus appear
@@ -2377,6 +2439,8 @@ export interface GtkComboBoxProps extends WidgetProps {
2377
2439
  * {@link ComboBox.has-entry} is %TRUE.
2378
2440
  */
2379
2441
  entryTextColumn?: number;
2442
+ /** Whether the combo box has an entry. */
2443
+ hasEntry?: boolean;
2380
2444
  /** The `has-frame` property controls whether a frame is drawn around the entry. */
2381
2445
  hasFrame?: boolean;
2382
2446
  /**
@@ -2533,6 +2597,7 @@ export interface AdwComboRowProps extends AdwActionRowProps {
2533
2597
 
2534
2598
  /** Props for the {@link GtkSourceCompletionCell} widget. */
2535
2599
  export interface GtkSourceCompletionCellProps extends WidgetProps {
2600
+ column?: GtkSource.CompletionColumn;
2536
2601
  markup?: string;
2537
2602
  paintable?: Gdk.Paintable;
2538
2603
  text?: string | null;
@@ -2616,6 +2681,27 @@ export interface AdwDialogProps extends WidgetProps {
2616
2681
 
2617
2682
  /** Props for the {@link GtkDialog} widget. */
2618
2683
  export interface GtkDialogProps extends GtkWindowProps {
2684
+ /**
2685
+ * %TRUE if the dialog uses a headerbar for action buttons
2686
+ * instead of the action-area.
2687
+ *
2688
+ * For technical reasons, this property is declared as an integer
2689
+ * property, but you should only set it to %TRUE or %FALSE.
2690
+ *
2691
+ * ## Creating a dialog with headerbar
2692
+ *
2693
+ * Builtin `GtkDialog` subclasses such as {@link ColorChooserDialog}
2694
+ * set this property according to platform conventions (using the
2695
+ * {@link Settings.gtk-dialogs-use-header} setting).
2696
+ *
2697
+ * Here is how you can achieve the same:
2698
+ *
2699
+ * ```c
2700
+ * g_object_get (settings, "gtk-dialogs-use-header", &header, NULL);
2701
+ * dialog = g_object_new (GTK_TYPE_DIALOG, header, TRUE, NULL);
2702
+ * ```
2703
+ */
2704
+ useHeaderBar?: number;
2619
2705
  /**
2620
2706
  * Emitted when an action widget is clicked.
2621
2707
  *
@@ -3892,6 +3978,10 @@ export interface GtkGridViewProps extends GtkListBaseProps {
3892
3978
 
3893
3979
  /** Props for the {@link GtkSourceGutter} widget. */
3894
3980
  export interface GtkSourceGutterProps extends WidgetProps {
3981
+ /** The #GtkSourceView of the gutter. */
3982
+ view?: GtkSource.View;
3983
+ /** The text window type on which the window is placed. */
3984
+ windowType?: Gtk.TextWindowType;
3895
3985
  ref?: Ref<GtkSource.Gutter>;
3896
3986
  }
3897
3987
 
@@ -4073,6 +4163,13 @@ export interface GtkIconViewProps extends WidgetProps {
4073
4163
  * will be emitted after a single click.
4074
4164
  */
4075
4165
  activateOnSingleClick?: boolean;
4166
+ /**
4167
+ * The `GtkCellArea` used to layout cell renderers for this view.
4168
+ *
4169
+ * If no area is specified when creating the icon view with gtk_icon_view_new_with_area()
4170
+ * a `GtkCellAreaBox` will be used.
4171
+ */
4172
+ cellArea?: Gtk.CellArea;
4076
4173
  /**
4077
4174
  * The column-spacing property specifies the space which is inserted between
4078
4175
  * the columns of the icon view.
@@ -4653,6 +4750,12 @@ export interface GtkLabelProps extends WidgetProps {
4653
4750
 
4654
4751
  /** Props for the {@link AdwLayoutSlot} widget. */
4655
4752
  export interface AdwLayoutSlotProps extends WidgetProps {
4753
+ /**
4754
+ * The slot ID.
4755
+ *
4756
+ * See {@link MultiLayoutViewset_child}.
4757
+ */
4758
+ id?: string;
4656
4759
  ref?: Ref<Adw.LayoutSlot>;
4657
4760
  }
4658
4761
 
@@ -5119,6 +5222,8 @@ export interface AdwMessageDialogProps extends GtkWindowProps {
5119
5222
 
5120
5223
  /** Props for the {@link GtkMessageDialog} widget. */
5121
5224
  export interface GtkMessageDialogProps extends GtkDialogProps {
5225
+ /** Set of buttons to display on the dialog. */
5226
+ buttons?: Gtk.ButtonsType;
5122
5227
  /** The type of the message. */
5123
5228
  messageType?: Gtk.MessageType;
5124
5229
  /** The secondary text of the message dialog. */
@@ -7167,6 +7272,7 @@ export interface GtkSourceStyleSchemeChooserWidgetProps extends WidgetProps {
7167
7272
 
7168
7273
  /** Props for the {@link GtkSourceStyleSchemePreview} widget. */
7169
7274
  export interface GtkSourceStyleSchemePreviewProps extends WidgetProps {
7275
+ scheme: GtkSource.StyleScheme;
7170
7276
  selected?: boolean;
7171
7277
  /** The name of the action with which this widget should be associated. */
7172
7278
  actionName?: string;
@@ -8935,6 +9041,13 @@ export interface GtkVolumeButtonProps extends GtkScaleButtonProps {
8935
9041
 
8936
9042
  /** Props for the {@link WebKitWebView} widget. */
8937
9043
  export interface WebKitWebViewProps extends WebKitWebViewBaseProps {
9044
+ /**
9045
+ * The #WebKitAutomationBrowsingContextPresentation of #WebKitWebView. This should only be used when
9046
+ * creating a new #WebKitWebView as a response to #WebKitAutomationSession::create-web-view
9047
+ * signal request. If the new WebView was added to a new tab of current browsing context window
9048
+ * %WEBKIT_AUTOMATION_BROWSING_CONTEXT_PRESENTATION_TAB should be used.
9049
+ */
9050
+ automationPresentationType?: WebKit.AutomationBrowsingContextPresentation;
8938
9051
  /**
8939
9052
  * Capture state of the camera device. Whenever the user grants a media-request sent by the web
8940
9053
  * page, requesting video capture capabilities (`navigator.mediaDevices.getUserMedia({video:
@@ -8949,6 +9062,19 @@ export interface WebKitWebViewProps extends WebKitWebViewBaseProps {
8949
9062
  * application.
8950
9063
  */
8951
9064
  cameraCaptureState?: WebKit.MediaCaptureState;
9065
+ /**
9066
+ * The default Content-Security-Policy used by the webview as if it were set
9067
+ * by an HTTP header.
9068
+ *
9069
+ * This applies to all content loaded including through navigation or via the various
9070
+ * webkit_web_view_load_\* APIs. However do note that many WebKit APIs bypass
9071
+ * Content-Security-Policy in general such as #WebKitUserContentManager and
9072
+ * webkit_web_view_run_javascript().
9073
+ *
9074
+ * Policies are additive so if a website sets its own policy it still applies
9075
+ * on top of the policy set here.
9076
+ */
9077
+ defaultContentSecurityPolicy?: string;
8952
9078
  /**
8953
9079
  * Capture state of the display device. Whenever the user grants a media-request sent by the web
8954
9080
  * page, requesting screencasting capabilities (`navigator.mediaDevices.getDisplayMedia() this
@@ -8968,6 +9094,19 @@ export interface WebKitWebViewProps extends WebKitWebViewBaseProps {
8968
9094
  * information see webkit_web_view_set_editable().
8969
9095
  */
8970
9096
  editable?: boolean;
9097
+ /**
9098
+ * Whether the #WebKitWebView is controlled by automation tools (e.g. WebDriver, Selenium). This is
9099
+ * required for views returned as a response to #WebKitAutomationSession::create-web-view signal,
9100
+ * alongside any view you want to control during an automation session.
9101
+ *
9102
+ * As a %G_PARAM_CONSTRUCT_ONLY, you need to set it during construction and it can't be modified.
9103
+ *
9104
+ * If #WebKitWebView:related-view is also passed during construction, #WebKitWebView:is-controlled-by-automation
9105
+ * ignores its own parameter and inherits directly from the related view #WebKitWebView:is-controlled-by-automation
9106
+ * property. This is the recommended way when creating new views as a response to the #WebKitWebView::create
9107
+ * signal. For example, as response to JavaScript `window.open()` calls during an automation session.
9108
+ */
9109
+ isControlledByAutomation?: boolean;
8971
9110
  /**
8972
9111
  * Whether the #WebKitWebView audio is muted. When %TRUE, audio is silenced.
8973
9112
  * It may still be playing, i.e. #WebKitWebView:is-playing-audio may be %TRUE.
@@ -8987,8 +9126,32 @@ export interface WebKitWebViewProps extends WebKitWebViewBaseProps {
8987
9126
  * application.
8988
9127
  */
8989
9128
  microphoneCaptureState?: WebKit.MediaCaptureState;
9129
+ /** The #WebKitNetworkSession of the view */
9130
+ networkSession?: WebKit.NetworkSession;
9131
+ /**
9132
+ * The related #WebKitWebView used when creating the view to share the
9133
+ * same web process and network session. This property is not readable
9134
+ * because the related web view is only valid during the object construction.
9135
+ */
9136
+ relatedView?: WebKit.WebView;
8990
9137
  /** The #WebKitSettings of the view. */
8991
9138
  settings?: WebKit.Settings;
9139
+ /** The #WebKitUserContentManager of the view. */
9140
+ userContentManager?: WebKit.UserContentManager;
9141
+ /** The #WebKitWebContext of the view. */
9142
+ webContext?: WebKit.WebContext;
9143
+ /**
9144
+ * This configures `web_view` to treat the content as a WebExtension.
9145
+ *
9146
+ * Note that this refers to the web standard [WebExtensions](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions)
9147
+ * and not WebKitWebExtensions.
9148
+ *
9149
+ * In practice this limits the Content-Security-Policies that are allowed to be set. Some details can be found in
9150
+ * [Chrome's documentation](https://developer.chrome.com/docs/extensions/mv3/intro/mv3-migration/#content-security-policy).
9151
+ */
9152
+ webExtensionMode?: WebKit.WebExtensionMode;
9153
+ /** The #WebKitWebsitePolicies for the view. */
9154
+ websitePolicies?: WebKit.WebsitePolicies;
8992
9155
  /**
8993
9156
  * The zoom level of the #WebKitWebView content.
8994
9157
  * See webkit_web_view_set_zoom_level() for more details.
@@ -9740,6 +9903,8 @@ export interface GtkDropControllerMotionProps extends EventControllerBaseProps {
9740
9903
  export interface GtkDropTargetProps extends EventControllerBaseProps {
9741
9904
  /** The `GdkDragActions` that this drop target supports. */
9742
9905
  actions?: Gdk.DragAction;
9906
+ /** The `GdkContentFormats` that determine the supported data formats. */
9907
+ formats?: Gdk.ContentFormats;
9743
9908
  /**
9744
9909
  * Whether the drop data should be preloaded when the pointer is only
9745
9910
  * hovering over the widget but has not been released.
@@ -9984,6 +10149,11 @@ export interface GtkEventControllerScrollProps extends EventControllerBaseProps
9984
10149
 
9985
10150
  /** Props for the {@link GtkGesture} controller element. */
9986
10151
  export interface GtkGestureProps extends EventControllerBaseProps {
10152
+ /**
10153
+ * The number of touch points that trigger
10154
+ * recognition on this gesture.
10155
+ */
10156
+ nPoints?: number;
9987
10157
  /**
9988
10158
  * Emitted when the gesture is recognized.
9989
10159
  *
@@ -10168,6 +10338,10 @@ export interface GtkGestureZoomProps extends GtkGestureProps {
10168
10338
 
10169
10339
  /** Props for the {@link GtkPadController} controller element. */
10170
10340
  export interface GtkPadControllerProps extends EventControllerBaseProps {
10341
+ /** The action group of the controller. */
10342
+ actionGroup?: Gio.ActionGroup;
10343
+ /** The pad of the controller. */
10344
+ pad?: Gdk.Device;
10171
10345
  ref?: Ref<Gtk.PadController>;
10172
10346
  }
10173
10347
 
@@ -10175,6 +10349,8 @@ export interface GtkPadControllerProps extends EventControllerBaseProps {
10175
10349
  export interface GtkShortcutControllerProps extends EventControllerBaseProps {
10176
10350
  /** The modifiers that need to be pressed to allow mnemonics activation. */
10177
10351
  mnemonicModifiers?: Gdk.ModifierType;
10352
+ /** A list model to take shortcuts from. */
10353
+ model?: Gio.ListModel;
10178
10354
  /** What scope the shortcuts will be handled in. */
10179
10355
  scope?: Gtk.ShortcutScope;
10180
10356
  /**
@@ -12399,73 +12575,6 @@ export const GtkColorChooserWidget = "GtkColorChooserWidget" as const;
12399
12575
  * it gets the .color style class.
12400
12576
  */
12401
12577
  export const GtkColorDialogButton = "GtkColorDialogButton" as const;
12402
- /**
12403
- * Presents a large dynamic list of items using multiple columns with headers.
12404
- *
12405
- * `GtkColumnView` uses the factories of its columns to generate a cell widget for
12406
- * each column, for each visible item and displays them together as the row for
12407
- * this item.
12408
- *
12409
- * The {@link Gtk.ColumnView.show-row-separators} and
12410
- * {@link Gtk.ColumnView.show-column-separators} properties offer a simple way
12411
- * to display separators between the rows or columns.
12412
- *
12413
- * `GtkColumnView` allows the user to select items according to the selection
12414
- * characteristics of the model. For models that allow multiple selected items,
12415
- * it is possible to turn on *rubberband selection*, using
12416
- * {@link Gtk.ColumnView.enable-rubberband}.
12417
- *
12418
- * The column view supports sorting that can be customized by the user by
12419
- * clicking on column headers. To set this up, the `GtkSorter` returned by
12420
- * {@link Gtk.ColumnView.get_sorter} must be attached to a sort model for the
12421
- * data that the view is showing, and the columns must have sorters attached to
12422
- * them by calling {@link Gtk.ColumnViewColumn.set_sorter}. The initial sort
12423
- * order can be set with {@link Gtk.ColumnView.sort_by_column}.
12424
- *
12425
- * The column view also supports interactive resizing and reordering of
12426
- * columns, via Drag-and-Drop of the column headers. This can be enabled or
12427
- * disabled with the {@link Gtk.ColumnView.reorderable} and
12428
- * {@link Gtk.ColumnViewColumn.resizable} properties.
12429
- *
12430
- * To learn more about the list widget framework, see the
12431
- * overview.
12432
- *
12433
- * # CSS nodes
12434
- *
12435
- * ```
12436
- * columnview[.column-separators][.rich-list][.navigation-sidebar][.data-table]
12437
- * ├── header
12438
- * │ ├── <column header>
12439
- * ┊ ┊
12440
- * │ ╰── <column header>
12441
- * │
12442
- * ├── listview
12443
- * │
12444
- * ┊
12445
- * ╰── [rubberband]
12446
- * ```
12447
- *
12448
- * `GtkColumnView` uses a single CSS node named columnview. It may carry the
12449
- * .column-separators style class, when {@link Gtk.ColumnView.show-column-separators}
12450
- * property is set. Header widgets appear below a node with name header.
12451
- * The rows are contained in a `GtkListView` widget, so there is a listview
12452
- * node with the same structure as for a standalone `GtkListView` widget.
12453
- * If {@link Gtk.ColumnView.show-row-separators} is set, it will be passed
12454
- * on to the list view, causing its CSS node to carry the .separators style class.
12455
- * For rubberband selection, a node with name rubberband is used.
12456
- *
12457
- * The main columnview node may also carry style classes to select
12458
- * the style of list presentation:
12459
- * .rich-list, .navigation-sidebar or .data-table.
12460
- *
12461
- * # Accessibility
12462
- *
12463
- * `GtkColumnView` uses the {@link Gtk.AccessibleRole.tree_grid} role, header title
12464
- * widgets are using the {@link Gtk.AccessibleRole.column_header} role. The row widgets
12465
- * are using the {@link Gtk.AccessibleRole.row} role, and individual cells are using
12466
- * the {@link Gtk.AccessibleRole.grid_cell} role
12467
- */
12468
- export const GtkColumnView = "GtkColumnView" as const;
12469
12578
  /**
12470
12579
  * A `GtkComboBox` is a widget that allows the user to choose from a list of
12471
12580
  * valid choices.
@@ -12587,53 +12696,6 @@ export const GtkComboBox = "GtkComboBox" as const;
12587
12696
  * children, and the .linked class to the node of its internal box.
12588
12697
  */
12589
12698
  export const GtkComboBoxText = "GtkComboBoxText" as const;
12590
- /**
12591
- * A {@link Gtk.ListBoxRow} used to choose from a list of items.
12592
- *
12593
- * ![combo-row](https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1-latest/combo-row.png)
12594
- *
12595
- * The `AdwComboRow` widget allows the user to choose from a list of valid
12596
- * choices. The row displays the selected choice. When activated, the row
12597
- * displays a popover which allows the user to make a new choice.
12598
- *
12599
- * Example of an `AdwComboRow` UI definition:
12600
- * ```xml
12601
- * <object class="AdwComboRow">
12602
- * <property name="title" translatable="yes">Combo Row</property>
12603
- * <property name="model">
12604
- * <object class="GtkStringList">
12605
- * <items>
12606
- * <item translatable="yes">Foo</item>
12607
- * <item translatable="yes">Bar</item>
12608
- * <item translatable="yes">Baz</item>
12609
- * </items>
12610
- * </object>
12611
- * </property>
12612
- * </object>
12613
- * ```
12614
- *
12615
- * The {@link ComboRow.selected} and {@link ComboRow.selected-item}
12616
- * properties can be used to keep track of the selected item and react to their
12617
- * changes.
12618
- *
12619
- * `AdwComboRow` mirrors {@link Gtk.DropDown}, see that widget for details.
12620
- *
12621
- * `AdwComboRow` is {@link Gtk.ListBoxRow.activatable} if a model is set.
12622
- *
12623
- * ## CSS nodes
12624
- *
12625
- * `AdwComboRow` has a main CSS node with name `row` and the `.combo` style
12626
- * class.
12627
- *
12628
- * Its popover has the node named `popover` with the `.menu` style class, it
12629
- * contains a {@link Gtk.ScrolledWindow}, which in turn contains a
12630
- * {@link Gtk.ListView}, both are accessible via their regular nodes.
12631
- *
12632
- * ## Accessibility
12633
- *
12634
- * `AdwComboRow` uses the `GTK_ACCESSIBLE_ROLE_COMBO_BOX` role.
12635
- */
12636
- export const AdwComboRow = "AdwComboRow" as const;
12637
12699
  /**
12638
12700
  * Widget for single cell of completion proposal.
12639
12701
  *
@@ -12925,64 +12987,6 @@ export const GtkDragIcon = "GtkDragIcon" as const;
12925
12987
  * creating your own `GtkWidget` subclass.
12926
12988
  */
12927
12989
  export const GtkDrawingArea = "GtkDrawingArea" as const;
12928
- /**
12929
- * Allows the user to choose an item from a list of options.
12930
- *
12931
- * ![An example GtkDropDown](https://docs.gtk.org/gtk4/drop-down.png)
12932
- *
12933
- * The `GtkDropDown` displays the [selected]{@link Gtk.DropDown.selected}
12934
- * choice.
12935
- *
12936
- * The options are given to `GtkDropDown` in the form of `GListModel`
12937
- * and how the individual options are represented is determined by
12938
- * a {@link Gtk.ListItemFactory}. The default factory displays simple strings,
12939
- * and adds a checkmark to the selected item in the popup.
12940
- *
12941
- * To set your own factory, use {@link Gtk.DropDown.set_factory}. It is
12942
- * possible to use a separate factory for the items in the popup, with
12943
- * {@link Gtk.DropDown.set_list_factory}.
12944
- *
12945
- * `GtkDropDown` knows how to obtain strings from the items in a
12946
- * {@link Gtk.StringList}; for other models, you have to provide an expression
12947
- * to find the strings via {@link Gtk.DropDown.set_expression}.
12948
- *
12949
- * `GtkDropDown` can optionally allow search in the popup, which is
12950
- * useful if the list of options is long. To enable the search entry,
12951
- * use {@link Gtk.DropDown.set_enable_search}.
12952
- *
12953
- * Here is a UI definition example for `GtkDropDown` with a simple model:
12954
- *
12955
- * ```xml
12956
- * <object class="GtkDropDown">
12957
- * <property name="model">
12958
- * <object class="GtkStringList">
12959
- * <items>
12960
- * <item translatable="yes">Factory</item>
12961
- * <item translatable="yes">Home</item>
12962
- * <item translatable="yes">Subway</item>
12963
- * </items>
12964
- * </object>
12965
- * </property>
12966
- * </object>
12967
- * ```
12968
- *
12969
- * If a `GtkDropDown` is created in this manner, or with
12970
- * {@link Gtk.DropDown.new_from_strings}, for instance, the object returned from
12971
- * {@link Gtk.DropDown.get_selected_item} will be a {@link Gtk.StringObject}.
12972
- *
12973
- * To learn more about the list widget framework, see the
12974
- * overview.
12975
- *
12976
- * ## CSS nodes
12977
- *
12978
- * `GtkDropDown` has a single CSS node with name dropdown,
12979
- * with the button and popover nodes as children.
12980
- *
12981
- * ## Accessibility
12982
- *
12983
- * `GtkDropDown` uses the {@link Gtk.AccessibleRole.combo_box} role.
12984
- */
12985
- export const GtkDropDown = "GtkDropDown" as const;
12986
12990
  /**
12987
12991
  * Allows users to edit the displayed text by switching to an “edit mode”.
12988
12992
  *
@@ -14054,51 +14058,6 @@ export const GtkGraphicsOffload = "GtkGraphicsOffload" as const;
14054
14058
  * Starting from GTK 4.12, `GtkGrid` uses the {@link Gtk.AccessibleRole.generic} role.
14055
14059
  */
14056
14060
  export const GtkGrid = "GtkGrid" as const;
14057
- /**
14058
- * Presents a large dynamic grid of items.
14059
- *
14060
- * `GtkGridView` uses its factory to generate one child widget for each
14061
- * visible item and shows them in a grid. The orientation of the grid view
14062
- * determines if the grid reflows vertically or horizontally.
14063
- *
14064
- * `GtkGridView` allows the user to select items according to the selection
14065
- * characteristics of the model. For models that allow multiple selected items,
14066
- * it is possible to turn on _rubberband selection_, using
14067
- * {@link Gtk.GridView.enable-rubberband}.
14068
- *
14069
- * To learn more about the list widget framework, see the
14070
- * overview.
14071
- *
14072
- * # Actions
14073
- *
14074
- * `GtkGridView` defines a set of built-in actions:
14075
- *
14076
- * - `list.activate-item` activates the item at given position by emitting the
14077
- * the {@link Gtk.GridView.:activate} signal.
14078
- *
14079
- * # CSS nodes
14080
- *
14081
- * ```
14082
- * gridview
14083
- * ├── child[.activatable]
14084
- * │
14085
- * ├── child[.activatable]
14086
- * │
14087
- * ┊
14088
- * ╰── [rubberband]
14089
- * ```
14090
- *
14091
- * `GtkGridView` uses a single CSS node with name `gridview`. Each child uses
14092
- * a single CSS node with name `child`. If the {@link Gtk.ListItem.activatable}
14093
- * property is set, the corresponding row will have the `.activatable` style
14094
- * class. For rubberband selection, a subnode with name `rubberband` is used.
14095
- *
14096
- * # Accessibility
14097
- *
14098
- * `GtkGridView` uses the {@link Gtk.AccessibleRole.grid} role, and the items
14099
- * use the {@link Gtk.AccessibleRole.grid_cell} role.
14100
- */
14101
- export const GtkGridView = "GtkGridView" as const;
14102
14061
  /**
14103
14062
  * Gutter object for {@link View}.
14104
14063
  *
@@ -15059,113 +15018,6 @@ export const GtkListBox = "GtkListBox" as const;
15059
15018
  * when necessary.
15060
15019
  */
15061
15020
  export const GtkListBoxRow = "GtkListBoxRow" as const;
15062
- /**
15063
- * Presents a large dynamic list of items.
15064
- *
15065
- * `GtkListView` uses its factory to generate one row widget for each visible
15066
- * item and shows them in a linear display, either vertically or horizontally.
15067
- *
15068
- * The {@link Gtk.ListView.show-separators} property offers a simple way to
15069
- * display separators between the rows.
15070
- *
15071
- * `GtkListView` allows the user to select items according to the selection
15072
- * characteristics of the model. For models that allow multiple selected items,
15073
- * it is possible to turn on _rubberband selection_, using
15074
- * {@link Gtk.ListView.enable-rubberband}.
15075
- *
15076
- * If you need multiple columns with headers, see {@link Gtk.ColumnView}.
15077
- *
15078
- * To learn more about the list widget framework, see the
15079
- * overview.
15080
- *
15081
- * An example of using `GtkListView`:
15082
- * ```c
15083
- * static void
15084
- * setup_listitem_cb (GtkListItemFactory *factory,
15085
- * GtkListItem *list_item)
15086
- * {
15087
- * GtkWidget *image;
15088
- *
15089
- * image = gtk_image_new ();
15090
- * gtk_image_set_icon_size (GTK_IMAGE (image), GTK_ICON_SIZE_LARGE);
15091
- * gtk_list_item_set_child (list_item, image);
15092
- * }
15093
- *
15094
- * static void
15095
- * bind_listitem_cb (GtkListItemFactory *factory,
15096
- * GtkListItem *list_item)
15097
- * {
15098
- * GtkWidget *image;
15099
- * GAppInfo *app_info;
15100
- *
15101
- * image = gtk_list_item_get_child (list_item);
15102
- * app_info = gtk_list_item_get_item (list_item);
15103
- * gtk_image_set_from_gicon (GTK_IMAGE (image), g_app_info_get_icon (app_info));
15104
- * }
15105
- *
15106
- * static void
15107
- * activate_cb (GtkListView *list,
15108
- * guint position,
15109
- * gpointer unused)
15110
- * {
15111
- * GAppInfo *app_info;
15112
- *
15113
- * app_info = g_list_model_get_item (G_LIST_MODEL (gtk_list_view_get_model (list)), position);
15114
- * g_app_info_launch (app_info, NULL, NULL, NULL);
15115
- * g_object_unref (app_info);
15116
- * }
15117
- *
15118
- * ...
15119
- *
15120
- * model = create_application_list ();
15121
- *
15122
- * factory = gtk_signal_list_item_factory_new ();
15123
- * g_signal_connect (factory, "setup", G_CALLBACK (setup_listitem_cb), NULL);
15124
- * g_signal_connect (factory, "bind", G_CALLBACK (bind_listitem_cb), NULL);
15125
- *
15126
- * list = gtk_list_view_new (GTK_SELECTION_MODEL (gtk_single_selection_new (model)), factory);
15127
- *
15128
- * g_signal_connect (list, "activate", G_CALLBACK (activate_cb), NULL);
15129
- *
15130
- * gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (sw), list);
15131
- * ```
15132
- *
15133
- * # Actions
15134
- *
15135
- * `GtkListView` defines a set of built-in actions:
15136
- *
15137
- * - `list.activate-item` activates the item at given position by emitting
15138
- * the {@link Gtk.ListView.:activate} signal.
15139
- *
15140
- * # CSS nodes
15141
- *
15142
- * ```
15143
- * listview[.separators][.rich-list][.navigation-sidebar][.data-table]
15144
- * ├── row[.activatable]
15145
- * │
15146
- * ├── row[.activatable]
15147
- * │
15148
- * ┊
15149
- * ╰── [rubberband]
15150
- * ```
15151
- *
15152
- * `GtkListView` uses a single CSS node named `listview`. It may carry the
15153
- * `.separators` style class, when {@link Gtk.ListView.show-separators}
15154
- * property is set. Each child widget uses a single CSS node named `row`.
15155
- * If the {@link Gtk.ListItem.activatable} property is set, the
15156
- * corresponding row will have the `.activatable` style class. For
15157
- * rubberband selection, a node with name `rubberband` is used.
15158
- *
15159
- * The main listview node may also carry style classes to select
15160
- * the style of list presentation:
15161
- * .rich-list, .navigation-sidebar or .data-table.
15162
- *
15163
- * # Accessibility
15164
- *
15165
- * `GtkListView` uses the {@link Gtk.AccessibleRole.list} role, and the list
15166
- * items use the {@link Gtk.AccessibleRole.list_item} role.
15167
- */
15168
- export const GtkListView = "GtkListView" as const;
15169
15021
  /**
15170
15022
  * `GtkLockButton` is a widget to obtain and revoke authorizations
15171
15023
  * needed to operate the controls.