@gtkx/react 0.17.1 → 0.17.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -10,9 +10,9 @@
10
10
 
11
11
  <p align="center">
12
12
  <a href="https://www.npmjs.com/package/@gtkx/react"><img src="https://img.shields.io/npm/v/@gtkx/react.svg" alt="npm version"></a>
13
- <a href="https://github.com/eugeniodepalo/gtkx/actions"><img src="https://img.shields.io/github/actions/workflow/status/eugeniodepalo/gtkx/ci.yml" alt="CI"></a>
14
- <a href="https://github.com/eugeniodepalo/gtkx/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MPL--2.0-blue.svg" alt="License"></a>
15
- <a href="https://github.com/eugeniodepalo/gtkx/discussions"><img src="https://img.shields.io/badge/discussions-GitHub-blue" alt="GitHub Discussions"></a>
13
+ <a href="https://github.com/gtkx-org/gtkx/actions"><img src="https://img.shields.io/github/actions/workflow/status/eugeniodepalo/gtkx/ci.yml" alt="CI"></a>
14
+ <a href="https://github.com/gtkx-org/gtkx/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MPL--2.0-blue.svg" alt="License"></a>
15
+ <a href="https://github.com/gtkx-org/gtkx/discussions"><img src="https://img.shields.io/badge/discussions-GitHub-blue" alt="GitHub Discussions"></a>
16
16
  </p>
17
17
 
18
18
  ---
@@ -90,16 +90,16 @@ Explore complete applications in the [`examples/`](./examples) directory:
90
90
 
91
91
  ## Documentation
92
92
 
