@mcp-native/react-native 0.6.0 → 0.7.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
@@ -16,7 +16,7 @@
16
16
 
17
17
  `@mcp-native/react-native` converts a surface already validated by `@mcp-native/a2ui` into a trusted render plan and mounts it with components supplied by the host application. Servers provide data and declared actions—not JavaScript modules, component implementations, or arbitrary component names.
18
18
 
19
- The renderer is an internal platform layer, not proof of complete A2UI v1.0 conformance. The custom `0.1` surface remains available only through deprecated migration APIs, while the v1.0 adapter converts the documented component subset, including bounded dynamic lists, into the same host-owned `NativeElement` boundary. See the [feature-scoped conformance profile](https://github.com/pablospaniard/mcp-native/blob/main/docs/a2ui-v1-conformance.md).
19
+ The renderer is an internal platform layer, not proof of complete A2UI v1.0 conformance. The custom `0.1` surface remains available only through deprecated migration APIs, while the v1.0 adapter converts every non-media component in the pinned basic catalog, including bounded dynamic lists, into the same host-owned `NativeElement` boundary. See the [feature-scoped conformance profile](https://github.com/pablospaniard/mcp-native/blob/main/docs/a2ui-v1-conformance.md).
20
20
 
21
21
  ## Install
22
22
 
@@ -101,7 +101,9 @@ const surface = store.get("profile");
101
101
  const plan = surface && createA2uiV1NativeRenderPlan(surface, policy);
102
102
  ```
103
103
 
104
- The adapter maps `Row`, `Column`, static or dynamic `List`, and `Card` to `View`; `Text` to `Text`; `Button` with a `Text` child to `Button`; and `TextField` to `TextInput`. Dynamic lists expand one validated template component per bound array item and remain inside the 1,024-node plan limit. The adapter resolves absolute and item-relative JSON Pointer values, translates relative `TextField` bindings into absolute renderer-local pointers, evaluates bounded literal `formatString`, host-localized `formatNumber`, `formatCurrency`, `formatDate`, and `pluralize`, pure `and`, `or`, and `not`, `required`, bounded `regex`, `length`, `numeric`, and `email`, and `@index` with optional offsets, maps supported container direction and alignment to owned React Native flex styles, applies component weight through a host-owned `View` wrapper with `flexGrow`, maps `TextField` variants to explicit native input behavior (including `secureTextEntry` for `obscured`), and preserves event context and explicit accessibility fields. At the mounted boundary, text and buttons receive closed native roles, button accessibility state mirrors the derived disabled state, hidden text and controls are not accessibility elements, and text plus text inputs explicitly allow font scaling. Supported `TextField` checks set explicit `invalid` and `validationMessages` props on the host component and append declared failures to its accessibility hint; supported `Button` checks set `disabled`, expose declared messages, and cannot resolve or dispatch the event or local URL action until current renderer-local state passes. Main-axis `stretch` and negative weight, which React Native flex layout cannot represent faithfully, fail closed.
104
+ The adapter maps `Row`, `Column`, static or dynamic `List`, and `Card` to `View`; `Text` to `Text`; `Button` with a `Text` child to `Button`; and `TextField` to `TextInput`. Optional host slots implement `Image`, `Icon`, `Divider`, `CheckBox`, `ChoicePicker`, `Slider`, `DateTimeInput`, `Tabs`, and `Modal`. Dynamic lists expand one validated template component per bound array item and remain inside the 1,024-node plan limit. The adapter resolves absolute and item-relative JSON Pointer values; translates relative typed bindings into absolute renderer-local pointers; evaluates bounded formatting, boolean, validation, and `@index` functions; maps supported layout and variants to owned props; and preserves event context and explicit accessibility fields. At the mounted boundary, components receive closed roles and state, hidden controls are excluded, and text scaling stays enabled. Supported checks expose `invalid`/`validationMessages`; invalid buttons cannot resolve or dispatch an event or local URL action. Main-axis `stretch` and negative weight, which React Native flex layout cannot represent faithfully, fail closed.
105
+
106
+ The non-media catalog is exactly `Button`, `Card`, `CheckBox`, `ChoicePicker`, `Column`, `DateTimeInput`, `Divider`, `Icon`, `Image`, `List`, `Modal`, `Row`, `Slider`, `Tabs`, `Text`, and `TextField`. `Video` and `AudioPlayer` remain unsupported. Use `getA2uiV1NativeSupportedComponentNames(catalog, { imagePolicy })` when building host capability metadata: the four base primitives imply the seven structural/text/input names, each optional slot adds only its matching A2UI name, and `Image` additionally requires the host policy. A missing slot or image policy fails closed before mounting.
105
107
 
106
108
  These mappings have automated host-boundary coverage. The [Expo Go integration PoC
107
109
  policy](../../docs/native-accessibility-testing.md) defines the shared surface and the independent
@@ -109,7 +111,7 @@ app-per-library approach for platform and component-library validation. The [aut
109
111
  repeatable Node.js render-plan budgets and fixed-seed generated-input coverage.
110
112
 
111
113
  For release/platform testing, `npm run native:host:prepare` generates an official temporary React
112
- Native `0.87.1` or `0.86.3` host from local package tarballs and the pinned accessibility fixture.
114
+ Native `0.87.1` or `0.86.3` host from local package tarballs and the pinned accessibility plus complete non-media fixtures.
113
115
  The [Expo Go integration PoC policy](../../docs/native-accessibility-testing.md) documents the
114
116
  non-blocking app-level compatibility work. Generated hosts remain automated package fixtures and do
115
117
  not establish support for a component library.
@@ -152,7 +154,7 @@ const components: NativeComponentCatalog = {
152
154
  };
153
155
  ```
154
156
 
155
- `createNativeViewAdapter`, `createNativeTextAdapter`, and `createNativeTextInputAdapter` provide the same typed boundary for the other primitives. This supports wrappers around libraries such as Expo UI or Gluestack without coupling MCP Native to them. These helpers do not create new wire-level components: the supported semantic names remain the closed `View`, `Text`, `Button`, and `TextInput` render-plan catalog, and the A2UI adapter continues to reject components outside its explicit host allowlist. Mapper functions and target components are trusted application code; server input never selects an import, mapper, or unchecked target prop.
157
+ `createNativeViewAdapter`, `createNativeTextAdapter`, `createNativeTextInputAdapter`, `createNativeImageAdapter`, `createNativeIconAdapter`, `createNativeDividerAdapter`, `createNativeCheckBoxAdapter`, `createNativeChoicePickerAdapter`, `createNativeSliderAdapter`, `createNativeDateTimeInputAdapter`, `createNativeTabsAdapter`, and `createNativeModalAdapter` provide the same typed boundary for the other semantics. This supports wrappers around libraries such as Expo UI or Gluestack without coupling MCP Native to them. These helpers do not create new wire-level components. Mapper functions and target components are trusted application code; server input never selects an import, mapper, or unchecked target prop.
156
158
 
157
159
  For richer local presentation, provide optional closed variant slots alongside the base primitives:
158
160
 
@@ -172,13 +174,14 @@ const components: NativeComponentCatalog = {
172
174
  number: NumericInput,
173
175
  obscured: PasswordInput,
174
176
  },
177
+ Image: { avatar: AvatarImage, mediumFeature: FeatureImage },
178
+ ChoicePicker: { multipleSelection: MultiSelect, mutuallyExclusive: RadioSelect },
175
179
  },
176
180
  };
