@nativedesktop/react 0.4.18 → 0.4.19

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.
@@ -5,6 +5,11 @@ export interface Geometry {
5
5
  w: number;
6
6
  h: number;
7
7
  }
8
+ /** The smallest size, in logical units, the backend's layout will give a node: GTK's gtk_widget_measure minimum on each axis. A window narrower than its root's minimum is what makes GTK log "Allocation width too small". */
9
+ export interface MinSize {
10
+ w: number;
11
+ h: number;
12
+ }
8
13
  /** The per-row shape on the wire, shared by every row-driven widget (SourceList `items`, SourceTree `nodes`, CommandPalette `items`) — camelCase iconName, matching the schema prop shape. testID carries SourceTree's per-node testID (null for SourceList rows, which have none); id and subtitle carry the row's own identity and secondary line where the widget's item type has them (CommandPaletteItem, SourceTreeNode), so a drive can name a row instead of counting to it. */
9
14
  export interface RowJson {
10
15
  title: string;
@@ -14,7 +19,7 @@ export interface RowJson {
14
19
  id: string | null;
15
20
  subtitle: string | null;
16
21
  }
17
- /** One tree-snapshot node. itemCount is ListView's row count (M5c-D4), null for every widget that isn't data-driven; rows is SourceList's ordered row data, null for every widget that isn't row-driven. role/enabled/focused/value are the accessibility-tree fields (M16): role is the widget's schema-declared automation role (null when the type declares none); enabled/focused/value come from a live per-node backend probe and default to true/false/null on backends without the probe. checked/selected/expanded/placeholder/label/options come from the same probe and are null on every node the field does not apply to (a Label has no checked state), so a locator can ask isChecked/isSelected/isExpanded of any node without first knowing its kind. */
22
+ /** One tree-snapshot node. itemCount is ListView's row count (M5c-D4), null for every widget that isn't data-driven; rows is SourceList's ordered row data, null for every widget that isn't row-driven. role/enabled/focused/value are the accessibility-tree fields (M16): role is the widget's schema-declared automation role (null when the type declares none); enabled/focused/value come from a live per-node backend probe and default to true/false/null on backends without the probe. checked/selected/expanded/placeholder/label/options come from the same probe and are null on every node the field does not apply to (a Label has no checked state), so a locator can ask isChecked/isSelected/isExpanded of any node without first knowing its kind. minSize comes from the same probe, null on backends that do not measure. */
18
23
  export interface JsonNode {
19
24
  ref: number;
20
25
  type: string;
@@ -35,6 +40,7 @@ export interface JsonNode {
35
40
  placeholder: string | null;
36
41
  label: string | null;
37
42
  options: string[] | null;
43
+ minSize: MinSize | null;
38
44
  }
39
45
  export interface GetTreeResult {
40
46
  coordinateSpace: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativedesktop/react",
3
- "version": "0.4.18",
3
+ "version": "0.4.19",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/FormalSnake/NativeDesktop#readme",