@mirantes-micro/foundation-design-system 1.2.275 → 1.2.276

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3161,7 +3161,7 @@ mutation CreateParticipant($input: CreateParticipantInput!) {
3161
3161
  id
3162
3162
  }
3163
3163
  }
3164
- `;async function Lz(e,t,o){try{let{optimisticUpdateType:r,page:n,community:a,signal:s,...i}=o.createPostInput;return (await(await fetch(e,{method:"POST",signal:s,headers:{"Content-Type":"application/json","x-access-token":t},body:JSON.stringify({query:Dz,variables:{createPostInput:{...i,pageId:o?.createPostInput?.page?.id,communityId:o?.createPostInput?.community?.id}}})})).json()).data}catch(r){return r instanceof DOMException&&r.name==="AbortError",null}}function Fz(){let{queryClient:e,feedApi:t,user:o,page:r}=w(),{mutate:n,isPending:a}=re({mutationFn:s=>Lz(t??"",o?.accessToken??"",s),onMutate:async s=>{let i=s.createPostInput,l=Ez(i.optimisticUpdateType,o?.id,s);await e?.cancelQueries({queryKey:l});let d=e?.getQueryData(l),c=i.images?.map((u,f)=>({id:`t-img-${f}`,url:u.url}))||[],m=i.videos?.map((u,f)=>({id:`t-vid-${f}`,url:u.url}))||[],p={id:`temp-${Math.random().toString(36).substr(2,9)}`,slug:`temp-slug-${Date.now()}`,content:i.content||"",postType:i.postType||"NORMAL",createdAt:new Date().toISOString(),expiresAt:dateFns.addHours(new Date,48).toISOString(),isOptimistic:true,images:c,videos:m,attachment:i.attachment||null,mentions:i.mentions||[],reactions:[],stats:{reactionCount:0,commentCount:0,shareCount:0}};return i.entityType==="PAGE"?(p.page={id:r?.id??i?.pageId??"",name:r?.name??i?.page?.name,sector:r?.sector??i?.page?.sector,slug:r?.slug??i?.page?.slug,logo:r?.logo??i?.page?.avatar},p.user=null):i.entityType==="COMMUNITY"?(p.community={id:i?.community?.id,name:i?.community?.name,slug:i?.community?.slug,avatar:i?.community?.avatar},p.user=null):(p.user={id:o?.id,name:o?.name,avatar:o?.avatar,slug:o?.slug,headline:o?.headline},p.page=null,p.community=null),Tz(e,l,p),{previousPosts:d,queryKey:l}},onSuccess:(s,i,l)=>{l?.queryKey&&s&&e?.setQueryData(l.queryKey,d=>{if(!d)return d;let c=d.pages?.map(m=>({...m,posts:m.posts?.map(p=>p.isOptimistic?s:p)}));return c?{...d,pages:c}:d});},onError:(s,i,l)=>{l?.queryKey&&e?.setQueryData(l.queryKey,l.previousPosts);},onSettled:(s,i,l,d)=>{d?.queryKey&&e?.invalidateQueries({queryKey:d.queryKey});}});return {createPost:n,isCreatingAPost:a}}function Bz(){let e=oa(),t=K.useRef(null),o=K.useRef(false),r=K.useRef(true),{uploadAssetsBulk:n}=Ls(),{createPost:a}=Fz(),s=K.useCallback(async()=>{if(o.current)return;let{pendingData:l,pendingFiles:d,ownerData:c,status:m,abortController:p}=e;if(!l||m==="success"||m==="error"||m==="cancelled"||p)return;o.current=true;let u=new AbortController;t.current=u,e.setAbortController(u);try{let f=[],g=[],h=null,b=(d||[]).filter(C=>C.type.startsWith("image/")).map(C=>({url:URL.createObjectURL(C)})),v=(d||[]).filter(C=>C.type.startsWith("video/")).map(C=>({url:URL.createObjectURL(C)})),y=(d||[]).find(C=>C.type==="application/pdf"||C.name.endsWith(".pdf"));if(d&&d.length>0){if(e.updateStatus("uploading",10),u.signal.aborted)throw new Error("AbortError");if(e.updateStatus("uploading",30),await new Promise((C,P)=>{n({files:d,owner_type:c.type==="user"?"user":"organization",owner_id:c.id,is_public:!0,signal:u.signal},{onSuccess:I=>{if(u.signal.aborted){P(new Error("AbortError"));return}I?.results.forEach((N,M)=>{if(N.status==="success"&&N.data.url){let A=d[M];A.type==="application/pdf"?h=N.data.url:A.type.startsWith("image/")?f.push(N.data.url):g.push(N.data.url);}}),C(!0);},onError:I=>P(I)});}),u.signal.aborted)throw new Error("AbortError");e.updateStatus("uploading",80);}if(u.signal.aborted)throw new Error("AbortError");e.updateStatus("publishing",85);let x={...l,expiresAt:dateFns.addHours(new Date,48).toISOString(),images:f.length>0?f.map(C=>({url:C})):b,videos:g.length>0?g.map(C=>({url:C})):v,attachment:h?{url:h,type:"pdf",title:y?.name||"Document"}:y?{url:URL.createObjectURL(y),type:"pdf",title:y.name}:null};a({createPostInput:x},{onSuccess:()=>{if(!r.current||u.signal.aborted)return;e.updateStatus("success",100);let{onSuccessCallback:C}=e;C&&C(),Sf(),setTimeout(()=>{r.current&&(e.reset(),o.current=!1,t.current=null);},5e3);},onError:()=>{!r.current||u.signal.aborted||(e.setError("Failed to create post."),o.current=!1,t.current=null,e.setAbortController(null));}});}catch(f){if(!r.current)return;f.name==="AbortError"||f?.message==="AbortError"||f.name==="CanceledError"?e.setCancelled():e.setError("Asset upload failed."),o.current=false,t.current=null,e.setAbortController(null);}},[e,n,a]),i=K.useCallback(()=>{t.current&&(t.current.abort(),t.current=null),o.current=false,e.setAbortController(null),e.setCancelled();},[e]);return K.useEffect(()=>{let{pendingData:l,status:d,abortController:c}=e;l&&(d==="uploading"||d==="publishing")&&!c&&!o.current&&s();},[e.pendingData,e.status,e.abortController,s]),K.useEffect(()=>(r.current=true,()=>{r.current=false,t.current&&t.current.abort();}),[]),{handlePublish:s,onCancel:i}}function Hz(){let{handlePublish:e,onCancel:t}=Bz();return K__namespace.default.createElement("div",{className:"w-full mt-6"},K__namespace.default.createElement(kz,{onRetry:e,onCancel:t}))}function Vz(e,t){let{isOpen:o,closeModal:r,openModal:n}=$2(),{openModal:a,isOpen:s,closeModal:i}=Du(),{page:l,user:d}=w(),[c,m]=K.useState(e),[p,u]=K.useState(null),[f,g]=K.useState(false),[h,b]=K.useState(false),[v,y]=K.useState([]),[x,C]=K.useState("media"),P=K.useMemo(()=>({community:{avatar:t?.logo,headline:t?.sector,id:t?.id,name:t?.name},page:{id:l?.id,name:l?.name,sector:l?.sector,avatar:l?.logo,slug:l?.slug},user:{avatar:d?.avatar,headline:d?.headline,id:d?.id,name:d?.name,slug:d?.slug}}),[l,d,t]);K.useEffect(()=>{if(!p){let L=P?.[c];u({id:L?.id??"",name:L?.name??"",avatar:L?.avatar??"",headline:L?.headline??L?.sector??"",type:c,slug:L?.slug});}},[P,c,p]);let I=K.useCallback(L=>{if(!d?.isActive){b(true);return}L.length>0&&(y(L),C("media"),g(true));},[d?.isActive]),{getRootProps:N,getInputProps:M,isDragActive:A,open:O}=reactDropzone.useDropzone({onDrop:I,accept:{"image/*":[],"video/*":[],"application/pdf":[".pdf"]},noClick:true,noKeyboard:true});return K.useEffect(()=>{if(!f){let L=setTimeout(()=>y([]),100);return ()=>clearTimeout(L)}},[f]),{currentType:c,setCurrentType:m,selectedProfile:p,setSelectedProfile:u,isPostModalOpen:f,setIsPostModalOpen:g,isActivateModalOpen:h,setIsActivateModalOpen:b,handleTriggerAction:L=>{if(!d?.isActive){b(true);return}switch(L!=="media"&&y([]),L){case "articles":n();break;case "saved-items":a();break;case "media":C("media"),O();break;default:C(L??"media"),g(true);break}},handleProfileChange:L=>{m(L?.type),u(L),L?.needsActivation&&(g(false),setTimeout(()=>{b(true);},100));},isSavedItemsModalOpened:s,isArticlesModalOpened:o,closeArticlesModal:r,closeSavedItemsModal:i,openArticlesModal:n,openSavedItemsModal:a,droppedFiles:v,getRootProps:N,getInputProps:M,isDragActive:A,activeAction:x}}function gce(e){return K__namespace.createElement("svg",{width:20,height:20,fill:"none",...e},K__namespace.createElement("path",{d:"M6.75 7.75h.01m5.99 0h.01m-5.51 5a3.5 3.5 0 005 0m6.5-3a9 9 0 11-18 0 9 9 0 0118 0z",stroke:"#687588",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))}var hce=K__namespace.memo(gce),_z=hce;function yce({community:e,type:t="user",restrictProfileSelection:o=false,optimisticUpdateType:r="feed",onClickAction:n}){let{locale:a,user:s}=w(),[i,l]=K.useState(false),[d,c]=K.useState(null),{currentType:m,setCurrentType:p,selectedProfile:u,setSelectedProfile:f,isPostModalOpen:g,setIsPostModalOpen:h,isActivateModalOpen:b,setIsActivateModalOpen:v,handleTriggerAction:y,droppedFiles:x,getRootProps:C,getInputProps:P,isDragActive:I,activeAction:N}=Vz(t,e),M=K.useMemo(()=>({id:u?.id??"",name:u?.name??"",type:m,avatar:u?.avatar??"",slug:u?.slug??"",sector:u?.sector??"",headline:u?.headline??""}),[u,m]),A=we(a??"en","start-a-post-title"),O=E=>{if(!s?.isActive){v(true);return}p(E?.type),f(E),l(false),h(true);},T=()=>{s?.isActive?h(true):v(true);};return K.useEffect(()=>{g||(async()=>{let L=await Pf();L?.content?c(L.content):L?.files&&L.files.length>0?c(`${A} ${we(a,"draft-label")}`):c(null);})();},[g,A,a]),K__namespace.default.createElement(K__namespace.default.Fragment,null,K__namespace.default.createElement("div",{...C(),className:["w-full md:min-w-[42rem] flex flex-col gap-[1rem] p-[1rem] md:p-[1.5rem] bg-white rounded-[1rem] h-auto","transition-colors duration-150",I?"ring-2 ring-primary ring-offset-2 bg-blue-50":""].filter(Boolean).join(" ")},K__namespace.default.createElement("input",{...P()}),K__namespace.default.createElement("div",{className:"flex items-start gap-[1rem] w-full"},K__namespace.default.createElement(Dm,{mode:"short",restrictProfileSelection:o,profile:{avatar:u?.avatar??"",headline:u?.headline??"",id:u?.id??"",name:u?.name??"",sector:u?.sector??"",slug:u?.slug??"",type:m},onPickAProfile:O}),K__namespace.default.createElement("button",{onClick:T,className:"flex-1 hover:bg-gray-100 flex items-center justify-between cursor-pointer rounded-[0.5rem] border border-[#E4EBF1] bg-card px-4 py-2.5 text-sm text-muted-foreground hover:bg-secondary transition-colors text-left overflow-hidden"},K__namespace.default.createElement("div",{className:"flex items-center gap-[0.5rem] overflow-hidden"},K__namespace.default.createElement(ff,null),K__namespace.default.createElement("span",{className:"font-medium text-body-md text-[#687588] truncate"},d||A)),K__namespace.default.createElement(_z,null))),K__namespace.default.createElement("div",{className:"w-full"},K__namespace.default.createElement(gf,{onlyIcon:false,onClick:E=>{if(E==="clips"||E==="saved-items"||E==="articles")return n(E);y(E);}}))),K__namespace.default.createElement(Hz,null),K__namespace.default.createElement(Iz,{isPostTriggerModalOpened:g&&!i,onClose:()=>h(false),selectedProfile:u,currentType:m,onProfileChange:O,onToggleSwitcher:l,activeAction:N,initialFiles:x,entity:M,optimisticUpdateType:r,onClickAction:n}),i&&K__namespace.default.createElement(Dm,{renderOnlyModal:true,mode:"full",profile:{id:u?.id,type:m},onPickAProfile:O,onToggleSwitcher:l}),K__namespace.default.createElement(ho,{isOpen:b,onClose:()=>v(false)}))}var Cce=Tg.gql`
3164
+ `;async function Lz(e,t,o){try{let{optimisticUpdateType:r,page:n,community:a,signal:s,...i}=o.createPostInput;return (await(await fetch(e,{method:"POST",signal:s,headers:{"Content-Type":"application/json","x-access-token":t},body:JSON.stringify({query:Dz,variables:{createPostInput:{...i,pageId:o?.createPostInput?.page?.id,communityId:o?.createPostInput?.community?.id}}})})).json()).data}catch(r){return r instanceof DOMException&&r.name==="AbortError",null}}function Fz(){let{queryClient:e,feedApi:t,user:o,page:r}=w(),{mutate:n,isPending:a}=re({mutationFn:s=>Lz(t??"",o?.accessToken??"",s),onMutate:async s=>{let i=s.createPostInput;if(i.scheduledAt)return {isScheduled:true};let l=Ez(i.optimisticUpdateType,o?.id,s);await e?.cancelQueries({queryKey:l});let d=e?.getQueryData(l),c=i.images?.map((u,f)=>({id:`t-img-${f}`,url:u.url}))||[],m=i.videos?.map((u,f)=>({id:`t-vid-${f}`,url:u.url}))||[],p={id:`temp-${Math.random().toString(36).substr(2,9)}`,slug:`temp-slug-${Date.now()}`,content:i.content||"",postType:i.postType||"NORMAL",createdAt:new Date().toISOString(),expiresAt:dateFns.addHours(new Date,48).toISOString(),isOptimistic:true,images:c,videos:m,attachment:i.attachment||null,mentions:i.mentions||[],reactions:[],stats:{reactionCount:0,commentCount:0,shareCount:0}};return i.entityType==="PAGE"?(p.page={id:r?.id??i?.pageId??"",name:r?.name??i?.page?.name,sector:r?.sector??i?.page?.sector,slug:r?.slug??i?.page?.slug,logo:r?.logo??i?.page?.avatar},p.user=null):i.entityType==="COMMUNITY"?(p.community={id:i?.community?.id,name:i?.community?.name,slug:i?.community?.slug,avatar:i?.community?.avatar},p.user=null):(p.user={id:o?.id,name:o?.name,avatar:o?.avatar,slug:o?.slug,headline:o?.headline},p.page=null,p.community=null),Tz(e,l,p),{previousPosts:d,queryKey:l,isScheduled:false}},onSuccess:(s,i,l)=>{if(i.createPostInput.scheduledAt){e?.invalidateQueries({queryKey:["scheduled-posts"]});return}l?.queryKey&&s&&e?.setQueryData(l.queryKey,d=>{if(!d)return d;let c=d.pages?.map(m=>({...m,posts:m.posts?.map(p=>p.isOptimistic?s:p)}));return c?{...d,pages:c}:d});},onError:(s,i,l)=>{i.createPostInput.scheduledAt||l?.queryKey&&e?.setQueryData(l.queryKey,l.previousPosts);},onSettled:(s,i,l,d)=>{!l.createPostInput.scheduledAt&&d?.queryKey&&e?.invalidateQueries({queryKey:d.queryKey});}});return {createPost:n,isCreatingAPost:a}}function Bz(){let e=oa(),t=K.useRef(null),o=K.useRef(false),r=K.useRef(true),{uploadAssetsBulk:n}=Ls(),{createPost:a}=Fz(),s=K.useCallback(async()=>{if(o.current)return;let{pendingData:l,pendingFiles:d,ownerData:c,status:m,abortController:p}=e;if(!l||m==="success"||m==="error"||m==="cancelled"||p)return;o.current=true;let u=new AbortController;t.current=u,e.setAbortController(u);try{let f=[],g=[],h=null,b=(d||[]).filter(C=>C.type.startsWith("image/")).map(C=>({url:URL.createObjectURL(C)})),v=(d||[]).filter(C=>C.type.startsWith("video/")).map(C=>({url:URL.createObjectURL(C)})),y=(d||[]).find(C=>C.type==="application/pdf"||C.name.endsWith(".pdf"));if(d&&d.length>0){if(e.updateStatus("uploading",10),u.signal.aborted)throw new Error("AbortError");if(e.updateStatus("uploading",30),await new Promise((C,P)=>{n({files:d,owner_type:c.type==="user"?"user":"organization",owner_id:c.id,is_public:!0,signal:u.signal},{onSuccess:I=>{if(u.signal.aborted){P(new Error("AbortError"));return}I?.results.forEach((N,M)=>{if(N.status==="success"&&N.data.url){let A=d[M];A.type==="application/pdf"?h=N.data.url:A.type.startsWith("image/")?f.push(N.data.url):g.push(N.data.url);}}),C(!0);},onError:I=>P(I)});}),u.signal.aborted)throw new Error("AbortError");e.updateStatus("uploading",80);}if(u.signal.aborted)throw new Error("AbortError");e.updateStatus("publishing",85);let x={...l,expiresAt:dateFns.addHours(new Date,48).toISOString(),images:f.length>0?f.map(C=>({url:C})):b,videos:g.length>0?g.map(C=>({url:C})):v,attachment:h?{url:h,type:"pdf",title:y?.name||"Document"}:y?{url:URL.createObjectURL(y),type:"pdf",title:y.name}:null};a({createPostInput:x},{onSuccess:()=>{if(Sf(),!r.current||u.signal.aborted)return;e.updateStatus("success",100);let{onSuccessCallback:C}=e;C&&C(),setTimeout(()=>{r.current&&(e.reset(),o.current=!1,t.current=null);},5e3);},onError:()=>{!r.current||u.signal.aborted||(e.setError("Failed to cr eate post."),o.current=!1,t.current=null,e.setAbortController(null));}});}catch(f){if(!r.current)return;f.name==="AbortError"||f?.message==="AbortError"||f.name==="CanceledError"?e.setCancelled():e.setError("Asset upload failed."),o.current=false,t.current=null,e.setAbortController(null);}},[e,n,a]),i=K.useCallback(()=>{t.current&&(t.current.abort(),t.current=null),o.current=false,e.setAbortController(null),e.setCancelled();},[e]);return K.useEffect(()=>{let{pendingData:l,status:d,abortController:c}=e;l&&(d==="uploading"||d==="publishing")&&!c&&!o.current&&s();},[e.pendingData,e.status,e.abortController,s]),K.useEffect(()=>(r.current=true,()=>{r.current=false,t.current&&t.current.abort();}),[]),{handlePublish:s,onCancel:i}}function Hz(){let{handlePublish:e,onCancel:t}=Bz();return K__namespace.default.createElement("div",{className:"w-full mt-6"},K__namespace.default.createElement(kz,{onRetry:e,onCancel:t}))}function Vz(e,t){let{isOpen:o,closeModal:r,openModal:n}=$2(),{openModal:a,isOpen:s,closeModal:i}=Du(),{page:l,user:d}=w(),[c,m]=K.useState(e),[p,u]=K.useState(null),[f,g]=K.useState(false),[h,b]=K.useState(false),[v,y]=K.useState([]),[x,C]=K.useState("media"),P=K.useMemo(()=>({community:{avatar:t?.logo,headline:t?.sector,id:t?.id,name:t?.name},page:{id:l?.id,name:l?.name,sector:l?.sector,avatar:l?.logo,slug:l?.slug},user:{avatar:d?.avatar,headline:d?.headline,id:d?.id,name:d?.name,slug:d?.slug}}),[l,d,t]);K.useEffect(()=>{if(!p){let L=P?.[c];u({id:L?.id??"",name:L?.name??"",avatar:L?.avatar??"",headline:L?.headline??L?.sector??"",type:c,slug:L?.slug});}},[P,c,p]);let I=K.useCallback(L=>{if(!d?.isActive){b(true);return}L.length>0&&(y(L),C("media"),g(true));},[d?.isActive]),{getRootProps:N,getInputProps:M,isDragActive:A,open:O}=reactDropzone.useDropzone({onDrop:I,accept:{"image/*":[],"video/*":[],"application/pdf":[".pdf"]},noClick:true,noKeyboard:true});return K.useEffect(()=>{if(!f){let L=setTimeout(()=>y([]),100);return ()=>clearTimeout(L)}},[f]),{currentType:c,setCurrentType:m,selectedProfile:p,setSelectedProfile:u,isPostModalOpen:f,setIsPostModalOpen:g,isActivateModalOpen:h,setIsActivateModalOpen:b,handleTriggerAction:L=>{if(!d?.isActive){b(true);return}switch(L!=="media"&&y([]),L){case "articles":n();break;case "saved-items":a();break;case "media":C("media"),O();break;default:C(L??"media"),g(true);break}},handleProfileChange:L=>{m(L?.type),u(L),L?.needsActivation&&(g(false),setTimeout(()=>{b(true);},100));},isSavedItemsModalOpened:s,isArticlesModalOpened:o,closeArticlesModal:r,closeSavedItemsModal:i,openArticlesModal:n,openSavedItemsModal:a,droppedFiles:v,getRootProps:N,getInputProps:M,isDragActive:A,activeAction:x}}function gce(e){return K__namespace.createElement("svg",{width:20,height:20,fill:"none",...e},K__namespace.createElement("path",{d:"M6.75 7.75h.01m5.99 0h.01m-5.51 5a3.5 3.5 0 005 0m6.5-3a9 9 0 11-18 0 9 9 0 0118 0z",stroke:"#687588",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))}var hce=K__namespace.memo(gce),_z=hce;function yce({community:e,type:t="user",restrictProfileSelection:o=false,optimisticUpdateType:r="feed",onClickAction:n}){let{locale:a,user:s}=w(),[i,l]=K.useState(false),[d,c]=K.useState(null),{currentType:m,setCurrentType:p,selectedProfile:u,setSelectedProfile:f,isPostModalOpen:g,setIsPostModalOpen:h,isActivateModalOpen:b,setIsActivateModalOpen:v,handleTriggerAction:y,droppedFiles:x,getRootProps:C,getInputProps:P,isDragActive:I,activeAction:N}=Vz(t,e),M=K.useMemo(()=>({id:u?.id??"",name:u?.name??"",type:m,avatar:u?.avatar??"",slug:u?.slug??"",sector:u?.sector??"",headline:u?.headline??""}),[u,m]),A=we(a??"en","start-a-post-title"),O=E=>{if(!s?.isActive){v(true);return}p(E?.type),f(E),l(false),h(true);},T=()=>{s?.isActive?h(true):v(true);};return K.useEffect(()=>{g||(async()=>{let L=await Pf();L?.content?c(L.content):L?.files&&L.files.length>0?c(`${A} ${we(a,"draft-label")}`):c(null);})();},[g,A,a]),K__namespace.default.createElement(K__namespace.default.Fragment,null,K__namespace.default.createElement("div",{...C(),className:["w-full md:min-w-[42rem] flex flex-col gap-[1rem] p-[1rem] md:p-[1.5rem] bg-white rounded-[1rem] h-auto","transition-colors duration-150",I?"ring-2 ring-primary ring-offset-2 bg-blue-50":""].filter(Boolean).join(" ")},K__namespace.default.createElement("input",{...P()}),K__namespace.default.createElement("div",{className:"flex items-start gap-[1rem] w-full"},K__namespace.default.createElement(Dm,{mode:"short",restrictProfileSelection:o,profile:{avatar:u?.avatar??"",headline:u?.headline??"",id:u?.id??"",name:u?.name??"",sector:u?.sector??"",slug:u?.slug??"",type:m},onPickAProfile:O}),K__namespace.default.createElement("button",{onClick:T,className:"flex-1 hover:bg-gray-100 flex items-center justify-between cursor-pointer rounded-[0.5rem] border border-[#E4EBF1] bg-card px-4 py-2.5 text-sm text-muted-foreground hover:bg-secondary transition-colors text-left overflow-hidden"},K__namespace.default.createElement("div",{className:"flex items-center gap-[0.5rem] overflow-hidden"},K__namespace.default.createElement(ff,null),K__namespace.default.createElement("span",{className:"font-medium text-body-md text-[#687588] truncate"},d||A)),K__namespace.default.createElement(_z,null))),K__namespace.default.createElement("div",{className:"w-full"},K__namespace.default.createElement(gf,{onlyIcon:false,onClick:E=>{if(E==="clips"||E==="saved-items"||E==="articles")return n(E);y(E);}}))),K__namespace.default.createElement(Hz,null),K__namespace.default.createElement(Iz,{isPostTriggerModalOpened:g&&!i,onClose:()=>h(false),selectedProfile:u,currentType:m,onProfileChange:O,onToggleSwitcher:l,activeAction:N,initialFiles:x,entity:M,optimisticUpdateType:r,onClickAction:n}),i&&K__namespace.default.createElement(Dm,{renderOnlyModal:true,mode:"full",profile:{id:u?.id,type:m},onPickAProfile:O,onToggleSwitcher:l}),K__namespace.default.createElement(ho,{isOpen:b,onClose:()=>v(false)}))}var Cce=Tg.gql`
3165
3165
  query ValidateRater($userId: String, $pageId: String, $communityId: String) {
3166
3166
  validateRating(userId: $userId, pageId: $pageId, communityId: $communityId)
3167
3167
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mirantes-micro/foundation-design-system",
3
3
  "description": "A scalable and customizable design system package featuring a collection of reusable React components, utility functions, and context providers. Built to enforce visual and functional consistency across applications, this package offers accessible, themeable UI elements, shared logic through utility helpers, and context-based providers for managing global state such as themes, modals, and user sessions.",
4
- "version": "1.2.275",
4
+ "version": "1.2.276",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "Mirantes Frontend team"