177
181
  ```
178
182
 
179
183
  Each override receives the same explicitly selected primitive props as its base component. Missing
180
- entries fall back to `View`, `Text`, `Button`, or `TextInput`; omitted A2UI hints select their pinned
181
- defaults (`body`, `default`, and `shortText`). The renderer consumes structural and style hints while
184
+ entries fall back to their base component; omitted A2UI hints select their pinned defaults. The renderer consumes structural and style hints while
182
185
  choosing a local component and never forwards `variant`, a server-provided style object, or an
183
186
  arbitrary native prop. Hosts can combine variant slots with the typed adapter helpers when a design
184
187
  system uses a different prop API. Variant slots apply only to `A2uiV1NativeSurface`; the custom `0.1`
@@ -186,7 +189,7 @@ system uses a different prop API. Variant slots apply only to `A2uiV1NativeSurfa
186
189
 
187
190
  Create adapter components and the catalog at module scope, as above, or memoize them with stable dependencies. Each factory call intentionally creates a new React component type; calling one during every host render would remount that catalog entry and discard its component-local state. Generated adapters include descriptive React DevTools display names.
188
191
 
189
- Use `A2uiV1NativeSurface` to mount that subset with renderer-local string state and official action envelopes:
192
+ Use `A2uiV1NativeSurface` to mount the installed subset with typed renderer-local state and official action envelopes:
190
193
 
191
194
  ```tsx
192
195
  import { A2uiV1NativeSurface } from "@mcp-native/react-native";
@@ -211,48 +214,59 @@ import { Linking } from "react-native";
211
214
  />;
212
215
  ```
213
216
 
214
- Bound `TextField` changes update an owned local data model and rerender absolute or dynamic-list-relative bindings and formatted output immediately; they do not call the agent on each keystroke. Equivalent fresh store snapshots preserve those edits, while accepted agent data-model updates reset them. Repeated template buttons retain a renderer-only instance key, so pressing one resolves its user message, supported renderer functions, `@index`, and context again against the correct item in the latest local model while the official wire `sourceComponentId` remains the catalog component ID. The action is timestamped, reconstructed as finite JSON, and validated against the pinned official renderer-to-agent action schema. The callback receives the local data model only when the surface explicitly sets `sendDataModel: true`; otherwise its second argument is omitted. The host callback owns transport delivery and permission or consent boundaries.
217
+ Bound `TextField`, `CheckBox`, `ChoicePicker`, `Slider`, and `DateTimeInput` changes update an owned local data model with their exact string, boolean, string-array, number, or date/time-string type and rerender dependent output immediately; they do not call the agent on every edit. Equivalent fresh store snapshots preserve those edits, while accepted agent data-model updates reset them. Repeated template buttons retain a renderer-only instance key, so pressing one resolves its user message, supported renderer functions, `@index`, and context again against the correct item in the latest local model while the official wire `sourceComponentId` remains the catalog component ID. The action is timestamped, reconstructed as finite JSON, and validated against the pinned official renderer-to-agent action schema. The callback receives the local data model only when the surface explicitly sets `sendDataModel: true`; otherwise its second argument is omitted. The host callback owns transport delivery and permission or consent boundaries.
218
+
219
+ `Image` additionally requires `imagePolicy`. During render-plan construction, the synchronous callback receives an HTTP(S) URL after canonicalization and must return `false` or an exact grant containing allowed redirect origins, maximum redirects, transfer bytes, decoded width, height and pixels, plus `default` or `no-store` cache mode. The renderer validates and freezes that grant, then passes it to the installed image component as `resourcePolicy`. The image component must enforce every field before and during loading; a permissive platform image primitive is not sufficient merely because it accepts a URI. Credentials, non-HTTP(S) schemes, malformed origins, oversized URLs, invalid grants, and denied requests fail closed. One expanded plan permits at most 64 images, 100 MiB of total granted transfer bytes, and 268,435,456 total granted decoded pixels. The image-count check runs before the host policy, preventing a large component graph from amplifying authorization callbacks. Event and `openUrl` reconstruction revalidates server-controlled image URLs but does not invoke image authorization again.
220
+
221
+ `Icon` accepts only the exported `A2UI_V1_NATIVE_ICON_NAMES` semantic set and requires a host-owned mapping. SVG paths, module or font names, arbitrary glyphs, and platform symbols from the server are rejected. `Tabs` owns only its selected index. `Modal` owns open/closed state and requires a `Button` trigger; activating it opens local content and still resolves the declared Button action. The installed modal owns focus entry/trapping, escape or platform-back dismissal through `onRequestClose`, and restoration to its trigger. Dismissal emits no agent action.
215
222
 
216
223
  `openUrl` is a local Button action, not an agent event. The host must allow the function name in the catalog policy and provide both `openUrlPolicy` and `onOpenUrl`. The adapter re-resolves the URL against current local state during the originating press, canonicalizes it, rejects non-HTTP(S), relative, credential-bearing, whitespace-containing, control-containing, Unicode-format-containing, or oversized values, and invokes the opener only when the synchronous policy returns exactly `true`. Invalid initial server values reject the surface; temporary invalid renderer-local text edits instead disable the affected Button until the value becomes valid, and strict resolution runs again before an enabled press can reach host policy. No URL handler is imported or called by this package. Each URL is capped at 8,192 UTF-16 code units and one expanded pass is capped at 1,048,576 URL code units.
217
224
 
