@kuntur/a2a-carbon-chat-adapter 0.1.4 → 0.1.5
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/index.cjs +38 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +38 -46
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +9 -0
- package/package.json +1 -1
- package/dist/server.d.cts +0 -40
- package/dist/server.d.ts +0 -40
package/dist/index.js
CHANGED
|
@@ -1914,7 +1914,8 @@ function A2AChat({
|
|
|
1914
1914
|
{
|
|
1915
1915
|
...{
|
|
1916
1916
|
debug: false,
|
|
1917
|
-
aiEnabled: true
|
|
1917
|
+
aiEnabled: true,
|
|
1918
|
+
injectCarbonTheme: "white"
|
|
1918
1919
|
},
|
|
1919
1920
|
header: {
|
|
1920
1921
|
title: agent?.name ?? "AI Assistant"
|
|
@@ -1939,53 +1940,44 @@ function A2AChat({
|
|
|
1939
1940
|
] });
|
|
1940
1941
|
}
|
|
1941
1942
|
if (ChatCustomElement) {
|
|
1942
|
-
return /* @__PURE__ */ jsxs(
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
messaging: {
|
|
1974
|
-
skipWelcome: true,
|
|
1975
|
-
messageLoadingIndicatorTimeoutSecs: 0,
|
|
1976
|
-
customSendMessage: async (request, _options, _instance) => {
|
|
1977
|
-
const text = request?.input?.text;
|
|
1978
|
-
if (text) {
|
|
1979
|
-
await handleSendMessage(text);
|
|
1980
|
-
}
|
|
1981
|
-
}
|
|
1943
|
+
return /* @__PURE__ */ jsxs("div", { className: `a2a-chat a2a-chat--${layout} ${className}`, children: [
|
|
1944
|
+
/* @__PURE__ */ jsx(
|
|
1945
|
+
ChatCustomElement,
|
|
1946
|
+
{
|
|
1947
|
+
...{
|
|
1948
|
+
className: "a2a-chat__element",
|
|
1949
|
+
debug: false,
|
|
1950
|
+
aiEnabled: true,
|
|
1951
|
+
openChatByDefault: true,
|
|
1952
|
+
injectCarbonTheme: "white"
|
|
1953
|
+
},
|
|
1954
|
+
header: {
|
|
1955
|
+
title: agent?.name ?? "AI Assistant",
|
|
1956
|
+
showMinimize: layout !== "fullscreen"
|
|
1957
|
+
},
|
|
1958
|
+
launcher: {
|
|
1959
|
+
isOn: layout === "float"
|
|
1960
|
+
},
|
|
1961
|
+
layout: {
|
|
1962
|
+
showFrame: layout === "float",
|
|
1963
|
+
showCloseAndRestartButton: layout !== "fullscreen"
|
|
1964
|
+
},
|
|
1965
|
+
onAfterRender: handleAfterRender,
|
|
1966
|
+
renderUserDefinedResponse: renderCustomResponse,
|
|
1967
|
+
messaging: {
|
|
1968
|
+
skipWelcome: true,
|
|
1969
|
+
messageLoadingIndicatorTimeoutSecs: 0,
|
|
1970
|
+
customSendMessage: async (request, _options, _instance) => {
|
|
1971
|
+
const text = request?.input?.text;
|
|
1972
|
+
if (text) {
|
|
1973
|
+
await handleSendMessage(text);
|
|
1982
1974
|
}
|
|
1983
1975
|
}
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
);
|
|
1976
|
+
}
|
|
1977
|
+
}
|
|
1978
|
+
),
|
|
1979
|
+
formOverlay
|
|
1980
|
+
] });
|
|
1989
1981
|
}
|
|
1990
1982
|
return /* @__PURE__ */ jsx("div", { className: `a2a-chat a2a-chat--loading ${className}`, children: /* @__PURE__ */ jsx("div", { className: "a2a-chat__spinner" }) });
|
|
1991
1983
|
}
|