@gtkx/react 0.12.0 → 0.12.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.
package/dist/jsx.d.ts CHANGED
@@ -84,7 +84,7 @@ export type StringListItemProps = {
84
84
  *
85
85
  * @see {@link GridChild} for usage
86
86
  */
87
- export type GridChildProps = SlotProps & {
87
+ export type GridChildProps = Omit<SlotProps, "id"> & {
88
88
  /** Column index (0-based) */
89
89
  column?: number;
90
90
  /** Row index (0-based) */
@@ -99,7 +99,7 @@ export type GridChildProps = SlotProps & {
99
99
  *
100
100
  * @see {@link FixedChild} for usage
101
101
  */
102
- export type FixedChildProps = SlotProps & {
102
+ export type FixedChildProps = Omit<SlotProps, "id"> & {
103
103
  /** X coordinate in pixels */
104
104
  x?: number;
105
105
  /** Y coordinate in pixels */
@@ -153,7 +153,7 @@ export type ColumnViewRootProps<C extends string = string> = {
153
153
  /**
154
154
  * Props for notebook (tabbed) pages.
155
155
  */
156
- export type NotebookPageProps = SlotProps & {
156
+ export type NotebookPageProps = Omit<SlotProps, "id"> & {
157
157
  /** Tab label text (optional when using Notebook.PageTab) */
158
158
  label?: string;
159
159
  };
@@ -164,7 +164,7 @@ export type NotebookPageTabProps = SlotProps;
164
164
  /**
165
165
  * Props for the root Stack component.
166
166
  */
167
- export type StackRootProps = SlotProps & {
167
+ export type StackRootProps = Omit<SlotProps, "id"> & {
168
168
  /** Name of the currently visible child page */
169
169
  visibleChildName?: string;
170
170
  };
@@ -173,7 +173,7 @@ export type StackRootProps = SlotProps & {
173
173
  *
174
174
  * @see {@link StackPage} for usage
175
175
  */
176
- export type StackPageProps = SlotProps & {
176
+ export type StackPageProps = Omit<SlotProps, "id"> & {
177
177
  /** Unique name for this page (used with visibleChildName) */
178
178
  name?: string;
179
179
  /** Display title shown in stack switchers */
@@ -227,7 +227,7 @@ export type MenuSubmenuProps = {
227
227
  /**
228
228
  * Props for children within an Overlay container.
229
229
  */
230
- export type OverlayChildProps = SlotProps & {
230
+ export type OverlayChildProps = Omit<SlotProps, "id"> & {
231
231
  /** Whether to include this child in size measurement */
232
232
  measure?: boolean;
233
233
  /** Whether to clip this overlay child to the main child bounds */
@@ -1,9 +1,10 @@
1
1
  import type * as Gtk from "@gtkx/ffi/gtk";
2
2
  import type { SlotProps } from "../jsx.js";
3
3
  import type { Node } from "../node.js";
4
+ import type { Props } from "../types.js";
4
5
  import { VirtualNode } from "./virtual.js";
5
6
  type SlotNodeProps = Omit<SlotProps, "children">;
6
- export declare class SlotNode<P extends SlotNodeProps = SlotNodeProps> extends VirtualNode<P> {
7
+ export declare class SlotNode<P extends Props = SlotNodeProps> extends VirtualNode<P> {
7
8
  static priority: number;
8
9
  static matches(type: string): boolean;
9
10
  parent?: Gtk.Widget;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gtkx/react",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Build GTK4 desktop applications with React and TypeScript",
5
5
  "keywords": [
6
6
  "gtkx",
@@ -37,8 +37,8 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "react-reconciler": "^0.33.0",
40
- "@gtkx/ffi": "0.12.0",
41
- "@gtkx/gir": "0.12.0"
40
+ "@gtkx/ffi": "0.12.1",
41
+ "@gtkx/gir": "0.12.1"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/react-reconciler": "^0.32.3"