218
- Renderer functions other than `formatString`, `formatNumber`, `formatCurrency`, `formatDate`, `pluralize`, `required`, `regex`, `length`, `numeric`, `email`, `and`, `or`, `not`, template-scoped `@index`, and local Button action `openUrl`, nested inline catalogs, and every other basic-catalog component fail closed. Number and currency formatting uses `Intl.NumberFormat`, date formatting uses `Intl.DateTimeFormat`, and cardinal plural selection uses `Intl.PluralRules` with the required `other` fallback. `required` follows the pinned reference behavior for null, empty strings, and empty arrays. `length` and `numeric` use inclusive, ordered bounds, and `email` uses the pinned basic check with a 320-code-unit input cap. Agent-supplied `regex` is limited to 256 UTF-16 code units, a 4,096-code-unit input, repeats no larger than 4,096, no groups, alternation, backreferences, or Unicode property escapes, and at most one variable repeat; inputs over the cap fail the check, while unsupported or malformed patterns reject the surface. Expanded plans evaluate at most 10,000 renderer checks per pass. Each combined validation accessibility output is capped at 65,536 UTF-16 code units before construction, with at most 1,048,576 such output code units across one expanded pass. `formatDate` accepts finite Unix seconds or milliseconds, their numeric string forms, RFC 3339 timestamps, and strict `yyyy-MM-dd` dates. Absolute numeric magnitudes greater than `10,000,000,000` are milliseconds; all others are seconds. It supports the pinned catalog's `yy`, `yyyy`, `M`, `MM`, `MMM`, `MMMM`, `d`, `dd`, `E`, `EEEE`, `h`, `hh`, `H`, `HH`, `mm`, `ss`, and `a` token subset plus quoted literals; `h` and `hh` require `a`, other pattern letters fail closed, and one pattern may contain at most 128 tokens. The host may supply one validated, runtime-supported BCP 47 `locale` to the mounted surface, render-plan options, event-resolution options, and URL-resolution options, or omit it to use the runtime locale. A date-only `yyyy-MM-dd` value is a calendar date interpreted at midnight in the runtime time zone. An RFC 3339 value is an instant whose declared offset is applied before it is formatted in that runtime time zone. Agent-controlled decimal precision is restricted to an integer from 0 through 100, currency must appear in ISO 4217 List One published 2026-01-01, dynamic values resolve with strict types, formatter construction failures are controlled parse errors, and formatter caches live only for one bounded render, event-resolution, or URL-resolution pass. Expanded plans are capped at 1,024 nodes, 10,000 interpolations, and 1,048,576 formatted UTF-16 code units so repeated references or large bound arrays cannot amplify a small component graph into unbounded work; each formatted result also retains the shared 65,536-code-unit string limit.
225
+ Renderer functions other than `formatString`, `formatNumber`, `formatCurrency`, `formatDate`, `pluralize`, `required`, `regex`, `length`, `numeric`, `email`, `and`, `or`, `not`, template-scoped `@index`, and local Button action `openUrl`, nested inline catalogs, `Video`, `AudioPlayer`, and unknown components fail closed. Number and currency formatting uses `Intl.NumberFormat`, date formatting uses `Intl.DateTimeFormat`, and cardinal plural selection uses `Intl.PluralRules` with the required `other` fallback. `required` follows the pinned reference behavior for null, empty strings, and empty arrays. `length` and `numeric` use inclusive, ordered bounds, and `email` uses the pinned basic check with a 320-code-unit input cap. Agent-supplied `regex` is limited to 256 UTF-16 code units, a 4,096-code-unit input, repeats no larger than 4,096, no groups, alternation, backreferences, or Unicode property escapes, and at most one variable repeat; inputs over the cap fail the check, while unsupported or malformed patterns reject the surface. Expanded plans evaluate at most 10,000 renderer checks per pass. Each combined validation accessibility output is capped at 65,536 UTF-16 code units before construction, with at most 1,048,576 such output code units across one expanded pass. `formatDate` accepts finite Unix seconds or milliseconds, their numeric string forms, RFC 3339 timestamps, and strict `yyyy-MM-dd` dates. Absolute numeric magnitudes greater than `10,000,000,000` are milliseconds; all others are seconds. It supports the pinned catalog's `yy`, `yyyy`, `M`, `MM`, `MMM`, `MMMM`, `d`, `dd`, `E`, `EEEE`, `h`, `hh`, `H`, `HH`, `mm`, `ss`, and `a` token subset plus quoted literals; `h` and `hh` require `a`, other pattern letters fail closed, and one pattern may contain at most 128 tokens. The host may supply one validated, runtime-supported BCP 47 `locale` to the mounted surface, render-plan options, event-resolution options, and URL-resolution options, or omit it to use the runtime locale. A date-only `yyyy-MM-dd` value is a calendar date interpreted at midnight in the runtime time zone. An RFC 3339 value is an instant whose declared offset is applied before it is formatted in that runtime time zone. Agent-controlled decimal precision is restricted to an integer from 0 through 100, currency must appear in ISO 4217 List One published 2026-01-01, dynamic values resolve with strict types, formatter construction failures are controlled parse errors, and formatter caches live only for one bounded render, event-resolution, or URL-resolution pass. Expanded plans are capped at 1,024 nodes, 10,000 interpolations, and 1,048,576 formatted UTF-16 code units so repeated references or large bound arrays cannot amplify a small component graph into unbounded work; each formatted result also retains the shared 65,536-code-unit string limit.
219
226
 
220
227
  ## Public API
221
228
 
