react-motion-gallery 2.0.37 → 2.0.39

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 (56) hide show
  1. package/README.md +161 -5
  2. package/dist/{GridSkeleton-B5wWBN9L.d.mts → GridSkeleton-Dpsi5tXc.d.mts} +1 -1
  3. package/dist/{MasonrySkeleton-D8aZRUiv.d.mts → MasonrySkeleton-Cs0x-4yL.d.mts} +1 -1
  4. package/dist/chunk-45TZO7MN.mjs +2 -0
  5. package/dist/chunk-4URHXPTV.mjs +4 -0
  6. package/dist/{chunk-7PF7OJT2.mjs → chunk-5HGFS3S2.mjs} +1 -1
  7. package/dist/{chunk-MFTASEWB.mjs → chunk-AHMXEVKY.mjs} +1 -1
  8. package/dist/chunk-AOQIL2HW.mjs +1 -0
  9. package/dist/chunk-AU4O4KU4.mjs +1 -0
  10. package/dist/chunk-CXH7XALE.mjs +1 -0
  11. package/dist/chunk-CXV4KHLX.mjs +3 -0
  12. package/dist/{chunk-J3UHEYNG.mjs → chunk-MJAHN7TG.mjs} +1 -1
  13. package/dist/chunk-QJ2YFMAT.mjs +2 -0
  14. package/dist/chunk-S356JN3V.mjs +4 -0
  15. package/dist/{chunk-3RVITFUD.mjs → chunk-YU2WS3GJ.mjs} +1 -1
  16. package/dist/core.d.mts +2 -1
  17. package/dist/entries.d.mts +8 -7
  18. package/dist/entries.mjs +1 -1
  19. package/dist/fullscreen-captions.d.mts +2 -1
  20. package/dist/fullscreen-controls.d.mts +2 -1
  21. package/dist/fullscreen-crossfade.d.mts +2 -1
  22. package/dist/fullscreen-lazy-load.d.mts +2 -1
  23. package/dist/fullscreen-slider.d.mts +2 -1
  24. package/dist/fullscreen-thumbnails.d.mts +2 -1
  25. package/dist/fullscreen-video.d.mts +2 -1
  26. package/dist/fullscreen-zoom-pan.d.mts +2 -1
  27. package/dist/fullscreen.d.mts +3 -2
  28. package/dist/grid.d.mts +2 -2
  29. package/dist/grid.mjs +1 -1
  30. package/dist/{index-QEgABhod.d.mts → index-C9XZ3Lr3.d.mts} +1 -1
  31. package/dist/index.d.mts +4 -3
  32. package/dist/index.mjs +1 -1
  33. package/dist/{layout-DoYnPD0I.d.mts → layout-BOy4geKv.d.mts} +1 -0
  34. package/dist/masonry.mjs +1 -1
  35. package/dist/metafile-esm.json +1 -1
  36. package/dist/{responsive-BnHorKhC.d.mts → responsive-Cwty6be5.d.mts} +3 -0
  37. package/dist/responsive.d.mts +2 -1
  38. package/dist/skeleton-base.d.mts +8 -5
  39. package/dist/skeleton-base.mjs +1 -1
  40. package/dist/skeleton-cache-provider.d.mts +7 -0
  41. package/dist/skeleton-cache-provider.mjs +1 -0
  42. package/dist/skeleton-cache.d.mts +70 -0
  43. package/dist/skeleton-cache.mjs +1 -0
  44. package/dist/skeleton-grid.d.mts +7 -5
  45. package/dist/skeleton-grid.mjs +1 -1
  46. package/dist/skeleton-masonry.d.mts +8 -6
  47. package/dist/skeleton-masonry.mjs +1 -1
  48. package/dist/skeleton-slider.d.mts +5 -2
  49. package/dist/skeleton-slider.mjs +7 -7
  50. package/package.json +9 -1
  51. package/dist/chunk-4BTS6IIA.mjs +0 -2
  52. package/dist/chunk-4ZOW533S.mjs +0 -1
  53. package/dist/chunk-63CVVCOL.mjs +0 -2
  54. package/dist/chunk-LSHR3FZM.mjs +0 -4
  55. package/dist/chunk-RGS2QTPJ.mjs +0 -3
  56. package/dist/chunk-X3W6JPNH.mjs +0 -4
