@copilotkit/react-core 1.85.0 → 1.87.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/MarkdownSurfaces-BCVdnDAk.cjs +161 -0
  2. package/dist/MarkdownSurfaces-BCVdnDAk.cjs.map +1 -0
  3. package/dist/MarkdownSurfaces-CjJduaJR.mjs +149 -0
  4. package/dist/MarkdownSurfaces-CjJduaJR.mjs.map +1 -0
  5. package/dist/{MarkdownSurfaces-3cGU5_0H.cjs → chat-BnsrQ0VS.cjs} +667 -320
  6. package/dist/chat-BnsrQ0VS.cjs.map +1 -0
  7. package/dist/{MarkdownSurfaces-D-W4f9Dy.mjs → chat-IWySXWXP.mjs} +647 -312
  8. package/dist/chat-IWySXWXP.mjs.map +1 -0
  9. package/dist/{copilotkit-Dn4PbHJV.d.mts → copilotkit-BNPEXnEE.d.mts} +11 -6
  10. package/dist/{copilotkit-Dn4PbHJV.d.mts.map → copilotkit-BNPEXnEE.d.mts.map} +1 -1
  11. package/dist/{copilotkit-CuTAoQF2.d.cts → copilotkit-Bop-sY6y.d.cts} +9 -4
  12. package/dist/{copilotkit-CuTAoQF2.d.cts.map → copilotkit-Bop-sY6y.d.cts.map} +1 -1
  13. package/dist/{copilotkit-BpKHgURs.cjs → copilotkit-CZ9tI_J1.cjs} +203 -452
  14. package/dist/copilotkit-CZ9tI_J1.cjs.map +1 -0
  15. package/dist/{copilotkit-D6mTCuNU.mjs → copilotkit-ChqQa52S.mjs} +131 -380
  16. package/dist/{copilotkit-BpKHgURs.cjs.map → copilotkit-ChqQa52S.mjs.map} +1 -1
  17. package/dist/hooks-CEFWIeKR.d.cts +89 -0
  18. package/dist/hooks-CEFWIeKR.d.cts.map +1 -0
  19. package/dist/hooks-DFgYRjj3.d.mts +89 -0
  20. package/dist/hooks-DFgYRjj3.d.mts.map +1 -0
  21. package/dist/index.cjs +8 -8
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +2 -2
  24. package/dist/index.d.mts +2 -2
  25. package/dist/index.mjs +2 -2
  26. package/dist/index.umd.js +769 -165
  27. package/dist/index.umd.js.map +1 -1
  28. package/dist/refs-DL7ITFFD.cjs +43 -0
  29. package/dist/refs-DL7ITFFD.cjs.map +1 -0
  30. package/dist/refs-DiZXJ63p.mjs +31 -0
  31. package/dist/refs-DiZXJ63p.mjs.map +1 -0
  32. package/dist/{runtime-context-Er5UIbZA.d.mts → runtime-context-B4fKyzo6.d.mts} +31 -9
  33. package/dist/runtime-context-B4fKyzo6.d.mts.map +1 -0
  34. package/dist/{runtime-context-DrVNUYLi.d.cts → runtime-context-Da7T5vy4.d.cts} +31 -9
  35. package/dist/runtime-context-Da7T5vy4.d.cts.map +1 -0
  36. package/dist/use-generative-ui-root-CaTyBFNR.cjs +390 -0
  37. package/dist/use-generative-ui-root-CaTyBFNR.cjs.map +1 -0
  38. package/dist/use-generative-ui-root-WI9ERMpo.mjs +385 -0
  39. package/dist/use-generative-ui-root-WI9ERMpo.mjs.map +1 -0
  40. package/dist/v2/generative-ui/native.cjs +66 -0
  41. package/dist/v2/generative-ui/native.cjs.map +1 -0
  42. package/dist/v2/generative-ui/native.d.cts +155 -0
  43. package/dist/v2/generative-ui/native.d.cts.map +1 -0
  44. package/dist/v2/generative-ui/native.d.mts +155 -0
  45. package/dist/v2/generative-ui/native.d.mts.map +1 -0
  46. package/dist/v2/generative-ui/native.mjs +24 -0
  47. package/dist/v2/generative-ui/native.mjs.map +1 -0
  48. package/dist/v2/generative-ui.cjs +45 -70
  49. package/dist/v2/generative-ui.cjs.map +1 -1
  50. package/dist/v2/generative-ui.d.cts +378 -457
  51. package/dist/v2/generative-ui.d.cts.map +1 -1
  52. package/dist/v2/generative-ui.d.mts +378 -457
  53. package/dist/v2/generative-ui.d.mts.map +1 -1
  54. package/dist/v2/generative-ui.mjs +4 -29
  55. package/dist/v2/generative-ui.mjs.map +1 -1
  56. package/dist/v2/headless.d.cts +185 -294
  57. package/dist/v2/headless.d.cts.map +1 -1
  58. package/dist/v2/index.cjs +5 -5
  59. package/dist/v2/index.d.cts +2 -2
  60. package/dist/v2/index.d.mts +2 -2
  61. package/dist/v2/index.mjs +2 -2
  62. package/dist/v2/index.umd.js +769 -165
  63. package/dist/v2/index.umd.js.map +1 -1
  64. package/package.json +14 -10
  65. package/dist/MarkdownSurfaces-3cGU5_0H.cjs.map +0 -1
  66. package/dist/MarkdownSurfaces-D-W4f9Dy.mjs.map +0 -1
  67. package/dist/copilotkit-D6mTCuNU.mjs.map +0 -1
  68. package/dist/runtime-context-DrVNUYLi.d.cts.map +0 -1
  69. package/dist/runtime-context-Er5UIbZA.d.mts.map +0 -1