222
- | Export | Purpose |
223
- | --------------------------------------- | -------------------------------------------------------------------------------------------------------- |
224
- | `McpNativeSurface` | Mounts a validated surface using the host's component catalog. |
225
- | `A2uiV1NativeSurface` | Mounts the supported v1 subset with local bindings and official action-envelope callbacks. |
226
- | `useMcpNativeActionDispatcher` | Adapts asynchronous runtime dispatch into a stable event callback with required error handling. |
227
- | `useNativeRenderPlan` | Memoizes a trusted render plan for a validated surface identity. |
228
- | `createNativeRenderPlan` | Converts a validated `A2uiSurface` into a `NativeElement` tree. |
229
- | `createA2uiV1NativeRenderPlan` | Revalidates and adapts the supported v1 subset into a trusted `NativeElement` tree. |
230
- | `resolveA2uiV1NativeEvent` | Revalidates and resolves one reachable static or template-instance event against the latest local model. |
231
- | `resolveA2uiV1NativeOpenUrl` | Revalidates and resolves one reachable HTTP(S) URL action against the latest local model. |
232
- | `A2UI_V1_NATIVE_COMPONENT_NAMES` | Exact basic-catalog component names implemented by the current native adapter. |
233
- | `A2UI_V1_NATIVE_MAX_RENDER_NODES` | Bound on expanded v1 render-plan nodes. |
234
- | `A2UI_V1_NATIVE_MAX_OPEN_URL_LENGTH` | Per-action bound on canonical HTTP(S) URL length. |
235
- | `A2uiV1NativeEventDescriptor` | Resolved trusted-plan event data used by mounted dispatch or custom hosts. |
236
- | `A2uiV1NativeOpenUrlDescriptor` | Canonical URL plus surface, component, and optional template-instance identity. |
237
- | `A2uiV1NativeRenderPlanOptions` | Optional renderer-local model and host-owned BCP 47 locale. |
238
- | `A2uiV1NativeEventResolutionOptions` | Optional template instance key and matching host-owned BCP 47 locale. |
239
- | `A2uiV1NativeOpenUrlResolutionOptions` | Optional template instance key and matching host-owned BCP 47 locale for URL resolution. |
240
- | `A2uiV1NativeActionHandler` | Host callback receiving the validated action envelope and, when opted in, the local data model. |
241
- | `A2uiV1NativeOpenUrlPolicy` | Synchronous host predicate authorizing one canonical URL during its Button press. |
242
- | `A2uiV1NativeOpenUrlHandler` | Host-owned callback that opens an authorized URL through a platform API. |
243
- | `NativeComponentCatalog` | Base primitives plus optional closed host-owned component variants. |
244
- | `NativeComponentVariants` | Optional overrides for supported structure and pinned style hints, with primitive fallbacks. |
245
- | `Native*Variant` types | Closed view, text, button, and text-input variant keys. |
246
- | `NativeAccessibilityRole` | Renderer-derived closed role union for supported text and button primitives. |
247
- | `NativeAccessibilityState` | Renderer-derived state currently exposing only the supported button disabled flag. |
248
- | `createNative*Adapter` helpers | Typed mappings from trusted primitive props into locally bundled component-library APIs. |
249
- | `NativeComponentPropMapper` | Generic mapper type used by the four host component adapter helpers. |
250
- | `NativeActionHandler` | Synchronous handler for a validated declared action. |
251
- | `NativeBindingChangeHandler` | Handler receiving a validated binding name and the next text value. |
252
- | `McpNativeActionDispatcherOptions` | Required action error callback and optional result callback. |
253
- | `NativeElement` / `NativeComponentName` | Serializable trusted-plan node and its fixed component-name union. |
254
-
255
- ## Current mappings
229
+ | Export | Purpose |
230
+ | ---------------------------------------- | -------------------------------------------------------------------------------------------------------- |
231
+ | `McpNativeSurface` | Mounts a validated surface using the host's component catalog. |
232
+ | `A2uiV1NativeSurface` | Mounts the supported v1 subset with local bindings and official action-envelope callbacks. |
233
+ | `useMcpNativeActionDispatcher` | Adapts asynchronous runtime dispatch into a stable event callback with required error handling. |
234
+ | `useNativeRenderPlan` | Memoizes a trusted render plan for a validated surface identity. |
235
+ | `createNativeRenderPlan` | Converts a validated `A2uiSurface` into a `NativeElement` tree. |
236
+ | `createA2uiV1NativeRenderPlan` | Revalidates and adapts the supported v1 subset into a trusted `NativeElement` tree. |
237
+ | `resolveA2uiV1NativeEvent` | Revalidates and resolves one reachable static or template-instance event against the latest local model. |
238
+ | `resolveA2uiV1NativeOpenUrl` | Revalidates and resolves one reachable HTTP(S) URL action against the latest local model. |
239
+ | `A2UI_V1_NATIVE_COMPONENT_NAMES` | Exact basic-catalog component names implemented by the current native adapter. |
240
+ | `getA2uiV1NativeSupportedComponentNames` | Exact advertisable intersection derived from installed slots and image-policy readiness. |
241
+ | `A2UI_V1_NATIVE_ICON_NAMES` | Pinned semantic names accepted by the native icon boundary. |
242
+ | `A2UI_V1_NATIVE_MAX_RENDER_NODES` | Bound on expanded v1 render-plan nodes. |
243
+ | `A2UI_V1_NATIVE_MAX_OPEN_URL_LENGTH` | Per-action bound on canonical HTTP(S) URL length. |
244
+ | `A2UI_V1_NATIVE_MAX_IMAGE_URL_LENGTH` | Per-image bound on canonical HTTP(S) URL length. |
245
+ | `A2UI_V1_NATIVE_MAX_IMAGES` | Surface-wide bound on reachable expanded image instances. |
246
+ | `A2UI_V1_NATIVE_MAX_TOTAL_IMAGE_BYTES` | Surface-wide bound on the sum of granted image transfer-byte budgets. |
247
+ | `A2UI_V1_NATIVE_MAX_TOTAL_IMAGE_PIXELS` | Surface-wide bound on the sum of granted decoded-pixel budgets. |
248
+ | `A2uiV1NativeEventDescriptor` | Resolved trusted-plan event data used by mounted dispatch or custom hosts. |
249
+ | `A2uiV1NativeOpenUrlDescriptor` | Canonical URL plus surface, component, and optional template-instance identity. |
250
+ | `A2uiV1NativeRenderPlanOptions` | Optional renderer-local model, BCP 47 locale, and required-when-used image policy. |
251
+ | `A2uiV1NativeEventResolutionOptions` | Optional template instance key and matching host-owned BCP 47 locale. |
252
+ | `A2uiV1NativeOpenUrlResolutionOptions` | Optional template instance key and matching host-owned BCP 47 locale for URL resolution. |
253
+ | `A2uiV1NativeActionHandler` | Host callback receiving the validated action envelope and, when opted in, the local data model. |
254
+ | `A2uiV1NativeOpenUrlPolicy` | Synchronous host predicate authorizing one canonical URL during its Button press. |
255
+ | `A2uiV1NativeOpenUrlHandler` | Host-owned callback that opens an authorized URL through a platform API. |
256
+ | `A2uiV1NativeImagePolicy` / `Grant` | Deny-by-default image authorization callback and exact resource budgets. |
257
+ | `NativeComponentCatalog` | Four required base primitives plus optional closed non-media host component slots. |
258
+ | `NativeComponentVariants` | Optional overrides for supported structure and pinned style hints, with base fallbacks. |
259
+ | `Native*Variant` types | Closed view, text, button, text-input, image, and choice-picker variant keys. |
260
+ | `NativeAccessibilityRole` | Renderer-derived closed role union for supported non-media semantics. |
261
+ | `NativeAccessibilityState` | Renderer-derived checked, disabled, expanded, and selected state subset. |
262
+ | `createNative*Adapter` helpers | Typed mappings from trusted semantic props into locally bundled component-library APIs. |
263
+ | `NativeComponentPropMapper` | Generic mapper type used by all host component adapter helpers. |
264
+ | `NativeActionHandler` | Synchronous handler for a validated declared action. |
265
+ | `NativeBindingChangeHandler` | Handler receiving a validated binding name and the next text value. |
266
+ | `McpNativeActionDispatcherOptions` | Required action error callback and optional result callback. |
267
+ | `NativeElement` / `NativeComponentName` | Serializable trusted-plan node and its fixed component-name union. |
268
+
269
+ ## Legacy `0.1` mappings
256
270
 
