Skip to content

Commit

Permalink
chore: bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopaulovieira committed Mar 9, 2020
1 parent 72dd2a9 commit 5454708
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 18 deletions.
11 changes: 8 additions & 3 deletions dist/clappr-context-menu-plugin.esm.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

(function(l, r) { if (l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (window.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.head.appendChild(r) })(window.document);
import { template, version, Events, Styler, UICorePlugin } from 'clappr';
import { version, template, Events, Styler, UICorePlugin } from '@clappr/core';

function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
Expand Down Expand Up @@ -141,6 +139,13 @@ var ContextMenuPlugin = /*#__PURE__*/function (_UICorePlugin) {
get: function get() {
return 'context_menu';
}
}, {
key: "supportedVersion",
get: function get() {
return {
min: version
};
}
}, {
key: "attributes",
get: function get() {
Expand Down
31 changes: 18 additions & 13 deletions dist/clappr-context-menu-plugin.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@

(function(l, r) { if (l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (window.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.head.appendChild(r) })(window.document);
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('clappr')) :
typeof define === 'function' && define.amd ? define(['clappr'], factory) :
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@clappr/core')) :
typeof define === 'function' && define.amd ? define(['@clappr/core'], factory) :
(global = global || self, global.ContextMenuPlugin = factory(global.Clappr));
}(this, (function (clappr) { 'use strict';
}(this, (function (core) { 'use strict';

function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
Expand Down Expand Up @@ -145,6 +143,13 @@
get: function get() {
return 'context_menu';
}
}, {
key: "supportedVersion",
get: function get() {
return {
min: core.version
};
}
}, {
key: "attributes",
get: function get() {
Expand All @@ -155,7 +160,7 @@
}, {
key: "template",
get: function get() {
return clappr.template(templateHtml);
return core.template(templateHtml);
}
}, {
key: "defaultMenuItems",
Expand All @@ -171,7 +176,7 @@
key: "playerVersion",
get: function get() {
return {
label: "Clappr Player v".concat(clappr.version),
label: "Clappr Player v".concat(core.version),
name: 'playerVersion',
noAction: true
};
Expand Down Expand Up @@ -248,11 +253,11 @@

var coreEventListenerData = [{
object: this.core,
event: clappr.Events.CORE_ACTIVE_CONTAINER_CHANGED,
event: core.Events.CORE_ACTIVE_CONTAINER_CHANGED,
callback: this.containerChanged
}, {
object: this.core,
event: clappr.Events.CORE_RESIZE,
event: core.Events.CORE_RESIZE,
callback: this.registerPlayerResize
}];
coreEventListenerData.forEach(function (item) {
Expand All @@ -270,11 +275,11 @@

var containerEventListenerData = [{
object: this.container,
event: clappr.Events.CONTAINER_CONTEXTMENU,
event: core.Events.CONTAINER_CONTEXTMENU,
callback: this.toggleContextMenu
}, {
object: this.container,
event: clappr.Events.CONTAINER_CLICK,
event: core.Events.CONTAINER_CLICK,
callback: this.hide
}];
if (this.container) containerEventListenerData.forEach(function (item) {
Expand Down Expand Up @@ -445,7 +450,7 @@
this.$el.html(this.template({
options: this.menuOptions
}));
this.$el.append(clappr.Styler.getStyleFor(css_248z));
this.$el.append(core.Styler.getStyleFor(css_248z));
this.core.$el[0].append(this.$el[0]);
this.cacheElements();
this.hide();
Expand All @@ -457,7 +462,7 @@
}]);

return ContextMenuPlugin;
}(clappr.UICorePlugin);
}(core.UICorePlugin);

return ContextMenuPlugin;

Expand Down
Loading

0 comments on commit 5454708

Please sign in to comment.