@ampproject/amp-inline-gallery
Advanced tools
Comparing version 1.2110192227.0 to 1.2110202310.0
@@ -1,2 +0,2 @@ | ||
function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?t(Object(a),!0).forEach((function(t){e(n,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(a,e))}))}return n}function r(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}import{cloneElement as a,createContext as l,createElement as s,createRef as c}from"react";import{hydrate as i,render as o}from"react-dom";import{useCallback as u,useContext as p,useEffect as f,useImperativeHandle as d,useLayoutEffect as y,useMemo as b,useRef as v,useState as m}from"react";function O(e,t,n){return s.apply(void 0,arguments)}function j(e){return m(e)}var w=l({slides:[],setSlides:e=>{}},void 0);import{Children as h,createPortal as S,forwardRef as C}from"react";function z(e){return C(e)}var N=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],$=[null,"paint","layout","content","size","size paint","size layout","strict"],g={"position":"relative","width":"100%","height":"100%"},P=z((function(e,t){let{as:a="div",children:l,"class":s,contentAs:c="div",contentClassName:i,contentProps:o,contentRef:u,contentStyle:p,layout:f=!1,paint:d=!1,size:y=!1,"style":b,wrapperClassName:v,wrapperStyle:m}=e;const j=(y?4:0)+(f?2:0)+(d?1:0);return O(a,n(n({},r(e,N)),{},{ref:t,class:`${s||""} ${v||""}`.trim()||null,style:n(n(n({},b),m),{},{contain:$[j]})}),O(c,n(n({},o),{},{ref:u,class:i,style:n(n({},y&&g),{},{"overflow":d?"hidden":"visible"},p)}),l))})),k=["as","children","class","style","wrapperClassName","wrapperStyle"];z((function(e,t){let{as:a="div",children:l,"class":s,"style":c,wrapperClassName:i,wrapperStyle:o}=e;return O(a,n(n({},r(e,k)),{},{ref:t,class:`${s||""} ${i||""}`.trim()||null,style:n(n({},c),o)}),l)}));var{hasOwnProperty:A,toString:M}=Object.prototype,R=(new WeakMap,new WeakMap,["children"]);function W(e){let{children:t}=e,a=r(e,R);const[l,s]=j(0),[c,i]=j([]),o=b((()=>({currentSlide:l,setCurrentSlide:s,slides:c,setSlides:i})),[l,c]);return O(P,n({size:!1,layout:!0},a),O(w.Provider,{value:o},t))}export{W as BentoInlineGallery}; | ||
function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?t(Object(a),!0).forEach((function(t){e(n,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(a,e))}))}return n}function r(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}import{cloneElement as a,createContext as l,createElement as s,createRef as c}from"react";import{hydrate as i,render as o}from"react-dom";import{useCallback as u,useContext as p,useEffect as f,useImperativeHandle as d,useLayoutEffect as y,useMemo as b,useRef as v,useState as m}from"react";function O(e,t,n){return s.apply(void 0,arguments)}function j(e){return m(e)}var w=l({slides:[],setSlides:e=>{}},void 0);import{Children as h,createPortal as S,forwardRef as C}from"react";function z(e){return C(e)}var N=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],$=[null,"paint","layout","content","size","size paint","size layout","strict"],g={"position":"relative","width":"100%","height":"100%"},k=z((function(e,t){let{as:a="div",children:l,"class":s,contentAs:c="div",contentClassName:i,contentProps:o,contentRef:u,contentStyle:p,layout:f=!1,paint:d=!1,size:y=!1,"style":b,wrapperClassName:v,wrapperStyle:m}=e;const j=(y?4:0)+(f?2:0)+(d?1:0);return O(a,n(n({},r(e,N)),{},{ref:t,class:`${s||""} ${v||""}`.trim()||null,style:n(n(n({},b),m),{},{contain:$[j]})}),O(c,n(n({},o),{},{ref:u,class:i,style:n(n({},y&&g),{},{"overflow":d?"hidden":"visible"},p)}),l))})),P=["as","children","class","style","wrapperClassName","wrapperStyle"];z((function(e,t){let{as:a="div",children:l,"class":s,"style":c,wrapperClassName:i,wrapperStyle:o}=e;return O(a,n(n({},r(e,P)),{},{ref:t,class:`${s||""} ${i||""}`.trim()||null,style:n(n({},c),o)}),l)}));var{hasOwnProperty:A,toString:M}=Object.prototype,R=(new WeakMap,new WeakMap,["children"]);function W(e){let{children:t}=e,a=r(e,R);const[l,s]=j(0),[c,i]=j([]),o=b((()=>({currentSlide:l,setCurrentSlide:s,slides:c,setSlides:i})),[l,c]);return O(k,n({size:!1,layout:!0},a),O(w.Provider,{value:o},t))}export{W as BentoInlineGallery}; | ||
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */ |
{ | ||
"name": "@ampproject/amp-inline-gallery", | ||
"version": "1.2110192227.0", | ||
"version": "1.2110202310.0", | ||
"description": "AMP HTML amp-inline-gallery Component", | ||
@@ -5,0 +5,0 @@ "author": "The AMP HTML Authors", |
@@ -37,3 +37,3 @@ # Bento Inline Gallery | ||
<head> | ||
<script src="https://cdn.ampproject.org/custom-elements-polyfill.js"></script> | ||
<script async src="https://cdn.ampproject.org/bento.js"></script> | ||
<script async src="https://cdn.ampproject.org/v0/bento-inline-gallery-1.0.js"></script> | ||
@@ -40,0 +40,0 @@ <link rel="stylesheet" type="text/css" href="https://cdn.ampproject.org/v0/amp-inline-gallery-1.0.css"> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
175562