@designcrowd/library.brand-page 5.12.13-flacky-nav-2 → 5.12.13

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.
Files changed (63) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-CJd8myVU.js → CreatedOnBrandCrowd-de-de-BezsFVny.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-D4gZ2H-9.js → CreatedOnBrandCrowd-en-us-ulQgBuU-.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-Cj7neWWa.js → CreatedOnBrandCrowd-es-es-qvD2vIl0.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-CdBtmVE3.js → CreatedOnBrandCrowd-fr-fr-Dd_AMhTv.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-pt-pt-PoPJCQeR.js → CreatedOnBrandCrowd-pt-pt-Cc-MpjqR.js} +1 -1
  6. package/lib/src/{CreatedOnDcom-de-de-CaSDNyDq.js → CreatedOnDcom-de-de-XvJi63yz.js} +1 -1
  7. package/lib/src/{CreatedOnDcom-en-us-ma0Une6U.js → CreatedOnDcom-en-us-DnMC3nxO.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-es-es-BEeZPSgl.js → CreatedOnDcom-es-es-KJxsvnLp.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-fr-fr-j1DtvzYd.js → CreatedOnDcom-fr-fr-7aEPaXkS.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-pt-pt-D1UT2017.js → CreatedOnDcom-pt-pt-CYLmzlvx.js} +1 -1
  11. package/lib/src/brand-page/components/background-shape/BackgroundShape.mixin.js +1 -0
  12. package/lib/src/brand-page/components/payment/__fixtures__/request-payment.d.ts +0 -1
  13. package/lib/src/brand-page/components/payment/__fixtures__/support-me.d.ts +0 -1
  14. package/lib/src/brand-page/models/brand-page-context.model.d.ts +0 -2
  15. package/lib/src/brand-page/utils/migration/migration-01.d.ts +1 -1
  16. package/lib/src/brand-page/utils/migration/migration-01.js +1 -1
  17. package/lib/src/brand-page/utils/migration/migration-02.d.ts +1 -1
  18. package/lib/src/brand-page/utils/migration/migration-02.js +1 -1
  19. package/lib/src/brand-page/utils/migration/migration-03.d.ts +1 -1
  20. package/lib/src/brand-page/utils/migration/migration-03.js +1 -1
  21. package/lib/src/brand-page/utils/migration/migration-04.d.ts +1 -1
  22. package/lib/src/brand-page/utils/migration/migration-04.js +1 -1
  23. package/lib/src/brand-page/utils/migration/migration-05.d.ts +2 -5
  24. package/lib/src/brand-page/utils/migration/migration-05.js +1 -1
  25. package/lib/src/brand-page/utils/migration.util.d.ts +1 -2
  26. package/lib/src/brand-page/utils/migration.util.js +4 -9
  27. package/lib/src/brand-page-maker/components/preview/Preview.mixin.js +0 -1
  28. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.js +0 -1
  29. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +1 -1
  30. package/lib/src/css/library.brand-page-brandCrowd.min.css +5 -11
  31. package/lib/src/css/library.brand-page-brandPage.min.css +5 -11
  32. package/lib/src/css/library.brand-page-designCom.min.css +5 -11
  33. package/lib/src/css/library.brand-page-preview.min.css +5 -11
  34. package/lib/src/index.mjs +1 -1
  35. package/lib/src/{lib-h5MCJKws.js → lib-Ts2IO7tS.js} +16787 -16943
  36. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.js +0 -1
  37. package/lib/src/shared/page-settings/store/page-settings-store.js +1 -1
  38. package/lib/src/shared/template-settings/store/template-settings-store.js +1 -1
  39. package/package.json +1 -1
  40. package/src/brand-page/components/background-shape/BackgroundShape.mixin.ts +2 -0
  41. package/src/brand-page/components/logo/Logo.vue +27 -106
  42. package/src/brand-page/components/logo/LogoRender.vue +4 -15
  43. package/src/brand-page/models/brand-page-context.model.ts +0 -2
  44. package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +3 -3
  45. package/src/brand-page/utils/migration/logo/migration.util.logo.test.ts +2 -2
  46. package/src/brand-page/utils/migration/migration-01.ts +2 -2
  47. package/src/brand-page/utils/migration/migration-02.ts +2 -2
  48. package/src/brand-page/utils/migration/migration-03.ts +2 -2
  49. package/src/brand-page/utils/migration/migration-04.ts +2 -2
  50. package/src/brand-page/utils/migration/migration-05.ts +2 -12
  51. package/src/brand-page/utils/migration.util.test.ts +108 -155
  52. package/src/brand-page/utils/migration.util.ts +6 -12
  53. package/src/brand-page/utils/migration2.util.test.ts +2 -4
  54. package/src/brand-page-maker/components/preview/Preview.mixin.ts +0 -1
  55. package/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.ts +0 -1
  56. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +1 -1
  57. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.ts +0 -1
  58. package/src/shared/page-settings/store/page-settings-store.ts +0 -1
  59. package/src/shared/template-settings/store/template-settings-store.ts +1 -1
  60. package/lib/src/brand-page/utils/migration/migration-06.d.ts +0 -4
  61. package/lib/src/brand-page/utils/migration/migration-06.js +0 -96
  62. package/src/brand-page/utils/migration/migration-06.test.ts +0 -338
  63. package/src/brand-page/utils/migration/migration-06.ts +0 -164
