@tradly/asset 1.0.21 → 1.0.22
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.
|
@@ -391,6 +391,9 @@ var MediaApiService = /*#__PURE__*/function () {
|
|
|
391
391
|
return this.getS3SignedUrls(upload_full_files, auth_key);
|
|
392
392
|
case 4:
|
|
393
393
|
responseFiles = _context5.v;
|
|
394
|
+
console.log("responseFiles", responseFiles);
|
|
395
|
+
|
|
396
|
+
// Step 2: Upload each file to S3
|
|
394
397
|
index = 0;
|
|
395
398
|
case 5:
|
|
396
399
|
if (!(index < responseFiles.length)) {
|
|
@@ -385,6 +385,9 @@ var MediaApiService = /*#__PURE__*/function () {
|
|
|
385
385
|
return this.getS3SignedUrls(upload_full_files, auth_key);
|
|
386
386
|
case 4:
|
|
387
387
|
responseFiles = _context5.v;
|
|
388
|
+
console.log("responseFiles", responseFiles);
|
|
389
|
+
|
|
390
|
+
// Step 2: Upload each file to S3
|
|
388
391
|
index = 0;
|
|
389
392
|
case 5:
|
|
390
393
|
if (!(index < responseFiles.length)) {
|
|
@@ -186,13 +186,17 @@ var FileUpload = function FileUpload(_ref) {
|
|
|
186
186
|
while (1) switch (_context.p = _context.n) {
|
|
187
187
|
case 0:
|
|
188
188
|
if (onUploadStart) {
|
|
189
|
+
console.log("onUploadStart", fileList);
|
|
189
190
|
onUploadStart(fileList);
|
|
190
191
|
}
|
|
191
192
|
setISLoading(true);
|
|
192
193
|
setUploadProgress(0);
|
|
193
194
|
_context.p = 1;
|
|
194
195
|
// Convert picker results to File-like objects
|
|
195
|
-
filesToUpload = fileList.map(convertToFile);
|
|
196
|
+
filesToUpload = fileList.map(convertToFile);
|
|
197
|
+
console.log("filesToUpload", filesToUpload);
|
|
198
|
+
|
|
199
|
+
// Use the API service to upload files
|
|
196
200
|
// Note: uploadMedia will need to handle React Native file URIs
|
|
197
201
|
_context.n = 2;
|
|
198
202
|
return apiService.uploadMedia(filesToUpload, apiService.authKey);
|
|
@@ -191,13 +191,17 @@ var FileUpload = function FileUpload(_ref) {
|
|
|
191
191
|
while (1) switch (_context.p = _context.n) {
|
|
192
192
|
case 0:
|
|
193
193
|
if (onUploadStart) {
|
|
194
|
+
console.log("onUploadStart", fileList);
|
|
194
195
|
onUploadStart(fileList);
|
|
195
196
|
}
|
|
196
197
|
setISLoading(true);
|
|
197
198
|
setUploadProgress(0);
|
|
198
199
|
_context.p = 1;
|
|
199
200
|
// Convert picker results to File-like objects
|
|
200
|
-
filesToUpload = fileList.map(convertToFile);
|
|
201
|
+
filesToUpload = fileList.map(convertToFile);
|
|
202
|
+
console.log("filesToUpload", filesToUpload);
|
|
203
|
+
|
|
204
|
+
// Use the API service to upload files
|
|
201
205
|
// Note: uploadMedia will need to handle React Native file URIs
|
|
202
206
|
_context.n = 2;
|
|
203
207
|
return apiService.uploadMedia(filesToUpload, apiService.authKey);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tradly/asset",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
4
4
|
"description": "A reusable media gallery component for uploading and selecting images, videos, and files with Tradly authentication",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|