@tradly/asset 1.0.23 → 1.0.24

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.
@@ -148,6 +148,13 @@ var MediaApiService = /*#__PURE__*/function () {
148
148
  mimeTypeParam = Array.isArray(mimeTypes) ? mimeTypes.join(",") : mimeTypes;
149
149
  params.mime_type = mimeTypeParam;
150
150
  }
151
+ console.log("params", {
152
+ method: "GET",
153
+ path: "/v1/media",
154
+ params: params,
155
+ setISLoading: setISLoading,
156
+ isLoading: isLoading
157
+ });
151
158
  return _context2.a(2, this.apiCall({
152
159
  method: "GET",
153
160
  path: "/v1/media",
@@ -387,10 +394,15 @@ var MediaApiService = /*#__PURE__*/function () {
387
394
  break;
388
395
  }
389
396
  _context5.p = 3;
397
+ console.log("upload_full_files", upload_full_files);
398
+ // Step 1: Get signed URLs from API
390
399
  _context5.n = 4;
391
400
  return this.getS3SignedUrls(upload_full_files, auth_key);
392
401
  case 4:
393
402
  responseFiles = _context5.v;
403
+ console.log("responseFiles", responseFiles);
404
+
405
+ // Step 2: Upload each file to S3
394
406
  index = 0;
395
407
  case 5:
396
408
  if (!(index < responseFiles.length)) {
@@ -142,6 +142,13 @@ var MediaApiService = /*#__PURE__*/function () {
142
142
  mimeTypeParam = Array.isArray(mimeTypes) ? mimeTypes.join(",") : mimeTypes;
143
143
  params.mime_type = mimeTypeParam;
144
144
  }
145
+ console.log("params", {
146
+ method: "GET",
147
+ path: "/v1/media",
148
+ params: params,
149
+ setISLoading: setISLoading,
150
+ isLoading: isLoading
151
+ });
145
152
  return _context2.a(2, this.apiCall({
146
153
  method: "GET",
147
154
  path: "/v1/media",
@@ -381,10 +388,15 @@ var MediaApiService = /*#__PURE__*/function () {
381
388
  break;
382
389
  }
383
390
  _context5.p = 3;
391
+ console.log("upload_full_files", upload_full_files);
392
+ // Step 1: Get signed URLs from API
384
393
  _context5.n = 4;
385
394
  return this.getS3SignedUrls(upload_full_files, auth_key);
386
395
  case 4:
387
396
  responseFiles = _context5.v;
397
+ console.log("responseFiles", responseFiles);
398
+
399
+ // Step 2: Upload each file to S3
388
400
  index = 0;
389
401
  case 5:
390
402
  if (!(index < responseFiles.length)) {
@@ -9,7 +9,7 @@ var ITEM_MARGIN = 4; // Match MediaGallery margin
9
9
  // - Container padding (md = 12px on each side = 24px total)
10
10
  // - Grid padding (2px on each side = 4px total)
11
11
  // - Item margins between items (4px * 2 gaps = 8px total)
12
- var CONTAINER_PADDING = 24; // paddingHorizontal md (12 * 2)
12
+ var CONTAINER_PADDING = 20; // paddingHorizontal md (12 * 2)
13
13
  var GRID_PADDING = 4; // padding 2 on each side (2 * 2)
14
14
  var TOTAL_MARGINS = ITEM_MARGIN * (NUM_COLUMNS - 1) * 2; // margins between items (4px * 2 gaps = 8px)
15
15
  var ITEM_SIZE = (SCREEN_WIDTH - CONTAINER_PADDING - GRID_PADDING - TOTAL_MARGINS) / NUM_COLUMNS;
@@ -16,7 +16,7 @@ var ITEM_MARGIN = 4; // Match MediaGallery margin
16
16
  // - Container padding (md = 12px on each side = 24px total)
17
17
  // - Grid padding (2px on each side = 4px total)
18
18
  // - Item margins between items (4px * 2 gaps = 8px total)
19
- var CONTAINER_PADDING = 24; // paddingHorizontal md (12 * 2)
19
+ var CONTAINER_PADDING = 20; // paddingHorizontal md (12 * 2)
20
20
  var GRID_PADDING = 4; // padding 2 on each side (2 * 2)
21
21
  var TOTAL_MARGINS = ITEM_MARGIN * (NUM_COLUMNS - 1) * 2; // margins between items (4px * 2 gaps = 8px)
22
22
  var ITEM_SIZE = (SCREEN_WIDTH - CONTAINER_PADDING - GRID_PADDING - TOTAL_MARGINS) / NUM_COLUMNS;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tradly/asset",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
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",