257
271
  | Surface node | Native component | Host props and event behavior |
258
272
  | ------------ | ---------------- | ----------------------------------------------------------------------------------------- |
@@ -1,7 +1,10 @@
1
1
  import { type ComponentType, type ReactNode } from "react";
2
- export type NativeAccessibilityRole = "button" | "text";
2
+ export type NativeAccessibilityRole = "adjustable" | "button" | "checkbox" | "image" | "radio" | "tab" | "text";
3
3
  export interface NativeAccessibilityState {
4
- readonly disabled: boolean;
4
+ readonly checked?: boolean;
5
+ readonly disabled?: boolean;
6
+ readonly expanded?: boolean;
7
+ readonly selected?: boolean;
5
8
  }
6
9
  export interface NativeAccessibilityProps {
7
10
  readonly accessible?: boolean;
@@ -50,6 +53,109 @@ export interface NativeTextInputComponentProps extends NativeAccessibilityProps
50
53
  readonly validationMessages?: readonly string[];
51
54
  readonly value?: string;
52
55
  }
56
+ export type NativeImageFit = "contain" | "cover" | "fill" | "none" | "scaleDown";
57
+ export type NativeImageVariant = "avatar" | "header" | "icon" | "largeFeature" | "mediumFeature" | "smallFeature";
58
+ export interface NativeImageResourcePolicy {
59
+ readonly allowedRedirectOrigins: readonly string[];
60
+ readonly cacheMode: "default" | "no-store";
61
+ readonly maximumBytes: number;
62
+ readonly maximumDecodedHeight: number;
63
+ readonly maximumDecodedPixels: number;
64
+ readonly maximumDecodedWidth: number;
65
+ readonly maximumRedirects: number;
66
+ }
67
+ export interface NativeImageComponentProps extends NativeAccessibilityProps {
68
+ readonly accessible: boolean;
69
+ readonly accessibilityLabel?: string;
70
+ readonly accessibilityRole: "image";
71
+ readonly fit: NativeImageFit;
72
+ readonly resourcePolicy: NativeImageResourcePolicy;
73
+ readonly uri: string;
74
+ }
75
+ export declare const A2UI_V1_NATIVE_ICON_NAMES: readonly ["accountCircle", "add", "arrowBack", "arrowForward", "attachFile", "calendarToday", "call", "camera", "check", "close", "delete", "download", "edit", "event", "error", "fastForward", "favorite", "favoriteOff", "folder", "help", "home", "info", "locationOn", "lock", "lockOpen", "mail", "menu", "moreVert", "moreHoriz", "notificationsOff", "notifications", "pause", "payment", "person", "phone", "photo", "play", "print", "refresh", "rewind", "search", "send", "settings", "share", "shoppingCart", "skipNext", "skipPrevious", "star", "starHalf", "starOff", "stop", "upload", "visibility", "visibilityOff", "volumeDown", "volumeMute", "volumeOff", "volumeUp", "warning"];
76
+ export type NativeIconName = (typeof A2UI_V1_NATIVE_ICON_NAMES)[number];
77
+ export interface NativeIconComponentProps extends NativeAccessibilityProps {
78
+ readonly accessible: boolean;
79
+ readonly accessibilityLabel?: string;
80
+ readonly accessibilityRole: "image";
81
+ readonly name: NativeIconName;
82
+ }
83
+ export interface NativeDividerComponentProps extends NativeAccessibilityProps {
84
+ readonly accessible: false;
85
+ readonly axis: "horizontal" | "vertical";
86
+ }
87
+ export interface NativeCheckBoxComponentProps extends NativeAccessibilityProps {
88
+ readonly accessible: boolean;
89
+ readonly accessibilityLabel: string;
90
+ readonly accessibilityRole: "checkbox";
91
+ readonly accessibilityState: NativeAccessibilityState;
92
+ readonly invalid?: boolean;
93
+ readonly label: string;
94
+ readonly onValueChange?: (value: boolean) => void;
95
+ readonly validationMessages?: readonly string[];
96
+ readonly value: boolean;
97
+ }
98
+ export type NativeChoicePickerVariant = "multipleSelection" | "mutuallyExclusive";
99
+ export type NativeChoicePickerDisplayStyle = "checkbox" | "chips";
100
+ export interface NativeChoicePickerOption {
101
+ readonly label: string;
102
+ readonly value: string;
103
+ }
104
+ export interface NativeChoicePickerComponentProps extends NativeAccessibilityProps {
105
+ readonly accessible: boolean;
106
+ readonly accessibilityLabel: string;
107
+ readonly displayStyle: NativeChoicePickerDisplayStyle;
108
+ readonly filterable: boolean;
109
+ readonly invalid?: boolean;
110
+ readonly label?: string;
111
+ readonly onValueChange?: (value: readonly string[]) => void;
112
+ readonly options: readonly NativeChoicePickerOption[];
113
+ readonly validationMessages?: readonly string[];
114
+ readonly value: readonly string[];
115
+ readonly variant: NativeChoicePickerVariant;
116
+ }
117
+ export interface NativeSliderComponentProps extends NativeAccessibilityProps {
118
+ readonly accessible: boolean;
119
+ readonly accessibilityLabel: string;
120
+ readonly accessibilityRole: "adjustable";
121
+ readonly invalid?: boolean;
122
+ readonly label?: string;
123
+ readonly maximumValue: number;
124
+ readonly minimumValue: number;
125
+ readonly onValueChange?: (value: number) => void;
126
+ readonly step?: number;
127
+ readonly validationMessages?: readonly string[];
128
+ readonly value: number;
129
+ }
130
+ export interface NativeDateTimeInputComponentProps extends NativeAccessibilityProps {
131
+ readonly accessible: boolean;
132
+ readonly accessibilityLabel: string;
133
+ readonly enableDate: boolean;
134
+ readonly enableTime: boolean;
135
+ readonly invalid?: boolean;
136
+ readonly label?: string;
137
+ readonly maximum?: string;
138
+ readonly minimum?: string;
139
+ readonly onValueChange?: (value: string) => void;
140
+ readonly validationMessages?: readonly string[];
141
+ readonly value: string;
142
+ }
143
+ export interface NativeTabItem {
144
+ readonly content: ReactNode;
145
+ readonly title: string;
146
+ }
147
+ export interface NativeTabsComponentProps extends NativeAccessibilityProps {
148
+ readonly accessible: boolean;
149
+ readonly onSelect: (index: number) => void;
150
+ readonly selectedIndex: number;
151
+ readonly tabs: readonly NativeTabItem[];
152
+ }
153
+ export interface NativeModalComponentProps extends NativeAccessibilityProps {
154
+ readonly content: ReactNode;
155
+ readonly onRequestClose: () => void;
156
+ readonly open: boolean;
157
+ readonly trigger: ReactNode;
158
+ }
53
159
  export type NativeViewVariant = "card" | "column" | "list" | "row";