93
- Visit [https://eugeniodepalo.github.io/gtkx](https://eugeniodepalo.github.io/gtkx/) for the full documentation.
93
+ Visit [https://gtkx.dev](https://gtkx.dev) for the full documentation.
94
94
 
95
95
  ## Contributing
96
96
 
97
- Contributions are welcome! Please see the [contributing guidelines](./CONTRIBUTING.md) and check out the [good first issues](https://github.com/eugeniodepalo/gtkx/labels/good%20first%20issue).
97
+ Contributions are welcome! Please see the [contributing guidelines](./CONTRIBUTING.md) and check out the [good first issues](https://github.com/gtkx-org/gtkx/labels/good%20first%20issue).
98
98
 
99
99
  ## Community
100
100
 
101
- - [GitHub Discussions](https://github.com/eugeniodepalo/gtkx/discussions) — Questions, ideas, and general discussion
102
- - [Issue Tracker](https://github.com/eugeniodepalo/gtkx/issues) — Bug reports and feature requests
101
+ - [GitHub Discussions](https://github.com/gtkx-org/gtkx/discussions) — Questions, ideas, and general discussion
102
+ - [Issue Tracker](https://github.com/gtkx-org/gtkx/issues) — Bug reports and feature requests
103
103
 
104
104
  ## License
105
105
 
@@ -11,6 +11,7 @@ import type * as Pango from "@gtkx/ffi/pango";
11
11
  import type * as Vte from "@gtkx/ffi/vte";
12
12
  import type * as WebKit from "@gtkx/ffi/webkit";
13
13
  import type * as cairo from "@gtkx/ffi/cairo";
14
+ /** Base props shared by all GTK widget elements. */
14
15
  export type WidgetProps = {
15
16
  /**
16
17
  * Whether the widget or any of its descendents can accept
@@ -18452,6 +18453,7 @@ export declare const AdwTabOverview: "AdwTabOverview";
18452
18453
  * are the accessible parent objects of the child widgets.
18453
18454
  */
18454
18455
  export declare const AdwTabView: "AdwTabView";
18456
+ /** A Vte.Terminal widget element. */
18455
18457
  export declare const VteTerminal: "VteTerminal";
18456
18458
  /**
18457
18459
  * A single-line text entry.
@@ -19468,6 +19470,7 @@ export declare const GtkVolumeButton: "GtkVolumeButton";
19468
19470
  * you don't need to embed it in a #GtkScrolledWindow.
19469
19471
  */
19470
19472
  export declare const WebKitWebView: "WebKitWebView";
19473
+ /** A WebKit.WebViewBase widget element. */
19471
19474
  export declare const WebKitWebViewBase: "WebKitWebViewBase";
19472
19475
  /**
19473
19476
  * Shows window frame controls.
@@ -7959,6 +7959,7 @@ export const AdwTabOverview = "AdwTabOverview";
7959
7959
  * are the accessible parent objects of the child widgets.
7960
7960
  */
7961
7961
  export const AdwTabView = "AdwTabView";
7962
+ /** A Vte.Terminal widget element. */
7962
7963
  export const VteTerminal = "VteTerminal";
7963
7964
  /**
7964
7965
  * A single-line text entry.
@@ -8975,6 +8976,7 @@ export const GtkVolumeButton = "GtkVolumeButton";
8975
8976
  * you don't need to embed it in a #GtkScrolledWindow.
8976
8977
  */
8977
8978
  export const WebKitWebView = "WebKitWebView";
8979
+ /** A WebKit.WebViewBase widget element. */
8978
8980
  export const WebKitWebViewBase = "WebKitWebViewBase";
8979
8981
  /**
8980
8982
  * Shows window frame controls.
@@ -1,7 +1,13 @@
1
1
  import type * as Gdk from "@gtkx/ffi/gdk";
2
2
  import * as Gtk from "@gtkx/ffi/gtk";
3
3
  import { VirtualNode } from "./virtual.js";
4
+ /**
5
+ * Props for the TextPaintable virtual element.
6
+ *
7
+ * Used to embed inline images or icons within text content in a GtkTextView.
8
+ */
4
9
  export type TextPaintableProps = {
10
+ /** The paintable (image, icon, etc.) to embed inline with the text */
5
11
  paintable: Gdk.Paintable;
6
12
  };
7
13
  export declare class TextPaintableNode extends VirtualNode<TextPaintableProps> {
package/dist/render.d.ts CHANGED
@@ -122,4 +122,4 @@ export declare const update: (element: ReactNode) => Promise<void>;
122
122
  *
123
123
  * @see {@link render} for starting the application
124
124
  */
125
- export declare const quit: () => boolean;
125
+ export declare const quit: () => void;
package/dist/render.js CHANGED
@@ -159,12 +159,11 @@ export const update = (element) => {
159
159
  */
160
160
  export const quit = () => {
161
161
  if (isHotReloading) {
162
- return true;
162
+ return;
163
163
  }
164
164
  reconciler.getInstance().updateContainer(null, container, null, () => {
165
165
  setTimeout(() => {
166
166
  stop();
167
167
  }, 0);
168
168
  });
169
- return true;
170
169
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gtkx/react",
3
- "version": "0.17.1",
3
+ "version": "0.17.3",
4
4
  "description": "Build GTK4 desktop applications with React and TypeScript",
5
5
  "keywords": [
6
6
  "gtkx",
@@ -13,13 +13,13 @@
13
13
  "gui",
14
14
  "native"
15
15
  ],
16
- "homepage": "https://eugeniodepalo.github.io/gtkx",
16
+ "homepage": "https://gtkx.dev",
17
17
  "bugs": {
18
- "url": "https://github.com/eugeniodepalo/gtkx/issues"
18
+ "url": "https://github.com/gtkx-org/gtkx/issues"
19
19
  },
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "https://github.com/eugeniodepalo/gtkx.git",
22
+ "url": "https://github.com/gtkx-org/gtkx.git",
23
23
  "directory": "packages/react"
24
24
  },
25
25
  "license": "MPL-2.0",
@@ -37,8 +37,8 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "react-reconciler": "^0.33.0",
40
- "@gtkx/ffi": "0.17.1",
41
- "@gtkx/gir": "0.17.1"
40
+ "@gtkx/ffi": "0.17.3",
41
+ "@gtkx/gir": "0.17.3"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/react-reconciler": "^0.33.0"