videomail-client 8.3.14 → 8.3.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "8.3.14",
3
+ "version": "8.3.16",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "author": "Michael Heuberger <michael.heuberger@binarykitchen.com>",
6
6
  "contributors": [
@@ -17273,7 +17273,7 @@ function wrappy (fn, cb) {
17273
17273
  },{}],114:[function(_dereq_,module,exports){
17274
17274
  module.exports={
17275
17275
  "name": "videomail-client",
17276
- "version": "8.3.14",
17276
+ "version": "8.3.16",
17277
17277
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
17278
17278
  "author": "Michael Heuberger <michael.heuberger@binarykitchen.com>",
17279
17279
  "contributors": [
@@ -21767,27 +21767,25 @@ var Notifier = function Notifier(visuals, options) {
21767
21767
  !built && initEvents();
21768
21768
  built = true;
21769
21769
  };
21770
+ function hideMessage() {
21771
+ if (messageElement) {
21772
+ messageElement.innerHTML = null;
21773
+ (0, _hidden.default)(messageElement, true);
21774
+ }
21775
+ }
21770
21776
  function hideExplanation() {
21771
21777
  if (explanationElement) {
21772
21778
  explanationElement.innerHTML = null;
21773
21779
  (0, _hidden.default)(explanationElement, true);
21774
21780
  }
21775
21781
  }
21776
- function removeMessageElement() {
21777
- if (!messageElement) return; // skip
21778
- notifyElement.removeChild(messageElement);
21779
- messageElement.innerHTML = null;
21780
- messageElement = undefined;
21781
- }
21782
21782
  this.hide = function () {
21783
21783
  cancelEntertainment();
21784
21784
  if (notifyElement) {
21785
21785
  (0, _hidden.default)(notifyElement, true);
21786
21786
  notifyElement.classList.remove("blocking");
21787
21787
  }
21788
- if (messageElement) {
21789
- removeMessageElement();
21790
- }
21788
+ hideMessage();
21791
21789
  hideExplanation();
21792
21790
  };
21793
21791
  this.isVisible = function () {
@@ -21799,31 +21797,23 @@ var Notifier = function Notifier(visuals, options) {
21799
21797
  this.isBuilt = function () {
21800
21798
  return built;
21801
21799
  };
21802
- this.notify = function (message, explanation, notifyOptions) {
21803
- options.debug("Notifier: notify()");
21804
- if (!notifyOptions) {
21805
- notifyOptions = {};
21806
- }
21800
+ this.notify = function (message, explanation) {
21801
+ var notifyOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
21802
+ options.debug("Notifier: notify()", message, explanation);
21807
21803
  var stillWait = notifyOptions.stillWait ? notifyOptions.stillWait : false;
21808
21804
  var entertain = notifyOptions.entertain ? notifyOptions.entertain : false;
21809
21805
  var blocking = notifyOptions.blocking ? notifyOptions.blocking : false;
21810
21806
  var hideForm = notifyOptions.hideForm ? notifyOptions.hideForm : false;
21811
21807
  var classList = notifyOptions.classList ? notifyOptions.classList : false;
21812
21808
  var removeDimensions = notifyOptions.removeDimensions ? notifyOptions.removeDimensions : false;
21813
- if (notifyElement) {
21814
- // Always remove previous one before setting a new one
21815
- removeMessageElement();
21816
- }
21817
- if (!messageElement) {
21818
- if (notifyElement) {
21819
- messageElement = (0, _hyperscript.default)("h2", {
21820
- className: "message"
21821
- });
21822
- if (explanationElement) {
21823
- notifyElement.insertBefore(messageElement, explanationElement);
21824
- } else {
21825
- notifyElement.appendChild(messageElement);
21826
- }
21809
+ if (!messageElement && notifyElement) {
21810
+ messageElement = (0, _hyperscript.default)("h2", {
21811
+ className: "message"
21812
+ });
21813
+ if (explanationElement) {
21814
+ notifyElement.insertBefore(messageElement, explanationElement);
21815
+ } else {
21816
+ notifyElement.appendChild(messageElement);
21827
21817
  }
21828
21818
  }
21829
21819
  if (notifyElement) {