54
160
  export type NativeTextVariant = "body" | "caption";
55
161
  export type NativeButtonVariant = "borderless" | "default" | "primary";
@@ -63,6 +169,8 @@ export interface NativeComponentVariants {
63
169
  readonly Text?: Partial<Record<NativeTextVariant, ComponentType<NativeTextComponentProps>>>;
64
170
  readonly Button?: Partial<Record<NativeButtonVariant, ComponentType<NativeButtonComponentProps>>>;
65
171
  readonly TextInput?: Partial<Record<NativeTextInputVariant, ComponentType<NativeTextInputComponentProps>>>;
172
+ readonly Image?: Partial<Record<NativeImageVariant, ComponentType<NativeImageComponentProps>>>;
173
+ readonly ChoicePicker?: Partial<Record<NativeChoicePickerVariant, ComponentType<NativeChoicePickerComponentProps>>>;
66
174
  }
67
175
  /** Locally bundled components chosen by the host application. */
68
176
  export interface NativeComponentCatalog {
@@ -70,6 +178,15 @@ export interface NativeComponentCatalog {
70
178
  readonly Text: ComponentType<NativeTextComponentProps>;
71
179
  readonly Button: ComponentType<NativeButtonComponentProps>;
72
180
  readonly TextInput: ComponentType<NativeTextInputComponentProps>;
181
+ readonly Image?: ComponentType<NativeImageComponentProps>;
182
+ readonly Icon?: ComponentType<NativeIconComponentProps>;
183
+ readonly Divider?: ComponentType<NativeDividerComponentProps>;
184
+ readonly CheckBox?: ComponentType<NativeCheckBoxComponentProps>;
185
+ readonly ChoicePicker?: ComponentType<NativeChoicePickerComponentProps>;
186
+ readonly Slider?: ComponentType<NativeSliderComponentProps>;
187
+ readonly DateTimeInput?: ComponentType<NativeDateTimeInputComponentProps>;
188
+ readonly Tabs?: ComponentType<NativeTabsComponentProps>;
189
+ readonly Modal?: ComponentType<NativeModalComponentProps>;
73
190
  /** Optional semantic/style variants; omitted entries fall back to the base primitive. */
74
191
  readonly variants?: NativeComponentVariants;
75
192
  }
@@ -83,4 +200,22 @@ export declare function createNativeTextAdapter<HostProps extends object>(compon
83
200
  export declare function createNativeButtonAdapter<HostProps extends object>(component: ComponentType<HostProps>, mapProps: NativeComponentPropMapper<NativeButtonComponentProps, HostProps>): ComponentType<NativeButtonComponentProps>;
84
201
  /** Adapts trusted MCP Native text-input props to a host design-system component. */
85
202
  export declare function createNativeTextInputAdapter<HostProps extends object>(component: ComponentType<HostProps>, mapProps: NativeComponentPropMapper<NativeTextInputComponentProps, HostProps>): ComponentType<NativeTextInputComponentProps>;
203
+ /** Adapts trusted MCP Native image props to a host image component. */
204
+ export declare function createNativeImageAdapter<HostProps extends object>(component: ComponentType<HostProps>, mapProps: NativeComponentPropMapper<NativeImageComponentProps, HostProps>): ComponentType<NativeImageComponentProps>;
205
+ /** Adapts a pinned semantic icon name to a host icon component. */
206
+ export declare function createNativeIconAdapter<HostProps extends object>(component: ComponentType<HostProps>, mapProps: NativeComponentPropMapper<NativeIconComponentProps, HostProps>): ComponentType<NativeIconComponentProps>;
207
+ /** Adapts a trusted divider axis to a host divider component. */
208
+ export declare function createNativeDividerAdapter<HostProps extends object>(component: ComponentType<HostProps>, mapProps: NativeComponentPropMapper<NativeDividerComponentProps, HostProps>): ComponentType<NativeDividerComponentProps>;
209
+ /** Adapts trusted checkbox props to a host checkbox component. */
210
+ export declare function createNativeCheckBoxAdapter<HostProps extends object>(component: ComponentType<HostProps>, mapProps: NativeComponentPropMapper<NativeCheckBoxComponentProps, HostProps>): ComponentType<NativeCheckBoxComponentProps>;
211
+ /** Adapts trusted choice-picker props to a host selection component. */
212
+ export declare function createNativeChoicePickerAdapter<HostProps extends object>(component: ComponentType<HostProps>, mapProps: NativeComponentPropMapper<NativeChoicePickerComponentProps, HostProps>): ComponentType<NativeChoicePickerComponentProps>;
213
+ /** Adapts trusted bounded slider props to a host slider component. */
214
+ export declare function createNativeSliderAdapter<HostProps extends object>(component: ComponentType<HostProps>, mapProps: NativeComponentPropMapper<NativeSliderComponentProps, HostProps>): ComponentType<NativeSliderComponentProps>;
215
+ /** Adapts trusted ISO date/time props to a host date/time component. */
216
+ export declare function createNativeDateTimeInputAdapter<HostProps extends object>(component: ComponentType<HostProps>, mapProps: NativeComponentPropMapper<NativeDateTimeInputComponentProps, HostProps>): ComponentType<NativeDateTimeInputComponentProps>;
217
+ /** Adapts trusted tab titles and rendered content to a host tabs component. */
218
+ export declare function createNativeTabsAdapter<HostProps extends object>(component: ComponentType<HostProps>, mapProps: NativeComponentPropMapper<NativeTabsComponentProps, HostProps>): ComponentType<NativeTabsComponentProps>;
219
+ /** Adapts trusted modal state and rendered regions to a host modal component. */
220
+ export declare function createNativeModalAdapter<HostProps extends object>(component: ComponentType<HostProps>, mapProps: NativeComponentPropMapper<NativeModalComponentProps, HostProps>): ComponentType<NativeModalComponentProps>;
86
221
  //# sourceMappingURL=component-adapters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"component-adapters.d.ts","sourceRoot":"","sources":["../src/component-adapters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1E,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAExD,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,2BAA2B,CAAC,EAAE,OAAO,CAAC;IAC/C,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,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,SAAS,CAAC,GACvE,aAAa,CAAC,wBAAwB,CAAC,CAEzC;AAED,iFAAiF;AACjF,wBAAgB,wBAAwB,CAAC,SAAS,SAAS,MAAM,EAC/D,SAAS,EAAE,aAAa,CAAC,SAAS,CAAC,EACnC,QAAQ,EAAE,yBAAyB,CAAC,yBAAyB,EAAE,SAAS,CAAC,GACxE,aAAa,CAAC,yBAAyB,CAAC,CAE1C"}
@@ -1,4 +1,65 @@
1
1
  import { createElement } from "react";
2
+ export const A2UI_V1_NATIVE_ICON_NAMES = Object.freeze([
3
+ "accountCircle",
4
+ "add",
5
+ "arrowBack",
6
+ "arrowForward",
7
+ "attachFile",
8
+ "calendarToday",
9
+ "call",
10
+ "camera",
11
+ "check",
12
+ "close",
13
+ "delete",
14
+ "download",
15
+ "edit",
16
+ "event",
17
+ "error",
18
+ "fastForward",
19
+ "favorite",
20
+ "favoriteOff",
21
+ "folder",
22
+ "help",
23
+ "home",
24
+ "info",
25
+ "locationOn",
26
+ "lock",
27
+ "lockOpen",
28
+ "mail",
29
+ "menu",
30
+ "moreVert",
31
+ "moreHoriz",
32
+ "notificationsOff",
33
+ "notifications",
34
+ "pause",
35
+ "payment",
36
+ "person",
37
+ "phone",
38
+ "photo",
39
+ "play",
40
+ "print",
41
+ "refresh",
42
+ "rewind",
43
+ "search",
44
+ "send",
45
+ "settings",
46
+ "share",
47
+ "shoppingCart",
48
+ "skipNext",
49
+ "skipPrevious",
50
+ "star",
51
+ "starHalf",
52
+ "starOff",
53
+ "stop",
54
+ "upload",
55
+ "visibility",
56
+ "visibilityOff",
57
+ "volumeDown",
58
+ "volumeMute",
59
+ "volumeOff",
60
+ "volumeUp",
61
+ "warning",
62
+ ]);
2
63
  function createComponentAdapter(primitiveName, component, mapProps) {
3
64
  function NativeComponentAdapter(props) {
4
65
  return createElement(component, mapProps(props));
@@ -23,4 +84,40 @@ export function createNativeButtonAdapter(component, mapProps) {
23
84
  export function createNativeTextInputAdapter(component, mapProps) {
24
85
  return createComponentAdapter("TextInput", component, mapProps);
25
86
  }
87
+ /** Adapts trusted MCP Native image props to a host image component. */
88
+ export function createNativeImageAdapter(component, mapProps) {
89
+ return createComponentAdapter("Image", component, mapProps);
90
+ }
91
+ /** Adapts a pinned semantic icon name to a host icon component. */
92
+ export function createNativeIconAdapter(component, mapProps) {
93
+ return createComponentAdapter("Icon", component, mapProps);
94
+ }
95
+ /** Adapts a trusted divider axis to a host divider component. */
96
+ export function createNativeDividerAdapter(component, mapProps) {
97
+ return createComponentAdapter("Divider", component, mapProps);
98
+ }
99
+ /** Adapts trusted checkbox props to a host checkbox component. */
100
+ export function createNativeCheckBoxAdapter(component, mapProps) {
101
+ return createComponentAdapter("CheckBox", component, mapProps);
102
+ }
103
+ /** Adapts trusted choice-picker props to a host selection component. */
104
+ export function createNativeChoicePickerAdapter(component, mapProps) {
105
+ return createComponentAdapter("ChoicePicker", component, mapProps);
106
+ }
107
+ /** Adapts trusted bounded slider props to a host slider component. */
108
+ export function createNativeSliderAdapter(component, mapProps) {
109
+ return createComponentAdapter("Slider", component, mapProps);
110
+ }
111
+ /** Adapts trusted ISO date/time props to a host date/time component. */
112
+ export function createNativeDateTimeInputAdapter(component, mapProps) {
113
+ return createComponentAdapter("DateTimeInput", component, mapProps);
114
+ }
115
+ /** Adapts trusted tab titles and rendered content to a host tabs component. */
116
+ export function createNativeTabsAdapter(component, mapProps) {
117
+ return createComponentAdapter("Tabs", component, mapProps);
118
+ }
119
+ /** Adapts trusted modal state and rendered regions to a host modal component. */
120
+ export function createNativeModalAdapter(component, mapProps) {
121
+ return createComponentAdapter("Modal", component, mapProps);
122
+ }
26
123
  //# sourceMappingURL=component-adapters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component-adapters.js","sourceRoot":"","sources":["../src/component-adapters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAsC,MAAM,OAAO,CAAC;AAuG1E,SAAS,sBAAsB,CAC7B,aAAuD,EACvD,SAAmC,EACnC,QAA4D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CAC9C,SAAmC,EACnC,QAAiF;IAEjF,OAAO,sBAAsB,CAAC,eAAe,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;AACtE,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,uBAAuB,CACrC,SAAmC,EACnC,QAAwE;IAExE,OAAO,sBAAsB,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;AAC7D,CAAC;AAED,iFAAiF;AACjF,MAAM,UAAU,wBAAwB,CACtC,SAAmC,EACnC,QAAyE;IAEzE,OAAO,sBAAsB,CAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;AAC9D,CAAC"}
package/dist/index.d.ts CHANGED
@@ -2,11 +2,17 @@ import type { A2uiSurface, A2uiV1ActionEnvelope, A2uiV1SurfaceState, A2uiV1Surfa
2
2
  import type { JsonObject, McpNativeAction, McpToolCallResult } from "@mcp-native/core";
3
3
  import { type ReactElement } from "react";
4
4
  import type { NativeComponentCatalog } from "./component-adapters.js";
5
- import { type A2uiV1NativeOpenUrlDescriptor } from "./v1.js";
6
- export { createNativeButtonAdapter, createNativeTextAdapter, createNativeTextInputAdapter, createNativeViewAdapter, } from "./component-adapters.js";
5
+ import { type A2uiV1NativeImagePolicy, type A2uiV1NativeOpenUrlDescriptor } from "./v1.js";
6
+ export { A2UI_V1_NATIVE_ICON_NAMES, createNativeButtonAdapter, createNativeCheckBoxAdapter, createNativeChoicePickerAdapter, createNativeDateTimeInputAdapter, createNativeDividerAdapter, createNativeIconAdapter, createNativeImageAdapter, createNativeModalAdapter, createNativeSliderAdapter, createNativeTabsAdapter, createNativeTextAdapter, createNativeTextInputAdapter, createNativeViewAdapter, } from "./component-adapters.js";
7
7
  export type { NativeComponentPropMapper } from "./component-adapters.js";
8
- export type { NativeAccessibilityProps, NativeAccessibilityRole, NativeAccessibilityState, NativeButtonComponentProps, NativeButtonVariant, NativeComponentCatalog, NativeComponentVariants, NativeTextComponentProps, NativeTextInputComponentProps, NativeTextInputVariant, NativeTextVariant, NativeViewComponentProps, NativeViewStyle, NativeViewVariant, } from "./component-adapters.js";
9
- export type NativeComponentName = "Button" | "Text" | "TextInput" | "View";
8
+ export type { NativeAccessibilityProps, NativeAccessibilityRole, NativeAccessibilityState, NativeButtonComponentProps, NativeButtonVariant, NativeCheckBoxComponentProps, NativeChoicePickerComponentProps, NativeChoicePickerDisplayStyle, NativeChoicePickerOption, NativeChoicePickerVariant, NativeComponentCatalog, NativeComponentVariants, NativeDateTimeInputComponentProps, NativeDividerComponentProps, NativeIconComponentProps, NativeIconName, NativeImageComponentProps, NativeImageFit, NativeImageResourcePolicy, NativeImageVariant, NativeModalComponentProps, NativeSliderComponentProps, NativeTabItem, NativeTabsComponentProps, NativeTextComponentProps, NativeTextInputComponentProps, NativeTextInputVariant, NativeTextVariant, NativeViewComponentProps, NativeViewStyle, NativeViewVariant, } from "./component-adapters.js";
9
+ export type NativeComponentName = "Button" | "CheckBox" | "ChoicePicker" | "DateTimeInput" | "Divider" | "Icon" | "Image" | "Modal" | "Slider" | "Tabs" | "Text" | "TextInput" | "View";
10
+ export interface A2uiV1NativeCatalogCapabilities {
11
+ /** Required before Image can be advertised as an installed capability. */
12
+ readonly imagePolicy?: A2uiV1NativeImagePolicy;
13
+ }
14
+ /** Returns the exact A2UI subset backed by one locally installed and policy-ready host catalog. */
15
+ export declare function getA2uiV1NativeSupportedComponentNames(components: NativeComponentCatalog, capabilities?: A2uiV1NativeCatalogCapabilities): readonly string[];
10
16
  /**
11
17
  * A serializable render plan. A React Native host maps these trusted component
12
18
  * names to locally bundled components; the MCP server never supplies code.
@@ -43,6 +49,8 @@ export interface A2uiV1NativeSurfaceProps {
43
49
  readonly openUrlPolicy?: A2uiV1NativeOpenUrlPolicy;
44
50
  /** Executes an authorized URL while the originating Button press is still active. */
45
51
  readonly onOpenUrl?: A2uiV1NativeOpenUrlHandler;
52
+ /** Required when the reachable surface contains an Image component. */
53
+ readonly imagePolicy?: A2uiV1NativeImagePolicy;
46
54
  /** Observes renderer-local state changes without turning keystrokes into network calls. */
47
55
  readonly onDataModelChange?: (dataModel: JsonObject) => void;
48
56
  readonly actionMetadata?: JsonObject;
@@ -74,7 +82,7 @@ export declare function McpNativeSurface({ surface, components, onAction, onBind
74
82
  * Mounts the supported A2UI v1 subset with renderer-local two-way bindings.
75
83
  * Agent events are resolved against the latest local model at press time.
76
84
  */
77
- export declare function A2uiV1NativeSurface({ surface, policy, components, onAction, openUrlPolicy, onOpenUrl, onDataModelChange, actionMetadata, locale, now, }: A2uiV1NativeSurfaceProps): ReactElement;
78
- export { A2UI_V1_NATIVE_COMPONENT_NAMES, A2UI_V1_NATIVE_MAX_OPEN_URL_LENGTH, A2UI_V1_NATIVE_MAX_RENDER_NODES, createA2uiV1NativeRenderPlan, resolveA2uiV1NativeEvent, resolveA2uiV1NativeOpenUrl, } from "./v1.js";
79
- export type { A2uiV1NativeEventDescriptor, A2uiV1NativeEventResolutionOptions, A2uiV1NativeOpenUrlDescriptor, A2uiV1NativeOpenUrlResolutionOptions, A2uiV1NativeRenderPlanOptions, } from "./v1.js";
85
+ export declare function A2uiV1NativeSurface({ surface, policy, components, onAction, openUrlPolicy, onOpenUrl, imagePolicy, onDataModelChange, actionMetadata, locale, now, }: A2uiV1NativeSurfaceProps): ReactElement;
86
+ export { A2UI_V1_NATIVE_COMPONENT_NAMES, A2UI_V1_NATIVE_MAX_CHOICE_OPTIONS, A2UI_V1_NATIVE_MAX_IMAGE_BYTES, A2UI_V1_NATIVE_MAX_IMAGE_DIMENSION, A2UI_V1_NATIVE_MAX_IMAGE_PIXELS, A2UI_V1_NATIVE_MAX_IMAGE_REDIRECT_ORIGINS, A2UI_V1_NATIVE_MAX_IMAGE_REDIRECTS, A2UI_V1_NATIVE_MAX_IMAGE_URL_LENGTH, A2UI_V1_NATIVE_MAX_IMAGES, A2UI_V1_NATIVE_MAX_OPEN_URL_LENGTH, A2UI_V1_NATIVE_MAX_RENDER_NODES, A2UI_V1_NATIVE_MAX_TOTAL_IMAGE_BYTES, A2UI_V1_NATIVE_MAX_TOTAL_IMAGE_PIXELS, createA2uiV1NativeRenderPlan, resolveA2uiV1NativeEvent, resolveA2uiV1NativeOpenUrl, } from "./v1.js";
87
+ export type { A2uiV1NativeEventDescriptor, A2uiV1NativeEventResolutionOptions, A2uiV1NativeImagePolicy, A2uiV1NativeImageGrant, A2uiV1NativeImageRequest, A2uiV1NativeOpenUrlDescriptor, A2uiV1NativeOpenUrlResolutionOptions, A2uiV1NativeRenderPlanOptions, } from "./v1.js";
80
88
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,WAAW,EACX,oBAAoB,EACpB,kBAAkB,EAClB,6BAA6B,EAC9B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,UAAU,EAAa,eAAe,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAClG,OAAO,EAQL,KAAK,YAAY,EAClB,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAGV,sBAAsB,EAMvB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAOL,KAAK,6BAA6B,EACnC,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,GACxB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACzE,YAAY,EACV,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,0BAA0B,EAC1B,mBAAmB,EACnB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,6BAA6B,EAC7B,sBAAsB,EACtB,iBAAiB,EACjB,wBAAwB,EACxB,eAAe,EACf,iBAAiB,GAClB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG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