@@ -0,0 +1,2 @@
1
+ import {a as a$3}from'./chunk-CXH7XALE.mjs';import {n,g,h as h$1,w,x,b as b$2,k,y,t,j,s}from'./chunk-45TZO7MN.mjs';import {b as b$1,c}from'./chunk-AU4O4KU4.mjs';import {f}from'./chunk-AOQIL2HW.mjs';import {b,a}from'./chunk-Z34PSRMG.mjs';import {a as a$2}from'./chunk-UUAWLGWO.mjs';import {a as a$1}from'./chunk-LVYED5ZM.mjs';import {d}from'./chunk-WMG2LTLR.mjs';import {a as a$5}from'./chunk-L2HRIINV.mjs';import {a as a$4}from'./chunk-HK2DPKES.mjs';import*as h from'react';import {jsx,jsxs}from'react/jsx-runtime';function zt(){let e=window.innerWidth||document.documentElement.clientWidth||0,t=window.innerHeight||document.documentElement.clientHeight||0;return {top:0,left:0,right:e,bottom:t,width:e,height:t}}function me(e,t){return e?e.endsWith("%")?t*parseFloat(e)/100:parseFloat(e)||0:0}function Gt(e,t){let n=e.trim().split(/\s+/).filter(Boolean),[r,i=r,o=r,a=i]=[n[0]??"0px",n[1],n[2],n[3]];return {top:me(r,t.height),right:me(i,t.width),bottom:me(o,t.height),left:me(a,t.width)}}function st(e,t,n){let r=e.getBoundingClientRect();if(r.width<=0||r.height<=0)return 0;let i=t instanceof Element?t.getBoundingClientRect():zt(),o=Gt(n,i),a={top:i.top-o.top,left:i.left-o.left,right:i.right+o.right,bottom:i.bottom+o.bottom},s=Math.max(0,Math.min(r.right,a.right)-Math.max(r.left,a.left)),p=Math.max(0,Math.min(r.bottom,a.bottom)-Math.max(r.top,a.top)),v=s*p,k=r.width*r.height;return k>0?v/k:0}function lt(e,t){return t<=0?e>0:e>=t}function Ut(e,t){if(Array.isArray(e)){let n=e[0];return typeof n=="number"?n:t}return typeof e=="number"?e:t}function ct(e,t){let n=t?.nearMargin??"700px 0px",r=t?.viewMargin??"0px 0px",i=Ut(t?.threshold,.01),o=0,a=t?.root??null,[s,p]=h.useState(()=>Array.from({length:e},()=>false)),[v,k]=h.useState(()=>Array.from({length:e},()=>false)),g=h.useRef(null),u=h.useRef(null),c=h.useRef(new Map),M=h.useRef([]),E=h.useCallback((y,l)=>{if(typeof window>"u"||!y)return;let m=st(y,a,n);lt(m,i)&&p(w=>{if(w[l])return w;let x=w.slice();return x[l]=true,x});let b=st(y,a,r);lt(b,o)&&k(w=>{if(w[l])return w;let x=w.slice();return x[l]=true,x});},[o,n,i,a,r]);h.useEffect(()=>{M.current=Array.from({length:e},()=>null),p(Array.from({length:e},()=>false)),k(Array.from({length:e},()=>false)),c.current.clear(),g.current?.disconnect(),u.current?.disconnect(),g.current=null,u.current=null;},[e]),h.useEffect(()=>{if(!(typeof window>"u")){if(g.current?.disconnect(),u.current?.disconnect(),typeof IntersectionObserver>"u"){for(let[y,l]of c.current.entries())E(y,l);return}g.current=new IntersectionObserver(y=>{p(l=>{let m=l,b=false;for(let w of y){let x=c.current.get(w.target);if(x==null||x<0||x>=e)continue;let S=!!w.isIntersecting;S!==l[x]&&(b||(m=l.slice(),b=true),m[x]=S);}return b?m:l});},{root:a,rootMargin:n,threshold:i}),u.current=new IntersectionObserver(y=>{k(l=>{let m=l,b=false;for(let w of y){let x=c.current.get(w.target);x==null||x<0||x>=e||w.isIntersecting&&!l[x]&&(b||(m=l.slice(),b=true),m[x]=true);}return b?m:l});},{root:a,rootMargin:r,threshold:o});for(let[y]of c.current)g.current.observe(y),u.current.observe(y);for(let[y,l]of c.current.entries())E(y,l);return ()=>{g.current?.disconnect(),u.current?.disconnect(),g.current=null,u.current=null;}}},[o,e,n,i,a,E,r]);let W=h.useCallback(y=>l=>{let m=M.current[y]??null;m&&m!==l&&(c.current.delete(m),g.current?.unobserve(m),u.current?.unobserve(m)),M.current[y]=l,l&&(c.current.set(l,y),E(l,y),g.current?.observe(l),u.current?.observe(l));},[E]);return {nearView:s,everInView:v,setEntryRef:W}}function Xt(e){let t=e??[],n=`${t.length}|`;for(let r=0;r<t.length;r++){let i=t[r];n+=(i?.key??i?.id??`i${r}`)+"|";}return n}function Yt(e,t){return new Promise(n=>{let r=new Image;r.decoding="async",r.src=e;let i=()=>n();if(t?.aborted)return i();if(t?.addEventListener("abort",i,{once:true}),typeof r.decode=="function"){r.decode().catch(()=>{}).finally(i);return}if(r.complete)return i();r.onload=i,r.onerror=i;})}function dt(e,t,n,r){let i=r?.timeoutMs??8e3,o=h.useMemo(()=>Xt(t),[t]),a=h.useMemo(()=>(t??[]).map(c=>(c.media??[]).filter(M=>M?.kind==="image"&&typeof M?.src=="string").map(M=>M.src)),[t]),[s,p]=h.useState([]),v=h.useRef([]),k=h.useRef(new Map),g=h.useRef("");return h.useEffect(()=>{if(!e)return;let u=t?.length??0;if(g.current!==o){g.current=o,p(Array.from({length:u},(c,M)=>(a[M]?.length??0)===0)),v.current=Array.from({length:u},()=>false);for(let[,c]of k.current)c.abort();k.current.clear();}},[e,o,t,a]),h.useEffect(()=>{if(!e)return;let u=t?.length??0;if(u)for(let c=0;c<u;c++){let M=!!n[c],E=s[c]??false,W=v.current[c]??false;if(!M||E||W)continue;v.current[c]=true;let y=a[c]??[];if(!y.length){p(m=>{if(m[c])return m;let b=m.slice();return b[c]=true,b});continue}let l=new AbortController;k.current.set(c,l),(async()=>{for(let m of y){if(l.signal.aborted)return;await Promise.race([Yt(m,l.signal),new Promise(b=>{let w=window.setTimeout(b,i);l.signal.addEventListener("abort",()=>{window.clearTimeout(w),b();},{once:true});})]);}l.signal.aborted||p(m=>{if(!m||c<0||c>=m.length||m[c])return m;let b=m.slice();return b[c]=true,b});})();}},[e,t,a,n,s,i]),h.useEffect(()=>()=>{for(let[,u]of k.current)u.abort();k.current.clear();},[]),{decodedReady:s,entriesKey:o}}function Qt(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function ut(e){return h.useMemo(()=>{let t=e.loading??{},n=typeof t.nearMargin=="string"?t.nearMargin:"700px 0px",r=typeof t.viewMargin=="string"?t.viewMargin:"0px 0px",i=typeof t.threshold=="number"&&!Number.isNaN(t.threshold)?t.threshold:.01,o=t.waitForDecode!==false,a=typeof t.decodeTimeoutMs=="number"&&t.decodeTimeoutMs>0?t.decodeTimeoutMs:8e3,s=Qt(t.minHeight)??"260px";return {enabled:t.enabled,force:t.force,skeleton:t.skeleton,minHeight:s,nearMargin:n,viewMargin:r,threshold:i,waitForDecode:o,decodeTimeoutMs:a,skeletonWrap:t.skeletonWrap}},[e.loading])}function mt(e){return h.useMemo(()=>{let t=e.intro??{};return {renderIntro:t.renderIntro,staggerMs:t.staggerMs??200,durationMs:t.durationMs??700,easing:t.easing??"cubic-bezier(.2,.7,.2,1)",staggerLimit:Math.max(0,(t.staggerLimit??6)|0)}},[e.intro])}var R={entryRow:"t",entrySkeletonWrap:"e",entrySkeletonBody:"W",entryInner:"c",entrySkelTile:"n",entryList:"ee",entrySkelRoot:"re",entrySkelGroup:"ie",entrySkelStack:"ae",entrySkelRow:"te",entrySkelCol:"ne",entrySkelText:"oe",entrySkelTextLine:"se",entrySkelRect:"le",entrySkelSquare:"de",entrySkelCircle:"me"};function Zt(){return {variant:"solid",minHeight:260}}function L(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function Le(e){if(!e)return {};let t=L(e.marginTop),n=L(e.marginRight),r=L(e.marginBottom),i=L(e.marginLeft),o={};return t!=null&&(o.marginTop=t),n!=null&&(o.marginRight=n),r!=null&&(o.marginBottom=r),i!=null&&(o.marginLeft=i),o}function ht(e,t){let n$1={};return e?.aspectRatio!=null&&(n$1.aspectRatio=e.aspectRatio),e?.width!=null&&(n$1.width=L(e.width)),e?.maxWidth!=null&&(n$1.maxWidth=L(e.maxWidth)),e?.height!=null&&(n$1.height=L(e.height)),e?.maxHeight!=null&&(n$1.maxHeight=L(e.maxHeight)),e?.aspectRatio!=null&&e?.height==null&&(n$1.height="auto"),e?.aspectRatio!=null&&e?.width==null&&e?.height==null&&(n$1.width="100%"),e?.backgroundColor&&(n$1["--rmg-skel-bg"]=e.backgroundColor),e?.borderRadius!=null&&(n$1["--rmg-skel-radius"]=L(e.borderRadius)),e?.overflow!=null&&(n$1.overflow=e.overflow),e?.alignSelf&&(n$1.alignSelf=e.alignSelf),Object.assign(n$1,n(t)),n$1}function ft(e,t){let n={};t!=null&&(n.height=`${t}px`);let r=L(e?.width),i=L(e?.maxWidth);return r!=null&&(n.width=r),i!=null&&(n.maxWidth=i),e?.alignSelf&&(n.alignSelf=e.alignSelf),n}function gt(e){let t={};return e&&(e.display!=null&&(t.display=e.display),e.gap!=null&&(t.gap=L(e.gap)),e.padding!=null&&(t.padding=L(e.padding)),e.align&&(t.alignItems=e.align),e.justify&&(t.justifyContent=e.justify),e.wrap&&(t.flexWrap="wrap"),e.width!=null&&(t.width=L(e.width)),e.maxWidth!=null&&(t.maxWidth=L(e.maxWidth)),e.overflow!=null&&(t.overflow=e.overflow)),t}function yt(e){return e.replace(/"/g,'\\"')}function St(e,t,n,r=a$4){switch(e.kind){case "rect":case "square":case "circle":{let i=x({style:e.style,breakpointMap:r});if(!i.length)return e;let o=t();return n.push({nodeId:o,rules:i}),{...e,__rmgNodeId:o}}case "text":{let i=[...k({barHeight:e.barHeight,barWidth:e.barWidth,lineHeight:e.lineHeight,lines:e.lines,lastBarWidth:e.lastBarWidth,responsiveBy:e.responsiveBy,breakpointMap:r}).map(a=>({...a,raw:true})),...y({style:e.style,breakpointMap:r})];if(!i.length)return e;let o=t();return n.push({nodeId:o,rules:i}),{...e,__rmgNodeId:o}}case "media":{let i=[...w({style:e.style,breakpointMap:r}),...x({style:e.tile?.style,breakpointMap:r,selector:`${b$2} [data-rmg-skel-media-tile="true"]`})];if(!i.length)return e;let o=t();return n.push({nodeId:o,rules:i}),{...e,__rmgNodeId:o}}case "stack":case "row":case "col":{let i=w({style:e.style,breakpointMap:r}),o=i.length?t():void 0;o&&i.length&&n.push({nodeId:o,rules:i});let a=e.children.map(s=>St(s,t,n,r));return {...e,...o?{__rmgNodeId:o}:null,children:a}}default:return e}}function en(e,t){if(!t.length)return "";let n=`[data-rmg-entry-skel-scope="${yt(e)}"]`,r=[];for(let i of t){let o=`${n} [data-rmg-skel-node="${yt(i.nodeId)}"]`;for(let a of i.rules){let s=a.raw?a.css.split("__NODE_SEL__").join(o):`${o}{${a.css}}`;a.minWidth<=0?r.push(s):a.query==="container"?r.push(`@container (min-width:${a.minWidth}px){${s}}`):r.push(`@media (min-width:${a.minWidth}px){${s}}`);}}return r.join(`
2
+ `)}function tn(e){if(e.barWidths?.length)return e.barWidths;if(e.lineWidthsPx?.length)return e.lineWidthsPx.map(t=>`${Math.max(0,t)}px`)}function nn(e){return Math.max(1,Math.min(64,Math.trunc(e)))}function Rt(e,t,n=a$4){if(!t)return e;if(e.kind==="text"){let r=e.textId?t[e.textId]:void 0;if(!r)return e;let i=nn(r.lines),o=tn(r),a=typeof r.barHeight=="number"&&Number.isFinite(r.barHeight)?r.barHeight:typeof e.barHeight=="number"?e.barHeight:g(e.barHeight,0,0,n),s=typeof r.lineHeight=="number"&&Number.isFinite(r.lineHeight)?r.lineHeight:typeof e.lineHeight=="number"?e.lineHeight:h$1(e.lineHeight,1,0,n);return {...e,barHeight:a,lineHeight:s,lines:i,...o?.length?{barWidth:o}:null,lastBarWidth:o?.[Math.min(i,o.length)-1]??e.lastBarWidth,responsiveBy:void 0}}return e.kind==="media"?e:e.kind==="stack"||e.kind==="row"||e.kind==="col"?{...e,children:e.children.map(r=>Rt(r,t,n))}:e}function Ie(e,t=new Set){return e?e.kind==="text"?(e.textId&&t.add(e.textId),t):(e.kind==="media"||(e.kind==="stack"||e.kind==="row"||e.kind==="col")&&e.children.forEach(n=>Ie(n,t)),t):t}function pt(e){let{kind:t,style:n,shimmer:r,breakpointMap:i,mediaTile:o}=e,a=t==="circle"?R.entrySkelCircle:t==="square"?R.entrySkelSquare:R.entrySkelRect,s$1=s(n,i),p=e.__rmgNodeId;return jsx("div",{"data-rmg-skel-node":p,"data-rmg-skel-media-tile":o?"true":void 0,className:[R.entrySkelTile,a].join(" "),style:{...ht(s$1,r),...Le(s$1)}})}function rn({node:e,breakpointMap:t}){let n=j({barHeight:e.barHeight,barWidth:e.barWidth,lineHeight:e.lineHeight,lines:e.lines,lastBarWidth:e.lastBarWidth,responsiveBy:e.responsiveBy,breakpointMap:t}),r=s(e.style,t),i=n.responsiveBy==="container"&&n.usesResponsiveBarCss,o=n.states.some(({state:g})=>g.lineCount!==n.baseState.lineCount||g.metrics.totalHeight!==n.baseState.metrics.totalHeight||g.metrics.barHeight!==n.baseState.metrics.barHeight||g.metrics.paddingBlock!==n.baseState.metrics.paddingBlock||g.metrics.rowGap!==n.baseState.metrics.rowGap),a=n.states.some(({state:g})=>g.lineCount!==n.baseState.lineCount||g.barWidths.length!==n.baseState.barWidths.length||g.barWidths.some((u,c)=>u!==n.baseState.barWidths[c])),s$1=e.__rmgNodeId,p=ft(i?void 0:r,o?void 0:n.metrics.totalHeight),v={height:n.metrics.barHeight,backgroundColor:r?.backgroundColor,borderRadius:r?.borderRadius},k=jsx("div",{"data-rmg-skel-node":s$1,"data-rmg-skel-text":"true","data-rmg-skel-text-id":e.textId,className:R.entrySkelText,style:{...p,...i?null:Le(r),...o?null:{paddingBlock:`${n.metrics.paddingBlock}px`,rowGap:`${n.metrics.rowGap}px`}},children:Array.from({length:n.maxLines}).map((g,u)=>jsx("div",{"data-rmg-skel-text-line":"true",className:[R.entrySkelTile,R.entrySkelTextLine].join(" "),style:{...ht(v,e.shimmer),...a?null:{display:u>=n.baseLines?"none":void 0,width:"100%",maxWidth:n.baseState.barWidths[u]??"100%"}}},u))});return i?jsx("div",{"data-rmg-skel-text-container":"true",style:{...ft(r),...Le(r),containerType:"inline-size"},children:k}):k}function kt({node:e,breakpointMap:t$1}){switch(e.kind){case "rect":case "square":case "circle":return jsx(pt,{...e,breakpointMap:t$1});case "media":{let n=Math.max(0,e.count|0),r=e.direction??"row",i=e.tile?.shape??"rect",o=e.__rmgNodeId,a=gt(t(e.style,t$1));return jsx("div",{"data-rmg-skel-node":o,className:[R.entrySkelGroup,r==="row"?R.entrySkelRow:R.entrySkelCol].join(" "),style:a,children:Array.from({length:n}).map((s,p)=>jsx(pt,{kind:i,style:e.tile?.style,shimmer:e.tile?.shimmer,breakpointMap:t$1,mediaTile:true},p))})}case "stack":case "row":case "col":{let n=e.kind==="row"?R.entrySkelRow:e.kind==="col"?R.entrySkelCol:R.entrySkelStack,r=e.__rmgNodeId,i=gt(t(e.style,t$1));return jsx("div",{"data-rmg-skel-node":r,className:[R.entrySkelGroup,n].join(" "),style:i,children:e.children.map((o,a)=>jsx(kt,{node:o,breakpointMap:t$1},a))})}case "text":return jsx(rn,{node:e,breakpointMap:t$1});default:{return null}}}function bt({spec:e,className:t,breakpoints:n$1,cacheSnapshot:r}){let i=e??Zt(),o=h.useMemo(()=>({...a$4,...n$1??{}}),[n$1]),a={...i.minHeight!=null?{minHeight:L(i.minHeight)}:null,...n(i.defaults?.shimmer)};if(i.defaults?.backgroundColor&&(a["--rmg-skel-bg"]=i.defaults.backgroundColor),i.defaults?.radius!=null&&(a["--rmg-skel-radius"]=L(i.defaults.radius)),i.variant==="solid"&&!i.layout)return jsx("div",{className:[R.entrySkelTile,t].filter(Boolean).join(" "),style:a});let s=h.useMemo(()=>({kind:"stack",style:{gap:12},children:[{kind:"rect",style:{height:18,width:"60%"}},{kind:"rect",style:{height:14,width:"90%"}},{kind:"media",count:2,direction:"row",style:{gap:10,wrap:true}}]}),[]),p=h.useMemo(()=>{let u=i.layout??s;return r?.text?Rt(u,r.text,o):u},[r,s,o,i.layout]),v=h.useMemo(()=>a$2("skel_",{breakpoints:o,className:t,layout:p,minHeight:i.minHeight,variant:i.variant}),[t,o,p,i.minHeight,i.variant]),{layout:k,responsiveCss:g}=h.useMemo(()=>{let u=0,c=()=>`n${++u}`,M=[],E=St(p,c,M,o),W=en(v,M);return {layout:E,responsiveCss:W}},[p,v,o]);return jsxs("div",{"data-rmg-entry-skel-scope":v,className:[R.entrySkelRoot,t].filter(Boolean).join(" "),style:a,children:[g?jsx("style",{dangerouslySetInnerHTML:{__html:g}}):null,jsx(kt,{node:k,breakpointMap:o})]})}var an=220,sn=220;function ln(e){let t=b({loadingActive:e.loadingActive&&e.shouldMountContent,loadingForced:e.loadingForced,contentReady:e.contentReady}),n=a(e.loadingForced),r=e.loadingActive&&n.enabled;return {compareMode:t.compareMode,revealContent:t.compareMode?true:r?false:e.defaultReveal,loadingLayerOpacity:t.loadingLayerOpacity}}function cn(e){if(!e)return;let t={...e};return t.boxShadow!=null&&(t["--rmg-entry-skel-wrap-shadow"]=t.boxShadow,delete t.boxShadow),t.borderRadius!=null&&(t["--rmg-entry-skel-wrap-shadow-radius"]=t.borderRadius),t}function wt(e,t){return String(e.key??e.id??t)}function vt(e){return e?e.split("\0"):[]}function fe(e,t){if(e.size===0)return e;let n=new Set(vt(t)),r=false,i=new Set;return e.forEach(o=>{n.has(o)?i.add(o):r=true;}),r?i:e}function dn(e,t){let n=false,r=new Set(e);return t.forEach(i=>{r.has(i)||(r.add(i),n=true);}),n?r:e}function xt({enabled:e,entries:t,fsEnabled:n,openFullscreenAt:r,entryFlatIndexRef:i,nodeFromMedia:o,renderMediaContainer:a$4,breakpoints:s,registerExpandableImage:p,entrySliderRefs:v}){let g=h.useRef(null),u=h.useRef(false),c$1=f=>{f.button!=null&&f.button!==0||(u.current=false,g.current={x:f.clientX,y:f.clientY});},M=f=>{let d=g.current;if(!d)return;let C=f.clientX-d.x,O=f.clientY-d.y;!u.current&&C*C+O*O>=36&&(u.current=true);},E=()=>{g.current=null,window.setTimeout(()=>{u.current=false;},0);},W=()=>u.current;function y(f,d){let C=t?.loading?.skeleton;if(typeof C=="function"){let O=C({entry:f,entryIndex:d});if(O&&typeof O=="object")return O}else if(C&&typeof C=="object")return C;return {variant:"solid",minHeight:260}}let l=t.items??[],m=l.length,b=h.useMemo(()=>l.map((f,d)=>wt(f,d)),[l]),w=b.join("\0"),[x,S]=h.useState(()=>new Set),[B,V]=h.useState(()=>new Set);h.useEffect(()=>{S(f=>fe(f,w)),V(f=>fe(f,w));},[w]);let X=h.useRef(0),Y=h.useRef([]);Y.current.length!==m&&(Y.current=Array.from({length:m},()=>-1),X.current=0);let D=ut(t),F=mt(t),oe=t?.loading,Et=oe?.enabled??true,ae=a(oe?.force),se=a$1(),Ct=b$1(),Q=c(oe?.cache,Ct),J=h.useMemo(()=>l.map((f,d)=>y(f,d)),[l,t.loading?.skeleton]),He=h.useMemo(()=>Array.from(J.reduce((f,d)=>(Ie(d.layout,f),f),new Set)),[J]),ge=h.useMemo(()=>a$2("esk_",{breakpoints:s,entryKeySignature:w,skeletons:J}),[s,w,J]),Lt=f(Q?.snapshot,{key:Q?.key,scopeId:ge,kind:"entries",routeKey:Q?.routeKey,ttlMs:Q?.ttlMs,textIds:He}),ye=h.useRef(null);a$3({cache:Q,kind:"entries",scopeId:ge,textIds:He,skeletonRootRef:ye,shellRef:ye});let A=e&&Et,pe=A&&!se&&(F.durationMs>0||F.staggerMs>0),{nearView:Ne,everInView:It,setEntryRef:Tt}=ct(m,{root:null,nearMargin:D.nearMargin,viewMargin:D.viewMargin,threshold:D.threshold}),Ht=A&&(!ae.enabled||ae.showContent),{decodedReady:Nt}=dt(Ht,l,Ne,{timeoutMs:D.decodeTimeoutMs}),he=Math.max(0,(se?0:an)-sn),[Bt,Se]=h.useState(()=>!(A&&(ae.enabled||m===0))),Ot=h.useCallback(f=>{S(d=>{if(d.has(f))return d;let C=new Set(d);return C.add(f),C});},[]),Z=false,Be=false,Oe=[],Wt=m?l.map((f,d)=>{let C=Ne[d]??false,O=It[d]??false,ee=Nt[d]??false,j=O||C,At=j&&(D.waitForDecode?ee:true),Pt=A?O&&(D.waitForDecode?ee:true):j,$=ln({loadingActive:A,loadingForced:oe?.force,shouldMountContent:j,contentReady:At,defaultReveal:Pt}),te=b[d]??wt(f,d),ce=$.revealContent,de=ce&&(!pe||$.compareMode||B.has(te));$.compareMode&&(Be=true),ce&&(Z=true);let Ft=de&&!$.compareMode&&x.has(te);ce&&!$.compareMode&&Oe.push(te);let Pe=null;if(j){let ne=f.media??[],Kt=i.current,qt=ne.map(($e,re)=>{let Ve=Kt?.[d]?.[re]??0,Re=typeof t.render?.media=="function"?t.render.media({entry:f,entryIndex:d,media:$e,mediaIndex:re}):o($e),ke=P=>{p?.(Ve,P);},Ke=P=>{P.preventDefault(),n&&r(Ve,P.currentTarget);};if(h.isValidElement(Re)){let P=Re,qe=P.props?.onClick,ie=P.ref,ze=_=>{typeof qe=="function"&&qe(_),!_.defaultPrevented&&Ke(_);};if(typeof P.type=="string"){let _=K=>{typeof ie=="function"?ie(K):ie&&typeof ie=="object"&&(ie.current=K),ke(K);};return h.cloneElement(P,{key:`${d}-${re}`,onClick:K=>{if(W()){K.preventDefault(),K.stopPropagation();return}ze(K);},onPointerDownCapture:c$1,onPointerMoveCapture:M,onPointerUpCapture:E,ref:_})}return jsx("span",{ref:ke,style:{display:"contents"},onPointerDownCapture:c$1,onPointerMoveCapture:M,onPointerUpCapture:E,children:h.cloneElement(P,{onClick:_=>{if(W()){_.preventDefault(),_.stopPropagation();return}ze(_);}})},`${d}-${re}`)}return jsx("div",{className:R.entryMediaButton,onClick:Ke,ref:ke,children:Re},`${d}-${re}`)}),je=a$4({entryIndex:d,entryInView:de,mediaNodes:qt,entrySliderRefs:v});Pe=typeof t.render?.card=="function"?t.render.card({entry:f,entryIndex:d,media:je}):je;}let Fe=F.staggerLimit,_t=Fe>0&&d<Fe?d:0,Dt=typeof t.render?.skeleton=="function"?t.render.skeleton({entry:f,entryIndex:d}):null,jt=J[d]??y(f,d),_e=D.skeletonWrap,$t=cn(_e?.style);ce&&Y.current[d]===-1&&(Y.current[d]=X.current++);let De=Y.current[d],Vt=De>=0?De*F.staggerMs:0;return jsxs("div",{ref:Tt(d),"data-rmg-entry-ready":de?"1":"0","data-rmg-entry-compare":$.compareMode?"1":"0","data-rmg-entry-mounted":j?"1":"0",className:[R.entryRow,t.entryRow?.className].filter(Boolean).join(" "),"data-rmg-entry-owner":d,style:{"--rmg-entry-min-height":D.minHeight,"--rmg-entry-intro-index":_t,"--rmg-entry-intro-delay":`${Vt}ms`,...t.entryRow?.style},children:[A?jsx("div",{className:[R.entrySkeletonWrap,_e?.className].filter(Boolean).join(" "),style:{"--rmg-entry-skeleton-opacity":$.loadingLayerOpacity,...$t??{}},"aria-hidden":"true","data-rmg-entry-skeleton":true,"data-rmg-entry-shimmer":Ft?"off":void 0,onTransitionEnd:ne=>{ne.currentTarget!==ne.target||ne.propertyName!=="opacity"||!de||$.compareMode||Ot(te);},children:jsx("div",{className:R.entrySkeletonBody,children:Dt??jsx(bt,{spec:jt,breakpoints:s,cacheSnapshot:Lt})})}):null,j?jsx("div",{className:R.entryInner,children:Pe}):null]},te)}):null,z=Oe.join("\0");h.useEffect(()=>{S(f=>fe(f,z)),V(f=>fe(f,z));},[z]),h.useEffect(()=>{if(!z)return;let f=vt(z),d=false,C=()=>{d||V(j=>dn(j,f));};if(!pe){C();return}if(typeof window>"u"||typeof window.requestAnimationFrame!="function"){C();return}let O=0,ee=0;return O=window.requestAnimationFrame(()=>{ee=window.requestAnimationFrame(C);}),()=>{d=true,window.cancelAnimationFrame(O),window.cancelAnimationFrame(ee);}},[z,pe]);let le=A&&(m===0||ae.enabled&&!Be&&!Z);h.useEffect(()=>{if(le){Se(false);return}if(!A||se||he===0){Se(A?Z:true);return}let f=window.setTimeout(()=>{Se(Z);},he);return ()=>{window.clearTimeout(f);}},[Z,he,A,se,le]);let We={ref:ye,"data-rmg-entry-skeleton-cache-scope":ge,className:[R.entryList,t.entryList?.className].filter(Boolean).join(" "),style:{"--rmg-entry-intro-stagger":`${F.staggerMs}ms`,"--rmg-entry-intro-duration":`${F.durationMs}ms`,"--rmg-entry-intro-easing":F.easing,...t.entryList?.style},"aria-busy":le?true:void 0},Ae=jsx("div",{...We,children:Wt});return F.renderIntro?F.renderIntro({active:!le&&Bt,containerProps:We},Ae):Ae}var Mt={mediaLayout:"slider"};var mn=e=>Array.isArray(e)&&e.every(t=>typeof t=="string"),fn=e=>!e||!e.length?[]:mn(e)?a$5(e):e,gn=e=>e?e.kind==="image":false;function yn(e){return e.kind==="image"?jsx("img",{src:e.src,alt:e.alt??""}):e.kind==="video"?jsx("video",{src:e.src,controls:true,preload:"metadata"}):null}function pn(e){let t=[],n=[],r=[],i=[];return e?.length?(e.forEach((o,a)=>{r[a]=[],(o.media??[]).forEach((s,p)=>{let v=t.length;t.push(s),n.push({entryIndex:a,mediaIndex:p}),i.push({entryIndex:a}),r[a][p]=v;});}),{flattenedMedia:t,flattenedMap:n,entryFlatIndex:r,owners:i}):{flattenedMedia:[],flattenedMap:[],entryFlatIndex:null,owners:[]}}function Yn(e){let{enabled:t=true,entries:n,fullscreen:r,renderMediaContainer:i,nodeFromMedia:o=yn}=e,a=h.useMemo(()=>({...n,mediaLayout:n?.mediaLayout??Mt.mediaLayout}),[n]),s=d(),p=h.useMemo(()=>s?.effectiveBreakpoints??{...a$4},[s?.effectiveBreakpoints]),v=e.entryFlatIndexRef??h.useRef(null),k=e.entryMapRef??h.useRef(null),g=e.fsOwnersRef??h.useRef([]),u=e.entrySliderRefs??h.useRef([]),c=s?.expandableImageRefs??h.useRef([]),M=s?.registerExpandableImage??h.useCallback((S,B)=>{if(!B){c.current[S]=null;return}if(B.tagName==="IMG"){c.current[S]=B;return}let V=B.querySelector("img");c.current[S]=V;},[]),{flattenedMedia:E,flattenedMap:W,entryFlatIndex:y,owners:l}=h.useMemo(()=>pn(a.items),[a.items]);h.useEffect(()=>{v.current=y,g.current=l,k.current=W;},[y,l,W,v,g,k]);let m=h.useMemo(()=>{let S=fn(r?.items);return S.length?S:E},[r?.items,E]);h.useEffect(()=>{s&&s.registerFullscreenAdapter("entries",{closestSelector:a.mediaLayout==="slider"?".rmg__slide":".rmg__grid-item",getOwnerSliderHandle:S=>{let B=k.current?.[S];return B?u.current?.[B.entryIndex]??null:null},getEntryContext:()=>({entryMapRef:k,entryMediaLayout:a.mediaLayout,entriesObject:a,entrySliderRefs:u,expandableImageRefs:s?.expandableImageRefs??c})});},[s,a]);let b=S=>S?S instanceof HTMLImageElement?S:S.querySelector("img"):null,w=h.useCallback((S,B)=>{if(!s?.requestFullscreenOpen)return;let V=m[S]??E[S];if(!gn(V))return;let X=b(B??null)??c.current[S]??null;X&&s.requestFullscreenOpen({source:"entries",index:S,image:X,event:void 0});},[s,c,m,E]),x=(r?.enabled??true)&&m.length>0;return jsx(xt,{enabled:!!t,entries:a,fsEnabled:!!x,openFullscreenAt:w,entryFlatIndexRef:v,nodeFromMedia:o,registerExpandableImage:M,renderMediaContainer:i,entrySliderRefs:u,breakpoints:p})}export{ct as a,dt as b,ut as c,mt as d,ln as e,xt as f,yn as g,pn as h,Yn as i};
@@ -0,0 +1,4 @@
1
+ import {a as a$2,b as b$2}from'./chunk-CXH7XALE.mjs';import {A,n,l,z,B,C,p,t,m,a as a$3,D,v,o}from'./chunk-45TZO7MN.mjs';import {b as b$1,c}from'./chunk-AU4O4KU4.mjs';import {f}from'./chunk-AOQIL2HW.mjs';import {f as f$1,c as c$1,d,e}from'./chunk-Y7NUGXTR.mjs';import {a as a$1}from'./chunk-UUAWLGWO.mjs';import {a,i}from'./chunk-HK2DPKES.mjs';import*as b from'react';import {jsx,jsxs}from'react/jsx-runtime';var M={gridSkeletonOverlay:"Re",gridSkeletonGrid:"Se",gridSkeletonItem:"K",gridSkeletonItemInner:"Te"};function j(e){return !!e&&typeof e=="object"&&!Array.isArray(e)}function Se(e){return !!e&&typeof e=="object"&&!Array.isArray(e)}function he(e,t){let o=t[e];if(typeof o=="number"&&Number.isFinite(o))return o;let i=parseFloat(e);return Number.isNaN(i)?0:i}function Re(e){let{templateColumns:t,breakpointMap:o}=e;if(!Se(t))return [];let i=Object.entries(t).map(([l,s])=>({minWidth:he(l,o),template:typeof s=="string"?s.trim():""})).filter(l=>l.template.length>0).sort((l,s)=>l.minWidth-s.minWidth);return i.length===0?[]:(i[0].minWidth>0?i.unshift({minWidth:0,template:i[0].template}):i[0].minWidth<0&&(i[0]={...i[0],minWidth:0}),i)}function Ge(e){let{scopeId:t,columns:o,templateColumns:i$1,gap:l,breakpointMap:s,fallbackGap:k}=e,S=`${`[data-rmg-grid-skel-scope="${v(t)}"]`} .${M.gridSkeletonGrid}`,a=[],p=(n,r)=>{if(!r.length)return;let h=`${S}{${r.join("")}}`;if(n<=0){a.push(h);return}a.push(`@media (min-width:${n}px){${h}}`);},m=Re({templateColumns:i$1,breakpointMap:s});if(m.length>0)for(let n of m)p(n.minWidth,[`grid-template-columns:${n.template};`]);else if(j(o)){let n=i(o,1,s);for(let r of n)p(r.minWidth,[`grid-template-columns:repeat(${Math.max(1,r.count|0)}, minmax(0, 1fr));`]);}if(j(l)){let n=i(l,k,s);for(let r of n)p(r.minWidth,[`--rmg-grid-gap:${Math.max(0,r.count|0)}px;`]);}return a.join(`
2
+ `)}function Ce(e$1){let{scopeId:t,items:o,breakpointMap:i,allowSpan:l}=e$1;if(!l)return "";let s=[],k=`[data-rmg-grid-skel-scope="${v(t)}"]`;for(let d$1 of o){let S=d$1.span;if(!c$1(S))continue;let a=`${k} [data-rmg-grid-item-key="${v(d$1.id)}"]`,p=d(S,i);for(let m of p){let n=e(m.span);if(!n)continue;let r=`${a}{grid-column:${n};}`;if(m.minWidth<=0){s.push(r);continue}s.push(`@media (min-width:${m.minWidth}px){${r}}`);}}return s.join(`
3
+ `)}function be(e){let t={...e.gridStyle||{}};return e.minColumnWidth!=null&&t["--rmg-grid-min"]==null&&(t["--rmg-grid-min"]=typeof e.minColumnWidth=="number"?`${e.minColumnWidth}px`:e.minColumnWidth),!j(e.gap)&&e.gap!=null&&t["--rmg-grid-gap"]==null&&(t["--rmg-grid-gap"]=typeof e.gap=="number"?`${Math.max(0,e.gap|0)}px`:String(e.gap)),!Se(e.templateColumns)&&typeof e.templateColumns=="string"&&e.templateColumns.trim().length>0&&t.gridTemplateColumns==null?t.gridTemplateColumns=e.templateColumns.trim():e.templateColumns==null&&!j(e.columns)&&typeof e.columns=="number"&&Number.isFinite(e.columns)&&t.gridTemplateColumns==null&&(t.gridTemplateColumns=`repeat(${Math.max(1,e.columns|0)}, minmax(0, 1fr))`),t}function ue(){return {layout:{kind:"grid",item:{kind:"rect",style:{width:"100%",aspectRatio:1,borderRadius:12}},itemWrapStyle:void 0},radius:12}}function ve(e,t){if(!(!e&&!t))return {...e||{},...t||{}}}function Ne(e,t){let o=e.slots?.[t];return {item:o?.item??e.item,itemWrapStyle:ve(e.itemWrapStyle,o?.itemWrapStyle)}}function xe(e){if(!e)return {outerStyle:void 0,innerStyle:void 0};let t=o(e),o$1={};return t.boxShadow!=null&&(o$1["--rmg-grid-skel-wrap-shadow"]=t.boxShadow,delete t.boxShadow),t.borderRadius!=null&&(o$1["--rmg-grid-skel-wrap-shadow-radius"]=t.borderRadius),{outerStyle:Object.keys(o$1).length?o$1:void 0,innerStyle:t}}function ce({count:e,gridStyle:t$1,spec:o,breakpoints:i,columns:l$1,templateColumns:s,minColumnWidth:k,gap:d,items:S,allowItemSpans:a$2,disableShimmer:p$1,cacheSnapshot:m$1}){let n$1=o??ue(),r=b.useMemo(()=>({...a,...i??{}}),[i]),h=b.useMemo(()=>{let c=n$1.layout??ue().layout;return m$1?.text?z(c,m$1.text,"grid",r):c},[m$1,r,n$1.layout]),v=b.useMemo(()=>a$1("gskel_",{count:e,breakpoints:r,gridStyle:t$1,spec:o,columns:l$1,templateColumns:s,minColumnWidth:k,gap:d,items:S,allowItemSpans:a$2,disableShimmer:p$1}),[e,r,t$1,o,l$1,s,k,d,S,a$2,p$1]),W={...be({gridStyle:t$1,columns:l$1,templateColumns:s,minColumnWidth:k,gap:d}),...p$1?null:n(n$1.shimmer,{enabledVarName:"--rmg-skel-card-shimmer-enabled"})};n$1.backgroundColor&&(W["--rmg-skel-bg"]=n$1.backgroundColor),n$1.radius!=null&&(W["--rmg-skel-radius"]=l(n$1.radius));let{layout:F,responsiveCss:u,itemLayouts:E}=b.useMemo(()=>{let c=0,R=()=>`n${++c}`,N=[],x=B(h,R,N,"grid",r),G=C({scopeAttr:"data-rmg-grid-skel-scope",scopeId:v,rules:N}),C$1=h,y=Array.from({length:Math.max(0,typeof C$1.count=="number"?C$1.count|0:e|0)},(Ie,D)=>({id:`slot-${D}`,span:C$1.slots?.[D]?.span})),L=S??y,z=Ge({scopeId:v,columns:l$1,templateColumns:s,gap:d,breakpointMap:r,fallbackGap:typeof d=="number"&&Number.isFinite(d)?d:8}),P=Ce({scopeId:v,items:L,breakpointMap:r,allowSpan:!!a$2}),fe=[G,z,P].filter(Boolean).join(`
4
+ `);return {layout:x,responsiveCss:fe,itemLayouts:L}},[h,v,r,l$1,s,d,S,a$2]),g=F,I=g.__rmgNodeId,f=p(t(g.style,r)),V=g.count!=null?Math.max(0,g.count|0):Math.max(0,e|0);return jsxs("div",{"data-rmg-grid-skel-scope":v,className:[M.gridSkeletonOverlay,n$1.className].filter(Boolean).join(" "),children:[u?jsx("style",{dangerouslySetInnerHTML:{__html:u}}):null,jsx("div",{"data-rmg-skel-node":I,className:M.gridSkeletonGrid,style:{...W,...f||{},display:"grid"},children:Array.from({length:V}).map((c,R)=>{let N=E[R],{item:x,itemWrapStyle:G}=Ne(g,R),{outerStyle:C,innerStyle:y}=xe(G);return jsx("div",{"data-rmg-grid-item-key":N?.id,className:M.gridSkeletonItem,style:{...f$1({span:N?.span,allowSpan:!!a$2})||{},...G?m(G):null,...C||null},children:jsx("div",{className:[M.gridSkeletonItemInner,p$1?null:a$3.skelCardShimmer].filter(Boolean).join(" "),style:y,children:jsx(D,{node:x,disableShimmer:true,breakpointMap:r})})},`rmg-grid-skel-${R}`)})})]})}function ke(e){return !!e&&typeof e=="object"&&!("kind"in e)&&"layout"in e&&e.layout?.kind==="grid"}function ye(e){return !!e&&typeof e=="object"&&"kind"in e&&e.kind==="grid"}function We(e){if(ke(e))return e;let{className:t,backgroundColor:o,radius:i,shimmer:l,gridStyle:s,columns:k,templateColumns:d,minColumnWidth:S,gap:a,items:p,allowItemSpans:m,...n}=e;return {className:t,backgroundColor:o,radius:i,shimmer:l,layout:n}}function qe({layout:e,children:t,breakpoints:o,className:i,style:l$1,shellClassName:s,shellStyle:k,contentClassName:d,contentStyle:S,backgroundColor:a$3,radius:p,shimmer:m,disableShimmer:n$1,ariaLabel:r,ready:h,enabled:v,force:W,timing:F,grid:u,cache:E}){let g=b.useMemo(()=>({...a,...o??{}}),[o]),I=b.useMemo(()=>a$1("skel_",{layout:e,breakpoints:g,backgroundColor:a$3,radius:p,shimmer:m,disableShimmer:n$1,grid:u}),[e,g,a$3,p,m,n$1,u]),f$1=b.useMemo(()=>ye(e)||ke(e)?We(e):null,[e]),V=b$1(),c$1=c(E,V),R=b.useMemo(()=>f$1?.layout?Array.from(A(f$1.layout,"grid")):[],[f$1]),N=f(c$1?.snapshot,{key:c$1?.key,scopeId:I,kind:"grid",routeKey:c$1?.routeKey,ttlMs:c$1?.ttlMs,textIds:R}),x=b.useRef(null),G=b.useRef(null);a$2({cache:c$1,kind:"grid",scopeId:I,textIds:R,skeletonRootRef:x,shellRef:G});let C=f$1?.layout?.kind==="grid"?f$1.layout:null,y=ye(e)?e:null,L=f$1?{count:u?.count??(typeof C?.count=="number"?Math.max(0,C.count|0):1),gridStyle:u?.style??y?.gridStyle,columns:u?.columns??y?.columns,templateColumns:u?.templateColumns??y?.templateColumns,minColumnWidth:u?.minColumnWidth??y?.minColumnWidth,gap:u?.gap??y?.gap,items:u?.items??y?.items,allowItemSpans:u?.allowItemSpans??y?.allowItemSpans,disableShimmer:n$1}:null,z={...l$1,...a$3?{"--rmg-skel-bg":a$3}:null,...p!=null?{"--rmg-skel-radius":l(p)}:null,...n$1?null:n(m)},P=f$1&&L?jsx("div",{"data-rmg-skeleton-scope":I,ref:x,className:i,style:z,"aria-hidden":r?void 0:true,"aria-label":r,role:r?"status":void 0,"aria-live":r?"polite":void 0,children:jsx(ce,{...L,spec:f$1,breakpoints:g,cacheSnapshot:N})}):null;return P?jsx(b$2,{skeletonNode:P,ready:h,enabled:v,force:W,timing:F,shellClassName:s,shellStyle:k,contentClassName:d,contentStyle:S,contentOwnsWrapperLayout:t!==void 0,shellRef:G,children:t}):null}export{qe as a};
@@ -1 +1 @@
1
- import {a as a$2}from'./chunk-MFTASEWB.mjs';import {b,a as a$3}from'./chunk-LSHR3FZM.mjs';import {a as a$1}from'./chunk-D3T6HIS2.mjs';import {a as a$4}from'./chunk-AKY343WN.mjs';import {d}from'./chunk-WMG2LTLR.mjs';import {a}from'./chunk-HK2DPKES.mjs';import*as e from'react';import {jsx}from'react/jsx-runtime';var u={placement:"balanced",fullscreenTrigger:"media"};function Y(t){return t instanceof HTMLImageElement}function G(t){if(!(t instanceof HTMLElement))return null;let i=t.closest("img");return Y(i)?i:null}function U(t){let{cells:i,fsEnabled:y,fullscreenTrigger:p,openFullscreenAt:g,registerExpandableImage:C,itemBaseClass:a,itemBaseStyleClass:L,itemClassName:o,itemWrapClassName:k,itemWrapStyle:v,slideStoreBag:N}=t;return i.map((c,l)=>{let E=c.node,d={"--rmg-intro-index":l},S=[a,L,o||"",k||"",c.layoutMeta?.className||""].filter(Boolean).join(" "),I={...v||{},...c.layoutMeta?.style||{},...d},f=jsx(a$4,{value:{normIdx:l,isClone:false,storeBag:N},children:E}),b=r=>{if(r.defaultPrevented||!y)return;let M=p==="media"?G(r.target):r.currentTarget;M&&g(l,M);},O=r=>{r.key!=="Enter"&&r.key!==" "||(r.preventDefault(),y&&p==="item"&&g(l,r.currentTarget));};return {id:c.id,span:c.layoutMeta?.span,node:jsx("div",{"data-rmg-idx":l,className:S,style:I,onClick:b,onKeyDown:O,ref:r=>{C(l,r);},role:y&&p==="item"?"button":void 0,tabIndex:y&&p==="item"?0:void 0,children:f})}})}function x(t){return t instanceof HTMLImageElement}function h(t){if(!t)return null;if(x(t))return t;let i=t.querySelector("img");return x(i)?i:null}function V(t){return {renderIntro:t?.renderIntro,staggerMs:t?.staggerMs??160,durationMs:t?.durationMs??600,easing:t?.easing??"cubic-bezier(.2,.7,.2,1)"}}var $=e.forwardRef(function(i,y){let{children:p,breakpoints:g,...C}=i,a$3=d(),L=e.useMemo(()=>a$3?.effectiveBreakpoints??{...a,...g||{}},[a$3?.effectiveBreakpoints,g]),o=e.useMemo(()=>{let n=C??{};return {...u,...n,placement:n?.placement??u.placement,classNames:{...u.classNames,...n?.classNames??{}},layout:{...u.layout,...n?.layout??{}},transitions:{...u.transitions,...n?.transitions??{}}}},[C]),k=e.useRef(0),v=e.useCallback(()=>`rmg-${++k.current}`,[]),N=e.useMemo(()=>{let n=e.Children.toArray(p),s=[];for(let B of n){let m=b(B);m.node!=null&&s.push({id:v(),node:m.node,layoutMeta:m.layoutMeta});}return s},[]),[c]=e.useState(N),l=a$3?.cellsState??void 0,E=l&&l.length>0?l:c,d$1=a$3?.expandableImageRefs??e.useRef([]),S=a$3?.registerExpandableImage??e.useCallback((n,s)=>{let B=h(s);d$1.current[n]=B;},[d$1]),I=a$3?.normalizedItems??[],f=!!a$3?.fsEnabled,b$1=e.useCallback((n,s)=>{if(!f||!I.length)return;let m=null;if(s&&(m=h(s)),!m){let R=d$1.current[n]??null,H=R&&typeof R=="object"&&"current"in R?R.current:R;x(H)?m=H:H instanceof HTMLElement&&(m=h(H));}a$3.requestFullscreenOpen({source:"masonry",index:n,image:m??null});},[a$3,f,I.length,d$1]),O=e.useMemo(()=>V(o.intro??o.transitions?.intro),[o]),r=o.classNames?.item??"",M=o.itemWrapClassName??"",A=o.itemWrapStyle,F=o.fullscreenTrigger??u.fullscreenTrigger,T=e.useMemo(()=>a$1(),[]);e.useEffect(()=>()=>{T.destroyAll();},[T]);let P=e.useMemo(()=>U({cells:E,fsEnabled:f,fullscreenTrigger:F,openFullscreenAt:(n,s)=>b$1(n,s),registerExpandableImage:(n,s)=>S(n,s??null),itemBaseClass:"rmg__masonry-item",itemBaseStyleClass:"",itemClassName:r,itemWrapClassName:M,itemWrapStyle:A,slideStoreBag:T}),[E,f,F,b$1,S,r,M,A,T]);return jsx(a$2,{ref:y,items:P.map(n=>n.node),itemSpans:P.map(n=>n.span),masonry:o,breakpoints:L,intro:O})}),J=Object.assign($,{Item:a$3}),me=J;export{me as a};
1
+ import {a as a$2}from'./chunk-AHMXEVKY.mjs';import {b,a as a$3}from'./chunk-4URHXPTV.mjs';import {a as a$1}from'./chunk-D3T6HIS2.mjs';import {a as a$4}from'./chunk-AKY343WN.mjs';import {d}from'./chunk-WMG2LTLR.mjs';import {a}from'./chunk-HK2DPKES.mjs';import*as e from'react';import {jsx}from'react/jsx-runtime';var u={placement:"balanced",fullscreenTrigger:"media"};function Y(t){return t instanceof HTMLImageElement}function G(t){if(!(t instanceof HTMLElement))return null;let i=t.closest("img");return Y(i)?i:null}function U(t){let{cells:i,fsEnabled:y,fullscreenTrigger:p,openFullscreenAt:g,registerExpandableImage:C,itemBaseClass:a,itemBaseStyleClass:L,itemClassName:o,itemWrapClassName:k,itemWrapStyle:v,slideStoreBag:N}=t;return i.map((c,l)=>{let E=c.node,d={"--rmg-intro-index":l},S=[a,L,o||"",k||"",c.layoutMeta?.className||""].filter(Boolean).join(" "),I={...v||{},...c.layoutMeta?.style||{},...d},f=jsx(a$4,{value:{normIdx:l,isClone:false,storeBag:N},children:E}),b=r=>{if(r.defaultPrevented||!y)return;let M=p==="media"?G(r.target):r.currentTarget;M&&g(l,M);},O=r=>{r.key!=="Enter"&&r.key!==" "||(r.preventDefault(),y&&p==="item"&&g(l,r.currentTarget));};return {id:c.id,span:c.layoutMeta?.span,node:jsx("div",{"data-rmg-idx":l,className:S,style:I,onClick:b,onKeyDown:O,ref:r=>{C(l,r);},role:y&&p==="item"?"button":void 0,tabIndex:y&&p==="item"?0:void 0,children:f})}})}function x(t){return t instanceof HTMLImageElement}function h(t){if(!t)return null;if(x(t))return t;let i=t.querySelector("img");return x(i)?i:null}function V(t){return {renderIntro:t?.renderIntro,staggerMs:t?.staggerMs??160,durationMs:t?.durationMs??600,easing:t?.easing??"cubic-bezier(.2,.7,.2,1)"}}var $=e.forwardRef(function(i,y){let{children:p,breakpoints:g,...C}=i,a$3=d(),L=e.useMemo(()=>a$3?.effectiveBreakpoints??{...a,...g||{}},[a$3?.effectiveBreakpoints,g]),o=e.useMemo(()=>{let n=C??{};return {...u,...n,placement:n?.placement??u.placement,classNames:{...u.classNames,...n?.classNames??{}},layout:{...u.layout,...n?.layout??{}},transitions:{...u.transitions,...n?.transitions??{}}}},[C]),k=e.useRef(0),v=e.useCallback(()=>`rmg-${++k.current}`,[]),N=e.useMemo(()=>{let n=e.Children.toArray(p),s=[];for(let B of n){let m=b(B);m.node!=null&&s.push({id:v(),node:m.node,layoutMeta:m.layoutMeta});}return s},[]),[c]=e.useState(N),l=a$3?.cellsState??void 0,E=l&&l.length>0?l:c,d$1=a$3?.expandableImageRefs??e.useRef([]),S=a$3?.registerExpandableImage??e.useCallback((n,s)=>{let B=h(s);d$1.current[n]=B;},[d$1]),I=a$3?.normalizedItems??[],f=!!a$3?.fsEnabled,b$1=e.useCallback((n,s)=>{if(!f||!I.length)return;let m=null;if(s&&(m=h(s)),!m){let R=d$1.current[n]??null,H=R&&typeof R=="object"&&"current"in R?R.current:R;x(H)?m=H:H instanceof HTMLElement&&(m=h(H));}a$3.requestFullscreenOpen({source:"masonry",index:n,image:m??null});},[a$3,f,I.length,d$1]),O=e.useMemo(()=>V(o.intro??o.transitions?.intro),[o]),r=o.classNames?.item??"",M=o.itemWrapClassName??"",A=o.itemWrapStyle,F=o.fullscreenTrigger??u.fullscreenTrigger,T=e.useMemo(()=>a$1(),[]);e.useEffect(()=>()=>{T.destroyAll();},[T]);let P=e.useMemo(()=>U({cells:E,fsEnabled:f,fullscreenTrigger:F,openFullscreenAt:(n,s)=>b$1(n,s),registerExpandableImage:(n,s)=>S(n,s??null),itemBaseClass:"rmg__masonry-item",itemBaseStyleClass:"",itemClassName:r,itemWrapClassName:M,itemWrapStyle:A,slideStoreBag:T}),[E,f,F,b$1,S,r,M,A,T]);return jsx(a$2,{ref:y,items:P.map(n=>n.node),itemSpans:P.map(n=>n.span),masonry:o,breakpoints:L,intro:O})}),J=Object.assign($,{Item:a$3}),me=J;export{me as a};
package/dist/core.d.mts CHANGED
@@ -4,7 +4,7 @@ import { B as BreakpointMap } from './responsiveNumber-CouEMJ9O.mjs';
4
4
  import { MediaItem } from './media.mjs';
5
5
  import { a as GalleryCoreApi, m as SliderNodeInput, n as SliderRemoveTarget, j as SliderHandle, H as FullscreenOpenRequest } from './types-BiXSaEk7.mjs';
6
6
  export { G as GalleryApi, b as GalleryLayoutApi } from './types-BiXSaEk7.mjs';
7
- import { M as MediaEntryLink } from './responsive-BnHorKhC.mjs';
7
+ import { M as MediaEntryLink } from './responsive-Cwty6be5.mjs';
8
8
  import './force-C5m1QpdF.mjs';
9
9
  import './types-DXFoG8LC.mjs';
10
10
  import './transitions-DU3ftmIq.mjs';
@@ -12,6 +12,7 @@ import './plyrTypes-DhzgHNfX.mjs';
12
12
  import 'plyr';
13
13
  import './types-Dhh8xfHo.mjs';
14
14
  import './text-BBcRGVzn.mjs';
15
+ import './skeleton-cache.mjs';
15
16
  import 'plyr-react';
16
17
  import './types-DNd5jSkS.mjs';
17
18
  import 'react-dom/client';
@@ -1,21 +1,22 @@
1
- import { a as EntriesMediaContainerRender } from './index-QEgABhod.mjs';
2
- export { E as Entries, b as EntriesProps, E as default, f as flattenEntries, n as nodeFromMediaDefault } from './index-QEgABhod.mjs';
1
+ import { a as EntriesMediaContainerRender } from './index-C9XZ3Lr3.mjs';
2
+ export { E as Entries, b as EntriesProps, E as default, f as flattenEntries, n as nodeFromMediaDefault } from './index-C9XZ3Lr3.mjs';
3
3
  import * as React from 'react';
4
4
  import { j as SliderHandle, i as SliderOptions } from './types-BiXSaEk7.mjs';
5
5
  import { I as IntroOptions } from './types-Do4Pq-Td.mjs';
6
- import { b as GridSkeletonSpec } from './GridSkeleton-B5wWBN9L.mjs';
6
+ import { b as GridSkeletonSpec } from './GridSkeleton-Dpsi5tXc.mjs';
7
7
  import { SkeletonForceOptions, SkeletonTimingOptions } from './skeleton-base.mjs';
8
8
  import { I as IntroOptions$1 } from './types-Br27DWP7.mjs';
9
- import { b as MasonrySkeletonSpec } from './MasonrySkeleton-D8aZRUiv.mjs';
10
- import { E as EntriesOptions } from './responsive-BnHorKhC.mjs';
11
- export { z as EntriesLoadingOptions, x as EntryCardRenderArgs, s as EntryItem, w as EntryMediaLayout, t as EntryMediaRenderArgs, u as EntryOverlayRenderArgs, v as EntryOverlayStyle, A as EntrySkeletonRenderArgs, y as EntrySkeletonResolverArgs, I as IntroOptions, M as MediaEntryLink, S as SlideOwner } from './responsive-BnHorKhC.mjs';
9
+ import { b as MasonrySkeletonSpec } from './MasonrySkeleton-Cs0x-4yL.mjs';
10
+ import { E as EntriesOptions } from './responsive-Cwty6be5.mjs';
11
+ export { z as EntriesLoadingOptions, x as EntryCardRenderArgs, s as EntryItem, w as EntryMediaLayout, t as EntryMediaRenderArgs, u as EntryOverlayRenderArgs, v as EntryOverlayStyle, A as EntrySkeletonRenderArgs, y as EntrySkeletonResolverArgs, I as IntroOptions, M as MediaEntryLink, S as SlideOwner } from './responsive-Cwty6be5.mjs';
12
12
  import * as react_jsx_runtime from 'react/jsx-runtime';
13
13
  import { B as BreakpointMap } from './responsiveNumber-CouEMJ9O.mjs';
14
14
  import { L as LoadingForceOptions } from './force-C5m1QpdF.mjs';
15
15
  import { MediaItem } from './media.mjs';
16
- import './layout-DoYnPD0I.mjs';
16
+ import './layout-BOy4geKv.mjs';
17
17
  import './text-BBcRGVzn.mjs';
18
18
  import './transitions-DU3ftmIq.mjs';
19
+ import './skeleton-cache.mjs';
19
20
  import './types-DXFoG8LC.mjs';
20
21
  import './plyrTypes-DhzgHNfX.mjs';
21
22
  import 'plyr';
package/dist/entries.mjs CHANGED
@@ -1 +1 @@
1
- import {a}from'./chunk-H6XFG3CJ.mjs';import {a as a$1}from'./chunk-MJD4OUYN.mjs';import'./chunk-WGVWASZM.mjs';import {a as a$5}from'./chunk-X3W6JPNH.mjs';import {a as a$8}from'./chunk-RGS2QTPJ.mjs';export{i as Entries,f as EntryList,i as default,h as flattenEntries,g as nodeFromMediaDefault,e as resolveEntryLoadingVisualState,b as useEntryDecodeReady,a as useEntryInView,d as useNormalizedEntriesIntro,c as useNormalizedEntriesLoading}from'./chunk-63CVVCOL.mjs';import {a as a$a}from'./chunk-RFWZVERZ.mjs';import'./chunk-LVMYHM4T.mjs';import'./chunk-VWEQRZ24.mjs';import {a as a$9}from'./chunk-KJZTKXTM.mjs';import {a as a$7}from'./chunk-MFTASEWB.mjs';import {a as a$6}from'./chunk-ZCCYTID7.mjs';import {b as b$1}from'./chunk-LSHR3FZM.mjs';import'./chunk-4ZOW533S.mjs';import'./chunk-4BTS6IIA.mjs';import'./chunk-VPFAU2TE.mjs';import'./chunk-4NT4UVB5.mjs';import'./chunk-Z34PSRMG.mjs';import'./chunk-HGY3QLCE.mjs';import {a as a$4}from'./chunk-J3UHEYNG.mjs';import'./chunk-A6MPGIEJ.mjs';import'./chunk-D3T6HIS2.mjs';import'./chunk-AKY343WN.mjs';import'./chunk-Y7NUGXTR.mjs';import'./chunk-X4HEGEZV.mjs';import'./chunk-UUAWLGWO.mjs';import {a as a$3}from'./chunk-STRS7UNJ.mjs';import'./chunk-LVYED5ZM.mjs';import {b}from'./chunk-UML6FCOQ.mjs';import {d}from'./chunk-WMG2LTLR.mjs';import'./chunk-L2HRIINV.mjs';import'./chunk-B4CC5AGE.mjs';import {a as a$2}from'./chunk-HK2DPKES.mjs';import*as R from'react';import {jsx}from'react/jsx-runtime';var L={align:"start",direction:{dir:"ltr",axis:"x"},scroll:{loop:false,freeScroll:false,groupCells:false,skipSnaps:false},motion:{selectDuration:25,freeScrollDuration:43,friction:.68},elements:{container:{},viewport:{}},transitions:{intro:{staggerMs:0,durationMs:0}},plugins:[a(),a$1()]};function K(m){let{entryIndex:r,entryInView:p,mediaNodes:i,opts:t,entrySliderRefs:a}=m;if(!(Array.isArray(i)&&i.length>0))return a.current&&(a.current[r]=null),null;let l=d(),S=R.useMemo(()=>{let e=t?.sliderObject;return {...e??L,transitions:{...L.transitions,...e?.transitions??{},intro:{...L.transitions?.intro??{},...e?.transitions?.intro??{},inView:p}}}},[p,t?.sliderObject]),n=l?.effectiveBreakpoints??{...a$2};return jsx("div",{className:a$9.sliderShell,style:{minHeight:"var(--rmg-slider-initial-height, var(--rmg-slider-height))"},children:jsx(a$a,{...S,breakpoints:n,ref:e=>{a.current[r]=e??null;},children:i})})}function J(m={}){let r=m.entrySliderRefs??{current:[]};return ({entryIndex:p,entryInView:i,mediaNodes:t,entrySliderRefs:a})=>jsx(K,{entryIndex:p,entryInView:i,mediaNodes:t,opts:m,entrySliderRefs:a??r})}function U(m){let{gridObject:r,gridLoading:p,gridIntro:i}=m;function t(n){return n?{enabled:n?.enabled,force:n?.force,skeleton:n?.skeleton,timing:n?.timing}:null}function a(n){return {renderIntro:n?.renderIntro,staggerMs:n?.staggerMs??40,durationMs:n?.durationMs??300,easing:n?.easing??"cubic-bezier(.2,.7,.2,1)",staggerLimit:n?.staggerLimit}}let s=t(p??r?.loading),l=a(i??r?.intro);function S(n){let{entryIndex:e,entryInView:f,mediaNodes:d$1}=n;if(!Array.isArray(d$1)||d$1.length===0)return null;let A=d(),I=b(),b$1=A?.effectiveBreakpoints??{...a$2},E=a$3(),c=R.useMemo(()=>d$1.map((o,k)=>({id:`entry-${e}-media-${k}`,node:o})),[e,d$1]),M=jsx(a$4,{ref:E.ref,cells:c,grid:r,renderMode:"passthrough",gridItemBaseClass:"",breakpoints:b$1,viewportWidth:I,intro:l,enableFullscreen:false,onOpen:()=>{},registerExpandableImage:()=>{},introReady:f??true});return s?.skeleton?jsx(a$5,{layout:s.skeleton,ready:E.ready,enabled:s.enabled,force:s.force,timing:s.timing,grid:{count:c.length,columns:r?.columns,templateColumns:r?.templateColumns,minColumnWidth:r?.minColumnWidth,gap:r?.gap},children:M}):M}return ({entryIndex:n,entryInView:e,mediaNodes:f})=>jsx(S,{entryIndex:n,entryInView:e,mediaNodes:f})}function q(m){let{masonryObject:r,masonryLoading:p,masonryIntro:i}=m,t=r??{};function a(e){return e?{enabled:e?.enabled,force:e?.force,skeleton:e?.skeleton,timing:e?.timing}:null}function s(e){return {renderIntro:e?.renderIntro,staggerMs:e?.staggerMs??40,durationMs:e?.durationMs??300,easing:e?.easing??"cubic-bezier(.2,.7,.2,1)",staggerLimit:e?.staggerLimit}}let l=a(p??t.loading),S=s(i??t.intro);function n(e){let{entryInView:f,mediaNodes:d$1}=e,I=d()?.effectiveBreakpoints??{...a$2},b=a$6(),c=R.useMemo(()=>!Array.isArray(d$1)||d$1.length===0?[]:d$1.map((o,k)=>{let y=b$1(o),h=y.node;return h==null?{key:`entries-masonry-${k}`,node:null,span:y.layoutMeta?.span}:y.layoutMeta?.className||y.layoutMeta?.style?{key:`entries-masonry-${k}`,span:y.layoutMeta?.span,node:jsx("div",{className:y.layoutMeta?.className,style:y.layoutMeta?.style,children:h})}:{key:`entries-masonry-${k}`,node:h,span:y.layoutMeta?.span}}),[d$1]).filter(o=>o.node!=null);if(c.length===0)return null;let M=jsx(a$7,{ref:b.ref,items:c.map(o=>jsx(R.Fragment,{children:o.node},o.key)),itemSpans:c.map(o=>o.span),masonry:t,breakpoints:I,intro:S,introReady:f??true});return l?.skeleton?jsx(a$8,{layout:l.skeleton,ready:b.ready,enabled:l.enabled,force:l.force,timing:l.timing,masonry:{count:c.length,columns:t.columns,gap:t.gap,placement:t.placement,spans:c.map(o=>o.span)},children:M}):M}return ({entryInView:e,mediaNodes:f})=>jsx(n,{entryInView:e,mediaNodes:f})}export{U as createEntriesGridMedia,q as createEntriesMasonryMedia,J as createEntriesSliderMedia};
1
+ import {a as a$1}from'./chunk-MJD4OUYN.mjs';import {a as a$5}from'./chunk-S356JN3V.mjs';import {a as a$8}from'./chunk-CXV4KHLX.mjs';import {a}from'./chunk-H6XFG3CJ.mjs';import'./chunk-WGVWASZM.mjs';export{i as Entries,f as EntryList,i as default,h as flattenEntries,g as nodeFromMediaDefault,e as resolveEntryLoadingVisualState,b as useEntryDecodeReady,a as useEntryInView,d as useNormalizedEntriesIntro,c as useNormalizedEntriesLoading}from'./chunk-QJ2YFMAT.mjs';import {a as a$a}from'./chunk-RFWZVERZ.mjs';import'./chunk-LVMYHM4T.mjs';import'./chunk-VWEQRZ24.mjs';import {a as a$9}from'./chunk-KJZTKXTM.mjs';import {a as a$7}from'./chunk-AHMXEVKY.mjs';import {b as b$1}from'./chunk-4URHXPTV.mjs';import {a as a$6}from'./chunk-ZCCYTID7.mjs';import'./chunk-CXH7XALE.mjs';import'./chunk-45TZO7MN.mjs';import'./chunk-AU4O4KU4.mjs';import'./chunk-AOQIL2HW.mjs';import'./chunk-VPFAU2TE.mjs';import'./chunk-4NT4UVB5.mjs';import'./chunk-Z34PSRMG.mjs';import'./chunk-HGY3QLCE.mjs';import {a as a$4}from'./chunk-MJAHN7TG.mjs';import'./chunk-Y7NUGXTR.mjs';import'./chunk-A6MPGIEJ.mjs';import'./chunk-D3T6HIS2.mjs';import'./chunk-AKY343WN.mjs';import'./chunk-X4HEGEZV.mjs';import'./chunk-UUAWLGWO.mjs';import {a as a$3}from'./chunk-STRS7UNJ.mjs';import'./chunk-LVYED5ZM.mjs';import {b}from'./chunk-UML6FCOQ.mjs';import {d}from'./chunk-WMG2LTLR.mjs';import'./chunk-L2HRIINV.mjs';import'./chunk-B4CC5AGE.mjs';import {a as a$2}from'./chunk-HK2DPKES.mjs';import*as R from'react';import {jsx}from'react/jsx-runtime';var L={align:"start",direction:{dir:"ltr",axis:"x"},scroll:{loop:false,freeScroll:false,groupCells:false,skipSnaps:false},motion:{selectDuration:25,freeScrollDuration:43,friction:.68},elements:{container:{},viewport:{}},transitions:{intro:{staggerMs:0,durationMs:0}},plugins:[a(),a$1()]};function K(m){let{entryIndex:r,entryInView:p,mediaNodes:i,opts:t,entrySliderRefs:a}=m;if(!(Array.isArray(i)&&i.length>0))return a.current&&(a.current[r]=null),null;let l=d(),S=R.useMemo(()=>{let e=t?.sliderObject;return {...e??L,transitions:{...L.transitions,...e?.transitions??{},intro:{...L.transitions?.intro??{},...e?.transitions?.intro??{},inView:p}}}},[p,t?.sliderObject]),n=l?.effectiveBreakpoints??{...a$2};return jsx("div",{className:a$9.sliderShell,style:{minHeight:"var(--rmg-slider-initial-height, var(--rmg-slider-height))"},children:jsx(a$a,{...S,breakpoints:n,ref:e=>{a.current[r]=e??null;},children:i})})}function J(m={}){let r=m.entrySliderRefs??{current:[]};return ({entryIndex:p,entryInView:i,mediaNodes:t,entrySliderRefs:a})=>jsx(K,{entryIndex:p,entryInView:i,mediaNodes:t,opts:m,entrySliderRefs:a??r})}function U(m){let{gridObject:r,gridLoading:p,gridIntro:i}=m;function t(n){return n?{enabled:n?.enabled,force:n?.force,skeleton:n?.skeleton,timing:n?.timing}:null}function a(n){return {renderIntro:n?.renderIntro,staggerMs:n?.staggerMs??40,durationMs:n?.durationMs??300,easing:n?.easing??"cubic-bezier(.2,.7,.2,1)",staggerLimit:n?.staggerLimit}}let s=t(p??r?.loading),l=a(i??r?.intro);function S(n){let{entryIndex:e,entryInView:f,mediaNodes:d$1}=n;if(!Array.isArray(d$1)||d$1.length===0)return null;let A=d(),I=b(),b$1=A?.effectiveBreakpoints??{...a$2},E=a$3(),c=R.useMemo(()=>d$1.map((o,k)=>({id:`entry-${e}-media-${k}`,node:o})),[e,d$1]),M=jsx(a$4,{ref:E.ref,cells:c,grid:r,renderMode:"passthrough",gridItemBaseClass:"",breakpoints:b$1,viewportWidth:I,intro:l,enableFullscreen:false,onOpen:()=>{},registerExpandableImage:()=>{},introReady:f??true});return s?.skeleton?jsx(a$5,{layout:s.skeleton,ready:E.ready,enabled:s.enabled,force:s.force,timing:s.timing,grid:{count:c.length,columns:r?.columns,templateColumns:r?.templateColumns,minColumnWidth:r?.minColumnWidth,gap:r?.gap},children:M}):M}return ({entryIndex:n,entryInView:e,mediaNodes:f})=>jsx(S,{entryIndex:n,entryInView:e,mediaNodes:f})}function q(m){let{masonryObject:r,masonryLoading:p,masonryIntro:i}=m,t=r??{};function a(e){return e?{enabled:e?.enabled,force:e?.force,skeleton:e?.skeleton,timing:e?.timing}:null}function s(e){return {renderIntro:e?.renderIntro,staggerMs:e?.staggerMs??40,durationMs:e?.durationMs??300,easing:e?.easing??"cubic-bezier(.2,.7,.2,1)",staggerLimit:e?.staggerLimit}}let l=a(p??t.loading),S=s(i??t.intro);function n(e){let{entryInView:f,mediaNodes:d$1}=e,I=d()?.effectiveBreakpoints??{...a$2},b=a$6(),c=R.useMemo(()=>!Array.isArray(d$1)||d$1.length===0?[]:d$1.map((o,k)=>{let y=b$1(o),h=y.node;return h==null?{key:`entries-masonry-${k}`,node:null,span:y.layoutMeta?.span}:y.layoutMeta?.className||y.layoutMeta?.style?{key:`entries-masonry-${k}`,span:y.layoutMeta?.span,node:jsx("div",{className:y.layoutMeta?.className,style:y.layoutMeta?.style,children:h})}:{key:`entries-masonry-${k}`,node:h,span:y.layoutMeta?.span}}),[d$1]).filter(o=>o.node!=null);if(c.length===0)return null;let M=jsx(a$7,{ref:b.ref,items:c.map(o=>jsx(R.Fragment,{children:o.node},o.key)),itemSpans:c.map(o=>o.span),masonry:t,breakpoints:I,intro:S,introReady:f??true});return l?.skeleton?jsx(a$8,{layout:l.skeleton,ready:b.ready,enabled:l.enabled,force:l.force,timing:l.timing,masonry:{count:c.length,columns:t.columns,gap:t.gap,placement:t.placement,spans:c.map(o=>o.span)},children:M}):M}return ({entryInView:e,mediaNodes:f})=>jsx(n,{entryInView:e,mediaNodes:f})}export{U as createEntriesGridMedia,q as createEntriesMasonryMedia,J as createEntriesSliderMedia};
@@ -1,4 +1,4 @@
1
- import { F as FullscreenCaptionOptions, j as FullscreenPlugin } from './responsive-BnHorKhC.mjs';
1
+ import { F as FullscreenCaptionOptions, j as FullscreenPlugin } from './responsive-Cwty6be5.mjs';
2
2
  import './types-DXFoG8LC.mjs';
3
3
  import 'react';
4
4
  import './responsiveNumber-CouEMJ9O.mjs';
@@ -10,6 +10,7 @@ import './plyrTypes-DhzgHNfX.mjs';
10
10
  import 'plyr';
11
11
  import './types-Dhh8xfHo.mjs';
12
12
  import './text-BBcRGVzn.mjs';
13
+ import './skeleton-cache.mjs';
13
14
  import 'plyr-react';
14
15
  import './types-DNd5jSkS.mjs';
15
16
  import 'react-dom/client';
@@ -1,4 +1,4 @@
1
- import { e as FullscreenControlsOptions, j as FullscreenPlugin } from './responsive-BnHorKhC.mjs';
1
+ import { e as FullscreenControlsOptions, j as FullscreenPlugin } from './responsive-Cwty6be5.mjs';
2
2
  import './types-DXFoG8LC.mjs';
3
3
  import 'react';
4
4
  import './responsiveNumber-CouEMJ9O.mjs';
@@ -10,6 +10,7 @@ import './plyrTypes-DhzgHNfX.mjs';
10
10
  import 'plyr';
11
11
  import './types-Dhh8xfHo.mjs';
12
12
  import './text-BBcRGVzn.mjs';
13
+ import './skeleton-cache.mjs';
13
14
  import 'plyr-react';
14
15
  import './types-DNd5jSkS.mjs';
15
16
  import 'react-dom/client';
@@ -1,4 +1,4 @@
1
- import { f as FullscreenCrossfadeOptions, j as FullscreenPlugin } from './responsive-BnHorKhC.mjs';
1
+ import { f as FullscreenCrossfadeOptions, j as FullscreenPlugin } from './responsive-Cwty6be5.mjs';
2
2
  import './types-DXFoG8LC.mjs';
3
3
  import 'react';
4
4
  import './responsiveNumber-CouEMJ9O.mjs';
@@ -10,6 +10,7 @@ import './plyrTypes-DhzgHNfX.mjs';
10
10
  import 'plyr';
11
11
  import './types-Dhh8xfHo.mjs';
12
12
  import './text-BBcRGVzn.mjs';
13
+ import './skeleton-cache.mjs';
13
14
  import 'plyr-react';
14
15
  import './types-DNd5jSkS.mjs';
15
16
  import 'react-dom/client';
@@ -1,4 +1,4 @@
1
- import { g as FullscreenLazyLoadOptions, j as FullscreenPlugin } from './responsive-BnHorKhC.mjs';
1
+ import { g as FullscreenLazyLoadOptions, j as FullscreenPlugin } from './responsive-Cwty6be5.mjs';
2
2
  import './types-DXFoG8LC.mjs';
3
3
  import 'react';
4
4
  import './responsiveNumber-CouEMJ9O.mjs';
@@ -10,6 +10,7 @@ import './plyrTypes-DhzgHNfX.mjs';
10
10
  import 'plyr';
11
11
  import './types-Dhh8xfHo.mjs';
12
12
  import './text-BBcRGVzn.mjs';
13
+ import './skeleton-cache.mjs';
13
14
  import 'plyr-react';
14
15
  import './types-DNd5jSkS.mjs';
15
16
  import 'react-dom/client';
@@ -1,4 +1,4 @@
1
- import { l as FullscreenSliderOptions, j as FullscreenPlugin } from './responsive-BnHorKhC.mjs';
1
+ import { l as FullscreenSliderOptions, j as FullscreenPlugin } from './responsive-Cwty6be5.mjs';
2
2
  import './types-DXFoG8LC.mjs';
3
3
  import 'react';
4
4
  import './responsiveNumber-CouEMJ9O.mjs';
@@ -10,6 +10,7 @@ import './plyrTypes-DhzgHNfX.mjs';
10
10
  import 'plyr';
11
11
  import './types-Dhh8xfHo.mjs';
12
12
  import './text-BBcRGVzn.mjs';
13
+ import './skeleton-cache.mjs';
13
14
  import 'plyr-react';
14
15
  import './types-DNd5jSkS.mjs';
15
16
  import 'react-dom/client';
@@ -1,4 +1,4 @@
1
- import { j as FullscreenPlugin } from './responsive-BnHorKhC.mjs';
1
+ import { j as FullscreenPlugin } from './responsive-Cwty6be5.mjs';
2
2
  import './types-DXFoG8LC.mjs';
3
3
  import 'react';
4
4
  import './responsiveNumber-CouEMJ9O.mjs';
@@ -10,6 +10,7 @@ import './plyrTypes-DhzgHNfX.mjs';
10
10
  import 'plyr';
11
11
  import './types-Dhh8xfHo.mjs';
12
12
  import './text-BBcRGVzn.mjs';
13
+ import './skeleton-cache.mjs';
13
14
  import 'plyr-react';
14
15
  import './types-DNd5jSkS.mjs';
15
16
  import 'react-dom/client';
@@ -1,4 +1,4 @@
1
- import { m as FullscreenVideoOptions, j as FullscreenPlugin } from './responsive-BnHorKhC.mjs';
1
+ import { m as FullscreenVideoOptions, j as FullscreenPlugin } from './responsive-Cwty6be5.mjs';
2
2
  import './types-DXFoG8LC.mjs';
3
3
  import 'react';
4
4
  import './responsiveNumber-CouEMJ9O.mjs';
@@ -10,6 +10,7 @@ import './plyrTypes-DhzgHNfX.mjs';
10
10
  import 'plyr';
11
11
  import './types-Dhh8xfHo.mjs';
12
12
  import './text-BBcRGVzn.mjs';
13
+ import './skeleton-cache.mjs';
13
14
  import 'plyr-react';
14
15
  import './types-DNd5jSkS.mjs';
15
16
  import 'react-dom/client';
@@ -1,4 +1,4 @@
1
- import { n as FullscreenZoomPanOptions, j as FullscreenPlugin } from './responsive-BnHorKhC.mjs';
1
+ import { n as FullscreenZoomPanOptions, j as FullscreenPlugin } from './responsive-Cwty6be5.mjs';
2
2
  import './types-DXFoG8LC.mjs';
3
3
  import 'react';
4
4
  import './responsiveNumber-CouEMJ9O.mjs';
@@ -10,6 +10,7 @@ import './plyrTypes-DhzgHNfX.mjs';
10
10
  import 'plyr';
11
11
  import './types-Dhh8xfHo.mjs';
12
12
  import './text-BBcRGVzn.mjs';
13
+ import './skeleton-cache.mjs';
13
14
  import 'plyr-react';
14
15
  import './types-DNd5jSkS.mjs';
15
16
  import 'react-dom/client';
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { i as FullscreenOptions, j as FullscreenPlugin, B as FullscreenClose, C as FullscreenArrows, D as FullscreenCounter, q as ResponsiveLength, R as ResponsiveCaptionPlacement, G as FsCaptionRenderArgs, H as FSImageRender, m as FullscreenVideoOptions, g as FullscreenLazyLoadOptions, c as FullscreenCloseScrollOptions } from './responsive-BnHorKhC.mjs';
3
- export { o as FsCaptionPlacement, p as FsIntroRequest, F as FullscreenCaptionOptions, a as FullscreenCloseScrollContext, b as FullscreenCloseScrollEnabled, d as FullscreenCloseScrollTiming, e as FullscreenControlsOptions, f as FullscreenCrossfadeOptions, h as FullscreenMobileDetectionContext, k as FullscreenPluginKind, l as FullscreenSliderOptions, n as FullscreenZoomPanOptions } from './responsive-BnHorKhC.mjs';
2
+ import { i as FullscreenOptions, j as FullscreenPlugin, B as FullscreenClose, C as FullscreenArrows, D as FullscreenCounter, q as ResponsiveLength, R as ResponsiveCaptionPlacement, G as FsCaptionRenderArgs, H as FSImageRender, m as FullscreenVideoOptions, g as FullscreenLazyLoadOptions, c as FullscreenCloseScrollOptions } from './responsive-Cwty6be5.mjs';
3
+ export { o as FsCaptionPlacement, p as FsIntroRequest, F as FullscreenCaptionOptions, a as FullscreenCloseScrollContext, b as FullscreenCloseScrollEnabled, d as FullscreenCloseScrollTiming, e as FullscreenControlsOptions, f as FullscreenCrossfadeOptions, h as FullscreenMobileDetectionContext, k as FullscreenPluginKind, l as FullscreenSliderOptions, n as FullscreenZoomPanOptions } from './responsive-Cwty6be5.mjs';
4
4
  import React__default from 'react';
5
5
  import { MediaItem } from './media.mjs';
6
6
  import { g as SliderSkipSnaps, d as CrossFadeWheel, H as FullscreenOpenRequest } from './types-BiXSaEk7.mjs';
@@ -14,6 +14,7 @@ import './plyrTypes-DhzgHNfX.mjs';
14
14
  import 'plyr';
15
15
  import './types-Dhh8xfHo.mjs';
16
16
  import './text-BBcRGVzn.mjs';
17
+ import './skeleton-cache.mjs';
17
18
  import 'plyr-react';
18
19
  import 'react-dom/client';
19
20
 
package/dist/grid.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  export { G as Grid, G as default } from './index-DG19CAvz.mjs';
2
2
  export { GridReadyController, useGridReady } from './grid-ready.mjs';
3
3
  export { G as GridHandle, a as GridItemProps, b as GridOptions, c as GridPlugin, d as GridPluginKind, e as GridSpan, R as ResponsiveGridSpan, f as ResponsiveGridTemplate } from './types-Do4Pq-Td.mjs';
4
- export { G as GridSkeletonNode, a as GridSkeletonSlot, b as GridSkeletonSpec } from './GridSkeleton-B5wWBN9L.mjs';
4
+ export { G as GridSkeletonNode, a as GridSkeletonSlot, b as GridSkeletonSpec } from './GridSkeleton-Dpsi5tXc.mjs';
5
5
  import 'react';
6
6
  import './responsiveNumber-CouEMJ9O.mjs';
7
- import './layout-DoYnPD0I.mjs';
7
+ import './layout-BOy4geKv.mjs';
8
8
  import './text-BBcRGVzn.mjs';
package/dist/grid.mjs CHANGED
@@ -1 +1 @@
1
- export{a as Grid,a as default}from'./chunk-7PF7OJT2.mjs';import'./chunk-RLT5FULN.mjs';import'./chunk-J3UHEYNG.mjs';import'./chunk-A6MPGIEJ.mjs';import'./chunk-D3T6HIS2.mjs';import'./chunk-AKY343WN.mjs';import'./chunk-Y7NUGXTR.mjs';import'./chunk-X4HEGEZV.mjs';import'./chunk-UUAWLGWO.mjs';export{a as useGridReady}from'./chunk-STRS7UNJ.mjs';import'./chunk-UML6FCOQ.mjs';import'./chunk-WMG2LTLR.mjs';import'./chunk-L2HRIINV.mjs';import'./chunk-B4CC5AGE.mjs';import'./chunk-HK2DPKES.mjs';
1
+ export{a as Grid,a as default}from'./chunk-5HGFS3S2.mjs';import'./chunk-RLT5FULN.mjs';import'./chunk-MJAHN7TG.mjs';import'./chunk-Y7NUGXTR.mjs';import'./chunk-A6MPGIEJ.mjs';import'./chunk-D3T6HIS2.mjs';import'./chunk-AKY343WN.mjs';import'./chunk-X4HEGEZV.mjs';import'./chunk-UUAWLGWO.mjs';export{a as useGridReady}from'./chunk-STRS7UNJ.mjs';import'./chunk-UML6FCOQ.mjs';import'./chunk-WMG2LTLR.mjs';import'./chunk-L2HRIINV.mjs';import'./chunk-B4CC5AGE.mjs';import'./chunk-HK2DPKES.mjs';
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { E as EntriesOptions, M as MediaEntryLink, S as SlideOwner, s as EntryItem } from './responsive-BnHorKhC.mjs';
2
+ import { E as EntriesOptions, M as MediaEntryLink, S as SlideOwner, s as EntryItem } from './responsive-Cwty6be5.mjs';
3
3
  import * as React from 'react';
4
4
  import { MediaItem } from './media.mjs';
5
5
  import { j as SliderHandle } from './types-BiXSaEk7.mjs';
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { CoreLayout, GalleryCore, GalleryCoreProps, useGalleryCore } from './core.mjs';
2
- export { E as Entries, f as flattenEntries } from './index-QEgABhod.mjs';
2
+ export { E as Entries, f as flattenEntries } from './index-C9XZ3Lr3.mjs';
3
3
  export { useFullscreenController } from './fullscreen.mjs';
4
4
  export { FullscreenThumbnailSlider } from './fullscreenThumbnails.mjs';
5
5
  export { F as FSItem, a as FullscreenThumbnailBridge, b as FullscreenThumbnailSliderProps, c as FullscreenThumbnailSlotLayout } from './types-DNd5jSkS.mjs';
@@ -16,12 +16,12 @@ export { Z as ZoomPanImageProps, a as ZoomPanOptions } from './types-Dhh8xfHo.mj
16
16
  export { Skeleton, SkeletonForceOptions, SkeletonProps, SkeletonTimingOptions } from './skeleton-base.mjs';
17
17
  export { C as CrossFade, d as CrossFadeWheel, e as CrossFadeWheelOptions, E as ElementStyle, G as GalleryApi, a as GalleryCoreApi, b as GalleryLayoutApi, I as IndexMode, R as ResponsiveHeightRule, k as SliderApi, S as SliderAutoHeight, f as SliderAutoPlayTimer, j as SliderHandle, q as SliderIndexChannel, l as SliderItemsApi, m as SliderNodeInput, i as SliderOptions, o as SliderPlugin, p as SliderPluginKind, n as SliderRemoveTarget, g as SliderSkipSnaps, h as SliderSkipSnapsOptions, c as createSliderIndexChannel } from './types-BiXSaEk7.mjs';
18
18
  export { MediaItem, toMediaItems } from './media.mjs';
19
- export { E as EntriesOptions, o as FsCaptionPlacement, p as FsIntroRequest, F as FullscreenCaptionOptions, a as FullscreenCloseScrollContext, b as FullscreenCloseScrollEnabled, c as FullscreenCloseScrollOptions, d as FullscreenCloseScrollTiming, e as FullscreenControlsOptions, f as FullscreenCrossfadeOptions, g as FullscreenLazyLoadOptions, h as FullscreenMobileDetectionContext, i as FullscreenOptions, j as FullscreenPlugin, k as FullscreenPluginKind, l as FullscreenSliderOptions, m as FullscreenVideoOptions, n as FullscreenZoomPanOptions, M as MediaEntryLink, P as PanAxisType, R as ResponsiveCaptionPlacement, q as ResponsiveLength, r as ResponsiveLengthValue, S as SlideOwner } from './responsive-BnHorKhC.mjs';
19
+ export { E as EntriesOptions, o as FsCaptionPlacement, p as FsIntroRequest, F as FullscreenCaptionOptions, a as FullscreenCloseScrollContext, b as FullscreenCloseScrollEnabled, c as FullscreenCloseScrollOptions, d as FullscreenCloseScrollTiming, e as FullscreenControlsOptions, f as FullscreenCrossfadeOptions, g as FullscreenLazyLoadOptions, h as FullscreenMobileDetectionContext, i as FullscreenOptions, j as FullscreenPlugin, k as FullscreenPluginKind, l as FullscreenSliderOptions, m as FullscreenVideoOptions, n as FullscreenZoomPanOptions, M as MediaEntryLink, P as PanAxisType, R as ResponsiveCaptionPlacement, q as ResponsiveLength, r as ResponsiveLengthValue, S as SlideOwner } from './responsive-Cwty6be5.mjs';
20
20
  export { G as GridHandle, a as GridItemProps, b as GridOptions, c as GridPlugin, d as GridPluginKind, e as GridSpan, R as ResponsiveGridSpan, f as ResponsiveGridTemplate } from './types-Do4Pq-Td.mjs';
21
21
  export { M as MasonryHandle, a as MasonryItemProps, b as MasonryOptions, c as MasonryPlugin, d as MasonryPluginKind, e as MasonrySpan, R as ResponsiveMasonrySpan } from './types-Br27DWP7.mjs';
22
22
  export { R as ResponsivePosition, e as ThumbnailIntroOptions, a as ThumbnailLoadingElements, c as ThumbnailLoadingOptions, b as ThumbnailLoadingRenderArgs, T as ThumbnailPosition, d as ThumbnailSkeletonMode, f as ThumbnailsOptions } from './types-DXFoG8LC.mjs';
23
23
  export { a as BREAKPOINT_MAP, B as BreakpointMap, R as ResponsiveNumber } from './responsiveNumber-CouEMJ9O.mjs';
24
- export { S as SkeletonNode } from './layout-DoYnPD0I.mjs';
24
+ export { S as SkeletonNode } from './layout-BOy4geKv.mjs';
25
25
  import 'react/jsx-runtime';
26
26
  import 'react';
27
27
  import 'plyr-react';
@@ -29,5 +29,6 @@ import './plyrTypes-DhzgHNfX.mjs';
29
29
  import 'plyr';
30
30
  import './force-C5m1QpdF.mjs';
31
31
  import './transitions-DU3ftmIq.mjs';
32
+ import './skeleton-cache.mjs';
32
33
  import './text-BBcRGVzn.mjs';
33
34
  import 'react-dom/client';
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export{a as Video}from'./chunk-UFX2HJMQ.mjs';export{a as ZoomPanImage}from'./chunk-Z2R67ZEV.mjs';import'./chunk-4VHNCVVB.mjs';export{a as Masonry}from'./chunk-3RVITFUD.mjs';import'./chunk-EFXHC36P.mjs';import'./chunk-C6PKH3FH.mjs';import'./chunk-PFEGIWQJ.mjs';import'./chunk-L4TRPKGX.mjs';import'./chunk-ADIHG7AT.mjs';export{a as useFullscreenController}from'./chunk-UEIIMUYB.mjs';import'./chunk-JJMFOLJZ.mjs';import'./chunk-XUQO5F2F.mjs';export{a as FullscreenThumbnailSlider}from'./chunk-PA3ECBCE.mjs';export{b as ThumbnailSlider,a as createThumbnailSyncBridge}from'./chunk-3WAORSPA.mjs';import'./chunk-R6EGYRTJ.mjs';import'./chunk-P2GQPFSL.mjs';export{a as Grid}from'./chunk-7PF7OJT2.mjs';import'./chunk-RLT5FULN.mjs';export{i as Entries,h as flattenEntries}from'./chunk-63CVVCOL.mjs';export{a as Slider}from'./chunk-RFWZVERZ.mjs';import'./chunk-LVMYHM4T.mjs';export{a as useSliderReady}from'./chunk-VWEQRZ24.mjs';import'./chunk-KJZTKXTM.mjs';import'./chunk-MFTASEWB.mjs';export{a as useMasonryReady}from'./chunk-ZCCYTID7.mjs';import'./chunk-LSHR3FZM.mjs';export{b as Skeleton}from'./chunk-4ZOW533S.mjs';import'./chunk-4BTS6IIA.mjs';export{c as createSliderIndexChannel}from'./chunk-VPFAU2TE.mjs';import'./chunk-4NT4UVB5.mjs';import'./chunk-Z34PSRMG.mjs';import'./chunk-HGY3QLCE.mjs';import'./chunk-J3UHEYNG.mjs';import'./chunk-A6MPGIEJ.mjs';import'./chunk-D3T6HIS2.mjs';import'./chunk-AKY343WN.mjs';import'./chunk-Y7NUGXTR.mjs';import'./chunk-X4HEGEZV.mjs';import'./chunk-UUAWLGWO.mjs';export{a as useGridReady}from'./chunk-STRS7UNJ.mjs';import'./chunk-EJ7I3UYI.mjs';import'./chunk-UAEPMZQY.mjs';import'./chunk-ULUKLQXS.mjs';import'./chunk-A5VUIE75.mjs';import'./chunk-UP6P6CQS.mjs';import'./chunk-NHIKOJLU.mjs';import'./chunk-LVYED5ZM.mjs';import'./chunk-UML6FCOQ.mjs';export{b as GalleryCore,c as useGalleryCore}from'./chunk-WMG2LTLR.mjs';export{a as toMediaItems}from'./chunk-L2HRIINV.mjs';import'./chunk-B4CC5AGE.mjs';export{a as BREAKPOINT_MAP}from'./chunk-HK2DPKES.mjs';
1
+ export{a as Video}from'./chunk-UFX2HJMQ.mjs';export{a as ZoomPanImage}from'./chunk-Z2R67ZEV.mjs';import'./chunk-4VHNCVVB.mjs';export{a as Masonry}from'./chunk-YU2WS3GJ.mjs';import'./chunk-EFXHC36P.mjs';import'./chunk-C6PKH3FH.mjs';import'./chunk-PFEGIWQJ.mjs';import'./chunk-L4TRPKGX.mjs';import'./chunk-ADIHG7AT.mjs';export{a as useFullscreenController}from'./chunk-UEIIMUYB.mjs';import'./chunk-JJMFOLJZ.mjs';import'./chunk-XUQO5F2F.mjs';export{a as FullscreenThumbnailSlider}from'./chunk-PA3ECBCE.mjs';export{b as ThumbnailSlider,a as createThumbnailSyncBridge}from'./chunk-3WAORSPA.mjs';import'./chunk-R6EGYRTJ.mjs';import'./chunk-P2GQPFSL.mjs';export{a as Grid}from'./chunk-5HGFS3S2.mjs';import'./chunk-RLT5FULN.mjs';export{i as Entries,h as flattenEntries}from'./chunk-QJ2YFMAT.mjs';export{a as Slider}from'./chunk-RFWZVERZ.mjs';import'./chunk-LVMYHM4T.mjs';export{a as useSliderReady}from'./chunk-VWEQRZ24.mjs';import'./chunk-KJZTKXTM.mjs';import'./chunk-AHMXEVKY.mjs';import'./chunk-4URHXPTV.mjs';export{a as useMasonryReady}from'./chunk-ZCCYTID7.mjs';export{c as Skeleton}from'./chunk-CXH7XALE.mjs';import'./chunk-45TZO7MN.mjs';import'./chunk-AU4O4KU4.mjs';import'./chunk-AOQIL2HW.mjs';export{c as createSliderIndexChannel}from'./chunk-VPFAU2TE.mjs';import'./chunk-4NT4UVB5.mjs';import'./chunk-Z34PSRMG.mjs';import'./chunk-HGY3QLCE.mjs';import'./chunk-MJAHN7TG.mjs';import'./chunk-Y7NUGXTR.mjs';import'./chunk-A6MPGIEJ.mjs';import'./chunk-D3T6HIS2.mjs';import'./chunk-AKY343WN.mjs';import'./chunk-X4HEGEZV.mjs';import'./chunk-UUAWLGWO.mjs';export{a as useGridReady}from'./chunk-STRS7UNJ.mjs';import'./chunk-EJ7I3UYI.mjs';import'./chunk-UAEPMZQY.mjs';import'./chunk-ULUKLQXS.mjs';import'./chunk-A5VUIE75.mjs';import'./chunk-UP6P6CQS.mjs';import'./chunk-NHIKOJLU.mjs';import'./chunk-LVYED5ZM.mjs';import'./chunk-UML6FCOQ.mjs';export{b as GalleryCore,c as useGalleryCore}from'./chunk-WMG2LTLR.mjs';export{a as toMediaItems}from'./chunk-L2HRIINV.mjs';import'./chunk-B4CC5AGE.mjs';export{a as BREAKPOINT_MAP}from'./chunk-HK2DPKES.mjs';
@@ -98,6 +98,7 @@ type SkeletonContainerStyle = {
98
98
  type SkeletonContainerStyleResponsive = SkeletonContainerStyle | Record<string, SkeletonContainerStyle>;
99
99
  type SkeletonTextNode = {
100
100
  kind: "text";
101
+ textId?: string;
101
102
  barHeight: ResponsiveTextBarHeight;
102
103
  barWidth?: ResponsiveTextBarWidth;
103
104
  lineHeight: ResponsiveTextLineHeight;
package/dist/masonry.mjs CHANGED
@@ -1 +1 @@
1
- export{a as Masonry,a as default}from'./chunk-3RVITFUD.mjs';import'./chunk-EFXHC36P.mjs';import'./chunk-MFTASEWB.mjs';export{a as useMasonryReady}from'./chunk-ZCCYTID7.mjs';import'./chunk-LSHR3FZM.mjs';import'./chunk-4BTS6IIA.mjs';import'./chunk-A6MPGIEJ.mjs';import'./chunk-D3T6HIS2.mjs';import'./chunk-AKY343WN.mjs';import'./chunk-UML6FCOQ.mjs';import'./chunk-WMG2LTLR.mjs';import'./chunk-L2HRIINV.mjs';import'./chunk-B4CC5AGE.mjs';import'./chunk-HK2DPKES.mjs';
1
+ export{a as Masonry,a as default}from'./chunk-YU2WS3GJ.mjs';import'./chunk-EFXHC36P.mjs';import'./chunk-AHMXEVKY.mjs';import'./chunk-4URHXPTV.mjs';export{a as useMasonryReady}from'./chunk-ZCCYTID7.mjs';import'./chunk-45TZO7MN.mjs';import'./chunk-A6MPGIEJ.mjs';import'./chunk-D3T6HIS2.mjs';import'./chunk-AKY343WN.mjs';import'./chunk-UML6FCOQ.mjs';import'./chunk-WMG2LTLR.mjs';import'./chunk-L2HRIINV.mjs';import'./chunk-B4CC5AGE.mjs';import'./chunk-HK2DPKES.mjs';