@capillarytech/creatives-library 7.17.66-alpha.7 → 7.17.66

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "7.17.66-alpha.7",
4
+ "version": "7.17.66",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
package/utils/common.js CHANGED
@@ -249,17 +249,17 @@ export function transformBadgeTags(badgeDetails = [], allTags) {
249
249
  };
250
250
  };
251
251
  badgeDetails.forEach((offer) => {
252
- const { badgeMetaId, badgeName } = offer || {};
252
+ const { badgesMetaId, badgeName } = offer || {};
253
253
  const badgeSubTags = {};
254
254
  badgeTagsKeys.forEach((badgeTagKey) => {
255
- const badgeSubTagsObj = withBadgeId(allTags?.Badge?.subtags?.[badgeTagKey], badgeMetaId);
255
+ const badgeSubTagsObj = withBadgeId(allTags?.Badge?.subtags?.[badgeTagKey], badgesMetaId);
256
256
  badgeSubTags[badgeTagKey] = badgeSubTagsObj;
257
257
  });
258
- badgeTags[badgeMetaId] = {
258
+ badgeTags[badgesMetaId] = {
259
259
  'tag-header': true,
260
260
  'name': badgeName,
261
261
  'desc': badgeName,
262
- 'incentiveSeriesId': badgeMetaId,
262
+ 'incentiveSeriesId': badgesMetaId,
263
263
  'subtags': badgeSubTags,
264
264
  'resolved': true,
265
265
  'couponTags': true,
@@ -572,7 +572,7 @@ export const output2 = [
572
572
  },
573
573
  ];
574
574
  export const offer = [
575
- { badgeMetaId: "12", badgeName: "moye_moye", type: "BADGES_ENROLL" },
575
+ { badgesMetaId: "12", badgeName: "moye_moye", type: "BADGES_ENROLL" },
576
576
  ];
577
577
  export const expectedOffer = [
578
578
  {