@bigbinary/neeto-editor 1.26.25 → 1.26.27
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/index.cjs.js +295 -94
- package/index.cjs.js.map +1 -1
- package/index.js +295 -94
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -53327,7 +53327,7 @@ var buildImageOptions = function buildImageOptions() {
|
|
|
53327
53327
|
|
|
53328
53328
|
function cov_vqdq5apbi() {
|
|
53329
53329
|
var path = "/home/runner/work/neeto-editor/neeto-editor/src/apis/direct_uploads.js";
|
|
53330
|
-
var hash = "
|
|
53330
|
+
var hash = "2c2f1d9ec04b2d08c46a8553efefbf4d6710b538";
|
|
53331
53331
|
var global = new Function("return this")();
|
|
53332
53332
|
var gcv = "__coverage__";
|
|
53333
53333
|
var coverageData = {
|
|
@@ -53416,11 +53416,31 @@ function cov_vqdq5apbi() {
|
|
|
53416
53416
|
"8": {
|
|
53417
53417
|
start: {
|
|
53418
53418
|
line: 30,
|
|
53419
|
+
column: 15
|
|
53420
|
+
},
|
|
53421
|
+
end: {
|
|
53422
|
+
line: 33,
|
|
53423
|
+
column: 4
|
|
53424
|
+
}
|
|
53425
|
+
},
|
|
53426
|
+
"9": {
|
|
53427
|
+
start: {
|
|
53428
|
+
line: 31,
|
|
53429
|
+
column: 2
|
|
53430
|
+
},
|
|
53431
|
+
end: {
|
|
53432
|
+
line: 33,
|
|
53433
|
+
column: 4
|
|
53434
|
+
}
|
|
53435
|
+
},
|
|
53436
|
+
"10": {
|
|
53437
|
+
start: {
|
|
53438
|
+
line: 35,
|
|
53419
53439
|
column: 25
|
|
53420
53440
|
},
|
|
53421
53441
|
end: {
|
|
53422
|
-
line:
|
|
53423
|
-
column:
|
|
53442
|
+
line: 35,
|
|
53443
|
+
column: 70
|
|
53424
53444
|
}
|
|
53425
53445
|
}
|
|
53426
53446
|
},
|
|
@@ -53520,9 +53540,106 @@ function cov_vqdq5apbi() {
|
|
|
53520
53540
|
}
|
|
53521
53541
|
},
|
|
53522
53542
|
line: 26
|
|
53543
|
+
},
|
|
53544
|
+
"4": {
|
|
53545
|
+
name: "(anonymous_4)",
|
|
53546
|
+
decl: {
|
|
53547
|
+
start: {
|
|
53548
|
+
line: 30,
|
|
53549
|
+
column: 15
|
|
53550
|
+
},
|
|
53551
|
+
end: {
|
|
53552
|
+
line: 30,
|
|
53553
|
+
column: 16
|
|
53554
|
+
}
|
|
53555
|
+
},
|
|
53556
|
+
loc: {
|
|
53557
|
+
start: {
|
|
53558
|
+
line: 31,
|
|
53559
|
+
column: 2
|
|
53560
|
+
},
|
|
53561
|
+
end: {
|
|
53562
|
+
line: 33,
|
|
53563
|
+
column: 4
|
|
53564
|
+
}
|
|
53565
|
+
},
|
|
53566
|
+
line: 31
|
|
53567
|
+
}
|
|
53568
|
+
},
|
|
53569
|
+
branchMap: {
|
|
53570
|
+
"0": {
|
|
53571
|
+
loc: {
|
|
53572
|
+
start: {
|
|
53573
|
+
line: 18,
|
|
53574
|
+
column: 42
|
|
53575
|
+
},
|
|
53576
|
+
end: {
|
|
53577
|
+
line: 18,
|
|
53578
|
+
column: 59
|
|
53579
|
+
}
|
|
53580
|
+
},
|
|
53581
|
+
type: "default-arg",
|
|
53582
|
+
locations: [{
|
|
53583
|
+
start: {
|
|
53584
|
+
line: 18,
|
|
53585
|
+
column: 55
|
|
53586
|
+
},
|
|
53587
|
+
end: {
|
|
53588
|
+
line: 18,
|
|
53589
|
+
column: 59
|
|
53590
|
+
}
|
|
53591
|
+
}],
|
|
53592
|
+
line: 18
|
|
53593
|
+
},
|
|
53594
|
+
"1": {
|
|
53595
|
+
loc: {
|
|
53596
|
+
start: {
|
|
53597
|
+
line: 25,
|
|
53598
|
+
column: 32
|
|
53599
|
+
},
|
|
53600
|
+
end: {
|
|
53601
|
+
line: 25,
|
|
53602
|
+
column: 49
|
|
53603
|
+
}
|
|
53604
|
+
},
|
|
53605
|
+
type: "default-arg",
|
|
53606
|
+
locations: [{
|
|
53607
|
+
start: {
|
|
53608
|
+
line: 25,
|
|
53609
|
+
column: 45
|
|
53610
|
+
},
|
|
53611
|
+
end: {
|
|
53612
|
+
line: 25,
|
|
53613
|
+
column: 49
|
|
53614
|
+
}
|
|
53615
|
+
}],
|
|
53616
|
+
line: 25
|
|
53617
|
+
},
|
|
53618
|
+
"2": {
|
|
53619
|
+
loc: {
|
|
53620
|
+
start: {
|
|
53621
|
+
line: 30,
|
|
53622
|
+
column: 30
|
|
53623
|
+
},
|
|
53624
|
+
end: {
|
|
53625
|
+
line: 30,
|
|
53626
|
+
column: 47
|
|
53627
|
+
}
|
|
53628
|
+
},
|
|
53629
|
+
type: "default-arg",
|
|
53630
|
+
locations: [{
|
|
53631
|
+
start: {
|
|
53632
|
+
line: 30,
|
|
53633
|
+
column: 43
|
|
53634
|
+
},
|
|
53635
|
+
end: {
|
|
53636
|
+
line: 30,
|
|
53637
|
+
column: 47
|
|
53638
|
+
}
|
|
53639
|
+
}],
|
|
53640
|
+
line: 30
|
|
53523
53641
|
}
|
|
53524
53642
|
},
|
|
53525
|
-
branchMap: {},
|
|
53526
53643
|
s: {
|
|
53527
53644
|
"0": 0,
|
|
53528
53645
|
"1": 0,
|
|
@@ -53532,17 +53649,24 @@ function cov_vqdq5apbi() {
|
|
|
53532
53649
|
"5": 0,
|
|
53533
53650
|
"6": 0,
|
|
53534
53651
|
"7": 0,
|
|
53535
|
-
"8": 0
|
|
53652
|
+
"8": 0,
|
|
53653
|
+
"9": 0,
|
|
53654
|
+
"10": 0
|
|
53536
53655
|
},
|
|
53537
53656
|
f: {
|
|
53538
53657
|
"0": 0,
|
|
53539
53658
|
"1": 0,
|
|
53540
53659
|
"2": 0,
|
|
53541
|
-
"3": 0
|
|
53660
|
+
"3": 0,
|
|
53661
|
+
"4": 0
|
|
53662
|
+
},
|
|
53663
|
+
b: {
|
|
53664
|
+
"0": [0],
|
|
53665
|
+
"1": [0],
|
|
53666
|
+
"2": [0]
|
|
53542
53667
|
},
|
|
53543
|
-
b: {},
|
|
53544
53668
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
53545
|
-
hash: "
|
|
53669
|
+
hash: "2c2f1d9ec04b2d08c46a8553efefbf4d6710b538"
|
|
53546
53670
|
};
|
|
53547
53671
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
53548
53672
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -53584,7 +53708,8 @@ var update = function update(_ref) {
|
|
|
53584
53708
|
var url = _ref.url,
|
|
53585
53709
|
signedId = _ref.signedId,
|
|
53586
53710
|
payload = _ref.payload,
|
|
53587
|
-
showToastr = _ref.showToastr
|
|
53711
|
+
_ref$showToastr = _ref.showToastr,
|
|
53712
|
+
showToastr = _ref$showToastr === void 0 ? (cov_vqdq5apbi().b[0][0]++, true) : _ref$showToastr;
|
|
53588
53713
|
cov_vqdq5apbi().f[2]++;
|
|
53589
53714
|
cov_vqdq5apbi().s[5]++;
|
|
53590
53715
|
return axios__default["default"].patch("".concat(url, "/").concat(signedId, "/"), payload, {
|
|
@@ -53594,18 +53719,29 @@ var update = function update(_ref) {
|
|
|
53594
53719
|
});
|
|
53595
53720
|
};
|
|
53596
53721
|
cov_vqdq5apbi().s[6]++;
|
|
53597
|
-
var destroy = function destroy(url, signedId
|
|
53722
|
+
var destroy = function destroy(url, signedId) {
|
|
53723
|
+
var showToastr = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : (cov_vqdq5apbi().b[1][0]++, true);
|
|
53598
53724
|
cov_vqdq5apbi().f[3]++;
|
|
53599
53725
|
cov_vqdq5apbi().s[7]++;
|
|
53600
53726
|
return axios__default["default"]["delete"]("".concat(url, "/").concat(signedId), {
|
|
53601
53727
|
showToastr: showToastr
|
|
53602
53728
|
});
|
|
53603
53729
|
};
|
|
53604
|
-
|
|
53730
|
+
cov_vqdq5apbi().s[8]++;
|
|
53731
|
+
var attach = function attach(url, payload) {
|
|
53732
|
+
var showToastr = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : (cov_vqdq5apbi().b[2][0]++, true);
|
|
53733
|
+
cov_vqdq5apbi().f[4]++;
|
|
53734
|
+
cov_vqdq5apbi().s[9]++;
|
|
53735
|
+
return axios__default["default"].post("/neeto_editor/api/v1/direct_uploads/attach", payload, {
|
|
53736
|
+
showToastr: showToastr
|
|
53737
|
+
});
|
|
53738
|
+
};
|
|
53739
|
+
var directUploadsApi = (cov_vqdq5apbi().s[10]++, {
|
|
53605
53740
|
generate: generate,
|
|
53606
53741
|
create: create$1,
|
|
53607
53742
|
update: update,
|
|
53608
|
-
destroy: destroy
|
|
53743
|
+
destroy: destroy,
|
|
53744
|
+
attach: attach
|
|
53609
53745
|
});
|
|
53610
53746
|
|
|
53611
53747
|
var cryptoJs = {exports: {}};
|
|
@@ -60901,7 +61037,7 @@ var generateChecksum = /*#__PURE__*/function () {
|
|
|
60901
61037
|
|
|
60902
61038
|
function cov_2fcm1htlbu() {
|
|
60903
61039
|
var path = "/home/runner/work/neeto-editor/neeto-editor/src/utils/DirectUpload/index.js";
|
|
60904
|
-
var hash = "
|
|
61040
|
+
var hash = "31d39243ad4954174351229f432b4407db4d5786";
|
|
60905
61041
|
var global = new Function("return this")();
|
|
60906
61042
|
var gcv = "__coverage__";
|
|
60907
61043
|
var coverageData = {
|
|
@@ -60953,7 +61089,7 @@ function cov_2fcm1htlbu() {
|
|
|
60953
61089
|
column: 11
|
|
60954
61090
|
},
|
|
60955
61091
|
end: {
|
|
60956
|
-
line:
|
|
61092
|
+
line: 24,
|
|
60957
61093
|
column: 3
|
|
60958
61094
|
}
|
|
60959
61095
|
},
|
|
@@ -60980,100 +61116,120 @@ function cov_2fcm1htlbu() {
|
|
|
60980
61116
|
"7": {
|
|
60981
61117
|
start: {
|
|
60982
61118
|
line: 19,
|
|
60983
|
-
column:
|
|
61119
|
+
column: 30
|
|
60984
61120
|
},
|
|
60985
61121
|
end: {
|
|
60986
61122
|
line: 19,
|
|
60987
|
-
column:
|
|
61123
|
+
column: 55
|
|
60988
61124
|
}
|
|
60989
61125
|
},
|
|
60990
61126
|
"8": {
|
|
61127
|
+
start: {
|
|
61128
|
+
line: 20,
|
|
61129
|
+
column: 4
|
|
61130
|
+
},
|
|
61131
|
+
end: {
|
|
61132
|
+
line: 20,
|
|
61133
|
+
column: 43
|
|
61134
|
+
}
|
|
61135
|
+
},
|
|
61136
|
+
"9": {
|
|
60991
61137
|
start: {
|
|
60992
61138
|
line: 21,
|
|
60993
61139
|
column: 4
|
|
60994
61140
|
},
|
|
60995
61141
|
end: {
|
|
60996
61142
|
line: 21,
|
|
61143
|
+
column: 63
|
|
61144
|
+
}
|
|
61145
|
+
},
|
|
61146
|
+
"10": {
|
|
61147
|
+
start: {
|
|
61148
|
+
line: 23,
|
|
61149
|
+
column: 4
|
|
61150
|
+
},
|
|
61151
|
+
end: {
|
|
61152
|
+
line: 23,
|
|
60997
61153
|
column: 20
|
|
60998
61154
|
}
|
|
60999
61155
|
},
|
|
61000
|
-
"
|
|
61156
|
+
"11": {
|
|
61001
61157
|
start: {
|
|
61002
|
-
line:
|
|
61158
|
+
line: 26,
|
|
61003
61159
|
column: 16
|
|
61004
61160
|
},
|
|
61005
61161
|
end: {
|
|
61006
|
-
line:
|
|
61162
|
+
line: 37,
|
|
61007
61163
|
column: 3
|
|
61008
61164
|
}
|
|
61009
61165
|
},
|
|
61010
|
-
"
|
|
61166
|
+
"12": {
|
|
61011
61167
|
start: {
|
|
61012
|
-
line:
|
|
61168
|
+
line: 27,
|
|
61013
61169
|
column: 20
|
|
61014
61170
|
},
|
|
61015
61171
|
end: {
|
|
61016
|
-
line:
|
|
61172
|
+
line: 34,
|
|
61017
61173
|
column: 5
|
|
61018
61174
|
}
|
|
61019
61175
|
},
|
|
61020
|
-
"
|
|
61176
|
+
"13": {
|
|
61021
61177
|
start: {
|
|
61022
|
-
line:
|
|
61178
|
+
line: 36,
|
|
61023
61179
|
column: 4
|
|
61024
61180
|
},
|
|
61025
61181
|
end: {
|
|
61026
|
-
line:
|
|
61182
|
+
line: 36,
|
|
61027
61183
|
column: 56
|
|
61028
61184
|
}
|
|
61029
61185
|
},
|
|
61030
|
-
"
|
|
61186
|
+
"14": {
|
|
61031
61187
|
start: {
|
|
61032
|
-
line:
|
|
61188
|
+
line: 39,
|
|
61033
61189
|
column: 10
|
|
61034
61190
|
},
|
|
61035
61191
|
end: {
|
|
61036
|
-
line:
|
|
61192
|
+
line: 39,
|
|
61037
61193
|
column: 44
|
|
61038
61194
|
}
|
|
61039
61195
|
},
|
|
61040
|
-
"
|
|
61196
|
+
"15": {
|
|
61041
61197
|
start: {
|
|
61042
|
-
line:
|
|
61198
|
+
line: 39,
|
|
61043
61199
|
column: 16
|
|
61044
61200
|
},
|
|
61045
61201
|
end: {
|
|
61046
|
-
line:
|
|
61202
|
+
line: 39,
|
|
61047
61203
|
column: 44
|
|
61048
61204
|
}
|
|
61049
61205
|
},
|
|
61050
|
-
"
|
|
61206
|
+
"16": {
|
|
61051
61207
|
start: {
|
|
61052
|
-
line:
|
|
61208
|
+
line: 41,
|
|
61053
61209
|
column: 18
|
|
61054
61210
|
},
|
|
61055
61211
|
end: {
|
|
61056
|
-
line:
|
|
61212
|
+
line: 49,
|
|
61057
61213
|
column: 3
|
|
61058
61214
|
}
|
|
61059
61215
|
},
|
|
61060
|
-
"
|
|
61216
|
+
"17": {
|
|
61061
61217
|
start: {
|
|
61062
|
-
line:
|
|
61218
|
+
line: 42,
|
|
61063
61219
|
column: 19
|
|
61064
61220
|
},
|
|
61065
61221
|
end: {
|
|
61066
|
-
line:
|
|
61222
|
+
line: 46,
|
|
61067
61223
|
column: 5
|
|
61068
61224
|
}
|
|
61069
61225
|
},
|
|
61070
|
-
"
|
|
61226
|
+
"18": {
|
|
61071
61227
|
start: {
|
|
61072
|
-
line:
|
|
61228
|
+
line: 48,
|
|
61073
61229
|
column: 4
|
|
61074
61230
|
},
|
|
61075
61231
|
end: {
|
|
61076
|
-
line:
|
|
61232
|
+
line: 48,
|
|
61077
61233
|
column: 59
|
|
61078
61234
|
}
|
|
61079
61235
|
}
|
|
@@ -61121,7 +61277,7 @@ function cov_2fcm1htlbu() {
|
|
|
61121
61277
|
column: 23
|
|
61122
61278
|
},
|
|
61123
61279
|
end: {
|
|
61124
|
-
line:
|
|
61280
|
+
line: 24,
|
|
61125
61281
|
column: 3
|
|
61126
61282
|
}
|
|
61127
61283
|
},
|
|
@@ -61131,73 +61287,73 @@ function cov_2fcm1htlbu() {
|
|
|
61131
61287
|
name: "(anonymous_2)",
|
|
61132
61288
|
decl: {
|
|
61133
61289
|
start: {
|
|
61134
|
-
line:
|
|
61290
|
+
line: 26,
|
|
61135
61291
|
column: 16
|
|
61136
61292
|
},
|
|
61137
61293
|
end: {
|
|
61138
|
-
line:
|
|
61294
|
+
line: 26,
|
|
61139
61295
|
column: 17
|
|
61140
61296
|
}
|
|
61141
61297
|
},
|
|
61142
61298
|
loc: {
|
|
61143
61299
|
start: {
|
|
61144
|
-
line:
|
|
61300
|
+
line: 26,
|
|
61145
61301
|
column: 28
|
|
61146
61302
|
},
|
|
61147
61303
|
end: {
|
|
61148
|
-
line:
|
|
61304
|
+
line: 37,
|
|
61149
61305
|
column: 3
|
|
61150
61306
|
}
|
|
61151
61307
|
},
|
|
61152
|
-
line:
|
|
61308
|
+
line: 26
|
|
61153
61309
|
},
|
|
61154
61310
|
"3": {
|
|
61155
61311
|
name: "(anonymous_3)",
|
|
61156
61312
|
decl: {
|
|
61157
61313
|
start: {
|
|
61158
|
-
line:
|
|
61314
|
+
line: 39,
|
|
61159
61315
|
column: 10
|
|
61160
61316
|
},
|
|
61161
61317
|
end: {
|
|
61162
|
-
line:
|
|
61318
|
+
line: 39,
|
|
61163
61319
|
column: 11
|
|
61164
61320
|
}
|
|
61165
61321
|
},
|
|
61166
61322
|
loc: {
|
|
61167
61323
|
start: {
|
|
61168
|
-
line:
|
|
61324
|
+
line: 39,
|
|
61169
61325
|
column: 16
|
|
61170
61326
|
},
|
|
61171
61327
|
end: {
|
|
61172
|
-
line:
|
|
61328
|
+
line: 39,
|
|
61173
61329
|
column: 44
|
|
61174
61330
|
}
|
|
61175
61331
|
},
|
|
61176
|
-
line:
|
|
61332
|
+
line: 39
|
|
61177
61333
|
},
|
|
61178
61334
|
"4": {
|
|
61179
61335
|
name: "(anonymous_4)",
|
|
61180
61336
|
decl: {
|
|
61181
61337
|
start: {
|
|
61182
|
-
line:
|
|
61338
|
+
line: 41,
|
|
61183
61339
|
column: 18
|
|
61184
61340
|
},
|
|
61185
61341
|
end: {
|
|
61186
|
-
line:
|
|
61342
|
+
line: 41,
|
|
61187
61343
|
column: 19
|
|
61188
61344
|
}
|
|
61189
61345
|
},
|
|
61190
61346
|
loc: {
|
|
61191
61347
|
start: {
|
|
61192
|
-
line:
|
|
61348
|
+
line: 41,
|
|
61193
61349
|
column: 36
|
|
61194
61350
|
},
|
|
61195
61351
|
end: {
|
|
61196
|
-
line:
|
|
61352
|
+
line: 49,
|
|
61197
61353
|
column: 3
|
|
61198
61354
|
}
|
|
61199
61355
|
},
|
|
61200
|
-
line:
|
|
61356
|
+
line: 41
|
|
61201
61357
|
}
|
|
61202
61358
|
},
|
|
61203
61359
|
branchMap: {
|
|
@@ -61257,6 +61413,39 @@ function cov_2fcm1htlbu() {
|
|
|
61257
61413
|
}
|
|
61258
61414
|
}],
|
|
61259
61415
|
line: 18
|
|
61416
|
+
},
|
|
61417
|
+
"2": {
|
|
61418
|
+
loc: {
|
|
61419
|
+
start: {
|
|
61420
|
+
line: 19,
|
|
61421
|
+
column: 30
|
|
61422
|
+
},
|
|
61423
|
+
end: {
|
|
61424
|
+
line: 19,
|
|
61425
|
+
column: 55
|
|
61426
|
+
}
|
|
61427
|
+
},
|
|
61428
|
+
type: "binary-expr",
|
|
61429
|
+
locations: [{
|
|
61430
|
+
start: {
|
|
61431
|
+
line: 19,
|
|
61432
|
+
column: 30
|
|
61433
|
+
},
|
|
61434
|
+
end: {
|
|
61435
|
+
line: 19,
|
|
61436
|
+
column: 43
|
|
61437
|
+
}
|
|
61438
|
+
}, {
|
|
61439
|
+
start: {
|
|
61440
|
+
line: 19,
|
|
61441
|
+
column: 47
|
|
61442
|
+
},
|
|
61443
|
+
end: {
|
|
61444
|
+
line: 19,
|
|
61445
|
+
column: 55
|
|
61446
|
+
}
|
|
61447
|
+
}],
|
|
61448
|
+
line: 19
|
|
61260
61449
|
}
|
|
61261
61450
|
},
|
|
61262
61451
|
s: {
|
|
@@ -61276,7 +61465,9 @@ function cov_2fcm1htlbu() {
|
|
|
61276
61465
|
"13": 0,
|
|
61277
61466
|
"14": 0,
|
|
61278
61467
|
"15": 0,
|
|
61279
|
-
"16": 0
|
|
61468
|
+
"16": 0,
|
|
61469
|
+
"17": 0,
|
|
61470
|
+
"18": 0
|
|
61280
61471
|
},
|
|
61281
61472
|
f: {
|
|
61282
61473
|
"0": 0,
|
|
@@ -61287,10 +61478,11 @@ function cov_2fcm1htlbu() {
|
|
|
61287
61478
|
},
|
|
61288
61479
|
b: {
|
|
61289
61480
|
"0": [0],
|
|
61290
|
-
"1": [0, 0]
|
|
61481
|
+
"1": [0, 0],
|
|
61482
|
+
"2": [0, 0]
|
|
61291
61483
|
},
|
|
61292
61484
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
61293
|
-
hash: "
|
|
61485
|
+
hash: "31d39243ad4954174351229f432b4407db4d5786"
|
|
61294
61486
|
};
|
|
61295
61487
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
61296
61488
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -61314,7 +61506,7 @@ var DirectUpload = /*#__PURE__*/_createClass$1(function DirectUpload(_ref) {
|
|
|
61314
61506
|
progress = _ref$progress === void 0 ? (cov_2fcm1htlbu().b[0][0]++, pure.noop) : _ref$progress;
|
|
61315
61507
|
_classCallCheck$1(this, DirectUpload);
|
|
61316
61508
|
_defineProperty(this, "create", (cov_2fcm1htlbu().s[4]++, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
61317
|
-
var response, _ref3, url, headers;
|
|
61509
|
+
var response, _ref3, url, headers, _ref4, id, signed_id;
|
|
61318
61510
|
return regenerator.wrap(function _callee$(_context) {
|
|
61319
61511
|
while (1) switch (_context.prev = _context.next) {
|
|
61320
61512
|
case 0:
|
|
@@ -61325,25 +61517,33 @@ var DirectUpload = /*#__PURE__*/_createClass$1(function DirectUpload(_ref) {
|
|
|
61325
61517
|
case 4:
|
|
61326
61518
|
response = _context.sent;
|
|
61327
61519
|
_ref3 = (cov_2fcm1htlbu().s[6]++, (cov_2fcm1htlbu().b[1][0]++, response.direct_upload) || (cov_2fcm1htlbu().b[1][1]++, response.data.direct_upload)), url = _ref3.url, headers = _ref3.headers;
|
|
61328
|
-
cov_2fcm1htlbu().s[7]
|
|
61329
|
-
_context.next = 9;
|
|
61330
|
-
return _this.uploadToCloud(url, headers);
|
|
61331
|
-
case 9:
|
|
61520
|
+
_ref4 = (cov_2fcm1htlbu().s[7]++, (cov_2fcm1htlbu().b[2][0]++, response.data) || (cov_2fcm1htlbu().b[2][1]++, response)), id = _ref4.id, signed_id = _ref4.signed_id;
|
|
61332
61521
|
cov_2fcm1htlbu().s[8]++;
|
|
61522
|
+
_context.next = 10;
|
|
61523
|
+
return _this.uploadToCloud(url, headers);
|
|
61524
|
+
case 10:
|
|
61525
|
+
cov_2fcm1htlbu().s[9]++;
|
|
61526
|
+
_context.next = 13;
|
|
61527
|
+
return directUploadsApi.attach(_this.url, {
|
|
61528
|
+
id: id,
|
|
61529
|
+
signed_id: signed_id
|
|
61530
|
+
});
|
|
61531
|
+
case 13:
|
|
61532
|
+
cov_2fcm1htlbu().s[10]++;
|
|
61333
61533
|
return _context.abrupt("return", response);
|
|
61334
|
-
case
|
|
61534
|
+
case 15:
|
|
61335
61535
|
case "end":
|
|
61336
61536
|
return _context.stop();
|
|
61337
61537
|
}
|
|
61338
61538
|
}, _callee);
|
|
61339
61539
|
}))));
|
|
61340
|
-
_defineProperty(this, "generateUrl", (cov_2fcm1htlbu().s[
|
|
61540
|
+
_defineProperty(this, "generateUrl", (cov_2fcm1htlbu().s[11]++, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
|
|
61341
61541
|
var payload;
|
|
61342
61542
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
61343
61543
|
while (1) switch (_context2.prev = _context2.next) {
|
|
61344
61544
|
case 0:
|
|
61345
61545
|
cov_2fcm1htlbu().f[2]++;
|
|
61346
|
-
cov_2fcm1htlbu().s[
|
|
61546
|
+
cov_2fcm1htlbu().s[12]++;
|
|
61347
61547
|
_context2.t0 = _this.file.name;
|
|
61348
61548
|
_context2.t1 = _this.file.size;
|
|
61349
61549
|
_context2.t2 = _this.file.type;
|
|
@@ -61360,7 +61560,7 @@ var DirectUpload = /*#__PURE__*/_createClass$1(function DirectUpload(_ref) {
|
|
|
61360
61560
|
payload = {
|
|
61361
61561
|
blob: _context2.t4
|
|
61362
61562
|
};
|
|
61363
|
-
cov_2fcm1htlbu().s[
|
|
61563
|
+
cov_2fcm1htlbu().s[13]++;
|
|
61364
61564
|
return _context2.abrupt("return", directUploadsApi.generate(_this.url, payload));
|
|
61365
61565
|
case 12:
|
|
61366
61566
|
case "end":
|
|
@@ -61368,19 +61568,19 @@ var DirectUpload = /*#__PURE__*/_createClass$1(function DirectUpload(_ref) {
|
|
|
61368
61568
|
}
|
|
61369
61569
|
}, _callee2);
|
|
61370
61570
|
}))));
|
|
61371
|
-
_defineProperty(this, "abort", (cov_2fcm1htlbu().s[
|
|
61571
|
+
_defineProperty(this, "abort", (cov_2fcm1htlbu().s[14]++, function () {
|
|
61372
61572
|
cov_2fcm1htlbu().f[3]++;
|
|
61373
|
-
cov_2fcm1htlbu().s[
|
|
61573
|
+
cov_2fcm1htlbu().s[15]++;
|
|
61374
61574
|
return _this.abortController.abort();
|
|
61375
61575
|
}));
|
|
61376
|
-
_defineProperty(this, "uploadToCloud", (cov_2fcm1htlbu().s[
|
|
61576
|
+
_defineProperty(this, "uploadToCloud", (cov_2fcm1htlbu().s[16]++, function (url, headers) {
|
|
61377
61577
|
cov_2fcm1htlbu().f[4]++;
|
|
61378
|
-
var config = (cov_2fcm1htlbu().s[
|
|
61578
|
+
var config = (cov_2fcm1htlbu().s[17]++, {
|
|
61379
61579
|
headers: headers,
|
|
61380
61580
|
onUploadProgress: _this.progress,
|
|
61381
61581
|
signal: _this.abortController.signal
|
|
61382
61582
|
});
|
|
61383
|
-
cov_2fcm1htlbu().s[
|
|
61583
|
+
cov_2fcm1htlbu().s[18]++;
|
|
61384
61584
|
return directUploadsApi.create(url, _this.file, config);
|
|
61385
61585
|
}));
|
|
61386
61586
|
cov_2fcm1htlbu().f[0]++;
|
|
@@ -148480,7 +148680,7 @@ var Editor$1 = /*#__PURE__*/React__default["default"].forwardRef(Editor);
|
|
|
148480
148680
|
var _excluded$1 = ["name"];
|
|
148481
148681
|
function cov_4yoeuyegb() {
|
|
148482
148682
|
var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/FormikEditor.jsx";
|
|
148483
|
-
var hash = "
|
|
148683
|
+
var hash = "53d96e7a42f3ac252a5ea16a2332780ae33f210c";
|
|
148484
148684
|
var global = new Function("return this")();
|
|
148485
148685
|
var gcv = "__coverage__";
|
|
148486
148686
|
var coverageData = {
|
|
@@ -148492,7 +148692,7 @@ function cov_4yoeuyegb() {
|
|
|
148492
148692
|
column: 21
|
|
148493
148693
|
},
|
|
148494
148694
|
end: {
|
|
148495
|
-
line:
|
|
148695
|
+
line: 21,
|
|
148496
148696
|
column: 1
|
|
148497
148697
|
}
|
|
148498
148698
|
},
|
|
@@ -148502,7 +148702,7 @@ function cov_4yoeuyegb() {
|
|
|
148502
148702
|
column: 2
|
|
148503
148703
|
},
|
|
148504
148704
|
end: {
|
|
148505
|
-
line:
|
|
148705
|
+
line: 20,
|
|
148506
148706
|
column: 14
|
|
148507
148707
|
}
|
|
148508
148708
|
},
|
|
@@ -148512,27 +148712,27 @@ function cov_4yoeuyegb() {
|
|
|
148512
148712
|
column: 6
|
|
148513
148713
|
},
|
|
148514
148714
|
end: {
|
|
148515
|
-
line:
|
|
148715
|
+
line: 18,
|
|
148516
148716
|
column: 8
|
|
148517
148717
|
}
|
|
148518
148718
|
},
|
|
148519
148719
|
"3": {
|
|
148520
148720
|
start: {
|
|
148521
|
-
line:
|
|
148721
|
+
line: 15,
|
|
148522
148722
|
column: 22
|
|
148523
148723
|
},
|
|
148524
148724
|
end: {
|
|
148525
|
-
line:
|
|
148725
|
+
line: 15,
|
|
148526
148726
|
column: 54
|
|
148527
148727
|
}
|
|
148528
148728
|
},
|
|
148529
148729
|
"4": {
|
|
148530
148730
|
start: {
|
|
148531
|
-
line:
|
|
148731
|
+
line: 16,
|
|
148532
148732
|
column: 27
|
|
148533
148733
|
},
|
|
148534
148734
|
end: {
|
|
148535
|
-
line:
|
|
148735
|
+
line: 16,
|
|
148536
148736
|
column: 58
|
|
148537
148737
|
}
|
|
148538
148738
|
}
|
|
@@ -148556,7 +148756,7 @@ function cov_4yoeuyegb() {
|
|
|
148556
148756
|
column: 2
|
|
148557
148757
|
},
|
|
148558
148758
|
end: {
|
|
148559
|
-
line:
|
|
148759
|
+
line: 20,
|
|
148560
148760
|
column: 14
|
|
148561
148761
|
}
|
|
148562
148762
|
},
|
|
@@ -148580,7 +148780,7 @@ function cov_4yoeuyegb() {
|
|
|
148580
148780
|
column: 6
|
|
148581
148781
|
},
|
|
148582
148782
|
end: {
|
|
148583
|
-
line:
|
|
148783
|
+
line: 18,
|
|
148584
148784
|
column: 8
|
|
148585
148785
|
}
|
|
148586
148786
|
},
|
|
@@ -148590,49 +148790,49 @@ function cov_4yoeuyegb() {
|
|
|
148590
148790
|
name: "(anonymous_2)",
|
|
148591
148791
|
decl: {
|
|
148592
148792
|
start: {
|
|
148593
|
-
line:
|
|
148793
|
+
line: 15,
|
|
148594
148794
|
column: 16
|
|
148595
148795
|
},
|
|
148596
148796
|
end: {
|
|
148597
|
-
line:
|
|
148797
|
+
line: 15,
|
|
148598
148798
|
column: 17
|
|
148599
148799
|
}
|
|
148600
148800
|
},
|
|
148601
148801
|
loc: {
|
|
148602
148802
|
start: {
|
|
148603
|
-
line:
|
|
148803
|
+
line: 15,
|
|
148604
148804
|
column: 22
|
|
148605
148805
|
},
|
|
148606
148806
|
end: {
|
|
148607
|
-
line:
|
|
148807
|
+
line: 15,
|
|
148608
148808
|
column: 54
|
|
148609
148809
|
}
|
|
148610
148810
|
},
|
|
148611
|
-
line:
|
|
148811
|
+
line: 15
|
|
148612
148812
|
},
|
|
148613
148813
|
"3": {
|
|
148614
148814
|
name: "(anonymous_3)",
|
|
148615
148815
|
decl: {
|
|
148616
148816
|
start: {
|
|
148617
|
-
line:
|
|
148817
|
+
line: 16,
|
|
148618
148818
|
column: 18
|
|
148619
148819
|
},
|
|
148620
148820
|
end: {
|
|
148621
|
-
line:
|
|
148821
|
+
line: 16,
|
|
148622
148822
|
column: 19
|
|
148623
148823
|
}
|
|
148624
148824
|
},
|
|
148625
148825
|
loc: {
|
|
148626
148826
|
start: {
|
|
148627
|
-
line:
|
|
148827
|
+
line: 16,
|
|
148628
148828
|
column: 27
|
|
148629
148829
|
},
|
|
148630
148830
|
end: {
|
|
148631
|
-
line:
|
|
148831
|
+
line: 16,
|
|
148632
148832
|
column: 58
|
|
148633
148833
|
}
|
|
148634
148834
|
},
|
|
148635
|
-
line:
|
|
148835
|
+
line: 16
|
|
148636
148836
|
}
|
|
148637
148837
|
},
|
|
148638
148838
|
branchMap: {
|
|
@@ -148687,7 +148887,7 @@ function cov_4yoeuyegb() {
|
|
|
148687
148887
|
"0": [0, 0]
|
|
148688
148888
|
},
|
|
148689
148889
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
148690
|
-
hash: "
|
|
148890
|
+
hash: "53d96e7a42f3ac252a5ea16a2332780ae33f210c"
|
|
148691
148891
|
};
|
|
148692
148892
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
148693
148893
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -148720,6 +148920,7 @@ var FormikEditor = function FormikEditor(_ref, ref) {
|
|
|
148720
148920
|
return /*#__PURE__*/React__default["default"].createElement(Editor$1, _extends$2({
|
|
148721
148921
|
error: meta.touched ? (cov_4yoeuyegb().b[0][0]++, meta.error) : (cov_4yoeuyegb().b[0][1]++, ""),
|
|
148722
148922
|
initialValue: field.value,
|
|
148923
|
+
name: name,
|
|
148723
148924
|
ref: ref,
|
|
148724
148925
|
onBlur: function onBlur() {
|
|
148725
148926
|
cov_4yoeuyegb().f[2]++;
|