Socket
Socket
Sign inDemoInstall

videojs-playlist-ui

Package Overview
Dependencies
Maintainers
126
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

videojs-playlist-ui - npm Package Compare versions

Comparing version 3.6.0 to 3.7.0

dist/lang/ar.js

11

CHANGELOG.md

@@ -0,1 +1,12 @@

<a name="3.7.0"></a>
# [3.7.0](https://github.com/brightcove/videojs-playlist-ui/compare/v3.6.0...v3.7.0) (2020-02-08)
### Features
* **lang:** Add Arabic translations ([#121](https://github.com/brightcove/videojs-playlist-ui/issues/121)) ([2e820a3](https://github.com/brightcove/videojs-playlist-ui/commit/2e820a3))
### Chores
* **package:** Update all dev dependencies ([#122](https://github.com/brightcove/videojs-playlist-ui/issues/122)) ([90d6135](https://github.com/brightcove/videojs-playlist-ui/commit/90d6135))
<a name="3.6.0"></a>

@@ -2,0 +13,0 @@ # [3.6.0](https://github.com/brightcove/videojs-playlist-ui/compare/v3.5.2...v3.6.0) (2019-08-26)

4

dist/videojs-playlist-ui.cjs.js

@@ -1,2 +0,2 @@

/*! @name videojs-playlist-ui @version 3.6.0 @license Apache-2.0 */
/*! @name videojs-playlist-ui @version 3.7.0 @license Apache-2.0 */
'use strict';

@@ -15,3 +15,3 @@

var version = "3.6.0";
var version = "3.7.0";

@@ -18,0 +18,0 @@ var dom = videojs.dom || videojs;

@@ -1,2 +0,2 @@

/*! @name videojs-playlist-ui @version 3.6.0 @license Apache-2.0 */
/*! @name videojs-playlist-ui @version 3.7.0 @license Apache-2.0 */
import document from 'global/document';

@@ -11,3 +11,3 @@ import videojs from 'video.js';

var version = "3.6.0";
var version = "3.7.0";

@@ -14,0 +14,0 @@ var dom = videojs.dom || videojs;

@@ -1,2 +0,2 @@

/*! @name videojs-playlist-ui @version 3.6.0 @license Apache-2.0 */
/*! @name videojs-playlist-ui @version 3.7.0 @license Apache-2.0 */
(function (global, factory) {

@@ -17,3 +17,3 @@ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('global/document'), require('video.js')) :

var version = "3.6.0";
var version = "3.7.0";

@@ -20,0 +20,0 @@ var dom = videojs.dom || videojs;

@@ -1,2 +0,2 @@

/*! @name videojs-playlist-ui @version 3.6.0 @license Apache-2.0 */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("global/document"),require("video.js")):"function"==typeof define&&define.amd?define(["global/document","video.js"],e):t.videojsPlaylistUi=e(t.document,t.videojs)}(this,function(t,e){"use strict";function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}t=t&&t.hasOwnProperty("default")?t.default:t;var l,s=(e=e&&e.hasOwnProperty("default")?e.default:e).dom||e,a=e.registerPlugin||e.plugin,n={className:"vjs-playlist",playOnSelect:!1,supportsCssPointerEvents:((l=t.createElement("x")).style.cssText="pointer-events:auto","auto"===l.style.pointerEvents)},r=function(t){t.addClass("vjs-selected")},o=function(t){t.removeClass("vjs-selected"),t.thumbnail&&s.removeClass(t.thumbnail,"vjs-playlist-now-playing")},p=function(t){t.removeClass("vjs-up-next")},d=e.getComponent("Component"),c=function(l){function s(t,e,i){var s;if(!e.item)throw new Error("Cannot construct a PlaylistMenuItem without an item option");return(s=l.call(this,t,e)||this).item=e.item,s.playOnSelect=i.playOnSelect,s.emitTapEvents(),s.on(["click","tap"],s.switchPlaylistItem_),s.on("keydown",s.handleKeyDown_),s}i(s,l);var a=s.prototype;return a.handleKeyDown_=function(t){13!==t.which&&32!==t.which||this.switchPlaylistItem_()},a.switchPlaylistItem_=function(t){this.player_.playlist.currentItem(function(t,e){for(var i=0,l=t.length;i<l;i++)if(t[i]===e)return i;return-1}(this.player_.playlist(),this.item)),this.playOnSelect&&this.player_.play()},a.createEl=function(){var i=t.createElement("li"),l=this.options_.item;"object"==typeof l.data&&Object.keys(l.data).forEach(function(t){var e=l.data[t];i.dataset[t]=e});if(i.className="vjs-playlist-item",i.setAttribute("tabIndex",0),this.thumbnail=function(e){if(!e){var i=t.createElement("div");return i.className="vjs-playlist-thumbnail vjs-playlist-thumbnail-placeholder",i}var l=t.createElement("picture");if(l.className="vjs-playlist-thumbnail","string"==typeof e){var s=t.createElement("img");s.src=e,s.alt="",l.appendChild(s)}else{for(var a=0;a<e.length-1;a++){var n=e[a],r=t.createElement("source");for(var o in n)r[o]=n[o];l.appendChild(r)}var p=e[e.length-1],d=t.createElement("img");for(var c in d.alt="",p)d[c]=p[c];l.appendChild(d)}return l}(l.thumbnail),i.appendChild(this.thumbnail),l.duration){var s=t.createElement("time"),a=e.formatTime(l.duration);s.className="vjs-playlist-duration",s.setAttribute("datetime","PT0H0M"+l.duration+"S"),s.appendChild(t.createTextNode(a)),i.appendChild(s)}var n=t.createElement("span"),r=this.localize("Now Playing");n.className="vjs-playlist-now-playing-text",n.appendChild(t.createTextNode(r)),n.setAttribute("title",r),this.thumbnail.appendChild(n);var o=t.createElement("div");o.className="vjs-playlist-title-container",this.thumbnail.appendChild(o);var p=t.createElement("span"),d=this.localize("Up Next");p.className="vjs-up-next-text",p.appendChild(t.createTextNode(d)),p.setAttribute("title",d),o.appendChild(p);var c=t.createElement("cite"),h=l.name||this.localize("Untitled Video");return c.className="vjs-playlist-name",c.appendChild(t.createTextNode(h)),c.setAttribute("title",h),o.appendChild(c),i},s}(d),h=function(l){function a(t,i){var s;if(!t.playlist)throw new Error("videojs-playlist is required for the playlist component");return(s=l.call(this,t,i)||this).items=[],i.horizontal?s.addClass("vjs-playlist-horizontal"):s.addClass("vjs-playlist-vertical"),i.supportsCssPointerEvents&&s.addClass("vjs-csspointerevents"),s.createPlaylist_(),e.browser.TOUCH_ENABLED||s.addClass("vjs-mouse"),s.on(t,["loadstart","playlistchange","playlistsorted"],function(t){s.update()}),s.on(t,"adstart",function(){s.addClass("vjs-ad-playing")}),s.on(t,"adend",function(){s.removeClass("vjs-ad-playing")}),s.on("dispose",function(){s.empty_(),t.playlistMenu=null}),s.on(t,"dispose",function(){s.dispose()}),s}i(a,l);var n=a.prototype;return n.createEl=function(){return s.createEl("div",{className:this.options_.className})},n.empty_=function(){this.items&&this.items.length&&(this.items.forEach(function(t){return t.dispose()}),this.items.length=0)},n.createPlaylist_=function(){var e=this.player_.playlist()||[],i=this.el_.querySelector(".vjs-playlist-item-list"),l=this.el_.querySelector(".vjs-playlist-ad-overlay");i||((i=t.createElement("ol")).className="vjs-playlist-item-list",this.el_.appendChild(i)),this.empty_();for(var a=0;a<e.length;a++){var n=new c(this.player_,{item:e[a]},this.options_);this.items.push(n),i.appendChild(n.el_)}l?i.appendChild(l):((l=t.createElement("li")).className="vjs-playlist-ad-overlay",i.appendChild(l));var o=this.player_.playlist.currentItem();if(this.items.length&&o>=0){r(this.items[o]);var p=this.items[o].$(".vjs-playlist-thumbnail");p&&s.addClass(p,"vjs-playlist-now-playing")}},n.update=function(){var e=this.player_.playlist();if(this.items.length===e.length){for(var i=0;i<this.items.length;i++)if(this.items[i].item!==e[i])return void this.createPlaylist_();for(var l=this.player_.playlist.currentItem(),a=0;a<this.items.length;a++){var n=this.items[a];a===l?(r(n),t.activeElement!==n.el()&&s.addClass(n.thumbnail,"vjs-playlist-now-playing"),p(n)):a===l+1?(o(n),n.addClass("vjs-up-next")):(o(n),p(n))}}else this.createPlaylist_()},a}(d),u=function(t){for(var e=0;e<t.childNodes.length;e++)if(s.isEl(t.childNodes[e]))return!0;return!1},m=function(i){if(!this.playlist)throw new Error("videojs-playlist plugin is required by the videojs-playlist-ui plugin");if(s.isEl(i)&&(e.log.warn('videojs-playlist-ui: Passing an element directly to playlistUi() is deprecated, use the "el" option instead!'),i={el:i}),i=e.mergeOptions(n,i),this.playlistMenu){var l=this.playlistMenu.el();if(l){var a=l.parentNode,r=l.nextSibling;this.playlistMenu.dispose(),s.emptyEl(l),r?a.insertBefore(l,r):a.appendChild(l),i.el=l}}s.isEl(i.el)||(i.el=function(e){for(var i,l=t.querySelectorAll("."+e),s=0;s<l.length;s++)if(!u(l[s])){i=l[s];break}return i}(i.className)),this.playlistMenu=new h(this,i)};return e.registerComponent("PlaylistMenu",h),e.registerComponent("PlaylistMenuItem",c),a("playlistUi",m),m.VERSION="3.6.0",m});
/*! @name videojs-playlist-ui @version 3.7.0 @license Apache-2.0 */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("global/document"),require("video.js")):"function"==typeof define&&define.amd?define(["global/document","video.js"],e):t.videojsPlaylistUi=e(t.document,t.videojs)}(this,function(c,u){"use strict";function i(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}c=c&&c.hasOwnProperty("default")?c.default:c;function r(t){t.addClass("vjs-selected")}function a(t){t.removeClass("vjs-selected"),t.thumbnail&&p.removeClass(t.thumbnail,"vjs-playlist-now-playing")}function n(t){t.removeClass("vjs-up-next")}function o(t){for(var e=0;e<t.childNodes.length;e++)if(p.isEl(t.childNodes[e]))return 1}function t(t){var e=this;if(!e.playlist)throw new Error("videojs-playlist plugin is required by the videojs-playlist-ui plugin");if(p.isEl(t)&&(u.log.warn('videojs-playlist-ui: Passing an element directly to playlistUi() is deprecated, use the "el" option instead!'),t={el:t}),t=u.mergeOptions(d,t),e.playlistMenu){var i=e.playlistMenu.el();if(i){var l=i.parentNode,s=i.nextSibling;e.playlistMenu.dispose(),p.emptyEl(i),s?l.insertBefore(i,s):l.appendChild(i),t.el=i}}p.isEl(t.el)||(t.el=function(t){for(var e,i=c.querySelectorAll("."+t),l=0;l<i.length;l++)if(!o(i[l])){e=i[l];break}return e}(t.className)),e.playlistMenu=new m(e,t)}var e,p=(u=u&&u.hasOwnProperty("default")?u.default:u).dom||u,l=u.registerPlugin||u.plugin,d={className:"vjs-playlist",playOnSelect:!1,supportsCssPointerEvents:((e=c.createElement("x")).style.cssText="pointer-events:auto","auto"===e.style.pointerEvents)},s=u.getComponent("Component"),h=function(s){function t(t,e,i){var l;if(!e.item)throw new Error("Cannot construct a PlaylistMenuItem without an item option");return(l=s.call(this,t,e)||this).item=e.item,l.playOnSelect=i.playOnSelect,l.emitTapEvents(),l.on(["click","tap"],l.switchPlaylistItem_),l.on("keydown",l.handleKeyDown_),l}i(t,s);var e=t.prototype;return e.handleKeyDown_=function(t){13!==t.which&&32!==t.which||this.switchPlaylistItem_()},e.switchPlaylistItem_=function(){this.player_.playlist.currentItem(function(t,e){for(var i=0,l=t.length;i<l;i++)if(t[i]===e)return i;return-1}(this.player_.playlist(),this.item)),this.playOnSelect&&this.player_.play()},e.createEl=function(){var i=c.createElement("li"),l=this.options_.item;"object"==typeof l.data&&Object.keys(l.data).forEach(function(t){var e=l.data[t];i.dataset[t]=e});if(i.className="vjs-playlist-item",i.setAttribute("tabIndex",0),this.thumbnail=function(t){if(!t){var e=c.createElement("div");return e.className="vjs-playlist-thumbnail vjs-playlist-thumbnail-placeholder",e}var i=c.createElement("picture");if(i.className="vjs-playlist-thumbnail","string"==typeof t){var l=c.createElement("img");l.src=t,l.alt="",i.appendChild(l)}else{for(var s=0;s<t.length-1;s++){var a=t[s],n=c.createElement("source");for(var r in a)n[r]=a[r];i.appendChild(n)}var o=t[t.length-1],p=c.createElement("img");for(var d in p.alt="",o)p[d]=o[d];i.appendChild(p)}return i}(l.thumbnail),i.appendChild(this.thumbnail),l.duration){var t=c.createElement("time"),e=u.formatTime(l.duration);t.className="vjs-playlist-duration",t.setAttribute("datetime","PT0H0M"+l.duration+"S"),t.appendChild(c.createTextNode(e)),i.appendChild(t)}var s=c.createElement("span"),a=this.localize("Now Playing");s.className="vjs-playlist-now-playing-text",s.appendChild(c.createTextNode(a)),s.setAttribute("title",a),this.thumbnail.appendChild(s);var n=c.createElement("div");n.className="vjs-playlist-title-container",this.thumbnail.appendChild(n);var r=c.createElement("span"),o=this.localize("Up Next");r.className="vjs-up-next-text",r.appendChild(c.createTextNode(o)),r.setAttribute("title",o),n.appendChild(r);var p=c.createElement("cite"),d=l.name||this.localize("Untitled Video");return p.className="vjs-playlist-name",p.appendChild(c.createTextNode(d)),p.setAttribute("title",d),n.appendChild(p),i},t}(s),m=function(l){function t(t,e){var i;if(!t.playlist)throw new Error("videojs-playlist is required for the playlist component");return(i=l.call(this,t,e)||this).items=[],e.horizontal?i.addClass("vjs-playlist-horizontal"):i.addClass("vjs-playlist-vertical"),e.supportsCssPointerEvents&&i.addClass("vjs-csspointerevents"),i.createPlaylist_(),u.browser.TOUCH_ENABLED||i.addClass("vjs-mouse"),i.on(t,["loadstart","playlistchange","playlistsorted"],function(t){i.update()}),i.on(t,"adstart",function(){i.addClass("vjs-ad-playing")}),i.on(t,"adend",function(){i.removeClass("vjs-ad-playing")}),i.on("dispose",function(){i.empty_(),t.playlistMenu=null}),i.on(t,"dispose",function(){i.dispose()}),i}i(t,l);var e=t.prototype;return e.createEl=function(){return p.createEl("div",{className:this.options_.className})},e.empty_=function(){this.items&&this.items.length&&(this.items.forEach(function(t){return t.dispose()}),this.items.length=0)},e.createPlaylist_=function(){var t=this.player_.playlist()||[],e=this.el_.querySelector(".vjs-playlist-item-list"),i=this.el_.querySelector(".vjs-playlist-ad-overlay");e||((e=c.createElement("ol")).className="vjs-playlist-item-list",this.el_.appendChild(e)),this.empty_();for(var l=0;l<t.length;l++){var s=new h(this.player_,{item:t[l]},this.options_);this.items.push(s),e.appendChild(s.el_)}i||((i=c.createElement("li")).className="vjs-playlist-ad-overlay"),e.appendChild(i);var a=this.player_.playlist.currentItem();if(this.items.length&&0<=a){r(this.items[a]);var n=this.items[a].$(".vjs-playlist-thumbnail");n&&p.addClass(n,"vjs-playlist-now-playing")}},e.update=function(){var t=this.player_.playlist();if(this.items.length===t.length){for(var e=0;e<this.items.length;e++)if(this.items[e].item!==t[e])return void this.createPlaylist_();for(var i=this.player_.playlist.currentItem(),l=0;l<this.items.length;l++){var s=this.items[l];l===i?(r(s),c.activeElement!==s.el()&&p.addClass(s.thumbnail,"vjs-playlist-now-playing"),n(s)):l===i+1?(a(s),s.addClass("vjs-up-next")):(a(s),n(s))}}else this.createPlaylist_()},t}(s);return u.registerComponent("PlaylistMenu",m),u.registerComponent("PlaylistMenuItem",h),l("playlistUi",t),t.VERSION="3.7.0",t});
{
"name": "videojs-playlist-ui",
"version": "3.6.0",
"version": "3.7.0",
"author": "Brightcove, Inc.",

@@ -44,13 +44,13 @@ "description": "A user interface for the videojs-playlist API",

"dependencies": {
"global": "^4.3.2",
"global": "^4.4.0",
"video.js": "^6 || ^7"
},
"devDependencies": {
"conventional-changelog-cli": "^2.0.1",
"conventional-changelog-cli": "^2.0.31",
"conventional-changelog-videojs": "^3.0.0",
"doctoc": "^1.3.1",
"husky": "^1.0.0-rc.13",
"karma": "^4.2.0",
"lint-staged": "^8.1.0",
"node-sass": "^4.5.3",
"husky": "^1.3.1",
"karma": "^4.4.1",
"lint-staged": "^8.2.1",
"node-sass": "^4.13.1",
"not-prerelease": "^1.0.1",

@@ -60,13 +60,13 @@ "npm-merge-driver-install": "^1.0.0",

"pkg-ok": "^2.2.0",
"postcss-cli": "^6.0.0",
"rollup": "^0.67.3",
"postcss-cli": "^6.1.3",
"rollup": "^0.67.4",
"shx": "^0.3.2",
"sinon": "^6.1.5",
"videojs-generate-karma-config": "^5.3.0",
"videojs-generate-karma-config": "^5.3.1",
"videojs-generate-postcss-config": "~2.0.1",
"videojs-generate-rollup-config": "~2.3.1",
"videojs-generate-rollup-config": "^2.3.2",
"videojs-generator-verify": "^1.2.0",
"videojs-languages": "^2.0.0",
"videojs-playlist": "^4.2.4",
"videojs-standard": "~8.0.2"
"videojs-playlist": "^4.3.1",
"videojs-standard": "^8.0.4"
},

@@ -73,0 +73,0 @@ "main": "dist/videojs-playlist-ui.cjs.js",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc