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