@mcp-native/react-native 0.8.0 → 0.9.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.
package/README.md CHANGED
@@ -24,14 +24,17 @@ The renderer is an internal platform layer, not proof of complete A2UI v1.0 conf
24
24
  npm install @mcp-native/react-native react react-native
25
25
  ```
26
26
 
27
- `@mcp-native/a2ui` and `@mcp-native/core` are installed as dependencies. React is a peer dependency. React Native `>=0.86.0 <1` is an optional peer because the renderer does not import it or choose a platform implementation; a native host supplies its locally bundled components.
27
+ `@mcp-native/a2ui` and `@mcp-native/core` are installed as dependencies. React is a peer dependency. React Native `>=0.87.0 <1` is an optional peer because the renderer does not import it or choose a platform implementation; a native host supplies its locally bundled components.
28
28
 
29
- ## Quick start
29
+ ## Deprecated custom `0.1` quick start
30
+
31
+ Use the explicit legacy subpaths during `0.9.x`. These APIs leave package roots at `1.0.0`; the
32
+ subpaths remain frozen for migration and security fixes.
30
33
 
31
34
  ```tsx
32
- import { parseA2uiSurface } from "@mcp-native/a2ui";
35
+ import { parseA2uiSurface } from "@mcp-native/a2ui/legacy";
33
36
  import type { McpNativeRuntime } from "@mcp-native/core";
34
- import { McpNativeSurface, useMcpNativeActionDispatcher } from "@mcp-native/react-native";
37
+ import { McpNativeSurface, useMcpNativeActionDispatcher } from "@mcp-native/react-native/legacy";
35
38
  import { Button, Text, TextInput, View } from "react-native";
36
39
 
37
40
  const components = { Button, Text, TextInput, View };
@@ -123,12 +126,17 @@ repeatable Node.js render-plan budgets and fixed-seed generated-input coverage.
123
126
 
124
127
  For release/platform testing, `npm run native:host:prepare` generates an official temporary React
125
128
  Native host at the package's exact tested boundaries: current latest `0.87.1` and declared minimum
126
- `0.86.0`. Each host installs local package tarballs and the pinned accessibility,
129
+ `0.87.0`. Each host installs local package tarballs and the pinned accessibility,
127
130
  complete-catalog, media, and Codegen/Fabric extension fixtures.
128
131
  The [Expo Go integration PoC policy](../../docs/native-accessibility-testing.md) documents the
129
132
  non-blocking app-level compatibility work. Generated hosts remain automated package fixtures and do
130
133
  not establish support for a component library.
131
134
 
135
+ The Milestone 9 fixture also places this native surface beside an isolated MCP Apps WebView through
136
+ the convenience package's host-owned coordinator. It exercises fixed accessibility order,
137
+ application state, dynamic type, reduced motion, orientation, keyboard, back handling, process
138
+ crash/reload, and teardown without treating the two regions as one protocol or accessibility tree.
139
+
132
140
  ### Host component adapters
133
141
 
134
142
  The catalog may use React Native primitives directly or typed adapters around any locally bundled design system. The adapter helpers receive only the trusted primitive props selected by MCP Native and map them into the host component's API:
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Renderer for the frozen custom A2UI `0.1` proof surface.
3
+ *
4
+ * @deprecated Migrate to `A2uiV1NativeSurface`. Root aliases are removed at `1.0.0`; this explicit
5
+ * subpath remains isolated and receives security fixes only.
6
+ */
7
+ export { McpNativeSurface, createNativeRenderPlan, useMcpNativeActionDispatcher, useNativeRenderPlan, } from "./index.js";
8
+ export type { McpNativeActionDispatcherOptions, McpNativeDispatcher, McpNativeSurfaceProps, NativeActionHandler, NativeBindingChangeHandler, NativeComponentName, NativeElement, } from "./index.js";
9
+ //# sourceMappingURL=legacy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacy.d.ts","sourceRoot":"","sources":["../src/legacy.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,4BAA4B,EAC5B,mBAAmB,GACpB,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,gCAAgC,EAChC,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,0BAA0B,EAC1B,mBAAmB,EACnB,aAAa,GACd,MAAM,YAAY,CAAC"}
package/dist/legacy.js ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Renderer for the frozen custom A2UI `0.1` proof surface.
3
+ *
4
+ * @deprecated Migrate to `A2uiV1NativeSurface`. Root aliases are removed at `1.0.0`; this explicit
5
+ * subpath remains isolated and receives security fixes only.
6
+ */
7
+ export { McpNativeSurface, createNativeRenderPlan, useMcpNativeActionDispatcher, useNativeRenderPlan, } from "./index.js";
8
+ //# sourceMappingURL=legacy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacy.js","sourceRoot":"","sources":["../src/legacy.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,4BAA4B,EAC5B,mBAAmB,GACpB,MAAM,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-native/react-native",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "React Native renderer primitives for MCP Native.",
5
5
  "keywords": [
6
6
  "a2ui",
@@ -31,14 +31,18 @@
31
31
  ".": {
32
32
  "types": "./dist/index.d.ts",
33
33
  "import": "./dist/index.js"
34
+ },
35
+ "./legacy": {
36
+ "types": "./dist/legacy.d.ts",
37
+ "import": "./dist/legacy.js"
34
38
  }
35
39
  },
36
40
  "publishConfig": {
37
41
  "access": "public"
38
42
  },
39
43
  "dependencies": {
40
- "@mcp-native/a2ui": "^0.8.0",
41
- "@mcp-native/core": "^0.8.0"
44
+ "@mcp-native/a2ui": "^0.9.0",
45
+ "@mcp-native/core": "^0.9.0"
42
46
  },
43
47
  "devDependencies": {
44
48
  "@types/react": "19.1.17",
@@ -47,7 +51,7 @@
47
51
  },
48
52
  "peerDependencies": {
49
53
  "react": ">=18.3.1 <20",
50
- "react-native": ">=0.86.0 <1"
54
+ "react-native": ">=0.87.0 <1"
51
55
  },
52
56
  "peerDependenciesMeta": {
53
57
  "react-native": {