@@ -879,7 +879,7 @@ describe('migration.util', () => {
879
879
  } as any;
880
880
  };
881
881
 
882
- test('migrateBrandPageModel should return brand page model with migrated textItems if missing for brand site', async () => {
882
+ test('migrateBrandPageModel should return brand page model with migrated textItems if missing for brand site', () => {
883
883
  // Arrange
884
884
  const oldTemplate: BrandPageData = {
885
885
  pages: [
@@ -916,7 +916,7 @@ describe('migration.util', () => {
916
916
  } as any;
917
917
 
918
918
  // Act
919
- const model = await migrateBrandPageModel(new BrandPageModel(oldTemplate), {
919
+ const model = migrateBrandPageModel(new BrandPageModel(oldTemplate), {
920
920
  isUserDraft: false,
921
921
  });
922
922
 
@@ -929,7 +929,7 @@ describe('migration.util', () => {
929
929
  expect(textItems![0].textStyle).not.toBeNull();
930
930
  });
931
931
 
932
- test('migrateBrandPageModel should return brand page model with default textstyle object if textItem has missing textStyle object for brand site', async () => {
932
+ test('migrateBrandPageModel should return brand page model with default textstyle object if textItem has missing textStyle object for brand site', () => {
933
933
  // Arrange
934
934
  const oldTemplate: BrandPageModel = {
935
935
  pages: [
@@ -971,7 +971,7 @@ describe('migration.util', () => {
971
971
  } as any;
972
972
 
973
973
  // Act
974
- const model = await migrateBrandPageModel(new BrandPageModel(oldTemplate), {
974
+ const model = migrateBrandPageModel(new BrandPageModel(oldTemplate), {
975
975
  isUserDraft: false,
976
976
  });
977
977
 
@@ -986,9 +986,9 @@ describe('migration.util', () => {
986
986
 
987
987
  describe('Brandpage Models', () => {
988
988
  describe('Button Contents', () => {
989
- test('migrateBrandPageModel should return missing text styles', async () => {
989
+ test('migrateBrandPageModel should return missing text styles', () => {
990
990
  // Act
991
- const model = await migrateBrandPageModel(getBrandPageTypeModel(), {
991
+ const model = migrateBrandPageModel(getBrandPageTypeModel(), {
992
992
  isUserDraft: false,
993
993
  });
994
994
 
@@ -999,9 +999,9 @@ describe('migration.util', () => {
999
999
  });
1000
1000
  });
1001
1001
  describe('Profile Contents', () => {
1002
- test('migrateBrandPageModel should return missing text styles', async () => {
1002
+ test('migrateBrandPageModel should return missing text styles', () => {
1003
1003
  // Act
1004
- const model = await migrateBrandPageModel(getBrandPageTypeModel(), {
1004
+ const model = migrateBrandPageModel(getBrandPageTypeModel(), {
1005
1005
  isUserDraft: false,
1006
1006
  });
1007
1007
 
@@ -1014,9 +1014,9 @@ describe('migration.util', () => {
1014
1014
  });
1015
1015
 
1016
1016
  describe('Banner Contents - text Align and Font Family should not be empty', () => {
1017
- test('migrateBrandPageModel should return banner contents with text style to have textAlign and FontFamily if its missing', async () => {
1017
+ test('migrateBrandPageModel should return banner contents with text style to have textAlign and FontFamily if its missing', () => {
1018
1018
  // Act
1019
- const model = await migrateBrandPageModel(getBsModel(), {
1019
+ const model = migrateBrandPageModel(getBsModel(), {
1020
1020
  isUserDraft: false,
1021
1021
  });
1022
1022
 
@@ -1033,7 +1033,7 @@ describe('migration.util', () => {
1033
1033
  expect(bannerContent.buttonTextStyle.lineHeight).toBe(LINE_HEIGHT_BODY);
1034
1034
  });
1035
1035
 
1036
- test('migrateBannerContentToRawImageUrl should return banner images url without q and w parameter when given a model with unsplash image url', async () => {
1036
+ test('migrateBannerContentToRawImageUrl should return banner images url without q and w parameter when given a model with unsplash image url', () => {
1037
1037
  // Arrange
1038
1038
  const oldTemplate: BrandPageModel = {
1039
1039
  pages: [
@@ -1088,12 +1088,9 @@ describe('migration.util', () => {
1088
1088
  } as any;
1089
1089
 
1090
1090
  // Act
1091
- const model = await migrateBrandPageModel(
1092
- new BrandPageModel(oldTemplate),
1093
- {
1094
- isUserDraft: false,
1095
- },
1096
- );
1091
+ const model = migrateBrandPageModel(new BrandPageModel(oldTemplate), {
1092
+ isUserDraft: false,
1093
+ });
1097
1094
 
1098
1095
  // Assert
1099
1096
  expect(model).toMatchSnapshot();
@@ -1106,8 +1103,8 @@ describe('migration.util', () => {
1106
1103
  expect(url.searchParams.has('w')).toBe(false);
1107
1104
  });
1108
1105
 
1109
- test('migrateBrandPageModel should return banner contents with text style to have textAlign based on display style', async () => {
1110
- const model = await migrateBrandPageModel(getBsModel(), {
1106
+ test('migrateBrandPageModel should return banner contents with text style to have textAlign based on display style', () => {
1107
+ const model = migrateBrandPageModel(getBsModel(), {
1111
1108
  isUserDraft: false,
1112
1109
  });
1113
1110
 
@@ -1118,9 +1115,9 @@ describe('migration.util', () => {
1118
1115
  expect(bannerContent.buttonTextStyle.textAlign).toBe('left');
1119
1116
  });
1120
1117
 
1121
- test('migrateBrandPageModel should return text style with textAlign and FontFamily for newly added Banner Content', async () => {
1118
+ test('migrateBrandPageModel should return text style with textAlign and FontFamily for newly added Banner Content', () => {
1122
1119
  // Act
1123
- const model = await migrateBrandPageModel(getBsModel(), {
1120
+ const model = migrateBrandPageModel(getBsModel(), {
1124
1121
  isUserDraft: false,
1125
1122
  });
1126
1123
 
@@ -1134,9 +1131,9 @@ describe('migration.util', () => {
1134
1131
  expect(bannerContent.buttonTextStyle.fontFamily).toBe('Lato');
1135
1132
  });
1136
1133
 
1137
- test('migrateBrandPageModel should not change existing alignments for existing contents for banner contents', async () => {
1134
+ test('migrateBrandPageModel should not change existing alignments for existing contents for banner contents', () => {
1138
1135
  // Act
1139
- const model = await migrateBrandPageModel(getBsModel(), {
1136
+ const model = migrateBrandPageModel(getBsModel(), {
1140
1137
  isUserDraft: false,
1141
1138
  });
1142
1139
 
@@ -1150,11 +1147,9 @@ describe('migration.util', () => {
1150
1147
  expect(bannerContent.buttonTextStyle.fontFamily).toBe('Lato');
1151
1148
  });
1152
1149
 
1153
- test('migrateBrandPageModel should convert lineheight rem to unitless', async () => {
1150
+ test('migrateBrandPageModel should convert lineheight rem to unitless', () => {
1154
1151
  // Act
1155
- const model = await migrateBrandPageModel(getBsModel(), {
1156
- isUserDraft: false,
1157
- });
1152
+ const model = migrateBrandPageModel(getBsModel(), { isUserDraft: false });
1158
1153
 
1159
1154
  const bannerContent = model.pages[0].contents[0] as BannerSectionContent;
1160
1155
 
@@ -1162,11 +1157,9 @@ describe('migration.util', () => {
1162
1157
  expect(bannerContent.descriptionStyle.lineHeight).toBe(LINE_HEIGHT_BODY);
1163
1158
  expect(bannerContent.buttonTextStyle.lineHeight).toBe(LINE_HEIGHT_BODY);
1164
1159
  });
1165
- test('migrateBrandPageModel should not replace lineheight if theres existing', async () => {
1160
+ test('migrateBrandPageModel should not replace lineheight if theres existing', () => {
1166
1161
  // Act
1167
- const model = await migrateBrandPageModel(getBsModel(), {
1168
- isUserDraft: false,
1169
- });
1162
+ const model = migrateBrandPageModel(getBsModel(), { isUserDraft: false });
1170
1163
 
1171
1164
  const bannerContent = model.pages[1].contents[1] as BannerSectionContent;
1172
1165
 
@@ -1177,9 +1170,9 @@ describe('migration.util', () => {
1177
1170
  });
1178
1171
 
1179
1172
  describe('Testimonial Contents - text Align and Font Family should not be empty', () => {
1180
- test('migrateBrandPageModel should return testimonial contents with text style that are not assigned to have textAlign and FontFamily', async () => {
1173
+ test('migrateBrandPageModel should return testimonial contents with text style that are not assigned to have textAlign and FontFamily', () => {
1181
1174
  // Act
1182
- const model = await migrateBrandPageModel(getBsModel(), {
1175
+ const model = migrateBrandPageModel(getBsModel(), {
1183
1176
  isUserDraft: false,
1184
1177
  });
1185
1178
 
@@ -1195,10 +1188,10 @@ describe('migration.util', () => {
1195
1188
  expect(testimonialContent.nameStyle.fontFamily).toBe('Lato');
1196
1189
  expect(testimonialContent.positionStyle.fontFamily).toBe('Lato');
1197
1190
  });
1198
- test('migrateBrandPageModel should return testimonial contents with text style to have textAlign and FontFamily - column displayStyle', async () => {
1191
+ test('migrateBrandPageModel should return testimonial contents with text style to have textAlign and FontFamily - column displayStyle', () => {
1199
1192
  // Act
1200
1193
 
1201
- const model = await migrateBrandPageModel(getBsModel(), {
1194
+ const model = migrateBrandPageModel(getBsModel(), {
1202
1195
  isUserDraft: false,
1203
1196
  });
1204
1197
 
@@ -1214,9 +1207,9 @@ describe('migration.util', () => {
1214
1207
  expect(testimonialContent.nameStyle.fontFamily).toBe('Lato');
1215
1208
  expect(testimonialContent.positionStyle.fontFamily).toBe('Lato');
1216
1209
  });
1217
- test('migrateBrandPageModel should not change existing alignments for existing contents for testimonial contents', async () => {
1210
+ test('migrateBrandPageModel should not change existing alignments for existing contents for testimonial contents', () => {
1218
1211
  // Act
1219
- const model = await migrateBrandPageModel(getBsModel(), {
1212
+ const model = migrateBrandPageModel(getBsModel(), {
1220
1213
  isUserDraft: false,
1221
1214
  });
1222
1215
 
@@ -1234,9 +1227,9 @@ describe('migration.util', () => {
1234
1227
  });
1235
1228
  });
1236
1229
  describe('About Contents - text Align and Font Family should not be empty', () => {
1237
- test('migrateBrandPageModel should return About contents with text style to have textAlign and FontFamily', async () => {
1230
+ test('migrateBrandPageModel should return About contents with text style to have textAlign and FontFamily', () => {
1238
1231
  // Act
1239
- const model = await migrateBrandPageModel(getBsModel(), {
1232
+ const model = migrateBrandPageModel(getBsModel(), {
1240
1233
  isUserDraft: false,
1241
1234
  });
1242
1235
 
@@ -1247,9 +1240,9 @@ describe('migration.util', () => {
1247
1240
  expect(aboutContents.titleStyle.fontFamily).toBe('Lato');
1248
1241
  expect(aboutContents.paragraphStyle.fontFamily).toBe('Lato');
1249
1242
  });
1250
- test('migrateBrandPageModel should return Newly Added About contents with text style to have textAlign and FontFamily', async () => {
1243
+ test('migrateBrandPageModel should return Newly Added About contents with text style to have textAlign and FontFamily', () => {
1251
1244
  // Act
1252
- const model = await migrateBrandPageModel(getBsModel(), {
1245
+ const model = migrateBrandPageModel(getBsModel(), {
1253
1246
  isUserDraft: false,
1254
1247
  });
1255
1248
 
@@ -1260,9 +1253,9 @@ describe('migration.util', () => {
1260
1253
  expect(aboutContents.titleStyle.fontFamily).toBe('Lato');
1261
1254
  expect(aboutContents.paragraphStyle.fontFamily).toBe('Lato');
1262
1255
  });
1263
- test('migrateBrandPageModel should return text Align and Font family with the correct alignment based on display style', async () => {
1256
+ test('migrateBrandPageModel should return text Align and Font family with the correct alignment based on display style', () => {
1264
1257
  // Act
1265
- const model = await migrateBrandPageModel(getBsModel(), {
1258
+ const model = migrateBrandPageModel(getBsModel(), {
1266
1259
  isUserDraft: false,
1267
1260
  });
1268
1261
 
@@ -1273,9 +1266,9 @@ describe('migration.util', () => {
1273
1266
  expect(aboutContents.titleStyle.fontFamily).toBe('Lato');
1274
1267
  expect(aboutContents.paragraphStyle.fontFamily).toBe('Lato');
1275
1268
  });
1276
- test('migrateBrandPageModel should not change text alignment of existing contents', async () => {
1269
+ test('migrateBrandPageModel should not change text alignment of existing contents', () => {
1277
1270
  // Act
1278
- const model = await migrateBrandPageModel(getBsModel(), {
1271
+ const model = migrateBrandPageModel(getBsModel(), {
1279
1272
  isUserDraft: false,
1280
1273
  });
1281
1274
 
@@ -1288,9 +1281,9 @@ describe('migration.util', () => {
1288
1281
  });
1289
1282
  });
1290
1283
 
1291
- test('migrateBrandPageModel should return profile contents with text style to have textAlign and FontFamily', async () => {
1284
+ test('migrateBrandPageModel should return profile contents with text style to have textAlign and FontFamily', () => {
1292
1285
  // Act
1293
- const model = await migrateBrandPageModel(getBsModel(), {
1286
+ const model = migrateBrandPageModel(getBsModel(), {
1294
1287
  isUserDraft: false,
1295
1288
  });
1296
1289
 
@@ -1304,9 +1297,9 @@ describe('migration.util', () => {
1304
1297
  expect(content.descriptionStyle.fontFamily).toBe('Lato');
1305
1298
  });
1306
1299
 
1307
- test('migrateBrandPageModel should return mailing list contents with text style to have textAlign and FontFamily', async () => {
1300
+ test('migrateBrandPageModel should return mailing list contents with text style to have textAlign and FontFamily', () => {
1308
1301
  // Act
1309
- const model = await migrateBrandPageModel(getBsModel(), {
1302
+ const model = migrateBrandPageModel(getBsModel(), {
1310
1303
  isUserDraft: false,
1311
1304
  });
1312
1305
 
@@ -1318,9 +1311,9 @@ describe('migration.util', () => {
1318
1311
  expect(content.buttonTextStyle.fontFamily).toBe('Lato');
1319
1312
  });
1320
1313
 
1321
- test('migrateBrandPageModel should return support me contents with text style to have textAlign and FontFamily', async () => {
1314
+ test('migrateBrandPageModel should return support me contents with text style to have textAlign and FontFamily', () => {
1322
1315
  // Act
1323
- const model = await migrateBrandPageModel(getBsModel(), {
1316
+ const model = migrateBrandPageModel(getBsModel(), {
1324
1317
  isUserDraft: false,
1325
1318
  });
1326
1319
 
@@ -1338,9 +1331,9 @@ describe('migration.util', () => {
1338
1331
  expect(content.itemTextStyle.fontFamily).toBe('Lato');
1339
1332
  });
1340
1333
 
1341
- test('migrateBrandPageModel should return images contents with text style to have textAlign and FontFamily', async () => {
1334
+ test('migrateBrandPageModel should return images contents with text style to have textAlign and FontFamily', () => {
1342
1335
  // Act
1343
- const model = await migrateBrandPageModel(getBsModel(), {
1336
+ const model = migrateBrandPageModel(getBsModel(), {
1344
1337
  isUserDraft: false,
1345
1338
  });
1346
1339
 
@@ -1354,9 +1347,9 @@ describe('migration.util', () => {
1354
1347
  expect(content.paragraphStyle.fontFamily).toBe('Lato');
1355
1348
  });
1356
1349
 
1357
- test('migrateBrandPageModel should return payment contents with text style to have textAlign and FontFamily', async () => {
1350
+ test('migrateBrandPageModel should return payment contents with text style to have textAlign and FontFamily', () => {
1358
1351
  // Act
1359
- const model = await migrateBrandPageModel(getBsModel(), {
1352
+ const model = migrateBrandPageModel(getBsModel(), {
1360
1353
  isUserDraft: false,
1361
1354
  });
1362
1355
 
@@ -1366,9 +1359,9 @@ describe('migration.util', () => {
1366
1359
  expect(content.itemTextStyle.fontFamily).toBe('Lato');
1367
1360
  });
1368
1361
 
1369
- test('migrateBrandPageModel should return social links contents with text style to have textAlign and FontFamily', async () => {
1362
+ test('migrateBrandPageModel should return social links contents with text style to have textAlign and FontFamily', () => {
1370
1363
  // Act
1371
- const model = await migrateBrandPageModel(getBsModel(), {
1364
+ const model = migrateBrandPageModel(getBsModel(), {
1372
1365
  isUserDraft: false,
1373
1366
  });
1374
1367
 
@@ -1379,9 +1372,9 @@ describe('migration.util', () => {
1379
1372
  });
1380
1373
 
1381
1374
  describe('Contact Form Content - Layout style testing', () => {
1382
- test('migrateBrandPageModel should return empty layoutStyle for existing contact forms that dont have layoutStyle', async () => {
1375
+ test('migrateBrandPageModel should return empty layoutStyle for existing contact forms that dont have layoutStyle', () => {
1383
1376
  // Act
1384
- const model = await migrateBrandPageModel(getBsModel(), {
1377
+ const model = migrateBrandPageModel(getBsModel(), {
1385
1378
  isUserDraft: false,
1386
1379
  });
1387
1380
 
@@ -1389,13 +1382,13 @@ describe('migration.util', () => {
1389
1382
 
1390
1383
  expect(content.layoutStyle).toBe('');
1391
1384
  });
1392
- test('migrateBrandPageModel should return empty layoutStyle for Brandpage only', async () => {
1385
+ test('migrateBrandPageModel should return empty layoutStyle for Brandpage only', () => {
1393
1386
  // Arrange
1394
1387
  const brandPageModel: BrandPageModel = {
1395
1388
  ...getBsModel(),
1396
1389
  brandPageType: BRAND_PAGE_TYPES.default,
1397
1390
  } as any;
1398
- const model = await migrateBrandPageModel(brandPageModel, {
1391
+ const model = migrateBrandPageModel(brandPageModel, {
1399
1392
  isUserDraft: false,
1400
1393
  });
1401
1394
 
@@ -1404,8 +1397,8 @@ describe('migration.util', () => {
1404
1397
  expect(content.layoutStyle).toBe('');
1405
1398
  });
1406
1399
 
1407
- test('migrateBrandPageModel should not affect existing content blocks with layout style', async () => {
1408
- const model = await migrateBrandPageModel(getBsModel(), {
1400
+ test('migrateBrandPageModel should not affect existing content blocks with layout style', () => {
1401
+ const model = migrateBrandPageModel(getBsModel(), {
1409
1402
  isUserDraft: false,
1410
1403
  });
1411
1404
 
@@ -1483,11 +1476,9 @@ describe('migration.util', () => {
1483
1476
  });
1484
1477
  });
1485
1478
  describe('Global Styles - check text Styles', () => {
1486
- test('migrateBrandPageModel should set text styles to be defined', async () => {
1479
+ test('migrateBrandPageModel should set text styles to be defined', () => {
1487
1480
  // Act
1488
- const model = await migrateBrandPageModel(getBsModel(), {
1489
- isUserDraft: false,
1490
- });
1481
+ const model = migrateBrandPageModel(getBsModel(), { isUserDraft: false });
1491
1482
 
1492
1483
  const content = model.styles.textStyles;
1493
1484
 
@@ -1552,11 +1543,9 @@ describe('migration.util', () => {
1552
1543
  undefined,
1553
1544
  );
1554
1545
  });
1555
- test('migrateBrandPageModel should convert rem lineheight to unitless', async () => {
1546
+ test('migrateBrandPageModel should convert rem lineheight to unitless', () => {
1556
1547
  // Act
1557
- const model = await migrateBrandPageModel(getBsModel(), {
1558
- isUserDraft: false,
1559
- });
1548
+ const model = migrateBrandPageModel(getBsModel(), { isUserDraft: false });
1560
1549
 
1561
1550
  const content = model.styles.textStyles;
1562
1551
 
@@ -1575,7 +1564,7 @@ describe('migration.util', () => {
1575
1564
  const nonUserUrl =
1576
1565
  'https://images.unsplash.com/photo-1657664072470-99b02c2143f2.jpg';
1577
1566
 
1578
- test('should remove extension from faviconUrl and ogImageUrl', async () => {
1567
+ test('should remove extension from faviconUrl and ogImageUrl', () => {
1579
1568
  const oldTemplate: BrandPageModel = {
1580
1569
  faviconUrl: userUploadedUrl,
1581
1570
  ogImageUrl: userUploadedUrl,
@@ -1583,18 +1572,15 @@ describe('migration.util', () => {
1583
1572
  brandPageType: 'brandSite',
1584
1573
  } as any;
1585
1574
 
1586
- const model = await migrateBrandPageModel(
1587
- new BrandPageModel(oldTemplate),
1588
- {
1589
- isUserDraft: false,
1590
- },
1591
- );
1575
+ const model = migrateBrandPageModel(new BrandPageModel(oldTemplate), {
1576
+ isUserDraft: false,
1577
+ });
1592
1578
 
1593
1579
  expect(model.faviconUrl).toBe(expectedUrl);
1594
1580
  expect(model.ogImageUrl).toBe(expectedUrl);
1595
1581
  });
1596
1582
 
1597
- test('should remove extension from content imageUrl for type "image"', async () => {
1583
+ test('should remove extension from content imageUrl for type "image"', () => {
1598
1584
  const oldTemplate: BrandPageModel = {
1599
1585
  pages: [
1600
1586
  {
@@ -1612,18 +1598,15 @@ describe('migration.util', () => {
1612
1598
  brandPageType: 'brandSite',
1613
1599
  } as any;
1614
1600
 
1615
- const model = await migrateBrandPageModel(
1616
- new BrandPageModel(oldTemplate),
1617
- {
1618
- isUserDraft: false,
1619
- },
1620
- );
1601
+ const model = migrateBrandPageModel(new BrandPageModel(oldTemplate), {
1602
+ isUserDraft: false,
1603
+ });
1621
1604
  const pageContent = model.pages[0].contents[0] as any;
1622
1605
 
1623
1606
  expect(pageContent.imageUrl).toBe(expectedUrl);
1624
1607
  });
1625
1608
 
1626
- test('should remove extension from content imageUrl inside "images-section"', async () => {
1609
+ test('should remove extension from content imageUrl inside "images-section"', () => {
1627
1610
  const oldTemplate: BrandPageModel = {
1628
1611
  pages: [
1629
1612
  {
@@ -1650,12 +1633,9 @@ describe('migration.util', () => {
1650
1633
  brandPageType: 'brandSite',
1651
1634
  } as any;
1652
1635
 
1653
- const model = await migrateBrandPageModel(
1654
- new BrandPageModel(oldTemplate),
1655
- {
1656
- isUserDraft: false,
1657
- },
1658
- );
1636
+ const model = migrateBrandPageModel(new BrandPageModel(oldTemplate), {
1637
+ isUserDraft: false,
1638
+ });
1659
1639
  const section = model.pages[0].contents[0] as any;
1660
1640
 
1661
1641
  section.items.forEach((item: any) => {
@@ -1663,7 +1643,7 @@ describe('migration.util', () => {
1663
1643
  });
1664
1644
  });
1665
1645
 
1666
- test('should remove extension from content imageUrl inside "image-gallery"', async () => {
1646
+ test('should remove extension from content imageUrl inside "image-gallery"', () => {
1667
1647
  const oldTemplate: BrandPageModel = {
1668
1648
  pages: [
1669
1649
  {
@@ -1690,12 +1670,9 @@ describe('migration.util', () => {
1690
1670
  brandPageType: 'brandSite',
1691
1671
  } as any;
1692
1672
 
1693
- const model = await migrateBrandPageModel(
1694
- new BrandPageModel(oldTemplate),
1695
- {
1696
- isUserDraft: false,
1697
- },
1698
- );
1673
+ const model = migrateBrandPageModel(new BrandPageModel(oldTemplate), {
1674
+ isUserDraft: false,
1675
+ });
1699
1676
  const gallery = model.pages[0].contents[0] as any;
1700
1677
 
1701
1678
  gallery.images.forEach((img: any) => {
@@ -1703,7 +1680,7 @@ describe('migration.util', () => {
1703
1680
  });
1704
1681
  });
1705
1682
 
1706
- test('should remove extension from content modalImageUrl inside "general-link"', async () => {
1683
+ test('should remove extension from content modalImageUrl inside "general-link"', () => {
1707
1684
  const oldTemplate: BrandPageModel = {
1708
1685
  pages: [
1709
1686
  {
@@ -1721,18 +1698,15 @@ describe('migration.util', () => {
1721
1698
  brandPageType: 'brandSite',
1722
1699
  } as any;
1723
1700
 
1724
- const model = await migrateBrandPageModel(
1725
- new BrandPageModel(oldTemplate),
1726
- {
1727
- isUserDraft: false,
1728
- },
1729
- );
1701
+ const model = migrateBrandPageModel(new BrandPageModel(oldTemplate), {
1702
+ isUserDraft: false,
1703
+ });
1730
1704
  const generalLink = model.pages[0].contents[0] as any;
1731
1705
 
1732
1706
  expect(generalLink.iconUrl).toBe(expectedUrl);
1733
1707
  });
1734
1708
 
1735
- test('should remove extension from content imageUrl inside "about-section"', async () => {
1709
+ test('should remove extension from content imageUrl inside "about-section"', () => {
1736
1710
  const oldTemplate: BrandPageModel = {
1737
1711
  pages: [
1738
1712
  {
@@ -1750,18 +1724,15 @@ describe('migration.util', () => {
1750
1724
  brandPageType: 'brandSite',
1751
1725
  } as any;
1752
1726
 
1753
- const model = await migrateBrandPageModel(
1754
- new BrandPageModel(oldTemplate),
1755
- {
1756
- isUserDraft: false,
1757
- },
1758
- );
1727
+ const model = migrateBrandPageModel(new BrandPageModel(oldTemplate), {
1728
+ isUserDraft: false,
1729
+ });
1759
1730
  const aboutSection = model.pages[0].contents[0] as any;
1760
1731
 
1761
1732
  expect(aboutSection.imageUrl).toBe(expectedUrl);
1762
1733
  });
1763
1734
 
1764
- test('should remove extension from content imageUrl inside "social-links"', async () => {
1735
+ test('should remove extension from content imageUrl inside "social-links"', () => {
1765
1736
  const oldTemplate: BrandPageModel = {
1766
1737
  pages: [
1767
1738
  {
@@ -1788,12 +1759,9 @@ describe('migration.util', () => {
1788
1759
  brandPageType: 'brandSite',
1789
1760
  } as any;
1790
1761
 
1791
- const model = await migrateBrandPageModel(
1792
- new BrandPageModel(oldTemplate),
1793
- {
1794
- isUserDraft: false,
1795
- },
1796
- );
1762
+ const model = migrateBrandPageModel(new BrandPageModel(oldTemplate), {
1763
+ isUserDraft: false,
1764
+ });
1797
1765
  const socialLinks = model.pages[0].contents[0] as any;
1798
1766
 
1799
1767
  socialLinks.links.forEach((link: any) => {
@@ -1801,7 +1769,7 @@ describe('migration.util', () => {
1801
1769
  });
1802
1770
  });
1803
1771
 
1804
- test('should remove extension from social links in pageFooterDesktop and pageFooterMobile', async () => {
1772
+ test('should remove extension from social links in pageFooterDesktop and pageFooterMobile', () => {
1805
1773
  const oldTemplate: BrandPageModel = {
1806
1774
  pageFooterDesktop: {
1807
1775
  socialLinks: [
@@ -1831,12 +1799,9 @@ describe('migration.util', () => {
1831
1799
  brandPageType: 'brandSite',
1832
1800
  } as any;
1833
1801
 
1834
- const model = await migrateBrandPageModel(
1835
- new BrandPageModel(oldTemplate),
1836
- {
1837
- isUserDraft: false,
1838
- },
1839
- );
1802
+ const model = migrateBrandPageModel(new BrandPageModel(oldTemplate), {
1803
+ isUserDraft: false,
1804
+ });
1840
1805
  const desktopLinks = model.pageFooterDesktop?.socialLinks || [];
1841
1806
  const mobileLinks = model.pageFooterMobile?.socialLinks || [];
1842
1807
 
@@ -1848,7 +1813,7 @@ describe('migration.util', () => {
1848
1813
  });
1849
1814
  });
1850
1815
 
1851
- test('should leave social link URL unchanged if file extension is not present', async () => {
1816
+ test('should leave social link URL unchanged if file extension is not present', () => {
1852
1817
  const noExtensionUrl = expectedUrl;
1853
1818
  const oldTemplate: BrandPageModel = {
1854
1819
  pageFooterDesktop: {
@@ -1871,12 +1836,9 @@ describe('migration.util', () => {
1871
1836
  brandPageType: 'brandSite',
1872
1837
  } as any;
1873
1838
 
1874
- const model = await migrateBrandPageModel(
1875
- new BrandPageModel(oldTemplate),
1876
- {
1877
- isUserDraft: false,
1878
- },
1879
- );
1839
+ const model = migrateBrandPageModel(new BrandPageModel(oldTemplate), {
1840
+ isUserDraft: false,
1841
+ });
1880
1842
  const desktopLinks = model.pageFooterDesktop?.socialLinks || [];
1881
1843
  const mobileLinks = model.pageFooterMobile?.socialLinks || [];
1882
1844
 
@@ -1888,7 +1850,7 @@ describe('migration.util', () => {
1888
1850
  });
1889
1851
  });
1890
1852
 
1891
- test('should leave social link URL unchanged if the domain is different', async () => {
1853
+ test('should leave social link URL unchanged if the domain is different', () => {
1892
1854
  const oldTemplate: BrandPageModel = {
1893
1855
  pageFooterDesktop: {
1894
1856
  socialLinks: [
@@ -1910,12 +1872,9 @@ describe('migration.util', () => {
1910
1872
  brandPageType: 'brandSite',
1911
1873
  } as any;
1912
1874
 
1913
- const model = await migrateBrandPageModel(
1914
- new BrandPageModel(oldTemplate),
1915
- {
1916
- isUserDraft: false,
1917
- },
1918
- );
1875
+ const model = migrateBrandPageModel(new BrandPageModel(oldTemplate), {
1876
+ isUserDraft: false,
1877
+ });
1919
1878
  const desktopLinks = model.pageFooterDesktop?.socialLinks || [];
1920
1879
  const mobileLinks = model.pageFooterMobile?.socialLinks || [];
1921
1880
 
@@ -1927,7 +1886,7 @@ describe('migration.util', () => {
1927
1886
  });
1928
1887
  });
1929
1888
 
1930
- test('should leave URL unchanged if file extension is not present', async () => {
1889
+ test('should leave URL unchanged if file extension is not present', () => {
1931
1890
  const urlWithoutExtension = expectedUrl;
1932
1891
  const oldTemplate: BrandPageModel = {
1933
1892
  faviconUrl: urlWithoutExtension,
@@ -1948,12 +1907,9 @@ describe('migration.util', () => {
1948
1907
  brandPageType: 'brandSite',
1949
1908
  } as any;
1950
1909
 
1951
- const model = await migrateBrandPageModel(
1952
- new BrandPageModel(oldTemplate),
1953
- {
1954
- isUserDraft: false,
1955
- },
1956
- );
1910
+ const model = migrateBrandPageModel(new BrandPageModel(oldTemplate), {
1911
+ isUserDraft: false,
1912
+ });
1957
1913
 
1958
1914
  expect(model.faviconUrl).toBe(urlWithoutExtension);
1959
1915
  expect(model.ogImageUrl).toBe(urlWithoutExtension);
@@ -1963,7 +1919,7 @@ describe('migration.util', () => {
1963
1919
  expect(pageContent.imageUrl).toBe(urlWithoutExtension);
1964
1920
  });
1965
1921
 
1966
- test('should leave URL unchanged if the domain is different', async () => {
1922
+ test('should leave URL unchanged if the domain is different', () => {
1967
1923
  const oldTemplate: BrandPageModel = {
1968
1924
  faviconUrl: nonUserUrl,
1969
1925
  ogImageUrl: nonUserUrl,
@@ -1983,12 +1939,9 @@ describe('migration.util', () => {
1983
1939
  brandPageType: 'brandSite',
1984
1940
  } as any;
1985
1941
 
1986
- const model = await migrateBrandPageModel(
1987
- new BrandPageModel(oldTemplate),
1988
- {
1989
- isUserDraft: false,
1990
- },
1991
- );
1942
+ const model = migrateBrandPageModel(new BrandPageModel(oldTemplate), {
1943
+ isUserDraft: false,
1944
+ });
1992
1945
 
1993
1946
  expect(model.faviconUrl).toBe(nonUserUrl);
1994
1947
  expect(model.ogImageUrl).toBe(nonUserUrl);