@servicetitan/anvil2-ext-atlas 1.2.1 → 1.2.3

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 (47) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/{atlas-header-jdAIcEpa.js → atlas-header-CYHhcWuk.js} +2 -2
  3. package/dist/atlas-header-CYHhcWuk.js.map +1 -0
  4. package/dist/atlas-header.js +1 -1
  5. package/dist/{chat-composer-rich-BUVy1VRa.js → chat-composer-rich-Bj1gmhec.js} +12 -12
  6. package/dist/chat-composer-rich-Bj1gmhec.js.map +1 -0
  7. package/dist/chat-composer-rich.css +32 -29
  8. package/dist/chat-composer-rich.js +1 -1
  9. package/dist/{content-D4YSNvFG.js → content-DAPOfSv5.js} +2 -2
  10. package/dist/{content-D4YSNvFG.js.map → content-DAPOfSv5.js.map} +1 -1
  11. package/dist/content.css +10 -8
  12. package/dist/content.js +1 -1
  13. package/dist/error-ChaDmvfp.js +6 -0
  14. package/dist/error-ChaDmvfp.js.map +1 -0
  15. package/dist/{footer-Du5cuzZZ.js → footer-Cv4yRBA1.js} +2 -2
  16. package/dist/{footer-Du5cuzZZ.js.map → footer-Cv4yRBA1.js.map} +1 -1
  17. package/dist/footer.js +1 -1
  18. package/dist/{header-C7lrbzyg.js → header-ku2JmzDC.js} +9 -9
  19. package/dist/header-ku2JmzDC.js.map +1 -0
  20. package/dist/header.css +21 -21
  21. package/dist/header.js +1 -1
  22. package/dist/index.js +10 -10
  23. package/dist/{infinite-content-B4ojfnZH.js → infinite-content-BnStGJfq.js} +4 -4
  24. package/dist/{infinite-content-B4ojfnZH.js.map → infinite-content-BnStGJfq.js.map} +1 -1
  25. package/dist/infinite-content.css +12 -12
  26. package/dist/infinite-content.js +1 -1
  27. package/dist/messages.js +1 -1
  28. package/dist/recommendations.js +1 -1
  29. package/dist/screens.js +1 -1
  30. package/dist/{single-recommendation-card-BEZJp7Vd.js → single-recommendation-card-DgAQbMg4.js} +2 -2
  31. package/dist/{single-recommendation-card-BEZJp7Vd.js.map → single-recommendation-card-DgAQbMg4.js.map} +1 -1
  32. package/dist/{toolbox-jC8O6fep.js → toolbox-2IgmOZuu.js} +12 -12
  33. package/dist/toolbox-2IgmOZuu.js.map +1 -0
  34. package/dist/toolbox.js +1 -1
  35. package/dist/{user-message-B_mKtRDd.js → user-message-BFrCI10z.js} +5 -5
  36. package/dist/{user-message-B_mKtRDd.js.map → user-message-BFrCI10z.js.map} +1 -1
  37. package/dist/user-message.css +30 -29
  38. package/dist/{welcome-Bh0_he52.js → welcome-CLNfeZDg.js} +5 -5
  39. package/dist/{welcome-Bh0_he52.js.map → welcome-CLNfeZDg.js.map} +1 -1
  40. package/dist/welcome.css +11 -12
  41. package/package.json +10 -10
  42. package/dist/atlas-header-jdAIcEpa.js.map +0 -1
  43. package/dist/chat-composer-rich-BUVy1VRa.js.map +0 -1
  44. package/dist/error-DR_wWdYY.js +0 -6
  45. package/dist/error-DR_wWdYY.js.map +0 -1
  46. package/dist/header-C7lrbzyg.js.map +0 -1
  47. package/dist/toolbox-jC8O6fep.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @servicetitan/anvil2-ext-atlas
2
2
 
