jamespot-react-components 1.3.137 → 1.3.138

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.
@@ -4227,10 +4227,10 @@ Valid keys: `+JSON.stringify(Object.keys(Q),null," "));var U=X(Ae,te,Y,$,ce+"."
4227
4227
  margin-top: ${({theme:e})=>e.space.sm}px;
4228
4228
  `,M0e=y.span`
4229
4229
  ${Qn}
4230
- `,N0e=({as:e,className:t,lines:r,truncate:n="ellipsis",__html:i,seeMore:o,imagesInteractive:a=!0},s)=>{const A=N.useIntl(),c=p.useRef(null),[d,u]=p.useState(!1),f=A.formatMessage({id:"FILE_Viewer_Preview"}),{displayedHtml:g,charTruncated:h,images:m}=p.useMemo(()=>{const E=Uo(i),B=r?r*(o?.charsPerLine??P0e):0,{html:S,truncated:D}=o&&r?PU(E,B):{html:E,truncated:!1};if(!a)return{displayedHtml:S,charTruncated:D,images:[]};const I=new DOMParser().parseFromString(S,"text/html"),T=O0e(I.body,f);return{displayedHtml:T.length>0?I.body.innerHTML:S,charTruncated:D,images:T}},[i,o,r,f,a]),v=h||d,x=!!r&&!h&&(!!o||n==="fade"),w=E=>{c.current=E,typeof s=="function"?s(E):s&&(s.current=E)};p.useLayoutEffect(()=>{if(!x)return;const E=c.current;if(!E)return;const B=()=>u(E.scrollHeight>E.clientHeight+1);B();const S=new ResizeObserver(B);return S.observe(E),()=>S.disconnect()},[g,x]);const b=(E,B)=>{const S=E instanceof HTMLImageElement?E.getAttribute(F1):null;return S===null?!1:(B(Number(S)),!0)},C=E=>l.jsx(R0e,{as:e,className:t,$lines:r,$truncate:n,$fade:n==="fade"&&v,dangerouslySetInnerHTML:{__html:g},ref:w,onClick:E&&(B=>{b(B.target,E)}),onKeyDown:E&&(B=>{B.key!=="Enter"&&B.key!==" "||b(B.target,E)&&B.preventDefault()})});return i?l.jsxs(k0e,{children:[n==="fade"&&v&&l.jsx(M0e,{children:A.formatMessage({id:"GLOBAL_Article_Preview_Excerpt"})}),m.length>0?l.jsx(b5,{files:m,openWithOptions:[],children:E=>C(E)}):C(),o&&r&&v&&l.jsx(L0e,{children:l.jsx(et,{href:o.href,target:"_blank",children:o.label??A.formatMessage({id:"GLOBAL_Read_Following"})})})]}):null},Ar=p.forwardRef(N0e),F0e=(e,t,r,n)=>{e.on("paste",function(i){if(!t)return;const o=i.clipboardData;if(!o)return;const a=o.items,s=o.getData("text/html")||o.getData("text/plain");for(let A=0;A<a.length;A++){const c=a[A];if(c.type.startsWith("image/")&&!s){i.preventDefault();const d=c.getAsFile();e.notificationManager.open({text:n.formatMessage({id:"GLOBAL_Loading"}),type:"info"}),r.file.upload({token:t,file:d,attrName:"editorFiles"}).then(u=>{e.insertContent(`<img src='/media/${u.response.result.id}.png' />`),e.notificationManager.close(),e.notificationManager.open({text:n.formatMessage({id:"GLOBAL_Ok"}),type:"success",timeout:3e3})}).catch(()=>{e.notificationManager.close(),e.notificationManager.open({text:n.formatMessage({id:"GLOBAL_Error"}),type:"error",timeout:3e3})});break}}})},H0e=(e,t)=>{e.ui.registry.addAutocompleter("mentions",{trigger:"@",minChars:1,columns:1,onAction:(r,n,i)=>{e.selection.setRng(n),e.insertContent(i),r.hide()},fetch:t.users}),e.ui.registry.addAutocompleter("tags",{trigger:"#",minChars:1,columns:1,onAction:(r,n,i)=>{e.selection.setRng(n),e.insertContent(i),r.hide()},fetch:t.tags}),e.ui.registry.addAutocompleter("contents",{trigger:"!",minChars:1,columns:1,onAction:(r,n,i)=>{e.selection.setRng(n),e.insertContent(i),r.hide()},fetch:t.contents})},Q0e=e=>{e.on("init",()=>{const r=e.iframeElement?.contentDocument;if(!r)return;const n=i=>{const o=i,a=new MouseEvent(o.type,{...o,bubbles:!0,cancelable:!0});document.dispatchEvent(a)};["click","mousedown","mouseup"].forEach(i=>{r.addEventListener(i,n,!0)})})},H1=({open:e,closeHandler:t,token:r})=>{const n=N.useIntl(),i=y.useTheme(),o=Lt.useForm(),a=p.useCallback(()=>{t(),o.reset()},[o,t]),s=p.useCallback(()=>{const c=o.watch("file");tinymce.activeEditor.execCommand("CreateLink",!0,`/downloadFile.php?id=${c[0].result.id}`),tinymce.activeEditor.windowManager.close(),t()},[o,t]);let A=[{children:l.jsx(N.FormattedMessage,{id:"GLOBAL_Cancel"}),color:"cancel",clickHandler:a}];return o.watch("file")?A=[...A,{children:l.jsx(N.FormattedMessage,{id:"GLOBAL_Save"}),color:"valid",clickHandler:s}]:A=[...A,{children:l.jsx(N.FormattedMessage,{id:"GLOBAL_Save"}),color:"valid",clickHandler:s,disabled:!0}],l.jsx(sr,{open:e,closeHandler:a,zIndex:i.zIndex.tinyMCEModal,title:n.formatMessage({id:"GLOBAL_Add_File"}),buttons:A,enableClickAwayCloseModal:!1,children:l.jsx(Sy,{control:o.control,name:"file",token:r,attrName:"editorFiles"})})},U0e=y.div`
4230
+ `,N0e=({as:e,className:t,lines:r,truncate:n="ellipsis",__html:i,seeMore:o,imagesInteractive:a=!0},s)=>{const A=N.useIntl(),c=p.useRef(null),[d,u]=p.useState(!1),f=A.formatMessage({id:"FILE_Viewer_Preview"}),{displayedHtml:g,charTruncated:h,images:m}=p.useMemo(()=>{const E=Uo(i),B=r?r*(o?.charsPerLine??P0e):0,{html:S,truncated:D}=o&&r?PU(E,B):{html:E,truncated:!1};if(!a)return{displayedHtml:S,charTruncated:D,images:[]};const I=new DOMParser().parseFromString(S,"text/html"),T=O0e(I.body,f);return{displayedHtml:T.length>0?I.body.innerHTML:S,charTruncated:D,images:T}},[i,o,r,f,a]),v=h||d,x=!!r&&!h&&(!!o||n==="fade"),w=E=>{c.current=E,typeof s=="function"?s(E):s&&(s.current=E)};p.useLayoutEffect(()=>{if(!x)return;const E=c.current;if(!E)return;const B=()=>u(E.scrollHeight>E.clientHeight+1);B();const S=new ResizeObserver(B);return S.observe(E),()=>S.disconnect()},[g,x]);const b=(E,B)=>{const S=E instanceof HTMLImageElement?E.getAttribute(F1):null;return S===null?!1:(B(Number(S)),!0)},C=E=>l.jsx(R0e,{as:e,className:t,$lines:r,$truncate:n,$fade:n==="fade"&&v,dangerouslySetInnerHTML:{__html:g},ref:w,onClick:E&&(B=>{b(B.target,E)}),onKeyDown:E&&(B=>{B.key!=="Enter"&&B.key!==" "||b(B.target,E)&&B.preventDefault()})});return i?l.jsxs(k0e,{children:[n==="fade"&&v&&l.jsx(M0e,{children:A.formatMessage({id:"GLOBAL_Article_Preview_Excerpt"})}),m.length>0?l.jsx(b5,{files:m,openWithOptions:[],children:E=>C(E)}):C(),o&&r&&v&&l.jsx(L0e,{children:l.jsx(et,{href:o.href,target:"_blank",children:o.label??A.formatMessage({id:"GLOBAL_Read_Following"})})})]}):null},Ar=p.forwardRef(N0e),F0e=(e,t,r,n)=>{e.on("paste",function(i){if(!t)return;const o=i.clipboardData;if(!o)return;const a=o.items,s=o.getData("text/html")||o.getData("text/plain");for(let A=0;A<a.length;A++){const c=a[A];if(c.type.startsWith("image/")&&!s){i.preventDefault();const d=c.getAsFile();e.notificationManager.open({text:n.formatMessage({id:"GLOBAL_Loading"}),type:"info"}),r.file.upload({token:t,file:d,attrName:"editorFiles"}).then(u=>{e.insertContent(`<img src='/media/${u.response.result.id}.png' />`),e.notificationManager.close(),e.notificationManager.open({text:n.formatMessage({id:"GLOBAL_Ok"}),type:"success",timeout:3e3})}).catch(()=>{e.notificationManager.close(),e.notificationManager.open({text:n.formatMessage({id:"GLOBAL_Error"}),type:"error",timeout:3e3})});break}}})},H0e=(e,t)=>{e.ui.registry.addAutocompleter("mentions",{trigger:"@",minChars:1,columns:1,onAction:(r,n,i)=>{e.selection.setRng(n),e.insertContent(i),r.hide()},fetch:t.users}),e.ui.registry.addAutocompleter("tags",{trigger:"#",minChars:1,columns:1,onAction:(r,n,i)=>{e.selection.setRng(n),e.insertContent(i),r.hide()},fetch:t.tags}),e.ui.registry.addAutocompleter("contents",{trigger:"!",minChars:1,columns:1,onAction:(r,n,i)=>{e.selection.setRng(n),e.insertContent(i),r.hide()},fetch:t.contents})},Q0e=e=>{e.on("init",()=>{const r=e.iframeElement?.contentDocument;if(!r)return;const n=i=>{const o=i,a=new MouseEvent(o.type,{...o,bubbles:!0,cancelable:!0});document.dispatchEvent(a)};["click","mousedown","mouseup"].forEach(i=>{r.addEventListener(i,n,!0)})})},H1=({open:e,closeHandler:t,token:r})=>{const n=N.useIntl(),i=y.useTheme(),o=Lt.useForm(),a=p.useCallback(()=>{t(),o.reset()},[o,t]),s=p.useCallback(()=>{const c=o.watch("file");tinymce.activeEditor.execCommand("CreateLink",!0,`/downloadFile.php?id=${c[0].result.id}`),tinymce.activeEditor.windowManager.close(),a()},[o,a]);let A=[{children:l.jsx(N.FormattedMessage,{id:"GLOBAL_Cancel"}),color:"cancel",clickHandler:a}];return o.watch("file")?A=[...A,{children:l.jsx(N.FormattedMessage,{id:"GLOBAL_Save"}),color:"valid",clickHandler:s}]:A=[...A,{children:l.jsx(N.FormattedMessage,{id:"GLOBAL_Save"}),color:"valid",clickHandler:s,disabled:!0}],l.jsx(sr,{open:e,closeHandler:a,zIndex:i.zIndex.tinyMCEModal,title:n.formatMessage({id:"GLOBAL_Add_File"}),buttons:A,enableClickAwayCloseModal:!1,children:l.jsx(Sy,{control:o.control,name:"file",token:r,attrName:"editorFiles"})})},U0e=y.div`
4231
4231
  width: 50%;
4232
4232
  margin: 0 auto 20px auto;
4233
- `,Q1=({open:e,closeHandler:t,token:r})=>{const n=N.useIntl(),i=y.useTheme(),o=Lt.useForm(),a=p.useCallback(()=>{t(),o.reset()},[o,t]),s=p.useCallback(()=>{const c=o.watch("image");tinymce.activeEditor.insertContent(`<img src='/media/${c.id}.png' />`),tinymce.activeEditor.windowManager.close(),t()},[o,t]);let A=[{children:l.jsx(N.FormattedMessage,{id:"GLOBAL_Cancel"}),color:"cancel",clickHandler:a}];return o.watch("image")?A=[...A,{children:l.jsx(N.FormattedMessage,{id:"GLOBAL_Save"}),color:"valid",clickHandler:s}]:A=[...A,{children:l.jsx(N.FormattedMessage,{id:"GLOBAL_Save"}),color:"valid",clickHandler:s,disabled:!0}],l.jsx(sr,{open:e,closeHandler:a,zIndex:i.zIndex.tinyMCEModal,title:n.formatMessage({id:"GLOBAL_Add_Image"}),buttons:A,enableClickAwayCloseModal:!1,children:l.jsx(U0e,{children:l.jsx(Ff,{zIndex:i.zIndex.tinyMCEModal,control:o.control,name:"image",token:r,attrName:"editorFiles",accept:"jpg,jpeg,png,gif",allowCustomRatio:!0})})})},U1=({open:e,closeHandler:t,token:r})=>{const n=N.useIntl(),i=y.useTheme(),o=Lt.useForm(),a=p.useCallback(()=>{t(),o.reset()},[o,t]),s=p.useCallback(()=>{const c=o.watch("videos")[0].result;tinymce.activeEditor.insertContent(`<iframe title="${n.formatMessage({id:"GLOBAL_Video_Player"})} : ${c.title}" src='/embed/${c.id}.mp4' width="480px" height="270px"></iframe>`),tinymce.activeEditor.windowManager.close(),t()},[n,o,t]);let A=[{children:l.jsx(N.FormattedMessage,{id:"GLOBAL_Cancel"}),color:"cancel",clickHandler:a}];return o.watch("videos")?A=[...A,{children:l.jsx(N.FormattedMessage,{id:"GLOBAL_Save"}),color:"valid",clickHandler:s}]:A=[...A,{children:l.jsx(N.FormattedMessage,{id:"GLOBAL_Save"}),color:"valid",clickHandler:s,disabled:!0}],l.jsx(sr,{open:e,closeHandler:a,zIndex:i.zIndex.tinyMCEModal,title:n.formatMessage({id:"GLOBAL_Add_Video"}),buttons:A,children:l.jsx(Sy,{control:o.control,token:r,name:"videos",attrName:"editorFiles",showLoading:!0})})},z0e=y.div`
4233
+ `,Q1=({open:e,closeHandler:t,token:r})=>{const n=N.useIntl(),i=y.useTheme(),o=Lt.useForm(),a=p.useCallback(()=>{t(),o.reset()},[o,t]),s=p.useCallback(()=>{const c=o.watch("image");tinymce.activeEditor.insertContent(`<img src='/media/${c.id}.png' />`),tinymce.activeEditor.windowManager.close(),a()},[o,a]);let A=[{children:l.jsx(N.FormattedMessage,{id:"GLOBAL_Cancel"}),color:"cancel",clickHandler:a}];return o.watch("image")?A=[...A,{children:l.jsx(N.FormattedMessage,{id:"GLOBAL_Save"}),color:"valid",clickHandler:s}]:A=[...A,{children:l.jsx(N.FormattedMessage,{id:"GLOBAL_Save"}),color:"valid",clickHandler:s,disabled:!0}],l.jsx(sr,{open:e,closeHandler:a,zIndex:i.zIndex.tinyMCEModal,title:n.formatMessage({id:"GLOBAL_Add_Image"}),buttons:A,enableClickAwayCloseModal:!1,children:l.jsx(U0e,{children:l.jsx(Ff,{zIndex:i.zIndex.tinyMCEModal,control:o.control,name:"image",token:r,attrName:"editorFiles",accept:"jpg,jpeg,png,gif",allowCustomRatio:!0})})})},U1=({open:e,closeHandler:t,token:r})=>{const n=N.useIntl(),i=y.useTheme(),o=Lt.useForm(),a=p.useCallback(()=>{t(),o.reset()},[o,t]),s=p.useCallback(()=>{const c=o.watch("videos")[0].result;tinymce.activeEditor.insertContent(`<iframe title="${n.formatMessage({id:"GLOBAL_Video_Player"})} : ${c.title}" src='/embed/${c.id}.mp4' width="480px" height="270px"></iframe>`),tinymce.activeEditor.windowManager.close(),a()},[n,o,a]);let A=[{children:l.jsx(N.FormattedMessage,{id:"GLOBAL_Cancel"}),color:"cancel",clickHandler:a}];return o.watch("videos")?A=[...A,{children:l.jsx(N.FormattedMessage,{id:"GLOBAL_Save"}),color:"valid",clickHandler:s}]:A=[...A,{children:l.jsx(N.FormattedMessage,{id:"GLOBAL_Save"}),color:"valid",clickHandler:s,disabled:!0}],l.jsx(sr,{open:e,closeHandler:a,zIndex:i.zIndex.tinyMCEModal,title:n.formatMessage({id:"GLOBAL_Add_Video"}),buttons:A,children:l.jsx(Sy,{control:o.control,token:r,name:"videos",attrName:"editorFiles",showLoading:!0})})},z0e=y.div`
4234
4234
  padding: 8px 12px;
4235
4235
  border: 1px solid ${({theme:e})=>e.color.grey1};
4236
4236
  border-radius: 6px;
@@ -5660,7 +5660,7 @@ Valid keys: `+JSON.stringify(Object.keys(Q),null," "));var U=X(Ae,te,Y,$,ce+"."
5660
5660
  height: min-content;
5661
5661
  margin-right: 6px;
5662
5662
  margin-bottom: 6px;
5663
- `,zD=({children:e,uri:t,fetchBusinessNetworking:r,onError:n})=>{const i=At(),o=N.useIntl(),[a,s]=p.useState(!1),[A,c]=p.useState(),[d,u]=p.useState(),[f,g]=p.useState(),[h,m]=p.useState([]),v=p.useMemo(()=>r??(async C=>(await i.businessNetworking.getInfos(C)).result),[r,i]),x=p.useCallback(()=>{clearTimeout(A),a||c(setTimeout(()=>{s(!0),i.user.get(t,q.Format.VIEW).then(C=>u(C.result)).catch(C=>{n&&n(C.errorMsg)})},1e3))},[i,t,A,a,n]);p.useEffect(()=>{d&&i.user.getFields(d.id,"popover").then(C=>g(C.result)).catch(C=>{n&&n(C.errorMsg)})},[d,i,n]);const w=p.useCallback(()=>{clearTimeout(A),a&&c(setTimeout(()=>{s(!1),u(void 0),g(void 0)},200))},[A,a]),b=p.useCallback(C=>{const{name:E,value:B}=C;if(typeof B=="object")return E==="businessNetworkingUserToCompanySrc"&&Object.values(B).forEach(S=>{h.some(D=>D.ref===S.id)||v(S.id).then(D=>{m([...h,{ref:S.id,display:l.jsx(et,{href:D._url,children:D.title})}])})}),null;switch(E){case"mail":return l.jsx(et,{href:`mailto:${B}`,children:B});case"dateOfBirth":return o.formatDate(B,{year:"2-digit",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"});case"phoneNumber":case"mobileNumber":return l.jsx(et,{href:`${B.startsWith("sip:")?"":"tel:"}${B}`,children:B});default:return B}},[v,h,o]);return l.jsxs(uPe,{onMouseEnter:x,onMouseLeave:w,children:[e,d&&f&&l.jsx(fPe,{open:a,children:l.jsxs(gPe,{children:[l.jsx(hPe,{children:l.jsx(et,{href:d._url,children:l.jsxs(de,{size:"s",weight:"bold",children:[l.jsx(Yn,{length:35,label:d.title}),l.jsx(Xy,{user:d,isUserActive:d.active===1})]})})}),l.jsxs(pPe,{children:[l.jsxs(yPe,{children:[f.map(C=>b(C)).filter(C=>!!C).map((C,E)=>l.jsx(zL,{children:l.jsx(de,{variant:"span",size:"s",children:C})},E)),h.map((C,E)=>l.jsx(zL,{children:l.jsx(de,{variant:"span",size:"s",children:C.display})},E))]}),l.jsx(mPe,{children:l.jsx(vPe,{src:"/imagecache/160x160/"+d.uri})})]})]})})]})},xPe=y.div`
5663
+ `,zD=({children:e,uri:t,fetchBusinessNetworking:r,onError:n})=>{const i=At(),o=N.useIntl(),[a,s]=p.useState(!1),[A,c]=p.useState(),[d,u]=p.useState(),[f,g]=p.useState(),[h,m]=p.useState([]),v=p.useMemo(()=>r??(async C=>(await i.businessNetworking.getInfos(C)).result),[r,i]),x=p.useCallback(()=>{clearTimeout(A),a||c(setTimeout(()=>{s(!0),i.user.get(t,q.Format.VIEW).then(C=>u(C.result)).catch(C=>{n&&n(C.errorMsg)})},1e3))},[i,t,A,a,n]);p.useEffect(()=>{d&&i.user.getFields(d.id,"popover").then(C=>g(C.result)).catch(C=>{n&&n(C.errorMsg)})},[d,i,n]);const w=p.useCallback(()=>{clearTimeout(A),a&&c(setTimeout(()=>{s(!1),u(void 0),g(void 0)},200))},[A,a]),b=p.useCallback(C=>{const{name:E,value:B}=C;if(typeof B=="object")return E==="businessNetworkingUserToCompanySrc"&&Object.values(B).forEach(S=>{h.some(D=>D.ref===S.id)||v(S.id).then(D=>{m([...h,{ref:S.id,display:l.jsx(et,{href:D._url,children:D.title})}])})}),null;switch(E){case"mail":return l.jsx(et,{href:`mailto:${B}`,children:B});case"dateOfBirth":return o.formatDate(B,{year:"2-digit",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"});case"phoneNumber":case"mobileNumber":return l.jsx(et,{href:`${B.startsWith("sip:")?"":"tel:"}${B}`,children:B});default:return B}},[v,h,o]);return l.jsxs(uPe,{onMouseEnter:x,onMouseLeave:w,children:[e,d&&f&&l.jsx(fPe,{open:a,children:l.jsxs(gPe,{children:[l.jsx(hPe,{children:l.jsx(et,{href:d._url,children:l.jsxs(de,{variant:"span",size:"s",weight:"bold",children:[l.jsx(Yn,{length:35,label:d.title}),l.jsx(Xy,{user:d,isUserActive:d.active===1})]})})}),l.jsxs(pPe,{children:[l.jsxs(yPe,{children:[f.map(C=>b(C)).filter(C=>!!C).map((C,E)=>l.jsx(zL,{children:l.jsx(de,{variant:"span",size:"s",children:C})},E)),h.map((C,E)=>l.jsx(zL,{children:l.jsx(de,{variant:"span",size:"s",children:C.display})},E))]}),l.jsx(mPe,{children:l.jsx(vPe,{src:"/imagecache/160x160/"+d.uri})})]})]})})]})},xPe=y.div`
5664
5664
  margin: 8px 0 16px 0;
5665
5665
  `,bPe=y.div`
5666
5666
  width: 100%;
@@ -35373,8 +35373,8 @@ const hk = (e) => `linear-gradient(
35373
35373
  t(), o.reset();
35374
35374
  }, [o, t]), s = N(() => {
35375
35375
  const c = o.watch("file");
35376
- tinymce.activeEditor.execCommand("CreateLink", !0, `/downloadFile.php?id=${c[0].result.id}`), tinymce.activeEditor.windowManager.close(), t();
35377
- }, [o, t]);
35376
+ tinymce.activeEditor.execCommand("CreateLink", !0, `/downloadFile.php?id=${c[0].result.id}`), tinymce.activeEditor.windowManager.close(), a();
35377
+ }, [o, a]);
35378
35378
  let A = [
35379
35379
  {
35380
35380
  children: /* @__PURE__ */ l.jsx(Ee, { id: "GLOBAL_Cancel" }),
@@ -35417,8 +35417,8 @@ const hk = (e) => `linear-gradient(
35417
35417
  t(), o.reset();
35418
35418
  }, [o, t]), s = N(() => {
35419
35419
  const c = o.watch("image");
35420
- tinymce.activeEditor.insertContent(`<img src='/media/${c.id}.png' />`), tinymce.activeEditor.windowManager.close(), t();
35421
- }, [o, t]);
35420
+ tinymce.activeEditor.insertContent(`<img src='/media/${c.id}.png' />`), tinymce.activeEditor.windowManager.close(), a();
35421
+ }, [o, a]);
35422
35422
  let A = [
35423
35423
  {
35424
35424
  children: /* @__PURE__ */ l.jsx(Ee, { id: "GLOBAL_Cancel" }),
@@ -35471,8 +35471,8 @@ const hk = (e) => `linear-gradient(
35471
35471
  const c = o.watch("videos")[0].result;
35472
35472
  tinymce.activeEditor.insertContent(
35473
35473
  `<iframe title="${n.formatMessage({ id: "GLOBAL_Video_Player" })} : ${c.title}" src='/embed/${c.id}.mp4' width="480px" height="270px"></iframe>`
35474
- ), tinymce.activeEditor.windowManager.close(), t();
35475
- }, [n, o, t]);
35474
+ ), tinymce.activeEditor.windowManager.close(), a();
35475
+ }, [n, o, a]);
35476
35476
  let A = [
35477
35477
  {
35478
35478
  children: /* @__PURE__ */ l.jsx(Ee, { id: "GLOBAL_Cancel" }),
@@ -50865,7 +50865,7 @@ const eTe = v(ND)`
50865
50865
  return /* @__PURE__ */ l.jsxs(_Te, { onMouseEnter: y, onMouseLeave: b, children: [
50866
50866
  e,
50867
50867
  d && f && /* @__PURE__ */ l.jsx(KTe, { open: a, children: /* @__PURE__ */ l.jsxs(qTe, { children: [
50868
- /* @__PURE__ */ l.jsx(JTe, { children: /* @__PURE__ */ l.jsx(dt, { href: d._url, children: /* @__PURE__ */ l.jsxs(he, { size: "s", weight: "bold", children: [
50868
+ /* @__PURE__ */ l.jsx(JTe, { children: /* @__PURE__ */ l.jsx(dt, { href: d._url, children: /* @__PURE__ */ l.jsxs(he, { variant: "span", size: "s", weight: "bold", children: [
50869
50869
  /* @__PURE__ */ l.jsx(Di, { length: 35, label: d.title }),
50870
50870
  /* @__PURE__ */ l.jsx(HD, { user: d, isUserActive: d.active === 1 })
50871
50871
  ] }) }) }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.3.137",
3
+ "version": "1.3.138",
4
4
  "description": "",
5
5
  "main": "dist/jamespot-react-components.cjs",
6
6
  "module": "dist/jamespot-react-components.js",
@@ -60,8 +60,8 @@
60
60
  "eslint-plugin-storybook": "10.3.6",
61
61
  "globals": "^16.5.0",
62
62
  "html2canvas": "^1.4.1",
63
- "jamespot-front-business": "^1.3.137",
64
- "jamespot-user-api": "^1.3.137",
63
+ "jamespot-front-business": "^1.3.138",
64
+ "jamespot-user-api": "^1.3.138",
65
65
  "jsdom": "^26.1.0",
66
66
  "knip": "^5.88.1",
67
67
  "lint-staged": "^16.4.0",