@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widgetic/editor",
3
- "version": "3.10.44",
3
+ "version": "3.10.46",
4
4
  "scripts": {
5
5
  "start": "webpack --config webpack.config.js --watch --progress",
6
6
  "build": "webpack --config webpack.config.js",
@@ -36,11 +36,13 @@ export default class UploadService extends EventsMixin(Service) {
36
36
  this.refreshed = {};
37
37
 
38
38
  this.files = [];
39
+
39
40
  // max file size in MB
40
41
  this.maxFilesize = user.premium ? 250 : 25; // MB limit / file for premium / free
41
42
 
42
43
  // max quota in bytes
43
- this.quota = 250 * 1000 * 1000; // 250 MB total quota for free users
44
+ this.quota = (user.premium ? 1000 : 250) * 1000 * 1000; // 250 MB total quota for free users
45
+
44
46
  // used quota in bytes
45
47
  this.used = 0;
46
48
 
@@ -95,7 +97,7 @@ export default class UploadService extends EventsMixin(Service) {
95
97
  const id = response.files.data[0].id;
96
98
 
97
99
  // read quota from response
98
- this.quota = response.quota.max;
100
+ // this.quota = response.quota.max;
99
101
  this.used = response.quota.used;
100
102
 
101
103
  this._update(uploadFile, f => {
@@ -166,7 +168,7 @@ export default class UploadService extends EventsMixin(Service) {
166
168
  this.refreshed[type] = true;
167
169
 
168
170
  // read quota from response
169
- this.quota = response.quota.max;
171
+ // this.quota = response.quota.max;
170
172
  this.used = response.quota.used;
171
173
 
172
174
  return response.files.data.map(file => {