@gjsify/react-native 0.43.0 → 0.44.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 (65) hide show
  1. package/README.md +123 -27
  2. package/lib/esm/apis/alert.js +1 -0
  3. package/lib/esm/apis/appearance.js +1 -0
  4. package/lib/esm/apis/color-scheme.js +1 -1
  5. package/lib/esm/apis/dimensions.js +1 -0
  6. package/lib/esm/apis/display.js +1 -0
  7. package/lib/esm/apis/index.js +1 -1
  8. package/lib/esm/apis/keyboard.js +1 -0
  9. package/lib/esm/components.js +1 -1
  10. package/lib/esm/generated/unsupported-exports.js +1 -1
  11. package/lib/esm/generated/unsupported-router-exports.js +1 -0
  12. package/lib/esm/hooks.js +1 -1
  13. package/lib/esm/index.js +1 -1
  14. package/lib/esm/lists/components.js +1 -0
  15. package/lib/esm/lists/controller.js +1 -0
  16. package/lib/esm/parent-context.js +1 -0
  17. package/lib/esm/press.js +1 -0
  18. package/lib/esm/primitives/resolve.js +1 -1
  19. package/lib/esm/primitives/table.js +1 -1
  20. package/lib/esm/router/errors.js +1 -0
  21. package/lib/esm/router/index.js +1 -0
  22. package/lib/esm/router/navigation.js +1 -0
  23. package/lib/esm/router/root.js +1 -0
  24. package/lib/esm/router/routes.js +1 -0
  25. package/lib/esm/router/screens.js +1 -0
  26. package/lib/esm/router/stack.js +1 -0
  27. package/lib/esm/router/tabs.js +1 -0
  28. package/lib/esm/solid/index.js +1 -1
  29. package/lib/esm/stylesheet.js +1 -0
  30. package/lib/esm/support-table.js +1 -1
  31. package/lib/types/apis/alert.d.ts +46 -0
  32. package/lib/types/apis/appearance.d.ts +28 -0
  33. package/lib/types/apis/color-scheme.d.ts +21 -0
  34. package/lib/types/apis/dimensions.d.ts +42 -0
  35. package/lib/types/apis/display.d.ts +87 -0
  36. package/lib/types/apis/index.d.ts +10 -1
  37. package/lib/types/apis/keyboard.d.ts +22 -0
  38. package/lib/types/components.d.ts +166 -10
  39. package/lib/types/generated/unsupported-exports.d.ts +0 -19
  40. package/lib/types/generated/unsupported-router-exports.d.ts +17 -0
  41. package/lib/types/hooks.d.ts +16 -0
  42. package/lib/types/index.d.ts +9 -5
  43. package/lib/types/lists/components.d.ts +102 -0
  44. package/lib/types/lists/controller.d.ts +89 -0
  45. package/lib/types/lists/lists.spec.d.ts +2 -0
  46. package/lib/types/parent-context.d.ts +15 -0
  47. package/lib/types/press.d.ts +27 -0
  48. package/lib/types/primitives/index.d.ts +2 -2
  49. package/lib/types/primitives/resolve.d.ts +36 -0
  50. package/lib/types/primitives/table.d.ts +79 -2
  51. package/lib/types/router/errors.d.ts +37 -0
  52. package/lib/types/router/index.d.ts +10 -0
  53. package/lib/types/router/navigation.d.ts +72 -0
  54. package/lib/types/router/root.d.ts +24 -0
  55. package/lib/types/router/router.spec.d.ts +2 -0
  56. package/lib/types/router/routes.d.ts +90 -0
  57. package/lib/types/router/routes.spec.d.ts +2 -0
  58. package/lib/types/router/screens.d.ts +48 -0
  59. package/lib/types/router/stack.d.ts +118 -0
  60. package/lib/types/router/tabs.d.ts +36 -0
  61. package/lib/types/solid/index.d.ts +9 -4
  62. package/lib/types/stylesheet.d.ts +75 -0
  63. package/lib/types/stylesheet.spec.d.ts +2 -0
  64. package/lib/types/support-table.d.ts +13 -2
  65. package/package.json +19 -5
@@ -0,0 +1,2 @@
1
+ declare const _default: () => Promise<void>;
2
+ export default _default;
@@ -16,7 +16,13 @@ export type SupportStatus =
16
16
  export type SupportTier = 'P1' | 'P2' | 'P3';