@@ -1,9 +1,11 @@
1
1
  "use client";
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
- const require_MarkdownSurfaces = require('../MarkdownSurfaces-3cGU5_0H.cjs');
4
+ const require_chat = require('../chat-BnsrQ0VS.cjs');
5
+ const require_MarkdownSurfaces = require('../MarkdownSurfaces-BCVdnDAk.cjs');
6
+ const require_refs = require('../refs-DL7ITFFD.cjs');
5
7
  let react = require("react");
6
- react = require_MarkdownSurfaces.__toESM(react);
8
+ react = require_chat.__toESM(react);
7
9
  let react_jsx_runtime = require("react/jsx-runtime");
8
10
  let streamdown = require("streamdown");
9
11
  let _copilotkit_core_generative_ui = require("@copilotkit/core/generative-ui");
@@ -11,33 +13,6 @@ let _copilotkit_shared_generative_ui = require("@copilotkit/shared/generative-ui
11
13
  let react_dom = require("react-dom");
12
14
  let katex = require("katex");
13
15
 
14
- //#region src/v2/generative-ui/refs.ts
15
- /**
16
- * One component id. The component receives the rendered child. Pass the
17
- * description here, not with `.describe()`, which would replace the mark.
18
- *
19
- * @example
20
- * ```ts
21
- * const tabsSchema = z.object({
22
- * tabs: z.array(z.object({ title: z.string(), child: child() })),
23
- * });
24
- * // The component gets `tabs: { title: string; child: ReactNode }[]`.
25
- * ```
26
- */
27
- function child(description) {
28
- return (0, _copilotkit_shared_generative_ui.child)(description);
29
- }
30
- /**
31
- * A list of component ids, or a template `{ componentId, path }` that
32
- * repeats one component for each item of the list at `path`. The
33
- * component receives the rendered children. Pass the description here,
34
- * not with `.describe()`.
35
- */
36
- function childList(description) {
37
- return (0, _copilotkit_shared_generative_ui.childList)(description);
38
- }
39
-
40
- //#endregion
41
16
  //#region src/v2/generative-ui/GenerativeUISurface.tsx
42
17
  const isDevelopment = () => process.env.NODE_ENV !== "production";
43
18
  /**
@@ -55,8 +30,8 @@ const isDevelopment = () => process.env.NODE_ENV !== "production";
55
30
  * ```
56
31
  */
57
32
  function GenerativeUISurface({ id, description, ui, components, fallback = null, className, autoScroll = true }) {
58
- const runtime = require_MarkdownSurfaces.useRequiredGenerativeUIRuntime();
59
- require_MarkdownSurfaces.useManagerVersion(runtime);
33
+ const runtime = require_chat.useRequiredGenerativeUIRuntime();
34
+ require_chat.useManagerVersion(runtime);
60
35
  const otherUI = ui !== void 0 && ui !== runtime.ui;
61
36
  (0, react.useLayoutEffect)(() => {
62
37
  if (otherUI && isDevelopment()) console.warn(`[generativeUI] <GenerativeUISurface id="${id}">: the ui prop is not the UI of the provider (generativeUI.ui). The components are checked against the UI of the provider.`);
@@ -91,7 +66,7 @@ function GenerativeUISurface({ id, description, ui, components, fallback = null,
91
66
  ref: element,
92
67
  "data-generative-ui-surface": id,
93
68
  className,
94
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.SurfaceView, { surface })
69
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_chat.SurfaceView, { surface })
95
70
  });
96
71
  }
97
72
 
@@ -155,7 +130,7 @@ const LIGHTBOX_BUTTON = {
155
130
  */
156
131
  function Lightbox({ images, index = 0, onClose }) {
157
132
  const [current, setCurrent] = (0, react.useState)(index);
158
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
133
+ const aria = require_chat.useGenerativeUIAccessibility();
159
134
  const count = images.length;
160
135
  const step = (delta) => setCurrent((i) => count === 0 ? 0 : (i + delta + count) % count);
161
136
  const closeRef = (0, react.useRef)(onClose);
@@ -577,7 +552,7 @@ function innerPanelStyle(props) {
577
552
  function container(extra, attributes) {
578
553
  return function Container(props) {
579
554
  useStandardStyles();
580
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
555
+ const aria = require_chat.useGenerativeUIAccessibility();
581
556
  const nested = (0, react.useContext)(CardNestingContext);
582
557
  const distance = (0, react.useContext)(CardDistanceContext);
583
558
  const ref = (0, react.useRef)(null);
@@ -667,7 +642,7 @@ function cardShadow(props) {
667
642
  }
668
643
  function Card(props) {
669
644
  useStandardStyles();
670
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
645
+ const aria = require_chat.useGenerativeUIAccessibility();
671
646
  const nested = (0, react.useContext)(CardNestingContext);
672
647
  const ref = (0, react.useRef)(null);
673
648
  useVisibleOnce(ref, props.onVisible);
@@ -1297,7 +1272,7 @@ const OBJECT_FIT = {
1297
1272
  scaleDown: "scale-down"
1298
1273
  };
1299
1274
  function Image(props) {
1300
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
1275
+ const aria = require_chat.useGenerativeUIAccessibility();
1301
1276
  const [failed, setFailed] = (0, react.useState)(false);
1302
1277
  const [isOpen, setIsOpen] = (0, react.useState)(false);
1303
1278
  const [isHovered, setIsHovered] = (0, react.useState)(false);
@@ -1475,7 +1450,7 @@ function lucideNameOf(name) {
1475
1450
  return A2UI_ICONS[name] ?? name;
1476
1451
  }
1477
1452
  function Icon(props) {
1478
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
1453
+ const aria = require_chat.useGenerativeUIAccessibility();
1479
1454
  const label = aria["aria-label"] ?? props.label;
1480
1455
  const size = props.size ?? "md";
1481
1456
  const style = { flexGrow: props.weight };
@@ -1544,7 +1519,7 @@ function Favicon(props) {
1544
1519
  * 4px steps like the layout spacing).
1545
1520
  */
1546
1521
  function Svg(props) {
1547
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
1522
+ const aria = require_chat.useGenerativeUIAccessibility();
1548
1523
  const label = aria["aria-label"] ?? props.label;
1549
1524
  const a11y = label === void 0 ? { "aria-hidden": true } : {
1550
1525
  role: "img",
@@ -1735,7 +1710,7 @@ function VideoLink({ url, title, box, aria }) {
1735
1710
  });
1736
1711
  }
1737
1712
  function Video(props) {
1738
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
1713
+ const aria = require_chat.useGenerativeUIAccessibility();
1739
1714
  const [isPlaying, setIsPlaying] = (0, react.useState)(false);
1740
1715
  const [failedUrl, setFailedUrl] = (0, react.useState)();
1741
1716
  const youTubeId = youTubeIdOf(props.url);
@@ -1834,7 +1809,7 @@ function Video(props) {
1834
1809
  });
1835
1810
  }
1836
1811
  function AudioPlayer(props) {
1837
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
1812
+ const aria = require_chat.useGenerativeUIAccessibility();
1838
1813
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("figure", {
1839
1814
  "data-a2ui-std": "",
1840
1815
  ...aria,
@@ -2141,8 +2116,8 @@ const FOLLOW_UP_EVENT = "follow_up";
2141
2116
  * the engine turns into a visible user message with that text.
2142
2117
  */
2143
2118
  function useFollowUpSend(onFollowUp) {
2144
- const runtime = require_MarkdownSurfaces.useGenerativeUIRuntime();
2145
- const node = (0, react.useContext)(require_MarkdownSurfaces.GenerativeUINodeContext);
2119
+ const runtime = require_chat.useGenerativeUIRuntime();
2120
+ const node = (0, react.useContext)(require_chat.GenerativeUINodeContext);
2146
2121
  return (message) => {
2147
2122
  if (onFollowUp) {
2148
2123
  onFollowUp({ message });
@@ -3010,7 +2985,7 @@ function MapView(props) {
3010
2985
  const [status, setStatus] = (0, react.useState)("loading");
3011
2986
  const setSelectedRef = (0, react.useRef)(props.setSelected);
3012
2987
  setSelectedRef.current = props.setSelected;
3013
- const { theme } = require_MarkdownSurfaces.useRequiredGenerativeUIRuntime();
2988
+ const { theme } = require_chat.useRequiredGenerativeUIRuntime();
3014
2989
  const styleUrl = useIsDark(containerRef) ? theme?.dark?.mapStyle || theme?.mapStyle || DEFAULT_DARK_MAP_STYLE : theme?.mapStyle || DEFAULT_MAP_STYLE;
3015
2990
  (0, react.useEffect)(() => {
3016
2991
  let isCancelled = false;
@@ -3334,7 +3309,7 @@ function Table(props) {
3334
3309
  });
3335
3310
  }
3336
3311
  function TableSection(props) {
3337
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
3312
+ const aria = require_chat.useGenerativeUIAccessibility();
3338
3313
  const parent = (0, react.useContext)(TableContext);
3339
3314
  const isHeader = props.header === true;
3340
3315
  const Tag = isHeader ? "thead" : "tbody";
@@ -3351,7 +3326,7 @@ function TableSection(props) {
3351
3326
  });
3352
3327
  }
3353
3328
  function TableRow(props) {
3354
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
3329
+ const aria = require_chat.useGenerativeUIAccessibility();
3355
3330
  const parent = (0, react.useContext)(TableContext);
3356
3331
  const isHeader = props.header === true || parent?.isHeader === true;
3357
3332
  const dividers = parent?.dividers ?? true;
@@ -3379,7 +3354,7 @@ function TableRow(props) {
3379
3354
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(isHeader ? "thead" : "tbody", { children: row });
3380
3355
  }
3381
3356
  function TableCell(props) {
3382
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
3357
+ const aria = require_chat.useGenerativeUIAccessibility();
3383
3358
  const parent = (0, react.useContext)(TableContext);
3384
3359
  const isHeader = props.header === true || parent?.isHeader === true;
3385
3360
  const scope = parent?.isHeader ? "col" : "row";
@@ -3790,7 +3765,7 @@ function Popover(props) {
3790
3765
  });
3791
3766
  }
3792
3767
  function PopoverTrigger(props) {
3793
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
3768
+ const aria = require_chat.useGenerativeUIAccessibility();
3794
3769
  useFeedbackStyles();
3795
3770
  const popover = (0, react.useContext)(PopoverContext);
3796
3771
  if (!popover) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: props.children });
@@ -3916,7 +3891,7 @@ const DISABLED = "[disabled],[aria-disabled=\"true\"]";
3916
3891
  */
3917
3892
  function Modal(props) {
3918
3893
  useFeedbackStyles();
3919
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
3894
+ const aria = require_chat.useGenerativeUIAccessibility();
3920
3895
  const id = (0, react.useId)();
3921
3896
  const [ownOpen, setOwnOpen] = (0, react.useState)(false);
3922
3897
  const open = props.open ?? ownOpen;
@@ -3946,7 +3921,7 @@ function Modal(props) {
3946
3921
  });
3947
3922
  return () => observer.disconnect();
3948
3923
  }, []);
3949
- const theme = require_MarkdownSurfaces.useGenerativeUIRuntime()?.theme;
3924
+ const theme = require_chat.useGenerativeUIRuntime()?.theme;
3950
3925
  const portalStyle = (0, react.useMemo)(() => {
3951
3926
  const { mapStyle: _mapStyle, ...variables } = theme ?? {};
3952
3927
  return {
@@ -4229,7 +4204,7 @@ const FIELD_LABEL_STYLE = {
4229
4204
  * `aria-labelledby`.
4230
4205
  */
4231
4206
  function Field({ label, htmlFor, labelId, weight, error, onBlur, children }) {
4232
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
4207
+ const aria = require_chat.useGenerativeUIAccessibility();
4233
4208
  const isNamed = aria["aria-label"] !== void 0 || aria["aria-description"] !== void 0;
4234
4209
  const labelElement = htmlFor !== void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
4235
4210
  htmlFor,
@@ -4304,7 +4279,7 @@ function buttonVariantStyle(variant, color) {
4304
4279
  }
4305
4280
  function Button(props) {
4306
4281
  useStandardStyles();
4307
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
4282
+ const aria = require_chat.useGenerativeUIAccessibility();
4308
4283
  const [isCopied, setIsCopied] = (0, react.useState)(false);
4309
4284
  const buttonSize = props.size ?? "lg";
4310
4285
  const failedCheck = (0, _copilotkit_shared_generative_ui.firstFailedCheck)(props.checks);
@@ -4383,7 +4358,7 @@ function Button(props) {
4383
4358
  */
4384
4359
  function Pressable(props) {
4385
4360
  useStandardStyles();
4386
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
4361
+ const aria = require_chat.useGenerativeUIAccessibility();
4387
4362
  const isDisabled = Boolean(props.disabled);
4388
4363
  const [isHovered, setIsHovered] = (0, react.useState)(false);
4389
4364
  const ref = (0, react.useRef)(null);
@@ -4453,7 +4428,7 @@ const TEXT_FIELD_TYPE = {
4453
4428
  };
4454
4429
  function TextField(props) {
4455
4430
  useStandardStyles();
4456
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
4431
+ const aria = require_chat.useGenerativeUIAccessibility();
4457
4432
  const id = (0, react.useId)();
4458
4433
  const ref = (0, react.useRef)(null);
4459
4434
  const variant = props.variant ?? "shortText";
@@ -4498,7 +4473,7 @@ function TextField(props) {
4498
4473
  }
4499
4474
  function TextArea(props) {
4500
4475
  useStandardStyles();
4501
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
4476
+ const aria = require_chat.useGenerativeUIAccessibility();
4502
4477
  const id = (0, react.useId)();
4503
4478
  const areaSize = props.size ?? "xl";
4504
4479
  const check = useChecks(props.checks, props.value);
@@ -4653,7 +4628,7 @@ function timeSlots(step, min, max, current) {
4653
4628
  */
4654
4629
  function DateTimeInput(props) {
4655
4630
  useStandardStyles();
4656
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
4631
+ const aria = require_chat.useGenerativeUIAccessibility();
4657
4632
  const id = (0, react.useId)();
4658
4633
  const labelId = (0, react.useId)();
4659
4634
  const summaryId = (0, react.useId)();
@@ -4966,7 +4941,7 @@ function ChoicePicker(props) {
4966
4941
  }
4967
4942
  function Select(props) {
4968
4943
  useStandardStyles();
4969
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
4944
+ const aria = require_chat.useGenerativeUIAccessibility();
4970
4945
  const id = (0, react.useId)();
4971
4946
  const options = normalizeOptions(props.options);
4972
4947
  const value = asText(props.value);
@@ -5030,7 +5005,7 @@ function Select(props) {
5030
5005
  }
5031
5006
  function CheckBox(props) {
5032
5007
  useStandardStyles();
5033
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
5008
+ const aria = require_chat.useGenerativeUIAccessibility();
5034
5009
  const isChecked = Boolean(props.value);
5035
5010
  const hasLabel = props.label !== void 0 && props.label !== "";
5036
5011
  const check = useChecks(props.checks, props.value);
@@ -5076,7 +5051,7 @@ function CheckBox(props) {
5076
5051
  }
5077
5052
  function Radio(props) {
5078
5053
  useStandardStyles();
5079
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
5054
+ const aria = require_chat.useGenerativeUIAccessibility();
5080
5055
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
5081
5056
  ...(0, _copilotkit_core_generative_ui.wrapperAria)(aria),
5082
5057
  style: {
@@ -5115,7 +5090,7 @@ function radioOptionStyle(variant, isSelected) {
5115
5090
  /** Native radios in a fieldset, so the arrow keys work without extra code. */
5116
5091
  function RadioGroup(props) {
5117
5092
  useStandardStyles();
5118
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
5093
+ const aria = require_chat.useGenerativeUIAccessibility();
5119
5094
  const fallbackName = (0, react.useId)();
5120
5095
  const name = props.name ?? fallbackName;
5121
5096
  const options = normalizeOptions(props.options);
@@ -5284,7 +5259,7 @@ function SegmentedControl(props) {
5284
5259
  }
5285
5260
  function Slider(props) {
5286
5261
  useStandardStyles();
5287
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
5262
+ const aria = require_chat.useGenerativeUIAccessibility();
5288
5263
  const id = (0, react.useId)();
5289
5264
  const listId = (0, react.useId)();
5290
5265
  const min = props.min ?? 0;
@@ -5476,7 +5451,7 @@ const HIGHLIGHT = {
5476
5451
  };
5477
5452
  function Text(props) {
5478
5453
  useStandardStyles();
5479
- const aria = require_MarkdownSurfaces.useGenerativeUIAccessibility();
5454
+ const aria = require_chat.useGenerativeUIAccessibility();
5480
5455
  const highlight = props.highlight === true ? HIGHLIGHT.orange : props.highlight ? HIGHLIGHT[props.highlight] : void 0;
5481
5456
  const decoration = [props.underline ? "underline" : "", props.lineThrough ? "line-through" : ""].filter(Boolean).join(" ");
5482
5457
  const typography = typographyStyle(props);
@@ -5825,13 +5800,13 @@ const orderedComponents = (0, _copilotkit_shared_generative_ui.withStandardParam
5825
5800
  * });
5826
5801
  * ```
5827
5802
  */
5828
- const standardUI = require_MarkdownSurfaces.createGenerativeUI({
5803
+ const standardUI = require_chat.createGenerativeUI({
5829
5804
  id: _copilotkit_shared_generative_ui.STANDARD_CATALOG_ID,
5830
5805
  components: orderedComponents
5831
5806
  });
5832
5807
 
5833
5808
  //#endregion
5834
- exports.DefaultGenerativeUIChatCard = require_MarkdownSurfaces.DefaultGenerativeUIChatCard;
5809
+ exports.DefaultGenerativeUIChatCard = require_chat.DefaultGenerativeUIChatCard;
5835
5810
  Object.defineProperty(exports, 'GenerativeUIError', {
5836
5811
  enumerable: true,
5837
5812
  get: function () {
@@ -5840,9 +5815,9 @@ Object.defineProperty(exports, 'GenerativeUIError', {
5840
5815
  });
5841
5816
  exports.GenerativeUISurface = GenerativeUISurface;
5842
5817
  exports.MarkdownSurfaces = require_MarkdownSurfaces.MarkdownSurfaces;
5843
- exports.child = child;
5844
- exports.childList = childList;
5845
- exports.createGenerativeUI = require_MarkdownSurfaces.createGenerativeUI;
5818
+ exports.child = require_refs.child;
5819
+ exports.childList = require_refs.childList;
5820
+ exports.createGenerativeUI = require_chat.createGenerativeUI;
5846
5821
  Object.defineProperty(exports, 'exportA2UICatalog', {
5847
5822
  enumerable: true,
5848
5823
  get: function () {
@@ -5850,8 +5825,8 @@ Object.defineProperty(exports, 'exportA2UICatalog', {
5850
5825
  }
5851
5826
  });
5852
5827
  exports.standardUI = standardUI;
5853
- exports.useGenerativeUIAccessibility = require_MarkdownSurfaces.useGenerativeUIAccessibility;
5854
- exports.useGenerativeUIFunction = require_MarkdownSurfaces.useGenerativeUIFunction;
5855
- exports.useGenerativeUIRuntime = require_MarkdownSurfaces.useGenerativeUIRuntime;
5856
- exports.useGenerativeUIState = require_MarkdownSurfaces.useGenerativeUIState;
5828
+ exports.useGenerativeUIAccessibility = require_chat.useGenerativeUIAccessibility;
5829
+ exports.useGenerativeUIFunction = require_chat.useGenerativeUIFunction;
5830
+ exports.useGenerativeUIRuntime = require_chat.useGenerativeUIRuntime;
5831
+ exports.useGenerativeUIState = require_chat.useGenerativeUIState;
5857
5832
  //# sourceMappingURL=generative-ui.cjs.map