@servicetitan/anvil2-ext-atlas 0.0.14 → 0.1.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.
- package/CHANGELOG.md +11 -0
- package/dist/_commonjsHelpers-B85MJLTf.js +6 -0
- package/dist/_commonjsHelpers-B85MJLTf.js.map +1 -0
- package/dist/atlas-header-jdAIcEpa.js +23 -0
- package/dist/atlas-header-jdAIcEpa.js.map +1 -0
- package/dist/atlas-header.d.ts +2 -0
- package/dist/atlas-header.js +2 -0
- package/dist/atlas-header.js.map +1 -0
- package/dist/chat-composer-rich-BM5hoC1f.js +162 -0
- package/dist/chat-composer-rich-BM5hoC1f.js.map +1 -0
- package/dist/chat-composer-rich.css +119 -0
- package/dist/chat-composer-rich.d.ts +2 -0
- package/dist/chat-composer-rich.js +2 -0
- package/dist/chat-composer-rich.js.map +1 -0
- package/dist/chat-window-BEkLTYNg.js +76 -0
- package/dist/chat-window-BEkLTYNg.js.map +1 -0
- package/dist/chat-window.css +49 -0
- package/dist/chat.d.ts +2 -0
- package/dist/chat.js +2 -0
- package/dist/chat.js.map +1 -0
- package/dist/components/atlas-header/atlas-header.d.ts +21 -0
- package/dist/components/atlas-header/index.d.ts +2 -0
- package/dist/components/chat/chat-window.d.ts +13 -0
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/components/chat-composer-rich/chat-composer-rich.d.ts +23 -0
- package/dist/components/chat-composer-rich/index.d.ts +2 -0
- package/dist/components/content/content.d.ts +7 -0
- package/dist/components/content/index.d.ts +1 -0
- package/dist/components/footer/footer.d.ts +16 -0
- package/dist/components/footer/index.d.ts +2 -0
- package/dist/components/header/header.d.ts +23 -0
- package/dist/components/header/index.d.ts +2 -0
- package/dist/components/index.d.ts +16 -1
- package/dist/components/infinite-content/hooks/use-infinite-scroll.d.ts +11 -0
- package/dist/components/infinite-content/hooks/use-scroll-callback.d.ts +11 -0
- package/dist/components/infinite-content/index.d.ts +2 -0
- package/dist/components/infinite-content/infinite-content.d.ts +17 -0
- package/dist/components/loader/index.d.ts +1 -0
- package/dist/components/loader/loader.d.ts +2 -0
- package/dist/components/markdown-text/index.d.ts +2 -0
- package/dist/components/markdown-text/markdown-text.d.ts +5 -0
- package/dist/components/messages/assistant-message.d.ts +10 -0
- package/dist/components/messages/error-message.d.ts +8 -0
- package/dist/components/messages/index.d.ts +6 -0
- package/dist/components/messages/markdown-message.d.ts +13 -0
- package/dist/components/messages/message-interface.d.ts +4 -0
- package/dist/components/messages/small-action.d.ts +13 -0
- package/dist/components/messages/system-message.d.ts +18 -0
- package/dist/components/messages/user-message.d.ts +13 -0
- package/dist/components/notification-card/index.d.ts +1 -0
- package/dist/components/notification-card/notification-card.d.ts +10 -0
- package/dist/components/recommendations/confirmation-card/confirmation-card.d.ts +10 -0
- package/dist/components/recommendations/confirmation-card/index.d.ts +1 -0
- package/dist/components/recommendations/index.d.ts +4 -0
- package/dist/components/recommendations/multiple-recommendation-card/index.d.ts +1 -0
- package/dist/components/recommendations/multiple-recommendation-card/multiple-recommendation-card.d.ts +7 -0
- package/dist/components/recommendations/shared-interfaces.d.ts +26 -0
- package/dist/components/recommendations/single-recommendation-card/index.d.ts +1 -0
- package/dist/components/recommendations/single-recommendation-card/single-recommendation-card.d.ts +7 -0
- package/dist/components/screens/index.d.ts +1 -0
- package/dist/components/screens/system-error.d.ts +10 -0
- package/dist/components/screens/welcome.d.ts +8 -0
- package/dist/components/spinner/index.d.ts +1 -0
- package/dist/components/spinner/spinner.d.ts +1 -0
- package/dist/components/suggestion/index.d.ts +1 -0
- package/dist/components/suggestion/suggestion.d.ts +11 -0
- package/dist/components/toolbox/index.d.ts +2 -0
- package/dist/components/toolbox/toolbox.d.ts +12 -0
- package/dist/components/toolbox/toolbox.enums.d.ts +5 -0
- package/dist/content-acT_RzNQ.js +55 -0
- package/dist/content-acT_RzNQ.js.map +1 -0
- package/dist/content.css +10 -0
- package/dist/content.d.ts +2 -0
- package/dist/content.js +2 -0
- package/dist/content.js.map +1 -0
- package/dist/footer-DezXey1O.js +86 -0
- package/dist/footer-DezXey1O.js.map +1 -0
- package/dist/footer.css +12 -0
- package/dist/footer.d.ts +2 -0
- package/dist/footer.js +2 -0
- package/dist/footer.js.map +1 -0
- package/dist/header-DgkrbsFN.js +171 -0
- package/dist/header-DgkrbsFN.js.map +1 -0
- package/dist/header.css +23 -0
- package/dist/header.d.ts +2 -0
- package/dist/header.js +2 -0
- package/dist/header.js.map +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-draggable.d.ts +18 -0
- package/dist/index-DDXI3m_u.js +73 -0
- package/dist/index-DDXI3m_u.js.map +1 -0
- package/dist/index-DFEn2XpE.js +24643 -0
- package/dist/index-DFEn2XpE.js.map +1 -0
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/dist/infinite-content-B4ojfnZH.js +144 -0
- package/dist/infinite-content-B4ojfnZH.js.map +1 -0
- package/dist/infinite-content.css +25 -0
- package/dist/infinite-content.d.ts +2 -0
- package/dist/infinite-content.js +2 -0
- package/dist/infinite-content.js.map +1 -0
- package/dist/loader-DYmcO1Y_.js +48 -0
- package/dist/loader-DYmcO1Y_.js.map +1 -0
- package/dist/loader.d.ts +2 -0
- package/dist/loader.js +2 -0
- package/dist/loader.js.map +1 -0
- package/dist/markdown-text-CKN0oo8R.js +13 -0
- package/dist/markdown-text-CKN0oo8R.js.map +1 -0
- package/dist/markdown-text.css +45 -0
- package/dist/markdown-text.d.ts +2 -0
- package/dist/markdown-text.js +2 -0
- package/dist/markdown-text.js.map +1 -0
- package/dist/messages.d.ts +2 -0
- package/dist/messages.js +2 -0
- package/dist/messages.js.map +1 -0
- package/dist/notification-card-B38ZC7k4.js +59 -0
- package/dist/notification-card-B38ZC7k4.js.map +1 -0
- package/dist/notification-card.d.ts +2 -0
- package/dist/notification-card.js +2 -0
- package/dist/notification-card.js.map +1 -0
- package/dist/proxy-B3m3ViIw.js +9928 -0
- package/dist/proxy-B3m3ViIw.js.map +1 -0
- package/dist/recommendations.d.ts +2 -0
- package/dist/recommendations.js +2 -0
- package/dist/recommendations.js.map +1 -0
- package/dist/screens.d.ts +2 -0
- package/dist/screens.js +2 -0
- package/dist/screens.js.map +1 -0
- package/dist/single-recommendation-card-G78KiWnb.js +199 -0
- package/dist/single-recommendation-card-G78KiWnb.js.map +1 -0
- package/dist/spinner-QnlThoJs.js +23 -0
- package/dist/spinner-QnlThoJs.js.map +1 -0
- package/dist/spinner.css +21 -0
- package/dist/spinner.d.ts +2 -0
- package/dist/spinner.js +2 -0
- package/dist/spinner.js.map +1 -0
- package/dist/suggestion-pJLJZyjg.js +33 -0
- package/dist/suggestion-pJLJZyjg.js.map +1 -0
- package/dist/suggestion.d.ts +2 -0
- package/dist/suggestion.js +2 -0
- package/dist/suggestion.js.map +1 -0
- package/dist/toolbox-B-mWIaVL.js +272 -0
- package/dist/toolbox-B-mWIaVL.js.map +1 -0
- package/dist/toolbox.d.ts +2 -0
- package/dist/toolbox.js +2 -0
- package/dist/toolbox.js.map +1 -0
- package/dist/user-message-DCOP95qA.js +247 -0
- package/dist/user-message-DCOP95qA.js.map +1 -0
- package/dist/user-message.css +170 -0
- package/dist/welcome-BY6k2z0K.js +57 -0
- package/dist/welcome-BY6k2z0K.js.map +1 -0
- package/dist/welcome.css +23 -0
- package/package.json +19 -7
- package/dist/DummyComponent-ac_BQfhC.js +0 -8
- package/dist/DummyComponent-ac_BQfhC.js.map +0 -1
- package/dist/DummyComponent.d.ts +0 -2
- package/dist/DummyComponent.js +0 -2
- package/dist/DummyComponent.js.map +0 -1
- package/dist/components/DummyComponent/DummyComponent.d.ts +0 -1
- package/dist/components/DummyComponent/index.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @servicetitan/anvil2-ext-atlas
|
|
2
2
|
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1667](https://github.com/servicetitan/hammer/pull/1667) [`ae5dd63`](https://github.com/servicetitan/hammer/commit/ae5dd631ade6c3679222fe10f43e5e948257f484) Thanks [@w-a-t-s-o-n](https://github.com/w-a-t-s-o-n)! - [Atlas] Migrate components and API from `@servicetitan/assist-ui` package
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`68134ef`](https://github.com/servicetitan/hammer/commit/68134ef9d15bd1e0c39d3ce9b457e518eb7bb438), [`d7cccdf`](https://github.com/servicetitan/hammer/commit/d7cccdf68e4b3646a799311658612a237118e563), [`c4629d9`](https://github.com/servicetitan/hammer/commit/c4629d9d90a93bb1acceab7ff441c2fe6100920d)]:
|
|
12
|
+
- @servicetitan/anvil2@1.50.1
|
|
13
|
+
|
|
3
14
|
## 0.0.14
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_commonjsHelpers-B85MJLTf.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Flex, Icon, Text } from '@servicetitan/anvil2';
|
|
3
|
+
import * as React from 'react';
|
|
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: {
|
|
6
|
+
mixBlendMode: "overlay"
|
|
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
|
+
mixBlendMode: "overlay"
|
|
9
|
+
} }, /* @__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" })));
|
|
10
|
+
|
|
11
|
+
const AtlasHeader = ({
|
|
12
|
+
svgIcon,
|
|
13
|
+
assistant = "Atlas",
|
|
14
|
+
className
|
|
15
|
+
}) => {
|
|
16
|
+
return /* @__PURE__ */ jsxs(Flex, { className, alignItems: "center", gap: 1, children: [
|
|
17
|
+
/* @__PURE__ */ jsx(Icon, { svg: svgIcon ?? SvgAtlasLogo, size: "medium", inherit: true }),
|
|
18
|
+
/* @__PURE__ */ jsx(Text, { inline: true, children: /* @__PURE__ */ jsx("b", { children: assistant }) })
|
|
19
|
+
] });
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { AtlasHeader as A };
|
|
23
|
+
//# sourceMappingURL=atlas-header-jdAIcEpa.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"atlas-header-jdAIcEpa.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: \"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: {\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={sv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
|
+
{"version":3,"file":"atlas-header.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { useState, useRef, useEffect } from 'react';
|
|
4
|
+
import { c as classNames } from './index-DDXI3m_u.js';
|
|
5
|
+
import { Menu, Button } from '@servicetitan/anvil2';
|
|
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" }));
|
|
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" }));
|
|
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" }));
|
|
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" }));
|
|
14
|
+
|
|
15
|
+
const disabled = "_disabled_qqqa2_20";
|
|
16
|
+
const placeholder = "_placeholder_qqqa2_55";
|
|
17
|
+
const input = "_input_qqqa2_48";
|
|
18
|
+
const styles = {
|
|
19
|
+
"composer-wrapper": "_composer-wrapper_qqqa2_1",
|
|
20
|
+
"composer-form": "_composer-form_qqqa2_9",
|
|
21
|
+
disabled: disabled,
|
|
22
|
+
"icon-button": "_icon-button_qqqa2_33",
|
|
23
|
+
"input-wrapper": "_input-wrapper_qqqa2_48",
|
|
24
|
+
placeholder: placeholder,
|
|
25
|
+
input: input,
|
|
26
|
+
"send-button": "_send-button_qqqa2_111"
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const ChatComposerRich = ({
|
|
30
|
+
message,
|
|
31
|
+
onSend,
|
|
32
|
+
onChange,
|
|
33
|
+
placeholder = "Ask anything...",
|
|
34
|
+
disabled = false,
|
|
35
|
+
className,
|
|
36
|
+
onUploadFile,
|
|
37
|
+
onDictateMessage,
|
|
38
|
+
messageInputId,
|
|
39
|
+
sendIconId
|
|
40
|
+
}) => {
|
|
41
|
+
const [isEmpty, setIsEmpty] = useState(true);
|
|
42
|
+
const editorRef = useRef(null);
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
if (editorRef.current && message) {
|
|
45
|
+
editorRef.current.innerText = message;
|
|
46
|
+
}
|
|
47
|
+
}, [message]);
|
|
48
|
+
const handleInput = () => {
|
|
49
|
+
const text = editorRef.current?.innerText.trim() ?? "";
|
|
50
|
+
setIsEmpty(text.length === 0);
|
|
51
|
+
};
|
|
52
|
+
const handleKeyDown = (e) => {
|
|
53
|
+
if (e.key === "Enter" && !e.shiftKey) {
|
|
54
|
+
e.preventDefault();
|
|
55
|
+
handleSubmit();
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const handleSubmit = () => {
|
|
59
|
+
if (disabled) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
const text = editorRef.current?.innerText.trim() ?? "";
|
|
63
|
+
onChange(text);
|
|
64
|
+
if (!text) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
onSend?.(text);
|
|
68
|
+
if (editorRef.current) {
|
|
69
|
+
editorRef.current.innerText = "";
|
|
70
|
+
editorRef.current.blur();
|
|
71
|
+
}
|
|
72
|
+
setIsEmpty(true);
|
|
73
|
+
};
|
|
74
|
+
useEffect(() => {
|
|
75
|
+
setIsEmpty(!editorRef.current?.innerText.trim());
|
|
76
|
+
}, []);
|
|
77
|
+
return /* @__PURE__ */ jsx("div", { className: classNames(styles["composer-wrapper"], className), children: /* @__PURE__ */ jsxs(
|
|
78
|
+
"form",
|
|
79
|
+
{
|
|
80
|
+
onSubmit: (e) => e.preventDefault(),
|
|
81
|
+
className: classNames(styles["composer-form"], {
|
|
82
|
+
[styles["disabled"]]: disabled
|
|
83
|
+
}),
|
|
84
|
+
children: [
|
|
85
|
+
onDictateMessage || onUploadFile ? /* @__PURE__ */ jsxs(
|
|
86
|
+
Menu,
|
|
87
|
+
{
|
|
88
|
+
id: "",
|
|
89
|
+
trigger: (props) => /* @__PURE__ */ jsx(
|
|
90
|
+
Button,
|
|
91
|
+
{
|
|
92
|
+
...props,
|
|
93
|
+
type: "button",
|
|
94
|
+
"aria-label": "Open menu",
|
|
95
|
+
disabled,
|
|
96
|
+
className: styles["icon-button"],
|
|
97
|
+
icon: SvgAdd,
|
|
98
|
+
size: "small"
|
|
99
|
+
}
|
|
100
|
+
),
|
|
101
|
+
disabled,
|
|
102
|
+
children: [
|
|
103
|
+
/* @__PURE__ */ jsx(
|
|
104
|
+
Menu.Item,
|
|
105
|
+
{
|
|
106
|
+
label: "Upload file",
|
|
107
|
+
icon: SvgAttachFile,
|
|
108
|
+
onClick: onUploadFile
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
/* @__PURE__ */ jsx(
|
|
112
|
+
Menu.Item,
|
|
113
|
+
{
|
|
114
|
+
label: "Dictate message",
|
|
115
|
+
icon: SvgMic,
|
|
116
|
+
onClick: onDictateMessage
|
|
117
|
+
}
|
|
118
|
+
)
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
) : /* @__PURE__ */ jsx("div", {}),
|
|
122
|
+
/* @__PURE__ */ jsxs("div", { className: styles["input-wrapper"], children: [
|
|
123
|
+
/* @__PURE__ */ jsx(
|
|
124
|
+
"div",
|
|
125
|
+
{
|
|
126
|
+
id: messageInputId,
|
|
127
|
+
ref: editorRef,
|
|
128
|
+
contentEditable: "plaintext-only",
|
|
129
|
+
role: "textbox",
|
|
130
|
+
"aria-multiline": "true",
|
|
131
|
+
"aria-label": placeholder,
|
|
132
|
+
"aria-disabled": disabled,
|
|
133
|
+
"data-placeholder": placeholder,
|
|
134
|
+
onInput: handleInput,
|
|
135
|
+
onKeyDown: handleKeyDown,
|
|
136
|
+
className: styles["input"],
|
|
137
|
+
tabIndex: 0
|
|
138
|
+
}
|
|
139
|
+
),
|
|
140
|
+
isEmpty && /* @__PURE__ */ jsx("span", { className: styles["placeholder"], children: placeholder })
|
|
141
|
+
] }),
|
|
142
|
+
/* @__PURE__ */ jsx(
|
|
143
|
+
Button,
|
|
144
|
+
{
|
|
145
|
+
id: sendIconId,
|
|
146
|
+
size: "small",
|
|
147
|
+
type: "button",
|
|
148
|
+
onClick: handleSubmit,
|
|
149
|
+
disabled: disabled || isEmpty,
|
|
150
|
+
className: styles["send-button"],
|
|
151
|
+
"aria-label": "Send message",
|
|
152
|
+
appearance: "ghost",
|
|
153
|
+
icon: SvgSend
|
|
154
|
+
}
|
|
155
|
+
)
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
) });
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
export { ChatComposerRich as C };
|
|
162
|
+
//# sourceMappingURL=chat-composer-rich-BM5hoC1f.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-composer-rich-BM5hoC1f.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: \"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\" }));\nexport default SvgAdd;\n","import * as React from \"react\";\nconst 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\" }));\nexport default SvgMic;\n","import * as React from \"react\";\nconst 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\" }));\nexport default SvgSend;\n","import * as React from \"react\";\nconst 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\" }));\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 // Remove cursor by blurring the input\n editorRef.current.blur();\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={classNames(styles[\"composer-form\"], {\n [styles[\"disabled\"]]: disabled,\n })}\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 aria-disabled={disabled}\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,MAAM,MAAM,GAAG,CAAC,KAAK,qBAAqB,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,4BAA4B,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,kBAAkB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,qIAAqI,EAAE,CAAC,CAAC;;ACArW,MAAM,MAAM,GAAG,CAAC,KAAK,qBAAqB,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,4BAA4B,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,kBAAkB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,kTAAkT,EAAE,CAAC,CAAC;;ACAlhB,MAAM,OAAO,GAAG,CAAC,KAAK,qBAAqB,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,4BAA4B,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,kBAAkB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,iKAAiK,EAAE,CAAC,CAAC;;ACAlY,MAAM,aAAa,GAAG,CAAC,KAAK,qBA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;AAAA,SAAA,EAEzD,CAAA;AAAA,wBAEA,GAAA;AAAA,UAAC,MAAA;AAAA,UAAA;AAAA,YACC,EAAA,EAAI,UAAA;AAAA,YACJ,IAAA,EAAK,OAAA;AAAA,YACL,IAAA,EAAK,QAAA;AAAA,YACL,OAAA,EAAS,YAAA;AAAA,YACT,UAAU,QAAA,IAAY,OAAA;AAAA,YACtB,SAAA,EAAW,OAAO,aAAa,CAAA;AAAA,YAC/B,YAAA,EAAW,cAAA;AAAA,YACX,UAAA,EAAW,OAAA;AAAA,YACX,IAAA,EAAMC;AAAA;AAAA;AACR;AAAA;AAAA,GACF,EACF,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
@layer starter, reset, base, state, application;
|
|
2
|
+
|
|
3
|
+
._composer-wrapper_qqqa2_1 {
|
|
4
|
+
width: 100%;
|
|
5
|
+
margin-inline: auto;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
flex: 1;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
._composer-form_qqqa2_9 {
|
|
12
|
+
background-color: var(--background-color, #ffffff);
|
|
13
|
+
border: 0.0625rem solid var(--border-color, #949596);
|
|
14
|
+
border-radius: 0.375rem;
|
|
15
|
+
padding: 0 0.5rem;
|
|
16
|
+
display: grid;
|
|
17
|
+
grid-template-columns: auto 1fr auto;
|
|
18
|
+
align-items: end;
|
|
19
|
+
gap: 0.5rem;
|
|
20
|
+
transition: border-color 0.2s ease;
|
|
21
|
+
}
|
|
22
|
+
._composer-form_qqqa2_9:hover:not(._disabled_qqqa2_20) {
|
|
23
|
+
border-color: var(--border-color-hover, #606162);
|
|
24
|
+
}
|
|
25
|
+
._composer-form_qqqa2_9:focus-within:not(._disabled_qqqa2_20) {
|
|
26
|
+
outline: 0.125rem solid var(--focus-ring-color, #0265dc);
|
|
27
|
+
outline-offset: 0.125rem;
|
|
28
|
+
}
|
|
29
|
+
._composer-form_qqqa2_9._disabled_qqqa2_20 {
|
|
30
|
+
background-color: var(--background-color-strong, #f7f7f7);
|
|
31
|
+
opacity: var(--opacity-disabled, 0.6);
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
._icon-button_qqqa2_33 {
|
|
36
|
+
padding: 0.5rem;
|
|
37
|
+
border-radius: var(--border-radius-circular);
|
|
38
|
+
background: transparent;
|
|
39
|
+
border: none;
|
|
40
|
+
margin-bottom: 6px;
|
|
41
|
+
}
|
|
42
|
+
._icon-button_qqqa2_33:disabled {
|
|
43
|
+
cursor: not-allowed;
|
|
44
|
+
opacity: 0.5;
|
|
45
|
+
}
|
|
46
|
+
._icon-button_qqqa2_33:hover:not(:disabled) {
|
|
47
|
+
background-color: var(--background-color-strong, #f7f7f7);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
._input-wrapper_qqqa2_48 {
|
|
51
|
+
flex: 1;
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
position: relative;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
._placeholder_qqqa2_55 {
|
|
58
|
+
position: absolute;
|
|
59
|
+
left: 0.4rem;
|
|
60
|
+
top: 50%;
|
|
61
|
+
transform: translateY(-50%);
|
|
62
|
+
color: var(--foreground-color-subdued, #737475);
|
|
63
|
+
pointer-events: none;
|
|
64
|
+
-webkit-user-select: none;
|
|
65
|
+
-moz-user-select: none;
|
|
66
|
+
user-select: none;
|
|
67
|
+
font-size: 1rem;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
._input_qqqa2_48 {
|
|
71
|
+
flex: 1;
|
|
72
|
+
width: 100%;
|
|
73
|
+
max-width: 100%;
|
|
74
|
+
outline: none;
|
|
75
|
+
background: transparent;
|
|
76
|
+
color: var(--foreground-color, #141414);
|
|
77
|
+
font-family: var(--font-family-base, "Nunito Sans", sans-serif);
|
|
78
|
+
font-size: 1rem;
|
|
79
|
+
line-height: var(--base-line-height, 24px);
|
|
80
|
+
max-height: 6.25rem;
|
|
81
|
+
overflow-y: auto;
|
|
82
|
+
overflow-x: hidden;
|
|
83
|
+
white-space: pre-wrap;
|
|
84
|
+
margin-top: 12px;
|
|
85
|
+
padding-bottom: 12px;
|
|
86
|
+
overflow-wrap: break-word;
|
|
87
|
+
word-break: break-word;
|
|
88
|
+
min-width: 0;
|
|
89
|
+
padding-left: 7px;
|
|
90
|
+
padding-right: 0.75rem;
|
|
91
|
+
}
|
|
92
|
+
._input_qqqa2_48:empty::before {
|
|
93
|
+
content: "";
|
|
94
|
+
}
|
|
95
|
+
._input_qqqa2_48::-webkit-scrollbar {
|
|
96
|
+
width: 6px;
|
|
97
|
+
}
|
|
98
|
+
._input_qqqa2_48::-webkit-scrollbar-track {
|
|
99
|
+
background: transparent;
|
|
100
|
+
}
|
|
101
|
+
._input_qqqa2_48::-webkit-scrollbar-thumb {
|
|
102
|
+
background: var(--border-color-subdued, #dfe0e1);
|
|
103
|
+
border-radius: var(--border-radius-medium);
|
|
104
|
+
}
|
|
105
|
+
._input_qqqa2_48::-webkit-scrollbar-thumb:hover {
|
|
106
|
+
background: var(--border-color, #949596);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
._actions-wrapper_qqqa2_105 {
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
gap: 0.5rem;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
._send-button_qqqa2_111 {
|
|
116
|
+
padding: 0.5rem;
|
|
117
|
+
border-radius: var(--border-radius-circular);
|
|
118
|
+
margin-bottom: 6px;
|
|
119
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-composer-rich.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { c as classNames } from './index-DDXI3m_u.js';
|
|
3
|
+
import { m as motion } from './proxy-B3m3ViIw.js';
|
|
4
|
+
|
|
5
|
+
import './chat-window.css';const open = "_open_1ncho_19";
|
|
6
|
+
const closed = "_closed_1ncho_23";
|
|
7
|
+
const positioned = "_positioned_1ncho_27";
|
|
8
|
+
const relative = "_relative_1ncho_31";
|
|
9
|
+
const styles = {
|
|
10
|
+
"chat-window": "_chat-window_1ncho_1",
|
|
11
|
+
open: open,
|
|
12
|
+
closed: closed,
|
|
13
|
+
positioned: positioned,
|
|
14
|
+
relative: relative,
|
|
15
|
+
"chat-window-expanded": "_chat-window-expanded_1ncho_35"
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const ChatWindow = ({
|
|
19
|
+
open,
|
|
20
|
+
position,
|
|
21
|
+
isDragging,
|
|
22
|
+
fullscreen = false,
|
|
23
|
+
children
|
|
24
|
+
}) => {
|
|
25
|
+
const isFullscreenOpen = fullscreen && open;
|
|
26
|
+
const className = classNames({
|
|
27
|
+
[styles["chat-window-expanded"]]: isFullscreenOpen,
|
|
28
|
+
[styles["chat-window"]]: !isFullscreenOpen,
|
|
29
|
+
[styles["open"]]: !isFullscreenOpen && open,
|
|
30
|
+
[styles["closed"]]: !isFullscreenOpen && !open,
|
|
31
|
+
[styles["positioned"]]: !isFullscreenOpen && position,
|
|
32
|
+
[styles["relative"]]: !isFullscreenOpen && !position
|
|
33
|
+
});
|
|
34
|
+
const getPositionStyles = () => {
|
|
35
|
+
if (isFullscreenOpen) {
|
|
36
|
+
return {};
|
|
37
|
+
}
|
|
38
|
+
return position ? {
|
|
39
|
+
left: position.x,
|
|
40
|
+
top: position.y
|
|
41
|
+
} : {};
|
|
42
|
+
};
|
|
43
|
+
return /* @__PURE__ */ jsx(
|
|
44
|
+
motion.div,
|
|
45
|
+
{
|
|
46
|
+
layout: !isDragging,
|
|
47
|
+
initial: {
|
|
48
|
+
opacity: isFullscreenOpen ? 0 : 1,
|
|
49
|
+
x: !isFullscreenOpen && !open ? 0 : -25
|
|
50
|
+
},
|
|
51
|
+
animate: {
|
|
52
|
+
x: isFullscreenOpen ? 0 : open ? -25 : 0
|
|
53
|
+
},
|
|
54
|
+
transition: {
|
|
55
|
+
type: isFullscreenOpen ? "tween" : "spring",
|
|
56
|
+
ease: isFullscreenOpen ? "easeInOut" : void 0,
|
|
57
|
+
stiffness: 300,
|
|
58
|
+
damping: 35,
|
|
59
|
+
duration: 0.3
|
|
60
|
+
},
|
|
61
|
+
className,
|
|
62
|
+
style: getPositionStyles(),
|
|
63
|
+
children: /* @__PURE__ */ jsx(
|
|
64
|
+
motion.div,
|
|
65
|
+
{
|
|
66
|
+
layout: !isDragging ? "position" : void 0,
|
|
67
|
+
style: { width: "100%", height: "100%" },
|
|
68
|
+
children
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export { ChatWindow as C };
|
|
76
|
+
//# sourceMappingURL=chat-window-BEkLTYNg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-window-BEkLTYNg.js","sources":["../src/components/chat/chat-window.tsx"],"sourcesContent":["import { ReactNode } from \"react\";\nimport classNames from \"classnames\";\nimport { motion } from \"framer-motion\";\n\nimport styles from \"./styles.module.scss\";\n\ninterface ChatWindowProps {\n open: boolean;\n position?: { x: number; y: number };\n isDragging?: boolean;\n fullscreen?: boolean;\n children: ReactNode;\n}\n\nexport const ChatWindow = ({\n open,\n position,\n isDragging,\n fullscreen = false,\n children,\n}: ChatWindowProps) => {\n const isFullscreenOpen = fullscreen && open;\n\n const className = classNames({\n [styles[\"chat-window-expanded\"]]: isFullscreenOpen,\n [styles[\"chat-window\"]]: !isFullscreenOpen,\n [styles[\"open\"]]: !isFullscreenOpen && open,\n [styles[\"closed\"]]: !isFullscreenOpen && !open,\n [styles[\"positioned\"]]: !isFullscreenOpen && position,\n [styles[\"relative\"]]: !isFullscreenOpen && !position,\n });\n\n const getPositionStyles = () => {\n if (isFullscreenOpen) {\n return {};\n }\n\n return position\n ? {\n left: position.x,\n top: position.y,\n }\n : {};\n };\n\n return (\n <motion.div\n layout={!isDragging}\n initial={{\n opacity: isFullscreenOpen ? 0 : 1,\n x: !isFullscreenOpen && !open ? 0 : -25,\n }}\n animate={{\n x: isFullscreenOpen ? 0 : open ? -25 : 0,\n }}\n transition={{\n type: isFullscreenOpen ? \"tween\" : \"spring\",\n ease: isFullscreenOpen ? \"easeInOut\" : undefined,\n stiffness: 300,\n damping: 35,\n duration: 0.3,\n }}\n className={className}\n style={getPositionStyles()}\n >\n <motion.div\n layout={!isDragging ? \"position\" : undefined}\n style={{ width: \"100%\", height: \"100%\" }}\n >\n {children}\n </motion.div>\n </motion.div>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAcO,MAAM,aAAa,CAAC;AAAA,EACzB,IAAA;AAAA,EACA,QAAA;AAAA,EACA,UAAA;AAAA,EACA,UAAA,GAAa,KAAA;AAAA,EACb;AACF,CAAA,KAAuB;AACrB,EAAA,MAAM,mBAAmB,UAAA,IAAc,IAAA;AAEvC,EAAA,MAAM,YAAY,UAAA,CAAW;AAAA,IAC3B,CAAC,MAAA,CAAO,sBAAsB,CAAC,GAAG,gBAAA;AAAA,IAClC,CAAC,MAAA,CAAO,aAAa,CAAC,GAAG,CAAC,gBAAA;AAAA,IAC1B,CAAC,MAAA,CAAO,MAAM,CAAC,GAAG,CAAC,gBAAA,IAAoB,IAAA;AAAA,IACvC,CAAC,MAAA,CAAO,QAAQ,CAAC,GAAG,CAAC,oBAAoB,CAAC,IAAA;AAAA,IAC1C,CAAC,MAAA,CAAO,YAAY,CAAC,GAAG,CAAC,gBAAA,IAAoB,QAAA;AAAA,IAC7C,CAAC,MAAA,CAAO,UAAU,CAAC,GAAG,CAAC,oBAAoB,CAAC;AAAA,GAC7C,CAAA;AAED,EAAA,MAAM,oBAAoB,MAAM;AAC9B,IAAA,IAAI,gBAAA,EAAkB;AACpB,MAAA,OAAO,EAAC;AAAA,IACV;AAEA,IAAA,OAAO,QAAA,GACH;AAAA,MACE,MAAM,QAAA,CAAS,CAAA;AAAA,MACf,KAAK,QAAA,CAAS;AAAA,QAEhB,EAAC;AAAA,EACP,CAAA;AAEA,EAAA,uBACE,GAAA;AAAA,IAAC,MAAA,CAAO,GAAA;AAAA,IAAP;AAAA,MACC,QAAQ,CAAC,UAAA;AAAA,MACT,OAAA,EAAS;AAAA,QACP,OAAA,EAAS,mBAAmB,CAAA,GAAI,CAAA;AAAA,QAChC,CAAA,EAAG,CAAC,gBAAA,IAAoB,CAAC,OAAO,CAAA,GAAI;AAAA,OACtC;AAAA,MACA,OAAA,EAAS;AAAA,QACP,CAAA,EAAG,gBAAA,GAAmB,CAAA,GAAI,IAAA,GAAO,GAAA,GAAM;AAAA,OACzC;AAAA,MACA,UAAA,EAAY;AAAA,QACV,IAAA,EAAM,mBAAmB,OAAA,GAAU,QAAA;AAAA,QACnC,IAAA,EAAM,mBAAmB,WAAA,GAAc,MAAA;AAAA,QACvC,SAAA,EAAW,GAAA;AAAA,QACX,OAAA,EAAS,EAAA;AAAA,QACT,QAAA,EAAU;AAAA,OACZ;AAAA,MACA,SAAA;AAAA,MACA,OAAO,iBAAA,EAAkB;AAAA,MAEzB,QAAA,kBAAA,GAAA;AAAA,QAAC,MAAA,CAAO,GAAA;AAAA,QAAP;AAAA,UACC,MAAA,EAAQ,CAAC,UAAA,GAAa,UAAA,GAAa,MAAA;AAAA,UACnC,KAAA,EAAO,EAAE,KAAA,EAAO,MAAA,EAAQ,QAAQ,MAAA,EAAO;AAAA,UAEtC;AAAA;AAAA;AACH;AAAA,GACF;AAEJ;;;;"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@layer starter, reset, base, state, application;
|
|
2
|
+
|
|
3
|
+
._chat-window_1ncho_1 {
|
|
4
|
+
position: fixed;
|
|
5
|
+
top: 5%;
|
|
6
|
+
right: 0;
|
|
7
|
+
height: calc(100vh - 58px - 24px);
|
|
8
|
+
max-width: 390px;
|
|
9
|
+
width: 390px;
|
|
10
|
+
border-radius: 12px;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
border: 1px solid var(--color-neutral-60);
|
|
15
|
+
box-shadow: 0 8px 24px 0 rgba(20, 20, 20, 0.08);
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
z-index: 9999;
|
|
18
|
+
background: var(--color-neutral-30, #ffffff);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
._chat-window_1ncho_1._open_1ncho_19 {
|
|
22
|
+
visibility: visible;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
._chat-window_1ncho_1._closed_1ncho_23 {
|
|
26
|
+
visibility: hidden;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
._chat-window_1ncho_1._positioned_1ncho_27 {
|
|
30
|
+
position: fixed;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
._chat-window_1ncho_1._relative_1ncho_31 {
|
|
34
|
+
position: relative;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
._chat-window-expanded_1ncho_35 {
|
|
38
|
+
position: fixed;
|
|
39
|
+
top: 0;
|
|
40
|
+
left: 0;
|
|
41
|
+
right: 0;
|
|
42
|
+
bottom: 0;
|
|
43
|
+
width: 100%;
|
|
44
|
+
height: 100%;
|
|
45
|
+
z-index: 10001;
|
|
46
|
+
display: flex;
|
|
47
|
+
background: var(--color-neutral-30, #ffffff);
|
|
48
|
+
visibility: visible;
|
|
49
|
+
}
|
package/dist/chat.d.ts
ADDED
package/dist/chat.js
ADDED
package/dist/chat.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Svg } from '@servicetitan/anvil2';
|
|
3
|
+
export interface AtlasHeaderProps {
|
|
4
|
+
/**
|
|
5
|
+
* Custom icon to display instead of the default Atlas logo
|
|
6
|
+
*/
|
|
7
|
+
svgIcon?: Svg;
|
|
8
|
+
/**
|
|
9
|
+
* Custom assistant name to display instead of "Atlas"
|
|
10
|
+
*/
|
|
11
|
+
assistant?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Additional CSS class names
|
|
14
|
+
*/
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Shared component that displays the Atlas logo and name header
|
|
19
|
+
* Used across all message types and recommendation cards
|
|
20
|
+
*/
|
|
21
|
+
export declare const AtlasHeader: FC<AtlasHeaderProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface ChatWindowProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
position?: {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
};
|
|
8
|
+
isDragging?: boolean;
|
|
9
|
+
fullscreen?: boolean;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const ChatWindow: ({ open, position, isDragging, fullscreen, children, }: ChatWindowProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './chat-window';
|