17
17
  export interface SupportEntry {
18
18
  readonly status: SupportStatus;
19
- /** Absent for `refused` / `not-reachable`, which are not scheduled at all. */
19
+ /**
20
+ * When. Required on `planned` and `partial`, absent on `refused` and
21
+ * `not-reachable` — neither is a schedule. Optional elsewhere: a `supported`
22
+ * or `no-desktop-meaning` name was answered rather than scheduled, so the
23
+ * converse ("not refused, therefore tiered") is measurably false and
24
+ * `support-table.spec.ts` pins the narrower rule that holds.
25
+ */
20
26
  readonly tier?: SupportTier;
21
27
  /** The GTK or Adwaita counterpart, where there is one. */
22
28
  readonly gtk?: string;
@@ -26,13 +32,18 @@ export interface SupportEntry {
26
32
  readonly limits?: readonly string[];
27
33
  }
28
34
  export declare const SUPPORT_TABLE: Readonly<Record<string, SupportEntry>>;
35
+ export declare const ROUTER_SUPPORT_TABLE: Readonly<Record<string, SupportEntry>>;
29
36
  /** Every name `react-native` publicly exports, as this table claims to cover it. */
30
37
  export declare const SUPPORTED_NAMES: readonly string[];
38
+ /** Every `expo-router` name the routing surface declares a status for. */
39
+ export declare const ROUTER_NAMES: readonly string[];
31
40
  export declare const isImportable: (name: string) => boolean;
32
41
  /**
33
42
  * The sentence a build error and a runtime throw both print.
34
43
  *
35
44
  * One function so the two cannot drift into describing the same gap differently —
36
- * which is the whole reason the table is data rather than prose in two places.
45
+ * which is the whole reason the table is data rather than prose in two places. It
46
+ * covers BOTH tables, and prints the module the name belongs to, so a reader who
47
+ * imported `Tabs` from the wrong entry point learns which one has it.
37
48
  */
38
49
  export declare function explainUnsupported(name: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/react-native",
3
- "version": "0.43.0",
3
+ "version": "0.44.0",
4
4
  "description": "The React Native view vocabulary rendered onto GTK4/Adwaita, over @gjsify/gtk-host",
5
5
  "type": "module",
6
6
  "module": "lib/esm/index.js",
@@ -14,6 +14,10 @@
14
14
  "types": "./lib/types/solid/index.d.ts",
15
15
  "default": "./lib/esm/solid/index.js"
16
16
  },
17
+ "./router": {
18
+ "types": "./lib/types/router/index.d.ts",
19
+ "default": "./lib/esm/router/index.js"
20
+ },
17
21
  "./support-table": {
18
22
  "types": "./lib/types/support-table.d.ts",
19
23
  "default": "./lib/esm/support-table.js"
@@ -46,15 +50,23 @@
46
50
  "react-native"
47
51
  ],
48
52
  "dependencies": {
49
- "@gjsify/adwaita-app": "^0.43.0",
50
- "@gjsify/gtk-host": "^0.43.0"
53
+ "@gjsify/adwaita-app": "^0.44.0",
54
+ "@gjsify/gtk-host": "^0.44.0"
51
55
  },
52
56
  "peerDependencies": {
57
+ "@react-navigation/core": "^7.21.13",
58
+ "@react-navigation/routers": "^7.6.4",
53
59
  "react": "^19.2.0",
54
60
  "react-reconciler": "^0.33.0",
55
61
  "solid-js": "^1.9.0"
56
62
  },
57
63
  "peerDependenciesMeta": {
64
+ "@react-navigation/core": {
65
+ "optional": true
66
+ },
67
+ "@react-navigation/routers": {
68
+ "optional": true
69
+ },
58
70
  "react": {
59
71
  "optional": true
60
72
  },
@@ -66,8 +78,10 @@
66
78
  }
67
79
  },
68
80
  "devDependencies": {
69
- "@gjsify/cli": "^0.43.0",
70
- "@gjsify/unit": "^0.43.0",
81
+ "@gjsify/cli": "^0.44.0",
82
+ "@react-navigation/core": "^7.21.13",
83
+ "@react-navigation/routers": "^7.6.4",
84
+ "@gjsify/unit": "^0.44.0",
71
85
  "@girs/adw-1": "^4.1.0",
72
86
  "@girs/gdk-4.0": "^4.1.0",
73
87
  "@girs/gjs": "^4.1.0",