@tellyouai/plugin 0.1.8 → 0.1.9
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 +3 -3
- package/dist/package/index.js +16 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -106,9 +106,9 @@ await initialize({
|
|
|
106
106
|
});
|
|
107
107
|
```
|
|
108
108
|
|
|
109
|
-
The
|
|
110
|
-
|
|
111
|
-
`position.z`.
|
|
109
|
+
The `bar` popup follows configured launcher placement; without an override it
|
|
110
|
+
keeps its centered layout. The modal-style `overlay` popup retains its preset
|
|
111
|
+
layout. `style.zIndex` takes precedence over `position.z`.
|
|
112
112
|
|
|
113
113
|
## User identity
|
|
114
114
|
|
package/dist/package/index.js
CHANGED
|
@@ -68558,7 +68558,13 @@ var rV, iV, Bpe = o((() => {
|
|
|
68558
68558
|
};
|
|
68559
68559
|
})), Pq, Fq, Iq, eye = o((() => {
|
|
68560
68560
|
Pq = /* @__PURE__ */ u(m(), 1), yA(), Gpe(), fH(), hH(), Nq(), Fq = nn(), Iq = ({ canStore: e, displayMode: t, displaySize: n, onClickQuickAction: r, onClickDisplaySize: i, onMessages: a, sendMessage: o, children: s, onOpenChange: c, hasChatUserMessages: l, userMessages: u, mode: d, onClickNewChat: f, onClickCall: p, callIsConnected: m, callIsConnecting: h }) => {
|
|
68561
|
-
let { formatMessage: g } = cA(), { isMobile: _ } = Tu(), { config: { entityId: v, withQuickActions: y, quickActions: b, withLocale: x, withConsent: S, privacyUrl: C, position: w, style: T }, isLoading: E } = Kl(), { entityId: D } = xu(), O = y === "visible" || y === "visible-desktop" && !_, { background: ee, styles: { color: k, borderColor: te, backgroundColor70: A, spacingXS: j, spacingMD: M, marginRight: N, marginBottom: P, openerDimensions: F, transitionSpeed: ne, borderRadiusLg: re, shadowOuter: ie, themeColors: ae } } = gA(), { config: oe, target: I, isCustomTarget: se } = ql(), { session: ce, setSession: le } = Yl(v, D, I, oe.widgetId, e), [ue, de] = (0, Pq.useState)(), fe = ue ?? oe.isOpen ?? ce.isOpen ?? !1, pe = ce.isMaximized ?? oe.isMaximized ?? !1, L = oe.position === void 0 ? w : oe.position
|
|
68561
|
+
let { formatMessage: g } = cA(), { isMobile: _ } = Tu(), { config: { entityId: v, withQuickActions: y, quickActions: b, withLocale: x, withConsent: S, privacyUrl: C, position: w, style: T }, isLoading: E } = Kl(), { entityId: D } = xu(), O = y === "visible" || y === "visible-desktop" && !_, { background: ee, styles: { color: k, borderColor: te, backgroundColor70: A, spacingXS: j, spacingMD: M, marginRight: N, marginBottom: P, openerDimensions: F, transitionSpeed: ne, borderRadiusLg: re, shadowOuter: ie, themeColors: ae } } = gA(), { config: oe, target: I, isCustomTarget: se } = ql(), { session: ce, setSession: le } = Yl(v, D, I, oe.widgetId, e), [ue, de] = (0, Pq.useState)(), fe = ue ?? oe.isOpen ?? ce.isOpen ?? !1, pe = ce.isMaximized ?? oe.isMaximized ?? !1, L = oe.position === void 0 ? w : oe.position === null ? void 0 : {
|
|
68562
|
+
...w,
|
|
68563
|
+
...oe.position
|
|
68564
|
+
}, me = oe.style === void 0 ? T : oe.style === null ? void 0 : {
|
|
68565
|
+
...T,
|
|
68566
|
+
...oe.style
|
|
68567
|
+
}, he = me?.zIndex ?? L?.z ?? 8, ge = (0, Pq.useRef)(null), _e = (0, Pq.useRef)(null), R = (0, Pq.useRef)(!1), ve = (0, Pq.useCallback)((e) => {
|
|
68562
68568
|
de(e), le({ isOpen: e }), c?.(e);
|
|
68563
68569
|
}, [le, c]), ye = (0, Pq.useCallback)((e) => {
|
|
68564
68570
|
le({ isMaximized: e });
|
|
@@ -68593,13 +68599,13 @@ var rV, iV, Bpe = o((() => {
|
|
|
68593
68599
|
top: Ne ? ke?.top : je === "top" ? P : je === "center" ? "50%" : void 0,
|
|
68594
68600
|
bottom: Ne ? ke?.bottom : je === "bottom" ? P : void 0,
|
|
68595
68601
|
transform: `translate(${!Me && Ae === "center" ? "-50%" : "0"}, ${!Ne && je === "center" ? "-50%" : "0"})`
|
|
68596
|
-
}, Fe = Pe.top !== void 0 && Pe.top !== "auto", Ie =
|
|
68597
|
-
top:
|
|
68598
|
-
bottom:
|
|
68602
|
+
}, Fe = Pe.top !== void 0 && Pe.top !== "auto", Ie = Oe === "input" ? "64px" : `calc(${F} + ${M})`, Le = Fe ? `calc(${Pe.top} + ${Ie})` : void 0, Re = Fe ? void 0 : Pe.bottom !== void 0 && Pe.bottom !== "auto" ? `calc(${Pe.bottom} + ${Ie})` : Ee, ze = {
|
|
68603
|
+
top: Le,
|
|
68604
|
+
bottom: Re,
|
|
68599
68605
|
left: Pe.left,
|
|
68600
68606
|
right: Pe.right,
|
|
68601
68607
|
transform: `translate(${!Me && Ae === "center" ? "-50%" : "0"}, 0)`
|
|
68602
|
-
},
|
|
68608
|
+
}, Be = !xe && !Se || Oe === "input" && (L?.x !== void 0 || L?.y !== void 0 || Me || Ne), Ve = Be ? Le ?? Re ?? Ee : Ee, He = dH(ee, ae, "bottom"), Ue = uH(t, d, ee), We = d === "text" && S !== !0;
|
|
68603
68609
|
return /* @__PURE__ */ (0, Fq.jsxs)(Fq.Fragment, { children: [/* @__PURE__ */ (0, Fq.jsxs)("div", {
|
|
68604
68610
|
ref: ge,
|
|
68605
68611
|
role: "dialog",
|
|
@@ -68614,14 +68620,14 @@ var rV, iV, Bpe = o((() => {
|
|
|
68614
68620
|
transform: `translate(${xe ? "50%" : "0"}, ${Se ? "50%" : "0"})`,
|
|
68615
68621
|
bottom: Ee,
|
|
68616
68622
|
right: Te,
|
|
68617
|
-
...
|
|
68623
|
+
...Be ? ze : {},
|
|
68618
68624
|
backgroundColor: A,
|
|
68619
68625
|
backdropFilter: "blur(48px)",
|
|
68620
68626
|
boxSizing: "border-box",
|
|
68621
68627
|
width: `min(calc(100% - ${N} - ${N}), ${Ce})`,
|
|
68622
|
-
height: Se ? "80dvh" : `min(calc(100dvh - ${P} - ${
|
|
68628
|
+
height: Se ? "80dvh" : `min(calc(100dvh - ${P} - ${Ve}), ${we})`,
|
|
68623
68629
|
maxWidth: xe ? "1000px" : void 0,
|
|
68624
|
-
maxHeight: Se ? "1000px" : `calc(100dvh - ${
|
|
68630
|
+
maxHeight: Se ? "1000px" : `calc(100dvh - ${Ve} - ${M})`,
|
|
68625
68631
|
display: "flex",
|
|
68626
68632
|
visibility: fe ? "visible" : "hidden",
|
|
68627
68633
|
opacity: fe ? "1" : "0",
|
|
@@ -68650,7 +68656,7 @@ var rV, iV, Bpe = o((() => {
|
|
|
68650
68656
|
style: {
|
|
68651
68657
|
opacity: "0.5",
|
|
68652
68658
|
flexShrink: 0,
|
|
68653
|
-
color:
|
|
68659
|
+
color: Ue ? He : void 0,
|
|
68654
68660
|
paddingBottom: j,
|
|
68655
68661
|
width: "100%",
|
|
68656
68662
|
textAlign: "center",
|
|
@@ -68659,7 +68665,7 @@ var rV, iV, Bpe = o((() => {
|
|
|
68659
68665
|
},
|
|
68660
68666
|
children: /* @__PURE__ */ (0, Fq.jsx)("span", {
|
|
68661
68667
|
style: { fontSize: "0.7em" },
|
|
68662
|
-
children:
|
|
68668
|
+
children: We ? g({ id: "chat-privacy-notice" }, { 0: C ? /* @__PURE__ */ (0, Fq.jsx)(mH, {
|
|
68663
68669
|
href: C,
|
|
68664
68670
|
target: "_blank",
|
|
68665
68671
|
rel: "noopener noreferrer",
|