@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.
- package/app.js +8 -1
- package/global-styles.js +4 -0
- package/package.json +2 -2
- package/styles/components/navigation/_leftnav.scss +1 -1
- package/v2Components/AccessForbidden/index.js +1 -1
- package/v2Components/CapActionButton/index.js +5 -5
- package/v2Components/CapCustomSkeleton/index.js +1 -1
- package/v2Components/CapDeviceContent/index.js +5 -5
- package/v2Components/CapDocumentUpload/index.js +1 -1
- package/v2Components/CapImageUpload/index.js +1 -1
- package/v2Components/CapInAppCTA/index.js +118 -112
- package/v2Components/CapMpushCTA/index.js +72 -66
- package/v2Components/CapTagList/index.js +5 -5
- package/v2Components/CapVideoUpload/index.js +1 -1
- package/v2Components/CapWhatsappCTA/index.js +128 -124
- package/v2Components/CapWhatsappCarouselButton/index.js +27 -29
- package/v2Components/CapWhatsappQuickReply/index.js +7 -7
- package/v2Components/Carousel/index.js +1 -1
- package/v2Components/CommonTestAndPreview/AddTestCustomer.js +1 -1
- package/v2Components/CommonTestAndPreview/CustomValuesEditor.js +3 -3
- package/v2Components/CommonTestAndPreview/CustomerCreationModal.js +1 -1
- package/v2Components/CommonTestAndPreview/DeliverySettings/ModifyDeliverySettings.js +4 -4
- package/v2Components/CommonTestAndPreview/DeliverySettings/index.js +1 -1
- package/v2Components/CommonTestAndPreview/ExistingCustomerModal.js +6 -6
- package/v2Components/CommonTestAndPreview/LeftPanelContent.js +5 -5
- package/v2Components/CommonTestAndPreview/PreviewSection.js +1 -1
- package/v2Components/CommonTestAndPreview/UnifiedPreview/DeviceFrame.js +1 -1
- package/v2Components/CommonTestAndPreview/UnifiedPreview/EmailPreviewContent.js +8 -8
- package/v2Components/CommonTestAndPreview/UnifiedPreview/InAppPreviewContent.js +14 -13
- package/v2Components/CommonTestAndPreview/UnifiedPreview/MobilePushPreviewContent.js +22 -21
- package/v2Components/CommonTestAndPreview/UnifiedPreview/RcsPreviewContent.js +9 -9
- package/v2Components/CommonTestAndPreview/UnifiedPreview/SmsPreviewContent.js +8 -8
- package/v2Components/CommonTestAndPreview/UnifiedPreview/ViberPreviewContent.js +10 -10
- package/v2Components/CommonTestAndPreview/UnifiedPreview/WhatsAppPreviewContent.js +13 -12
- package/v2Components/CommonTestAndPreview/UnifiedPreview/ZaloPreviewContent.js +4 -3
- package/v2Components/CommonTestAndPreview/UnifiedPreview/_unifiedPreview.scss +10 -5
- package/v2Components/CommonTestAndPreview/UnifiedPreview/index.js +1 -1
- package/v2Components/CommonTestAndPreview/_commonTestAndPreview.scss +3 -4
- package/v2Components/CommonTestAndPreview/index.js +1 -1
- package/v2Components/CustomerSearchSection/_customerSearch.scss +2 -1
- package/v2Components/CustomerSearchSection/index.js +9 -9
- package/v2Components/EmailMobilePreview/index.js +1 -1
- package/v2Components/ErrorInfoNote/index.js +13 -11
- package/v2Components/ErrorInfoNote/style.scss +1 -1
- package/v2Components/FormBuilder/_formBuilder.scss +1 -0
- package/v2Components/FormBuilder/index.js +32 -40
- package/v2Components/HtmlEditor/HTMLEditor.js +4 -4
- package/v2Components/HtmlEditor/_htmlEditor.scss +2 -1
- package/v2Components/HtmlEditor/components/CodeEditorPane/index.js +1 -1
- package/v2Components/HtmlEditor/components/DeviceToggle/_deviceToggle.scss +2 -2
- package/v2Components/HtmlEditor/components/DeviceToggle/index.js +2 -2
- package/v2Components/HtmlEditor/components/EditorToolbar/PreviewModeGroup.js +2 -2
- package/v2Components/HtmlEditor/components/EditorToolbar/index.js +2 -2
- package/v2Components/HtmlEditor/components/InAppPreviewPane/index.js +1 -0
- package/v2Components/HtmlEditor/components/PreviewPane/index.js +2 -2
- package/v2Components/HtmlEditor/components/SplitContainer/SplitContainer.js +2 -2
- package/v2Components/HtmlEditor/components/SplitContainer/_splitContainer.scss +2 -1
- package/v2Components/HtmlEditor/components/ValidationPanel/index.js +6 -9
- package/v2Components/HtmlEditor/components/ValidationTabs/index.js +2 -2
- package/v2Components/NavigationBar/index.js +7 -1
- package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/index.js +3 -4
- package/v2Components/TemplatePreview/_templatePreview.scss +5 -3
- package/v2Components/TemplatePreview/index.js +11 -9
- package/v2Components/TestAndPreviewSlidebox/CustomValuesEditor.js +3 -3
- package/v2Components/TestAndPreviewSlidebox/LeftPanelContent.js +5 -5
- package/v2Components/TestAndPreviewSlidebox/PreviewSection.js +3 -3
- package/v2Components/TestAndPreviewSlidebox/_testAndPreviewSlidebox.scss +4 -2
- package/v2Containers/BeePopupEditor/index.js +1 -1
- package/v2Containers/CommunicationFlow/CommunicationFlow.js +5 -5
- package/v2Containers/CommunicationFlow/steps/ChannelSelectionStep/ChannelSelectionStep.js +4 -3
- package/v2Containers/CommunicationFlow/steps/CommunicationStrategyStep/CommunicationStrategyStep.js +2 -2
- package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/DeliverySettingsSection.js +3 -2
- package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/SenderDetails.js +7 -7
- package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/SenderDetails.scss +0 -5
- package/v2Containers/CommunicationFlow/steps/DynamicControlsStep/DynamicControlsStep.js +2 -2
- package/v2Containers/CommunicationFlow/steps/MessageTypeStep/MessageTypeStep.js +2 -2
- package/v2Containers/CreativesContainer/SlideBoxFooter.js +1 -1
- package/v2Containers/CreativesContainer/index.js +1 -1
- package/v2Containers/Ebill/index.js +10 -9
- package/v2Containers/Email/index.js +7 -7
- package/v2Containers/Email/initialSchema.js +1 -1
- package/v2Containers/FTP/index.js +1 -1
- package/v2Containers/Facebook/Advertisement/index.js +4 -4
- package/v2Containers/Facebook/index.js +2 -2
- package/v2Containers/InApp/index.js +21 -16
- package/v2Containers/InApp/index.scss +0 -7
- package/v2Containers/InAppWrapper/components/InAppWrapperView.js +2 -2
- package/v2Containers/InappAdvance/index.js +4 -4
- package/v2Containers/LanguageProvider/index.js +3 -3
- package/v2Containers/LanguageProvider/tests/index.test.js +3 -3
- package/v2Containers/Line/Container/Image/index.js +1 -1
- package/v2Containers/Line/Container/ImageCarousel/Content.js +1 -1
- package/v2Containers/Line/Container/ImageCarousel/index.js +5 -5
- package/v2Containers/Line/Container/ImageMap/index.js +3 -3
- package/v2Containers/Line/Container/Sticker/index.js +2 -2
- package/v2Containers/Line/Container/Sticker/utils.js +1 -1
- package/v2Containers/Line/Container/Video/index.js +1 -1
- package/v2Containers/Line/Container/Wrapper/index.js +3 -3
- package/v2Containers/Line/Container/Wrapper/style.js +1 -5
- package/v2Containers/Line/Container/index.js +2 -2
- package/v2Containers/Login/components/LoginForm/index.js +34 -47
- package/v2Containers/Login/index.js +5 -5
- package/v2Containers/MobilePushNew/components/CtaButtons.js +2 -2
- package/v2Containers/MobilePushNew/components/MediaUploaders.js +9 -9
- package/v2Containers/MobilePushNew/components/PlatformContentFields.js +4 -4
- package/v2Containers/MobilePushNew/index.js +2 -2
- package/v2Containers/MobilePushNew/index.scss +6 -3
- package/v2Containers/Rcs/index.js +24 -19
- package/v2Containers/Rcs/index.scss +0 -7
- package/v2Containers/SmsTrai/Edit/index.js +3 -2
- package/v2Containers/Templates/index.js +16 -16
- package/v2Containers/Viber/constants.js +0 -8
- package/v2Containers/Viber/index.js +19 -19
- package/v2Containers/Viber/index.scss +0 -7
- package/v2Containers/Viber/reducer.js +21 -44
- package/v2Containers/Viber/sagas.js +21 -62
- package/v2Containers/Viber/tests/index.test.js +0 -80
- package/v2Containers/Viber/tests/saga.test.js +40 -365
- package/v2Containers/WeChat/RichmediaTemplates/Create/_createRichmedia.scss +1 -1
- package/v2Containers/WeChat/RichmediaTemplates/Create/index.js +2 -2
- package/v2Containers/WebPush/Create/components/BrandIconSection.js +1 -1
- package/v2Containers/WebPush/Create/components/ButtonForm.js +2 -2
- package/v2Containers/WebPush/Create/components/ButtonList.js +4 -4
- package/v2Containers/WebPush/Create/components/ButtonsLinksSection.js +4 -4
- package/v2Containers/WebPush/Create/components/FormActions.js +3 -3
- package/v2Containers/WebPush/Create/components/MessageSection.js +2 -2
- package/v2Containers/WebPush/Create/components/NotificationTitleSection.js +2 -2
- package/v2Containers/WebPush/Create/components/_buttons.scss +2 -2
- package/v2Containers/WebPush/Create/index.scss +6 -3
- package/v2Containers/WebPush/Create/preview/WebPushPreview.js +1 -1
- package/v2Containers/Whatsapp/index.js +28 -28
- package/v2Containers/Zalo/index.js +3 -3
- package/.npmrc copy +0 -2
- 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="
|
|
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="
|
|
506
|
+
type="link"
|
|
507
507
|
>
|
|
508
508
|
{label || ""}
|
|
509
509
|
</CapButton>
|
|
@@ -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
|
-
<
|
|
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
|
-
{/*
|
|
317
|
+
{/* Type of action */}
|
|
377
318
|
<CapHeading type="h4" className="cta-label">
|
|
378
|
-
{formatMessage(messages.
|
|
319
|
+
{formatMessage(messages.ctaType)}
|
|
379
320
|
</CapHeading>
|
|
380
321
|
<CapSelect
|
|
381
|
-
id="whatsapp-cta-
|
|
382
|
-
options={
|
|
383
|
-
|
|
384
|
-
|
|
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
|
-
{/*
|
|
329
|
+
{/* Button text */}
|
|
393
330
|
<CapHeading type="h4" className="cta-label">
|
|
394
|
-
{formatMessage(messages.
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
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
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
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={
|
|
419
|
-
errorMessage={
|
|
348
|
+
maxLength={BTN_MAX_LENGTH}
|
|
349
|
+
errorMessage={buttonError}
|
|
420
350
|
/>
|
|
421
|
-
{renderLength(
|
|
351
|
+
{renderLength(text.length, BTN_MAX_LENGTH)}
|
|
422
352
|
</CapColumn>
|
|
423
353
|
</CapRow>
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
{
|
|
441
|
-
</
|
|
442
|
-
</
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
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="
|
|
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="
|
|
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
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
<
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
>
|
|
444
|
-
<
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
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="
|
|
229
|
+
type="link"
|
|
230
230
|
id="whatsapp-quick-reply-add-button"
|
|
231
231
|
disabled={isQuickReplyDisable}
|
|
232
232
|
className="margin-t-12 margin-l-24"
|
|
@@ -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="
|
|
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"
|
|
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="
|
|
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>
|