@widgetic/editor 3.10.44 → 3.10.46

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/lib/dev/editor.js CHANGED
@@ -13347,7 +13347,7 @@ WidgetEditor = (function(superClass) {
13347
13347
  this.el.append(this.tabs.el);
13348
13348
  LoginPopup.place(this.el);
13349
13349
  Blogvio.pubsub.subscribe('api/token/update', this._updateLoggedInStatus);
13350
- this.el.attr('editorVersion', "3.10.44");
13350
+ this.el.attr('editorVersion', "3.10.46");
13351
13351
  }
13352
13352
 
13353
13353
 
@@ -16688,11 +16688,13 @@ var UploadService = function (_EventsMixin) {
16688
16688
  _this.refreshed = {};
16689
16689
 
16690
16690
  _this.files = [];
16691
+
16691
16692
  // max file size in MB
16692
16693
  _this.maxFilesize = user.premium ? 250 : 25; // MB limit / file for premium / free
16693
16694
 
16694
16695
  // max quota in bytes
16695
- _this.quota = 250 * 1000 * 1000; // 250 MB total quota for free users
16696
+ _this.quota = (user.premium ? 1000 : 250) * 1000 * 1000; // 250 MB total quota for free users
16697
+
16696
16698
  // used quota in bytes
16697
16699
  _this.used = 0;
16698
16700
 
@@ -16762,7 +16764,7 @@ var UploadService = function (_EventsMixin) {
16762
16764
  var id = response.files.data[0].id;
16763
16765
 
16764
16766
  // read quota from response
16765
- this.quota = response.quota.max;
16767
+ // this.quota = response.quota.max;
16766
16768
  this.used = response.quota.used;
16767
16769
 
16768
16770
  this._update(uploadFile, function (f) {
@@ -16847,7 +16849,7 @@ var UploadService = function (_EventsMixin) {
16847
16849
  _this3.refreshed[type] = true;
16848
16850
 
16849
16851
  // read quota from response
16850
- _this3.quota = response.quota.max;
16852
+ // this.quota = response.quota.max;
16851
16853
  _this3.used = response.quota.used;
16852
16854
 
16853
16855
  return response.files.data.map(function (file) {