@copilotkit/react-core 2.0.0-rc.42 → 2.0.0-rc.44

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 (91) hide show
  1. package/dist/{MarkdownRendererContext-BL8ct_3U.d.mts → MarkdownRendererContext-QFCldfW_.d.cts} +1 -1
  2. package/dist/{MarkdownRendererContext-BL8ct_3U.d.mts.map → MarkdownRendererContext-QFCldfW_.d.cts.map} +1 -1
  3. package/dist/{MarkdownRendererContext-C2J_lgqF.d.cts → MarkdownRendererContext-aK63ZFd-.d.mts} +1 -1
  4. package/dist/{MarkdownRendererContext-C2J_lgqF.d.cts.map → MarkdownRendererContext-aK63ZFd-.d.mts.map} +1 -1
  5. package/dist/MarkdownSurfaces-Do948N1P.cjs +141 -0
  6. package/dist/MarkdownSurfaces-Do948N1P.cjs.map +1 -0
  7. package/dist/MarkdownSurfaces-rtE9wRUP.mjs +135 -0
  8. package/dist/MarkdownSurfaces-rtE9wRUP.mjs.map +1 -0
  9. package/dist/{MarkdownSurfaces-D2Ck-cbb.cjs → ProviderMarkdown-D0eI0aPo.cjs} +26 -136
  10. package/dist/ProviderMarkdown-D0eI0aPo.cjs.map +1 -0
  11. package/dist/{MarkdownSurfaces-Byz821bg.mjs → ProviderMarkdown-epL7F3Vt.mjs} +22 -132
  12. package/dist/ProviderMarkdown-epL7F3Vt.mjs.map +1 -0
  13. package/dist/accessibility-BLK-gE0R.mjs +129 -0
  14. package/dist/accessibility-BLK-gE0R.mjs.map +1 -0
  15. package/dist/accessibility-GnodqxkH.cjs +228 -0
  16. package/dist/accessibility-GnodqxkH.cjs.map +1 -0
  17. package/dist/{chat-Bf0vVdo7.mjs → chat-B1zczXUD.mjs} +21 -145
  18. package/dist/chat-B1zczXUD.mjs.map +1 -0
  19. package/dist/chat-BZ_bvAkg.d.mts +38 -0
  20. package/dist/chat-BZ_bvAkg.d.mts.map +1 -0
  21. package/dist/{chat-D3fxo6Ah.cjs → chat-CkFZMo5E.cjs} +29 -234
  22. package/dist/chat-CkFZMo5E.cjs.map +1 -0
  23. package/dist/chat-CpZVyF_t.d.cts +38 -0
  24. package/dist/chat-CpZVyF_t.d.cts.map +1 -0
  25. package/dist/context.cjs +2 -2
  26. package/dist/context.cjs.map +1 -1
  27. package/dist/context.d.cts +2 -2
  28. package/dist/context.d.mts +2 -2
  29. package/dist/context.mjs +2 -2
  30. package/dist/context.mjs.map +1 -1
  31. package/dist/generative-ui/map.cjs +26 -0
  32. package/dist/generative-ui/map.cjs.map +1 -0
  33. package/dist/generative-ui/map.d.cts +23 -0
  34. package/dist/generative-ui/map.d.cts.map +1 -0
  35. package/dist/generative-ui/map.d.mts +23 -0
  36. package/dist/generative-ui/map.d.mts.map +1 -0
  37. package/dist/generative-ui/map.mjs +24 -0
  38. package/dist/generative-ui/map.mjs.map +1 -0
  39. package/dist/generative-ui/native.cjs +9 -8
  40. package/dist/generative-ui/native.cjs.map +1 -1
  41. package/dist/generative-ui/native.d.cts +3 -2
  42. package/dist/generative-ui/native.d.cts.map +1 -1
  43. package/dist/generative-ui/native.d.mts +3 -2
  44. package/dist/generative-ui/native.d.mts.map +1 -1
  45. package/dist/generative-ui/native.mjs +4 -3
  46. package/dist/generative-ui/native.mjs.map +1 -1
  47. package/dist/generative-ui.cjs +11 -5767
  48. package/dist/generative-ui.cjs.map +1 -1
  49. package/dist/generative-ui.d.cts +5 -4
  50. package/dist/generative-ui.d.cts.map +1 -1
  51. package/dist/generative-ui.d.mts +6 -5
  52. package/dist/generative-ui.d.mts.map +1 -1
  53. package/dist/generative-ui.mjs +8 -5764
  54. package/dist/generative-ui.mjs.map +1 -1
  55. package/dist/{hooks-BRYonCVu.d.mts → hooks-D2H3iL0N.d.mts} +3 -3
  56. package/dist/{hooks-BRYonCVu.d.mts.map → hooks-D2H3iL0N.d.mts.map} +1 -1
  57. package/dist/{hooks-2Ur8NQhj.d.cts → hooks-Dy8HeEdr.d.cts} +2 -2
  58. package/dist/{hooks-2Ur8NQhj.d.cts.map → hooks-Dy8HeEdr.d.cts.map} +1 -1
  59. package/dist/index.cjs +183 -700
  60. package/dist/index.cjs.map +1 -1
  61. package/dist/index.d.cts +11 -103
  62. package/dist/index.d.cts.map +1 -1
  63. package/dist/index.d.mts +11 -103
  64. package/dist/index.d.mts.map +1 -1
  65. package/dist/index.mjs +66 -425
  66. package/dist/index.mjs.map +1 -1
  67. package/dist/index.umd.js +6157 -799
  68. package/dist/index.umd.js.map +1 -1
  69. package/dist/{refs-BIUfn1wb.cjs → refs-B5Dn59Pn.cjs} +2 -2
  70. package/dist/{refs-BIUfn1wb.cjs.map → refs-B5Dn59Pn.cjs.map} +1 -1
  71. package/dist/{refs-CMrRm3ta.mjs → refs-BW15wX_V.mjs} +1 -1
  72. package/dist/{refs-CMrRm3ta.mjs.map → refs-BW15wX_V.mjs.map} +1 -1
  73. package/dist/{chat-DgP2N7bD.d.mts → runtime-context-B7f4M85q.d.mts} +21 -39
  74. package/dist/runtime-context-B7f4M85q.d.mts.map +1 -0
  75. package/dist/{chat-DtHs4alO.d.cts → runtime-context-CIkZS0ap.d.cts} +21 -39
  76. package/dist/runtime-context-CIkZS0ap.d.cts.map +1 -0
  77. package/dist/standard-CSBR4FhM.mjs +5800 -0
  78. package/dist/standard-CSBR4FhM.mjs.map +1 -0
  79. package/dist/standard-DBjcBGyd.cjs +5796 -0
  80. package/dist/standard-DBjcBGyd.cjs.map +1 -0
  81. package/dist/{use-generative-ui-root-C12htqbK.cjs → use-generative-ui-root-CIp0ytE6.cjs} +3 -3
  82. package/dist/{use-generative-ui-root-C12htqbK.cjs.map → use-generative-ui-root-CIp0ytE6.cjs.map} +1 -1
  83. package/dist/{use-generative-ui-root-CVgsDy1f.mjs → use-generative-ui-root-oBqPa6uy.mjs} +3 -2
  84. package/dist/{use-generative-ui-root-CVgsDy1f.mjs.map → use-generative-ui-root-oBqPa6uy.mjs.map} +1 -1
  85. package/package.json +14 -10
  86. package/dist/MarkdownSurfaces-Byz821bg.mjs.map +0 -1
  87. package/dist/MarkdownSurfaces-D2Ck-cbb.cjs.map +0 -1
  88. package/dist/chat-Bf0vVdo7.mjs.map +0 -1
  89. package/dist/chat-D3fxo6Ah.cjs.map +0 -1
  90. package/dist/chat-DgP2N7bD.d.mts.map +0 -1
  91. package/dist/chat-DtHs4alO.d.cts.map +0 -1
