@copilotkit/react-core 2.0.0-rc.43 → 2.0.0-rc.45
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/dist/{MarkdownRendererContext-C2J_lgqF.d.cts → MarkdownRendererContext-QFCldfW_.d.cts} +1 -1
- package/dist/{MarkdownRendererContext-C2J_lgqF.d.cts.map → MarkdownRendererContext-QFCldfW_.d.cts.map} +1 -1
- package/dist/{MarkdownRendererContext-CytkPOAJ.d.mts → MarkdownRendererContext-aK63ZFd-.d.mts} +1 -1
- package/dist/{MarkdownRendererContext-CytkPOAJ.d.mts.map → MarkdownRendererContext-aK63ZFd-.d.mts.map} +1 -1
- package/dist/{MarkdownSurfaces-DytbRzj2.cjs → MarkdownSurfaces-Do948N1P.cjs} +2 -2
- package/dist/{MarkdownSurfaces-DytbRzj2.cjs.map → MarkdownSurfaces-Do948N1P.cjs.map} +1 -1
- package/dist/{MarkdownSurfaces-DlYqJkAE.mjs → MarkdownSurfaces-rtE9wRUP.mjs} +2 -2
- package/dist/{MarkdownSurfaces-DlYqJkAE.mjs.map → MarkdownSurfaces-rtE9wRUP.mjs.map} +1 -1
- package/dist/{ProviderMarkdown-i_i2osOH.cjs → ProviderMarkdown-D0eI0aPo.cjs} +23 -1
- package/dist/ProviderMarkdown-D0eI0aPo.cjs.map +1 -0
- package/dist/{ProviderMarkdown-BZaPDROY.mjs → ProviderMarkdown-epL7F3Vt.mjs} +19 -3
- package/dist/ProviderMarkdown-epL7F3Vt.mjs.map +1 -0
- package/dist/accessibility-BLK-gE0R.mjs.map +1 -1
- package/dist/accessibility-GnodqxkH.cjs.map +1 -1
- package/dist/chat-BZ_bvAkg.d.mts +38 -0
- package/dist/chat-BZ_bvAkg.d.mts.map +1 -0
- package/dist/chat-CpZVyF_t.d.cts +38 -0
- package/dist/chat-CpZVyF_t.d.cts.map +1 -0
- package/dist/generative-ui/map.cjs +26 -0
- package/dist/generative-ui/map.cjs.map +1 -0
- package/dist/generative-ui/map.d.cts +23 -0
- package/dist/generative-ui/map.d.cts.map +1 -0
- package/dist/generative-ui/map.d.mts +23 -0
- package/dist/generative-ui/map.d.mts.map +1 -0
- package/dist/generative-ui/map.mjs +24 -0
- package/dist/generative-ui/map.mjs.map +1 -0
- package/dist/generative-ui/native.d.cts +3 -2
- package/dist/generative-ui/native.d.cts.map +1 -1
- package/dist/generative-ui/native.d.mts +3 -2
- package/dist/generative-ui/native.d.mts.map +1 -1
- package/dist/generative-ui.cjs +2 -2
- package/dist/generative-ui.d.cts +5 -4
- package/dist/generative-ui.d.cts.map +1 -1
- package/dist/generative-ui.d.mts +5 -4
- package/dist/generative-ui.d.mts.map +1 -1
- package/dist/generative-ui.mjs +2 -2
- package/dist/{hooks-DqsOIh8A.d.mts → hooks-D2H3iL0N.d.mts} +2 -2
- package/dist/{hooks-DqsOIh8A.d.mts.map → hooks-D2H3iL0N.d.mts.map} +1 -1
- package/dist/{hooks-2Ur8NQhj.d.cts → hooks-Dy8HeEdr.d.cts} +2 -2
- package/dist/{hooks-2Ur8NQhj.d.cts.map → hooks-Dy8HeEdr.d.cts.map} +1 -1
- package/dist/index.cjs +12 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +4 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +11 -25
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +44 -21
- package/dist/index.umd.js.map +1 -1
- package/dist/{chat-C5XWeO1M.d.mts → runtime-context-B7f4M85q.d.mts} +21 -39
- package/dist/runtime-context-B7f4M85q.d.mts.map +1 -0
- package/dist/{chat-DtHs4alO.d.cts → runtime-context-CIkZS0ap.d.cts} +21 -39
- package/dist/runtime-context-CIkZS0ap.d.cts.map +1 -0
- package/dist/{standard-s8jByRiE.mjs → standard-CSBR4FhM.mjs} +31 -15
- package/dist/standard-CSBR4FhM.mjs.map +1 -0
- package/dist/{standard-CqGTZUZy.cjs → standard-DBjcBGyd.cjs} +31 -15
- package/dist/standard-DBjcBGyd.cjs.map +1 -0
- package/package.json +14 -7
- package/dist/ProviderMarkdown-BZaPDROY.mjs.map +0 -1
- package/dist/ProviderMarkdown-i_i2osOH.cjs.map +0 -1
- package/dist/chat-C5XWeO1M.d.mts.map +0 -1
- package/dist/chat-DtHs4alO.d.cts.map +0 -1
- package/dist/standard-CqGTZUZy.cjs.map +0 -1
- package/dist/standard-s8jByRiE.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-CpZVyF_t.d.cts","names":[],"sources":["../src/types/react-activity-message-renderer.ts","../src/generative-ui/chat.tsx"],"mappings":";;;;;;;;;;AAaA;;;KAAY,4BAAA,qBACV,0BAAA,CACE,gBAAA,EACA,KAAA,CAAM,aAAA,CAAc,0BAAA,CAA2B,gBAAA;;;UCSlC,4BAAA;EACf,SAAA;EACA,WAAA;EDdsC;;;;ECmBtC,KAAA,GAAQ,KAAA;EDhBN;ECkBF,QAAA,EAAU,6BAAA;EACV,QAAA,EAAU,SAAA;AAAA;AAAA,iBAOI,2BAAA,CAAA;EACd,SAAA;EACA,KAAA;EACA;AAAA,GACC,4BAAA,GAA4B,kBAAA,CAAA,GAAA,CAAA,OAAA;;iBA0Ef,4BAAA,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
//#region src/generative-ui/map.ts
|
|
6
|
+
/**
|
|
7
|
+
* Experimental. Draws the standard `Map` component with MapLibre GL. The
|
|
8
|
+
* library loads in its own chunk the first time a map renders. Without it,
|
|
9
|
+
* Map shows its markers as a list. Add `maplibre-gl` to the app.
|
|
10
|
+
*
|
|
11
|
+
* Map adds the few maplibre-gl styles that markers and popups need, so the
|
|
12
|
+
* app does not import `maplibre-gl.css`.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* import { standardUI } from "@copilotkit/react-core/generative-ui";
|
|
17
|
+
* import { loadMapLibre } from "@copilotkit/react-core/generative-ui/map";
|
|
18
|
+
*
|
|
19
|
+
* <CopilotKitProvider generativeUI={{ ui: standardUI, map: loadMapLibre }} />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
const loadMapLibre = () => import("maplibre-gl");
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
exports.loadMapLibre = loadMapLibre;
|
|
26
|
+
//# sourceMappingURL=map.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map.cjs","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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { r as GenerativeUILibraryLoader } from "../runtime-context-CIkZS0ap.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/generative-ui/map.d.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
|
+
declare const loadMapLibre: GenerativeUILibraryLoader;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { type GenerativeUILibraryLoader, loadMapLibre };
|
|
23
|
+
//# sourceMappingURL=map.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map.d.cts","names":[],"sources":["../../src/generative-ui/map.ts"],"mappings":";;;;;AAuBA;;;;;;;;;;;;;;cAAa,YAAA,EAAc,yBAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { r as GenerativeUILibraryLoader } from "../runtime-context-B7f4M85q.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/generative-ui/map.d.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
|
+
declare const loadMapLibre: GenerativeUILibraryLoader;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { type GenerativeUILibraryLoader, loadMapLibre };
|
|
23
|
+
//# sourceMappingURL=map.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map.d.mts","names":[],"sources":["../../src/generative-ui/map.ts"],"mappings":";;;;;AAuBA;;;;;;;;;;;;;;cAAa,YAAA,EAAc,yBAAA"}
|
|
@@ -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,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as childList, i as child, n as useGenerativeUIState, r as useManagerVersion, t as useGenerativeUIFunction } from "../hooks-
|
|
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":"
|
|
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 {
|
|
2
|
-
import { a as childList, i as child, n as useGenerativeUIState, r as useManagerVersion, t as useGenerativeUIFunction } from "../hooks-
|
|
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":"
|
|
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"}
|
package/dist/generative-ui.cjs
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
const require_accessibility = require('./accessibility-GnodqxkH.cjs');
|
|
5
5
|
const require_chat = require('./chat-CkFZMo5E.cjs');
|
|
6
|
-
const require_MarkdownSurfaces = require('./MarkdownSurfaces-
|
|
6
|
+
const require_MarkdownSurfaces = require('./MarkdownSurfaces-Do948N1P.cjs');
|
|
7
7
|
const require_refs = require('./refs-B5Dn59Pn.cjs');
|
|
8
|
-
const require_standard = require('./standard-
|
|
8
|
+
const require_standard = require('./standard-DBjcBGyd.cjs');
|
|
9
9
|
let react = require("react");
|
|
10
10
|
react = require_accessibility.__toESM(react);
|
|
11
11
|
let react_jsx_runtime = require("react/jsx-runtime");
|
package/dist/generative-ui.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as childList, i as child, n as useGenerativeUIState, t as useGenerativeUIFunction } from "./hooks-
|
|
3
|
-
import { t as
|
|
1
|
+
import { C as GenerativeUIFunctionInput, D as createGenerativeUI, E as GenerativeUIStateOf, S as GenerativeUIFunctionDefinition, T as GenerativeUISlotKind, _ as GenerativeUIComponentName, 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, p as useGenerativeUIAccessibility, r as GenerativeUILibraryLoader, s as GenerativeUITheme, t as GenerativeUIConfig, 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, t as useGenerativeUIFunction } from "./hooks-Dy8HeEdr.cjs";
|
|
3
|
+
import { n as GenerativeUIChatSurfaceProps, t as DefaultGenerativeUIChatCard } from "./chat-CpZVyF_t.cjs";
|
|
4
|
+
import { t as DefaultMarkdownRendererProps } from "./MarkdownRendererContext-QFCldfW_.cjs";
|
|
4
5
|
import { ReactNode } from "react";
|
|
5
6
|
import * as _copilotkit_shared_generative_ui0 from "@copilotkit/shared/generative-ui";
|
|
6
7
|
import { ExportA2UICatalogOptions, GenerativeUIError, GenerativeUIErrorCode, GenerativeUIErrorInfo, GenerativeUIEventHandler, GenerativeUIInvokeResult, GenerativeUIThemeValues, GenerativeUIThemeVariable, GenerativeUIThemeVariables, exportA2UICatalog } from "@copilotkit/shared/generative-ui";
|
|
@@ -2630,5 +2631,5 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
|
|
|
2630
2631
|
Tabs: readonly ["selectedIndex"];
|
|
2631
2632
|
}>>;
|
|
2632
2633
|
//#endregion
|
|
2633
|
-
export { type CreateGenerativeUIConfig, DefaultGenerativeUIChatCard, type ExportA2UICatalogOptions, type GenerativeUI, type GenerativeUIAccessibility, type GenerativeUIAriaAttributes, type GenerativeUIChatSurfaceProps, type GenerativeUIComponentDefinition, type GenerativeUIComponentName, type GenerativeUIComponentProps, type GenerativeUIConfig, GenerativeUIError, type GenerativeUIErrorBoundaryConfig, type GenerativeUIErrorCode, type GenerativeUIErrorInfo, type GenerativeUIEventDefinition, type GenerativeUIEventHandler, type GenerativeUIFunctionArgs, type GenerativeUIFunctionDefinition, type GenerativeUIFunctionInput, type GenerativeUIFunctionName, type GenerativeUIInvokeResult, type GenerativeUIMarkdownConfig, type GenerativeUISlotKind, type GenerativeUIStateOf, GenerativeUISurface, type GenerativeUISurfaceProps, type GenerativeUITheme, type GenerativeUIThemeValues, type GenerativeUIThemeVariable, type GenerativeUIThemeVariables, type GenerativeUIToolConfig, MarkdownSurfaces, type MarkdownSurfacesProps, child, childList, createGenerativeUI, exportA2UICatalog, standardUI, useGenerativeUIAccessibility, useGenerativeUIFunction, useGenerativeUIRuntime, useGenerativeUIState };
|
|
2634
|
+
export { type CreateGenerativeUIConfig, DefaultGenerativeUIChatCard, type ExportA2UICatalogOptions, type GenerativeUI, type GenerativeUIAccessibility, type GenerativeUIAriaAttributes, type GenerativeUIChatSurfaceProps, type GenerativeUIComponentDefinition, type GenerativeUIComponentName, type GenerativeUIComponentProps, type GenerativeUIConfig, GenerativeUIError, type GenerativeUIErrorBoundaryConfig, type GenerativeUIErrorCode, type GenerativeUIErrorInfo, type GenerativeUIEventDefinition, type GenerativeUIEventHandler, type GenerativeUIFunctionArgs, type GenerativeUIFunctionDefinition, type GenerativeUIFunctionInput, type GenerativeUIFunctionName, type GenerativeUIInvokeResult, type GenerativeUILibraryLoader, type GenerativeUIMarkdownConfig, type GenerativeUISlotKind, type GenerativeUIStateOf, GenerativeUISurface, type GenerativeUISurfaceProps, type GenerativeUITheme, type GenerativeUIThemeValues, type GenerativeUIThemeVariable, type GenerativeUIThemeVariables, type GenerativeUIToolConfig, MarkdownSurfaces, type MarkdownSurfacesProps, child, childList, createGenerativeUI, exportA2UICatalog, standardUI, useGenerativeUIAccessibility, useGenerativeUIFunction, useGenerativeUIRuntime, useGenerativeUIState };
|
|
2634
2635
|
//# sourceMappingURL=generative-ui.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generative-ui.d.cts","names":[],"sources":["../src/generative-ui/GenerativeUISurface.tsx","../src/generative-ui/markdown/MarkdownSurfaces.tsx","../src/generative-ui/standard/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"generative-ui.d.cts","names":[],"sources":["../src/generative-ui/GenerativeUISurface.tsx","../src/generative-ui/markdown/MarkdownSurfaces.tsx","../src/generative-ui/standard/index.ts"],"mappings":";;;;;;;;;;;;UAWU,4BAAA;;EAER,EAAA;;;;;EAKA,WAAA;;EAEA,QAAA,GAAW,SAAA;EACX,SAAA;EAVoC;;;;;;EAiBpC,UAAA;AAAA;;;;AAOF;KAAY,wBAAA,YACC,YAAA,QAAoB,YAAA,SAC7B,4BAAA;EAFgC;;;;EAS5B,EAAA,EAAI,EAAA;EAO4C;;;;;;EAAhD,UAAA,YAAsB,yBAAA,CAA0B,EAAA;AAAA;EAEhD,EAAA;EAAgB,UAAA;AAAA;;;;;;;AAmBxB;;;;;;;;iBAAgB,mBAAA,YACH,YAAA,QAAoB,YAAA,MAAA,CAAA;EAE/B,EAAA;EACA,WAAA;EACA,EAAA;EACA,UAAA;EACA,QAAA;EACA,SAAA;EACA;AAAA,GACC,wBAAA,CAAyB,EAAA,IAAG,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;KCjE1B,aAAA,GAAgB,4BAAA;;;;;;;KAkET,qBAAA,GAAwB,aAAA;EDxE1B,sEC0ER,OAAA;EAEA,SAAA,UD1EA;EC4EA,WAAA;AAAA;;;;;;ADtDF;;;;;;;;;;;;;iBCiKgB,gBAAA,CAAA;EACd,OAAA;EACA,SAAA;EACA,WAAA;EAAA,GACG;AAAA,GACF,qBAAA,GAAqB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;;;;;;;;ADnMiD;;;;;;;;;;;;cEyC5D,UAAA,EAAU,YAAA,mCAAA,6BAAA;;UAGrB,GAAA,CAAA,SAAA"}
|
package/dist/generative-ui.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as childList, i as child, n as useGenerativeUIState, t as useGenerativeUIFunction } from "./hooks-
|
|
3
|
-
import { t as
|
|
1
|
+
import { C as GenerativeUIFunctionInput, D as createGenerativeUI, E as GenerativeUIStateOf, S as GenerativeUIFunctionDefinition, T as GenerativeUISlotKind, _ as GenerativeUIComponentName, 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, p as useGenerativeUIAccessibility, r as GenerativeUILibraryLoader, s as GenerativeUITheme, t as GenerativeUIConfig, 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, t as useGenerativeUIFunction } from "./hooks-D2H3iL0N.mjs";
|
|
3
|
+
import { n as GenerativeUIChatSurfaceProps, t as DefaultGenerativeUIChatCard } from "./chat-BZ_bvAkg.mjs";
|
|
4
|
+
import { t as DefaultMarkdownRendererProps } from "./MarkdownRendererContext-aK63ZFd-.mjs";
|
|
4
5
|
import { ReactNode } from "react";
|
|
5
6
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
7
|
import * as _copilotkit_shared_generative_ui0 from "@copilotkit/shared/generative-ui";
|
|
@@ -2630,5 +2631,5 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
|
|
|
2630
2631
|
Tabs: readonly ["selectedIndex"];
|
|
2631
2632
|
}>>;
|
|
2632
2633
|
//#endregion
|
|
2633
|
-
export { type CreateGenerativeUIConfig, DefaultGenerativeUIChatCard, type ExportA2UICatalogOptions, type GenerativeUI, type GenerativeUIAccessibility, type GenerativeUIAriaAttributes, type GenerativeUIChatSurfaceProps, type GenerativeUIComponentDefinition, type GenerativeUIComponentName, type GenerativeUIComponentProps, type GenerativeUIConfig, GenerativeUIError, type GenerativeUIErrorBoundaryConfig, type GenerativeUIErrorCode, type GenerativeUIErrorInfo, type GenerativeUIEventDefinition, type GenerativeUIEventHandler, type GenerativeUIFunctionArgs, type GenerativeUIFunctionDefinition, type GenerativeUIFunctionInput, type GenerativeUIFunctionName, type GenerativeUIInvokeResult, type GenerativeUIMarkdownConfig, type GenerativeUISlotKind, type GenerativeUIStateOf, GenerativeUISurface, type GenerativeUISurfaceProps, type GenerativeUITheme, type GenerativeUIThemeValues, type GenerativeUIThemeVariable, type GenerativeUIThemeVariables, type GenerativeUIToolConfig, MarkdownSurfaces, type MarkdownSurfacesProps, child, childList, createGenerativeUI, exportA2UICatalog, standardUI, useGenerativeUIAccessibility, useGenerativeUIFunction, useGenerativeUIRuntime, useGenerativeUIState };
|
|
2634
|
+
export { type CreateGenerativeUIConfig, DefaultGenerativeUIChatCard, type ExportA2UICatalogOptions, type GenerativeUI, type GenerativeUIAccessibility, type GenerativeUIAriaAttributes, type GenerativeUIChatSurfaceProps, type GenerativeUIComponentDefinition, type GenerativeUIComponentName, type GenerativeUIComponentProps, type GenerativeUIConfig, GenerativeUIError, type GenerativeUIErrorBoundaryConfig, type GenerativeUIErrorCode, type GenerativeUIErrorInfo, type GenerativeUIEventDefinition, type GenerativeUIEventHandler, type GenerativeUIFunctionArgs, type GenerativeUIFunctionDefinition, type GenerativeUIFunctionInput, type GenerativeUIFunctionName, type GenerativeUIInvokeResult, type GenerativeUILibraryLoader, type GenerativeUIMarkdownConfig, type GenerativeUISlotKind, type GenerativeUIStateOf, GenerativeUISurface, type GenerativeUISurfaceProps, type GenerativeUITheme, type GenerativeUIThemeValues, type GenerativeUIThemeVariable, type GenerativeUIThemeVariables, type GenerativeUIToolConfig, MarkdownSurfaces, type MarkdownSurfacesProps, child, childList, createGenerativeUI, exportA2UICatalog, standardUI, useGenerativeUIAccessibility, useGenerativeUIFunction, useGenerativeUIRuntime, useGenerativeUIState };
|
|
2634
2635
|
//# sourceMappingURL=generative-ui.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generative-ui.d.mts","names":[],"sources":["../src/generative-ui/GenerativeUISurface.tsx","../src/generative-ui/markdown/MarkdownSurfaces.tsx","../src/generative-ui/standard/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"generative-ui.d.mts","names":[],"sources":["../src/generative-ui/GenerativeUISurface.tsx","../src/generative-ui/markdown/MarkdownSurfaces.tsx","../src/generative-ui/standard/index.ts"],"mappings":";;;;;;;;;;;;UAWU,4BAAA;;EAER,EAAA;;;;;EAKA,WAAA;;EAEA,QAAA,GAAW,SAAA;EACX,SAAA;EAVoC;;;;;;EAiBpC,UAAA;AAAA;;;;AAOF;KAAY,wBAAA,YACC,YAAA,QAAoB,YAAA,SAC7B,4BAAA;EAFgC;;;;EAS5B,EAAA,EAAI,EAAA;EAO4C;;;;;;EAAhD,UAAA,YAAsB,yBAAA,CAA0B,EAAA;AAAA;EAEhD,EAAA;EAAgB,UAAA;AAAA;;;;;;;AAmBxB;;;;;;;;iBAAgB,mBAAA,YACH,YAAA,QAAoB,YAAA,MAAA,CAAA;EAE/B,EAAA;EACA,WAAA;EACA,EAAA;EACA,UAAA;EACA,QAAA;EACA,SAAA;EACA;AAAA,GACC,wBAAA,CAAyB,EAAA,IAAG,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;KCjE1B,aAAA,GAAgB,4BAAA;;;;;;;KAkET,qBAAA,GAAwB,aAAA;EDxE1B,sEC0ER,OAAA;EAEA,SAAA,UD1EA;EC4EA,WAAA;AAAA;;;;;;ADtDF;;;;;;;;;;;;;iBCiKgB,gBAAA,CAAA;EACd,OAAA;EACA,SAAA;EACA,WAAA;EAAA,GACG;AAAA,GACF,qBAAA,GAAqB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;;;;;;;;ADnMiD;;;;;;;;;;;;cEyC5D,UAAA,EAAU,YAAA,mCAAA,6BAAA;;UAGrB,GAAA,CAAA,SAAA"}
|
package/dist/generative-ui.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { t as standardUI } from "./standard-
|
|
3
|
+
import { t as standardUI } from "./standard-CSBR4FhM.mjs";
|
|
4
4
|
import { a as useGenerativeUIAccessibility, c as createGenerativeUI, m as useRequiredGenerativeUIRuntime, p as useGenerativeUIRuntime } from "./accessibility-BLK-gE0R.mjs";
|
|
5
5
|
import { g as useManagerVersion, h as useGenerativeUIState, m as useGenerativeUIFunction, o as SurfaceView, t as DefaultGenerativeUIChatCard } from "./chat-B1zczXUD.mjs";
|
|
6
|
-
import { t as MarkdownSurfaces } from "./MarkdownSurfaces-
|
|
6
|
+
import { t as MarkdownSurfaces } from "./MarkdownSurfaces-rtE9wRUP.mjs";
|
|
7
7
|
import { n as childList, t as child } from "./refs-BW15wX_V.mjs";
|
|
8
8
|
import React, { useEffect, useLayoutEffect, useRef } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as GenerativeUIStateOf, a as GenerativeUIRuntime, h as GenerativeUI$1, w as GenerativeUIFunctionName, x as GenerativeUIFunctionArgs, y as GenerativeUIDefinitionsOf } from "./runtime-context-B7f4M85q.mjs";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import { SchemaInput } from "@copilotkit/shared/generative-ui";
|
|
4
4
|
import * as zod from "zod";
|
|
@@ -81,4 +81,4 @@ declare function useGenerativeUIState<UI extends GenerativeUI$1<any>, Key extend
|
|
|
81
81
|
declare function useGenerativeUIFunction<UI extends GenerativeUI$1<any>, Name extends GenerativeUIFunctionName<UI>>(ui: UI, name: Name, handler: (args: GenerativeUIFunctionArgs<UI, Name>) => unknown): void;
|
|
82
82
|
//#endregion
|
|
83
83
|
export { childList$1 as a, child$1 as i, useGenerativeUIState as n, useManagerVersion as r, useGenerativeUIFunction as t };
|
|
84
|
-
//# sourceMappingURL=hooks-
|
|
84
|
+
//# sourceMappingURL=hooks-D2H3iL0N.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks-
|
|
1
|
+
{"version":3,"file":"hooks-D2H3iL0N.d.mts","names":[],"sources":["../src/generative-ui/refs.ts","../src/generative-ui/hooks.ts"],"mappings":";;;;;;;;;;;;;AAkBA;;;;;;iBAAgB,OAAA,CAAM,WAAA,YAAoB,GAAA,CAAA,OAAA,CAArB,GAAA,CAAqB,SAAA,EAAA,GAAA,CAAA,YAAA,CAAA,SAAA;;;;;;;iBAU1B,WAAA,CAAU,WAAA,gBAAoB,OAAA,CAAA,GAAA,CAAA,QAAA,WAAA,GAAA,CAAA,QAAA,CAArB,GAAA,CAAqB,SAAA,OAAA,SAAA;eAAA,GAAA,CAAA,SAAA;;;;;;;;;iBCR9B,iBAAA,CAAkB,OAAA,EAAS,mBAAA;;KAStC,UAAA,YACQ,cAAA,yBACO,mBAAA,CAAoB,EAAA,KACpC,WAAA,CAAY,yBAAA,CAA0B,EAAA,WAAa,GAAA;ADdvD;;;;;;;;;;;;;;;;AAUA;;AAVA,iBCkCgB,oBAAA,YACH,cAAA,yBACO,mBAAA,CAAoB,EAAA,WAAA,CACtC,EAAA,EAAI,EAAA,EAAI,GAAA,EAAK,GAAA,EAAK,KAAA,EAAO,UAAA,CAAW,EAAA,EAAI,GAAA;;;;;;;;;;;;;;;;;;;;;;;iBA0D1B,uBAAA,YACH,cAAA,oBACE,wBAAA,CAAyB,EAAA,EAAA,CAEtC,EAAA,EAAI,EAAA,EACJ,IAAA,EAAM,IAAA,EACN,OAAA,GAAU,IAAA,EAAM,wBAAA,CAAyB,EAAA,EAAI,IAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as GenerativeUIStateOf, a as GenerativeUIRuntime, h as GenerativeUI$1, w as GenerativeUIFunctionName, x as GenerativeUIFunctionArgs, y as GenerativeUIDefinitionsOf } from "./runtime-context-CIkZS0ap.cjs";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import { SchemaInput } from "@copilotkit/shared/generative-ui";
|
|
4
4
|
import * as zod from "zod";
|
|
@@ -81,4 +81,4 @@ declare function useGenerativeUIState<UI extends GenerativeUI$1<any>, Key extend
|
|
|
81
81
|
declare function useGenerativeUIFunction<UI extends GenerativeUI$1<any>, Name extends GenerativeUIFunctionName<UI>>(ui: UI, name: Name, handler: (args: GenerativeUIFunctionArgs<UI, Name>) => unknown): void;
|
|
82
82
|
//#endregion
|
|
83
83
|
export { childList as a, child as i, useGenerativeUIState as n, useManagerVersion as r, useGenerativeUIFunction as t };
|
|
84
|
-
//# sourceMappingURL=hooks-
|
|
84
|
+
//# sourceMappingURL=hooks-Dy8HeEdr.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks-
|
|
1
|
+
{"version":3,"file":"hooks-Dy8HeEdr.d.cts","names":[],"sources":["../src/generative-ui/refs.ts","../src/generative-ui/hooks.ts"],"mappings":";;;;;;;;;;;;;AAkBA;;;;;;iBAAgB,KAAA,CAAM,WAAA,YAAoB,GAAA,CAAA,OAAA,CAArB,GAAA,CAAqB,SAAA,EAAA,GAAA,CAAA,YAAA,CAAA,SAAA;;;;;;;iBAU1B,SAAA,CAAU,WAAA,gBAAoB,OAAA,CAAA,GAAA,CAAA,QAAA,WAAA,GAAA,CAAA,QAAA,CAArB,GAAA,CAAqB,SAAA,OAAA,SAAA;eAAA,GAAA,CAAA,SAAA;;;;;;;;;iBCR9B,iBAAA,CAAkB,OAAA,EAAS,mBAAA;;KAStC,UAAA,YACQ,cAAA,yBACO,mBAAA,CAAoB,EAAA,KACpC,WAAA,CAAY,yBAAA,CAA0B,EAAA,WAAa,GAAA;ADdvD;;;;;;;;;;;;;;;;AAUA;;AAVA,iBCkCgB,oBAAA,YACH,cAAA,yBACO,mBAAA,CAAoB,EAAA,WAAA,CACtC,EAAA,EAAI,EAAA,EAAI,GAAA,EAAK,GAAA,EAAK,KAAA,EAAO,UAAA,CAAW,EAAA,EAAI,GAAA;;;;;;;;;;;;;;;;;;;;;;;iBA0D1B,uBAAA,YACH,cAAA,oBACE,wBAAA,CAAyB,EAAA,EAAA,CAEtC,EAAA,EAAI,EAAA,EACJ,IAAA,EAAM,IAAA,EACN,OAAA,GAAU,IAAA,EAAM,wBAAA,CAAyB,EAAA,EAAI,IAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
const require_accessibility = require('./accessibility-GnodqxkH.cjs');
|
|
5
|
-
const require_ProviderMarkdown = require('./ProviderMarkdown-
|
|
5
|
+
const require_ProviderMarkdown = require('./ProviderMarkdown-D0eI0aPo.cjs');
|
|
6
6
|
const require_chat = require('./chat-CkFZMo5E.cjs');
|
|
7
7
|
const require_use_generative_ui_root = require('./use-generative-ui-root-CIp0ytE6.cjs');
|
|
8
|
-
const require_MarkdownSurfaces = require('./MarkdownSurfaces-
|
|
8
|
+
const require_MarkdownSurfaces = require('./MarkdownSurfaces-Do948N1P.cjs');
|
|
9
9
|
let _copilotkit_core = require("@copilotkit/core");
|
|
10
10
|
let react = require("react");
|
|
11
11
|
react = require_accessibility.__toESM(react);
|
|
@@ -28,22 +28,6 @@ let _copilotkit_web_components_threads_drawer = require("@copilotkit/web-compone
|
|
|
28
28
|
let _ag_ui_core_schemas = require("@ag-ui/core/schemas");
|
|
29
29
|
let _ag_ui_client = require("@ag-ui/client");
|
|
30
30
|
|
|
31
|
-
//#region src/lib/use-latest-ref.ts
|
|
32
|
-
const useIsomorphicLayoutEffect = typeof window === "undefined" ? react.useEffect : react.useLayoutEffect;
|
|
33
|
-
/**
|
|
34
|
-
* A ref that holds the latest `value`, for callbacks that run after render
|
|
35
|
-
* (event handlers, controller callbacks). The ref changes in a layout effect,
|
|
36
|
-
* not during render, so a render that React throws away leaves it alone.
|
|
37
|
-
*/
|
|
38
|
-
function useLatestRef(value) {
|
|
39
|
-
const ref = (0, react.useRef)(value);
|
|
40
|
-
useIsomorphicLayoutEffect(() => {
|
|
41
|
-
ref.current = value;
|
|
42
|
-
});
|
|
43
|
-
return ref;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
//#endregion
|
|
47
31
|
//#region src/components/ui/button.tsx
|
|
48
32
|
const variantClasses = {
|
|
49
33
|
default: "cpk-button-default",
|
|
@@ -255,7 +239,7 @@ function CopilotChatInput({ mode = "input", onSubmitMessage, onStop, isRunning =
|
|
|
255
239
|
const layout = (0, react.useSyncExternalStore)(autosize.subscribe, autosize.getSnapshot, autosize.getSnapshot);
|
|
256
240
|
const isExpanded = mode === "input" && layout === "expanded";
|
|
257
241
|
const previousModalStateRef = (0, react.useRef)(void 0);
|
|
258
|
-
const onChangeRef = useLatestRef(onChange);
|
|
242
|
+
const onChangeRef = require_ProviderMarkdown.useLatestRef(onChange);
|
|
259
243
|
const [composer] = (0, react.useState)(() => new _copilotkit_core.ɵComposerController({
|
|
260
244
|
initialValue: value ?? "",
|
|
261
245
|
onChange: (next) => onChangeRef.current?.(next)
|
|
@@ -821,7 +805,7 @@ function ɵuseOwnedCore(ref, create) {
|
|
|
821
805
|
|
|
822
806
|
//#endregion
|
|
823
807
|
//#region package.json
|
|
824
|
-
var version$1 = "2.0.0-rc.
|
|
808
|
+
var version$1 = "2.0.0-rc.45";
|
|
825
809
|
|
|
826
810
|
//#endregion
|
|
827
811
|
//#region src/components/CopilotKitInspector.tsx
|
|
@@ -1119,7 +1103,7 @@ const OpenGenerativeUIToolRenderer = function OpenGenerativeUIToolRenderer(props
|
|
|
1119
1103
|
let standardUIPromise;
|
|
1120
1104
|
function loadStandardUI() {
|
|
1121
1105
|
if (!standardUIPromise) {
|
|
1122
|
-
standardUIPromise = Promise.resolve().then(() => require("./standard-
|
|
1106
|
+
standardUIPromise = Promise.resolve().then(() => require("./standard-DBjcBGyd.cjs")).then((n) => n.standard_exports).then((module) => module.standardUI);
|
|
1123
1107
|
standardUIPromise.catch(() => {
|
|
1124
1108
|
standardUIPromise = void 0;
|
|
1125
1109
|
});
|
|
@@ -1128,9 +1112,10 @@ function loadStandardUI() {
|
|
|
1128
1112
|
}
|
|
1129
1113
|
/**
|
|
1130
1114
|
* The generative UI config of the provider. That is the `generativeUI` prop
|
|
1131
|
-
* when
|
|
1132
|
-
*
|
|
1133
|
-
*
|
|
1115
|
+
* when it has a `ui`. Otherwise, when the runtime turns generative UI on, it
|
|
1116
|
+
* is the standard UI for the agents of the runtime, once the standard UI has
|
|
1117
|
+
* loaded, with the other options of the prop (such as `map` or `theme`).
|
|
1118
|
+
* `undefined` while generative UI is off, or still loading.
|
|
1134
1119
|
*/
|
|
1135
1120
|
function useStandardUIFallback(generativeUI, runtimeInfo) {
|
|
1136
1121
|
const fallback = (0, _copilotkit_core.ɵresolveGenerativeUIDefault)({
|
|
@@ -1154,11 +1139,12 @@ function useStandardUIFallback(generativeUI, runtimeInfo) {
|
|
|
1154
1139
|
};
|
|
1155
1140
|
}, [active, standardUI]);
|
|
1156
1141
|
return (0, react.useMemo)(() => {
|
|
1157
|
-
if (generativeUI) return generativeUI;
|
|
1142
|
+
if (generativeUI?.ui) return generativeUI;
|
|
1158
1143
|
if (!active || !standardUI) return void 0;
|
|
1159
1144
|
return {
|
|
1145
|
+
...generativeUI,
|
|
1160
1146
|
ui: standardUI,
|
|
1161
|
-
agentIds
|
|
1147
|
+
agentIds: generativeUI?.agentIds ?? agentIds
|
|
1162
1148
|
};
|
|
1163
1149
|
}, [
|
|
1164
1150
|
generativeUI,
|