@capillarytech/creatives-library 8.0.340-0 → 8.0.340-beta.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.
Files changed (134) hide show
  1. package/app.js +8 -1
  2. package/global-styles.js +4 -0
  3. package/package.json +2 -2
  4. package/styles/components/navigation/_leftnav.scss +1 -1
  5. package/v2Components/AccessForbidden/index.js +1 -1
  6. package/v2Components/CapActionButton/index.js +5 -5
  7. package/v2Components/CapCustomSkeleton/index.js +1 -1
  8. package/v2Components/CapDeviceContent/index.js +5 -5
  9. package/v2Components/CapDocumentUpload/index.js +1 -1
  10. package/v2Components/CapImageUpload/index.js +1 -1
  11. package/v2Components/CapInAppCTA/index.js +118 -112
  12. package/v2Components/CapMpushCTA/index.js +72 -66
  13. package/v2Components/CapTagList/index.js +5 -5
  14. package/v2Components/CapVideoUpload/index.js +1 -1
  15. package/v2Components/CapWhatsappCTA/index.js +128 -124
  16. package/v2Components/CapWhatsappCarouselButton/index.js +27 -29
  17. package/v2Components/CapWhatsappQuickReply/index.js +7 -7
  18. package/v2Components/Carousel/index.js +1 -1
  19. package/v2Components/CommonTestAndPreview/AddTestCustomer.js +1 -1
  20. package/v2Components/CommonTestAndPreview/CustomValuesEditor.js +3 -3
  21. package/v2Components/CommonTestAndPreview/CustomerCreationModal.js +1 -1
  22. package/v2Components/CommonTestAndPreview/DeliverySettings/ModifyDeliverySettings.js +4 -4
  23. package/v2Components/CommonTestAndPreview/DeliverySettings/index.js +1 -1
  24. package/v2Components/CommonTestAndPreview/ExistingCustomerModal.js +6 -6
  25. package/v2Components/CommonTestAndPreview/LeftPanelContent.js +5 -5
  26. package/v2Components/CommonTestAndPreview/PreviewSection.js +1 -1
  27. package/v2Components/CommonTestAndPreview/UnifiedPreview/DeviceFrame.js +1 -1
  28. package/v2Components/CommonTestAndPreview/UnifiedPreview/EmailPreviewContent.js +8 -8
  29. package/v2Components/CommonTestAndPreview/UnifiedPreview/InAppPreviewContent.js +14 -13
  30. package/v2Components/CommonTestAndPreview/UnifiedPreview/MobilePushPreviewContent.js +22 -21
  31. package/v2Components/CommonTestAndPreview/UnifiedPreview/RcsPreviewContent.js +9 -9
  32. package/v2Components/CommonTestAndPreview/UnifiedPreview/SmsPreviewContent.js +8 -8
  33. package/v2Components/CommonTestAndPreview/UnifiedPreview/ViberPreviewContent.js +10 -10
  34. package/v2Components/CommonTestAndPreview/UnifiedPreview/WhatsAppPreviewContent.js +13 -12
  35. package/v2Components/CommonTestAndPreview/UnifiedPreview/ZaloPreviewContent.js +4 -3
  36. package/v2Components/CommonTestAndPreview/UnifiedPreview/_unifiedPreview.scss +10 -5
  37. package/v2Components/CommonTestAndPreview/UnifiedPreview/index.js +1 -1
  38. package/v2Components/CommonTestAndPreview/_commonTestAndPreview.scss +3 -4
  39. package/v2Components/CommonTestAndPreview/index.js +1 -1
  40. package/v2Components/CustomerSearchSection/_customerSearch.scss +2 -1
  41. package/v2Components/CustomerSearchSection/index.js +9 -9
  42. package/v2Components/EmailMobilePreview/index.js +1 -1
  43. package/v2Components/ErrorInfoNote/index.js +13 -11
  44. package/v2Components/ErrorInfoNote/style.scss +1 -1
  45. package/v2Components/FormBuilder/_formBuilder.scss +1 -0
  46. package/v2Components/FormBuilder/index.js +32 -40
  47. package/v2Components/HtmlEditor/HTMLEditor.js +4 -4
  48. package/v2Components/HtmlEditor/_htmlEditor.scss +2 -1
  49. package/v2Components/HtmlEditor/components/CodeEditorPane/index.js +1 -1
  50. package/v2Components/HtmlEditor/components/DeviceToggle/_deviceToggle.scss +2 -2
  51. package/v2Components/HtmlEditor/components/DeviceToggle/index.js +2 -2
  52. package/v2Components/HtmlEditor/components/EditorToolbar/PreviewModeGroup.js +2 -2
  53. package/v2Components/HtmlEditor/components/EditorToolbar/index.js +2 -2
  54. package/v2Components/HtmlEditor/components/InAppPreviewPane/index.js +1 -0
  55. package/v2Components/HtmlEditor/components/PreviewPane/index.js +2 -2
  56. package/v2Components/HtmlEditor/components/SplitContainer/SplitContainer.js +2 -2
  57. package/v2Components/HtmlEditor/components/SplitContainer/_splitContainer.scss +2 -1
  58. package/v2Components/HtmlEditor/components/ValidationPanel/index.js +6 -9
  59. package/v2Components/HtmlEditor/components/ValidationTabs/index.js +2 -2
  60. package/v2Components/NavigationBar/index.js +7 -1
  61. package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/index.js +3 -4
  62. package/v2Components/TemplatePreview/_templatePreview.scss +5 -3
  63. package/v2Components/TemplatePreview/index.js +11 -9
  64. package/v2Components/TestAndPreviewSlidebox/CustomValuesEditor.js +3 -3
  65. package/v2Components/TestAndPreviewSlidebox/LeftPanelContent.js +5 -5
  66. package/v2Components/TestAndPreviewSlidebox/PreviewSection.js +3 -3
  67. package/v2Components/TestAndPreviewSlidebox/_testAndPreviewSlidebox.scss +4 -2
  68. package/v2Containers/BeePopupEditor/index.js +1 -1
  69. package/v2Containers/CommunicationFlow/CommunicationFlow.js +5 -5
  70. package/v2Containers/CommunicationFlow/steps/ChannelSelectionStep/ChannelSelectionStep.js +4 -3
  71. package/v2Containers/CommunicationFlow/steps/CommunicationStrategyStep/CommunicationStrategyStep.js +2 -2
  72. package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/DeliverySettingsSection.js +3 -2
  73. package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/SenderDetails.js +7 -7
  74. package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/SenderDetails.scss +0 -5
  75. package/v2Containers/CommunicationFlow/steps/DynamicControlsStep/DynamicControlsStep.js +2 -2
  76. package/v2Containers/CommunicationFlow/steps/MessageTypeStep/MessageTypeStep.js +2 -2
  77. package/v2Containers/CreativesContainer/SlideBoxFooter.js +1 -1
  78. package/v2Containers/CreativesContainer/index.js +1 -1
  79. package/v2Containers/Ebill/index.js +10 -9
  80. package/v2Containers/Email/index.js +7 -7
  81. package/v2Containers/Email/initialSchema.js +1 -1
  82. package/v2Containers/FTP/index.js +1 -1
  83. package/v2Containers/Facebook/Advertisement/index.js +4 -4
  84. package/v2Containers/Facebook/index.js +2 -2
  85. package/v2Containers/InApp/index.js +21 -16
  86. package/v2Containers/InApp/index.scss +0 -7
  87. package/v2Containers/InAppWrapper/components/InAppWrapperView.js +2 -2
  88. package/v2Containers/InappAdvance/index.js +4 -4
  89. package/v2Containers/LanguageProvider/index.js +3 -3
  90. package/v2Containers/LanguageProvider/tests/index.test.js +3 -3
  91. package/v2Containers/Line/Container/Image/index.js +1 -1
  92. package/v2Containers/Line/Container/ImageCarousel/Content.js +1 -1
  93. package/v2Containers/Line/Container/ImageCarousel/index.js +5 -5
  94. package/v2Containers/Line/Container/ImageMap/index.js +3 -3
  95. package/v2Containers/Line/Container/Sticker/index.js +2 -2
  96. package/v2Containers/Line/Container/Sticker/utils.js +1 -1
  97. package/v2Containers/Line/Container/Video/index.js +1 -1
  98. package/v2Containers/Line/Container/Wrapper/index.js +3 -3
  99. package/v2Containers/Line/Container/Wrapper/style.js +1 -5
  100. package/v2Containers/Line/Container/index.js +2 -2
  101. package/v2Containers/Login/components/LoginForm/index.js +34 -47
  102. package/v2Containers/Login/index.js +5 -5
  103. package/v2Containers/MobilePushNew/components/CtaButtons.js +2 -2
  104. package/v2Containers/MobilePushNew/components/MediaUploaders.js +9 -9
  105. package/v2Containers/MobilePushNew/components/PlatformContentFields.js +4 -4
  106. package/v2Containers/MobilePushNew/index.js +2 -2
  107. package/v2Containers/MobilePushNew/index.scss +6 -3
  108. package/v2Containers/Rcs/index.js +24 -19
  109. package/v2Containers/Rcs/index.scss +0 -7
  110. package/v2Containers/SmsTrai/Edit/index.js +3 -2
  111. package/v2Containers/Templates/index.js +16 -16
  112. package/v2Containers/Viber/constants.js +0 -8
  113. package/v2Containers/Viber/index.js +19 -19
  114. package/v2Containers/Viber/index.scss +0 -7
  115. package/v2Containers/Viber/reducer.js +21 -44
  116. package/v2Containers/Viber/sagas.js +21 -62
  117. package/v2Containers/Viber/tests/index.test.js +0 -80
  118. package/v2Containers/Viber/tests/saga.test.js +40 -365
  119. package/v2Containers/WeChat/RichmediaTemplates/Create/_createRichmedia.scss +1 -1
  120. package/v2Containers/WeChat/RichmediaTemplates/Create/index.js +2 -2
  121. package/v2Containers/WebPush/Create/components/BrandIconSection.js +1 -1
  122. package/v2Containers/WebPush/Create/components/ButtonForm.js +2 -2
  123. package/v2Containers/WebPush/Create/components/ButtonList.js +4 -4
  124. package/v2Containers/WebPush/Create/components/ButtonsLinksSection.js +4 -4
  125. package/v2Containers/WebPush/Create/components/FormActions.js +3 -3
  126. package/v2Containers/WebPush/Create/components/MessageSection.js +2 -2
  127. package/v2Containers/WebPush/Create/components/NotificationTitleSection.js +2 -2
  128. package/v2Containers/WebPush/Create/components/_buttons.scss +2 -2
  129. package/v2Containers/WebPush/Create/index.scss +6 -3
  130. package/v2Containers/WebPush/Create/preview/WebPushPreview.js +1 -1
  131. package/v2Containers/Whatsapp/index.js +28 -28
  132. package/v2Containers/Zalo/index.js +3 -3
  133. package/.npmrc copy +0 -2
  134. package/v2Containers/Viber/tests/reducer.test.js +0 -297