@@ -0,0 +1,24 @@
1
+ "use client";
2
+
3
+ //#region src/generative-ui/map.ts
4
+ /**
5
+ * Experimental. Draws the standard `Map` component with MapLibre GL. The
6
+ * library loads in its own chunk the first time a map renders. Without it,
7
+ * Map shows its markers as a list. Add `maplibre-gl` to the app.
8
+ *
9
+ * Map adds the few maplibre-gl styles that markers and popups need, so the
10
+ * app does not import `maplibre-gl.css`.
11
+ *
12
+ * @example
13
+ * ```tsx
14
+ * import { standardUI } from "@copilotkit/react-core/generative-ui";
15
+ * import { loadMapLibre } from "@copilotkit/react-core/generative-ui/map";
16
+ *
17
+ * <CopilotKitProvider generativeUI={{ ui: standardUI, map: loadMapLibre }} />
18
+ * ```
19
+ */
20
+ const loadMapLibre = () => import("maplibre-gl");
21
+
22
+ //#endregion
23
+ export { loadMapLibre };
24
+ //# sourceMappingURL=map.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map.mjs","names":[],"sources":["../../src/generative-ui/map.ts"],"sourcesContent":["\"use client\";\n\n// The `@copilotkit/react-core/generative-ui/map` entry. It is the only module\n// that imports `maplibre-gl`, so an app that does not import this entry\n// builds without the package.\nimport type { GenerativeUILibraryLoader } from \"./runtime-context\";\n\n/**\n * Experimental. Draws the standard `Map` component with MapLibre GL. The\n * library loads in its own chunk the first time a map renders. Without it,\n * Map shows its markers as a list. Add `maplibre-gl` to the app.\n *\n * Map adds the few maplibre-gl styles that markers and popups need, so the\n * app does not import `maplibre-gl.css`.\n *\n * @example\n * ```tsx\n * import { standardUI } from \"@copilotkit/react-core/generative-ui\";\n * import { loadMapLibre } from \"@copilotkit/react-core/generative-ui/map\";\n *\n * <CopilotKitProvider generativeUI={{ ui: standardUI, map: loadMapLibre }} />\n * ```\n */\nexport const loadMapLibre: GenerativeUILibraryLoader = () =>\n import(\"maplibre-gl\");\n\nexport type { GenerativeUILibraryLoader } from \"./runtime-context\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAuBA,MAAa,qBACX,OAAO"}
@@ -1,7 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_chat = require('../chat-D3fxo6Ah.cjs');
3
- const require_use_generative_ui_root = require('../use-generative-ui-root-C12htqbK.cjs');
4
- const require_refs = require('../refs-BIUfn1wb.cjs');
2
+ const require_accessibility = require('../accessibility-GnodqxkH.cjs');
3
+ const require_chat = require('../chat-CkFZMo5E.cjs');
4
+ const require_use_generative_ui_root = require('../use-generative-ui-root-CIp0ytE6.cjs');
5
+ const require_refs = require('../refs-B5Dn59Pn.cjs');
5
6
  let _copilotkit_shared_generative_ui = require("@copilotkit/shared/generative-ui");
6
7
  let _copilotkit_core_generative_ui = require("@copilotkit/core/generative-ui");
7
8
 
@@ -29,7 +30,7 @@ Object.defineProperty(exports, 'GenerativeUIError', {
29
30
  }
30
31
  });
31
32
  exports.GenerativeUIHostContext = require_chat.GenerativeUIHostContext;
