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