@@ -409,7 +409,7 @@ class CapTagList extends React.Component { // eslint-disable-line react/prefer-s
409
409
  },
410
410
  ];
411
411
  const contentSection = (
412
- <CapRow className="cap-tag-list-popover-inner">
412
+ <CapRow useLegacy className="cap-tag-list-popover-inner">
413
413
  <CapSpin tip={formatMessage(messages.gettingTags)} spinning={shouldShowLoading}>
414
414
  <Search
415
415
  style={{ marginBottom: 8, width: '250px'}}
@@ -444,7 +444,7 @@ class CapTagList extends React.Component { // eslint-disable-line react/prefer-s
444
444
  size="s"
445
445
  />
446
446
  <CapLink>
447
- <CapButton id="translationtagfooter" type="flat" onClick={this.openTranslationLink}>
447
+ <CapButton id="translationtagfooter" type="link" onClick={this.openTranslationLink}>
448
448
  <div className="tag-list-footer-icon">
449
449
  <div>{JAPANESE_HELP_TEXT}</div>
450
450
  <CapIcon
@@ -485,7 +485,7 @@ class CapTagList extends React.Component { // eslint-disable-line react/prefer-s
485
485
  disableTooltipMsg && disabled ? (
486
486
  disableTooltipMsg
487
487
  ) : fetchingSchemaError ? (
488
- <CapRow className="tooltip-text-container">
488
+ <CapRow useLegacy className="tooltip-text-container">
489
489
  <CapLabel className="tooltip-text1">
490
490
  {formatMessage(messages.somethingWentWrong)}
491
491
  </CapLabel>
@@ -497,13 +497,13 @@ class CapTagList extends React.Component { // eslint-disable-line react/prefer-s
497
497
  }
498
498
  placement="right"
499
499
  >
500
- <CapRow className="tooltip-add-label-container">
500
+ <CapRow useLegacy className="tooltip-add-label-container">
501
501
  <CapButton
502
502
  disabled={
503
503
  this?.props?.disabled || fetchingSchemaError
504
504
  }
505
505
  isAddBtn
506
- type="flat"
506
+ type="link"
507
507
  >
508
508
  {label || ""}
509
509
  </CapButton>
@@ -285,7 +285,7 @@ function CapVideoUpload(props) {
285
285
  <div style={{ overflow: 'hidden' }}>
286
286
  <CapButton
287
287
  className="dragger-button video-reupload"
288
- type="flat"
288
+ type="link"
289
289
  onClick={onReUpload}
290
290
  >
291
291
  <FormattedMessage {...messages.imageReUpload} />
@@ -311,144 +311,148 @@ export const CapWhatsappCTA = (props) => {
311
311
  className="cap-whatsapp-cta margin-t-16"
312
312
  id={`cap-whatsapp-cta-${index}`}
313
313
  >
314
- <CapRow>
315
- <CapColumn span={12}>
316
- {/* Type of action */}
317
- <CapHeading type="h4" className="cta-label">
318
- {formatMessage(messages.ctaType)}
319
- </CapHeading>
320
- <CapSelect
321
- id="whatsapp-cta-type"
322
- options={ctaOptions || []}
323
- onChange={(value) => onCtaTypeChange(value, index)}
324
- value={ctaType}
325
- />
326
- </CapColumn>
327
- <CapColumn span={12}>
328
- {/* Button text */}
329
- <CapHeading type="h4" className="cta-label">
330
- {formatMessage(messages.ctaButtonText)}
331
- <CapTooltipWithInfo
332
- infoIconProps={{
333
- style: { marginLeft: CAP_SPACE_04 },
334
- }}
335
- autoAdjustOverflow
336
- placement="right"
337
- title={formatMessage(messages.ctaButtonTextTooltip)}
338
- />
339
- </CapHeading>
340
- <CapInput
341
- id={index}
342
- className="whatsapp-cta-button-text"
343
- onChange={onButtonTextChange}
344
- placeholder={formatMessage(messages.ctaButtonTextPlaceholder)}
345
- value={text}
346
- size="large"
347
- maxLength={BTN_MAX_LENGTH}
348
- errorMessage={buttonError}
349
- />
350
- {renderLength(text.length, BTN_MAX_LENGTH)}
351
- </CapColumn>
352
- </CapRow>
353
- {ctaType === PHONE_NUMBER && (
354
- <CapRow>
355
- <CapColumn span={11}>
356
- {/* phone number */}
357
- <CapHeading type="h4" className="cta-label">
358
- {formatMessage(messages.ctaPhoneNo)}
359
- </CapHeading>
360
- <PhoneInput
361
- placeholder={formatMessage(messages.ctaPhoneNoPlaceholder)}
362
- autoFormat={false}
363
- countryCodeEditable={false}
364
- value={phone_number}
365
- onChange={(value) => onPhoneNoChange(value, index)}
366
- country="in"
367
- className="cta-phone-number"
368
- />
369
- {renderLength(phone_number.length, PHONE_NUMBER_MAX_LENGTH)}
370
- </CapColumn>
371
- </CapRow>
372
- )}
373
- {ctaType === WEBSITE && (
314
+ <CapColumn>
374
315
  <CapRow>
375
316
  <CapColumn span={12}>
376
- {/* URL Type */}
317
+ {/* Type of action */}
377
318
  <CapHeading type="h4" className="cta-label">
378
- {formatMessage(messages.ctaWebsiteType)}
319
+ {formatMessage(messages.ctaType)}
379
320
  </CapHeading>
380
321
  <CapSelect
381
- id="whatsapp-cta-url-type"
382
- options={
383
- hostName === HOST_TWILIO
384
- ? TWILIO_URL_OPTIONS
385
- : KARIX_GUPSHUP_URL_OPTIONS
386
- }
387
- onChange={(value) => onUrlTypeChange(value, index)}
388
- value={urlType}
322
+ id="whatsapp-cta-type"
323
+ options={ctaOptions || []}
324
+ onChange={(value) => onCtaTypeChange(value, index)}
325
+ value={ctaType}
389
326
  />
390
327
  </CapColumn>
391
328
  <CapColumn span={12}>
392
- {/* cta url */}
329
+ {/* Button text */}
393
330
  <CapHeading type="h4" className="cta-label">
394
- {formatMessage(messages.ctaWebsiteUrl)}
395
- {urlType === DYNAMIC_URL && (
396
- <CapTooltipWithInfo
397
- infoIconProps={{
398
- style: { marginLeft: CAP_SPACE_04 },
399
- }}
400
- autoAdjustOverflow
401
- placement="right"
402
- title={formatMessage(messages.dynamicUrlTooltip, { one: '{{1}}' })}
403
- />
404
- )}
331
+ {formatMessage(messages.ctaButtonText)}
332
+ <CapTooltipWithInfo
333
+ infoIconProps={{
334
+ style: { marginLeft: CAP_SPACE_04 },
335
+ }}
336
+ autoAdjustOverflow
337
+ placement="right"
338
+ title={formatMessage(messages.ctaButtonTextTooltip)}
339
+ />
405
340
  </CapHeading>
406
341
  <CapInput
407
342
  id={index}
408
- addonAfter={urlType === DYNAMIC_URL && !url.includes(DYNAMIC_URL_SUFFIX) && DYNAMIC_URL_SUFFIX}
409
- className="whatsapp-cta-url"
410
- onChange={(event) => onUrlChange(event, urlType)}
411
- placeholder={
412
- urlType === DYNAMIC_URL
413
- ? formatMessage(messages.ctaDynamicPlaceholder)
414
- : formatMessage(messages.ctaStaticPlaceholder)
415
- }
416
- value={url}
343
+ className="whatsapp-cta-button-text"
344
+ onChange={onButtonTextChange}
345
+ placeholder={formatMessage(messages.ctaButtonTextPlaceholder)}
346
+ value={text}
417
347
  size="large"
418
- maxLength={URL_MAX_LENGTH}
419
- errorMessage={urlError}
348
+ maxLength={BTN_MAX_LENGTH}
349
+ errorMessage={buttonError}
420
350
  />
421
- {renderLength(url.length, URL_MAX_LENGTH)}
351
+ {renderLength(text.length, BTN_MAX_LENGTH)}
422
352
  </CapColumn>
423
353
  </CapRow>
424
- )}
425
- <CapRow className="whatsapp-cta-save-delete-btn">
426
- <CapTooltip
427
- title={
428
- ctaSaveDisabled(index)
429
- ? formatMessage(messages.ctaSaveDisabled)
430
- : ''
431
- }
432
- placement="bottom"
433
- >
434
- <div className="button-disabled-tooltip-wrapper">
435
- <CapButton
436
- onClick={() => saveCta(index)}
437
- disabled={ctaSaveDisabled(index)}
438
- className="whatsapp-cta-save-btn"
439
- >
440
- {formatMessage(globalMessages.save)}
441
- </CapButton>
442
- </div>
443
- </CapTooltip>
444
- <CapButton
445
- onClick={() => deleteHandler(index)}
446
- className="whatsapp-cta-delete-btn"
447
- type="secondary"
448
- >
449
- {formatMessage(globalMessages.delete)}
450
- </CapButton>
451
- </CapRow>
354
+ {ctaType === PHONE_NUMBER && (
355
+ <CapRow>
356
+ <CapColumn span={11}>
357
+ {/* phone number */}
358
+ <CapHeading type="h4" className="cta-label">
359
+ {formatMessage(messages.ctaPhoneNo)}
360
+ </CapHeading>
361
+ <PhoneInput
362
+ placeholder={formatMessage(messages.ctaPhoneNoPlaceholder)}
363
+ autoFormat={false}
364
+ countryCodeEditable={false}
365
+ value={phone_number}
366
+ onChange={(value) => onPhoneNoChange(value, index)}
367
+ country="in"
368
+ className="cta-phone-number"
369
+ />
370
+ {renderLength(phone_number.length, PHONE_NUMBER_MAX_LENGTH)}
371
+ </CapColumn>
372
+ </CapRow>
373
+ )}
374
+ {ctaType === WEBSITE && (
375
+ <CapRow>
376
+ <CapColumn span={12}>
377
+ {/* URL Type */}
378
+ <CapHeading type="h4" className="cta-label">
379
+ {formatMessage(messages.ctaWebsiteType)}
380
+ </CapHeading>
381
+ <CapSelect
382
+ id="whatsapp-cta-url-type"
383
+ options={
384
+ hostName === HOST_TWILIO
385
+ ? TWILIO_URL_OPTIONS
386
+ : KARIX_GUPSHUP_URL_OPTIONS
387
+ }
388
+ onChange={(value) => onUrlTypeChange(value, index)}
389
+ value={urlType}
390
+ />
391
+ </CapColumn>
392
+ <CapColumn span={12}>
393
+ {/* cta url */}
394
+ <CapHeading type="h4" className="cta-label">
395
+ {formatMessage(messages.ctaWebsiteUrl)}
396
+ {urlType === DYNAMIC_URL && (
397
+ <CapTooltipWithInfo
398
+ infoIconProps={{
399
+ style: { marginLeft: CAP_SPACE_04 },
400
+ }}
401
+ autoAdjustOverflow
402
+ placement="right"
403
+ title={formatMessage(messages.dynamicUrlTooltip, { one: '{{1}}' })}
404
+ />
405
+ )}
406
+ </CapHeading>
407
+ <CapInput
408
+ id={index}
409
+ addonAfter={urlType === DYNAMIC_URL && !url.includes(DYNAMIC_URL_SUFFIX) && DYNAMIC_URL_SUFFIX}
410
+ className="whatsapp-cta-url"
411
+ onChange={(event) => onUrlChange(event, urlType)}
412
+ placeholder={
413
+ urlType === DYNAMIC_URL
414
+ ? formatMessage(messages.ctaDynamicPlaceholder)
415
+ : formatMessage(messages.ctaStaticPlaceholder)
416
+ }
417
+ value={url}
418
+ size="large"
419
+ maxLength={URL_MAX_LENGTH}
420
+ errorMessage={urlError}
421
+ />
422
+ {renderLength(url.length, URL_MAX_LENGTH)}
423
+ </CapColumn>
424
+ </CapRow>
425
+ )}
426
+ </CapColumn>
427
+ <CapColumn>
428
+ <CapRow useLegacy className="whatsapp-cta-save-delete-btn">
429
+ <CapTooltip
430
+ title={
431
+ ctaSaveDisabled(index)
432
+ ? formatMessage(messages.ctaSaveDisabled)
433
+ : ''
434
+ }
435
+ placement="bottom"
436
+ >
437
+ <div className="button-disabled-tooltip-wrapper">
438
+ <CapButton
439
+ onClick={() => saveCta(index)}
440
+ disabled={ctaSaveDisabled(index)}
441
+ className="whatsapp-cta-save-btn"
442
+ >
443
+ {formatMessage(globalMessages.save)}
444
+ </CapButton>
445
+ </div>
446
+ </CapTooltip>
447
+ <CapButton
448
+ onClick={() => deleteHandler(index)}
449
+ className="whatsapp-cta-delete-btn"
450
+ type="secondary"
451
+ >
452
+ {formatMessage(globalMessages.delete)}
453
+ </CapButton>
454
+ </CapRow>
455
+ </CapColumn>
452
456
  </CapRow>,
453
457
  );
454
458
  }
@@ -460,7 +464,7 @@ export const CapWhatsappCTA = (props) => {
460
464
  ctaData.length < 2
461
465
  && !isEditFlow
462
466
  && renderArray.push(
463
- <CapRow>
467
+ <CapRow useLegacy>
464
468
  <CapTooltip
465
469
  title={
466
470
  addBtnDisabled ? formatMessage(messages.ctaAddDisabled) : ''
@@ -469,7 +473,7 @@ export const CapWhatsappCTA = (props) => {
469
473
  >
470
474
  <div className="button-disabled-tooltip-wrapper">
471
475
  <CapButton
472
- type="flat"
476
+ type="link"
473
477
  id="whatsapp-cta-add-button"
474
478
  disabled={addBtnDisabled}
475
479
  className="margin-t-12 margin-l-24"
@@ -281,7 +281,7 @@ export const CapWhatsappCarouselButton = (props) => {
281
281
  )
282
282
  }
283
283
  {/* it render save and delete button */}
284
- <CapRow className="whatsapp-cta-save-delete-btn whatsapp-carousel-save-edit-btn">
284
+ <CapRow useLegacy className="whatsapp-cta-save-delete-btn whatsapp-carousel-save-edit-btn">
285
285
  <CapTooltip
286
286
  title={
287
287
  ctaSaveDisabled(buttonIndex)
@@ -379,7 +379,7 @@ export const CapWhatsappCarouselButton = (props) => {
379
379
  </CapColumn>
380
380
  {parseInt(carouselIndex, 10) === 0 && (
381
381
  <CapColumn span={1}>
382
- <CapButton type="flat" className="whatsapp-carousel-delete-icon-btn" onClick={() => handleDeleteButton(index)} disabled={buttonData?.length === 1}>
382
+ <CapButton type="link" className="whatsapp-carousel-delete-icon-btn" onClick={() => handleDeleteButton(index)} disabled={buttonData?.length === 1}>
383
383
  <CapIcon size="s" type="delete" />
384
384
  </CapButton>
385
385
  </CapColumn>
@@ -415,7 +415,7 @@ export const CapWhatsappCarouselButton = (props) => {
415
415
  </CapRow>
416
416
  );
417
417
  } return (
418
- <CapRow
418
+ <CapRow useLegacy
419
419
  key={`${button.buttonType}_${index}`}
420
420
  className="cap-whatsapp-carousel-button"
421
421
  >
@@ -431,32 +431,30 @@ export const CapWhatsappCarouselButton = (props) => {
431
431
  </CapRow>
432
432
  );
433
433
  })}
434
- <CapRow>
435
- {/* user can add only two button in the first carousel in other carousel user dont allow to add buttons */}
436
- {buttonData?.length < 2 && !isEditFlow && parseInt(carouselIndex, 10) === 0 && (
437
- <CapRow>
438
- <CapTooltip
439
- title={
440
- isCarouselAddButtonDisable ? formatMessage(capWhatsappCTAMsg.ctaAddDisabled) : ""
441
- }
442
- placement="right"
443
- >
444
- <div className="button-disabled-tooltip-wrapper">
445
- <CapButton
446
- type="flat"
447
- id="whatsapp-quick-reply-add-button"
448
- disabled={isCarouselAddButtonDisable}
449
- className="margin-t-12 margin-l-24"
450
- isAddBtn
451
- onClick={addCarouselButton}
452
- >
453
- {formatMessage(capWhatsappCTAMsg.addButton)}
454
- </CapButton>
455
- </div>
456
- </CapTooltip>
457
- </CapRow>
458
- )}
459
- </CapRow>
434
+ {/* user can add only two button in the first carousel in other carousel user dont allow to add buttons */}
435
+ {buttonData?.length < 2 && !isEditFlow && parseInt(carouselIndex, 10) === 0 && (
436
+ <CapRow useLegacy>
437
+ <CapTooltip
438
+ title={
439
+ isCarouselAddButtonDisable ? formatMessage(capWhatsappCTAMsg.ctaAddDisabled) : ""
440
+ }
441
+ placement="right"
442
+ >
443
+ <div className="button-disabled-tooltip-wrapper">
444
+ <CapButton
445
+ type="link"
446
+ id="whatsapp-quick-reply-add-button"
447
+ disabled={isCarouselAddButtonDisable}
448
+ className="margin-t-12 margin-l-24"
449
+ isAddBtn
450
+ onClick={addCarouselButton}
451
+ >
452
+ {formatMessage(capWhatsappCTAMsg.addButton)}
453
+ </CapButton>
454
+ </div>
455
+ </CapTooltip>
456
+ </CapRow>
457
+ )}
460
458
  </CapRow>
461
459
  );
462
460
  };
@@ -121,13 +121,13 @@ export const CapWhatsappQuickReply = (props) => {
121
121
  </> :
122
122
  <>
123
123
  {quickReplyDataLength > 0 && !isEditFlow && (
124
- <CapRow>
124
+ <CapRow useLegacy>
125
125
  {quickReplyData?.map(({ index, isSaved, text, error }) => {
126
126
  if (!isSaved) {
127
127
  //this section is render textfield when its not saved or in edit condition
128
128
  return (
129
- <CapRow className="cap-whatsapp-quick-reply">
130
- <CapRow
129
+ <CapRow useLegacy className="cap-whatsapp-quick-reply">
130
+ <CapRow useLegacy
131
131
  className="whatsapp-button-text-container"
132
132
  key={index}
133
133
  >
@@ -147,7 +147,7 @@ export const CapWhatsappQuickReply = (props) => {
147
147
  </CapHeading>
148
148
  }
149
149
  />
150
- <CapRow className="whatsapp-button-text-input">
150
+ <CapRow useLegacy className="whatsapp-button-text-input">
151
151
  <TextArea
152
152
  autosize={{ minRows: 1, maxRows: 5 }}
153
153
  placeholder={formatMessage(
@@ -166,7 +166,7 @@ export const CapWhatsappQuickReply = (props) => {
166
166
  </CapRow>
167
167
  {renderMessageLength(BUTTON_TEXT, text?.length || 0)}
168
168
  {/* it render save and delete button */}
169
- <CapRow className="whatsapp-cta-save-delete-btn">
169
+ <CapRow useLegacy className="whatsapp-cta-save-delete-btn">
170
170
  <CapTooltip
171
171
  title={
172
172
  (text === "" || error)
@@ -217,7 +217,7 @@ export const CapWhatsappQuickReply = (props) => {
217
217
  }
218
218
  {/* this section render add button section with condition */}
219
219
  {quickReplyDataLength < 3 && !isEditFlow && (
220
- <CapRow>
220
+ <CapRow useLegacy>
221
221
  <CapTooltip
222
222
  title={
223
223
  isQuickReplyDisable ? formatMessage(ctaMessages.ctaAddDisabled) : ""
@@ -226,7 +226,7 @@ export const CapWhatsappQuickReply = (props) => {
226
226
  >
227
227
  <div className="button-disabled-tooltip-wrapper">
228
228
  <CapButton
229
- type="flat"
229
+ type="link"
230
230
  id="whatsapp-quick-reply-add-button"
231
231
  disabled={isQuickReplyDisable}
232
232
  className="margin-t-12 margin-l-24"
@@ -26,7 +26,7 @@ const Arrow = (props) => {
26
26
  <CapButton
27
27
  className={className}
28
28
  onClick={onClick}
29
- type="flat"
29
+ type="link"
30
30
  style={{
31
31
  ...style,
32
32
  ...arrowStyle,
@@ -11,7 +11,7 @@ const AddTestCustomerButton = ({
11
11
  }) => (
12
12
  <CapButton
13
13
  onClick={handleAddTestCustomer}
14
- type="flat"
14
+ type="link"
15
15
  size="small"
16
16
  className="test-customer-add-btn"
17
17
  prefix={
@@ -27,9 +27,9 @@ const CustomValuesEditor = ({
27
27
  }) => {
28
28
  if (isExtractingTags) {
29
29
  return (
30
- <CapRow className="loading-container">
30
+ <CapRow useLegacy className="loading-container">
31
31
  <CapSpin size="large" />
32
- <CapRow className="loading-text">
32
+ <CapRow useLegacy className="loading-text">
33
33
  <FormattedMessage {...messages.extractingTags} />
34
34
  </CapRow>
35
35
  </CapRow>
@@ -128,7 +128,7 @@ const CustomValuesEditor = ({
128
128
  <CapRow className="editor-actions">
129
129
  <CapButton
130
130
  className="discard-button"
131
- type="flat"
131
+ type="link"
132
132
  size="small"
133
133
  onClick={handleDiscardCustomValues}
134
134
  icon="close"
@@ -45,7 +45,7 @@ const CustomerCreationModal = ({
45
45
  width={500}
46
46
  maskStyle={{ backgroundColor: 'rgba(244, 245, 247, 0.9)' }}
47
47
  footer={
48
- <CapRow justify="start" gutter={8}>
48
+ <CapRow useLegacy justify="start" gap={8}>
49
49
  <CapButton
50
50
  type="primary"
51
51
  onClick={() => onSave(EMPTY_VALIDATION, setIsLoading)}
@@ -238,7 +238,7 @@ const ModifyDeliverySettings = (props) => {
238
238
  ({
239
239
  titleMessage, options, value, onChange, rowKey, disabled,
240
240
  }) => (
241
- <CapRow className="modify-delivery-settings__field-row" key={rowKey}>
241
+ <CapRow useLegacy className="modify-delivery-settings__field-row" key={rowKey}>
242
242
  <CapHeader
243
243
  size="label"
244
244
  title={<FormattedMessage {...titleMessage} />}
@@ -367,20 +367,20 @@ const ModifyDeliverySettings = (props) => {
367
367
 
368
368
  if (isLoading) {
369
369
  return (
370
- <CapRow className="modify-delivery-settings__loading-row">
370
+ <CapRow useLegacy className="modify-delivery-settings__loading-row">
371
371
  <CapSpin spinning />
372
372
  </CapRow>
373
373
  );
374
374
  }
375
375
 
376
376
  return (
377
- <CapRow className="modify-delivery-settings">
377
+ <CapRow useLegacy className="modify-delivery-settings">
378
378
  {getChannelFields().map((field, idx) => renderSelectRow({
379
379
  ...field,
380
380
  rowKey: field.titleMessage?.id || `${ROW_KEY_PREFIX}${idx}`,
381
381
  disabled: field.disabled,
382
382
  }))}
383
- <CapRow className="modify-delivery-settings__actions">
383
+ <CapRow useLegacy className="modify-delivery-settings__actions">
384
384
  <CapButton type="primary" onClick={handleDone}>
385
385
  <FormattedMessage {...messages.done} />
386
386
  </CapButton>
@@ -151,7 +151,7 @@ const DeliverySettings = (props) => {
151
151
  const summaryObject = getSummaryObject();
152
152
 
153
153
  return (
154
- <CapRow className="delivery-settings">
154
+ <CapRow useLegacy className="delivery-settings">
155
155
  <CapRow className="delivery-settings__heading-row">
156
156
  <CapHeading type="h10">
157
157
  <FormattedMessage {...messages.deliverySettings} />
@@ -19,7 +19,7 @@ const ExistingCustomerModal = ({ customerModal, onCloseCustomerModal, customerDa
19
19
  width={500}
20
20
  maskStyle={{ backgroundColor: 'rgba(244, 245, 247, 0.9)' }}
21
21
  footer={
22
- <CapRow justify="start">
22
+ <CapRow useLegacy justify="start">
23
23
  <CapButton
24
24
  type="primary"
25
25
  onClick={() => onSave({}, setIsLoading)}
@@ -42,7 +42,7 @@ const ExistingCustomerModal = ({ customerModal, onCloseCustomerModal, customerDa
42
42
  className="common-test-preview-modal"
43
43
  >
44
44
  <div className="existing-customer-modal">
45
- <CapRow className="existing-customer-modal-intro-row">
45
+ <CapRow useLegacy className="existing-customer-modal-intro-row">
46
46
  <FormattedMessage {...messages.existingCustomerModalDescription} />
47
47
  </CapRow>
48
48
  <CapCard className="existing-customer-modal-card">
@@ -51,17 +51,17 @@ const ExistingCustomerModal = ({ customerModal, onCloseCustomerModal, customerDa
51
51
  <CapIcon type="user-profile" className="existing-customer-modal-avatar-icon" />
52
52
  </CapColumn>
53
53
  <CapColumn className="existing-customer-modal-details">
54
- <CapRow className="existing-customer-modal-name">
54
+ <CapRow useLegacy className="existing-customer-modal-name">
55
55
  {customerData.name || "-"}
56
56
  </CapRow>
57
57
  <CapColumn className="existing-customer-modal-meta">
58
58
  {channel === CHANNELS.EMAIL && customerData.email && (
59
- <CapRow><span className="existing-customer-modal-meta-label"><FormattedMessage {...messages.customerEmail} />: </span> {customerData.email}</CapRow>
59
+ <CapRow useLegacy><span className="existing-customer-modal-meta-label"><FormattedMessage {...messages.customerEmail} />: </span> {customerData.email}</CapRow>
60
60
  )}
61
61
  {channel === CHANNELS.SMS && customerData.mobile && (
62
- <CapRow><span className="existing-customer-modal-meta-label"><FormattedMessage {...messages.customerMobile} />: </span>{customerData.mobile}</CapRow>
62
+ <CapRow useLegacy><span className="existing-customer-modal-meta-label"><FormattedMessage {...messages.customerMobile} />: </span>{customerData.mobile}</CapRow>
63
63
  )}
64
- <CapRow><span className="existing-customer-modal-meta-label"><FormattedMessage {...messages.customerID} />: </span>{customerData.customerId}</CapRow>
64
+ <CapRow useLegacy><span className="existing-customer-modal-meta-label"><FormattedMessage {...messages.customerID} />: </span>{customerData.customerId}</CapRow>
65
65
  </CapColumn>
66
66
  </CapColumn>
67
67
  </CapRow>
@@ -28,9 +28,9 @@ const LeftPanelContent = ({
28
28
  }) => {
29
29
  if (isExtractingTags) {
30
30
  return (
31
- <CapRow className="loading-container">
31
+ <CapRow useLegacy className="loading-container">
32
32
  <CapSpin size="large" />
33
- <CapRow className="loading-text">
33
+ <CapRow useLegacy className="loading-text">
34
34
  <FormattedMessage {...messages.extractingTags} />
35
35
  </CapRow>
36
36
  </CapRow>
@@ -41,7 +41,7 @@ const LeftPanelContent = ({
41
41
  <>
42
42
  {/* Customer Search Section - Only show if enabled */}
43
43
  {enableCustomerSearch && (
44
- <CapRow className="panel-section customer-section">
44
+ <CapRow useLegacy className="panel-section customer-section">
45
45
  <CapHeader size="label1" title={<FormattedMessage {...messages.customerSearchTitle} />} />
46
46
  <CustomerSearchSection
47
47
  selectedCustomer={selectedCustomer}
@@ -66,8 +66,8 @@ const LeftPanelContent = ({
66
66
  )}
67
67
  {/* Tags Section - Only show if tag extraction enabled */}
68
68
  {enableTagExtraction && !tagsExtracted && (
69
- <CapRow className="panel-section">
70
- <CapButton type="flat" className="extract-tags-button" onClick={handleExtractTags}>
69
+ <CapRow useLegacy className="panel-section">
70
+ <CapButton type="link" className="extract-tags-button" onClick={handleExtractTags}>
71
71
  <CapLabel type="label33">
72
72
  <FormattedMessage {...messages.enterCustomValuesForTags} />
73
73
  </CapLabel>