talkweb 3.50.36 → 3.50.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.
- package/dist/index.es.js +1 -0
- package/dist/index.umd.js +1 -0
- package/dist/js/{AddContact-Be-cyln0.js → AddContact-geFB5uZu.js} +1 -1
- package/dist/js/{HamburgerMenu-DFDe3J_T.js → HamburgerMenu-Dnty8L_J.js} +1 -1
- package/dist/js/{ImageEditorModal-BpYLqQzj.js → ImageEditorModal-BE-kPsJd.js} +1 -1
- package/dist/js/{LoadingDots-UeQc7J-0.js → LoadingDots-CSbpS1Hq.js} +1 -1
- package/dist/js/{SearchContactBox-CDVujQgR.js → SearchContactBox-DCxa7Tq6.js} +1 -1
- package/dist/js/{StartCall-BuYbBDOV.js → StartCall-BAc3hBgQ.js} +4 -4
- package/dist/js/{TypingView-BUdlSByb.js → TypingView-Cwu2sFsn.js} +1 -1
- package/dist/js/{boredGif-A9EmD_JO.js → boredGif-Bu2KwA3Z.js} +1 -1
- package/dist/js/{index-Il5KkERL.js → index-BQxCMtTe.js} +1 -1
- package/dist/js/{index-BzCgl5RH.js → index-BartosUC.js} +41 -41
- package/dist/js/{index-RHZDwe2Q.js → index-Cb9BgC6O.js} +1 -1
- package/dist/js/{index-Ch-yggqO.js → index-CdrvmdU9.js} +1 -1
- package/dist/js/{index-oo-E5DFA.js → index-EIjPjN5k.js} +2 -2
- package/dist/js/{index-Bbep2jFu.js → index-tunuUxJO.js} +1 -1
- package/dist/js/{index-BVdVTzJH.js → index-vkicj3Qw.js} +1 -1
- package/dist/js/{main-BLVwj1_6.js → main-BiSoVrq9.js} +3 -3
- package/dist/js/{mic-BJ37Zd2z.js → mic-Zn5tfKRn.js} +1 -1
- package/dist/js/{unescapeHtml-Bfbj5rWq.js → unescapeHtml-Cw65I-c4.js} +1 -1
- package/dist/js/{useContactThread-CoTj8qLV.js → useContactThread-DFlOxXGB.js} +1 -1
- package/dist/js/{useCopyToClipboard-2_RdAJsg.js → useCopyToClipboard-CBpknd-Y.js} +1 -1
- package/dist/talkweb.css +1 -1
- package/package.json +1 -1
- package/dist/index.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as e from"react";import{ap as r,j as o,aq as n,dO as a,ar as d,at as t,cU as p}from"./main-
|
|
1
|
+
import*as e from"react";import{ap as r,j as o,aq as n,dO as a,ar as d,at as t,cU as p}from"./main-BiSoVrq9.js";import{j as s,k as i,l as u,P as l,m as w,n as c,v as f,G as g,o as m,q as x,r as h,s as D,t as v,S as M,w as _,x as y}from"./LoadingDots-CSbpS1Hq.js";var b="DropdownMenu",[j]=n(b,[s]),R=s(),[N,I]=j(b),C=n=>{const{__scopeDropdownMenu:d,children:t,dir:p,open:s,defaultOpen:u,onOpenChange:l,modal:w=!0}=n,c=R(d),f=e.useRef(null),[g,m]=r({prop:s,defaultProp:u??!1,onChange:l,caller:b});/* @__PURE__ */
|
|
2
2
|
return o.jsx(N,{scope:d,triggerId:a(),triggerRef:f,contentId:a(),open:g,onOpenChange:m,onOpenToggle:e.useCallback(()=>m(e=>!e),[m]),modal:w,children:/* @__PURE__ */o.jsx(i,{...c,open:g,onOpenChange:m,dir:p,modal:w,children:t})})};C.displayName=b;var O="DropdownMenuTrigger",k=e.forwardRef((e,r)=>{const{__scopeDropdownMenu:n,disabled:a=!1,...s}=e,i=I(O,n),l=R(n);/* @__PURE__ */
|
|
3
3
|
return o.jsx(u,{asChild:!0,...l,children:/* @__PURE__ */o.jsx(d.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...s,ref:p(r,i.triggerRef),onPointerDown:t(e.onPointerDown,e=>{a||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:t(e.onKeyDown,e=>{a||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});k.displayName=O;var A=e=>{const{__scopeDropdownMenu:r,...n}=e,a=R(r);/* @__PURE__ */
|
|
4
4
|
return o.jsx(l,{...a,...n})};A.displayName="DropdownMenuPortal";var P="DropdownMenuContent",T=e.forwardRef((r,n)=>{const{__scopeDropdownMenu:a,...d}=r,p=I(P,a),s=R(a),i=e.useRef(!1);/* @__PURE__ */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as e,i as t,u as a,m as s,M as n,a as r,f as i,b as l,d as c,e as o,g as d,s as x,j as h,h as p,k as u,l as m,n as g,o as f,p as j,q as v,r as y,t as b,v as w,R as N,w as C,x as T,y as k,z as M,A as O,B as S,C as I,F as A,D,T as R,E as F,G as U,H as $,I as z,S as B,J as P,K as V,L as G,N as L,O as E,P as W,Q as q,U as _,V as H,W as J,X as K,Y as Q,Z as X,_ as Y,$ as Z,a0 as ee,a1 as te,a2 as ae,a3 as se,a4 as ne,a5 as re,a6 as ie,a7 as le,a8 as ce,a9 as oe,aa as de,ab as xe,ac as he,ad as pe,ae as ue,af as me,ag as ge,ah as fe,ai as je}from"./main-
|
|
1
|
+
import{c as e,i as t,u as a,m as s,M as n,a as r,f as i,b as l,d as c,e as o,g as d,s as x,j as h,h as p,k as u,l as m,n as g,o as f,p as j,q as v,r as y,t as b,v as w,R as N,w as C,x as T,y as k,z as M,A as O,B as S,C as I,F as A,D,T as R,E as F,G as U,H as $,I as z,S as B,J as P,K as V,L as G,N as L,O as E,P as W,Q as q,U as _,V as H,W as J,X as K,Y as Q,Z as X,_ as Y,$ as Z,a0 as ee,a1 as te,a2 as ae,a3 as se,a4 as ne,a5 as re,a6 as ie,a7 as le,a8 as ce,a9 as oe,aa as de,ab as xe,ac as he,ad as pe,ae as ue,af as me,ag as ge,ah as fe,ai as je}from"./main-BiSoVrq9.js";import ve,{useContext as ye,useState as be,useEffect as we,useRef as Ne,useMemo as Ce,useCallback as Te,createElement as ke,isValidElement as Me}from"react";import{u as Oe,p as Se,A as Ie,T as Ae,Y as De,L as Re,C as Fe,O as Ue}from"./LoadingDots-CSbpS1Hq.js";import{u as $e,D as ze,C as Be,a as Pe,g as Ve,b as Ge,c as Le}from"./useContactThread-DFlOxXGB.js";import{C as Ee,u as We}from"./unescapeHtml-Cw65I-c4.js";import{X as qe,T as _e,P as He,C as Je,I as Ke,R as Qe,a as Xe}from"./TypingView-Cwu2sFsn.js";import{u as Ye}from"./useBreakpoint-C4Ybxj8D.js";const Ze=e("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);function et(e){const t=a(()=>s(e)),{isStatic:r}=ye(n);if(r){const[,a]=be(e);we(()=>t.on("change",a),[])}return t}function tt(e,t){const a=et(t()),s=()=>a.set(t());return s(),r(()=>{const t=()=>i.preRender(s,!1,!0),a=e.map(e=>e.on("change",t));return()=>{a.forEach(e=>e()),l(s)}}),a}function at(e,t){const s=a(()=>[]);return tt(e,()=>{s.length=0;const a=e.length;for(let t=0;t<a;t++)s[t]=e[t].get();return t(s)})}const st=()=>{const e=o(),t=d(e=>e.setting.showRightMenu);return{showRightMenu:t,handleToggle:a=>{e(x(!0!==a&&!t))}}},nt=()=>{const e=Ne(null),{handleToggle:t,showRightMenu:a}=st();/* @__PURE__ */
|
|
2
2
|
return h.jsx("div",{ref:e,children:/* @__PURE__ */h.jsxs("button",{onClick:t,"aria-label":a?"Close menu":"Open menu","aria-expanded":a,className:`relative flex flex-col justify-center items-center ${a?"gap-[5px]":"gap-[3px]"}\n w-9 h-9 m-[5px] rounded-md bg-asideHeadBg cursor-pointer transition-all duration-300 ease-in-out`,children:[
|
|
3
3
|
/* @__PURE__ */h.jsx("span",{className:`block ${a?"h-[1px]":"h-[2px]"} w-4 rounded bg-white transition-all duration-300 ease-in-out \n ${a?"rotate-45 translate-y-[6px]":""}`}),
|
|
4
4
|
/* @__PURE__ */h.jsx("span",{className:`block ${a?"h-[1px]":"h-[2px]"} w-4 rounded bg-white transition-all duration-300 ease-in-out \n ${a?"opacity-0":"opacity-100"}`}),
|
|
@@ -93,7 +93,7 @@ return h.jsxs(Qe,{modal:!1,onOpenChange:t=>{t?D(e.id):A===e.id&&D(null)},childre
|
|
|
93
93
|
/* @__PURE__ */h.jsx(Xe,{children:/* @__PURE__ */h.jsx(ft,{title:s,onJoinToCall:B,isPinned:e.pin,onSelect:F,thread:e,isActive:t?x?.id===e?.id&&R:x?.id===e?.id,showContextTick:A===e.id})}),
|
|
94
94
|
/* @__PURE__ */h.jsx(Ct,{isMenuOpen:A===e.id,onSelectThread:F,onArchiveThread:U,thread:e})]},e.id)}if("contact"===a.type){const e=a.data;/* @__PURE__ */
|
|
95
95
|
return h.jsx("div",{children:/* @__PURE__ */h.jsx(Fe,{contact:e,handleSelect:z})},"contact-"+e.id)}return"noResult"===a.type?/* @__PURE__ */h.jsx("div",{className:"px-4 py-2 text-sm text-center text-gray-500",children:a.text},"noResult-"+e):null}})}),
|
|
96
|
-
/* @__PURE__ */h.jsx("div",{className:"flex-0 bg-transparent hidden xl2:block "})]})},kt=ve.lazy(()=>import("./HamburgerMenu-
|
|
96
|
+
/* @__PURE__ */h.jsx("div",{className:"flex-0 bg-transparent hidden xl2:block "})]})},kt=ve.lazy(()=>import("./HamburgerMenu-Dnty8L_J.js")),Mt=ve.lazy(()=>import("./index-BQxCMtTe.js")),Ot=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:()=>{const{handleToggle:e}=st(),{pathname:t}=ue(),a=Le(),s=d(e=>e.appConfig.AsideBanner);/* @__PURE__ */
|
|
97
97
|
return h.jsxs("aside",{id:"asideThread",className:`w-full z-chatThreadList ${a?"hidden lg:block ":"lg:block"} sm:w-full lg:w-1/4 relative bg-bgColor overflow-y-hidden h-full shadow-md`,children:[
|
|
98
98
|
/* @__PURE__ */h.jsxs(Ue,{disabled:!1,onOutsideClick:t=>{t.target.closest("[aria-expanded]")||e(!0)},children:[
|
|
99
99
|
/* @__PURE__ */h.jsx(Mt,{}),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e,H as t,g as s,Y as a,j as n,C as i,dP as l,q as r,x as c,l as d,Z as o,dQ as x,dR as h,dS as m,dT as p,b$ as u,dU as j,_ as f,a0 as g,a3 as v,c0 as N,dV as b,I as y,cD as w,dW as C,dX as I,ad as k,dY as S,dZ as P,d_ as T,d$ as O,k as B,e0 as D,p as L,e1 as F,cB as E,cf as W,e2 as R,e3 as _,e4 as M,e5 as U,e6 as G,bL as z,e7 as A,e8 as H,c3 as $,e9 as q,ea as V,eb as Z,bc as Q,ec as X,ed as Y,ee as K,aA as J,cC as ee,aE as te,o as se,ef as ae,eg as ne,by as ie,eh as le,b4 as re,ei as ce,ej as de,ek as oe,b2 as xe,W as he,el as me,em as pe,en as ue,eo as je,v as fe,ep as ge,al as ve,eq as Ne,er as be,cR as ye,cS as we,es as Ce,et as Ie,eu as ke,ev as Se,ew as Pe,ex as Te,cg as Oe,ey as Be,ez as De,eA as Le,eB as Fe,eC as Ee,cG as We,eD as Re,bP as _e,aj as Me}from"./main-
|
|
1
|
+
import{e,H as t,g as s,Y as a,j as n,C as i,dP as l,q as r,x as c,l as d,Z as o,dQ as x,dR as h,dS as m,dT as p,b$ as u,dU as j,_ as f,a0 as g,a3 as v,c0 as N,dV as b,I as y,cD as w,dW as C,dX as I,ad as k,dY as S,dZ as P,d_ as T,d$ as O,k as B,e0 as D,p as L,e1 as F,cB as E,cf as W,e2 as R,e3 as _,e4 as M,e5 as U,e6 as G,bL as z,e7 as A,e8 as H,c3 as $,e9 as q,ea as V,eb as Z,bc as Q,ec as X,ed as Y,ee as K,aA as J,cC as ee,aE as te,o as se,ef as ae,eg as ne,by as ie,eh as le,b4 as re,ei as ce,ej as de,ek as oe,b2 as xe,W as he,el as me,em as pe,en as ue,eo as je,v as fe,ep as ge,al as ve,eq as Ne,er as be,cR as ye,cS as we,es as Ce,et as Ie,eu as ke,ev as Se,ew as Pe,ex as Te,cg as Oe,ey as Be,ez as De,eA as Le,eB as Fe,eC as Ee,cG as We,eD as Re,bP as _e,aj as Me}from"./main-BiSoVrq9.js";import Ue,{memo as Ge,useRef as ze,useEffect as Ae,useState as He,useLayoutEffect as $e,useMemo as qe,useCallback as Ve}from"react";import{g as Ze,a as Qe,u as Xe,$ as Ye,d as Ke,p as Je,e as et,D as tt,C as st,b as at,c as nt}from"./useContactThread-DFlOxXGB.js";import{S as it,C as lt}from"./SearchContactBox-DCxa7Tq6.js";import{A as rt,Z as ct,p as dt,f as ot,L as xt,Y as ht,u as mt,_ as pt}from"./LoadingDots-CSbpS1Hq.js";import{C as ut,u as jt}from"./unescapeHtml-Cw65I-c4.js";import{o as ft,C as gt,D as vt,Z as Nt,q as bt,L as yt,c as wt,h as Ct,r as It,F as kt,d as St,s as Pt,e as Tt,S as Ot}from"./StartCall-BAc3hBgQ.js";import{u as Bt}from"./useCopyToClipboard-CBpknd-Y.js";import{R as Dt,T as Lt,P as Ft,C as Et,I as Wt}from"./index-CdrvmdU9.js";import{A as Rt}from"./AddContact-geFB5uZu.js";import{u as _t}from"./useBreakpoint-C4Ybxj8D.js";import{A as Mt}from"./index-vkicj3Qw.js";import{I as Ut}from"./ImageEditorModal-BE-kPsJd.js";const Gt=({title:c,onClose:d,showEdit:o,viewMode:x})=>{const h=e(),{isMobile:m}=t(),{thread:p}=s(e=>e.threads),u=Ze(p).includes(a.P2P);/* @__PURE__ */
|
|
2
2
|
return n.jsxs("div",{className:"flex flex-col",children:[
|
|
3
3
|
/* @__PURE__ */n.jsxs("div",{className:"py-5 px-5 border-b bg-bgColor border-borderHead h-[60px] flex justify-between items-center",children:[
|
|
4
4
|
/* @__PURE__ */n.jsxs("div",{className:"flex items-center gap-4",children:[
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{M as t,j as e,eK as n,u as o,eL as r,eM as s,a as i,eN as c}from"./main-
|
|
1
|
+
import{M as t,j as e,eK as n,u as o,eL as r,eM as s,a as i,eN as c}from"./main-BiSoVrq9.js";import*as l from"react";import{useId as f,useRef as u,useContext as a,useInsertionEffect as p,useMemo as h,Children as d,isValidElement as m,useState as g}from"react";function x(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class P extends l.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=e.offsetParent,o=n(t)&&t.offsetWidth||0,r=this.props.sizeRef.current;r.height=e.offsetHeight||0,r.width=e.offsetWidth||0,r.top=e.offsetTop,r.left=e.offsetLeft,r.right=o-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function y({children:n,isPresent:o,anchorX:r,root:s}){const i=f(),c=u(null),h=u({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=a(t),m=function(...t){return l.useCallback(function(...t){return e=>{let n=!1;const o=t.map(t=>{const o=x(t,e);return n||"function"!=typeof o||(n=!0),o});if(n)return()=>{for(let e=0;e<o.length;e++){const n=o[e];"function"==typeof n?n():x(t[e],null)}}}}(...t),t)}(c,n?.ref);return p(()=>{const{width:t,height:e,top:n,left:l,right:f}=h.current;if(o||!c.current||!t||!e)return;const u="left"===r?"left: "+l:"right: "+f;c.current.dataset.motionPopId=i;const a=document.createElement("style");d&&(a.nonce=d);const p=s??document.head;return p.appendChild(a),a.sheet&&a.sheet.insertRule(`\n [data-motion-pop-id="${i}"] {\n position: absolute !important;\n width: ${t}px !important;\n height: ${e}px !important;\n ${u}px !important;\n top: ${n}px !important;\n }\n `),()=>{p.contains(a)&&p.removeChild(a)}},[o]),e.jsx(P,{isPresent:o,childRef:c,sizeRef:h,children:l.cloneElement(n,{ref:m})})}const E=({children:t,initial:n,isPresent:s,onExitComplete:i,custom:c,presenceAffectsLayout:u,mode:a,anchorX:p,root:d})=>{const m=o(j),g=f();let x=!0,P=h(()=>(x=!1,{id:g,initial:n,isPresent:s,custom:c,onExitComplete:t=>{m.set(t,!0);for(const e of m.values())if(!e)return;i&&i()},register:t=>(m.set(t,!1),()=>m.delete(t))}),[s,m,i]);return u&&x&&(P={...P}),h(()=>{m.forEach((t,e)=>m.set(e,!1))},[s]),l.useEffect(()=>{!s&&!m.size&&i&&i()},[s]),"popLayout"===a&&(t=e.jsx(y,{isPresent:s,anchorX:p,root:d,children:t})),e.jsx(r.Provider,{value:P,children:t})};function j(){/* @__PURE__ */
|
|
2
2
|
return new Map}const w=t=>t.key||"";function C(t){const e=[];return d.forEach(t,t=>{m(t)&&e.push(t)}),e}const v=({children:t,custom:n,initial:r=!0,onExitComplete:l,presenceAffectsLayout:f=!0,mode:p="sync",propagate:d=!1,anchorX:m="left",root:x})=>{const[P,y]=s(d),j=h(()=>C(t),[t]),v=d&&!P?[]:j.map(w),L=u(!0),R=u(j),X=o(()=>/* @__PURE__ */new Map),[$,A]=g(j),[M,z]=g(j);i(()=>{L.current=!1,R.current=j;for(let t=0;t<M.length;t++){const e=w(M[t]);v.includes(e)?X.delete(e):!0!==X.get(e)&&X.set(e,!1)}},[M,v.length,v.join("-")]);const b=[];if(j!==$){let t=[...j];for(let e=0;e<M.length;e++){const n=M[e],o=w(n);v.includes(o)||(t.splice(e,0,n),b.push(n))}return"wait"===p&&b.length&&(t=b),z(C(t)),A(j),null}const{forceRender:k}=a(c);return e.jsx(e.Fragment,{children:M.map(t=>{const o=w(t),s=!(d&&!P)&&(j===M||v.includes(o));return e.jsx(E,{isPresent:s,initial:!(L.current&&!r)&&void 0,custom:n,presenceAffectsLayout:f,mode:p,root:x,onExitComplete:s?void 0:()=>{if(!X.has(o))return;X.set(o,!0);let t=!0;X.forEach(e=>{e||(t=!1)}),t&&(k?.(),z(R.current),d&&y?.(),l&&l())},anchorX:m,children:t},o)})})};export{v as A};
|