videomail-client 5.1.0 → 5.1.2
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/TODO.md +2 -2
- package/package.json +1 -1
- package/prototype/js/videomail-client.js +25 -25
- package/prototype/js/videomail-client.min.js +4 -4
- package/prototype/js/videomail-client.min.js.map +1 -1
- package/src/js/util/humanize.js +1 -1
- package/src/js/wrappers/container.js +14 -1
- package/src/js/wrappers/form.js +9 -18
package/TODO.md
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
| src/js/util/eventEmitter.js | 6 | MAKE EVENT EMITTING IN DESPOT NOT GLOBAL BUT BY CONTAINER ID INSTEAD
|
|
6
6
|
| src/js/util/eventEmitter.js | 43 | have this emitted through a configuration because it is pretty noisy
|
|
7
7
|
| src/js/util/humanize.js | 4 | get rid of this class and use those imports directly
|
|
8
|
-
| src/js/wrappers/container.js |
|
|
9
|
-
| src/js/wrappers/container.js |
|
|
8
|
+
| src/js/wrappers/container.js | 334 | figure out how to fire dom's onload event again
|
|
9
|
+
| src/js/wrappers/container.js | 335 | or how to run all the scripts over again
|
|
10
10
|
| src/js/wrappers/optionsWrapper.js | 27 | fix this, it's not really an option
|
|
11
11
|
| src/js/wrappers/visuals/recorder.js | 584 | in https://github.com/binarykitchen/videomail-client/issues/142
|
|
12
12
|
| src/js/wrappers/visuals/recorder.js | 621 | retry with navigator.getUserMedia_() maybe?
|
package/package.json
CHANGED
|
@@ -26140,7 +26140,7 @@ function wrappy (fn, cb) {
|
|
|
26140
26140
|
},{}],345:[function(_dereq_,module,exports){
|
|
26141
26141
|
module.exports={
|
|
26142
26142
|
"name": "videomail-client",
|
|
26143
|
-
"version": "5.1.
|
|
26143
|
+
"version": "5.1.2",
|
|
26144
26144
|
"description": "A wicked npm package to record videos directly in the browser, wohooo!",
|
|
26145
26145
|
"author": "Michael Heuberger <michael.heuberger@binarykitchen.com>",
|
|
26146
26146
|
"contributors": [
|
|
@@ -27680,14 +27680,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
27680
27680
|
});
|
|
27681
27681
|
exports.default = void 0;
|
|
27682
27682
|
|
|
27683
|
-
var _filesize2 =
|
|
27683
|
+
var _filesize2 = _dereq_("filesize");
|
|
27684
27684
|
|
|
27685
27685
|
var _humanizeDuration = _interopRequireDefault(_dereq_("humanize-duration"));
|
|
27686
27686
|
|
|
27687
27687
|
// todo get rid of this class and use those imports directly
|
|
27688
27688
|
var _default = {
|
|
27689
27689
|
filesize: function filesize(bytes, round) {
|
|
27690
|
-
return (0, _filesize2.
|
|
27690
|
+
return (0, _filesize2.filesize)(bytes, {
|
|
27691
27691
|
round: round
|
|
27692
27692
|
});
|
|
27693
27693
|
},
|
|
@@ -29232,6 +29232,14 @@ var Container = function Container(options) {
|
|
|
29232
29232
|
|
|
29233
29233
|
if (videomailFormData.to) {
|
|
29234
29234
|
videomailFormData.to = trimEmail(videomailFormData.to);
|
|
29235
|
+
}
|
|
29236
|
+
|
|
29237
|
+
if (videomailFormData.cc) {
|
|
29238
|
+
videomailFormData.cc = trimEmail(videomailFormData.cc);
|
|
29239
|
+
}
|
|
29240
|
+
|
|
29241
|
+
if (videomailFormData.bcc) {
|
|
29242
|
+
videomailFormData.bcc = trimEmail(videomailFormData.bcc);
|
|
29235
29243
|
} // when method is undefined, treat it as a post
|
|
29236
29244
|
|
|
29237
29245
|
|
|
@@ -29541,7 +29549,7 @@ var Container = function Container(options) {
|
|
|
29541
29549
|
var invalidInput = form.getInvalidElement();
|
|
29542
29550
|
|
|
29543
29551
|
if (invalidInput) {
|
|
29544
|
-
whyInvalid = 'Form input named ' + invalidInput.name + ' is invalid';
|
|
29552
|
+
whyInvalid = 'Form input named ' + invalidInput.name + ' is invalid. It has the value: "' + invalidInput.value + '"';
|
|
29545
29553
|
} else {
|
|
29546
29554
|
whyInvalid = 'Form input(s() are invalid';
|
|
29547
29555
|
}
|
|
@@ -29847,25 +29855,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
29847
29855
|
});
|
|
29848
29856
|
exports.default = void 0;
|
|
29849
29857
|
|
|
29850
|
-
var
|
|
29858
|
+
var _getFormData = _interopRequireDefault(_dereq_("get-form-data"));
|
|
29851
29859
|
|
|
29852
|
-
var
|
|
29860
|
+
var _hidden = _interopRequireDefault(_dereq_("hidden"));
|
|
29853
29861
|
|
|
29854
|
-
var
|
|
29862
|
+
var _hyperscript = _interopRequireDefault(_dereq_("hyperscript"));
|
|
29855
29863
|
|
|
29856
|
-
var
|
|
29864
|
+
var _util = _interopRequireDefault(_dereq_("util"));
|
|
29857
29865
|
|
|
29858
|
-
var
|
|
29866
|
+
var _events = _interopRequireDefault(_dereq_("../events"));
|
|
29859
29867
|
|
|
29860
|
-
var
|
|
29868
|
+
var _eventEmitter = _interopRequireDefault(_dereq_("../util/eventEmitter"));
|
|
29861
29869
|
|
|
29862
|
-
var
|
|
29870
|
+
var _videomailError = _interopRequireDefault(_dereq_("../util/videomailError"));
|
|
29863
29871
|
|
|
29864
29872
|
var Form = function Form(container, formElement, options) {
|
|
29865
29873
|
_eventEmitter.default.call(this, options, 'Form');
|
|
29866
29874
|
|
|
29867
29875
|
var self = this;
|
|
29868
|
-
var disableContainerValidation;
|
|
29869
29876
|
var keyInput;
|
|
29870
29877
|
|
|
29871
29878
|
function getData() {
|
|
@@ -29949,16 +29956,12 @@ var Form = function Form(container, formElement, options) {
|
|
|
29949
29956
|
});
|
|
29950
29957
|
} else {
|
|
29951
29958
|
inputElement.addEventListener('input', function () {
|
|
29952
|
-
|
|
29959
|
+
// let angular validate first, e.g. remove the custom error
|
|
29960
|
+
setTimeout(function () {
|
|
29961
|
+
container.validate();
|
|
29962
|
+
}, 0);
|
|
29953
29963
|
});
|
|
29954
|
-
}
|
|
29955
|
-
|
|
29956
|
-
|
|
29957
|
-
inputElement.addEventListener('invalid', function () {
|
|
29958
|
-
if (!disableContainerValidation) {
|
|
29959
|
-
container.validate();
|
|
29960
|
-
}
|
|
29961
|
-
});
|
|
29964
|
+
}
|
|
29962
29965
|
}
|
|
29963
29966
|
|
|
29964
29967
|
var selectElements = getSelectElements();
|
|
@@ -30059,10 +30062,7 @@ var Form = function Form(container, formElement, options) {
|
|
|
30059
30062
|
};
|
|
30060
30063
|
|
|
30061
30064
|
this.validate = function () {
|
|
30062
|
-
// prevents endless validation loop
|
|
30063
|
-
disableContainerValidation = true;
|
|
30064
30065
|
var formIsValid = formElement.checkValidity();
|
|
30065
|
-
disableContainerValidation = false;
|
|
30066
30066
|
return formIsValid;
|
|
30067
30067
|
};
|
|
30068
30068
|
|
|
@@ -30084,7 +30084,7 @@ _util.default.inherits(Form, _eventEmitter.default);
|
|
|
30084
30084
|
var _default = Form;
|
|
30085
30085
|
exports.default = _default;
|
|
30086
30086
|
|
|
30087
|
-
},{"
|
|
30087
|
+
},{"../events":348,"../util/eventEmitter":354,"../util/videomailError":359,"@babel/runtime/helpers/interopRequireDefault":1,"core-js/modules/es.object.define-property.js":208,"get-form-data":271,"hidden":281,"hyperscript":283,"util":338}],364:[function(_dereq_,module,exports){
|
|
30088
30088
|
"use strict";
|
|
30089
30089
|
|
|
30090
30090
|
_dereq_("core-js/modules/es.object.define-property.js");
|