32
- exports.GenerativeUIRuntimeContext = require_chat.GenerativeUIRuntimeContext;
33
+ exports.GenerativeUIRuntimeContext = require_accessibility.GenerativeUIRuntimeContext;
33
34
  Object.defineProperty(exports, 'GenerativeUISurfaceContentSchema', {
34
35
  enumerable: true,
35
36
  get: function () {
@@ -40,7 +41,7 @@ exports.GenerativeUIToolCallRenderer = require_chat.GenerativeUIToolCallRenderer
40
41
  exports.SurfaceView = require_chat.SurfaceView;
41
42
  exports.child = require_refs.child;
42
43
  exports.childList = require_refs.childList;
43
- exports.createGenerativeUI = require_chat.createGenerativeUI;
44
+ exports.createGenerativeUI = require_accessibility.createGenerativeUI;
44
45
  Object.defineProperty(exports, 'exportA2UICatalog', {
45
46
  enumerable: true,
46
47
  get: function () {
@@ -53,14 +54,14 @@ Object.defineProperty(exports, 'parseGenerativeUISurfaceContent', {
53
54
  return _copilotkit_core_generative_ui.parseGenerativeUISurfaceContent;
54
55
  }
55
56
  });
56
- exports.useGenerativeUIAccessibility = require_chat.useGenerativeUIAccessibility;
57
+ exports.useGenerativeUIAccessibility = require_accessibility.useGenerativeUIAccessibility;
57
58
  exports.useGenerativeUIActivitySurface = require_chat.useGenerativeUIActivitySurface;
58
59
  exports.useGenerativeUIFunction = require_chat.useGenerativeUIFunction;
59
60
  exports.useGenerativeUIHost = require_chat.useGenerativeUIHost;
60
61
  exports.useGenerativeUIRejected = require_chat.useGenerativeUIRejected;
61
62
  exports.useGenerativeUIRoot = useGenerativeUIRoot;
62
- exports.useGenerativeUIRuntime = require_chat.useGenerativeUIRuntime;
63
+ exports.useGenerativeUIRuntime = require_accessibility.useGenerativeUIRuntime;
63
64
  exports.useGenerativeUIState = require_chat.useGenerativeUIState;
64
65
  exports.useManagerVersion = require_chat.useManagerVersion;
65
- exports.useRequiredGenerativeUIRuntime = require_chat.useRequiredGenerativeUIRuntime;
66
+ exports.useRequiredGenerativeUIRuntime = require_accessibility.useRequiredGenerativeUIRuntime;
66
67
  //# sourceMappingURL=native.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"native.cjs","names":["useGenerativeUIRootImpl"],"sources":["../../src/generative-ui/native.ts"],"sourcesContent":["// The `@copilotkit/react-core/generative-ui/native` entry: generative UI\n// without the DOM. It has the catalog API, the hooks and the surface\n// renderer, and leaves out what only a browser can run: the standard\n// catalog (DOM components, portals, KaTeX), the markdown surfaces\n// (streamdown) and the DOM `<GenerativeUISurface>` mount. A platform gives\n// its host elements through `GenerativeUIHostContext`. That context defaults\n// to the DOM host, which renders HTML elements, so a platform\n// without a DOM MUST provide its own host above every surface it renders.\n// Nothing checks that it did: without one, on React Native, the `<div>` of\n// the surface root fails to render, the surface fallback (a `<div>` too)\n// fails as well, and the surface renders nothing; only the reported errors\n// show it. `@copilotkit/react-native/generative-ui` is built on this entry,\n// and its `GenerativeUIProvider` provides the native host.\n//\n// It is built together with the root entry and `/generative-ui`, so the three\n// entries share one copy of each React context.\n\n// The catalog API, as in `/generative-ui`.\nexport { createGenerativeUI } from \"./catalog\";\nexport type {\n CreateGenerativeUIConfig,\n GenerativeUI,\n GenerativeUIComponentDefinition,\n GenerativeUIComponentName,\n GenerativeUIComponentProps,\n GenerativeUIEventDefinition,\n GenerativeUIFunctionArgs,\n GenerativeUIFunctionDefinition,\n GenerativeUIFunctionInput,\n GenerativeUIFunctionName,\n GenerativeUISlotKind,\n GenerativeUIStateOf,\n} from \"./catalog\";\nexport { child, childList } from \"./refs\";\nexport { exportA2UICatalog } from \"@copilotkit/shared/generative-ui\";\nexport type { ExportA2UICatalogOptions } from \"@copilotkit/shared/generative-ui\";\nexport { useGenerativeUIAccessibility } from \"./accessibility\";\nexport type {\n GenerativeUIAccessibility,\n GenerativeUIAriaAttributes,\n} from \"./accessibility\";\nexport { GenerativeUIError } from \"@copilotkit/shared/generative-ui\";\nexport type {\n GenerativeUIErrorCode,\n GenerativeUIErrorInfo,\n GenerativeUIEventHandler,\n GenerativeUIInvokeResult,\n} from \"@copilotkit/shared/generative-ui\";\nexport type {\n GenerativeUIConfig,\n GenerativeUIErrorBoundaryConfig,\n GenerativeUIMarkdownConfig,\n GenerativeUITheme,\n GenerativeUIToolConfig,\n} from \"./runtime-context\";\nexport { useGenerativeUIRuntime } from \"./runtime-context\";\nexport { useGenerativeUIFunction, useGenerativeUIState } from \"./hooks\";\n\n// The plumbing that a platform package uses to build its provider and\n// surfaces.\nimport { useGenerativeUIRoot as useGenerativeUIRootImpl } from \"./use-generative-ui-root\";\nimport type { CopilotKitCoreReact } from \"../context\";\nimport type {\n GenerativeUIConfig,\n GenerativeUIRuntime,\n} from \"./runtime-context\";\n/**\n * Provider-side wiring: the surface manager, the agent subscriptions and the\n * envelope of each run. Typed with the `CopilotKitCoreReact` of\n * `/context`, which is the instance a React Native provider holds.\n *\n * In source it is the same class that `use-generative-ui-root.ts` imports\n * from `../lib/react-core`, so no cast is needed. The annotation is for the\n * emitted declarations: `../context` is external to the build, so they import\n * the class from `@copilotkit/react-core/context`. Re-exported as is, the\n * hook would be declared with a copy of the class from a bundled chunk, which\n * the `/context` instance is not assignable to (the class has private\n * members). `scripts/assert-dist-context-types.mjs` checks this.\n */\nexport const useGenerativeUIRoot: (\n copilotkit: CopilotKitCoreReact,\n config: GenerativeUIConfig | undefined,\n) => GenerativeUIRuntime | null = useGenerativeUIRootImpl;\nexport {\n GenerativeUIRuntimeContext,\n useRequiredGenerativeUIRuntime,\n} from \"./runtime-context\";\nexport type { GenerativeUIRuntime } from \"./runtime-context\";\nexport { useManagerVersion } from \"./hooks\";\nexport { SurfaceView } from \"./SurfaceView\";\nexport { GenerativeUIToolCallRenderer } from \"./chat\";\nexport {\n GenerativeUISurfaceContentSchema,\n parseGenerativeUISurfaceContent,\n useGenerativeUIActivitySurface,\n useGenerativeUIRejected,\n} from \"./activity\";\nexport type { ParsedGenerativeUISurfaceContent } from \"./activity\";\nexport type { GenerativeUIChatSurfaceProps } from \"./chat\";\nexport { GenerativeUIHostContext, useGenerativeUIHost } from \"./host\";\nexport type {\n GenerativeUIAccessibilityWrapperProps,\n GenerativeUIHost,\n GenerativeUINodeFallbackProps,\n GenerativeUISurfaceRootProps,\n} from \"./host\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA+EA,MAAa,sBAGqBA"}
1
+ {"version":3,"file":"native.cjs","names":["useGenerativeUIRootImpl"],"sources":["../../src/generative-ui/native.ts"],"sourcesContent":["// The `@copilotkit/react-core/generative-ui/native` entry: generative UI\n// without the DOM. It has the catalog API, the hooks and the surface\n// renderer, and leaves out what only a browser can run: the standard\n// catalog (DOM components, portals, KaTeX), the markdown surfaces\n// (streamdown) and the DOM `<GenerativeUISurface>` mount. A platform gives\n// its host elements through `GenerativeUIHostContext`. That context defaults\n// to the DOM host, which renders HTML elements, so a platform\n// without a DOM MUST provide its own host above every surface it renders.\n// Nothing checks that it did: without one, on React Native, the `<div>` of\n// the surface root fails to render, the surface fallback (a `<div>` too)\n// fails as well, and the surface renders nothing; only the reported errors\n// show it. `@copilotkit/react-native/generative-ui` is built on this entry,\n// and its `GenerativeUIProvider` provides the native host.\n//\n// It is built together with the root entry and `/generative-ui`, so the three\n// entries share one copy of each React context.\n\n// The catalog API, as in `/generative-ui`.\nexport { createGenerativeUI } from \"./catalog\";\nexport type {\n CreateGenerativeUIConfig,\n GenerativeUI,\n GenerativeUIComponentDefinition,\n GenerativeUIComponentName,\n GenerativeUIComponentProps,\n GenerativeUIEventDefinition,\n GenerativeUIFunctionArgs,\n GenerativeUIFunctionDefinition,\n GenerativeUIFunctionInput,\n GenerativeUIFunctionName,\n GenerativeUISlotKind,\n GenerativeUIStateOf,\n} from \"./catalog\";\nexport { child, childList } from \"./refs\";\nexport { exportA2UICatalog } from \"@copilotkit/shared/generative-ui\";\nexport type { ExportA2UICatalogOptions } from \"@copilotkit/shared/generative-ui\";\nexport { useGenerativeUIAccessibility } from \"./accessibility\";\nexport type {\n GenerativeUIAccessibility,\n GenerativeUIAriaAttributes,\n} from \"./accessibility\";\nexport { GenerativeUIError } from \"@copilotkit/shared/generative-ui\";\nexport type {\n GenerativeUIErrorCode,\n GenerativeUIErrorInfo,\n GenerativeUIEventHandler,\n GenerativeUIInvokeResult,\n} from \"@copilotkit/shared/generative-ui\";\nexport type {\n GenerativeUIConfig,\n GenerativeUIErrorBoundaryConfig,\n GenerativeUIMarkdownConfig,\n GenerativeUITheme,\n GenerativeUIToolConfig,\n} from \"./runtime-context\";\nexport { useGenerativeUIRuntime } from \"./runtime-context\";\nexport { useGenerativeUIFunction, useGenerativeUIState } from \"./hooks\";\n\n// The plumbing that a platform package uses to build its provider and\n// surfaces.\nimport { useGenerativeUIRoot as useGenerativeUIRootImpl } from \"./use-generative-ui-root\";\nimport type { CopilotKitCoreReact } from \"../context\";\nimport type {\n GenerativeUIConfig,\n GenerativeUIRuntime,\n} from \"./runtime-context\";\n/**\n * Provider-side wiring: the surface manager, the agent subscriptions and the\n * envelope of each run. Typed with the `CopilotKitCoreReact` of\n * `/context`, which is the instance a React Native provider holds.\n *\n * In source it is the same class that `use-generative-ui-root.ts` imports\n * from `../lib/react-core`, so no cast is needed. The annotation is for the\n * emitted declarations: `../context` is external to the build, so they import\n * the class from `@copilotkit/react-core/context`. Re-exported as is, the\n * hook would be declared with a copy of the class from a bundled chunk, which\n * the `/context` instance is not assignable to (the class has private\n * members). `scripts/assert-dist-context-types.mjs` checks this.\n */\nexport const useGenerativeUIRoot: (\n copilotkit: CopilotKitCoreReact,\n config: GenerativeUIConfig | undefined,\n) => GenerativeUIRuntime | null = useGenerativeUIRootImpl;\nexport {\n GenerativeUIRuntimeContext,\n useRequiredGenerativeUIRuntime,\n} from \"./runtime-context\";\nexport type { GenerativeUIRuntime } from \"./runtime-context\";\nexport { useManagerVersion } from \"./hooks\";\nexport { SurfaceView } from \"./SurfaceView\";\nexport { GenerativeUIToolCallRenderer } from \"./chat\";\nexport {\n GenerativeUISurfaceContentSchema,\n parseGenerativeUISurfaceContent,\n useGenerativeUIActivitySurface,\n useGenerativeUIRejected,\n} from \"./activity\";\nexport type { ParsedGenerativeUISurfaceContent } from \"./activity\";\nexport type { GenerativeUIChatSurfaceProps } from \"./chat\";\nexport { GenerativeUIHostContext, useGenerativeUIHost } from \"./host\";\nexport type {\n GenerativeUIAccessibilityWrapperProps,\n GenerativeUIHost,\n GenerativeUINodeFallbackProps,\n GenerativeUISurfaceRootProps,\n} from \"./host\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA+EA,MAAa,sBAGqBA"}
@@ -1,5 +1,6 @@
1
- import { A as createGenerativeUI, C as GenerativeUIEventDefinition, D as GenerativeUIFunctionName, E as GenerativeUIFunctionInput, O as GenerativeUISlotKind, T as GenerativeUIFunctionDefinition, _ as CreateGenerativeUIConfig, a as GenerativeUIConfig, b as GenerativeUIComponentName, c as GenerativeUIRuntime, d as GenerativeUIToolConfig, f as useGenerativeUIRuntime, g as useGenerativeUIAccessibility, h as GenerativeUIAriaAttributes, k as GenerativeUIStateOf, l as GenerativeUIRuntimeContext, m as GenerativeUIAccessibility, n as GenerativeUIChatSurfaceProps, o as GenerativeUIErrorBoundaryConfig, p as useRequiredGenerativeUIRuntime, r as GenerativeUIToolCallRenderer, s as GenerativeUIMarkdownConfig, u as GenerativeUITheme, v as GenerativeUI, w as GenerativeUIFunctionArgs, x as GenerativeUIComponentProps, y as GenerativeUIComponentDefinition } from "../chat-DtHs4alO.cjs";
2
- import { a as childList, i as child, n as useGenerativeUIState, r as useManagerVersion, t as useGenerativeUIFunction } from "../hooks-2Ur8NQhj.cjs";
1
+ import { C as GenerativeUIFunctionInput, D as createGenerativeUI, E as GenerativeUIStateOf, S as GenerativeUIFunctionDefinition, T as GenerativeUISlotKind, _ as GenerativeUIComponentName, a as GenerativeUIRuntime, b as GenerativeUIEventDefinition, c as GenerativeUIToolConfig, d as GenerativeUIAccessibility, f as GenerativeUIAriaAttributes, g as GenerativeUIComponentDefinition, h as GenerativeUI, i as GenerativeUIMarkdownConfig, l as useGenerativeUIRuntime, m as CreateGenerativeUIConfig, n as GenerativeUIErrorBoundaryConfig, o as GenerativeUIRuntimeContext, p as useGenerativeUIAccessibility, s as GenerativeUITheme, t as GenerativeUIConfig, u as useRequiredGenerativeUIRuntime, v as GenerativeUIComponentProps, w as GenerativeUIFunctionName, x as GenerativeUIFunctionArgs } from "../runtime-context-CIkZS0ap.cjs";
2
+ import { a as childList, i as child, n as useGenerativeUIState, r as useManagerVersion, t as useGenerativeUIFunction } from "../hooks-Dy8HeEdr.cjs";
3
+ import { n as GenerativeUIChatSurfaceProps, r as GenerativeUIToolCallRenderer } from "../chat-CpZVyF_t.cjs";
3
4
  import React, { ComponentType, ReactNode } from "react";
4
5
  import { ExportA2UICatalogOptions, GenerativeUIError, GenerativeUIErrorCode, GenerativeUIErrorInfo, GenerativeUIEventHandler, GenerativeUIInvokeResult, exportA2UICatalog } from "@copilotkit/shared/generative-ui";
5
6
  import { GenerativeUISurfaceContentSchema, ManagedSurface, ParsedGenerativeUISurfaceContent, parseGenerativeUISurfaceContent } from "@copilotkit/core/generative-ui";
@@ -1 +1 @@
1
- {"version":3,"file":"native.d.cts","names":[],"sources":["../../src/generative-ui/SurfaceView.tsx","../../src/generative-ui/activity.ts","../../src/generative-ui/host.tsx","../../src/generative-ui/native.ts"],"mappings":";;;;;;;;;;iBAgGgB,WAAA,CAAA;EAAc;AAAA;EAAa,OAAA,EAAS,cAAA;AAAA,IAAgB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;AAApE;;;iBCxEgB,uBAAA,CACd,cAAA,WAAyB,6BAAA,gBACzB,cAAA,WAAyB,6BAAA;EACtB,QAAA,EAAU,6BAAA;EAAiC,KAAA,EAAO,KAAA;AAAA;;;;;;;;;;;;;AAHvD;iBAoCgB,8BAAA,CAAA;EACd,OAAA;EACA,QAAA;EACA,OAAA;EACA,OAAA;EACA;AAAA;EAEA,OAAA,EAAS,mBAAA;EACT,QAAA;EACA,OAAA,sBA1Ca;EA4Cb,OAAA,EAAS,0BAAA,cA5CiD;EA8C1D,MAAA;AAAA;EAEA,OAAA,EAAS,cAAA;EACT,QAAA,EAAU,6BAAA;EACV,KAAA,EAAO,KAAA;AAAA;;;;UCtEQ,4BAAA;EACf,SAAA;;EAEA,KAAA,EAAO,iBAAA;EACP,QAAA,EAAU,SAAA;AAAA;;UAIK,qCAAA;EFiFa;;;;;EE3E5B,UAAA,EAAY,IAAA,CAAK,0BAAA;EACjB,QAAA,EAAU,SAAA;AAAA;;UAIK,6BAAA;EACf,OAAA;EFqEkE;;;;;ACxEpE;ECUE,WAAA;;EAEA,KAAA;AAAA;;;;;;;;;;;;;;;ADwBF;UCNiB,gBAAA;;EAEf,WAAA,EAAa,aAAA,CAAc,4BAAA;EDM3B;;;;;;;;ECGA,oBAAA,EAAsB,aAAA,CAAc,qCAAA;EDYxB;;;;;;;;;;ECDZ,YAAA,EAAc,aAAA,CAAc,6BAAA;AAAA;;;;;cAuFjB,uBAAA,EAAuB,KAAA,CAAA,OAAA,CAAA,gBAAA;AAAA,iBAGpB,mBAAA,CAAA,GAAuB,gBAAA;;;;;;;;;;;;;;;;cCvF1B,mBAAA,GACX,UAAA,EAAY,mBAAA,EACZ,MAAA,EAAQ,kBAAA,iBACL,mBAAA"}
1
+ {"version":3,"file":"native.d.cts","names":[],"sources":["../../src/generative-ui/SurfaceView.tsx","../../src/generative-ui/activity.ts","../../src/generative-ui/host.tsx","../../src/generative-ui/native.ts"],"mappings":";;;;;;;;;;;iBAiGgB,WAAA,CAAA;EAAc;AAAA;EAAa,OAAA,EAAS,cAAA;AAAA,IAAgB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;;AAApE;;iBCzEgB,uBAAA,CACd,cAAA,WAAyB,6BAAA,gBACzB,cAAA,WAAyB,6BAAA;EACtB,QAAA,EAAU,6BAAA;EAAiC,KAAA,EAAO,KAAA;AAAA;;;;;;;;;;;;;;iBAiCvC,8BAAA,CAAA;EACd,OAAA;EACA,QAAA;EACA,OAAA;EACA,OAAA;EACA;AAAA;EAEA,OAAA,EAAS,mBAAA;EACT,QAAA;EACA,OAAA,sBA3CyB;EA6CzB,OAAA,EAAS,0BAAA,cA5C4C;EA8CrD,MAAA;AAAA;EAEA,OAAA,EAAS,cAAA;EACT,QAAA,EAAU,6BAAA;EACV,KAAA,EAAO,KAAA;AAAA;;;;UCtEQ,4BAAA;EACf,SAAA;;EAEA,KAAA,EAAO,iBAAA;EACP,QAAA,EAAU,SAAA;AAAA;AFsFZ;AAAA,UElFiB,qCAAA;;;;;;EAMf,UAAA,EAAY,IAAA,CAAK,0BAAA;EACjB,QAAA,EAAU,SAAA;AAAA;;UAIK,6BAAA;EACf,OAAA;EFsEkE;;;;;;EE/DlE,WAAA;EDVqC;ECYrC,KAAA;AAAA;;;;;;;;;;;;;;;;UAkBe,gBAAA;EDM6B;ECJ5C,WAAA,EAAa,aAAA,CAAc,4BAAA;EDK3B;;;;;;;;ECIA,oBAAA,EAAsB,aAAA,CAAc,qCAAA;EDY7B;;;;;;;;;;ECDP,YAAA,EAAc,aAAA,CAAc,6BAAA;AAAA;;;;;cAuFjB,uBAAA,EAAuB,KAAA,CAAA,OAAA,CAAA,gBAAA;AAAA,iBAGpB,mBAAA,CAAA,GAAuB,gBAAA;;;;;;;;;;;;;;;;cCvF1B,mBAAA,GACX,UAAA,EAAY,mBAAA,EACZ,MAAA,EAAQ,kBAAA,iBACL,mBAAA"}
@@ -1,5 +1,6 @@
1
- import { A as createGenerativeUI, C as GenerativeUIEventDefinition, D as GenerativeUIFunctionName, E as GenerativeUIFunctionInput, O as GenerativeUISlotKind, T as GenerativeUIFunctionDefinition, _ as CreateGenerativeUIConfig, a as GenerativeUIConfig, b as GenerativeUIComponentName, c as GenerativeUIRuntime, d as GenerativeUIToolConfig, f as useGenerativeUIRuntime, g as useGenerativeUIAccessibility, h as GenerativeUIAriaAttributes, k as GenerativeUIStateOf, l as GenerativeUIRuntimeContext, m as GenerativeUIAccessibility, n as GenerativeUIChatSurfaceProps, o as GenerativeUIErrorBoundaryConfig, p as useRequiredGenerativeUIRuntime, r as GenerativeUIToolCallRenderer, s as GenerativeUIMarkdownConfig, u as GenerativeUITheme, v as GenerativeUI, w as GenerativeUIFunctionArgs, x as GenerativeUIComponentProps, y as GenerativeUIComponentDefinition } from "../chat-DgP2N7bD.mjs";
2
- import { a as childList, i as child, n as useGenerativeUIState, r as useManagerVersion, t as useGenerativeUIFunction } from "../hooks-BRYonCVu.mjs";
1
+ import { C as GenerativeUIFunctionInput, D as createGenerativeUI, E as GenerativeUIStateOf, S as GenerativeUIFunctionDefinition, T as GenerativeUISlotKind, _ as GenerativeUIComponentName, a as GenerativeUIRuntime, b as GenerativeUIEventDefinition, c as GenerativeUIToolConfig, d as GenerativeUIAccessibility, f as GenerativeUIAriaAttributes, g as GenerativeUIComponentDefinition, h as GenerativeUI, i as GenerativeUIMarkdownConfig, l as useGenerativeUIRuntime, m as CreateGenerativeUIConfig, n as GenerativeUIErrorBoundaryConfig, o as GenerativeUIRuntimeContext, p as useGenerativeUIAccessibility, s as GenerativeUITheme, t as GenerativeUIConfig, u as useRequiredGenerativeUIRuntime, v as GenerativeUIComponentProps, w as GenerativeUIFunctionName, x as GenerativeUIFunctionArgs } from "../runtime-context-B7f4M85q.mjs";
2
+ import { a as childList, i as child, n as useGenerativeUIState, r as useManagerVersion, t as useGenerativeUIFunction } from "../hooks-D2H3iL0N.mjs";
3
+ import { n as GenerativeUIChatSurfaceProps, r as GenerativeUIToolCallRenderer } from "../chat-BZ_bvAkg.mjs";
3
4
  import React, { ComponentType, ReactNode } from "react";
4
5
  import * as react_jsx_runtime0 from "react/jsx-runtime";
5
6
  import { GenerativeUIRejectedOperation, GenerativeUISurfaceContent } from "@copilotkit/shared";
@@ -1 +1 @@
1
- {"version":3,"file":"native.d.mts","names":[],"sources":["../../src/generative-ui/SurfaceView.tsx","../../src/generative-ui/activity.ts","../../src/generative-ui/host.tsx","../../src/generative-ui/native.ts"],"mappings":";;;;;;;;;;iBAgGgB,WAAA,CAAA;EAAc;AAAA;EAAa,OAAA,EAAS,cAAA;AAAA,IAAgB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;AAApE;;;iBCxEgB,uBAAA,CACd,cAAA,WAAyB,6BAAA,gBACzB,cAAA,WAAyB,6BAAA;EACtB,QAAA,EAAU,6BAAA;EAAiC,KAAA,EAAO,KAAA;AAAA;;;;;;;;;;;;;AAHvD;iBAoCgB,8BAAA,CAAA;EACd,OAAA;EACA,QAAA;EACA,OAAA;EACA,OAAA;EACA;AAAA;EAEA,OAAA,EAAS,mBAAA;EACT,QAAA;EACA,OAAA,sBA1Ca;EA4Cb,OAAA,EAAS,0BAAA,cA5CiD;EA8C1D,MAAA;AAAA;EAEA,OAAA,EAAS,cAAA;EACT,QAAA,EAAU,6BAAA;EACV,KAAA,EAAO,KAAA;AAAA;;;;UCtEQ,4BAAA;EACf,SAAA;;EAEA,KAAA,EAAO,iBAAA;EACP,QAAA,EAAU,SAAA;AAAA;;UAIK,qCAAA;EFiFa;;;;;EE3E5B,UAAA,EAAY,IAAA,CAAK,0BAAA;EACjB,QAAA,EAAU,SAAA;AAAA;;UAIK,6BAAA;EACf,OAAA;EFqEkE;;;;;ACxEpE;ECUE,WAAA;;EAEA,KAAA;AAAA;;;;;;;;;;;;;;;ADwBF;UCNiB,gBAAA;;EAEf,WAAA,EAAa,aAAA,CAAc,4BAAA;EDM3B;;;;;;;;ECGA,oBAAA,EAAsB,aAAA,CAAc,qCAAA;EDYxB;;;;;;;;;;ECDZ,YAAA,EAAc,aAAA,CAAc,6BAAA;AAAA;;;;;cAuFjB,uBAAA,EAAuB,KAAA,CAAA,OAAA,CAAA,gBAAA;AAAA,iBAGpB,mBAAA,CAAA,GAAuB,gBAAA;;;;;;;;;;;;;;;;cCvF1B,mBAAA,GACX,UAAA,EAAY,mBAAA,EACZ,MAAA,EAAQ,kBAAA,iBACL,mBAAA"}
1
+ {"version":3,"file":"native.d.mts","names":[],"sources":["../../src/generative-ui/SurfaceView.tsx","../../src/generative-ui/activity.ts","../../src/generative-ui/host.tsx","../../src/generative-ui/native.ts"],"mappings":";;;;;;;;;;;iBAiGgB,WAAA,CAAA;EAAc;AAAA;EAAa,OAAA,EAAS,cAAA;AAAA,IAAgB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;;AAApE;;iBCzEgB,uBAAA,CACd,cAAA,WAAyB,6BAAA,gBACzB,cAAA,WAAyB,6BAAA;EACtB,QAAA,EAAU,6BAAA;EAAiC,KAAA,EAAO,KAAA;AAAA;;;;;;;;;;;;;;iBAiCvC,8BAAA,CAAA;EACd,OAAA;EACA,QAAA;EACA,OAAA;EACA,OAAA;EACA;AAAA;EAEA,OAAA,EAAS,mBAAA;EACT,QAAA;EACA,OAAA,sBA3CyB;EA6CzB,OAAA,EAAS,0BAAA,cA5C4C;EA8CrD,MAAA;AAAA;EAEA,OAAA,EAAS,cAAA;EACT,QAAA,EAAU,6BAAA;EACV,KAAA,EAAO,KAAA;AAAA;;;;UCtEQ,4BAAA;EACf,SAAA;;EAEA,KAAA,EAAO,iBAAA;EACP,QAAA,EAAU,SAAA;AAAA;AFsFZ;AAAA,UElFiB,qCAAA;;;;;;EAMf,UAAA,EAAY,IAAA,CAAK,0BAAA;EACjB,QAAA,EAAU,SAAA;AAAA;;UAIK,6BAAA;EACf,OAAA;EFsEkE;;;;;;EE/DlE,WAAA;EDVqC;ECYrC,KAAA;AAAA;;;;;;;;;;;;;;;;UAkBe,gBAAA;EDM6B;ECJ5C,WAAA,EAAa,aAAA,CAAc,4BAAA;EDK3B;;;;;;;;ECIA,oBAAA,EAAsB,aAAA,CAAc,qCAAA;EDY7B;;;;;;;;;;ECDP,YAAA,EAAc,aAAA,CAAc,6BAAA;AAAA;;;;;cAuFjB,uBAAA,EAAuB,KAAA,CAAA,OAAA,CAAA,gBAAA;AAAA,iBAGpB,mBAAA,CAAA,GAAuB,gBAAA;;;;;;;;;;;;;;;;cCvF1B,mBAAA,GACX,UAAA,EAAY,mBAAA,EACZ,MAAA,EAAQ,kBAAA,iBACL,mBAAA"}
@@ -1,6 +1,7 @@
1
- import { C as GenerativeUIRuntimeContext, T as useRequiredGenerativeUIRuntime, _ as useGenerativeUIActivitySurface, b as useGenerativeUIState, d as GenerativeUIHostContext, f as useGenerativeUIHost, g as parseGenerativeUISurfaceContent, h as GenerativeUISurfaceContentSchema, l as useGenerativeUIAccessibility, m as createGenerativeUI, o as SurfaceView, r as GenerativeUIToolCallRenderer, v as useGenerativeUIRejected, w as useGenerativeUIRuntime, x as useManagerVersion, y as useGenerativeUIFunction } from "../chat-Bf0vVdo7.mjs";
2
- import { t as useGenerativeUIRoot$1 } from "../use-generative-ui-root-CVgsDy1f.mjs";
3
- import { n as childList, t as child } from "../refs-CMrRm3ta.mjs";
1
+ import { a as useGenerativeUIAccessibility, c as createGenerativeUI, d as GenerativeUIRuntimeContext, m as useRequiredGenerativeUIRuntime, p as useGenerativeUIRuntime } from "../accessibility-BLK-gE0R.mjs";
2
+ import { c as useGenerativeUIHost, d as parseGenerativeUISurfaceContent, f as useGenerativeUIActivitySurface, g as useManagerVersion, h as useGenerativeUIState, m as useGenerativeUIFunction, o as SurfaceView, p as useGenerativeUIRejected, r as GenerativeUIToolCallRenderer, s as GenerativeUIHostContext, u as GenerativeUISurfaceContentSchema } from "../chat-B1zczXUD.mjs";
3
+ import { t as useGenerativeUIRoot$1 } from "../use-generative-ui-root-oBqPa6uy.mjs";
4
+ import { n as childList, t as child } from "../refs-BW15wX_V.mjs";
4
5
  import { GenerativeUIError, exportA2UICatalog } from "@copilotkit/shared/generative-ui";
5
6
 
6
7
  //#region src/generative-ui/native.ts
@@ -1 +1 @@
1
- {"version":3,"file":"native.mjs","names":["useGenerativeUIRootImpl"],"sources":["../../src/generative-ui/native.ts"],"sourcesContent":["// The `@copilotkit/react-core/generative-ui/native` entry: generative UI\n// without the DOM. It has the catalog API, the hooks and the surface\n// renderer, and leaves out what only a browser can run: the standard\n// catalog (DOM components, portals, KaTeX), the markdown surfaces\n// (streamdown) and the DOM `<GenerativeUISurface>` mount. A platform gives\n// its host elements through `GenerativeUIHostContext`. That context defaults\n// to the DOM host, which renders HTML elements, so a platform\n// without a DOM MUST provide its own host above every surface it renders.\n// Nothing checks that it did: without one, on React Native, the `<div>` of\n// the surface root fails to render, the surface fallback (a `<div>` too)\n// fails as well, and the surface renders nothing; only the reported errors\n// show it. `@copilotkit/react-native/generative-ui` is built on this entry,\n// and its `GenerativeUIProvider` provides the native host.\n//\n// It is built together with the root entry and `/generative-ui`, so the three\n// entries share one copy of each React context.\n\n// The catalog API, as in `/generative-ui`.\nexport { createGenerativeUI } from \"./catalog\";\nexport type {\n CreateGenerativeUIConfig,\n GenerativeUI,\n GenerativeUIComponentDefinition,\n GenerativeUIComponentName,\n GenerativeUIComponentProps,\n GenerativeUIEventDefinition,\n GenerativeUIFunctionArgs,\n GenerativeUIFunctionDefinition,\n GenerativeUIFunctionInput,\n GenerativeUIFunctionName,\n GenerativeUISlotKind,\n GenerativeUIStateOf,\n} from \"./catalog\";\nexport { child, childList } from \"./refs\";\nexport { exportA2UICatalog } from \"@copilotkit/shared/generative-ui\";\nexport type { ExportA2UICatalogOptions } from \"@copilotkit/shared/generative-ui\";\nexport { useGenerativeUIAccessibility } from \"./accessibility\";\nexport type {\n GenerativeUIAccessibility,\n GenerativeUIAriaAttributes,\n} from \"./accessibility\";\nexport { GenerativeUIError } from \"@copilotkit/shared/generative-ui\";\nexport type {\n GenerativeUIErrorCode,\n GenerativeUIErrorInfo,\n GenerativeUIEventHandler,\n GenerativeUIInvokeResult,\n} from \"@copilotkit/shared/generative-ui\";\nexport type {\n GenerativeUIConfig,\n GenerativeUIErrorBoundaryConfig,\n GenerativeUIMarkdownConfig,\n GenerativeUITheme,\n GenerativeUIToolConfig,\n} from \"./runtime-context\";\nexport { useGenerativeUIRuntime } from \"./runtime-context\";\nexport { useGenerativeUIFunction, useGenerativeUIState } from \"./hooks\";\n\n// The plumbing that a platform package uses to build its provider and\n// surfaces.\nimport { useGenerativeUIRoot as useGenerativeUIRootImpl } from \"./use-generative-ui-root\";\nimport type { CopilotKitCoreReact } from \"../context\";\nimport type {\n GenerativeUIConfig,\n GenerativeUIRuntime,\n} from \"./runtime-context\";\n/**\n * Provider-side wiring: the surface manager, the agent subscriptions and the\n * envelope of each run. Typed with the `CopilotKitCoreReact` of\n * `/context`, which is the instance a React Native provider holds.\n *\n * In source it is the same class that `use-generative-ui-root.ts` imports\n * from `../lib/react-core`, so no cast is needed. The annotation is for the\n * emitted declarations: `../context` is external to the build, so they import\n * the class from `@copilotkit/react-core/context`. Re-exported as is, the\n * hook would be declared with a copy of the class from a bundled chunk, which\n * the `/context` instance is not assignable to (the class has private\n * members). `scripts/assert-dist-context-types.mjs` checks this.\n */\nexport const useGenerativeUIRoot: (\n copilotkit: CopilotKitCoreReact,\n config: GenerativeUIConfig | undefined,\n) => GenerativeUIRuntime | null = useGenerativeUIRootImpl;\nexport {\n GenerativeUIRuntimeContext,\n useRequiredGenerativeUIRuntime,\n} from \"./runtime-context\";\nexport type { GenerativeUIRuntime } from \"./runtime-context\";\nexport { useManagerVersion } from \"./hooks\";\nexport { SurfaceView } from \"./SurfaceView\";\nexport { GenerativeUIToolCallRenderer } from \"./chat\";\nexport {\n GenerativeUISurfaceContentSchema,\n parseGenerativeUISurfaceContent,\n useGenerativeUIActivitySurface,\n useGenerativeUIRejected,\n} from \"./activity\";\nexport type { ParsedGenerativeUISurfaceContent } from \"./activity\";\nexport type { GenerativeUIChatSurfaceProps } from \"./chat\";\nexport { GenerativeUIHostContext, useGenerativeUIHost } from \"./host\";\nexport type {\n GenerativeUIAccessibilityWrapperProps,\n GenerativeUIHost,\n GenerativeUINodeFallbackProps,\n GenerativeUISurfaceRootProps,\n} from \"./host\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA+EA,MAAa,sBAGqBA"}
1
+ {"version":3,"file":"native.mjs","names":["useGenerativeUIRootImpl"],"sources":["../../src/generative-ui/native.ts"],"sourcesContent":["// The `@copilotkit/react-core/generative-ui/native` entry: generative UI\n// without the DOM. It has the catalog API, the hooks and the surface\n// renderer, and leaves out what only a browser can run: the standard\n// catalog (DOM components, portals, KaTeX), the markdown surfaces\n// (streamdown) and the DOM `<GenerativeUISurface>` mount. A platform gives\n// its host elements through `GenerativeUIHostContext`. That context defaults\n// to the DOM host, which renders HTML elements, so a platform\n// without a DOM MUST provide its own host above every surface it renders.\n// Nothing checks that it did: without one, on React Native, the `<div>` of\n// the surface root fails to render, the surface fallback (a `<div>` too)\n// fails as well, and the surface renders nothing; only the reported errors\n// show it. `@copilotkit/react-native/generative-ui` is built on this entry,\n// and its `GenerativeUIProvider` provides the native host.\n//\n// It is built together with the root entry and `/generative-ui`, so the three\n// entries share one copy of each React context.\n\n// The catalog API, as in `/generative-ui`.\nexport { createGenerativeUI } from \"./catalog\";\nexport type {\n CreateGenerativeUIConfig,\n GenerativeUI,\n GenerativeUIComponentDefinition,\n GenerativeUIComponentName,\n GenerativeUIComponentProps,\n GenerativeUIEventDefinition,\n GenerativeUIFunctionArgs,\n GenerativeUIFunctionDefinition,\n GenerativeUIFunctionInput,\n GenerativeUIFunctionName,\n GenerativeUISlotKind,\n GenerativeUIStateOf,\n} from \"./catalog\";\nexport { child, childList } from \"./refs\";\nexport { exportA2UICatalog } from \"@copilotkit/shared/generative-ui\";\nexport type { ExportA2UICatalogOptions } from \"@copilotkit/shared/generative-ui\";\nexport { useGenerativeUIAccessibility } from \"./accessibility\";\nexport type {\n GenerativeUIAccessibility,\n GenerativeUIAriaAttributes,\n} from \"./accessibility\";\nexport { GenerativeUIError } from \"@copilotkit/shared/generative-ui\";\nexport type {\n GenerativeUIErrorCode,\n GenerativeUIErrorInfo,\n GenerativeUIEventHandler,\n GenerativeUIInvokeResult,\n} from \"@copilotkit/shared/generative-ui\";\nexport type {\n GenerativeUIConfig,\n GenerativeUIErrorBoundaryConfig,\n GenerativeUIMarkdownConfig,\n GenerativeUITheme,\n GenerativeUIToolConfig,\n} from \"./runtime-context\";\nexport { useGenerativeUIRuntime } from \"./runtime-context\";\nexport { useGenerativeUIFunction, useGenerativeUIState } from \"./hooks\";\n\n// The plumbing that a platform package uses to build its provider and\n// surfaces.\nimport { useGenerativeUIRoot as useGenerativeUIRootImpl } from \"./use-generative-ui-root\";\nimport type { CopilotKitCoreReact } from \"../context\";\nimport type {\n GenerativeUIConfig,\n GenerativeUIRuntime,\n} from \"./runtime-context\";\n/**\n * Provider-side wiring: the surface manager, the agent subscriptions and the\n * envelope of each run. Typed with the `CopilotKitCoreReact` of\n * `/context`, which is the instance a React Native provider holds.\n *\n * In source it is the same class that `use-generative-ui-root.ts` imports\n * from `../lib/react-core`, so no cast is needed. The annotation is for the\n * emitted declarations: `../context` is external to the build, so they import\n * the class from `@copilotkit/react-core/context`. Re-exported as is, the\n * hook would be declared with a copy of the class from a bundled chunk, which\n * the `/context` instance is not assignable to (the class has private\n * members). `scripts/assert-dist-context-types.mjs` checks this.\n */\nexport const useGenerativeUIRoot: (\n copilotkit: CopilotKitCoreReact,\n config: GenerativeUIConfig | undefined,\n) => GenerativeUIRuntime | null = useGenerativeUIRootImpl;\nexport {\n GenerativeUIRuntimeContext,\n useRequiredGenerativeUIRuntime,\n} from \"./runtime-context\";\nexport type { GenerativeUIRuntime } from \"./runtime-context\";\nexport { useManagerVersion } from \"./hooks\";\nexport { SurfaceView } from \"./SurfaceView\";\nexport { GenerativeUIToolCallRenderer } from \"./chat\";\nexport {\n GenerativeUISurfaceContentSchema,\n parseGenerativeUISurfaceContent,\n useGenerativeUIActivitySurface,\n useGenerativeUIRejected,\n} from \"./activity\";\nexport type { ParsedGenerativeUISurfaceContent } from \"./activity\";\nexport type { GenerativeUIChatSurfaceProps } from \"./chat\";\nexport { GenerativeUIHostContext, useGenerativeUIHost } from \"./host\";\nexport type {\n GenerativeUIAccessibilityWrapperProps,\n GenerativeUIHost,\n GenerativeUINodeFallbackProps,\n GenerativeUISurfaceRootProps,\n} from \"./host\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AA+EA,MAAa,sBAGqBA"}