croco-html 4.7.1 → 4.9.0

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.
@@ -223,10 +223,7 @@ class ImageMethods {
223
223
  if (fileId === null || fileId === undefined) {
224
224
  return null;
225
225
  }
226
- const format = ImageMethods.isPrivateFileId(fileId)
227
- ? options.imageOptions.publicImageResizedUrlFormat
228
- : options.imageOptions.privateImageResizedUrlFormat;
229
- return format
226
+ return options.imageOptions.sizeTypeAndFileIdImageUrlFormat
230
227
  .replace("{sizeType}", sizeType)
231
228
  .replace("{fileId}", fileId);
232
229
  }
@@ -1237,7 +1234,7 @@ class PublicFileUploadService {
1237
1234
  return this.postFilesInner(formData, applicationId);
1238
1235
  }
1239
1236
  postFilesInner(formData, applicationId, withProgress = false) {
1240
- let endpoint = this.baseUrl + `api/files/upload?makeLocalCopiesNow=true&executeHandlersNow=true`;
1237
+ let endpoint = this.baseUrl + `api/files/upload?executeHandlersNow=true`;
1241
1238
  if (applicationId) {
1242
1239
  endpoint += `&applicationId=${applicationId}`;
1243
1240
  }
@@ -1268,7 +1265,7 @@ class PrivateFileUploadService {
1268
1265
  return this.postFilesInner(formData, applicationId);
1269
1266
  }
1270
1267
  postFilesInner(formData, applicationId, withProgress = false) {
1271
- let endpoint = this.baseUrl + `api/private-files/upload?createCopiesNow=true`;
1268
+ let endpoint = this.baseUrl + `api/private-files/upload?executeHandlersNow=true`;
1272
1269
  if (applicationId) {
1273
1270
  endpoint += `&applicationId=${applicationId}`;
1274
1271
  }