3
+ ## 1.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2100](https://github.com/servicetitan/hammer/pull/2100) [`09a205c`](https://github.com/servicetitan/hammer/commit/09a205ca62a2f945e2d3cd126da8dc6bf4138711) Thanks [@w-a-t-s-o-n](https://github.com/w-a-t-s-o-n)! - [ChatWindow] Fix Anvil2 CSS overrides by wrapping styles in `@layer application` and remove legacy Less files
8
+
9
+ - Updated dependencies [[`623398f`](https://github.com/servicetitan/hammer/commit/623398f22d6c390a049c0968c4340dc82729331e), [`9736150`](https://github.com/servicetitan/hammer/commit/9736150539b2ed46a08808b19f9974b7f6bbf667), [`0a7d8c7`](https://github.com/servicetitan/hammer/commit/0a7d8c75028384f1ced3cc1051b68b4badc30163), [`edae603`](https://github.com/servicetitan/hammer/commit/edae60309b49c18e87ea2b3d3c02c915124a21d5), [`9736150`](https://github.com/servicetitan/hammer/commit/9736150539b2ed46a08808b19f9974b7f6bbf667), [`623398f`](https://github.com/servicetitan/hammer/commit/623398f22d6c390a049c0968c4340dc82729331e)]:
10
+ - @servicetitan/anvil2@2.4.0
11
+
12
+ ## 1.2.2
13
+
14
+ ### Patch Changes
15
+
16
+ - [#2060](https://github.com/servicetitan/hammer/pull/2060) [`8e4cea6`](https://github.com/servicetitan/hammer/commit/8e4cea6a5fdc178edae27518450f1204464831eb) Thanks [@rgdelato](https://github.com/rgdelato)! - [Illustrations] Add new `@servicetitan/anvil2-illustrations` package
17
+
18
+ - Updated dependencies [[`8e4cea6`](https://github.com/servicetitan/hammer/commit/8e4cea6a5fdc178edae27518450f1204464831eb), [`656c287`](https://github.com/servicetitan/hammer/commit/656c2870857bb4d88939308e5b567cb24ca8496b), [`8e4cea6`](https://github.com/servicetitan/hammer/commit/8e4cea6a5fdc178edae27518450f1204464831eb), [`4d21c97`](https://github.com/servicetitan/hammer/commit/4d21c97eb25b648cd14909ee3980944515739150), [`4d21c97`](https://github.com/servicetitan/hammer/commit/4d21c97eb25b648cd14909ee3980944515739150), [`f64e906`](https://github.com/servicetitan/hammer/commit/f64e906c441cb35cd37848712970e189674559b3)]:
19
+ - @servicetitan/anvil2@2.3.0
20
+
3
21
  ## 1.2.1
4
22
 
5
23
  ### Patch Changes
@@ -2,7 +2,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { Flex, Icon, Text } from '@servicetitan/anvil2';
3
3
  import * as React from 'react';
4
4
 
5
- const SvgAtlasLogo = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { fill: "url(#a)", d: "m0 0 1 1", opacity: 1e-3 }), /* @__PURE__ */ React.createElement("path", { fill: "url(#b)", d: "m0 0 1 1", opacity: 1e-3 }), /* @__PURE__ */ React.createElement("path", { fill: "url(#c)", d: "M1.38 6v12l10.615 6 10.615-6V6L11.995 0z" }), /* @__PURE__ */ React.createElement("g", { style: {
5
+ const SvgAtlasLogo = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { fill: "url(#a)", d: "m0 0 1 1", opacity: 1e-3 }), /* @__PURE__ */ React.createElement("path", { fill: "url(#b)", d: "m0 0 1 1", opacity: 1e-3 }), /* @__PURE__ */ React.createElement("path", { fill: "url(#c)", d: "M1.38 6v12l10.615 6 10.615-6V6L11.995 0z" }), /* @__PURE__ */ React.createElement("g", { style: {
6
6
  mixBlendMode: "overlay"
7
7
  } }, /* @__PURE__ */ React.createElement("path", { fill: "url(#d)", d: "m1.38 18 4.53-2.561L1.38 12z" }), /* @__PURE__ */ React.createElement("path", { fill: "url(#e)", d: "m22.61 6-4.53 2.561L22.61 12z" }), /* @__PURE__ */ React.createElement("path", { fill: "url(#f)", d: "M11.995 23.999v-5.122l-5.308 2.122z" }), /* @__PURE__ */ React.createElement("path", { fill: "url(#g)", d: "M11.995 0v5.122L17.302 3z" }), /* @__PURE__ */ React.createElement("path", { fill: "url(#h)", d: "m22.61 18-4.53-2.56-.777 5.56z" }), /* @__PURE__ */ React.createElement("path", { fill: "url(#i)", d: "m1.38 6 4.53 2.562L6.689 3z" })), /* @__PURE__ */ React.createElement("g", { style: {
8
8
  mixBlendMode: "overlay"
@@ -20,4 +20,4 @@ const AtlasHeader = ({
20
20
  };
21
21
 
22
22
  export { AtlasHeader as A };
23
- //# sourceMappingURL=atlas-header-jdAIcEpa.js.map
23
+ //# sourceMappingURL=atlas-header-CYHhcWuk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"atlas-header-CYHhcWuk.js","sources":["../../anvil2/dist/assets/icons/st/atlas_logo.svg","../src/components/atlas-header/atlas-header.tsx"],"sourcesContent":["import * as React from \"react\";\nconst SvgAtlasLogo = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: 24, height: 24, fill: \"none\", viewBox: \"0 0 24 24\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { fill: \"url(#a)\", d: \"m0 0 1 1\", opacity: 1e-3 }), /* @__PURE__ */ React.createElement(\"path\", { fill: \"url(#b)\", d: \"m0 0 1 1\", opacity: 1e-3 }), /* @__PURE__ */ React.createElement(\"path\", { fill: \"url(#c)\", d: \"M1.38 6v12l10.615 6 10.615-6V6L11.995 0z\" }), /* @__PURE__ */ React.createElement(\"g\", { style: {\n mixBlendMode: \"overlay\"\n} }, /* @__PURE__ */ React.createElement(\"path\", { fill: \"url(#d)\", d: \"m1.38 18 4.53-2.561L1.38 12z\" }), /* @__PURE__ */ React.createElement(\"path\", { fill: \"url(#e)\", d: \"m22.61 6-4.53 2.561L22.61 12z\" }), /* @__PURE__ */ React.createElement(\"path\", { fill: \"url(#f)\", d: \"M11.995 23.999v-5.122l-5.308 2.122z\" }), /* @__PURE__ */ React.createElement(\"path\", { fill: \"url(#g)\", d: \"M11.995 0v5.122L17.302 3z\" }), /* @__PURE__ */ React.createElement(\"path\", { fill: \"url(#h)\", d: \"m22.61 18-4.53-2.56-.777 5.56z\" }), /* @__PURE__ */ React.createElement(\"path\", { fill: \"url(#i)\", d: \"m1.38 6 4.53 2.562L6.689 3z\" })), /* @__PURE__ */ React.createElement(\"g\", { style: {\n mixBlendMode: \"overlay\"\n} }, /* @__PURE__ */ React.createElement(\"path\", { fill: \"url(#j)\", d: \"m1.38 6 4.53 2.561L1.38 12z\" }), /* @__PURE__ */ React.createElement(\"path\", { fill: \"url(#k)\", d: \"m22.61 18-4.53-2.561L22.61 12z\" }), /* @__PURE__ */ React.createElement(\"path\", { fill: \"url(#l)\", d: \"m1.38 18 4.53-2.56.779 5.56z\" }), /* @__PURE__ */ React.createElement(\"path\", { fill: \"url(#m)\", d: \"m22.61 6-4.53 2.562L17.303 3z\" }), /* @__PURE__ */ React.createElement(\"path\", { fill: \"url(#n)\", d: \"M11.995 23.999v-5.122l5.307 2.122z\" }), /* @__PURE__ */ React.createElement(\"path\", { fill: \"url(#o)\", d: \"M11.995 0v5.122L6.687 3z\" })), /* @__PURE__ */ React.createElement(\"path\", { fill: \"#fff\", d: \"M16.051 5.123H7.939l-4.057 6.878L7.94 18.88h8.112L20.107 12z\", opacity: 0.66 }), /* @__PURE__ */ React.createElement(\"path\", { fill: \"#fff\", d: \"M5.91 8.563v6.877l6.085 3.44 6.085-3.44V8.563l-6.085-3.44z\" }), /* @__PURE__ */ React.createElement(\"path\", { fill: \"url(#p)\", d: \"m11.996 6.682 1.44 3.908L17.429 12l-3.992 1.41-1.44 3.908-1.44-3.908L6.564 12l3.992-1.41z\" }), /* @__PURE__ */ React.createElement(\"path\", { fill: \"url(#q)\", d: \"M6.564 12h5.432v5.318l-1.44-3.908z\" }), /* @__PURE__ */ React.createElement(\"path\", { fill: \"url(#r)\", d: \"M17.428 12h-5.432V6.682l1.44 3.908z\" }), /* @__PURE__ */ React.createElement(\"defs\", null, /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"c\", x1: 1.38, x2: 22.61, y1: 12, y2: 12, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { stopColor: \"#2F6CDB\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#55AAE7\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"d\", x1: 14.351, x2: -10.794, y1: -3.018, y2: 37.999, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { stopColor: \"#4357B5\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#2E6BD3\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"e\", x1: 24.767, x2: -0.379, y1: 3.367, y2: 44.384, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { stopColor: \"#4357B5\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#2E6BD3\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"f\", x1: 22.477, x2: -2.669, y1: 1.962, y2: 42.979, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { stopColor: \"#4357B5\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#2E6BD3\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"g\", x1: 16.641, x2: -8.505, y1: -1.615, y2: 39.403, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { stopColor: \"#4357B5\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#2E6BD3\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"h\", x1: 27.726, x2: 2.58, y1: 5.181, y2: 46.199, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { stopColor: \"#4357B5\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#2E6BD3\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"i\", x1: 11.392, x2: -13.753, y1: -4.832, y2: 36.186, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { stopColor: \"#4357B5\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#2E6BD3\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"j\", x1: 4.931, x2: 0.143, y1: 10.832, y2: 8.255, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { stopColor: \"#2E6BD3\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#2F044D\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"k\", x1: 19.742, x2: 23.816, y1: 13.484, y2: 15.73, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { stopColor: \"#2E6BD3\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#2F044D\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"l\", x1: 7.913, x2: 2.603, y1: 17.43, y2: 20.142, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { stopColor: \"#2E6BD3\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#2F044D\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"m\", x1: 16.917, x2: 21.444, y1: 6.192, y2: 3.682, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { stopColor: \"#2E6BD3\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#2F044D\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"n\", x1: 14.648, x2: 14.648, y1: 18.39, y2: 23.916, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { stopColor: \"#2E6BD3\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#2F044D\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"o\", x1: 9.341, x2: 9.341, y1: 5.902, y2: 0.316, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { stopColor: \"#2E6BD3\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#2F044D\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"p\", x1: 11.996, x2: 11.996, y1: 6.803, y2: 17.129, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { stopColor: \"#2E6BD3\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#2F044D\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"q\", x1: 8.857, x2: 11.198, y1: 15.247, y2: 11.847, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { stopColor: \"#2E6BD3\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#2F044D\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"r\", x1: 14.712, x2: 14.712, y1: 11.919, y2: 8.961, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { stopColor: \"#2E6BD3\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#2F044D\" })), /* @__PURE__ */ React.createElement(\"path\", { id: \"a\", fill: \"#ffffff00\", d: \"M0 0h.01v.01H0z\" }), /* @__PURE__ */ React.createElement(\"path\", { id: \"b\", fill: \"#ffffff00\", d: \"M0 0h.01v.01H0z\" })));\nexport default SvgAtlasLogo;\n","import { FC } from \"react\";\nimport { Flex, Icon, Svg, Text } from \"@servicetitan/anvil2\";\nimport IconAtlasLogo from \"@servicetitan/anvil2/assets/icons/st/atlas_logo.svg\";\n\nexport interface AtlasHeaderProps {\n /**\n * Custom icon to display instead of the default Atlas logo\n */\n svgIcon?: Svg;\n /**\n * Custom assistant name to display instead of \"Atlas\"\n */\n assistant?: string;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\n\n/**\n * Shared component that displays the Atlas logo and name header\n * Used across all message types and recommendation cards\n */\nexport const AtlasHeader: FC<AtlasHeaderProps> = ({\n svgIcon,\n assistant = \"Atlas\",\n className,\n}) => {\n return (\n <Flex className={className} alignItems=\"center\" gap={1}>\n <Icon svg={svgIcon ?? IconAtlasLogo} size=\"medium\" inherit />\n <Text inline>\n <b>{assistant}</b>\n </Text>\n </Flex>\n );\n};\n"],"names":["IconAtlasLogo"],"mappings":";;;;AACA,MAAM,YAAY,GAAG,CAAC,KAAK,qBAAqB,KAAK,CAAC,aAAa,CAAC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MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,kBAAkB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,kBAAkB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC,kBAAkB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,EAAE,iBAAiB,EAAE,CAAC,kBAAkB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,EAAE,iBAAiB,EAAE,CAAC,CAAC,CAAC;;ACkBpqM,MAAM,cAAoC,CAAC;AAAA,EAChD,OAAA;AAAA,EACA,SAAA,GAAY,OAAA;AAAA,EACZ;AACF,CAAA,KAAM;AACJ,EAAA,4BACG,IAAA,EAAA,EAAK,SAAA,EAAsB,UAAA,EAAW,QAAA,EAAS,KAAK,CAAA,EACnD,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,QAAK,GAAA,EAAK,OAAA,IAAWA,cAAe,IAAA,EAAK,QAAA,EAAS,SAAO,IAAA,EAAC,CAAA;AAAA,wBAC1D,IAAA,EAAA,EAAK,MAAA,EAAM,MACV,QAAA,kBAAA,GAAA,CAAC,GAAA,EAAA,EAAG,qBAAU,CAAA,EAChB;AAAA,GAAA,EACF,CAAA;AAEJ;;;;"}
@@ -1,2 +1,2 @@
1
- export { A as AtlasHeader } from './atlas-header-jdAIcEpa.js';
1
+ export { A as AtlasHeader } from './atlas-header-CYHhcWuk.js';
2
2
  //# sourceMappingURL=atlas-header.js.map
@@ -4,24 +4,24 @@ import { useState, useRef, useEffect } from 'react';
4
4
  import { c as classNames } from './index-DDXI3m_u.js';
5
5
  import { Menu, Button } from '@servicetitan/anvil2';
6
6
 
7
- import './chat-composer-rich.css';const SvgAdd = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z" }));
7
+ import './chat-composer-rich.css';const SvgAdd = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z" }));
8
8
 
9
- const SvgMic = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.91-3c-.49 0-.9.36-.98.85C16.52 14.2 14.47 16 12 16s-4.52-1.8-4.93-4.15a.998.998 0 0 0-.98-.85c-.61 0-1.09.54-1 1.14.49 3 2.89 5.35 5.91 5.78V20c0 .55.45 1 1 1s1-.45 1-1v-2.08a6.993 6.993 0 0 0 5.91-5.78c.1-.6-.39-1.14-1-1.14z" }));
9
+ const SvgMic = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.91-3c-.49 0-.9.36-.98.85C16.52 14.2 14.47 16 12 16s-4.52-1.8-4.93-4.15a.998.998 0 0 0-.98-.85c-.61 0-1.09.54-1 1.14.49 3 2.89 5.35 5.91 5.78V20c0 .55.45 1 1 1s1-.45 1-1v-2.08a6.993 6.993 0 0 0 5.91-5.78c.1-.6-.39-1.14-1-1.14z" }));
10
10
 
11
- const SvgSend = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "m3.4 20.4 17.45-7.48a1 1 0 0 0 0-1.84L3.4 3.6a.993.993 0 0 0-1.39.91L2 9.12c0 .5.37.93.87.99L17 12 2.87 13.88c-.5.07-.87.5-.87 1l.01 4.61c0 .71.73 1.2 1.39.91z" }));
11
+ const SvgSend = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "m3.4 20.4 17.45-7.48a1 1 0 0 0 0-1.84L3.4 3.6a.993.993 0 0 0-1.39.91L2 9.12c0 .5.37.93.87.99L17 12 2.87 13.88c-.5.07-.87.5-.87 1l.01 4.61c0 .71.73 1.2 1.39.91z" }));
12
12
 
13
- const SvgAttachFile = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M17.5 15.438q0 2.382-1.673 4.056t-4.056 1.673q-2.384 0-4.056-1.673-1.674-1.674-1.673-4.056v-8.48q0-1.718 1.203-2.922 1.203-1.203 2.922-1.203t2.922 1.203q1.203 1.205 1.203 2.922v8.021q0 1.055-.734 1.788a2.43 2.43 0 0 1-1.787.733 2.43 2.43 0 0 1-1.788-.733 2.43 2.43 0 0 1-.733-1.788V7.417q0-.39.264-.653a.9.9 0 0 1 .653-.264q.39 0 .653.264a.9.9 0 0 1 .263.653v7.562a.67.67 0 0 0 .688.688.67.67 0 0 0 .687-.688V6.96a2.32 2.32 0 0 0-.676-1.628q-.653-.664-1.615-.664-.963 0-1.627.664a2.2 2.2 0 0 0-.665 1.627v8.48q-.023 1.627 1.123 2.761t2.773 1.134q1.604 0 2.727-1.134t1.169-2.762v-8.02q0-.39.263-.653a.9.9 0 0 1 .653-.264q.39 0 .653.264a.9.9 0 0 1 .264.653z" }));
13
+ const SvgAttachFile = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M17.5 15.438q0 2.382-1.673 4.056t-4.056 1.673q-2.384 0-4.056-1.673-1.674-1.674-1.673-4.056v-8.48q0-1.718 1.203-2.922 1.203-1.203 2.922-1.203t2.922 1.203q1.203 1.205 1.203 2.922v8.021q0 1.055-.734 1.788a2.43 2.43 0 0 1-1.787.733 2.43 2.43 0 0 1-1.788-.733 2.43 2.43 0 0 1-.733-1.788V7.417q0-.39.264-.653a.9.9 0 0 1 .653-.264q.39 0 .653.264a.9.9 0 0 1 .263.653v7.562a.67.67 0 0 0 .688.688.67.67 0 0 0 .687-.688V6.96a2.32 2.32 0 0 0-.676-1.628q-.653-.664-1.615-.664-.963 0-1.627.664a2.2 2.2 0 0 0-.665 1.627v8.48q-.023 1.627 1.123 2.761t2.773 1.134q1.604 0 2.727-1.134t1.169-2.762v-8.02q0-.39.263-.653a.9.9 0 0 1 .653-.264q.39 0 .653.264a.9.9 0 0 1 .264.653z" }));
14
14
 
15
- const placeholder = "_placeholder_eb8wi_43";
16
- const input = "_input_eb8wi_36";
15
+ const placeholder = "_placeholder_l82dk_44";
16
+ const input = "_input_l82dk_37";
17
17
  const styles = {
18
- "composer-wrapper": "_composer-wrapper_eb8wi_1",
19
- "composer-form": "_composer-form_eb8wi_9",
20
- "icon-button": "_icon-button_eb8wi_21",
21
- "input-wrapper": "_input-wrapper_eb8wi_36",
18
+ "composer-wrapper": "_composer-wrapper_l82dk_1",
19
+ "composer-form": "_composer-form_l82dk_9",
20
+ "icon-button": "_icon-button_l82dk_22",
21
+ "input-wrapper": "_input-wrapper_l82dk_37",
22
22
  placeholder: placeholder,
23
23
  input: input,
24
- "send-button": "_send-button_eb8wi_99"};
24
+ "send-button": "_send-button_l82dk_101"};
25
25
 
26
26
  const ChatComposerRich = ({
27
27
  message,
@@ -153,4 +153,4 @@ const ChatComposerRich = ({
153
153
  };
154
154
 
155
155
  export { ChatComposerRich as C };
156
- //# sourceMappingURL=chat-composer-rich-BUVy1VRa.js.map
156
+ //# sourceMappingURL=chat-composer-rich-Bj1gmhec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-composer-rich-Bj1gmhec.js","sources":["../../anvil2/dist/assets/icons/material/round/add.svg","../../anvil2/dist/assets/icons/material/round/mic.svg","../../anvil2/dist/assets/icons/material/round/send.svg","../../anvil2/dist/assets/icons/st/attach_file.svg","../src/components/chat-composer-rich/chat-composer-rich.tsx"],"sourcesContent":["import * as React from \"react\";\nconst SvgAdd = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: 24, height: 24, viewBox: \"0 0 24 24\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z\" }));\nexport default SvgAdd;\n","import * as React from \"react\";\nconst SvgMic = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: 24, height: 24, viewBox: \"0 0 24 24\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.91-3c-.49 0-.9.36-.98.85C16.52 14.2 14.47 16 12 16s-4.52-1.8-4.93-4.15a.998.998 0 0 0-.98-.85c-.61 0-1.09.54-1 1.14.49 3 2.89 5.35 5.91 5.78V20c0 .55.45 1 1 1s1-.45 1-1v-2.08a6.993 6.993 0 0 0 5.91-5.78c.1-.6-.39-1.14-1-1.14z\" }));\nexport default SvgMic;\n","import * as React from \"react\";\nconst SvgSend = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: 24, height: 24, viewBox: \"0 0 24 24\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"m3.4 20.4 17.45-7.48a1 1 0 0 0 0-1.84L3.4 3.6a.993.993 0 0 0-1.39.91L2 9.12c0 .5.37.93.87.99L17 12 2.87 13.88c-.5.07-.87.5-.87 1l.01 4.61c0 .71.73 1.2 1.39.91z\" }));\nexport default SvgSend;\n","import * as React from \"react\";\nconst SvgAttachFile = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: 24, height: 24, viewBox: \"0 0 24 24\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M17.5 15.438q0 2.382-1.673 4.056t-4.056 1.673q-2.384 0-4.056-1.673-1.674-1.674-1.673-4.056v-8.48q0-1.718 1.203-2.922 1.203-1.203 2.922-1.203t2.922 1.203q1.203 1.205 1.203 2.922v8.021q0 1.055-.734 1.788a2.43 2.43 0 0 1-1.787.733 2.43 2.43 0 0 1-1.788-.733 2.43 2.43 0 0 1-.733-1.788V7.417q0-.39.264-.653a.9.9 0 0 1 .653-.264q.39 0 .653.264a.9.9 0 0 1 .263.653v7.562a.67.67 0 0 0 .688.688.67.67 0 0 0 .687-.688V6.96a2.32 2.32 0 0 0-.676-1.628q-.653-.664-1.615-.664-.963 0-1.627.664a2.2 2.2 0 0 0-.665 1.627v8.48q-.023 1.627 1.123 2.761t2.773 1.134q1.604 0 2.727-1.134t1.169-2.762v-8.02q0-.39.263-.653a.9.9 0 0 1 .653-.264q.39 0 .653.264a.9.9 0 0 1 .264.653z\" }));\nexport default SvgAttachFile;\n","import { KeyboardEvent, useEffect, useRef, useState } from \"react\";\nimport classNames from \"classnames\";\nimport { Button, Menu } from \"@servicetitan/anvil2\";\nimport IconPlus from \"@servicetitan/anvil2/assets/icons/material/round/add.svg\";\nimport IconMic from \"@servicetitan/anvil2/assets/icons/material/round/mic.svg\";\nimport IconSend from \"@servicetitan/anvil2/assets/icons/material/round/send.svg\";\nimport IconAttachFile from \"@servicetitan/anvil2/assets/icons/st/attach_file.svg\";\n\nimport styles from \"./chat-composer-rich.module.scss\";\n\nexport interface ChatComposerRichProps {\n message?: string;\n /** Callback when user submits a message */\n onSend?: (text: string) => void;\n /** Placeholder text for the input */\n placeholder?: string;\n /** Whether the composer is disabled */\n disabled?: boolean;\n /** Additional CSS class name */\n className?: string;\n onChange: (text: string) => void;\n /** Callback when upload file is selected from menu */\n onUploadFile?: () => void;\n /** Callback when dictate message is selected from menu */\n onDictateMessage?: () => void;\n /** ID for the menu button */\n menuButtonId?: string;\n /** ID for the send icon button */\n sendIconId?: string;\n /** ID for the message input area */\n messageInputId?: string;\n}\n\nexport const ChatComposerRich = ({\n message,\n onSend,\n onChange,\n placeholder = \"Ask anything...\",\n disabled = false,\n className,\n onUploadFile,\n onDictateMessage,\n messageInputId,\n sendIconId,\n}: ChatComposerRichProps) => {\n const [isEmpty, setIsEmpty] = useState(true);\n const editorRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n if (editorRef.current && message) {\n editorRef.current.innerText = message;\n }\n }, [message]);\n\n const handleInput = () => {\n const text = editorRef.current?.innerText.trim() ?? \"\";\n setIsEmpty(text.length === 0);\n };\n\n const handleKeyDown = (e: KeyboardEvent<HTMLDivElement>) => {\n if (e.key === \"Enter\" && !e.shiftKey) {\n e.preventDefault();\n handleSubmit();\n }\n };\n\n const handleSubmit = () => {\n if (disabled) {\n return;\n }\n\n const text = editorRef.current?.innerText.trim() ?? \"\";\n onChange(text);\n if (!text) {\n return;\n }\n\n onSend?.(text);\n\n if (editorRef.current) {\n // Clear content while preserving the element structure\n editorRef.current.innerText = \"\";\n // Keep focus in the input for smooth conversation flow\n editorRef.current.focus();\n }\n setIsEmpty(true);\n };\n\n useEffect(() => {\n // Ensure empty placeholder is visible on mount\n setIsEmpty(!editorRef.current?.innerText.trim());\n }, []);\n\n return (\n <div className={classNames(styles[\"composer-wrapper\"], className)}>\n <form\n onSubmit={(e) => e.preventDefault()}\n className={styles[\"composer-form\"]}\n >\n {onDictateMessage || onUploadFile ? (\n <Menu\n id=\"\"\n trigger={(props) => (\n <Button\n {...props}\n type=\"button\"\n aria-label=\"Open menu\"\n disabled={disabled}\n className={styles[\"icon-button\"]}\n icon={IconPlus}\n size=\"small\"\n />\n )}\n disabled={disabled}\n >\n <Menu.Item\n label=\"Upload file\"\n icon={IconAttachFile}\n onClick={onUploadFile}\n />\n <Menu.Item\n label=\"Dictate message\"\n icon={IconMic}\n onClick={onDictateMessage}\n />\n </Menu>\n ) : (\n <div />\n )}\n\n <div className={styles[\"input-wrapper\"]}>\n <div\n id={messageInputId}\n ref={editorRef}\n contentEditable=\"plaintext-only\"\n role=\"textbox\"\n aria-multiline=\"true\"\n aria-label={placeholder}\n data-placeholder={placeholder}\n onInput={handleInput}\n onKeyDown={handleKeyDown}\n className={styles[\"input\"]}\n tabIndex={0}\n />\n {isEmpty && (\n <span className={styles[\"placeholder\"]}>{placeholder}</span>\n )}\n </div>\n\n <Button\n id={sendIconId}\n size=\"small\"\n type=\"button\"\n onClick={handleSubmit}\n disabled={disabled || isEmpty}\n className={styles[\"send-button\"]}\n aria-label=\"Send message\"\n appearance=\"ghost\"\n icon={IconSend}\n />\n </form>\n </div>\n );\n};\n"],"names":["IconPlus","IconAttachFile","IconMic","IconSend"],"mappings":";;;;;;AACA,MA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@layer starter, reset, base, state, application;
2
2
 
3
- ._composer-wrapper_eb8wi_1 {
3
+ ._composer-wrapper_l82dk_1 {
4
4
  width: 100%;
5
5
  margin-inline: auto;
6
6
  display: flex;
@@ -8,7 +8,7 @@
8
8
  flex: 1;
9
9
  }
10
10
 
11
- ._composer-form_eb8wi_9 {
11
+ ._composer-form_l82dk_9 {
12
12
  background-color: var(--background-color, #ffffff);
13
13
  border: 0.0625rem solid var(--border-color, #949596);
14
14
  border-radius: 0.375rem;
@@ -20,29 +20,30 @@
20
20
  transition: border-color 0.2s ease;
21
21
  }
22
22
 
23
- ._icon-button_eb8wi_21 {
24
- padding: 0.5rem;
25
- border-radius: var(--border-radius-circular);
26
- background: transparent;
27
- border: none;
28
- margin-bottom: 6px;
29
- }
30
- ._icon-button_eb8wi_21:disabled {
31
- cursor: not-allowed;
32
- opacity: 0.5;
23
+ @layer application {
24
+ ._icon-button_l82dk_22 {
25
+ padding: 0.5rem;
26
+ border-radius: var(--border-radius-circular);
27
+ background: transparent;
28
+ border: none;
29
+ margin-bottom: 6px;
30
+ }
31
+ ._icon-button_l82dk_22:disabled {
32
+ cursor: not-allowed;
33
+ opacity: 0.5;
34
+ }
35
+ ._icon-button_l82dk_22:hover:not(:disabled) {
36
+ background-color: var(--background-color-strong, #f7f7f7);
37
+ }
33
38
  }
34
- ._icon-button_eb8wi_21:hover:not(:disabled) {
35
- background-color: var(--background-color-strong, #f7f7f7);
36
- }
37
-
38
- ._input-wrapper_eb8wi_36 {
39
+ ._input-wrapper_l82dk_37 {
39
40
  flex: 1;
40
41
  display: flex;
41
42
  align-items: center;
42
43
  position: relative;
43
44
  }
44
45
 
45
- ._placeholder_eb8wi_43 {
46
+ ._placeholder_l82dk_44 {
46
47
  position: absolute;
47
48
  left: 0.4rem;
48
49
  top: 50%;
@@ -55,7 +56,7 @@
55
56
  font-size: 1rem;
56
57
  }
57
58
 
58
- ._input_eb8wi_36 {
59
+ ._input_l82dk_37 {
59
60
  flex: 1;
60
61
  width: 100%;
61
62
  max-width: 100%;
@@ -77,31 +78,33 @@
77
78
  padding-left: 7px;
78
79
  padding-right: 0.75rem;
79
80
  }
80
- ._input_eb8wi_36:empty::before {
81
+ ._input_l82dk_37:empty::before {
81
82
  content: "";
82
83
  }
83
- ._input_eb8wi_36::-webkit-scrollbar {
84
+ ._input_l82dk_37::-webkit-scrollbar {
84
85
  width: 6px;
85
86
  }
86
- ._input_eb8wi_36::-webkit-scrollbar-track {
87
+ ._input_l82dk_37::-webkit-scrollbar-track {
87
88
  background: transparent;
88
89
  }
89
- ._input_eb8wi_36::-webkit-scrollbar-thumb {
90
+ ._input_l82dk_37::-webkit-scrollbar-thumb {
90
91
  background: var(--border-color-subdued, #dfe0e1);
91
92
  border-radius: var(--border-radius-medium);
92
93
  }
93
- ._input_eb8wi_36::-webkit-scrollbar-thumb:hover {
94
+ ._input_l82dk_37::-webkit-scrollbar-thumb:hover {
94
95
  background: var(--border-color, #949596);
95
96
  }
96
97
 
97
- ._actions-wrapper_eb8wi_93 {
98
+ ._actions-wrapper_l82dk_94 {
98
99
  display: flex;
99
100
  align-items: center;
100
101
  gap: 0.5rem;
101
102
  }
102
103
 
103
- ._send-button_eb8wi_99 {
104
- padding: 0.5rem;
105
- border-radius: var(--border-radius-circular);
106
- margin-bottom: 6px;
104
+ @layer application {
105
+ ._send-button_l82dk_101 {
106
+ padding: 0.5rem;
107
+ border-radius: var(--border-radius-circular);
108
+ margin-bottom: 6px;
109
+ }
107
110
  }
@@ -1,2 +1,2 @@
1
- export { C as ChatComposerRich } from './chat-composer-rich-BUVy1VRa.js';
1
+ export { C as ChatComposerRich } from './chat-composer-rich-Bj1gmhec.js';
2
2
  //# sourceMappingURL=chat-composer-rich.js.map
@@ -5,7 +5,7 @@ import { Grid } from '@servicetitan/anvil2';
5
5
  import { S as Spinner } from './spinner-QnlThoJs.js';
6
6
 
7
7
  import './content.css';const styles = {
8
- "chat-content": "_chat-content_1r285_1"};
8
+ "chat-content": "_chat-content_12zq8_2"};
9
9
 
10
10
  const Content = ({
11
11
  children,
@@ -51,4 +51,4 @@ const Content = ({
51
51
  };
52
52
 
53
53
  export { Content as C };
54
- //# sourceMappingURL=content-D4YSNvFG.js.map
54
+ //# sourceMappingURL=content-DAPOfSv5.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"content-D4YSNvFG.js","sources":["../src/components/content/content.tsx"],"sourcesContent":["import { FC, PropsWithChildren, useEffect, useRef, useState } from \"react\";\nimport classNames from \"classnames\";\nimport { Grid } from \"@servicetitan/anvil2\";\n\nimport { Spinner } from \"../spinner\";\n\nimport styles from \"./content.module.scss\";\n\nexport interface ContentProps {\n itemsLength: number;\n loading?: boolean;\n className?: string;\n}\n\nexport const Content: FC<PropsWithChildren<ContentProps>> = ({\n children,\n itemsLength,\n loading = false,\n className,\n}) => {\n const chatEndRef = useRef<HTMLDivElement>(null);\n const containerRef = useRef<HTMLDivElement>(null);\n const [isInitialLoad, setIsInitialLoad] = useState(true);\n const [previousMessageCount, setPreviousMessageCount] = useState(0);\n\n const scrollToBottom = (smooth = true) => {\n if (smooth) {\n chatEndRef.current?.scrollIntoView({ behavior: \"smooth\", block: \"end\" });\n } else {\n chatEndRef.current?.scrollIntoView({ behavior: \"auto\", block: \"end\" });\n }\n };\n\n useEffect(() => {\n if (isInitialLoad && itemsLength > 0) {\n // Initial load: scroll to bottom without smooth animation\n scrollToBottom(false);\n setIsInitialLoad(false);\n setPreviousMessageCount(itemsLength);\n } else if (!isInitialLoad && itemsLength > previousMessageCount) {\n // New messages added: scroll to bottom with smooth animation\n scrollToBottom(true);\n setPreviousMessageCount(itemsLength);\n } else if (!isInitialLoad && itemsLength !== previousMessageCount) {\n // Message count changed but not increased (e.g., conversation switched)\n // Just update the count without scrolling\n setPreviousMessageCount(itemsLength);\n }\n }, [itemsLength, isInitialLoad, previousMessageCount]);\n\n return (\n <Grid\n className={classNames(styles[\"chat-content\"], className)}\n ref={containerRef}\n gridColumn=\"1 / 13\"\n >\n {loading ? <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IACrC;AAAA,EACF,CAAA,EAAG,CAAC,WAAA,EAAa,aAAA,EAAe,oBAAoB,CAAC,CAAA;AAErD,EAAA,uBACE,IAAA;AAAA,IAAC,IAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,UAAA,CAAW,MAAA,CAAO,cAAc,GAAG,SAAS,CAAA;AAAA,MACvD,GAAA,EAAK,YAAA;AAAA,MACL,UAAA,EAAW,QAAA;AAAA,MAEV,QAAA,EAAA;AAAA,QAAA,OAAA,mBAAU,GAAA,CAAC,WAAQ,CAAA,GAAK,QAAA;AAAA,wBACzB,GAAA,CAAC,KAAA,EAAA,EAAI,GAAA,EAAK,UAAA,EAAY;AAAA;AAAA;AAAA,GACxB;AAEJ;;;;"}
1
+ {"version":3,"file":"content-DAPOfSv5.js","sources":["../src/components/content/content.tsx"],"sourcesContent":["import { FC, PropsWithChildren, useEffect, useRef, useState } from \"react\";\nimport classNames from \"classnames\";\nimport { Grid } from \"@servicetitan/anvil2\";\n\nimport { Spinner } from \"../spinner\";\n\nimport styles from \"./content.module.scss\";\n\nexport interface ContentProps {\n itemsLength: number;\n loading?: boolean;\n className?: string;\n}\n\nexport const Content: FC<PropsWithChildren<ContentProps>> = ({\n children,\n itemsLength,\n loading = false,\n className,\n}) => {\n const chatEndRef = useRef<HTMLDivElement>(null);\n const containerRef = useRef<HTMLDivElement>(null);\n const [isInitialLoad, setIsInitialLoad] = useState(true);\n const [previousMessageCount, setPreviousMessageCount] = useState(0);\n\n const scrollToBottom = (smooth = true) => {\n if (smooth) {\n chatEndRef.current?.scrollIntoView({ behavior: \"smooth\", block: \"end\" });\n } else {\n chatEndRef.current?.scrollIntoView({ behavior: \"auto\", block: \"end\" });\n }\n };\n\n useEffect(() => {\n if (isInitialLoad && itemsLength > 0) {\n // Initial load: scroll to bottom without smooth animation\n scrollToBottom(false);\n setIsInitialLoad(false);\n setPreviousMessageCount(itemsLength);\n } else if (!isInitialLoad && itemsLength > previousMessageCount) {\n // New messages added: scroll to bottom with smooth animation\n scrollToBottom(true);\n setPreviousMessageCount(itemsLength);\n } else if (!isInitialLoad && itemsLength !== previousMessageCount) {\n // Message count changed but not increased (e.g., conversation switched)\n // Just update the count without scrolling\n setPreviousMessageCount(itemsLength);\n }\n }, [itemsLength, isInitialLoad, previousMessageCount]);\n\n return (\n <Grid\n className={classNames(styles[\"chat-content\"], className)}\n ref={containerRef}\n gridColumn=\"1 / 13\"\n >\n {loading ? <Spinner /> : children}\n <div ref={chatEndRef} />\n </Grid>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;AAcO,MAAM,UAA+C,CAAC;AAAA,EAC3D,QAAA;AAAA,EACA,WAAA;AAAA,EACA,OAAA,GAAU,KAAA;AAAA,EACV;AACF,CAAA,KAAM;AACJ,EAAA,MAAM,UAAA,GAAa,OAAuB,IAAI,CAAA;AAC9C,EAAA,MAAM,YAAA,GAAe,OAAuB,IAAI,CAAA;AAChD,EAAA,MAAM,CAAC,aAAA,EAAe,gBAAgB,CAAA,GAAI,SAAS,IAAI,CAAA;AACvD,EAAA,MAAM,CAAC,oBAAA,EAAsB,uBAAuB,CAAA,GAAI,SAAS,CAAC,CAAA;AAElE,EAAA,MAAM,cAAA,GAAiB,CAAC,MAAA,GAAS,IAAA,KAAS;AACxC,IAAA,IAAI,MAAA,EAAQ;AACV,MAAA,UAAA,CAAW,SAAS,cAAA,CAAe,EAAE,UAAU,QAAA,EAAU,KAAA,EAAO,OAAO,CAAA;AAAA,IACzE,CAAA,MAAO;AACL,MAAA,UAAA,CAAW,SAAS,cAAA,CAAe,EAAE,UAAU,MAAA,EAAQ,KAAA,EAAO,OAAO,CAAA;AAAA,IACvE;AAAA,EACF,CAAA;AAEA,EAAA,SAAA,CAAU,MAAM;AACd,IAAA,IAAI,aAAA,IAAiB,cAAc,CAAA,EAAG;AAEpC,MAAA,cAAA,CAAe,KAAK,CAAA;AACpB,MAAA,gBAAA,CAAiB,KAAK,CAAA;AACtB,MAAA,uBAAA,CAAwB,WAAW,CAAA;AAAA,IACrC,CAAA,MAAA,IAAW,CAAC,aAAA,IAAiB,WAAA,GAAc,oBAAA,EAAsB;AAE/D,MAAA,cAAA,CAAe,IAAI,CAAA;AACnB,MAAA,uBAAA,CAAwB,WAAW,CAAA;AAAA,IACrC,CAAA,MAAA,IAAW,CAAC,aAAA,IAAiB,WAAA,KAAgB,oBAAA,EAAsB;AAGjE,MAAA,uBAAA,CAAwB,WAAW,CAAA;AAAA,IACrC;AAAA,EACF,CAAA,EAAG,CAAC,WAAA,EAAa,aAAA,EAAe,oBAAoB,CAAC,CAAA;AAErD,EAAA,uBACE,IAAA;AAAA,IAAC,IAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,UAAA,CAAW,MAAA,CAAO,cAAc,GAAG,SAAS,CAAA;AAAA,MACvD,GAAA,EAAK,YAAA;AAAA,MACL,UAAA,EAAW,QAAA;AAAA,MAEV,QAAA,EAAA;AAAA,QAAA,OAAA,mBAAU,GAAA,CAAC,WAAQ,CAAA,GAAK,QAAA;AAAA,wBACzB,GAAA,CAAC,KAAA,EAAA,EAAI,GAAA,EAAK,UAAA,EAAY;AAAA;AAAA;AAAA,GACxB;AAEJ;;;;"}
package/dist/content.css CHANGED
@@ -1,10 +1,12 @@
1
1
  @layer starter, reset, base, state, application;
2
- ._chat-content_1r285_1 {
3
- flex-grow: 1;
4
- padding: var(--size-4);
5
- box-sizing: border-box;
6
- overflow-y: auto;
7
- display: flex;
8
- flex-direction: column;
9
- gap: var(--size-2);
2
+ @layer application {
3
+ ._chat-content_12zq8_2 {
4
+ flex-grow: 1;
5
+ padding: var(--size-4);
6
+ box-sizing: border-box;
7
+ overflow-y: auto;
8
+ display: flex;
9
+ flex-direction: column;
10
+ gap: var(--size-2);
11
+ }
10
12
  }
package/dist/content.js CHANGED
@@ -1,2 +1,2 @@
1
- export { C as Content } from './content-D4YSNvFG.js';
1
+ export { C as Content } from './content-DAPOfSv5.js';
2
2
  //# sourceMappingURL=content.js.map
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+
3
+ const SvgError = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 11c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z" }));
4
+
5
+ export { SvgError as S };
6
+ //# sourceMappingURL=error-ChaDmvfp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-ChaDmvfp.js","sources":["../../anvil2/dist/assets/icons/material/round/error.svg"],"sourcesContent":["import * as React from \"react\";\nconst SvgError = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: 24, height: 24, viewBox: \"0 0 24 24\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 11c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z\" }));\nexport default SvgError;\n"],"names":[],"mappings":";;AACK,MAAC,QAAQ,GAAG,CAAC,KAAK,qBAAqB,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,4BAA4B,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,kBAAkB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,uJAAuJ,EAAE,CAAC;;;;"}
@@ -2,7 +2,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { c as classNames } from './index-DDXI3m_u.js';
3
3
  import { observer } from 'mobx-react';
4
4
  import { Text, Link } from '@servicetitan/anvil2';
5
- import { C as ChatComposerRich } from './chat-composer-rich-BUVy1VRa.js';
5
+ import { C as ChatComposerRich } from './chat-composer-rich-Bj1gmhec.js';
6
6
 
7
7
  import './footer.css';const styles = {
8
8
  "chat-footer": "_chat-footer_1kkwo_1"};
@@ -83,4 +83,4 @@ const Footer = observer(
83
83
  );
84
84
 
85
85
  export { Footer as F };
86
- //# sourceMappingURL=footer-Du5cuzZZ.js.map
86
+ //# sourceMappingURL=footer-Cv4yRBA1.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"footer-Du5cuzZZ.js","sources":["../src/components/footer/footer.tsx"],"sourcesContent":["import classNames from \"classnames\";\nimport { observer } from \"mobx-react\";\nimport { Link, Text } from \"@servicetitan/anvil2\";\n\nimport { ChatComposerRich } from \"../chat-composer-rich\";\n\nimport styles from \"./footer.module.scss\";\n\nexport interface FooterProps {\n isLoading?: boolean;\n message: string;\n placeholder?: string;\n onMessageChange: (value: string) => void;\n onSubmit: () => void;\n className?: string;\n messageInputId?: string;\n sendIconId?: string;\n learnMoreLinkId?: string;\n /** Callback when upload file is selected from menu */\n onUploadFile?: () => void;\n /** Callback when dictate message is selected from menu */\n onDictateMessage?: () => void;\n}\n\nexport const Footer = observer(\n ({\n isLoading = false,\n placeholder = \"Ask Atlas\",\n message,\n onMessageChange,\n onSubmit,\n className,\n messageInputId,\n sendIconId,\n learnMoreLinkId,\n onUploadFile,\n onDictateMessage,\n }: FooterProps) => {\n const handleSubmit = () => {\n if (!isLoading) {\n onSubmit();\n }\n };\n\n return (\n <div className={classNames(styles[\"chat-footer\"], className)}>\n <ChatComposerRich\n messageInputId={messageInputId}\n sendIconId={sendIconId}\n placeholder={placeholder}\n onSend={handleSubmit}\n onChange={onMessageChange}\n message={message}\n disabled={isLoading}\n onUploadFile={onUploadFile}\n onDictateMessage={onDictateMessage}\n />\n <Text\n subdued\n variant=\"body\"\n size=\"small\"\n style={{\n fontSize: \"var(--typography-label-size-small)\",\n marginBlockStart: \"var(--size-1)\",\n }}\n >\n Atlas is TI-powered, subject to our privacy policy.{\" \"}\n <Link\n id={learnMoreLinkId}\n target=\"_blank\"\n href=\"#\"\n appearance=\"secondary\"\n >\n <Text\n inline\n size=\"small\"\n subdued\n style={{\n fontSize: \"var(--typography-label-size-small)\",\n }}\n >\n Learn more\n </Text>\n </Link>\n </Text>\n </div>\n );\n },\n);\n"],"names":[],"mappings":";;;;;;;;;AAwBO,MAAM,MAAA,GAAS,QAAA;AAAA,EACpB,CAAC;AAAA,IACC,SAAA,GAAY,KAAA;AAAA,IACZ,WAAA,GAAc,WAAA;AAAA,IACd,OAAA;AAAA,IACA,eAAA;AAAA,IACA,QAAA;AAAA,IACA,SAAA;AAAA,IACA,cAAA;AAAA,IACA,UAAA;AAAA,IACA,eAAA;AAAA,IACA,YAAA;AAAA,IACA;AAAA,GACF,KAAmB;AACjB,IAAA,MAAM,eAAe,MAAM;AACzB,MAAA,IAAI,CAAC,SAAA,EAAW;AACd,QAAA,QAAA,EAAS;AAAA,MACX;AAAA,IACF,CAAA;AAEA,IAAA,uBACE,IAAA,CAAC,SAAI,SAAA,EAAW,UAAA,CAAW,OAAO,aAAa,CAAA,EAAG,SAAS,CAAA,EACzD,QAAA,EAAA;AAAA,sBAAA,GAAA;AAAA,QAAC,gBAAA;AAAA,QAAA;AAAA,UACC,cAAA;AAAA,UACA,UAAA;AAAA,UACA,WAAA;AAAA,UACA,MAAA,EAAQ,YAAA;AAAA,UACR,QAAA,EAAU,eAAA;AAAA,UACV,OAAA;AAAA,UACA,QAAA,EAAU,SAAA;AAAA,UACV,YAAA;AAAA,UACA;AAAA;AAAA,OACF;AAAA,sBACA,IAAA;AAAA,QAAC,IAAA;AAAA,QAAA;AAAA,UACC,OAAA,EAAO,IAAA;AAAA,UACP,OAAA,EAAQ,MAAA;AAAA,UACR,IAAA,EAAK,OAAA;AAAA,UACL,KAAA,EAAO;AAAA,YACL,QAAA,EAAU,oCAAA;AAAA,YACV,gBAAA,EAAkB;AAAA,WACpB;AAAA,UACD,QAAA,EAAA;AAAA,YAAA,qDAAA;AAAA,YACqD,GAAA;AAAA,4BACpD,GAAA;AAAA,cAAC,IAAA;AAAA,cAAA;AAAA,gBACC,EAAA,EAAI,eAAA;AAAA,gBACJ,MAAA,EAAO,QAAA;AAAA,gBACP,IAAA,EAAK,GAAA;AAAA,gBACL,UAAA,EAAW,WAAA;AAAA,gBAEX,QAAA,kBAAA,GAAA;AAAA,kBAAC,IAAA;AAAA,kBAAA;AAAA,oBACC,MAAA,EAAM,IAAA;AAAA,oBACN,IAAA,EAAK,OAAA;AAAA,oBACL,OAAA,EAAO,IAAA;AAAA,oBACP,KAAA,EAAO;AAAA,sBACL,QAAA,EAAU;AAAA,qBACZ;AAAA,oBACD,QAAA,EAAA;AAAA;AAAA;AAED;AAAA;AACF;AAAA;AAAA;AACF,KAAA,EACF,CAAA;AAAA,EAEJ;AACF;;;;"}
1
+ {"version":3,"file":"footer-Cv4yRBA1.js","sources":["../src/components/footer/footer.tsx"],"sourcesContent":["import classNames from \"classnames\";\nimport { observer } from \"mobx-react\";\nimport { Link, Text } from \"@servicetitan/anvil2\";\n\nimport { ChatComposerRich } from \"../chat-composer-rich\";\n\nimport styles from \"./footer.module.scss\";\n\nexport interface FooterProps {\n isLoading?: boolean;\n message: string;\n placeholder?: string;\n onMessageChange: (value: string) => void;\n onSubmit: () => void;\n className?: string;\n messageInputId?: string;\n sendIconId?: string;\n learnMoreLinkId?: string;\n /** Callback when upload file is selected from menu */\n onUploadFile?: () => void;\n /** Callback when dictate message is selected from menu */\n onDictateMessage?: () => void;\n}\n\nexport const Footer = observer(\n ({\n isLoading = false,\n placeholder = \"Ask Atlas\",\n message,\n onMessageChange,\n onSubmit,\n className,\n messageInputId,\n sendIconId,\n learnMoreLinkId,\n onUploadFile,\n onDictateMessage,\n }: FooterProps) => {\n const handleSubmit = () => {\n if (!isLoading) {\n onSubmit();\n }\n };\n\n return (\n <div className={classNames(styles[\"chat-footer\"], className)}>\n <ChatComposerRich\n messageInputId={messageInputId}\n sendIconId={sendIconId}\n placeholder={placeholder}\n onSend={handleSubmit}\n onChange={onMessageChange}\n message={message}\n disabled={isLoading}\n onUploadFile={onUploadFile}\n onDictateMessage={onDictateMessage}\n />\n <Text\n subdued\n variant=\"body\"\n size=\"small\"\n style={{\n fontSize: \"var(--typography-label-size-small)\",\n marginBlockStart: \"var(--size-1)\",\n }}\n >\n Atlas is TI-powered, subject to our privacy policy.{\" \"}\n <Link\n id={learnMoreLinkId}\n target=\"_blank\"\n href=\"#\"\n appearance=\"secondary\"\n >\n <Text\n inline\n size=\"small\"\n subdued\n style={{\n fontSize: \"var(--typography-label-size-small)\",\n }}\n >\n Learn more\n </Text>\n </Link>\n </Text>\n </div>\n );\n },\n);\n"],"names":[],"mappings":";;;;;;;;;AAwBO,MAAM,MAAA,GAAS,QAAA;AAAA,EACpB,CAAC;AAAA,IACC,SAAA,GAAY,KAAA;AAAA,IACZ,WAAA,GAAc,WAAA;AAAA,IACd,OAAA;AAAA,IACA,eAAA;AAAA,IACA,QAAA;AAAA,IACA,SAAA;AAAA,IACA,cAAA;AAAA,IACA,UAAA;AAAA,IACA,eAAA;AAAA,IACA,YAAA;AAAA,IACA;AAAA,GACF,KAAmB;AACjB,IAAA,MAAM,eAAe,MAAM;AACzB,MAAA,IAAI,CAAC,SAAA,EAAW;AACd,QAAA,QAAA,EAAS;AAAA,MACX;AAAA,IACF,CAAA;AAEA,IAAA,uBACE,IAAA,CAAC,SAAI,SAAA,EAAW,UAAA,CAAW,OAAO,aAAa,CAAA,EAAG,SAAS,CAAA,EACzD,QAAA,EAAA;AAAA,sBAAA,GAAA;AAAA,QAAC,gBAAA;AAAA,QAAA;AAAA,UACC,cAAA;AAAA,UACA,UAAA;AAAA,UACA,WAAA;AAAA,UACA,MAAA,EAAQ,YAAA;AAAA,UACR,QAAA,EAAU,eAAA;AAAA,UACV,OAAA;AAAA,UACA,QAAA,EAAU,SAAA;AAAA,UACV,YAAA;AAAA,UACA;AAAA;AAAA,OACF;AAAA,sBACA,IAAA;AAAA,QAAC,IAAA;AAAA,QAAA;AAAA,UACC,OAAA,EAAO,IAAA;AAAA,UACP,OAAA,EAAQ,MAAA;AAAA,UACR,IAAA,EAAK,OAAA;AAAA,UACL,KAAA,EAAO;AAAA,YACL,QAAA,EAAU,oCAAA;AAAA,YACV,gBAAA,EAAkB;AAAA,WACpB;AAAA,UACD,QAAA,EAAA;AAAA,YAAA,qDAAA;AAAA,YACqD,GAAA;AAAA,4BACpD,GAAA;AAAA,cAAC,IAAA;AAAA,cAAA;AAAA,gBACC,EAAA,EAAI,eAAA;AAAA,gBACJ,MAAA,EAAO,QAAA;AAAA,gBACP,IAAA,EAAK,GAAA;AAAA,gBACL,UAAA,EAAW,WAAA;AAAA,gBAEX,QAAA,kBAAA,GAAA;AAAA,kBAAC,IAAA;AAAA,kBAAA;AAAA,oBACC,MAAA,EAAM,IAAA;AAAA,oBACN,IAAA,EAAK,OAAA;AAAA,oBACL,OAAA,EAAO,IAAA;AAAA,oBACP,KAAA,EAAO;AAAA,sBACL,QAAA,EAAU;AAAA,qBACZ;AAAA,oBACD,QAAA,EAAA;AAAA;AAAA;AAED;AAAA;AACF;AAAA;AAAA;AACF,KAAA,EACF,CAAA;AAAA,EAEJ;AACF;;;;"}
package/dist/footer.js CHANGED
@@ -1,2 +1,2 @@
1
- export { F as Footer } from './footer-Du5cuzZZ.js';
1
+ export { F as Footer } from './footer-Cv4yRBA1.js';
2
2
  //# sourceMappingURL=footer.js.map
@@ -5,21 +5,21 @@ import { c as classNames } from './index-DDXI3m_u.js';
5
5
  import { observer } from 'mobx-react';
6
6
  import { Flex, Tooltip, Button, OverflowText, Text, Badge } from '@servicetitan/anvil2';
7
7
 
8
- import './header.css';const SvgArrowBackIos = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M16.62 2.99a1.25 1.25 0 0 0-1.77 0L6.54 11.3a.996.996 0 0 0 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76z" }));
8
+ import './header.css';const SvgArrowBackIos = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M16.62 2.99a1.25 1.25 0 0 0-1.77 0L6.54 11.3a.996.996 0 0 0 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76z" }));
9
9
 
10
- const SvgClose = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7A.996.996 0 1 0 5.7 7.11L10.59 12 5.7 16.89a.996.996 0 1 0 1.41 1.41L12 13.41l4.89 4.89a.996.996 0 1 0 1.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z" }));
10
+ const SvgClose = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7A.996.996 0 1 0 5.7 7.11L10.59 12 5.7 16.89a.996.996 0 1 0 1.41 1.41L12 13.41l4.89 4.89a.996.996 0 1 0 1.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z" }));
11
11
 
12
- const SvgDragIndicator = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" }));
12
+ const SvgDragIndicator = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" }));
13
13
 
14
- const SvgInbox = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v9h-3.56c-.36 0-.68.19-.86.5-.52.9-1.47 1.5-2.58 1.5s-2.06-.6-2.58-1.5a1 1 0 0 0-.86-.5H5V5h14z" }));
14
+ const SvgInbox = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v9h-3.56c-.36 0-.68.19-.86.5-.52.9-1.47 1.5-2.58 1.5s-2.06-.6-2.58-1.5a1 1 0 0 0-.86-.5H5V5h14z" }));
15
15
 
16
- const SvgModeEdit = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M3 17.46v3.04c0 .28.22.5.5.5h3.04c.13 0 .26-.05.35-.15L17.81 9.94l-3.75-3.75L3.15 17.1c-.1.1-.15.22-.15.36zM20.71 5.63l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 0 0 0-1.41z" }));
16
+ const SvgModeEdit = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M3 17.46v3.04c0 .28.22.5.5.5h3.04c.13 0 .26-.05.35-.15L17.81 9.94l-3.75-3.75L3.15 17.1c-.1.1-.15.22-.15.36zM20.71 5.63l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 0 0 0-1.41z" }));
17
17
 
18
- const SvgOpenInFull = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M21 8.59V4c0-.55-.45-1-1-1h-4.59c-.89 0-1.34 1.08-.71 1.71l1.59 1.59-10 10-1.59-1.59c-.62-.63-1.7-.19-1.7.7V20c0 .55.45 1 1 1h4.59c.89 0 1.34-1.08.71-1.71L7.71 17.7l10-10 1.59 1.59c.62.63 1.7.19 1.7-.7z" }));
18
+ const SvgOpenInFull = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M21 8.59V4c0-.55-.45-1-1-1h-4.59c-.89 0-1.34 1.08-.71 1.71l1.59 1.59-10 10-1.59-1.59c-.62-.63-1.7-.19-1.7.7V20c0 .55.45 1 1 1h4.59c.89 0 1.34-1.08.71-1.71L7.71 17.7l10-10 1.59 1.59c.62.63 1.7.19 1.7-.7z" }));
19
19
 
20
20
  const styles = {
21
- "chat-header": "_chat-header_158xe_1",
22
- "chat-header-title": "_chat-header-title_158xe_15"};
21
+ "chat-header": "_chat-header_1txn0_2",
22
+ "chat-header-title": "_chat-header-title_1txn0_15"};
23
23
 
24
24
  const Header = observer(
25
25
  ({
@@ -167,4 +167,4 @@ const Header = observer(
167
167
  );
168
168
 
169
169
  export { Header as H };
170
- //# sourceMappingURL=header-C7lrbzyg.js.map
170
+ //# sourceMappingURL=header-ku2JmzDC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header-ku2JmzDC.js","sources":["../../anvil2/dist/assets/icons/material/round/arrow_back_ios.svg","../../anvil2/dist/assets/icons/material/round/close.svg","../../anvil2/dist/assets/icons/material/round/drag_indicator.svg","../../anvil2/dist/assets/icons/material/round/inbox.svg","../../anvil2/dist/assets/icons/material/round/mode_edit.svg","../../anvil2/dist/assets/icons/material/round/open_in_full.svg","../src/components/header/header.tsx"],"sourcesContent":["import * as React from \"react\";\nconst SvgArrowBackIos = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: 24, height: 24, viewBox: \"0 0 24 24\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M16.62 2.99a1.25 1.25 0 0 0-1.77 0L6.54 11.3a.996.996 0 0 0 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76z\" }));\nexport default SvgArrowBackIos;\n","import * as React from \"react\";\nconst SvgClose = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: 24, height: 24, viewBox: \"0 0 24 24\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7A.996.996 0 1 0 5.7 7.11L10.59 12 5.7 16.89a.996.996 0 1 0 1.41 1.41L12 13.41l4.89 4.89a.996.996 0 1 0 1.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z\" }));\nexport default SvgClose;\n","import * as React from \"react\";\nconst SvgDragIndicator = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: 24, height: 24, viewBox: \"0 0 24 24\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z\" }));\nexport default SvgDragIndicator;\n","import * as React from \"react\";\nconst SvgInbox = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: 24, height: 24, viewBox: \"0 0 24 24\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v9h-3.56c-.36 0-.68.19-.86.5-.52.9-1.47 1.5-2.58 1.5s-2.06-.6-2.58-1.5a1 1 0 0 0-.86-.5H5V5h14z\" }));\nexport default SvgInbox;\n","import * as React from \"react\";\nconst SvgModeEdit = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: 24, height: 24, viewBox: \"0 0 24 24\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M3 17.46v3.04c0 .28.22.5.5.5h3.04c.13 0 .26-.05.35-.15L17.81 9.94l-3.75-3.75L3.15 17.1c-.1.1-.15.22-.15.36zM20.71 5.63l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 0 0 0-1.41z\" }));\nexport default SvgModeEdit;\n","import * as React from \"react\";\nconst SvgOpenInFull = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: 24, height: 24, viewBox: \"0 0 24 24\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M21 8.59V4c0-.55-.45-1-1-1h-4.59c-.89 0-1.34 1.08-.71 1.71l1.59 1.59-10 10-1.59-1.59c-.62-.63-1.7-.19-1.7.7V20c0 .55.45 1 1 1h4.59c.89 0 1.34-1.08.71-1.71L7.71 17.7l10-10 1.59 1.59c.62.63 1.7.19 1.7-.7z\" }));\nexport default SvgOpenInFull;\n","import { Fragment, MouseEvent } from \"react\";\nimport classNames from \"classnames\";\nimport { observer } from \"mobx-react\";\nimport {\n Badge,\n Button,\n Flex,\n OverflowText,\n Text,\n Tooltip,\n} from \"@servicetitan/anvil2\";\nimport IconArrowBackIos from \"@servicetitan/anvil2/assets/icons/material/round/arrow_back_ios.svg\";\nimport IconClose from \"@servicetitan/anvil2/assets/icons/material/round/close.svg\";\nimport IconDragIndicator from \"@servicetitan/anvil2/assets/icons/material/round/drag_indicator.svg\";\nimport IconInbox from \"@servicetitan/anvil2/assets/icons/material/round/inbox.svg\";\nimport IconModeEdit from \"@servicetitan/anvil2/assets/icons/material/round/mode_edit.svg\";\nimport IconOpenInFull from \"@servicetitan/anvil2/assets/icons/material/round/open_in_full.svg\";\n\nimport styles from \"./header.module.scss\";\n\nexport interface HeaderProps {\n title?: string;\n onMouseDown?: (e: MouseEvent) => void;\n isDragging?: boolean;\n isDraggable?: boolean;\n isExpanded?: boolean;\n disabledChatsIcon?: boolean;\n historyCount?: number;\n titleBadge?: string | number;\n className?: string;\n onBack?: () => void;\n onClose?: () => void;\n onViewHistory?: () => void;\n onFullscreen?: () => void;\n onCreateNewChat?: () => void;\n backButtonId?: string;\n viewHistoryButtonId?: string;\n fullscreenButtonId?: string;\n newChatButtonId?: string;\n closeButtonId?: string;\n}\n\nexport const Header = observer(\n ({\n title = \"Atlas\",\n onMouseDown,\n isDraggable,\n isDragging,\n onFullscreen,\n onViewHistory,\n isExpanded,\n historyCount,\n titleBadge,\n disabledChatsIcon,\n onClose,\n onBack,\n className = \"\",\n onCreateNewChat,\n backButtonId,\n viewHistoryButtonId,\n fullscreenButtonId,\n newChatButtonId,\n closeButtonId,\n }: HeaderProps) => {\n return (\n <Flex className={classNames(styles[\"chat-header\"], className)}>\n <Flex gap={1} style={{ marginInlineEnd: \"var(--size-1)\" }}>\n {isDraggable && !isExpanded && (\n <Tooltip placement=\"bottom\">\n <Tooltip.Trigger>\n <Button\n className=\"cursor-grab\"\n onMouseDown={onMouseDown ?? undefined}\n style={{\n position: \"relative\",\n cursor: isDragging ? \"grabbing\" : \"grab\",\n }}\n appearance=\"ghost\"\n size=\"small\"\n icon={IconDragIndicator}\n aria-label=\"drag\"\n />\n </Tooltip.Trigger>\n {isDragging ? null : (\n <Tooltip.Content>Drag to Adjust</Tooltip.Content>\n )}\n </Tooltip>\n )}\n {onBack && (\n <Button\n id={backButtonId}\n appearance=\"ghost\"\n size=\"small\"\n icon={IconArrowBackIos}\n onClick={onBack}\n />\n )}\n </Flex>\n <Flex grow={1}>\n <Tooltip placement=\"bottom\">\n <Tooltip.Trigger>\n <OverflowText rows={1} className={styles[\"chat-header-title\"]}>\n <Text\n el=\"h4\"\n size=\"small\"\n variant=\"headline\"\n style={{ marginBlockEnd: \"0\", paddingBlockEnd: \"0\" }}\n >\n {title}\n </Text>\n {!!titleBadge && (\n <Badge\n offset={{\n x: \"12px\",\n y: \"0.5rem\",\n }}\n >\n {titleBadge}\n </Badge>\n )}\n </OverflowText>\n </Tooltip.Trigger>\n <Tooltip.Content>{title}</Tooltip.Content>\n </Tooltip>\n </Flex>\n <Flex gap={1}>\n {onViewHistory && (\n <Tooltip placement=\"bottom\">\n <Tooltip.Trigger style={{ position: \"relative\" }}>\n <Fragment>\n <Button\n id={viewHistoryButtonId}\n style={{ position: \"relative\" }}\n disabled={disabledChatsIcon}\n appearance=\"ghost\"\n size=\"small\"\n icon={IconInbox}\n aria-label=\"chats\"\n onClick={onViewHistory}\n />\n {!!historyCount && <Badge>{historyCount}</Badge>}\n </Fragment>\n </Tooltip.Trigger>\n <Tooltip.Content>View All Chats</Tooltip.Content>\n </Tooltip>\n )}\n {onFullscreen && (\n <Tooltip placement=\"bottom\">\n <Tooltip.Trigger>\n <Button\n id={fullscreenButtonId}\n appearance=\"ghost\"\n size=\"small\"\n icon={IconOpenInFull}\n aria-label=\"fullscreen\"\n onClick={onFullscreen}\n />\n </Tooltip.Trigger>\n <Tooltip.Content>\n {isExpanded ? \"Minimize Window\" : \"Expand Window\"}\n </Tooltip.Content>\n </Tooltip>\n )}\n {onCreateNewChat && (\n <Tooltip placement=\"bottom\">\n <Tooltip.Trigger>\n <Button\n id={newChatButtonId}\n size=\"small\"\n icon={IconModeEdit}\n aria-label=\"new chat\"\n onClick={onCreateNewChat}\n >\n New Chat\n </Button>\n </Tooltip.Trigger>\n <Tooltip.Content>New Chat</Tooltip.Content>\n </Tooltip>\n )}\n {onClose && (\n <Tooltip placement=\"bottom\">\n <Tooltip.Trigger>\n <Button\n id={closeButtonId}\n appearance=\"ghost\"\n size=\"small\"\n icon={IconClose}\n aria-label=\"close\"\n onClick={onClose}\n />\n </Tooltip.Trigger>\n <Tooltip.Content>Hide Window</Tooltip.Content>\n </Tooltip>\n )}\n </Flex>\n </Flex>\n );\n },\n);\n"],"names":["IconDragIndicator","IconArrowBackIos","IconInbox","IconOpenInFull","IconModeEdit","IconClose"],"mappings":";;;;;;;AACA,MAAM,eAAe,GAAG,CAAC,KAAK,qBAAqB,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,4BAA4B,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,kBAAkB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,gKAAgK,EAAE,CAAC,CAAC;;ACAnY,MAAM,QAAQ,GAAG,CAAC,KAAK,qBAAqB,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,4BAA4B,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,kBAAkB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,8MAA8M,EAAE,CAAC,CAAC;;ACA1a,MAAM,gBAAgB,GAAG,CAAC,KAAK,qBAAqB,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,4BAA4B,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,kBAAkB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,qSAAqS,EAAE,CAAC,CAAC;;ACAzgB,MAAM,QAAQ,GAAG,CAAC,KAAK,qBAAqB,KAAK,CAAC,aAAa,CAAC,KAAK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AAA;AAAA,cACV,QAAA,EAAA;AAAA;AAAA,WAED,EACF,CAAA;AAAA,0BACA,GAAA,CAAC,OAAA,CAAQ,OAAA,EAAR,EAAgB,QAAA,EAAA,UAAA,EAAQ;AAAA,SAAA,EAC3B,CAAA;AAAA,QAED,OAAA,oBACC,IAAA,CAAC,OAAA,EAAA,EAAQ,SAAA,EAAU,QAAA,EACjB,QAAA,EAAA;AAAA,0BAAA,GAAA,CAAC,OAAA,CAAQ,SAAR,EACC,QAAA,kBAAA,GAAA;AAAA,YAAC,MAAA;AAAA,YAAA;AAAA,cACC,EAAA,EAAI,aAAA;AAAA,cACJ,UAAA,EAAW,OAAA;AAAA,cACX,IAAA,EAAK,OAAA;AAAA,cACL,IAAA,EAAMC,QAAA;AAAA,cACN,YAAA,EAAW,OAAA;AAAA,cACX,OAAA,EAAS;AAAA;AAAA,WACX,EACF,CAAA;AAAA,0BACA,GAAA,CAAC,OAAA,CAAQ,OAAA,EAAR,EAAgB,QAAA,EAAA,aAAA,EAAW;AAAA,SAAA,EAC9B;AAAA,OAAA,EAEJ;AAAA,KAAA,EACF,CAAA;AAAA,EAEJ;AACF;;;;"}
package/dist/header.css CHANGED
@@ -1,23 +1,23 @@
1
1
  @layer starter, reset, base, state, application;
2
-
3
- ._chat-header_158xe_1 {
4
- width: 100%;
5
- height: 56px;
6
- flex-shrink: 0;
7
- border-radius: 12px 12px 0 0;
8
- border-bottom: 1px solid var(--border-color-subdued, #dfe0e1);
9
- box-sizing: border-box;
10
- background: light-dark(var(--background-color), var(--background-color-strong));
11
- display: flex;
12
- align-items: center;
13
- justify-content: space-between;
14
- padding: 0 var(--size-4);
15
- }
16
-
17
- ._chat-header-title_158xe_15 {
18
- position: relative;
19
- }
20
- ._chat-header-title_158xe_15 > :first-child {
21
- padding-top: 0;
22
- padding-bottom: 2px;
2
+ @layer application {
3
+ ._chat-header_1txn0_2 {
4
+ width: 100%;
5
+ height: 56px;
6
+ flex-shrink: 0;
7
+ border-radius: 12px 12px 0 0;
8
+ border-bottom: 1px solid var(--border-color-subdued, #dfe0e1);
9
+ box-sizing: border-box;
10
+ background: light-dark(var(--background-color), var(--background-color-strong));
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: space-between;
14
+ padding: 0 var(--size-4);
15
+ }
16
+ ._chat-header-title_1txn0_15 {
17
+ position: relative;
18
+ }
19
+ ._chat-header-title_1txn0_15 > :first-child {
20
+ padding-top: 0;
21
+ padding-bottom: 2px;
22
+ }
23
23
  }
package/dist/header.js CHANGED
@@ -1,2 +1,2 @@
1
- export { H as Header } from './header-C7lrbzyg.js';
1
+ export { H as Header } from './header-ku2JmzDC.js';
2
2
  //# sourceMappingURL=header.js.map
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
- export { A as AtlasHeader } from './atlas-header-jdAIcEpa.js';
1
+ export { A as AtlasHeader } from './atlas-header-CYHhcWuk.js';
2
2
  export { C as ChatWindow } from './chat-window-BU8VGO9z.js';
3
- export { C as ChatComposerRich } from './chat-composer-rich-BUVy1VRa.js';
4
- export { C as Content } from './content-D4YSNvFG.js';
5
- export { F as Footer } from './footer-Du5cuzZZ.js';
6
- export { H as Header } from './header-C7lrbzyg.js';
7
- export { I as InfiniteContent } from './infinite-content-B4ojfnZH.js';
3
+ export { C as ChatComposerRich } from './chat-composer-rich-Bj1gmhec.js';
4
+ export { C as Content } from './content-DAPOfSv5.js';
5
+ export { F as Footer } from './footer-Cv4yRBA1.js';
6
+ export { H as Header } from './header-ku2JmzDC.js';
7
+ export { I as InfiniteContent } from './infinite-content-BnStGJfq.js';
8
8
  export { L as Loader } from './loader-DYmcO1Y_.js';
9
9
  export { M as MarkdownText } from './markdown-text-BXCCdmOl.js';
10
- export { A as AssistantMessage, E as ErrorMessage, M as MarkdownMessage, S as SmallAction, a as SystemMessage, T as Thinking, U as UserMessage } from './user-message-B_mKtRDd.js';
10
+ export { A as AssistantMessage, E as ErrorMessage, M as MarkdownMessage, S as SmallAction, a as SystemMessage, T as Thinking, U as UserMessage } from './user-message-BFrCI10z.js';
11
11
  export { N as NotificationCard } from './notification-card-CdQVC1kO.js';
12
- export { C as ConfirmationCard, M as MultipleRecommendationCard, S as SingleRecommendationCard } from './single-recommendation-card-BEZJp7Vd.js';
13
- export { S as SystemError, W as Welcome } from './welcome-Bh0_he52.js';
12
+ export { C as ConfirmationCard, M as MultipleRecommendationCard, S as SingleRecommendationCard } from './single-recommendation-card-DgAQbMg4.js';
13
+ export { S as SystemError, W as Welcome } from './welcome-CLNfeZDg.js';
14
14
  export { S as Spinner } from './spinner-QnlThoJs.js';
15
15
  export { S as Suggestion, a as SuggestionList } from './suggestion-pJLJZyjg.js';
16
- export { T as Toolbox, U as UserFeedback } from './toolbox-jC8O6fep.js';
16
+ export { T as Toolbox, U as UserFeedback } from './toolbox-2IgmOZuu.js';
17
17
  import { useState, useCallback, useEffect } from 'react';
18
18
 
19
19
  const useDraggable = ({