@weareglow/media-components
Advanced tools
Comparing version 0.0.56 to 0.0.57
@@ -6,3 +6,3 @@ 'use strict'; | ||
const core = require('./core-48763cee.js'); | ||
const utils = require('./utils-5fef208f.js'); | ||
const utils = require('./utils-6f499f6a.js'); | ||
@@ -41,2 +41,3 @@ const MediaUnit = class { | ||
handlePageLoaded() { | ||
console.log("page loaded media unit"); | ||
this.pageLoaded = true; | ||
@@ -46,2 +47,3 @@ this.pageLoadedEmitter.emit(); | ||
handlePageVisible() { | ||
console.log("page visible media unit"); | ||
this.pageVisible = true; | ||
@@ -48,0 +50,0 @@ this.pageVisibleEmitter.emit(); |
@@ -6,3 +6,3 @@ 'use strict'; | ||
const core = require('./core-48763cee.js'); | ||
const utils = require('./utils-5fef208f.js'); | ||
const utils = require('./utils-6f499f6a.js'); | ||
@@ -9,0 +9,0 @@ const PoliteVideo = class { |
@@ -6,3 +6,3 @@ 'use strict'; | ||
const core = require('./core-48763cee.js'); | ||
const utils = require('./utils-5fef208f.js'); | ||
const utils = require('./utils-6f499f6a.js'); | ||
@@ -9,0 +9,0 @@ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; |
@@ -6,3 +6,3 @@ 'use strict'; | ||
const core = require('./core-48763cee.js'); | ||
const utils = require('./utils-5fef208f.js'); | ||
const utils = require('./utils-6f499f6a.js'); | ||
@@ -9,0 +9,0 @@ const TuneInDate = class { |
{ | ||
"entries": [ | ||
"components/Media-Unit/media-unit.js", | ||
"components/trailer-video/trailer-video.js", | ||
"components/cta-button/cta-button.js", | ||
"components/background-video/background-video.js", | ||
"components/polite-image/polite-image.js", | ||
"components/lockup/lockup.js", | ||
"components/polite-video/polite-video.js", | ||
"components/lockup/lockup.js", | ||
"components/polite-image/polite-image.js", | ||
"components/background-video/background-video.js", | ||
"components/cta-button/cta-button.js", | ||
"components/story/story.js", | ||
"components/trailer-video/trailer-video.js", | ||
"components/tune-in/tune-in.js" | ||
@@ -12,0 +12,0 @@ ], |
@@ -33,2 +33,3 @@ import { h, Host } from "@stencil/core"; | ||
handlePageLoaded() { | ||
console.log("page loaded media unit"); | ||
this.pageLoaded = true; | ||
@@ -38,2 +39,3 @@ this.pageLoadedEmitter.emit(); | ||
handlePageVisible() { | ||
console.log("page visible media unit"); | ||
this.pageVisible = true; | ||
@@ -40,0 +42,0 @@ this.pageVisibleEmitter.emit(); |
@@ -30,2 +30,3 @@ // Removing any references to Enabler within our media unit. | ||
init(onLoaded, onVisible) { | ||
console.log("init enabler events"); | ||
this.onLoaded = onLoaded; | ||
@@ -52,2 +53,3 @@ this.onVisible = onVisible; | ||
init(onLoaded, onVisible) { | ||
console.log("init dom events"); | ||
if (document.readyState === "interactive") { | ||
@@ -54,0 +56,0 @@ window.onload = onVisible; |
@@ -39,2 +39,3 @@ import loadingEvents from "./loading-events.js"; | ||
export function getUrl(src) { | ||
console.log(typeof Enabler); | ||
return typeof Enabler !== "undefined" && src ? Enabler.getUrl(src) : src; | ||
@@ -41,0 +42,0 @@ } |
@@ -38,3 +38,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { r as registerInstance, c as createEvent, h, H as Host } from './core-f24c606a.js'; | ||
import { l as loadingEvents, T as TuneIn } from './utils-2adfe37f.js'; | ||
import { l as loadingEvents, T as TuneIn } from './utils-3b5c6be0.js'; | ||
var MediaUnit = /** @class */ (function () { | ||
@@ -77,2 +77,3 @@ function class_1(hostRef) { | ||
class_1.prototype.handlePageLoaded = function () { | ||
console.log("page loaded media unit"); | ||
this.pageLoaded = true; | ||
@@ -82,2 +83,3 @@ this.pageLoadedEmitter.emit(); | ||
class_1.prototype.handlePageVisible = function () { | ||
console.log("page visible media unit"); | ||
this.pageVisible = true; | ||
@@ -84,0 +86,0 @@ this.pageVisibleEmitter.emit(); |
@@ -38,3 +38,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { r as registerInstance, c as createEvent, h } from './core-f24c606a.js'; | ||
import { t as trackVideo, g as getUrl } from './utils-2adfe37f.js'; | ||
import { t as trackVideo, g as getUrl } from './utils-3b5c6be0.js'; | ||
var PoliteVideo = /** @class */ (function () { | ||
@@ -41,0 +41,0 @@ function class_1(hostRef) { |
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './core-f24c606a.js'; | ||
import { t as trackVideo } from './utils-2adfe37f.js'; | ||
import { t as trackVideo } from './utils-3b5c6be0.js'; | ||
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; | ||
@@ -4,0 +4,0 @@ function unwrapExports(x) { |
import { r as registerInstance, h, H as Host, g as getElement } from './core-f24c606a.js'; | ||
import { T as TuneIn } from './utils-2adfe37f.js'; | ||
import { T as TuneIn } from './utils-3b5c6be0.js'; | ||
var TuneInDate = /** @class */ (function () { | ||
@@ -4,0 +4,0 @@ function TuneInDate(hostRef) { |
import { r as registerInstance, c as createEvent, h, H as Host } from './core-f24c606a.js'; | ||
import { l as loadingEvents, T as TuneIn } from './utils-2adfe37f.js'; | ||
import { l as loadingEvents, T as TuneIn } from './utils-3b5c6be0.js'; | ||
@@ -36,2 +36,3 @@ const MediaUnit = class { | ||
handlePageLoaded() { | ||
console.log("page loaded media unit"); | ||
this.pageLoaded = true; | ||
@@ -41,2 +42,3 @@ this.pageLoadedEmitter.emit(); | ||
handlePageVisible() { | ||
console.log("page visible media unit"); | ||
this.pageVisible = true; | ||
@@ -43,0 +45,0 @@ this.pageVisibleEmitter.emit(); |
import { r as registerInstance, c as createEvent, h } from './core-f24c606a.js'; | ||
import { t as trackVideo, g as getUrl } from './utils-2adfe37f.js'; | ||
import { t as trackVideo, g as getUrl } from './utils-3b5c6be0.js'; | ||
@@ -4,0 +4,0 @@ const PoliteVideo = class { |
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './core-f24c606a.js'; | ||
import { t as trackVideo } from './utils-2adfe37f.js'; | ||
import { t as trackVideo } from './utils-3b5c6be0.js'; | ||
@@ -4,0 +4,0 @@ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; |
import { r as registerInstance, h, H as Host, g as getElement } from './core-f24c606a.js'; | ||
import { T as TuneIn } from './utils-2adfe37f.js'; | ||
import { T as TuneIn } from './utils-3b5c6be0.js'; | ||
@@ -4,0 +4,0 @@ const TuneInDate = class { |
@@ -1,1 +0,1 @@ | ||
import{p as e,b as o}from"./p-4fe68d26.js";e().then(e=>o([["p-dg9pswru",[[0,"glow-background-video",{videoSrc:[1,"video-src"],posterImage:[1,"poster-image"],endframeImage:[1,"endframe-image"],autoplay:[4],play:[64],pause:[64]},[[0,"video-started","videoStartedHandler"],[0,"video-ended","videoEndedHandler"],[0,"video-loaded","videoLoadedHandler"]]]]],["p-9m82vmhr",[[4,"glow-trailer-video",{exitOnClick:[4,"exit-on-click"],showReplay:[4,"show-replay"],replayFrom:[2,"replay-from"],src:[1],posterImage:[1,"poster-image"],endframeImage:[1,"endframe-image"],width:[8],height:[8],videoTitle:[1,"video-title"],autoplay:[4],controlBtnFill:[1,"control-btn-fill"],controlBtnHoverFill:[1,"control-btn-hover-fill"],controlPosition:[1,"control-position"],controlIsHovered:[32],playing:[32],muted:[32],hasInteracted:[32],hasEnded:[32],play:[64],pause:[64]},[[0,"video-loaded","handleVideoLoaded"],[0,"video-started","handleVideoStarted"],[0,"video-played","handleVideoPlayed"],[0,"video-ended","handleVideoEnded"]]]]],["p-3jdivltj",[[4,"glow-media-unit",{previewBgColor:[1,"preview-bg-color"],exitLink:[1,"exit-link"],testDate:[8,"test-date"],size:[1],placeholderImage:[1,"placeholder-image"],pageVisible:[32],pageLoaded:[32],triggerExit:[64]},[[4,"media-exit","mediaUnitExit"]]],[0,"glow-polite-image",{src:[1],alt:[1],pageLoaded:[32]},[[4,"page-loaded","pageLoadedHandler"]]]]],["p-xwrbevqy",[[4,"glow-cta-button",{backgroundColor:[1,"background-color"],hoverBackgroundColor:[1,"hover-background-color"],fontColor:[1,"font-color"],hoverFontColor:[1,"hover-font-color"],buttonText:[1,"button-text"],hovered:[32]}]]],["p-ayowokyp",[[4,"glow-lockup",{lockupPadding:[1,"lockup-padding"],exitLink:[1,"exit-link"]}]]],["p-vu8ybdgz",[[4,"glow-story",{exitLink:[1,"exit-link"],autoAnimate:[4,"auto-animate"],endframeImage:[1,"endframe-image"],replayBtnFill:[1,"replay-btn-fill"],pageLoaded:[32],pageVisible:[32],playing:[32],storyLoaded:[32]},[[32,"page-loaded","handlePageLoaded"],[32,"page-visible","handlePageVisible"],[32,"media-exit","handleMediaExit"]]]]],["p-swb1lpbt",[[4,"glow-tune-in",{showBefore:[1,"show-before"],showAfter:[1,"show-after"],showOn:[1,"show-on"],showBetween:[1,"show-between"],isDefault:[4,"is-default"],isCurrent:[32]},[[32,"tune-in-ready","tuneInReadyHandler"]]]]],["p-uxp0v382",[[0,"glow-polite-video",{src:[1],muted:[4],autoplay:[4],endframeImage:[1,"endframe-image"],posterImage:[1,"poster-image"],videoTitle:[1,"video-title"],pageLoaded:[32],playing:[32],loaded:[32],showEndframe:[32],play:[64],setLoaded:[64],pause:[64],setCurrentTime:[64]},[[8,"page-visible","pageLoadedHandler"],[32,"media-exit","handleMediaExit"]]]]]],e)); | ||
import{p as e,b as o}from"./p-4fe68d26.js";e().then(e=>o([["p-dg9pswru",[[0,"glow-background-video",{videoSrc:[1,"video-src"],posterImage:[1,"poster-image"],endframeImage:[1,"endframe-image"],autoplay:[4],play:[64],pause:[64]},[[0,"video-started","videoStartedHandler"],[0,"video-ended","videoEndedHandler"],[0,"video-loaded","videoLoadedHandler"]]]]],["p-9m82vmhr",[[4,"glow-trailer-video",{exitOnClick:[4,"exit-on-click"],showReplay:[4,"show-replay"],replayFrom:[2,"replay-from"],src:[1],posterImage:[1,"poster-image"],endframeImage:[1,"endframe-image"],width:[8],height:[8],videoTitle:[1,"video-title"],autoplay:[4],controlBtnFill:[1,"control-btn-fill"],controlBtnHoverFill:[1,"control-btn-hover-fill"],controlPosition:[1,"control-position"],controlIsHovered:[32],playing:[32],muted:[32],hasInteracted:[32],hasEnded:[32],play:[64],pause:[64]},[[0,"video-loaded","handleVideoLoaded"],[0,"video-started","handleVideoStarted"],[0,"video-played","handleVideoPlayed"],[0,"video-ended","handleVideoEnded"]]]]],["p-ycdxhabe",[[4,"glow-media-unit",{previewBgColor:[1,"preview-bg-color"],exitLink:[1,"exit-link"],testDate:[8,"test-date"],size:[1],placeholderImage:[1,"placeholder-image"],pageVisible:[32],pageLoaded:[32],triggerExit:[64]},[[4,"media-exit","mediaUnitExit"]]],[0,"glow-polite-image",{src:[1],alt:[1],pageLoaded:[32]},[[4,"page-loaded","pageLoadedHandler"]]]]],["p-xwrbevqy",[[4,"glow-cta-button",{backgroundColor:[1,"background-color"],hoverBackgroundColor:[1,"hover-background-color"],fontColor:[1,"font-color"],hoverFontColor:[1,"hover-font-color"],buttonText:[1,"button-text"],hovered:[32]}]]],["p-ayowokyp",[[4,"glow-lockup",{lockupPadding:[1,"lockup-padding"],exitLink:[1,"exit-link"]}]]],["p-v6ngeyfd",[[4,"glow-story",{exitLink:[1,"exit-link"],autoAnimate:[4,"auto-animate"],endframeImage:[1,"endframe-image"],replayBtnFill:[1,"replay-btn-fill"],pageLoaded:[32],pageVisible:[32],playing:[32],storyLoaded:[32]},[[32,"page-loaded","handlePageLoaded"],[32,"page-visible","handlePageVisible"],[32,"media-exit","handleMediaExit"]]]]],["p-9dyanzhg",[[4,"glow-tune-in",{showBefore:[1,"show-before"],showAfter:[1,"show-after"],showOn:[1,"show-on"],showBetween:[1,"show-between"],isDefault:[4,"is-default"],isCurrent:[32]},[[32,"tune-in-ready","tuneInReadyHandler"]]]]],["p-jd7pkygb",[[0,"glow-polite-video",{src:[1],muted:[4],autoplay:[4],endframeImage:[1,"endframe-image"],posterImage:[1,"poster-image"],videoTitle:[1,"video-title"],pageLoaded:[32],playing:[32],loaded:[32],showEndframe:[32],play:[64],setLoaded:[64],pause:[64],setCurrentTime:[64]},[[8,"page-visible","pageLoadedHandler"],[32,"media-exit","handleMediaExit"]]]]]],e)); |
@@ -1,1 +0,1 @@ | ||
System.register(["./p-299d7d86.system.js"],(function(){"use strict";var e,o;return{setters:[function(a){e=a.p;o=a.b}],execute:function(){e().then((function(e){return o([["p-mngzlgno.system",[[0,"glow-background-video",{videoSrc:[1,"video-src"],posterImage:[1,"poster-image"],endframeImage:[1,"endframe-image"],autoplay:[4],play:[64],pause:[64]},[[0,"video-started","videoStartedHandler"],[0,"video-ended","videoEndedHandler"],[0,"video-loaded","videoLoadedHandler"]]]]],["p-texqlh53.system",[[4,"glow-trailer-video",{exitOnClick:[4,"exit-on-click"],showReplay:[4,"show-replay"],replayFrom:[2,"replay-from"],src:[1],posterImage:[1,"poster-image"],endframeImage:[1,"endframe-image"],width:[8],height:[8],videoTitle:[1,"video-title"],autoplay:[4],controlBtnFill:[1,"control-btn-fill"],controlBtnHoverFill:[1,"control-btn-hover-fill"],controlPosition:[1,"control-position"],controlIsHovered:[32],playing:[32],muted:[32],hasInteracted:[32],hasEnded:[32],play:[64],pause:[64]},[[0,"video-loaded","handleVideoLoaded"],[0,"video-started","handleVideoStarted"],[0,"video-played","handleVideoPlayed"],[0,"video-ended","handleVideoEnded"]]]]],["p-1kwxodtp.system",[[4,"glow-media-unit",{previewBgColor:[1,"preview-bg-color"],exitLink:[1,"exit-link"],testDate:[8,"test-date"],size:[1],placeholderImage:[1,"placeholder-image"],pageVisible:[32],pageLoaded:[32],triggerExit:[64]},[[4,"media-exit","mediaUnitExit"]]],[0,"glow-polite-image",{src:[1],alt:[1],pageLoaded:[32]},[[4,"page-loaded","pageLoadedHandler"]]]]],["p-qt56odfe.system",[[4,"glow-cta-button",{backgroundColor:[1,"background-color"],hoverBackgroundColor:[1,"hover-background-color"],fontColor:[1,"font-color"],hoverFontColor:[1,"hover-font-color"],buttonText:[1,"button-text"],hovered:[32]}]]],["p-3dnqw4ye.system",[[4,"glow-lockup",{lockupPadding:[1,"lockup-padding"],exitLink:[1,"exit-link"]}]]],["p-vsvbe25h.system",[[4,"glow-story",{exitLink:[1,"exit-link"],autoAnimate:[4,"auto-animate"],endframeImage:[1,"endframe-image"],replayBtnFill:[1,"replay-btn-fill"],pageLoaded:[32],pageVisible:[32],playing:[32],storyLoaded:[32]},[[32,"page-loaded","handlePageLoaded"],[32,"page-visible","handlePageVisible"],[32,"media-exit","handleMediaExit"]]]]],["p-cxthvfor.system",[[4,"glow-tune-in",{showBefore:[1,"show-before"],showAfter:[1,"show-after"],showOn:[1,"show-on"],showBetween:[1,"show-between"],isDefault:[4,"is-default"],isCurrent:[32]},[[32,"tune-in-ready","tuneInReadyHandler"]]]]],["p-peobe5xh.system",[[0,"glow-polite-video",{src:[1],muted:[4],autoplay:[4],endframeImage:[1,"endframe-image"],posterImage:[1,"poster-image"],videoTitle:[1,"video-title"],pageLoaded:[32],playing:[32],loaded:[32],showEndframe:[32],play:[64],setLoaded:[64],pause:[64],setCurrentTime:[64]},[[8,"page-visible","pageLoadedHandler"],[32,"media-exit","handleMediaExit"]]]]]],e)}))}}})); | ||
System.register(["./p-299d7d86.system.js"],(function(){"use strict";var e,o;return{setters:[function(a){e=a.p;o=a.b}],execute:function(){e().then((function(e){return o([["p-mngzlgno.system",[[0,"glow-background-video",{videoSrc:[1,"video-src"],posterImage:[1,"poster-image"],endframeImage:[1,"endframe-image"],autoplay:[4],play:[64],pause:[64]},[[0,"video-started","videoStartedHandler"],[0,"video-ended","videoEndedHandler"],[0,"video-loaded","videoLoadedHandler"]]]]],["p-texqlh53.system",[[4,"glow-trailer-video",{exitOnClick:[4,"exit-on-click"],showReplay:[4,"show-replay"],replayFrom:[2,"replay-from"],src:[1],posterImage:[1,"poster-image"],endframeImage:[1,"endframe-image"],width:[8],height:[8],videoTitle:[1,"video-title"],autoplay:[4],controlBtnFill:[1,"control-btn-fill"],controlBtnHoverFill:[1,"control-btn-hover-fill"],controlPosition:[1,"control-position"],controlIsHovered:[32],playing:[32],muted:[32],hasInteracted:[32],hasEnded:[32],play:[64],pause:[64]},[[0,"video-loaded","handleVideoLoaded"],[0,"video-started","handleVideoStarted"],[0,"video-played","handleVideoPlayed"],[0,"video-ended","handleVideoEnded"]]]]],["p-oduzmdl4.system",[[4,"glow-media-unit",{previewBgColor:[1,"preview-bg-color"],exitLink:[1,"exit-link"],testDate:[8,"test-date"],size:[1],placeholderImage:[1,"placeholder-image"],pageVisible:[32],pageLoaded:[32],triggerExit:[64]},[[4,"media-exit","mediaUnitExit"]]],[0,"glow-polite-image",{src:[1],alt:[1],pageLoaded:[32]},[[4,"page-loaded","pageLoadedHandler"]]]]],["p-qt56odfe.system",[[4,"glow-cta-button",{backgroundColor:[1,"background-color"],hoverBackgroundColor:[1,"hover-background-color"],fontColor:[1,"font-color"],hoverFontColor:[1,"hover-font-color"],buttonText:[1,"button-text"],hovered:[32]}]]],["p-3dnqw4ye.system",[[4,"glow-lockup",{lockupPadding:[1,"lockup-padding"],exitLink:[1,"exit-link"]}]]],["p-wropdtk6.system",[[4,"glow-story",{exitLink:[1,"exit-link"],autoAnimate:[4,"auto-animate"],endframeImage:[1,"endframe-image"],replayBtnFill:[1,"replay-btn-fill"],pageLoaded:[32],pageVisible:[32],playing:[32],storyLoaded:[32]},[[32,"page-loaded","handlePageLoaded"],[32,"page-visible","handlePageVisible"],[32,"media-exit","handleMediaExit"]]]]],["p-qpumt6gs.system",[[4,"glow-tune-in",{showBefore:[1,"show-before"],showAfter:[1,"show-after"],showOn:[1,"show-on"],showBetween:[1,"show-between"],isDefault:[4,"is-default"],isCurrent:[32]},[[32,"tune-in-ready","tuneInReadyHandler"]]]]],["p-oki1rcb1.system",[[0,"glow-polite-video",{src:[1],muted:[4],autoplay:[4],endframeImage:[1,"endframe-image"],posterImage:[1,"poster-image"],videoTitle:[1,"video-title"],pageLoaded:[32],playing:[32],loaded:[32],showEndframe:[32],play:[64],setLoaded:[64],pause:[64],setCurrentTime:[64]},[[8,"page-visible","pageLoadedHandler"],[32,"media-exit","handleMediaExit"]]]]]],e)}))}}})); |
{ | ||
"name": "@weareglow/media-components", | ||
"version": "0.0.56", | ||
"version": "0.0.57", | ||
"description": "A collection of reusable components for media campaigns.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
1082770
17169