@miyaoka/miyaoka-components
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -31,3 +31,3 @@ 'use strict'; | ||
return patchEsm().then(() => { | ||
return index.bootstrapLazy([["miyaoka-embed-tweet_2.cjs",[[0,"miyaoka-embed-tweet",{"src":[1]}],[1,"miyaoka-img-loader",{"src":[1],"alt":[1],"scale":[2],"rotate":[2],"opacity":[2],"duration":[2],"delay":[2],"img":[32],"isLoaded":[32]}]]]], options); | ||
return index.bootstrapLazy([["miyaoka-embed-tweet_2.cjs",[[0,"miyaoka-embed-tweet",{"src":[1]}],[1,"miyaoka-img-loader",{"src":[1],"alt":[1],"loading":[1],"scale":[2],"rotate":[2],"opacity":[2],"duration":[2],"delay":[2],"img":[32],"isLoaded":[32]}]]]], options); | ||
}); | ||
@@ -34,0 +34,0 @@ }; |
@@ -82,3 +82,3 @@ 'use strict'; | ||
patchBrowser().then(options => { | ||
return index.bootstrapLazy([["miyaoka-embed-tweet_2.cjs",[[0,"miyaoka-embed-tweet",{"src":[1]}],[1,"miyaoka-img-loader",{"src":[1],"alt":[1],"scale":[2],"rotate":[2],"opacity":[2],"duration":[2],"delay":[2],"img":[32],"isLoaded":[32]}]]]], options); | ||
return index.bootstrapLazy([["miyaoka-embed-tweet_2.cjs",[[0,"miyaoka-embed-tweet",{"src":[1]}],[1,"miyaoka-img-loader",{"src":[1],"alt":[1],"loading":[1],"scale":[2],"rotate":[2],"opacity":[2],"duration":[2],"delay":[2],"img":[32],"isLoaded":[32]}]]]], options); | ||
}); |
@@ -77,2 +77,3 @@ 'use strict'; | ||
this.alt = 'image'; | ||
this.loading = 'lazy'; | ||
this.scale = 0.5; | ||
@@ -108,3 +109,3 @@ this.rotate = 90; | ||
this.img = el; | ||
}, src: this.src, alt: this.alt, style: Object.assign(Object.assign({}, style), { transitionDuration: `${this.duration}ms`, transitionDelay: `${this.delay}ms` }) }))); | ||
}, src: this.src, alt: this.alt, loading: this.loading, style: Object.assign(Object.assign({}, style), { transitionDuration: `${this.duration}ms`, transitionDelay: `${this.delay}ms` }) }))); | ||
} | ||
@@ -111,0 +112,0 @@ }; |
@@ -5,2 +5,3 @@ import { Component, Host, h, Prop, State } from '@stencil/core'; | ||
this.alt = 'image'; | ||
this.loading = 'lazy'; | ||
this.scale = 0.5; | ||
@@ -37,3 +38,3 @@ this.rotate = 90; | ||
this.img = el; | ||
}, src: this.src, alt: this.alt, style: Object.assign(Object.assign({}, style), { transitionDuration: `${this.duration}ms`, transitionDelay: `${this.delay}ms` }) }))); | ||
}, src: this.src, alt: this.alt, loading: this.loading, style: Object.assign(Object.assign({}, style), { transitionDuration: `${this.duration}ms`, transitionDelay: `${this.delay}ms` }) }))); | ||
} | ||
@@ -84,2 +85,20 @@ static get is() { return "miyaoka-img-loader"; } | ||
}, | ||
"loading": { | ||
"type": "string", | ||
"mutable": false, | ||
"complexType": { | ||
"original": "string", | ||
"resolved": "string", | ||
"references": {} | ||
}, | ||
"required": false, | ||
"optional": false, | ||
"docs": { | ||
"tags": [], | ||
"text": "" | ||
}, | ||
"attribute": "loading", | ||
"reflect": false, | ||
"defaultValue": "'lazy'" | ||
}, | ||
"scale": { | ||
@@ -86,0 +105,0 @@ "type": "number", |
@@ -1,1 +0,1 @@ | ||
import{C as CSS,p as plt,w as win,a as promiseResolve,b as bootstrapLazy}from"./index-ccf63fe3.js";var patchEsm=function(){if(!(CSS&&CSS.supports&&CSS.supports("color","var(--c)"))){return import("./css-shim-8de9f2ac.js").then((function(){if(plt.$cssShim$=win.__cssshim){return plt.$cssShim$.i()}else{return 0}}))}return promiseResolve()};var defineCustomElements=function(e,t){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){return bootstrapLazy([["miyaoka-embed-tweet_2",[[0,"miyaoka-embed-tweet",{src:[1]}],[1,"miyaoka-img-loader",{src:[1],alt:[1],scale:[2],rotate:[2],opacity:[2],duration:[2],delay:[2],img:[32],isLoaded:[32]}]]]],t)}))};export{defineCustomElements}; | ||
import{C as CSS,p as plt,w as win,a as promiseResolve,b as bootstrapLazy}from"./index-ccf63fe3.js";var patchEsm=function(){if(!(CSS&&CSS.supports&&CSS.supports("color","var(--c)"))){return import("./css-shim-8de9f2ac.js").then((function(){if(plt.$cssShim$=win.__cssshim){return plt.$cssShim$.i()}else{return 0}}))}return promiseResolve()};var defineCustomElements=function(e,t){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){return bootstrapLazy([["miyaoka-embed-tweet_2",[[0,"miyaoka-embed-tweet",{src:[1]}],[1,"miyaoka-img-loader",{src:[1],alt:[1],loading:[1],scale:[2],rotate:[2],opacity:[2],duration:[2],delay:[2],img:[32],isLoaded:[32]}]]]],t)}))};export{defineCustomElements}; |
@@ -1,1 +0,1 @@ | ||
import{p as plt,w as win,d as doc,N as NAMESPACE,a as promiseResolve,b as bootstrapLazy}from"./index-ccf63fe3.js";var getDynamicImportFunction=function(r){return"__sc_import_"+r.replace(/\s|-/g,"_")};var patchBrowser=function(){{plt.$cssShim$=win.__cssshim}var r=Array.from(doc.querySelectorAll("script")).find((function(r){return new RegExp("/"+NAMESPACE+"(\\.esm)?\\.js($|\\?|#)").test(r.src)||r.getAttribute("data-stencil-namespace")===NAMESPACE}));var t=r["data-opts"]||{};if("onbeforeload"in r&&!history.scrollRestoration){return{then:function(){}}}{t.resourcesUrl=new URL(".",new URL(r.getAttribute("data-resources-url")||r.src,win.location.href)).href;{patchDynamicImport(t.resourcesUrl,r)}if(!win.customElements){return import("./dom-424264d0.js").then((function(){return t}))}}return promiseResolve(t)};var patchDynamicImport=function(r,t){var e=getDynamicImportFunction(NAMESPACE);try{win[e]=new Function("w","return import(w);//"+Math.random())}catch(o){var n=new Map;win[e]=function(o){var a=new URL(o,r).href;var i=n.get(a);if(!i){var c=doc.createElement("script");c.type="module";c.crossOrigin=t.crossOrigin;c.src=URL.createObjectURL(new Blob(["import * as m from '"+a+"'; window."+e+".m = m;"],{type:"application/javascript"}));i=new Promise((function(r){c.onload=function(){r(win[e].m);c.remove()}}));n.set(a,i);doc.head.appendChild(c)}return i}}};patchBrowser().then((function(r){return bootstrapLazy([["miyaoka-embed-tweet_2",[[0,"miyaoka-embed-tweet",{src:[1]}],[1,"miyaoka-img-loader",{src:[1],alt:[1],scale:[2],rotate:[2],opacity:[2],duration:[2],delay:[2],img:[32],isLoaded:[32]}]]]],r)})); | ||
import{p as plt,w as win,d as doc,N as NAMESPACE,a as promiseResolve,b as bootstrapLazy}from"./index-ccf63fe3.js";var getDynamicImportFunction=function(r){return"__sc_import_"+r.replace(/\s|-/g,"_")};var patchBrowser=function(){{plt.$cssShim$=win.__cssshim}var r=Array.from(doc.querySelectorAll("script")).find((function(r){return new RegExp("/"+NAMESPACE+"(\\.esm)?\\.js($|\\?|#)").test(r.src)||r.getAttribute("data-stencil-namespace")===NAMESPACE}));var t=r["data-opts"]||{};if("onbeforeload"in r&&!history.scrollRestoration){return{then:function(){}}}{t.resourcesUrl=new URL(".",new URL(r.getAttribute("data-resources-url")||r.src,win.location.href)).href;{patchDynamicImport(t.resourcesUrl,r)}if(!win.customElements){return import("./dom-424264d0.js").then((function(){return t}))}}return promiseResolve(t)};var patchDynamicImport=function(r,t){var e=getDynamicImportFunction(NAMESPACE);try{win[e]=new Function("w","return import(w);//"+Math.random())}catch(o){var n=new Map;win[e]=function(o){var a=new URL(o,r).href;var i=n.get(a);if(!i){var c=doc.createElement("script");c.type="module";c.crossOrigin=t.crossOrigin;c.src=URL.createObjectURL(new Blob(["import * as m from '"+a+"'; window."+e+".m = m;"],{type:"application/javascript"}));i=new Promise((function(r){c.onload=function(){r(win[e].m);c.remove()}}));n.set(a,i);doc.head.appendChild(c)}return i}}};patchBrowser().then((function(r){return bootstrapLazy([["miyaoka-embed-tweet_2",[[0,"miyaoka-embed-tweet",{src:[1]}],[1,"miyaoka-img-loader",{src:[1],alt:[1],loading:[1],scale:[2],rotate:[2],opacity:[2],duration:[2],delay:[2],img:[32],isLoaded:[32]}]]]],r)})); |
@@ -1,1 +0,1 @@ | ||
var __awaiter=this&&this.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function a(t){try{c(n.next(t))}catch(e){o(e)}}function s(t){try{c(n["throw"](t))}catch(e){o(e)}}function c(t){t.done?r(t.value):i(t.value).then(a,s)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(a){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;i=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){r.label=a[1];break}if(a[0]===6&&r.label<o[1]){r.label=o[1];o=a;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(a);break}if(o[2])r.ops.pop();r.trys.pop();continue}a=e.call(t,r)}catch(s){a=[6,s];i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host,g as getElement}from"./index-ccf63fe3.js";function loadScript(t){var e=t.src,r=t.id;var n=r?document.getElementById(r):null;return new Promise((function(t,i){if(n){t()}var o=document.createElement("script");o.setAttribute("src",e);document.head.appendChild(o);o.onload=function(){if(r)o.setAttribute("id",r);t()};o.onerror=function(t){return i(t)}}))}var miyaokaEmbedTweetCss=":host{display:block}";var twReg=new RegExp("https://twitter.com/[^/]+/status/(\\d+)");var twWidgetSrc="https://platform.twitter.com/widgets.js";var MiyaokaEmbedTweet=function(){function t(t){registerInstance(this,t);this.src=""}t.prototype.connectedCallback=function(){var t=this;var e=this.src.match(twReg);if(!e)return;var r=e[1];var n=new IntersectionObserver((function(e){e.forEach((function(e){if(!e.isIntersecting)return;n.unobserve(t.el);t.embedTweet(r)}))}),{rootMargin:"200%"});n.observe(this.el)};t.prototype.embedTweet=function(t){return __awaiter(this,void 0,void 0,(function(){var e,r,n,i;return __generator(this,(function(o){switch(o.label){case 0:i=window;if(!!((e=i.twttr)===null||e===void 0?void 0:e.ready))return[3,2];return[4,loadScript({src:twWidgetSrc,id:"twitter-widgets"})];case 1:o.sent();o.label=2;case 2:return[4,(n=(r=i.twttr)===null||r===void 0?void 0:r.widgets)===null||n===void 0?void 0:n.createTweet(t,this.el,{align:"center"})];case 3:o.sent();this.el.children[0].remove();this.el.classList.add("embedTweetLoaded");return[2]}}))}))};t.prototype.render=function(){return h(Host,null,h("p",null,h("a",{href:this.src,target:"_blank",rel:"noopener noreferrer"},this.src)))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();MiyaokaEmbedTweet.style=miyaokaEmbedTweetCss;var miyaokaImgLoaderCss=":host{width:100%;height:100%;overflow:hidden}img{width:100%;height:100%}";var MiyaokaImgLoader=function(){function t(t){registerInstance(this,t);this.alt="image";this.scale=.5;this.rotate=90;this.opacity=0;this.duration=200;this.delay=50;this.isLoaded=false}t.prototype.componentDidLoad=function(){var t=this;if(!this.img)return;if(this.img.complete){requestAnimationFrame((function(){return t.resetTransform()}));return}this.img.onload=function(){t.resetTransform()}};t.prototype.resetTransform=function(){this.isLoaded=true};t.prototype.render=function(){var t=this;var e=this.isLoaded?{}:{transform:"scale("+this.scale+") rotate("+this.rotate+"deg)",opacity:""+this.opacity};return h(Host,null,h("img",{ref:function(e){t.img=e},src:this.src,alt:this.alt,style:Object.assign(Object.assign({},e),{transitionDuration:this.duration+"ms",transitionDelay:this.delay+"ms"})}))};return t}();MiyaokaImgLoader.style=miyaokaImgLoaderCss;export{MiyaokaEmbedTweet as miyaoka_embed_tweet,MiyaokaImgLoader as miyaoka_img_loader}; | ||
var __awaiter=this&&this.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function a(t){try{c(n.next(t))}catch(e){o(e)}}function s(t){try{c(n["throw"](t))}catch(e){o(e)}}function c(t){t.done?r(t.value):i(t.value).then(a,s)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(a){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;i=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){r.label=a[1];break}if(a[0]===6&&r.label<o[1]){r.label=o[1];o=a;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(a);break}if(o[2])r.ops.pop();r.trys.pop();continue}a=e.call(t,r)}catch(s){a=[6,s];i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host,g as getElement}from"./index-ccf63fe3.js";function loadScript(t){var e=t.src,r=t.id;var n=r?document.getElementById(r):null;return new Promise((function(t,i){if(n){t()}var o=document.createElement("script");o.setAttribute("src",e);document.head.appendChild(o);o.onload=function(){if(r)o.setAttribute("id",r);t()};o.onerror=function(t){return i(t)}}))}var miyaokaEmbedTweetCss=":host{display:block}";var twReg=new RegExp("https://twitter.com/[^/]+/status/(\\d+)");var twWidgetSrc="https://platform.twitter.com/widgets.js";var MiyaokaEmbedTweet=function(){function t(t){registerInstance(this,t);this.src=""}t.prototype.connectedCallback=function(){var t=this;var e=this.src.match(twReg);if(!e)return;var r=e[1];var n=new IntersectionObserver((function(e){e.forEach((function(e){if(!e.isIntersecting)return;n.unobserve(t.el);t.embedTweet(r)}))}),{rootMargin:"200%"});n.observe(this.el)};t.prototype.embedTweet=function(t){return __awaiter(this,void 0,void 0,(function(){var e,r,n,i;return __generator(this,(function(o){switch(o.label){case 0:i=window;if(!!((e=i.twttr)===null||e===void 0?void 0:e.ready))return[3,2];return[4,loadScript({src:twWidgetSrc,id:"twitter-widgets"})];case 1:o.sent();o.label=2;case 2:return[4,(n=(r=i.twttr)===null||r===void 0?void 0:r.widgets)===null||n===void 0?void 0:n.createTweet(t,this.el,{align:"center"})];case 3:o.sent();this.el.children[0].remove();this.el.classList.add("embedTweetLoaded");return[2]}}))}))};t.prototype.render=function(){return h(Host,null,h("p",null,h("a",{href:this.src,target:"_blank",rel:"noopener noreferrer"},this.src)))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();MiyaokaEmbedTweet.style=miyaokaEmbedTweetCss;var miyaokaImgLoaderCss=":host{width:100%;height:100%;overflow:hidden}img{width:100%;height:100%}";var MiyaokaImgLoader=function(){function t(t){registerInstance(this,t);this.alt="image";this.loading="lazy";this.scale=.5;this.rotate=90;this.opacity=0;this.duration=200;this.delay=50;this.isLoaded=false}t.prototype.componentDidLoad=function(){var t=this;if(!this.img)return;if(this.img.complete){requestAnimationFrame((function(){return t.resetTransform()}));return}this.img.onload=function(){t.resetTransform()}};t.prototype.resetTransform=function(){this.isLoaded=true};t.prototype.render=function(){var t=this;var e=this.isLoaded?{}:{transform:"scale("+this.scale+") rotate("+this.rotate+"deg)",opacity:""+this.opacity};return h(Host,null,h("img",{ref:function(e){t.img=e},src:this.src,alt:this.alt,loading:this.loading,style:Object.assign(Object.assign({},e),{transitionDuration:this.duration+"ms",transitionDelay:this.delay+"ms"})}))};return t}();MiyaokaImgLoader.style=miyaokaImgLoaderCss;export{MiyaokaEmbedTweet as miyaoka_embed_tweet,MiyaokaImgLoader as miyaoka_img_loader}; |
@@ -27,3 +27,3 @@ import { C as CSS, p as plt, w as win, a as promiseResolve, b as bootstrapLazy } from './index-ccf63fe3.js'; | ||
return patchEsm().then(() => { | ||
return bootstrapLazy([["miyaoka-embed-tweet_2",[[0,"miyaoka-embed-tweet",{"src":[1]}],[1,"miyaoka-img-loader",{"src":[1],"alt":[1],"scale":[2],"rotate":[2],"opacity":[2],"duration":[2],"delay":[2],"img":[32],"isLoaded":[32]}]]]], options); | ||
return bootstrapLazy([["miyaoka-embed-tweet_2",[[0,"miyaoka-embed-tweet",{"src":[1]}],[1,"miyaoka-img-loader",{"src":[1],"alt":[1],"loading":[1],"scale":[2],"rotate":[2],"opacity":[2],"duration":[2],"delay":[2],"img":[32],"isLoaded":[32]}]]]], options); | ||
}); | ||
@@ -30,0 +30,0 @@ }; |
@@ -80,3 +80,3 @@ import { p as plt, w as win, d as doc, N as NAMESPACE, a as promiseResolve, b as bootstrapLazy } from './index-ccf63fe3.js'; | ||
patchBrowser().then(options => { | ||
return bootstrapLazy([["miyaoka-embed-tweet_2",[[0,"miyaoka-embed-tweet",{"src":[1]}],[1,"miyaoka-img-loader",{"src":[1],"alt":[1],"scale":[2],"rotate":[2],"opacity":[2],"duration":[2],"delay":[2],"img":[32],"isLoaded":[32]}]]]], options); | ||
return bootstrapLazy([["miyaoka-embed-tweet_2",[[0,"miyaoka-embed-tweet",{"src":[1]}],[1,"miyaoka-img-loader",{"src":[1],"alt":[1],"loading":[1],"scale":[2],"rotate":[2],"opacity":[2],"duration":[2],"delay":[2],"img":[32],"isLoaded":[32]}]]]], options); | ||
}); |
@@ -73,2 +73,3 @@ import { r as registerInstance, h, H as Host, g as getElement } from './index-ccf63fe3.js'; | ||
this.alt = 'image'; | ||
this.loading = 'lazy'; | ||
this.scale = 0.5; | ||
@@ -104,3 +105,3 @@ this.rotate = 90; | ||
this.img = el; | ||
}, src: this.src, alt: this.alt, style: Object.assign(Object.assign({}, style), { transitionDuration: `${this.duration}ms`, transitionDelay: `${this.delay}ms` }) }))); | ||
}, src: this.src, alt: this.alt, loading: this.loading, style: Object.assign(Object.assign({}, style), { transitionDuration: `${this.duration}ms`, transitionDelay: `${this.delay}ms` }) }))); | ||
} | ||
@@ -107,0 +108,0 @@ }; |
@@ -1,1 +0,1 @@ | ||
import{p as a,w as e,d as t,N as o,a as s,b as r}from"./p-d39dfef0.js";(()=>{a.t=e.__cssshim;const r=Array.from(t.querySelectorAll("script")).find((a=>new RegExp(`/${o}(\\.esm)?\\.js($|\\?|#)`).test(a.src)||a.getAttribute("data-stencil-namespace")===o)),n=r["data-opts"]||{};return"onbeforeload"in r&&!history.scrollRestoration?{then(){}}:(n.resourcesUrl=new URL(".",new URL(r.getAttribute("data-resources-url")||r.src,e.location.href)).href,((a,s)=>{const r="__sc_import_"+o.replace(/\s|-/g,"_");try{e[r]=new Function("w","return import(w);//"+Math.random())}catch(n){const o=new Map;e[r]=n=>{const i=new URL(n,a).href;let c=o.get(i);if(!c){const a=t.createElement("script");a.type="module",a.crossOrigin=s.crossOrigin,a.src=URL.createObjectURL(new Blob([`import * as m from '${i}'; window.${r}.m = m;`],{type:"application/javascript"})),c=new Promise((t=>{a.onload=()=>{t(e[r].m),a.remove()}})),o.set(i,c),t.head.appendChild(a)}return c}}})(n.resourcesUrl,r),e.customElements?s(n):__sc_import_miyaoka_components("./p-b4e039be.js").then((()=>n)))})().then((a=>r([["p-079a56c1",[[0,"miyaoka-embed-tweet",{src:[1]}],[1,"miyaoka-img-loader",{src:[1],alt:[1],scale:[2],rotate:[2],opacity:[2],duration:[2],delay:[2],img:[32],isLoaded:[32]}]]]],a))); | ||
import{p as a,w as e,d as t,N as o,a as s,b as r}from"./p-d39dfef0.js";(()=>{a.t=e.__cssshim;const r=Array.from(t.querySelectorAll("script")).find((a=>new RegExp(`/${o}(\\.esm)?\\.js($|\\?|#)`).test(a.src)||a.getAttribute("data-stencil-namespace")===o)),n=r["data-opts"]||{};return"onbeforeload"in r&&!history.scrollRestoration?{then(){}}:(n.resourcesUrl=new URL(".",new URL(r.getAttribute("data-resources-url")||r.src,e.location.href)).href,((a,s)=>{const r="__sc_import_"+o.replace(/\s|-/g,"_");try{e[r]=new Function("w","return import(w);//"+Math.random())}catch(n){const o=new Map;e[r]=n=>{const i=new URL(n,a).href;let c=o.get(i);if(!c){const a=t.createElement("script");a.type="module",a.crossOrigin=s.crossOrigin,a.src=URL.createObjectURL(new Blob([`import * as m from '${i}'; window.${r}.m = m;`],{type:"application/javascript"})),c=new Promise((t=>{a.onload=()=>{t(e[r].m),a.remove()}})),o.set(i,c),t.head.appendChild(a)}return c}}})(n.resourcesUrl,r),e.customElements?s(n):__sc_import_miyaoka_components("./p-b4e039be.js").then((()=>n)))})().then((a=>r([["p-40cb1646",[[0,"miyaoka-embed-tweet",{src:[1]}],[1,"miyaoka-img-loader",{src:[1],alt:[1],loading:[1],scale:[2],rotate:[2],opacity:[2],duration:[2],delay:[2],img:[32],isLoaded:[32]}]]]],a))); |
@@ -1,1 +0,1 @@ | ||
System.register(["./p-60037dfb.system.js"],(function(e,r){"use strict";var t,n,s,o,i,a;return{setters:[function(e){t=e.p;n=e.w;s=e.d;o=e.N;i=e.a;a=e.b}],execute:function(){var e=function(e){return"__sc_import_"+e.replace(/\s|-/g,"_")};var c=function(){{t.$cssShim$=n.__cssshim}var e=Array.from(s.querySelectorAll("script")).find((function(e){return new RegExp("/"+o+"(\\.esm)?\\.js($|\\?|#)").test(e.src)||e.getAttribute("data-stencil-namespace")===o}));var a=e["data-opts"]||{};if("onbeforeload"in e&&!history.scrollRestoration){return{then:function(){}}}{a.resourcesUrl=new URL(".",new URL(e.getAttribute("data-resources-url")||e.src,n.location.href)).href;{u(a.resourcesUrl,e)}if(!n.customElements){return r.import("./p-6be85f10.system.js").then((function(){return a}))}}return i(a)};var u=function(r,t){var i=e(o);try{n[i]=new Function("w","return import(w);//"+Math.random())}catch(c){var a=new Map;n[i]=function(e){var o=new URL(e,r).href;var c=a.get(o);if(!c){var u=s.createElement("script");u.type="module";u.crossOrigin=t.crossOrigin;u.src=URL.createObjectURL(new Blob(["import * as m from '"+o+"'; window."+i+".m = m;"],{type:"application/javascript"}));c=new Promise((function(e){u.onload=function(){e(n[i].m);u.remove()}}));a.set(o,c);s.head.appendChild(u)}return c}}};c().then((function(e){return a([["p-93733f1e.system",[[0,"miyaoka-embed-tweet",{src:[1]}],[1,"miyaoka-img-loader",{src:[1],alt:[1],scale:[2],rotate:[2],opacity:[2],duration:[2],delay:[2],img:[32],isLoaded:[32]}]]]],e)}))}}})); | ||
System.register(["./p-60037dfb.system.js"],(function(e,r){"use strict";var t,n,s,o,i,a;return{setters:[function(e){t=e.p;n=e.w;s=e.d;o=e.N;i=e.a;a=e.b}],execute:function(){var e=function(e){return"__sc_import_"+e.replace(/\s|-/g,"_")};var c=function(){{t.$cssShim$=n.__cssshim}var e=Array.from(s.querySelectorAll("script")).find((function(e){return new RegExp("/"+o+"(\\.esm)?\\.js($|\\?|#)").test(e.src)||e.getAttribute("data-stencil-namespace")===o}));var a=e["data-opts"]||{};if("onbeforeload"in e&&!history.scrollRestoration){return{then:function(){}}}{a.resourcesUrl=new URL(".",new URL(e.getAttribute("data-resources-url")||e.src,n.location.href)).href;{u(a.resourcesUrl,e)}if(!n.customElements){return r.import("./p-6be85f10.system.js").then((function(){return a}))}}return i(a)};var u=function(r,t){var i=e(o);try{n[i]=new Function("w","return import(w);//"+Math.random())}catch(c){var a=new Map;n[i]=function(e){var o=new URL(e,r).href;var c=a.get(o);if(!c){var u=s.createElement("script");u.type="module";u.crossOrigin=t.crossOrigin;u.src=URL.createObjectURL(new Blob(["import * as m from '"+o+"'; window."+i+".m = m;"],{type:"application/javascript"}));c=new Promise((function(e){u.onload=function(){e(n[i].m);u.remove()}}));a.set(o,c);s.head.appendChild(u)}return c}}};c().then((function(e){return a([["p-d6791953.system",[[0,"miyaoka-embed-tweet",{src:[1]}],[1,"miyaoka-img-loader",{src:[1],alt:[1],loading:[1],scale:[2],rotate:[2],opacity:[2],duration:[2],delay:[2],img:[32],isLoaded:[32]}]]]],e)}))}}})); |
@@ -16,2 +16,3 @@ /* eslint-disable */ | ||
"duration": number; | ||
"loading": string; | ||
"opacity": number; | ||
@@ -49,2 +50,3 @@ "rotate": number; | ||
"duration"?: number; | ||
"loading"?: string; | ||
"opacity"?: number; | ||
@@ -51,0 +53,0 @@ "rotate"?: number; |
export declare class MiyaokaImgLoader { | ||
src: string; | ||
alt: string; | ||
loading: string; | ||
scale: number; | ||
@@ -5,0 +6,0 @@ rotate: number; |
{ | ||
"name": "@miyaoka/miyaoka-components", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Stencil Component Starter", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
686560
7089