@deckdeckgo/slide-youtube
Advanced tools
Comparing version 1.0.0-rc.1 to 1.0.0-rc.1-1
@@ -6,3 +6,3 @@ 'use strict'; | ||
core.patchBrowser().then(options => { | ||
return core.bootstrapLazy([["deckgo-slide-youtube_2.cjs",[[1,"deckgo-slide-youtube",{"src":[513],"width":[2],"height":[2],"customActions":[516,"custom-actions"],"customBackground":[516,"custom-background"],"videoWidth":[32],"videoHeight":[32],"frameTitle":[32],"beforeSwipe":[64],"afterSwipe":[64],"lazyLoadContent":[64],"revealContent":[64],"hideContent":[64],"play":[64],"pause":[64],"toggle":[64]}],[1,"deckgo-youtube",{"src":[1],"width":[2],"height":[2],"frameTitle":[1,"frame-title"],"updateIFrame":[64],"lazyLoadContent":[64],"play":[64],"pause":[64]}]]]], options); | ||
return core.bootstrapLazy([["deckgo-slide-youtube_2.cjs",[[1,"deckgo-slide-youtube",{"src":[513],"width":[2],"height":[2],"customActions":[516,"custom-actions"],"customBackground":[516,"custom-background"],"videoWidth":[32],"videoHeight":[32],"frameTitle":[32],"beforeSwipe":[64],"afterSwipe":[64],"lazyLoadContent":[64],"revealContent":[64],"hideContent":[64],"play":[64],"pause":[64],"toggle":[64]}],[1,"deckgo-youtube",{"src":[1],"width":[2],"height":[2],"frameTitle":[1,"frame-title"],"loading":[32],"updateIFrame":[64],"lazyLoadContent":[64],"play":[64],"pause":[64]}]]]], options); | ||
}); |
@@ -245,2 +245,3 @@ 'use strict'; | ||
core.registerInstance(this, hostRef); | ||
this.loading = false; | ||
} | ||
@@ -287,2 +288,6 @@ async componentDidLoad() { | ||
} | ||
if (this.loading) { | ||
resolve(); | ||
return; | ||
} | ||
const iframe = this.el.shadowRoot.querySelector('iframe'); | ||
@@ -293,2 +298,3 @@ if (iframe && !iframe.parentElement) { | ||
} | ||
this.loading = true; | ||
if (iframe) { | ||
@@ -315,2 +321,3 @@ iframe.parentElement.removeChild(iframe); | ||
div.appendChild(element); | ||
this.loading = false; | ||
resolve(); | ||
@@ -317,0 +324,0 @@ }); |
@@ -9,3 +9,3 @@ 'use strict'; | ||
return core.patchEsm().then(() => { | ||
core.bootstrapLazy([["deckgo-slide-youtube_2.cjs",[[1,"deckgo-slide-youtube",{"src":[513],"width":[2],"height":[2],"customActions":[516,"custom-actions"],"customBackground":[516,"custom-background"],"videoWidth":[32],"videoHeight":[32],"frameTitle":[32],"beforeSwipe":[64],"afterSwipe":[64],"lazyLoadContent":[64],"revealContent":[64],"hideContent":[64],"play":[64],"pause":[64],"toggle":[64]}],[1,"deckgo-youtube",{"src":[1],"width":[2],"height":[2],"frameTitle":[1,"frame-title"],"updateIFrame":[64],"lazyLoadContent":[64],"play":[64],"pause":[64]}]]]], options); | ||
core.bootstrapLazy([["deckgo-slide-youtube_2.cjs",[[1,"deckgo-slide-youtube",{"src":[513],"width":[2],"height":[2],"customActions":[516,"custom-actions"],"customBackground":[516,"custom-background"],"videoWidth":[32],"videoHeight":[32],"frameTitle":[32],"beforeSwipe":[64],"afterSwipe":[64],"lazyLoadContent":[64],"revealContent":[64],"hideContent":[64],"play":[64],"pause":[64],"toggle":[64]}],[1,"deckgo-youtube",{"src":[1],"width":[2],"height":[2],"frameTitle":[1,"frame-title"],"loading":[32],"updateIFrame":[64],"lazyLoadContent":[64],"play":[64],"pause":[64]}]]]], options); | ||
}); | ||
@@ -12,0 +12,0 @@ }; |
import { h } from "@stencil/core"; | ||
export class DeckdeckgoYoutube { | ||
constructor() { | ||
this.loading = false; | ||
} | ||
async componentDidLoad() { | ||
@@ -43,2 +46,6 @@ await this.addPreconnectLink(); | ||
} | ||
if (this.loading) { | ||
resolve(); | ||
return; | ||
} | ||
const iframe = this.el.shadowRoot.querySelector('iframe'); | ||
@@ -49,2 +56,3 @@ if (iframe && !iframe.parentElement) { | ||
} | ||
this.loading = true; | ||
if (iframe) { | ||
@@ -71,2 +79,3 @@ iframe.parentElement.removeChild(iframe); | ||
div.appendChild(element); | ||
this.loading = false; | ||
resolve(); | ||
@@ -211,2 +220,5 @@ }); | ||
}; } | ||
static get states() { return { | ||
"loading": {} | ||
}; } | ||
static get methods() { return { | ||
@@ -213,0 +225,0 @@ "updateIFrame": { |
@@ -1,1 +0,1 @@ | ||
import{p as e,b as t}from"./p-2cd1b6de.js";e().then(e=>t([["p-nuhqovvr",[[1,"deckgo-slide-youtube",{src:[513],width:[2],height:[2],customActions:[516,"custom-actions"],customBackground:[516,"custom-background"],videoWidth:[32],videoHeight:[32],frameTitle:[32],beforeSwipe:[64],afterSwipe:[64],lazyLoadContent:[64],revealContent:[64],hideContent:[64],play:[64],pause:[64],toggle:[64]}],[1,"deckgo-youtube",{src:[1],width:[2],height:[2],frameTitle:[1,"frame-title"],updateIFrame:[64],lazyLoadContent:[64],play:[64],pause:[64]}]]]],e)); | ||
import{p as e,b as t}from"./p-2cd1b6de.js";e().then(e=>t([["p-9dtomp3z",[[1,"deckgo-slide-youtube",{src:[513],width:[2],height:[2],customActions:[516,"custom-actions"],customBackground:[516,"custom-background"],videoWidth:[32],videoHeight:[32],frameTitle:[32],beforeSwipe:[64],afterSwipe:[64],lazyLoadContent:[64],revealContent:[64],hideContent:[64],play:[64],pause:[64],toggle:[64]}],[1,"deckgo-youtube",{src:[1],width:[2],height:[2],frameTitle:[1,"frame-title"],loading:[32],updateIFrame:[64],lazyLoadContent:[64],play:[64],pause:[64]}]]]],e)); |
@@ -1,1 +0,1 @@ | ||
System.register(["./p-0d1bada7.system.js"],function(){"use strict";var e,t;return{setters:[function(o){e=o.p;t=o.b}],execute:function(){e().then(function(e){return t([["p-4hhqnenf.system",[[1,"deckgo-slide-youtube",{src:[513],width:[2],height:[2],customActions:[516,"custom-actions"],customBackground:[516,"custom-background"],videoWidth:[32],videoHeight:[32],frameTitle:[32],beforeSwipe:[64],afterSwipe:[64],lazyLoadContent:[64],revealContent:[64],hideContent:[64],play:[64],pause:[64],toggle:[64]}],[1,"deckgo-youtube",{src:[1],width:[2],height:[2],frameTitle:[1,"frame-title"],updateIFrame:[64],lazyLoadContent:[64],play:[64],pause:[64]}]]]],e)})}}}); | ||
System.register(["./p-0d1bada7.system.js"],function(){"use strict";var e,t;return{setters:[function(o){e=o.p;t=o.b}],execute:function(){e().then(function(e){return t([["p-yxdv5pdz.system",[[1,"deckgo-slide-youtube",{src:[513],width:[2],height:[2],customActions:[516,"custom-actions"],customBackground:[516,"custom-background"],videoWidth:[32],videoHeight:[32],frameTitle:[32],beforeSwipe:[64],afterSwipe:[64],lazyLoadContent:[64],revealContent:[64],hideContent:[64],play:[64],pause:[64],toggle:[64]}],[1,"deckgo-youtube",{src:[1],width:[2],height:[2],frameTitle:[1,"frame-title"],loading:[32],updateIFrame:[64],lazyLoadContent:[64],play:[64],pause:[64]}]]]],e)})}}}); |
@@ -434,2 +434,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
registerInstance(this, hostRef); | ||
this.loading = false; | ||
} | ||
@@ -506,2 +507,6 @@ class_2.prototype.componentDidLoad = function () { | ||
} | ||
if (this.loading) { | ||
resolve(); | ||
return [2 /*return*/]; | ||
} | ||
iframe = this.el.shadowRoot.querySelector('iframe'); | ||
@@ -512,2 +517,3 @@ if (iframe && !iframe.parentElement) { | ||
} | ||
this.loading = true; | ||
if (iframe) { | ||
@@ -537,2 +543,3 @@ iframe.parentElement.removeChild(iframe); | ||
div.appendChild(element); | ||
this.loading = false; | ||
resolve(); | ||
@@ -539,0 +546,0 @@ return [2 /*return*/]; |
@@ -241,2 +241,3 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './core-362f29ab.js'; | ||
registerInstance(this, hostRef); | ||
this.loading = false; | ||
} | ||
@@ -283,2 +284,6 @@ async componentDidLoad() { | ||
} | ||
if (this.loading) { | ||
resolve(); | ||
return; | ||
} | ||
const iframe = this.el.shadowRoot.querySelector('iframe'); | ||
@@ -289,2 +294,3 @@ if (iframe && !iframe.parentElement) { | ||
} | ||
this.loading = true; | ||
if (iframe) { | ||
@@ -311,2 +317,3 @@ iframe.parentElement.removeChild(iframe); | ||
div.appendChild(element); | ||
this.loading = false; | ||
resolve(); | ||
@@ -313,0 +320,0 @@ }); |
@@ -8,2 +8,3 @@ import { DeckdeckgoComponent } from '@deckdeckgo/slide-utils'; | ||
frameTitle: string; | ||
private loading; | ||
componentDidLoad(): Promise<void>; | ||
@@ -10,0 +11,0 @@ private addPreconnectLink; |
{ | ||
"name": "@deckdeckgo/slide-youtube", | ||
"version": "1.0.0-rc.1", | ||
"version": "1.0.0-rc.1-1", | ||
"description": "The Content template is a simple slide which display a title and content aligned to the start of the page of the presentation", | ||
@@ -24,2 +24,6 @@ "main": "dist/index.js", | ||
}, | ||
"dependencies": { | ||
"@deckdeckgo/slide-utils": "^1.0.0-rc.1-1", | ||
"@deckdeckgo/utils": "^1.0.0-rc.1" | ||
}, | ||
"devDependencies": { | ||
@@ -52,7 +56,3 @@ "@stencil/core": "^1.3.1", | ||
"talk" | ||
], | ||
"dependencies": { | ||
"@deckdeckgo/slide-utils": "^1.0.0-rc.1-1", | ||
"@deckdeckgo/utils": "^1.0.0-rc.1" | ||
} | ||
] | ||
} |
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
893343
14522