@talkjs/react-components 0.0.24 → 0.0.25
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/README.md +1 -1
- package/base.css +1 -1
- package/default.css +1 -1
- package/default.d.ts +2 -2
- package/default.js +414 -380
- package/package.json +2 -2
- package/theming.js +7 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@talkjs/react-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
4
4
|
"bugs": {
|
|
5
5
|
"url": "https://talkjs.com/?chat"
|
|
6
6
|
},
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@legendapp/state": "3.0.0-alpha.9",
|
|
28
28
|
"@radix-ui/react-dropdown-menu": "^2.1.15",
|
|
29
29
|
"@radix-ui/react-popover": "^1.1.15",
|
|
30
|
-
"@talkjs/core": "^1.5.
|
|
30
|
+
"@talkjs/core": "^1.5.5",
|
|
31
31
|
"autolinker": "^4.0.0",
|
|
32
32
|
"country-flag-emoji-polyfill": "^0.1.8",
|
|
33
33
|
"emoji-picker-element": "1.8.2",
|
package/theming.js
CHANGED
|
@@ -595,7 +595,12 @@ function _t(e, t) {
|
|
|
595
595
|
let E = [];
|
|
596
596
|
for (let n = 0; n < e.length; n++) {
|
|
597
597
|
const _ = e[n];
|
|
598
|
-
typeof _ == "string"
|
|
598
|
+
if (typeof _ == "string") E.push(_);
|
|
599
|
+
else if ("children" in _) {
|
|
600
|
+
E.length > 0 && (a.push(E.join("")), E = []);
|
|
601
|
+
const i = _t(_.children, t || _.type === "link" || _.type === "actionbutton" || _.type === "actionlink");
|
|
602
|
+
a.push({ ..._, children: i });
|
|
603
|
+
} else _.type === "autolink" && t ? E.push(_.text) : (E.length > 0 && (a.push(E.join("")), E = []), a.push(_));
|
|
599
604
|
}
|
|
600
605
|
return E.length > 0 && (a.push(E.join("")), E = []), a;
|
|
601
606
|
}
|
|
@@ -1164,7 +1169,7 @@ function Ve(e) {
|
|
|
1164
1169
|
function ma(e) {
|
|
1165
1170
|
const { popoverComponent: t, popoverProps: a, children: E, type: n = "popover", ..._ } = e, [i, r] = g(void 0), [s, O] = g(!1);
|
|
1166
1171
|
let o, T, L;
|
|
1167
|
-
return n === "menu" ? (o = ee.Root, T = ee.Trigger, L = ee.Content) : (o = ne.Root, T = ne.Trigger, L = ne.Content), R(vt.Provider, { value: { closePopover: () => O(!1) }, children: x(o, { modal: !
|
|
1172
|
+
return n === "menu" ? (o = ee.Root, T = ee.Trigger, L = ee.Content) : (o = ne.Root, T = ne.Trigger, L = ne.Content), R(vt.Provider, { value: { closePopover: () => O(!1) }, children: x(o, { modal: !1, open: s, onOpenChange: O, children: [R(T, { asChild: !0, children: R("button", { ..._, ref: (I) => ((S) => {
|
|
1168
1173
|
var c;
|
|
1169
1174
|
const N = (c = S == null ? void 0 : S.closest("[t-menu-boundary]")) != null ? c : void 0;
|
|
1170
1175
|
r(N);
|