@htmlbricks/hb-modal-video 0.6.8 → 0.6.9
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.
- package/extra/docs.ts +2 -2
- package/package.json +3 -3
- package/release/docs.js +2 -2
- package/release/docs.js.map +1 -1
- package/release/docs.ts +2 -2
- package/release/release.js +1 -1
package/extra/docs.ts
CHANGED
|
@@ -6,7 +6,7 @@ export const storybookArgs = {
|
|
|
6
6
|
item: { control: { type: "text" } },
|
|
7
7
|
};
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
const cssVars: CssVar[] = [];
|
|
10
10
|
export const cssParts: CssPart[] = [];
|
|
11
11
|
export const htmlSlots: HtmlSlot[] = [];
|
|
12
12
|
export const i18nLanguages: i18nLang[] = [];
|
|
@@ -14,5 +14,5 @@ export const i18nLanguages: i18nLang[] = [];
|
|
|
14
14
|
export const styleSetup: StyleSetup = {
|
|
15
15
|
vars: cssVars,
|
|
16
16
|
parts: cssParts,
|
|
17
|
-
themes: [],
|
|
17
|
+
themes: ["bootstrap"],
|
|
18
18
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@htmlbricks/hb-modal-video",
|
|
3
3
|
"displayName": "Svelte-Bootstrap Video Modal WebComponent",
|
|
4
4
|
"description": "Svelte-Bootstrap Video Modal WebComponent",
|
|
5
|
-
"version": "0.6.
|
|
5
|
+
"version": "0.6.9",
|
|
6
6
|
"main": "release/release.js",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"prepublish": "npm run build:release"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@htmlbricks/hb-jsutils": "^0.6.
|
|
30
|
+
"@htmlbricks/hb-jsutils": "^0.6.9",
|
|
31
31
|
"@rollup/plugin-alias": "^3.1.2",
|
|
32
32
|
"@rollup/plugin-commonjs": "^18.0.0",
|
|
33
33
|
"@rollup/plugin-json": "^4.1.0",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"webcomponents"
|
|
71
71
|
],
|
|
72
72
|
"contributors": [],
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "d9fc1ed3458c4f52f00d819b9a5004b56a34dc4d"
|
|
74
74
|
}
|
package/release/docs.js
CHANGED
|
@@ -3,13 +3,13 @@ export var storybookArgs = {
|
|
|
3
3
|
title: { control: { type: "text" } },
|
|
4
4
|
item: { control: { type: "text" } }
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
var cssVars = [];
|
|
7
7
|
export var cssParts = [];
|
|
8
8
|
export var htmlSlots = [];
|
|
9
9
|
export var i18nLanguages = [];
|
|
10
10
|
export var styleSetup = {
|
|
11
11
|
vars: cssVars,
|
|
12
12
|
parts: cssParts,
|
|
13
|
-
themes: []
|
|
13
|
+
themes: ["bootstrap"]
|
|
14
14
|
};
|
|
15
15
|
//# sourceMappingURL=docs.js.map
|
package/release/docs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,IAAM,aAAa,GAAG;IAC5B,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAClC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACpC,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CACnC,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,IAAM,aAAa,GAAG;IAC5B,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAClC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACpC,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CACnC,CAAC;AAEF,IAAM,OAAO,GAAa,EAAE,CAAC;AAC7B,MAAM,CAAC,IAAM,QAAQ,GAAc,EAAE,CAAC;AACtC,MAAM,CAAC,IAAM,SAAS,GAAe,EAAE,CAAC;AACxC,MAAM,CAAC,IAAM,aAAa,GAAe,EAAE,CAAC;AAE5C,MAAM,CAAC,IAAM,UAAU,GAAe;IACrC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,CAAC,WAAW,CAAC;CACrB,CAAC"}
|
package/release/docs.ts
CHANGED
|
@@ -6,7 +6,7 @@ export const storybookArgs = {
|
|
|
6
6
|
item: { control: { type: "text" } },
|
|
7
7
|
};
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
const cssVars: CssVar[] = [];
|
|
10
10
|
export const cssParts: CssPart[] = [];
|
|
11
11
|
export const htmlSlots: HtmlSlot[] = [];
|
|
12
12
|
export const i18nLanguages: i18nLang[] = [];
|
|
@@ -14,5 +14,5 @@ export const i18nLanguages: i18nLang[] = [];
|
|
|
14
14
|
export const styleSetup: StyleSetup = {
|
|
15
15
|
vars: cssVars,
|
|
16
16
|
parts: cssParts,
|
|
17
|
-
themes: [],
|
|
17
|
+
themes: ["bootstrap"],
|
|
18
18
|
};
|
package/release/release.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function o(t){t.forEach(e)}function r(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s,c;function l(t,e){return s||(s=document.createElement("a")),s.href=e,t===s.href}function u(t,e){t.appendChild(e)}function a(t,e,n){t.insertBefore(e,n||null)}function d(t){t.parentNode.removeChild(t)}function f(t){return document.createElement(t)}function h(t){return document.createTextNode(t)}function p(){return h(" ")}function m(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function $(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:m(t,e,n)}function g(t,e,n,o){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,o?"important":"")}function b(t){const e={};for(const n of t)e[n.name]=n.value;return e}function v(t){c=t}function y(){if(!c)throw new Error("Function called outside component initialization");return c}function w(){const t=y();return(e,n)=>{const o=t.$$.callbacks[e];if(o){const r=function(t,e,n=!1){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,!1,e),o}(e,n);o.slice().forEach((e=>{e.call(t,r)}))}}}const E=[],x=[],_=[],k=[],C=Promise.resolve();let j=!1;function T(t){_.push(t)}const A=new Set;let L=0;function M(){const t=c;do{for(;L<E.length;){const t=E[L];L++,v(t),N(t.$$)}for(v(null),E.length=0,L=0;x.length;)x.pop()();for(let t=0;t<_.length;t+=1){const e=_[t];A.has(e)||(A.add(e),e())}_.length=0}while(E.length);for(;k.length;)k.pop()();j=!1,A.clear(),v(t)}function N(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(T)}}const R=new Set;function S(t,e){-1===t.$$.dirty[0]&&(E.push(t),j||(j=!0,C.then(M)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function H(i,s,l,u,a,f,h,p=[-1]){const m=c;v(i);const $=i.$$={fragment:null,ctx:null,props:f,update:t,not_equal:a,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(m?m.$$.context:[])),callbacks:n(),dirty:p,skip_bound:!1,root:s.target||m.$$.root};h&&h($.root);let g=!1;if($.ctx=l?l(i,s.props||{},((t,e,...n)=>{const o=n.length?n[0]:e;return $.ctx&&a($.ctx[t],$.ctx[t]=o)&&(!$.skip_bound&&$.bound[t]&&$.bound[t](o),g&&S(i,t)),e})):[],$.update(),g=!0,o($.before_update),$.fragment=!!u&&u($.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);$.fragment&&$.fragment.l(t),t.forEach(d)}else $.fragment&&$.fragment.c();s.intro&&((b=i.$$.fragment)&&b.i&&(R.delete(b),b.i(y))),function(t,n,i,s){const{fragment:c,on_mount:l,on_destroy:u,after_update:a}=t.$$;c&&c.m(n,i),s||T((()=>{const n=l.map(e).filter(r);u?u.push(...n):o(n),t.$$.on_mount=[]})),a.forEach(T)}(i,s.target,s.anchor,s.customElement),M()}var b,y;v(m)}let O;"function"==typeof HTMLElement&&(O=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(r);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var P="0.6.
|
|
1
|
+
var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function o(t){t.forEach(e)}function r(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s,c;function l(t,e){return s||(s=document.createElement("a")),s.href=e,t===s.href}function u(t,e){t.appendChild(e)}function a(t,e,n){t.insertBefore(e,n||null)}function d(t){t.parentNode.removeChild(t)}function f(t){return document.createElement(t)}function h(t){return document.createTextNode(t)}function p(){return h(" ")}function m(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function $(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:m(t,e,n)}function g(t,e,n,o){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,o?"important":"")}function b(t){const e={};for(const n of t)e[n.name]=n.value;return e}function v(t){c=t}function y(){if(!c)throw new Error("Function called outside component initialization");return c}function w(){const t=y();return(e,n)=>{const o=t.$$.callbacks[e];if(o){const r=function(t,e,n=!1){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,!1,e),o}(e,n);o.slice().forEach((e=>{e.call(t,r)}))}}}const E=[],x=[],_=[],k=[],C=Promise.resolve();let j=!1;function T(t){_.push(t)}const A=new Set;let L=0;function M(){const t=c;do{for(;L<E.length;){const t=E[L];L++,v(t),N(t.$$)}for(v(null),E.length=0,L=0;x.length;)x.pop()();for(let t=0;t<_.length;t+=1){const e=_[t];A.has(e)||(A.add(e),e())}_.length=0}while(E.length);for(;k.length;)k.pop()();j=!1,A.clear(),v(t)}function N(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(T)}}const R=new Set;function S(t,e){-1===t.$$.dirty[0]&&(E.push(t),j||(j=!0,C.then(M)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function H(i,s,l,u,a,f,h,p=[-1]){const m=c;v(i);const $=i.$$={fragment:null,ctx:null,props:f,update:t,not_equal:a,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(m?m.$$.context:[])),callbacks:n(),dirty:p,skip_bound:!1,root:s.target||m.$$.root};h&&h($.root);let g=!1;if($.ctx=l?l(i,s.props||{},((t,e,...n)=>{const o=n.length?n[0]:e;return $.ctx&&a($.ctx[t],$.ctx[t]=o)&&(!$.skip_bound&&$.bound[t]&&$.bound[t](o),g&&S(i,t)),e})):[],$.update(),g=!0,o($.before_update),$.fragment=!!u&&u($.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);$.fragment&&$.fragment.l(t),t.forEach(d)}else $.fragment&&$.fragment.c();s.intro&&((b=i.$$.fragment)&&b.i&&(R.delete(b),b.i(y))),function(t,n,i,s){const{fragment:c,on_mount:l,on_destroy:u,after_update:a}=t.$$;c&&c.m(n,i),s||T((()=>{const n=l.map(e).filter(r);u?u.push(...n):o(n),t.$$.on_mount=[]})),a.forEach(T)}(i,s.target,s.anchor,s.customElement),M()}var b,y;v(m)}let O;"function"==typeof HTMLElement&&(O=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(r);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var P="0.6.9";function B(t){let e,n,o,r;return{c(){e=f("span"),n=f("slot"),o=h("Video: "),r=h(t[2]),m(n,"name","title"),m(e,"slot","title")},m(t,i){a(t,e,i),u(e,n),u(n,o),u(n,r)},p(t,e){4&e&&function(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}(r,t[2])},d(t){t&&d(e)}}}function F(t){let e;function n(t,e){return"youtube"===t[3]?q:Y}let o=n(t),r=o(t);return{c(){r.c(),e=h("")},m(t,n){r.m(t,n),a(t,e,n)},p(t,i){o===(o=n(t))&&r?r.p(t,i):(r.d(1),r=o(t),r&&(r.c(),r.m(e.parentNode,e)))},d(t){r.d(t),t&&d(e)}}}function Y(t){let e,n,o,r,i,s;return{c(){e=f("div"),n=f("video"),o=f("track"),r=f("source"),s=h("\n\t\t\t\t\t\tYour browser does not support the video tag."),m(o,"kind","captions"),l(r.src,i=t[1])||m(r,"src",i),m(r,"type","video/mp4"),n.controls=!0,g(n,"aspect-ratio","16 / 9"),g(n,"width","100%"),g(e,"aspect-ratio","16 / 9"),g(e,"width","100%"),g(e,"text-align","center"),g(e,"background-color","black")},m(t,i){a(t,e,i),u(e,n),u(n,o),u(n,r),u(n,s)},p(t,e){2&e&&!l(r.src,i=t[1])&&m(r,"src",i)},d(t){t&&d(e)}}}function q(t){let e,n,o;return{c(){e=f("div"),n=f("iframe"),g(n,"border","0"),g(n,"aspect-ratio","16 / 9"),g(n,"width","100%"),l(n.src,o=t[1])||m(n,"src",o),m(n,"title","YouTube video"),n.allowFullscreen=!0,g(e,"ratio","16/9"),g(e,"width","100%"),g(e,"text-align","center")},m(t,o){a(t,e,o),u(e,n)},p(t,e){2&e&&!l(n.src,o=t[1])&&m(n,"src",o)},d(t){t&&d(e)}}}function z(e){let n,o,r,i,s,c,l,h,g=e[2]&&B(e),b=e[1]&&F(e);return{c(){n=f("hb-dialog"),g&&g.c(),o=p(),r=f("div"),b&&b.c(),i=p(),s=f("span"),this.c=t,m(r,"slot","body-content"),m(s,"slot","modal-footer"),$(n,"id",e[0]),$(n,"show",c=e[1]?"yes":"no")},m(t,c){var d,f,p,m;a(t,n,c),g&&g.m(n,null),u(n,o),u(n,r),b&&b.m(r,null),u(n,i),u(n,s),l||(d=n,f="modalShow",p=e[6],d.addEventListener(f,p,m),h=()=>d.removeEventListener(f,p,m),l=!0)},p(t,[e]){t[2]?g?g.p(t,e):(g=B(t),g.c(),g.m(n,o)):g&&(g.d(1),g=null),t[1]?b?b.p(t,e):(b=F(t),b.c(),b.m(r,null)):b&&(b.d(1),b=null),1&e&&$(n,"id",t[0]),2&e&&c!==(c=t[1]?"yes":"no")&&$(n,"show",c)},i:t,o:t,d(t){t&&d(n),g&&g.d(),b&&b.d(),l=!1,h()}}}function I(t,e,n){const o=y(),r=w();!function(t){if(!document.getElementById("hb-"+t+"-script")){const e=document.createElement("script");e.id="hb-"+t+"-script",e.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-${t}@${P}/release/release.js`,location.href.includes("localhost")&&(e.src=`http://localhost:6006/${t}/dist/release.js`),document.head.appendChild(e)}}("dialog");let{id:i}=e,{item:s}=e,{uri:c}=e,{title:l}=e,{provider:u}=e;function a(t){t.show?n(0,s=t.id):(n(0,s=""),n(1,c=""),n(2,l="")),function(t,e){r(t,e),o.dispatchEvent&&o.dispatchEvent(new CustomEvent(t,{detail:e}))}("videoModalEvent",{id:s,show:t.show})}return t.$$set=t=>{"id"in t&&n(5,i=t.id),"item"in t&&n(0,s=t.item),"uri"in t&&n(1,c=t.uri),"title"in t&&n(2,l=t.title),"provider"in t&&n(3,u=t.provider)},t.$$.update=()=>{47&t.$$.dirty&&(i||n(5,i=null),s||n(0,s=""),c||n(1,c=""),l||n(2,l=""),u||n(3,u=""))},[s,c,l,u,a,i,t=>a(t.detail)]}class V extends O{constructor(t){super(),this.shadowRoot.innerHTML='<style>@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host{font-family:"Roboto", sans-serif}</style>',H(this,{target:this.shadowRoot,props:b(this.attributes),customElement:!0},I,z,i,{id:5,item:0,uri:1,title:2,provider:3},null),t&&(t.target&&a(t.target,this,t.anchor),t.props&&(this.$set(t.props),M()))}static get observedAttributes(){return["id","item","uri","title","provider"]}get id(){return this.$$.ctx[5]}set id(t){this.$$set({id:t}),M()}get item(){return this.$$.ctx[0]}set item(t){this.$$set({item:t}),M()}get uri(){return this.$$.ctx[1]}set uri(t){this.$$set({uri:t}),M()}get title(){return this.$$.ctx[2]}set title(t){this.$$set({title:t}),M()}get provider(){return this.$$.ctx[3]}set provider(t){this.$$set({provider:t}),M()}}return customElements.define("hb-modal-video",V),V}();
|
|
2
2
|
//# sourceMappingURL=release.js.map
|