@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 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
- "div",
1946
- {
1947
- className: `a2a-chat a2a-chat--${layout} ${className}`,
1948
- style: {
1949
- height: layout === "fullscreen" ? "100vh" : void 0,
1950
- width: layout === "sidebar" ? "400px" : void 0
1951
- },
1952
- children: [
1953
- /* @__PURE__ */ jsxRuntime.jsx(
1954
- ChatCustomElement,
1955
- {
1956
- ...{
1957
- className: "a2a-chat__element",
1958
- debug: false,
1959
- aiEnabled: true,
1960
- openChatByDefault: true
1961
- },
1962
- header: {
1963
- title: agent?.name ?? "AI Assistant",
1964
- showMinimize: layout !== "fullscreen"
1965
- },
1966
- launcher: {
1967
- isOn: layout === "float"
1968
- },
1969
- layout: {
1970
- showFrame: layout === "float",
1971
- showCloseAndRestartButton: layout !== "fullscreen"
1972
- },
1973
- onAfterRender: handleAfterRender,
1974
- renderUserDefinedResponse: renderCustomResponse,
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
- formOverlay
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
  }