@yext/chat-ui-react 0.2.1 → 0.3.0

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.
Files changed (99) hide show
  1. package/README.md +3 -3
  2. package/THIRD-PARTY-NOTICES +4 -4
  3. package/lib/bundle-no-resets.css +1 -1
  4. package/lib/bundle.css +1 -1
  5. package/lib/commonjs/components/ChatHeader.d.ts +2 -0
  6. package/lib/commonjs/components/ChatHeader.d.ts.map +1 -1
  7. package/lib/commonjs/components/ChatHeader.js +9 -7
  8. package/lib/commonjs/components/ChatHeader.js.map +1 -1
  9. package/lib/commonjs/components/ChatInput.d.ts +5 -0
  10. package/lib/commonjs/components/ChatInput.d.ts.map +1 -1
  11. package/lib/commonjs/components/ChatInput.js +15 -9
  12. package/lib/commonjs/components/ChatInput.js.map +1 -1
  13. package/lib/commonjs/components/ChatPanel.d.ts.map +1 -1
  14. package/lib/commonjs/components/ChatPanel.js +3 -3
  15. package/lib/commonjs/components/ChatPanel.js.map +1 -1
  16. package/lib/commonjs/components/ChatPopUp.d.ts +1 -0
  17. package/lib/commonjs/components/ChatPopUp.d.ts.map +1 -1
  18. package/lib/commonjs/components/ChatPopUp.js +14 -5
  19. package/lib/commonjs/components/ChatPopUp.js.map +1 -1
  20. package/lib/commonjs/components/MessageBubble.d.ts +1 -1
  21. package/lib/commonjs/components/MessageBubble.d.ts.map +1 -1
  22. package/lib/commonjs/components/MessageBubble.js +3 -4
  23. package/lib/commonjs/components/MessageBubble.js.map +1 -1
  24. package/lib/commonjs/hooks/useDefaultHandleApiError.d.ts.map +1 -1
  25. package/lib/commonjs/hooks/useDefaultHandleApiError.js +6 -10
  26. package/lib/commonjs/hooks/useDefaultHandleApiError.js.map +1 -1
  27. package/lib/commonjs/icons/Chat.d.ts +5 -0
  28. package/lib/commonjs/icons/Chat.d.ts.map +1 -0
  29. package/lib/commonjs/icons/Chat.js +9 -0
  30. package/lib/commonjs/icons/Chat.js.map +1 -0
  31. package/lib/commonjs/icons/Cross.d.ts +3 -1
  32. package/lib/commonjs/icons/Cross.d.ts.map +1 -1
  33. package/lib/commonjs/icons/Cross.js +2 -2
  34. package/lib/commonjs/icons/Cross.js.map +1 -1
  35. package/lib/commonjs/icons/DualSync.d.ts +3 -1
  36. package/lib/commonjs/icons/DualSync.d.ts.map +1 -1
  37. package/lib/commonjs/icons/DualSync.js +2 -2
  38. package/lib/commonjs/icons/DualSync.js.map +1 -1
  39. package/lib/commonjs/utils/withStylelessCssClasses.d.ts.map +1 -1
  40. package/lib/commonjs/utils/withStylelessCssClasses.js +3 -1
  41. package/lib/commonjs/utils/withStylelessCssClasses.js.map +1 -1
  42. package/lib/esm/components/ChatHeader.d.ts +2 -0
  43. package/lib/esm/components/ChatHeader.d.ts.map +1 -1
  44. package/lib/esm/components/ChatHeader.js +9 -7
  45. package/lib/esm/components/ChatHeader.js.map +1 -1
  46. package/lib/esm/components/ChatInput.d.ts +5 -0
  47. package/lib/esm/components/ChatInput.d.ts.map +1 -1
  48. package/lib/esm/components/ChatInput.js +15 -9
  49. package/lib/esm/components/ChatInput.js.map +1 -1
  50. package/lib/esm/components/ChatPanel.d.ts.map +1 -1
  51. package/lib/esm/components/ChatPanel.js +3 -3
  52. package/lib/esm/components/ChatPanel.js.map +1 -1
  53. package/lib/esm/components/ChatPopUp.d.ts +1 -0
  54. package/lib/esm/components/ChatPopUp.d.ts.map +1 -1
  55. package/lib/esm/components/ChatPopUp.js +14 -5
  56. package/lib/esm/components/ChatPopUp.js.map +1 -1
  57. package/lib/esm/components/MessageBubble.d.ts +1 -1
  58. package/lib/esm/components/MessageBubble.d.ts.map +1 -1
  59. package/lib/esm/components/MessageBubble.js +3 -4
  60. package/lib/esm/components/MessageBubble.js.map +1 -1
  61. package/lib/esm/hooks/useDefaultHandleApiError.d.ts.map +1 -1
  62. package/lib/esm/hooks/useDefaultHandleApiError.js +7 -11
  63. package/lib/esm/hooks/useDefaultHandleApiError.js.map +1 -1
  64. package/lib/esm/icons/Chat.d.ts +5 -0
  65. package/lib/esm/icons/Chat.d.ts.map +1 -0
  66. package/lib/esm/icons/Chat.js +5 -0
  67. package/lib/esm/icons/Chat.js.map +1 -0
  68. package/lib/esm/icons/Cross.d.ts +3 -1
  69. package/lib/esm/icons/Cross.d.ts.map +1 -1
  70. package/lib/esm/icons/Cross.js +2 -2
  71. package/lib/esm/icons/Cross.js.map +1 -1
  72. package/lib/esm/icons/DualSync.d.ts +3 -1
  73. package/lib/esm/icons/DualSync.d.ts.map +1 -1
  74. package/lib/esm/icons/DualSync.js +2 -2
  75. package/lib/esm/icons/DualSync.js.map +1 -1
  76. package/lib/esm/index.d.ts +9 -1
  77. package/lib/esm/utils/withStylelessCssClasses.d.ts.map +1 -1
  78. package/lib/esm/utils/withStylelessCssClasses.js +3 -1
  79. package/lib/esm/utils/withStylelessCssClasses.js.map +1 -1
  80. package/package.json +2 -2
  81. package/src/components/ChatHeader.tsx +21 -11
  82. package/src/components/ChatInput.tsx +22 -17
  83. package/src/components/ChatPanel.tsx +9 -7
  84. package/src/components/ChatPopUp.tsx +29 -15
  85. package/src/components/MessageBubble.tsx +21 -19
  86. package/src/hooks/useDefaultHandleApiError.ts +7 -15
  87. package/src/icons/Chat.tsx +39 -0
  88. package/src/icons/Cross.tsx +2 -1
  89. package/src/icons/DualSync.tsx +6 -1
  90. package/src/utils/withStylelessCssClasses.ts +14 -9
  91. package/lib/commonjs/icons/Message.d.ts +0 -3
  92. package/lib/commonjs/icons/Message.d.ts.map +0 -1
  93. package/lib/commonjs/icons/Message.js +0 -9
  94. package/lib/commonjs/icons/Message.js.map +0 -1
  95. package/lib/esm/icons/Message.d.ts +0 -3
  96. package/lib/esm/icons/Message.d.ts.map +0 -1
  97. package/lib/esm/icons/Message.js +0 -5
  98. package/lib/esm/icons/Message.js.map +0 -1
  99. package/src/icons/Message.tsx +0 -16
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export function CrossIcon() {
3
- return (_jsxs("svg", { width: "100%", height: "100%", viewBox: "0 0 20 20", stroke: "currentColor", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M14 14L6 6", strokeLinecap: "square", strokeLinejoin: "round" }), _jsx("path", { d: "M14 6L6 14", strokeLinecap: "square", strokeLinejoin: "round" })] }));
2
+ export function CrossIcon({ className }) {
3
+ return (_jsxs("svg", { width: "100%", height: "100%", viewBox: "0 0 20 20", stroke: "currentColor", className: className, xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M14 14L6 6", strokeLinecap: "square", strokeLinejoin: "round" }), _jsx("path", { d: "M14 6L6 14", strokeLinecap: "square", strokeLinejoin: "round" })] }));
4
4
  }
5
5
  //# sourceMappingURL=Cross.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Cross.js","sourceRoot":"","sources":["../../../src/icons/Cross.tsx"],"names":[],"mappings":";AAAA,MAAM,UAAU,SAAS;IACvB,OAAO,CACL,eACE,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,OAAO,EAAC,WAAW,EACnB,MAAM,EAAC,cAAc,EACrB,KAAK,EAAC,4BAA4B,aAElC,eAAM,CAAC,EAAC,YAAY,EAAC,aAAa,EAAC,QAAQ,EAAC,cAAc,EAAC,OAAO,GAAG,EACrE,eAAM,CAAC,EAAC,YAAY,EAAC,aAAa,EAAC,QAAQ,EAAC,cAAc,EAAC,OAAO,GAAG,IACjE,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"Cross.js","sourceRoot":"","sources":["../../../src/icons/Cross.tsx"],"names":[],"mappings":";AAAA,MAAM,UAAU,SAAS,CAAC,EAAE,SAAS,EAA0B;IAC7D,OAAO,CACL,eACE,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,OAAO,EAAC,WAAW,EACnB,MAAM,EAAC,cAAc,EACrB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAC,4BAA4B,aAElC,eAAM,CAAC,EAAC,YAAY,EAAC,aAAa,EAAC,QAAQ,EAAC,cAAc,EAAC,OAAO,GAAG,EACrE,eAAM,CAAC,EAAC,YAAY,EAAC,aAAa,EAAC,QAAQ,EAAC,cAAc,EAAC,OAAO,GAAG,IACjE,CACP,CAAC;AACJ,CAAC"}
@@ -1,3 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare function DualSyncIcon(): JSX.Element;
2
+ export declare function DualSyncIcon({ className, }: {
3
+ className?: string;
4
+ }): JSX.Element;
3
5
  //# sourceMappingURL=DualSync.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DualSync.d.ts","sourceRoot":"","sources":["../../../src/icons/DualSync.tsx"],"names":[],"mappings":";AAAA,wBAAgB,YAAY,IAAI,GAAG,CAAC,OAAO,CAc1C"}
1
+ {"version":3,"file":"DualSync.d.ts","sourceRoot":"","sources":["../../../src/icons/DualSync.tsx"],"names":[],"mappings":";AAAA,wBAAgB,YAAY,CAAC,EAC3B,SAAS,GACV,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,GAAG,CAAC,OAAO,CAed"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export function DualSyncIcon() {
3
- return (_jsxs("svg", { width: "100%", height: "100%", viewBox: "0 0 20 20", fill: "currentColor", stroke: "currentColor", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M14.3148 6.47397C14.9074 7.36266 15.2593 8.46858 15.2593 9.63375C15.2593 12.675 12.9259 15.1634 10.0741 15.1634C9.11111 15.1634 8.2037 14.8671 7.42593 14.3734L9.05556 13.8995L8.87037 13.1293L6 13.939L6.75926 17L7.48148 16.8025L7.03704 15.0449C7.92593 15.6176 8.96296 15.9336 10.0741 15.9336C13.3519 15.9336 16 13.1095 16 9.614C16 8.2711 15.6111 7.02693 14.9259 6L14.3148 6.47397Z" }), _jsx("path", { d: "M9.92593 4.68459C10.8889 4.68459 11.7963 4.95341 12.5741 5.40143L10.9444 5.81362L11.1296 6.51254L14 5.77778L13.2407 3L12.5185 3.17921L12.963 4.77419C12.0741 4.25448 11.037 3.96774 9.92593 3.96774C6.64815 3.96774 4 6.53047 4 9.70251C4 10.9211 4.40741 12.0681 5.07407 13L5.68518 12.5878C5.09259 11.7634 4.74074 10.7778 4.74074 9.70251C4.74074 6.94265 7.07407 4.68459 9.92593 4.68459Z" })] }));
2
+ export function DualSyncIcon({ className, }) {
3
+ return (_jsxs("svg", { width: "100%", height: "100%", viewBox: "0 0 20 20", fill: "currentColor", stroke: "currentColor", className: className, xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M14.3148 6.47397C14.9074 7.36266 15.2593 8.46858 15.2593 9.63375C15.2593 12.675 12.9259 15.1634 10.0741 15.1634C9.11111 15.1634 8.2037 14.8671 7.42593 14.3734L9.05556 13.8995L8.87037 13.1293L6 13.939L6.75926 17L7.48148 16.8025L7.03704 15.0449C7.92593 15.6176 8.96296 15.9336 10.0741 15.9336C13.3519 15.9336 16 13.1095 16 9.614C16 8.2711 15.6111 7.02693 14.9259 6L14.3148 6.47397Z" }), _jsx("path", { d: "M9.92593 4.68459C10.8889 4.68459 11.7963 4.95341 12.5741 5.40143L10.9444 5.81362L11.1296 6.51254L14 5.77778L13.2407 3L12.5185 3.17921L12.963 4.77419C12.0741 4.25448 11.037 3.96774 9.92593 3.96774C6.64815 3.96774 4 6.53047 4 9.70251C4 10.9211 4.40741 12.0681 5.07407 13L5.68518 12.5878C5.09259 11.7634 4.74074 10.7778 4.74074 9.70251C4.74074 6.94265 7.07407 4.68459 9.92593 4.68459Z" })] }));
4
4
  }
5
5
  //# sourceMappingURL=DualSync.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DualSync.js","sourceRoot":"","sources":["../../../src/icons/DualSync.tsx"],"names":[],"mappings":";AAAA,MAAM,UAAU,YAAY;IAC1B,OAAO,CACL,eACE,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,cAAc,EACnB,MAAM,EAAC,cAAc,EACrB,KAAK,EAAC,4BAA4B,aAElC,eAAM,CAAC,EAAC,6XAA6X,GAAG,EACxY,eAAM,CAAC,EAAC,+XAA+X,GAAG,IACtY,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"DualSync.js","sourceRoot":"","sources":["../../../src/icons/DualSync.tsx"],"names":[],"mappings":";AAAA,MAAM,UAAU,YAAY,CAAC,EAC3B,SAAS,GAGV;IACC,OAAO,CACL,eACE,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,cAAc,EACnB,MAAM,EAAC,cAAc,EACrB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAC,4BAA4B,aAElC,eAAM,CAAC,EAAC,6XAA6X,GAAG,EACxY,eAAM,CAAC,EAAC,+XAA+X,GAAG,IACtY,CACP,CAAC;AACJ,CAAC"}
@@ -22,7 +22,9 @@ export declare interface ChatHeaderCssClasses {
22
22
  container?: string;
23
23
  title?: string;
24
24
  restartButton?: string;
25
+ restartButtonIcon?: string;
25
26
  closeButton?: string;
27
+ closeButtonIcon?: string;
26
28
  }
27
29
 
28
30
  /**
@@ -57,6 +59,11 @@ export declare interface ChatHeaderProps {
57
59
 
58
60
  /**
59
61
  * A component that allows user to input message and send to Chat API.
62
+ *
63
+ * @remarks
64
+ * Pressing "Enter" key will send the current message.
65
+ * To add a newline, press "Shift" and "Enter".
66
+ *
60
67
  * @public
61
68
  *
62
69
  * @param props - {@link ChatInputProps}
@@ -164,6 +171,7 @@ export declare interface ChatPopUpCssClasses {
164
171
  button?: string;
165
172
  button__display?: string;
166
173
  button__hidden?: string;
174
+ buttonIcon?: string;
167
175
  headerCssClasses?: ChatHeaderCssClasses;
168
176
  panelCssClasses?: ChatPanelCssClasses;
169
177
  }
@@ -225,7 +233,7 @@ export declare interface MessageBubbleProps {
225
233
  /**
226
234
  * A function which is called to format the message's timestamp given in
227
235
  * ISO format (e.g. "2023-05-18T19:33:34.553Z").
228
- * Defaults to "HH:MM:SS A" (e.g. "7:33:34 PM").
236
+ * Defaults to "HH:MM A" (e.g. "7:33 PM").
229
237
  */
230
238
  formatTimestamp?: (timestamp: string) => string;
231
239
  /** CSS classes for customizing the component styling. */
@@ -1 +1 @@
1
- {"version":3,"file":"withStylelessCssClasses.d.ts","sourceRoot":"","sources":["../../../src/utils/withStylelessCssClasses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CACrC,cAAc,SAAS,OAAO,CAAC,MAAM,CAAC,MAAM,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,EAE7E,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,GACvC,cAAc,CAOhB"}
1
+ {"version":3,"file":"withStylelessCssClasses.d.ts","sourceRoot":"","sources":["../../../src/utils/withStylelessCssClasses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CACrC,cAAc,SAAS,OAAO,CAAC,MAAM,CAAC,MAAM,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,EAE7E,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,GACvC,cAAc,CAYhB"}
@@ -17,7 +17,9 @@ export function withStylelessCssClasses(componentName, builtInClasses) {
17
17
  const formatString = (str) => str.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`);
18
18
  const classes = { ...builtInClasses };
19
19
  Object.keys(builtInClasses).forEach((key) => {
20
- classes[key] = `${classes[key]} yext-chat${formatString(componentName)}__${formatString(key)}`;
20
+ if (typeof classes[key] === "string") {
21
+ classes[key] = `${classes[key]} yext-chat${formatString(componentName)}__${formatString(key)}`;
22
+ }
21
23
  });
22
24
  return classes;
23
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"withStylelessCssClasses.js","sourceRoot":"","sources":["../../../src/utils/withStylelessCssClasses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,uBAAuB,CAGrC,aAAqB,EACrB,cAAwC;IAExC,MAAM,YAAY,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,KAAK,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IAClG,MAAM,OAAO,GAAG,EAAE,GAAG,cAAc,EAAE,CAAA;IACrC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QAC1C,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,YAAY,CAAC,aAAa,CAAC,KAAK,YAAY,CAAC,GAAG,CAAC,EAAE,CAAA;IAChG,CAAC,CAAC,CAAA;IACF,OAAO,OAAO,CAAC;AACjB,CAAC"}
1
+ {"version":3,"file":"withStylelessCssClasses.js","sourceRoot":"","sources":["../../../src/utils/withStylelessCssClasses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,uBAAuB,CAGrC,aAAqB,EACrB,cAAwC;IAExC,MAAM,YAAY,GAAG,CAAC,GAAW,EAAE,EAAE,CACnC,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,KAAK,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IAC9D,MAAM,OAAO,GAAG,EAAE,GAAG,cAAc,EAAE,CAAC;IACtC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QAC1C,IAAI,OAAO,OAAO,CAAC,GAAG,CAAC,KAAK,QAAQ,EAAE;YACpC,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,YAAY,CACrD,aAAa,CACd,KAAK,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;SAC3B;IACH,CAAC,CAAC,CAAC;IACH,OAAO,OAAO,CAAC;AACjB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yext/chat-ui-react",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "A library of React Components for powering Yext Chat integrations.",
5
5
  "author": "clippy@yext.com",
6
6
  "main": "./lib/commonjs/index.js",
@@ -80,7 +80,7 @@
80
80
  "typescript": "^5.0.4"
81
81
  },
82
82
  "peerDependencies": {
83
- "@yext/chat-headless-react": "^0.3.2",
83
+ "@yext/chat-headless-react": "^0.3.3",
84
84
  "react": "^16.14 || ^17 || ^18",
85
85
  "react-dom": "^16.14 || ^17 || || ^18"
86
86
  },
@@ -15,16 +15,22 @@ export interface ChatHeaderCssClasses {
15
15
  container?: string;
16
16
  title?: string;
17
17
  restartButton?: string;
18
+ restartButtonIcon?: string;
18
19
  closeButton?: string;
20
+ closeButtonIcon?: string;
19
21
  }
20
22
 
21
- const builtInCssClasses: Readonly<ChatHeaderCssClasses> = withStylelessCssClasses('Header', {
22
- container:
23
- "w-full px-4 py-3 flex justify-between bg-gradient-to-tr from-blue-600 to-blue-800 rounded-t-3xl",
24
- title: "text-white text-xl font-medium",
25
- restartButton: "w-8 text-white stroke-[0.2] ml-auto",
26
- closeButton: "w-8 text-white hover:scale-110",
27
- });
23
+ const builtInCssClasses: Readonly<ChatHeaderCssClasses> =
24
+ withStylelessCssClasses("Header", {
25
+ container:
26
+ "w-full pl-4 pr-3 py-3 flex justify-between bg-gradient-to-tr from-blue-600 to-blue-800",
27
+ title: "text-white text-xl font-medium truncate pr-1",
28
+ restartButton: "w-8 h-8 ml-auto shrink-0 flex justify-center items-center",
29
+ restartButtonIcon: "text-white stroke-[0.2] w-[26px] h-[26px]",
30
+ closeButton:
31
+ "w-8 h-8 hover:scale-110 shrink-0 flex justify-center items-center",
32
+ closeButtonIcon: "text-white w-[26px] h-[26px]",
33
+ });
28
34
 
29
35
  /**
30
36
  * The props for the {@link ChatHeader} component.
@@ -67,9 +73,9 @@ export interface ChatHeaderProps {
67
73
  export function ChatHeader({
68
74
  title,
69
75
  showRestartButton,
70
- restartButtonIcon = <DualSyncIcon />,
76
+ restartButtonIcon,
71
77
  showCloseButton,
72
- closeButtonIcon = <CrossIcon />,
78
+ closeButtonIcon,
73
79
  onClose,
74
80
  customCssClasses,
75
81
  }: ChatHeaderProps) {
@@ -102,7 +108,9 @@ export function ChatHeader({
102
108
  onClick={onRestart}
103
109
  className={restartButtonCssClasses}
104
110
  >
105
- {restartButtonIcon}
111
+ {restartButtonIcon ?? (
112
+ <DualSyncIcon className={cssClasses.restartButtonIcon} />
113
+ )}
106
114
  </button>
107
115
  )}
108
116
  {showCloseButton && (
@@ -111,7 +119,9 @@ export function ChatHeader({
111
119
  onClick={onClose}
112
120
  className={cssClasses.closeButton}
113
121
  >
114
- {closeButtonIcon}
122
+ {closeButtonIcon ?? (
123
+ <CrossIcon className={cssClasses.closeButtonIcon} />
124
+ )}
115
125
  </button>
116
126
  )}
117
127
  </div>
@@ -3,7 +3,6 @@ import { useChatActions, useChatState } from "@yext/chat-headless-react";
3
3
  import { ArrowIcon } from "../icons/Arrow";
4
4
  import { useComposedCssClasses } from "../hooks";
5
5
  import Textarea from "react-expanding-textarea";
6
- import { twMerge } from "tailwind-merge";
7
6
  import { useDefaultHandleApiError } from "../hooks/useDefaultHandleApiError";
8
7
  import { withStylelessCssClasses } from "../utils/withStylelessCssClasses";
9
8
 
@@ -18,13 +17,16 @@ export interface ChatInputCssClasses {
18
17
  sendButton?: string;
19
18
  }
20
19
 
21
- const builtInCssClasses: ChatInputCssClasses = withStylelessCssClasses('Input', {
22
- container: "w-full h-fit flex flex-row relative @container",
23
- textArea:
24
- "w-full p-4 pr-10 border border-slate-300 disabled:bg-slate-50 rounded-3xl resize-none text-[13px] @[480px]:text-base",
25
- sendButton:
26
- "rounded-full p-1.5 w-8 h-8 stroke-2 text-white bg-blue-600 disabled:bg-slate-100 hover:bg-blue-800 active:scale-90 transition-all absolute right-7 bottom-2.5 @[480px]:bottom-3.5",
27
- });
20
+ const builtInCssClasses: ChatInputCssClasses = withStylelessCssClasses(
21
+ "Input",
22
+ {
23
+ container: "w-full h-fit flex flex-row relative @container",
24
+ textArea:
25
+ "w-full p-4 pr-12 border border-slate-300 rounded-3xl resize-none text-[13px] @[480px]:text-base",
26
+ sendButton:
27
+ "rounded-full p-1.5 w-8 h-8 stroke-2 text-white bg-blue-600 disabled:bg-slate-200 hover:bg-blue-800 active:scale-90 transition-all absolute right-4 bottom-2.5 @[480px]:bottom-3.5",
28
+ }
29
+ );
28
30
 
29
31
  /**
30
32
  * The props for the {@link ChatInput} component.
@@ -57,6 +59,11 @@ export interface ChatInputProps {
57
59
 
58
60
  /**
59
61
  * A component that allows user to input message and send to Chat API.
62
+ *
63
+ * @remarks
64
+ * Pressing "Enter" key will send the current message.
65
+ * To add a newline, press "Shift" and "Enter".
66
+ *
60
67
  * @public
61
68
  *
62
69
  * @param props - {@link ChatInputProps}
@@ -77,10 +84,6 @@ export function ChatInput({
77
84
  const defaultHandleApiError = useDefaultHandleApiError();
78
85
 
79
86
  const cssClasses = useComposedCssClasses(builtInCssClasses, customCssClasses);
80
- const sendButtonClassNames = twMerge(
81
- cssClasses.sendButton,
82
- input.length === 0 && "opacity-0 invisible"
83
- );
84
87
 
85
88
  const sendMessage = useCallback(async () => {
86
89
  const res = stream
@@ -92,11 +95,14 @@ export function ChatInput({
92
95
 
93
96
  const handleKeyDown = useCallback(
94
97
  (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
95
- if (e.key === "Enter") {
96
- sendMessage();
98
+ if (!e.shiftKey && e.key === "Enter") {
99
+ e.preventDefault();
100
+ if (canSendMessage) {
101
+ sendMessage();
102
+ }
97
103
  }
98
104
  },
99
- [sendMessage]
105
+ [sendMessage, canSendMessage]
100
106
  );
101
107
 
102
108
  const onInputChange = useCallback(
@@ -110,7 +116,6 @@ export function ChatInput({
110
116
  <div className={cssClasses.container}>
111
117
  <Textarea
112
118
  autoFocus={inputAutoFocus}
113
- disabled={!canSendMessage}
114
119
  onKeyDown={handleKeyDown}
115
120
  value={input}
116
121
  onChange={onInputChange}
@@ -121,7 +126,7 @@ export function ChatInput({
121
126
  aria-label="Send Message"
122
127
  disabled={!canSendMessage}
123
128
  onClick={sendMessage}
124
- className={sendButtonClassNames}
129
+ className={cssClasses.sendButton}
125
130
  >
126
131
  {sendButtonIcon}
127
132
  </button>
@@ -24,13 +24,15 @@ export interface ChatPanelCssClasses {
24
24
  messageBubbleCssClasses?: MessageBubbleCssClasses;
25
25
  }
26
26
 
27
- const builtInCssClasses: ChatPanelCssClasses = withStylelessCssClasses('Panel', {
28
- container:
29
- "h-full w-full flex flex-col relative rounded-3xl shadow-2xl bg-white",
30
- messagesContainer:
31
- "flex flex-col gap-y-1 mt-auto px-4 pb-[85px] overflow-auto",
32
- inputContainer: "w-full absolute bottom-0 p-4 rounded-b-3xl backdrop-blur-lg",
33
- });
27
+ const builtInCssClasses: ChatPanelCssClasses = withStylelessCssClasses(
28
+ "Panel",
29
+ {
30
+ container: "h-full w-full flex flex-col relative shadow-2xl bg-white",
31
+ messagesContainer:
32
+ "flex flex-col gap-y-1 mt-auto px-4 pb-[85px] overflow-auto",
33
+ inputContainer: "w-full absolute bottom-0 p-4 backdrop-blur-lg",
34
+ }
35
+ );
34
36
 
35
37
  /**
36
38
  * The props for the {@link ChatPanel} component.
@@ -1,5 +1,5 @@
1
1
  import { useCallback, useState } from "react";
2
- import { MessageIcon } from "../icons/Message";
2
+ import { ChatIcon } from "../icons/Chat";
3
3
  import { ChatPanel, ChatPanelCssClasses, ChatPanelProps } from "./ChatPanel";
4
4
  import {
5
5
  ChatHeader,
@@ -23,23 +23,37 @@ export interface ChatPopUpCssClasses {
23
23
  button?: string;
24
24
  button__display?: string;
25
25
  button__hidden?: string;
26
+ buttonIcon?: string;
26
27
  headerCssClasses?: ChatHeaderCssClasses;
27
28
  panelCssClasses?: ChatPanelCssClasses;
28
29
  }
29
30
 
30
31
  const fixedPosition = "fixed bottom-6 right-4 lg:bottom-14 lg:right-10 z-50 ";
31
- const builtInCssClasses: ChatPopUpCssClasses = withStylelessCssClasses('PopUp', {
32
- container: "transition-all",
33
- panel: fixedPosition + "w-80 lg:w-96 h-[75vh]",
34
- panel__display: "duration-300 translate-y-0",
35
- panel__hidden: "duration-300 translate-y-[20%] opacity-0 invisible",
36
- button:
37
- fixedPosition +
38
- "p-2 w-12 h-12 lg:w-16 lg:h-16 flex justify-center items-center text-white shadow-xl rounded-full bg-gradient-to-br from-blue-600 to-blue-700 hover:-translate-y-2 duration-150",
39
- button__display: "duration-300 transform translate-y-0",
40
- button__hidden:
41
- "duration-300 transform translate-y-[20%] opacity-0 invisible",
42
- });
32
+ const builtInCssClasses: ChatPopUpCssClasses = withStylelessCssClasses(
33
+ "PopUp",
34
+ {
35
+ container: "transition-all",
36
+ panel:
37
+ fixedPosition +
38
+ "w-80 max-[480px]:right-0 max-[480px]:bottom-0 max-[480px]:w-full max-[480px]:h-full lg:w-96 h-[75vh]",
39
+ panel__display: "duration-300 translate-y-0",
40
+ panel__hidden: "duration-300 translate-y-[20%] opacity-0 invisible",
41
+ button:
42
+ fixedPosition +
43
+ "p-2 w-12 h-12 lg:w-16 lg:h-16 flex justify-center items-center text-white shadow-xl rounded-full bg-gradient-to-br from-blue-600 to-blue-700 hover:-translate-y-2 duration-150",
44
+ button__display: "duration-300 transform translate-y-0",
45
+ button__hidden:
46
+ "duration-300 transform translate-y-[20%] opacity-0 invisible",
47
+ buttonIcon: "text-blue-600 w-[28px] h-[28px] lg:w-[40px] lg:h-[40px]",
48
+ headerCssClasses: {
49
+ container: "max-[480px]:rounded-none rounded-t-3xl",
50
+ },
51
+ panelCssClasses: {
52
+ container: "max-[480px]:rounded-none rounded-b-3xl",
53
+ inputContainer: "max-[480px]:rounded-none rounded-b-3xl",
54
+ },
55
+ }
56
+ );
43
57
 
44
58
  /**
45
59
  * The props for the {@link ChatPopUp} component.
@@ -67,7 +81,7 @@ export interface ChatPopUpProps
67
81
  */
68
82
  export function ChatPopUp(props: ChatPopUpProps) {
69
83
  const {
70
- openPanelButtonIcon = <MessageIcon />,
84
+ openPanelButtonIcon,
71
85
  customCssClasses,
72
86
  showRestartButton = true,
73
87
  onClose: customOnClose,
@@ -115,7 +129,7 @@ export function ChatPopUp(props: ChatPopUpProps) {
115
129
  onClick={onClick}
116
130
  className={buttonCssClasses}
117
131
  >
118
- {openPanelButtonIcon}
132
+ {openPanelButtonIcon ?? <ChatIcon className={cssClasses.buttonIcon} />}
119
133
  </button>
120
134
  </div>
121
135
  );
@@ -22,22 +22,25 @@ export interface MessageBubbleCssClasses {
22
22
  timestamp__user?: string;
23
23
  }
24
24
 
25
- const builtInCssClasses: MessageBubbleCssClasses = withStylelessCssClasses('MessageBubble', {
26
- topContainer: "w-full animate-fade-in @container",
27
- subContainer:
28
- "flex flex-col @lg:flex-row @lg:items-center @lg:gap-x-2 @lg:m-1",
29
- subContainer__bot: "",
30
- subContainer__user: "@lg:flex-row-reverse",
31
- message:
32
- "peer rounded-2xl text-[13px] @[480px]:text-base p-4 w-fit max-w-[80%] prose overflow-x-auto",
33
- message__bot: "text-slate-900 bg-gradient-to-tr from-slate-50 to-slate-100",
34
- message__user:
35
- "ml-auto @lg:ml-0 text-white bg-gradient-to-tr from-blue-600 to-blue-700",
36
- timestamp:
37
- "w-fit my-0.5 text-slate-400 text-[13px] opacity-0 peer-hover:opacity-100 duration-200 whitespace-pre-wrap",
38
- timestamp__bot: "",
39
- timestamp__user: "ml-auto",
40
- });
25
+ const builtInCssClasses: MessageBubbleCssClasses = withStylelessCssClasses(
26
+ "MessageBubble",
27
+ {
28
+ topContainer: "w-full animate-fade-in @container",
29
+ subContainer:
30
+ "flex flex-col @lg:flex-row @lg:items-center @lg:gap-x-2 @lg:m-1",
31
+ subContainer__bot: "",
32
+ subContainer__user: "@lg:flex-row-reverse",
33
+ message:
34
+ "peer rounded-2xl text-[13px] @[480px]:text-base p-4 w-fit max-w-[80%] prose overflow-x-auto",
35
+ message__bot: "text-slate-900 bg-gradient-to-tr from-slate-50 to-slate-100",
36
+ message__user:
37
+ "ml-auto @lg:ml-0 text-white bg-gradient-to-tr from-blue-600 to-blue-700",
38
+ timestamp:
39
+ "w-fit my-0.5 ml-4 @lg:ml-0 text-slate-400 text-[10px] @[480px]:text-[13px] opacity-0 peer-hover:opacity-100 duration-200 whitespace-pre-wrap",
40
+ timestamp__bot: "",
41
+ timestamp__user: "ml-auto",
42
+ }
43
+ );
41
44
 
42
45
  /**
43
46
  * The props for the {@link MessageBubble} component.
@@ -55,7 +58,7 @@ export interface MessageBubbleProps {
55
58
  /**
56
59
  * A function which is called to format the message's timestamp given in
57
60
  * ISO format (e.g. "2023-05-18T19:33:34.553Z").
58
- * Defaults to "HH:MM:SS A" (e.g. "7:33:34 PM").
61
+ * Defaults to "HH:MM A" (e.g. "7:33 PM").
59
62
  */
60
63
  formatTimestamp?: (timestamp: string) => string;
61
64
  /** CSS classes for customizing the component styling. */
@@ -113,7 +116,7 @@ export function MessageBubble({
113
116
  }
114
117
 
115
118
  /**
116
- * Formats message's timestamp from "2023-05-18T19:33:34.553Z" to "7:33:34 PM"
119
+ * Formats message's timestamp from "2023-05-18T19:33:34.553Z" to "7:33 PM"
117
120
  *
118
121
  * @param timestamp - the timestamp to convert from
119
122
  * @returns formatted timestamp
@@ -122,7 +125,6 @@ function defaultFormatTimestamp(timestamp: string): string {
122
125
  return new Date(timestamp).toLocaleString(undefined, {
123
126
  hour: "numeric",
124
127
  minute: "numeric",
125
- second: "numeric",
126
128
  hour12: true,
127
129
  });
128
130
  }
@@ -1,8 +1,4 @@
1
- import {
2
- MessageSource,
3
- useChatActions,
4
- useChatState,
5
- } from "@yext/chat-headless-react";
1
+ import { MessageSource, useChatActions } from "@yext/chat-headless-react";
6
2
  import { useCallback } from "react";
7
3
 
8
4
  /**
@@ -13,20 +9,16 @@ import { useCallback } from "react";
13
9
  */
14
10
  export function useDefaultHandleApiError() {
15
11
  const chat = useChatActions();
16
- const messages = useChatState((s) => s.conversation.messages);
17
12
 
18
13
  return useCallback(
19
14
  (e: unknown) => {
20
15
  console.error(e);
21
- chat.setMessages([
22
- ...messages,
23
- {
24
- text: "Sorry, I'm unable to respond at the moment. Please try again later!",
25
- source: MessageSource.BOT,
26
- timestamp: new Date().toISOString(),
27
- },
28
- ]);
16
+ chat.addMessage({
17
+ text: "Sorry, I'm unable to respond at the moment. Please try again later!",
18
+ source: MessageSource.BOT,
19
+ timestamp: new Date().toISOString(),
20
+ });
29
21
  },
30
- [chat, messages]
22
+ [chat]
31
23
  );
32
24
  }
@@ -0,0 +1,39 @@
1
+ export function ChatIcon({ className }: { className?: string }): JSX.Element {
2
+ return (
3
+ <svg
4
+ width="100%"
5
+ height="100%"
6
+ viewBox="0 0 20 20"
7
+ fill="none"
8
+ className={className}
9
+ xmlns="http://www.w3.org/2000/svg"
10
+ >
11
+ <path
12
+ d="M15.3028 12.8082L15.1553 12.9342L15.1729 13.1273L15.3973 15.5959C15.3983 15.6063 15.3964 15.6126 15.3943 15.617C15.3918 15.6223 15.3873 15.6283 15.3805 15.6332C15.3737 15.6382 15.3667 15.6408 15.3608 15.6416C15.356 15.6422 15.3495 15.6422 15.3398 15.6381L12.3578 14.3956L12.245 14.3486L12.1261 14.3771C11.4553 14.5381 10.7412 14.625 10 14.625C5.9718 14.625 2.875 12.099 2.875 9.16667C2.875 6.23436 5.9718 3.70834 10 3.70834C14.0282 3.70834 17.125 6.23436 17.125 9.16667C17.125 10.5493 16.4496 11.8289 15.3028 12.8082Z"
13
+ fill="white"
14
+ stroke="white"
15
+ strokeWidth="0.75"
16
+ />
17
+ <path
18
+ d="M7 7.54584C7 7.38015 7.13431 7.24584 7.3 7.24584H8.725C8.89069 7.24584 9.025 7.38015 9.025 7.54584C9.025 7.71152 8.89069 7.84584 8.725 7.84584H7.3C7.13431 7.84584 7 7.71152 7 7.54584Z"
19
+ fill="currentColor"
20
+ />
21
+ <path
22
+ d="M9.625 7.54584C9.625 7.15233 9.944 6.83334 10.3375 6.83334H12.2875C12.681 6.83334 13 7.15233 13 7.54584C13 7.93934 12.681 8.25834 12.2875 8.25834H10.3375C9.944 8.25834 9.625 7.93934 9.625 7.54584Z"
23
+ fill="currentColor"
24
+ />
25
+ <path
26
+ d="M7 9.30834C7 9.14265 7.13431 9.00834 7.3 9.00834H12.7C12.8657 9.00834 13 9.14265 13 9.30834C13 9.47402 12.8657 9.60834 12.7 9.60834H7.3C7.13431 9.60834 7 9.47402 7 9.30834Z"
27
+ fill="currentColor"
28
+ />
29
+ <path
30
+ d="M7 11.0708C7 10.6773 7.319 10.3583 7.7125 10.3583H8.1625C8.556 10.3583 8.875 10.6773 8.875 11.0708C8.875 11.4643 8.556 11.7833 8.1625 11.7833H7.7125C7.319 11.7833 7 11.4643 7 11.0708Z"
31
+ fill="currentColor"
32
+ />
33
+ <path
34
+ d="M9.475 11.0708C9.475 10.9052 9.60931 10.7708 9.775 10.7708H12.7C12.8657 10.7708 13 10.9052 13 11.0708C13 11.2365 12.8657 11.3708 12.7 11.3708H9.775C9.60931 11.3708 9.475 11.2365 9.475 11.0708Z"
35
+ fill="currentColor"
36
+ />
37
+ </svg>
38
+ );
39
+ }
@@ -1,10 +1,11 @@
1
- export function CrossIcon(): JSX.Element {
1
+ export function CrossIcon({ className }: { className?: string }): JSX.Element {
2
2
  return (
3
3
  <svg
4
4
  width="100%"
5
5
  height="100%"
6
6
  viewBox="0 0 20 20"
7
7
  stroke="currentColor"
8
+ className={className}
8
9
  xmlns="http://www.w3.org/2000/svg"
9
10
  >
10
11
  <path d="M14 14L6 6" strokeLinecap="square" strokeLinejoin="round" />
@@ -1,4 +1,8 @@
1
- export function DualSyncIcon(): JSX.Element {
1
+ export function DualSyncIcon({
2
+ className,
3
+ }: {
4
+ className?: string;
5
+ }): JSX.Element {
2
6
  return (
3
7
  <svg
4
8
  width="100%"
@@ -6,6 +10,7 @@ export function DualSyncIcon(): JSX.Element {
6
10
  viewBox="0 0 20 20"
7
11
  fill="currentColor"
8
12
  stroke="currentColor"
13
+ className={className}
9
14
  xmlns="http://www.w3.org/2000/svg"
10
15
  >
11
16
  <path d="M14.3148 6.47397C14.9074 7.36266 15.2593 8.46858 15.2593 9.63375C15.2593 12.675 12.9259 15.1634 10.0741 15.1634C9.11111 15.1634 8.2037 14.8671 7.42593 14.3734L9.05556 13.8995L8.87037 13.1293L6 13.939L6.75926 17L7.48148 16.8025L7.03704 15.0449C7.92593 15.6176 8.96296 15.9336 10.0741 15.9336C13.3519 15.9336 16 13.1095 16 9.614C16 8.2711 15.6111 7.02693 14.9259 6L14.3148 6.47397Z" />
@@ -1,16 +1,16 @@
1
1
  /**
2
2
  * Append styleless css classnames that user can target to add custom styling to components.
3
3
  * The classes follows a format of "yext-chat-component-name__css-interface-field-name".
4
- *
4
+ *
5
5
  * @example
6
6
  * the styleless css class name for {@link MessageBubble}'s "message__bot" field defined
7
7
  * in its {@link MessageBubbleCssClasses} interface is "yext-chat-message-bubble__message__bot"
8
- *
8
+ *
9
9
  * @internal
10
- *
10
+ *
11
11
  * @param componentName - the component name
12
12
  * @param builtInClasses - built in css classnames of the component
13
- *
13
+ *
14
14
  * @returns builtInClasses with styleless css classnames
15
15
  */
16
16
  export function withStylelessCssClasses<
@@ -19,10 +19,15 @@ export function withStylelessCssClasses<
19
19
  componentName: string,
20
20
  builtInClasses: Readonly<ClassInterface>
21
21
  ): ClassInterface {
22
- const formatString = (str: string) => str.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`);
23
- const classes = { ...builtInClasses }
22
+ const formatString = (str: string) =>
23
+ str.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`);
24
+ const classes = { ...builtInClasses };
24
25
  Object.keys(builtInClasses).forEach((key) => {
25
- classes[key] = `${classes[key]} yext-chat${formatString(componentName)}__${formatString(key)}`
26
- })
26
+ if (typeof classes[key] === "string") {
27
+ classes[key] = `${classes[key]} yext-chat${formatString(
28
+ componentName
29
+ )}__${formatString(key)}`;
30
+ }
31
+ });
27
32
  return classes;
28
- }
33
+ }
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function MessageIcon(): JSX.Element;
3
- //# sourceMappingURL=Message.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/icons/Message.tsx"],"names":[],"mappings":";AAAA,wBAAgB,WAAW,IAAI,GAAG,CAAC,OAAO,CAezC"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MessageIcon = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- function MessageIcon() {
6
- return ((0, jsx_runtime_1.jsxs)("svg", { width: "100%", height: "100%", viewBox: "0 0 20 20", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("path", { d: "M3.37424 17.1166L6.31902 14.1718H16.6258V4.84663H3.37424V17.1166ZM3.86503 5.33742H16.135V13.681H6.31902H6.11043L5.96319 13.8282L3.85276 15.9386V5.33742H3.86503Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M14.4172 9.2638H6.07362V9.7546H14.4172V9.2638Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M13.9264 10.7362H6.07362V11.227H13.9264V10.7362Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M13.4356 7.79141H6.07362V8.28221H13.4356V7.79141Z" })] }));
7
- }
8
- exports.MessageIcon = MessageIcon;
9
- //# sourceMappingURL=Message.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Message.js","sourceRoot":"","sources":["../../../src/icons/Message.tsx"],"names":[],"mappings":";;;;AAAA,SAAgB,WAAW;IACzB,OAAO,CACL,iCACE,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,cAAc,EACnB,KAAK,EAAC,4BAA4B,aAElC,iCAAM,CAAC,EAAC,kKAAkK,GAAG,EAC7K,iCAAM,CAAC,EAAC,gDAAgD,GAAG,EAC3D,iCAAM,CAAC,EAAC,kDAAkD,GAAG,EAC7D,iCAAM,CAAC,EAAC,mDAAmD,GAAG,IAC1D,CACP,CAAC;AACJ,CAAC;AAfD,kCAeC"}
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function MessageIcon(): JSX.Element;
3
- //# sourceMappingURL=Message.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/icons/Message.tsx"],"names":[],"mappings":";AAAA,wBAAgB,WAAW,IAAI,GAAG,CAAC,OAAO,CAezC"}