@gtkx/react 0.1.46 → 0.1.47
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 +1 -1
- package/dist/codegen/jsx-generator.d.ts +1 -0
- package/dist/codegen/jsx-generator.js +25 -2
- package/dist/generated/jsx.d.ts +1 -0
- package/dist/generated/jsx.js +3885 -0
- package/dist/node.js +4 -2
- package/package.json +3 -3
package/dist/node.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as GObject from "@gtkx/ffi/gobject";
|
|
2
2
|
import * as Gtk from "@gtkx/ffi/gtk";
|
|
3
|
-
import { CONSTRUCTOR_PARAMS, SETTER_GETTERS } from "./generated/jsx.js";
|
|
3
|
+
import { CONSTRUCTOR_PARAMS, PROP_SETTERS, SETTER_GETTERS } from "./generated/jsx.js";
|
|
4
4
|
import { isAppendable, isRemovable, isSingleChild } from "./predicates.js";
|
|
5
5
|
const extractConstructorArgs = (type, props) => {
|
|
6
6
|
const params = CONSTRUCTOR_PARAMS[type];
|
|
@@ -147,7 +147,9 @@ export class Node {
|
|
|
147
147
|
this.signalHandlers.set(eventName, handlerId);
|
|
148
148
|
}
|
|
149
149
|
setProperty(widget, key, value) {
|
|
150
|
-
const setterName =
|
|
150
|
+
const setterName = PROP_SETTERS[this.widgetType]?.[key];
|
|
151
|
+
if (!setterName)
|
|
152
|
+
return;
|
|
151
153
|
const setter = widget[setterName];
|
|
152
154
|
if (typeof setter !== "function")
|
|
153
155
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gtkx/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.47",
|
|
4
4
|
"description": "Build GTK4 desktop applications with React and TypeScript",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"gtk",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"react-reconciler": "0.33.0",
|
|
39
|
-
"@gtkx/ffi": "0.1.
|
|
39
|
+
"@gtkx/ffi": "0.1.47"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@gtkx/gir": "0.1.
|
|
42
|
+
"@gtkx/gir": "0.1.47"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": "^19"
|