@armoyu/ui 1.1.37 → 1.1.38
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMessage.d.ts","sourceRoot":"","sources":["../../../../../src/components/modules/chat/widgets/ChatMessage.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,OAAO,CAAC;KACjB,CAAC;IACF,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ChatMessage.d.ts","sourceRoot":"","sources":["../../../../../src/components/modules/chat/widgets/ChatMessage.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,OAAO,CAAC;KACjB,CAAC;IACF,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,gBAAgB,2CAoC3E"}
|
|
@@ -2,30 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
export function ChatMessage({ sender, content, timestamp }) {
|
|
3
3
|
return (_jsx("div", { className: `flex w-full ${sender.isSelf ? 'justify-end' : 'justify-start'} mb-4`, children: _jsxs("div", { className: `flex gap-3 items-end max-w-[85%] md:max-w-[70%] ${sender.isSelf ? 'flex-row-reverse' : 'flex-row'}`, children: [_jsx("img", { src: sender.avatar || `https://api.dicebear.com/7.x/initials/svg?seed=${sender.name}`, alt: sender.name, className: "w-8 h-8 rounded-full border border-white/10 shadow-sm shrink-0" }), _jsxs("div", { className: `flex flex-col ${sender.isSelf ? 'items-end' : 'items-start'} gap-1.5`, children: [_jsxs("span", { className: "text-xs text-gray-500 font-bold tracking-wide dark:text-gray-400", children: [sender.name, " ", _jsx("span", { className: "opacity-50 mx-1", children: "\u2022" }), " ", timestamp] }), _jsx("div", { className: `p-3.5 rounded-2xl text-sm shadow-lg leading-relaxed font-medium chat-content relative min-h-[44px] break-words [word-break:break-word] [overflow-wrap:anywhere] overflow-hidden ${sender.isSelf
|
|
4
4
|
? 'bg-gradient-to-br from-armoyu-primary to-armoyu-primary text-white rounded-br-sm shadow-[0_4px_15px_rgba(var(--armoyu-primary-rgb), 0.3)]'
|
|
5
|
-
: 'bg-black/5 dark:bg-[#1a1a24] text-armoyu-text rounded-bl-sm border border-black/5 dark:border-white/5'}`, children: content ? (_jsx("div", { dangerouslySetInnerHTML: { __html: content }, className: "break-words [word-break:break-word] [overflow-wrap:anywhere]" })) : (_jsx("span", { className: "text-red-500 font-bold opacity-50 italic", children: " DEBUG: \u0130\u00E7erik Bo\u015F " })) })
|
|
6
|
-
.chat-content img {
|
|
7
|
-
max-width: 100%;
|
|
8
|
-
height: auto;
|
|
9
|
-
border-radius: 12px;
|
|
10
|
-
margin: 8px 0;
|
|
11
|
-
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
12
|
-
}
|
|
13
|
-
.chat-content a {
|
|
14
|
-
color: inherit;
|
|
15
|
-
text-decoration: underline;
|
|
16
|
-
text-underline-offset: 2px;
|
|
17
|
-
opacity: 0.9;
|
|
18
|
-
font-weight: 800;
|
|
19
|
-
}
|
|
20
|
-
.chat-content a:hover {
|
|
21
|
-
opacity: 1;
|
|
22
|
-
}
|
|
23
|
-
.chat-content .text-center {
|
|
24
|
-
text-align: center;
|
|
25
|
-
display: flex;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
align-items: center;
|
|
28
|
-
}
|
|
29
|
-
` })] })] }) }));
|
|
5
|
+
: 'bg-black/5 dark:bg-[#1a1a24] text-armoyu-text rounded-bl-sm border border-black/5 dark:border-white/5'}`, children: content ? (_jsx("div", { dangerouslySetInnerHTML: { __html: content }, className: "break-words [word-break:break-word] [overflow-wrap:anywhere]" })) : (_jsx("span", { className: "text-red-500 font-bold opacity-50 italic", children: " DEBUG: \u0130\u00E7erik Bo\u015F " })) })] })] }) }));
|
|
30
6
|
}
|
|
31
7
|
//# sourceMappingURL=ChatMessage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMessage.js","sourceRoot":"","sources":["../../../../../src/components/modules/chat/widgets/ChatMessage.tsx"],"names":[],"mappings":";AAaA,MAAM,UAAU,WAAW,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAoB;IAC1E,OAAO,CACL,cAAK,SAAS,EAAE,eAAe,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,OAAO,YACnF,eAAK,SAAS,EAAE,mDAAmD,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,UAAU,EAAE,aAGlH,cACE,GAAG,EAAE,MAAM,CAAC,MAAM,IAAI,kDAAkD,MAAM,CAAC,IAAI,EAAE,EACrF,GAAG,EAAE,MAAM,CAAC,IAAI,EAChB,SAAS,EAAC,gEAAgE,GAC1E,EAGF,eAAK,SAAS,EAAE,iBAAiB,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,aAAa,UAAU,aACpF,gBAAM,SAAS,EAAC,kEAAkE,aAC/E,MAAM,CAAC,IAAI,OAAE,eAAM,SAAS,EAAC,iBAAiB,uBAAS,OAAE,SAAS,IAC9D,EACP,cACE,SAAS,EAAE,mLACT,MAAM,CAAC,MAAM;gCACX,CAAC,CAAC,2IAA2I;gCAC7I,CAAC,CAAC,uGACN,EAAE,YAED,OAAO,CAAC,CAAC,CAAC,CACT,cAAK,uBAAuB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,SAAS,EAAC,8DAA8D,GAAG,CAC/H,CAAC,CAAC,CAAC,CACF,eAAM,SAAS,EAAC,0CAA0C,mDAA2B,CACtF,GACG,
|
|
1
|
+
{"version":3,"file":"ChatMessage.js","sourceRoot":"","sources":["../../../../../src/components/modules/chat/widgets/ChatMessage.tsx"],"names":[],"mappings":";AAaA,MAAM,UAAU,WAAW,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAoB;IAC1E,OAAO,CACL,cAAK,SAAS,EAAE,eAAe,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,OAAO,YACnF,eAAK,SAAS,EAAE,mDAAmD,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,UAAU,EAAE,aAGlH,cACE,GAAG,EAAE,MAAM,CAAC,MAAM,IAAI,kDAAkD,MAAM,CAAC,IAAI,EAAE,EACrF,GAAG,EAAE,MAAM,CAAC,IAAI,EAChB,SAAS,EAAC,gEAAgE,GAC1E,EAGF,eAAK,SAAS,EAAE,iBAAiB,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,aAAa,UAAU,aACpF,gBAAM,SAAS,EAAC,kEAAkE,aAC/E,MAAM,CAAC,IAAI,OAAE,eAAM,SAAS,EAAC,iBAAiB,uBAAS,OAAE,SAAS,IAC9D,EACP,cACE,SAAS,EAAE,mLACT,MAAM,CAAC,MAAM;gCACX,CAAC,CAAC,2IAA2I;gCAC7I,CAAC,CAAC,uGACN,EAAE,YAED,OAAO,CAAC,CAAC,CAAC,CACT,cAAK,uBAAuB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,SAAS,EAAC,8DAA8D,GAAG,CAC/H,CAAC,CAAC,CAAC,CACF,eAAM,SAAS,EAAC,0CAA0C,mDAA2B,CACtF,GACG,IAEF,IAEF,GACF,CACP,CAAC;AACJ,CAAC"}
|