@capillarytech/creatives-library 9.0.29-alpha.2 → 9.0.29-alpha.3

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": "9.0.29-alpha.2",
4
+ "version": "9.0.29-alpha.3",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -176,17 +176,12 @@ export const buildCarouselCardsForPreview = (cards = [], { isFullMode, resolveCa
176
176
  (cards || []).map((card = {}, cardIndex) => {
177
177
  const rawTitle = card.title || '';
178
178
  const rawDesc = card.description || '';
179
- const titleVarCount = (rawTitle.match(rcsVarRegex) || []).length;
180
- const descVarCount = (rawDesc.match(rcsVarRegex) || []).length;
181
179
  const resolvedTitle = !isFullMode
182
180
  ? resolveCarouselTemplateWithMap(rawTitle, cardIndex, false)
183
181
  : rawTitle;
184
182
  const resolvedDesc = !isFullMode
185
183
  ? resolveCarouselTemplateWithMap(rawDesc, cardIndex, true)
186
184
  : rawDesc;
187
- if (!isFullMode) {
188
- slotOffset += titleVarCount + descVarCount;
189
- }
190
185
  const videoThumb = card.thumbnailSrc || card.videoAsset?.videoThumbnail || '';
191
186
  const videoSrc = card.videoAsset?.videoSrc || '';
192
187
  return {
@@ -199,7 +194,6 @@ export const buildCarouselCardsForPreview = (cards = [], { isFullMode, resolveCa
199
194
  suggestions: card.suggestions || [],
200
195
  };
201
196
  });
202
- };
203
197
 
204
198
  /** Payload (create/edit RCS template): build `cardContent` for the carousel case. */
205
199
  export const buildCarouselCardContentForPayload = (carouselData, {