@capillarytech/creatives-library 7.16.13 → 7.16.19

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 (51) hide show
  1. package/containers/Cap/tests/__snapshots__/index.test.js.snap +220 -10
  2. package/containers/MobilePush/Create/index.js +18 -0
  3. package/containers/MobilePush/Create/messages.js +2 -2
  4. package/containers/MobilePush/Edit/index.js +18 -0
  5. package/containers/MobilePush/Edit/messages.js +2 -2
  6. package/package.json +1 -1
  7. package/translations/en.json +220 -10
  8. package/translations/ja-JP.json +212 -2
  9. package/translations/zh.json +212 -2
  10. package/v2Components/CapWhatsappCTA/index.js +1 -1
  11. package/v2Components/CapWhatsappCTA/messages.js +1 -5
  12. package/v2Components/FormBuilder/constants.js +1 -0
  13. package/v2Components/FormBuilder/index.js +48 -4
  14. package/v2Components/NavigationBar/index.js +10 -5
  15. package/v2Components/NavigationBar/tests/index.test.js +51 -0
  16. package/v2Components/NavigationBar/tests/mockData.js +36 -0
  17. package/v2Components/TopBar/index.js +3 -0
  18. package/v2Containers/Cap/constants.js +2 -0
  19. package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +220 -10
  20. package/v2Containers/ChannelTemplates/actions.js +20 -0
  21. package/v2Containers/ChannelTemplates/constants.js +8 -0
  22. package/v2Containers/ChannelTemplates/index.js +47 -0
  23. package/v2Containers/ChannelTemplates/messages.js +13 -0
  24. package/v2Containers/ChannelTemplates/reducer.js +34 -0
  25. package/v2Containers/ChannelTemplates/sagas.js +32 -0
  26. package/v2Containers/ChannelTemplates/selectors.js +25 -0
  27. package/v2Containers/CreativesContainer/constants.js +2 -0
  28. package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +8 -0
  29. package/v2Containers/LanguageProvider/index.js +3 -0
  30. package/v2Containers/LanguageProvider/tests/index.test.js +1 -0
  31. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +663 -30
  32. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +440 -20
  33. package/v2Containers/Line/Container/Video/index.js +2 -2
  34. package/v2Containers/Line/Container/Video/messages.js +9 -0
  35. package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +3740 -170
  36. package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +3960 -180
  37. package/v2Containers/MobilePush/Create/index.js +31 -3
  38. package/v2Containers/MobilePush/Create/messages.js +50 -2
  39. package/v2Containers/MobilePush/Edit/index.js +29 -1
  40. package/v2Containers/MobilePush/Edit/messages.js +50 -2
  41. package/v2Containers/MobilePush/commonMethods.js +2 -2
  42. package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +10349 -473
  43. package/v2Containers/Sms/Create/tests/sagas.test.js +82 -0
  44. package/v2Containers/SmsTrai/Create/tests/__snapshots__/index.test.js.snap +880 -40
  45. package/v2Containers/SmsTrai/Edit/index.js +1 -1
  46. package/v2Containers/SmsTrai/Edit/messages.js +1 -1
  47. package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +1760 -80
  48. package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +16 -0
  49. package/v2Containers/Whatsapp/index.js +3 -3
  50. package/v2Containers/Whatsapp/messages.js +3 -3
  51. package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +17965 -1789
@@ -90,6 +90,21 @@ exports[`<Cap /> should render its children 1`] = `
90
90
  "app.v2containers.SmsTrai.Create.typeAliasErrorDescription": "Please include mandatory field type. It can be {typeAliases}.",
91
91
  "app.v2containers.SmsTrai.Create.uploadFile": "Upload file",
92
92
  "app.v2containers.SmsTrai.Create.uploadInstructions": "Upload Instructions",
93
+ "app.v2containers.SmsTrai.Edit.addLabels": "Add labels",
94
+ "app.v2containers.SmsTrai.Edit.cancelButtonLabel": "Cancel",
95
+ "app.v2containers.SmsTrai.Edit.inputplaceHolderText": "Add labels or text or combination of both",
96
+ "app.v2containers.SmsTrai.Edit.msgLengthNote": "Only 30 characters are allowed per variable {var} field. In case the field resolves to more than 30 characters the message is bound to fail. Hence will not be sent by the Capillary system.",
97
+ "app.v2containers.SmsTrai.Edit.saveButtonLabel": "Save",
98
+ "app.v2containers.SmsTrai.Edit.senderIdlabel": "Sender ID",
99
+ "app.v2containers.SmsTrai.Edit.smsEditNotification": "Sms template updated successfully",
100
+ "app.v2containers.SmsTrai.Edit.templateLabel": "Template",
101
+ "app.v2containers.SmsTrai.Edit.textAreaCounts": "{varCounts} variable{varCounts, plural, one {} other {s}} {var}: max. {charCounts} characters",
102
+ "app.v2containers.SmsTrai.Edit.textAreaError": "Template cannot be empty",
103
+ "app.v2containers.SmsTrai.Edit.totalCharacters": "{smsCount} SMS ({number} characters)",
104
+ "app.v2containers.SmsTrai.Edit.traiEditSeperator": "|",
105
+ "app.v2containers.SmsTrai.Edit.traiEditTitle": "Message",
106
+ "app.v2containers.SmsTrai.Edit.unicodeLabel": "Allow unicode characters",
107
+ "app.v2containers.SmsTrai.Edit.unsupportedTagsValidationError": "Unsupported tags: {unsupportedTags}. Please remove them from this message.",
93
108
  "creatives.components.AccessForbidden.forbiddenDesc": "This page access has not been provided to you.",
94
109
  "creatives.components.AccessForbidden.forbiddenHeader": "Access Forbidden",
95
110
  "creatives.components.BreadCrumbs.header": "This is the BreadCrumbs component !",
@@ -218,6 +233,31 @@ exports[`<Cap /> should render its children 1`] = `
218
233
  "creatives.componentsV2.CapTagList.numberOfDaysBeforeExpiry": "Number of days before expiry",
219
234
  "creatives.componentsV2.CapTagList.outbound": "Outbound",
220
235
  "creatives.componentsV2.CapTagList.search": "Search",
236
+ "creatives.componentsV2.CapWhatsappCTA.addButton": "Add button",
237
+ "creatives.componentsV2.CapWhatsappCTA.ctaAddDisabled": "Please save the first button before proceeding to create second button",
238
+ "creatives.componentsV2.CapWhatsappCTA.ctaButtonErrorMessage": "Newlines, Emojis, or Special characters are not allowed",
239
+ "creatives.componentsV2.CapWhatsappCTA.ctaButtonText": "Button text",
240
+ "creatives.componentsV2.CapWhatsappCTA.ctaButtonTextPlaceholder": "Enter button text",
241
+ "creatives.componentsV2.CapWhatsappCTA.ctaButtonTextTooltip": "Use this to name the button. We would recommend not to use special characters for the button text.",
242
+ "creatives.componentsV2.CapWhatsappCTA.ctaDynamicPlaceholder": "Enter URL, variable is added by default",
243
+ "creatives.componentsV2.CapWhatsappCTA.ctaOptionDisabledTooltip": "This type of button can only be added once",
244
+ "creatives.componentsV2.CapWhatsappCTA.ctaPhoneNo": "Phone number",
245
+ "creatives.componentsV2.CapWhatsappCTA.ctaPhoneNoPlaceholder": "Enter phone number",
246
+ "creatives.componentsV2.CapWhatsappCTA.ctaSaveDisabled": "Please complete the above fields to enable button",
247
+ "creatives.componentsV2.CapWhatsappCTA.ctaStaticPlaceholder": "Enter website URL",
248
+ "creatives.componentsV2.CapWhatsappCTA.ctaType": "Type of action",
249
+ "creatives.componentsV2.CapWhatsappCTA.ctaWebsite": "Website",
250
+ "creatives.componentsV2.CapWhatsappCTA.ctaWebsiteType": "URL Type",
251
+ "creatives.componentsV2.CapWhatsappCTA.ctaWebsiteTypeDynamic": "Dynamic",
252
+ "creatives.componentsV2.CapWhatsappCTA.ctaWebsiteTypeStatic": "Static",
253
+ "creatives.componentsV2.CapWhatsappCTA.ctaWebsiteUrl": "Website URL",
254
+ "creatives.componentsV2.CapWhatsappCTA.ctaWebsiteUrlErrorMessage": "URL is not valid",
255
+ "creatives.componentsV2.CapWhatsappCTA.dynamicUrlTooltip": "Only one variable can be added to a URL. No need to add {one} to the end of the URL",
256
+ "creatives.componentsV2.CapWhatsappCTA.dynamicUrlWithMoreVarErrorMessage": "Button with url type as dynamic can have only 1 variable",
257
+ "creatives.componentsV2.CapWhatsappCTA.staticUrlWithVarErrorMessage": "Button with url type as static cannot contain variables",
258
+ "creatives.componentsV2.CapWhatsappCTA.useTwoBracketsOnly": "Use two brackets on each side to declare a variable",
259
+ "creatives.componentsV2.CapWhatsappCTA.whatsappCtaTagListLabel": "Add URL label",
260
+ "creatives.componentsV2.CapWhatsappCTA.whatsappCtaTagListRevert": "Reset website URL label to default value",
221
261
  "creatives.componentsV2.Ckeditor.header": "This is the Ckeditor component !",
222
262
  "creatives.componentsV2.CmsTemplatesComponent.header": "This is the CmsTemplatesComponent component !",
223
263
  "creatives.componentsV2.CmsTemplatesComponent.select": "Select",
@@ -629,8 +669,8 @@ exports[`<Cap /> should render its children 1`] = `
629
669
  "creatives.containers.MobilePush.Create.button2": "Button 2",
630
670
  "creatives.containers.MobilePush.Create.cancel": "Cancel",
631
671
  "creatives.containers.MobilePush.Create.cantCopyEmptyField": "Cannot copy empty field values.",
632
- "creatives.containers.MobilePush.Create.copyFromAndroid": "Copy title and content from android",
633
- "creatives.containers.MobilePush.Create.copyFromIos": "Copy title and content from IOS",
672
+ "creatives.containers.MobilePush.Create.copyFromAndroid": "Copy Title and Content From Android",
673
+ "creatives.containers.MobilePush.Create.copyFromIos": "Copy Title and Content From IOS",
634
674
  "creatives.containers.MobilePush.Create.ctaLabelCantEmpty": "CTA label cannot be empty.",
635
675
  "creatives.containers.MobilePush.Create.deleteSecondCTAFirst": "Please delete second secondary cta first",
636
676
  "creatives.containers.MobilePush.Create.discardChanges": "Discard changes",
@@ -694,8 +734,8 @@ exports[`<Cap /> should render its children 1`] = `
694
734
  "creatives.containers.MobilePush.Edit.button2": "Button 2",
695
735
  "creatives.containers.MobilePush.Edit.cancel": "Cancel",
696
736
  "creatives.containers.MobilePush.Edit.cantCopyEmptyField": "Cannot copy empty field values.",
697
- "creatives.containers.MobilePush.Edit.copyFromAndroid": "Copy title and content from android",
698
- "creatives.containers.MobilePush.Edit.copyFromIos": "Copy title and content from IOS",
737
+ "creatives.containers.MobilePush.Edit.copyFromAndroid": "Copy Title and Content From Android",
738
+ "creatives.containers.MobilePush.Edit.copyFromIos": "Copy Title and Content From IOS",
699
739
  "creatives.containers.MobilePush.Edit.ctaLabelCantEmpty": "CTA label cannot be empty.",
700
740
  "creatives.containers.MobilePush.Edit.deleteSecondCTAFirst": "Please delete second Secondary cta First",
701
741
  "creatives.containers.MobilePush.Edit.discardChanges": "Discard changes",
@@ -923,6 +963,7 @@ exports[`<Cap /> should render its children 1`] = `
923
963
  "creatives.containersV2.Cap.ebill": "Ebill",
924
964
  "creatives.containersV2.Cap.email": "Email",
925
965
  "creatives.containersV2.Cap.gallery": "Gallery",
966
+ "creatives.containersV2.Cap.journeys": "Journeys",
926
967
  "creatives.containersV2.Cap.loyalty": "Loyalty",
927
968
  "creatives.containersV2.Cap.memberCare": "Member Care",
928
969
  "creatives.containersV2.Cap.sms": "SMS",
@@ -963,7 +1004,6 @@ exports[`<Cap /> should render its children 1`] = `
963
1004
  "creatives.containersV2.CapFacebookPreview.suggestedVideoMobile": "Suggested video mobile",
964
1005
  "creatives.containersV2.CapFacebookPreview.videoNotePreview": "Facebook may take time to upload the video. Please try Refreshing.",
965
1006
  "creatives.containersV2.CapFacebookPreview.watchFeedMobile": "Watch feed mobile",
966
- "creatives.containersV2.ChannelTemplates.header": "This is ChannelTemplates container !",
967
1007
  "creatives.containersV2.Create.addLabel": "Add label",
968
1008
  "creatives.containersV2.Create.alertMessage": "Alert",
969
1009
  "creatives.containersV2.Create.cancelButton": "Cancel",
@@ -1444,11 +1484,13 @@ exports[`<Cap /> should render its children 1`] = `
1444
1484
  "creatives.containersV2.LineVideo.actionLabelTitle": "Action button label",
1445
1485
  "creatives.containersV2.LineVideo.actionUrlPlaceholder": "Enter URL",
1446
1486
  "creatives.containersV2.LineVideo.actionUrlTitle": "Link Url",
1487
+ "creatives.containersV2.LineVideo.display": "Display",
1447
1488
  "creatives.containersV2.LineVideo.dragAndDrop": "Drag and drop video here",
1448
1489
  "creatives.containersV2.LineVideo.emptyAltTextErrorMessage": "Title can not be empty",
1449
1490
  "creatives.containersV2.LineVideo.emptyLabelErrorMessage": "Action label can not be more empty",
1450
1491
  "creatives.containersV2.LineVideo.emptyTitleErrorMessage": "Template title can not be empty",
1451
1492
  "creatives.containersV2.LineVideo.emptyUrlErrorMessage": "Action URL can not be more empty",
1493
+ "creatives.containersV2.LineVideo.hide": "Hide",
1452
1494
  "creatives.containersV2.LineVideo.imageGallery": "Gallery",
1453
1495
  "creatives.containersV2.LineVideo.imageReUpload": "Re upload",
1454
1496
  "creatives.containersV2.LineVideo.inValidUrlErrorMessage": "Action url is not valid",
@@ -1492,19 +1534,29 @@ exports[`<Cap /> should render its children 1`] = `
1492
1534
  "creatives.containersV2.MobilePush.Create.Image": "Image",
1493
1535
  "creatives.containersV2.MobilePush.Create.ImageUploadLabel": "Upload image",
1494
1536
  "creatives.containersV2.MobilePush.Create.Tags": "Tags",
1537
+ "creatives.containersV2.MobilePush.Create.aPageWithMobileApp": "A page within mobile app",
1495
1538
  "creatives.containersV2.MobilePush.Create.accountId": "Account id",
1539
+ "creatives.containersV2.MobilePush.Create.addActionButtonsToNotification": "Add action buttons to notification",
1540
+ "creatives.containersV2.MobilePush.Create.addActionLinkToContent": "Add action link to content",
1541
+ "creatives.containersV2.MobilePush.Create.addActionLinkToContentDescription": "Add a hyperlink of the page which customer will be directed to",
1496
1542
  "creatives.containersV2.MobilePush.Create.addAnotherCTA": "Add another CTA",
1543
+ "creatives.containersV2.MobilePush.Create.addPrimaryButtonToNotification": "Add primary button to notification",
1497
1544
  "creatives.containersV2.MobilePush.Create.addPrimaryCTA": "Add primary CTA",
1545
+ "creatives.containersV2.MobilePush.Create.addSecondaryButtonToNotification": "Add secondary button to notification",
1498
1546
  "creatives.containersV2.MobilePush.Create.addSecondaryCTA": "Add secondary CTA",
1499
1547
  "creatives.containersV2.MobilePush.Create.alertMessage": "Alert",
1548
+ "creatives.containersV2.MobilePush.Create.anExternalWebPage": "An external web page",
1500
1549
  "creatives.containersV2.MobilePush.Create.androidNotConfigured": "Android template is not configured. Save without Android template",
1501
1550
  "creatives.containersV2.MobilePush.Create.button1": "Button 1",
1502
1551
  "creatives.containersV2.MobilePush.Create.button2": "Button 2",
1552
+ "creatives.containersV2.MobilePush.Create.buttonLabel": "Button label",
1503
1553
  "creatives.containersV2.MobilePush.Create.cancel": "Cancel",
1504
1554
  "creatives.containersV2.MobilePush.Create.cantCopyEmptyFieldValues": "Cannot copy empty field values.",
1505
1555
  "creatives.containersV2.MobilePush.Create.change": "change",
1506
- "creatives.containersV2.MobilePush.Create.copyFromAndroid": "Copy title and content from android",
1507
- "creatives.containersV2.MobilePush.Create.copyFromIos": "Copy title and content from IOS",
1556
+ "creatives.containersV2.MobilePush.Create.copyFromAndroid": "Copy Title and Content From Android",
1557
+ "creatives.containersV2.MobilePush.Create.copyFromIos": "Copy Title and Content From IOS",
1558
+ "creatives.containersV2.MobilePush.Create.coverImage": "Cover image",
1559
+ "creatives.containersV2.MobilePush.Create.coverImageDescription": "Maximum file size acceptable is 5 MB",
1508
1560
  "creatives.containersV2.MobilePush.Create.ctaLabelCantEmpty": "CTA label cannot be empty.",
1509
1561
  "creatives.containersV2.MobilePush.Create.deleteSecondCTAFirst": "Please delete second secondary cta first",
1510
1562
  "creatives.containersV2.MobilePush.Create.discardChanges": "Discard changes",
@@ -1547,6 +1599,7 @@ exports[`<Cap /> should render its children 1`] = `
1547
1599
  "creatives.containersV2.MobilePush.Create.templateCreatedSuccessfully": "Mobile push template created successfully",
1548
1600
  "creatives.containersV2.MobilePush.Create.templateNameNotEmpty": "Please provide a template name",
1549
1601
  "creatives.containersV2.MobilePush.Create.templateNotConfigured": "template not configured,",
1602
+ "creatives.containersV2.MobilePush.Create.thisSectionDisabledHoverText": "This section is being revamped. Till then it will remain disabled.",
1550
1603
  "creatives.containersV2.MobilePush.Create.title": "Title",
1551
1604
  "creatives.containersV2.MobilePush.Create.titleHasUnsupportedTag": "Please check the message content for unsupported/missing tags",
1552
1605
  "creatives.containersV2.MobilePush.Create.titleLabel": "Title*",
@@ -1564,19 +1617,29 @@ exports[`<Cap /> should render its children 1`] = `
1564
1617
  "creatives.containersV2.MobilePush.Edit.Image": "Image",
1565
1618
  "creatives.containersV2.MobilePush.Edit.ImageUploadLabel": "Upload image",
1566
1619
  "creatives.containersV2.MobilePush.Edit.Tags": "Tags",
1620
+ "creatives.containersV2.MobilePush.Edit.aPageWithMobileApp": "A page within mobile app",
1567
1621
  "creatives.containersV2.MobilePush.Edit.accountId": "Account id",
1622
+ "creatives.containersV2.MobilePush.Edit.addActionButtonsToNotification": "Add action buttons to notification",
1623
+ "creatives.containersV2.MobilePush.Edit.addActionLinkToContent": "Add action link to content",
1624
+ "creatives.containersV2.MobilePush.Edit.addActionLinkToContentDescription": "Add a hyperlink of the page which customer will be directed to",
1568
1625
  "creatives.containersV2.MobilePush.Edit.addAnotherCTA": "Add another CTA",
1626
+ "creatives.containersV2.MobilePush.Edit.addPrimaryButtonToNotification": "Add primary button to notification",
1569
1627
  "creatives.containersV2.MobilePush.Edit.addPrimaryCTA": "Add primary CTA",
1628
+ "creatives.containersV2.MobilePush.Edit.addSecondaryButtonToNotification": "Add secondary button to notification",
1570
1629
  "creatives.containersV2.MobilePush.Edit.addSecondaryCTA": "Add secondary CTA",
1571
1630
  "creatives.containersV2.MobilePush.Edit.alertMessage": "Alert",
1631
+ "creatives.containersV2.MobilePush.Edit.anExternalWebPage": "An external web page",
1572
1632
  "creatives.containersV2.MobilePush.Edit.androidTemplateNotConfigured": "Android template is not configured. Continue save?",
1573
1633
  "creatives.containersV2.MobilePush.Edit.button1": "Button 1",
1574
1634
  "creatives.containersV2.MobilePush.Edit.button2": "Button 2",
1635
+ "creatives.containersV2.MobilePush.Edit.buttonLabel": "Button label",
1575
1636
  "creatives.containersV2.MobilePush.Edit.cancel": "Cancel",
1576
1637
  "creatives.containersV2.MobilePush.Edit.cantCopyEmptyFieldValues": "Cannot copy empty field values.",
1577
1638
  "creatives.containersV2.MobilePush.Edit.change": "change",
1578
- "creatives.containersV2.MobilePush.Edit.copyFromAndroid": "Copy title and content from android",
1579
- "creatives.containersV2.MobilePush.Edit.copyFromIos": "Copy title and content from IOS",
1639
+ "creatives.containersV2.MobilePush.Edit.copyFromAndroid": "Copy Title and Content From Android",
1640
+ "creatives.containersV2.MobilePush.Edit.copyFromIos": "Copy Title and Content From IOS",
1641
+ "creatives.containersV2.MobilePush.Edit.coverImage": "Cover image",
1642
+ "creatives.containersV2.MobilePush.Edit.coverImageDescription": "Maximum file size acceptable is 5 MB",
1580
1643
  "creatives.containersV2.MobilePush.Edit.ctaLabelCantEmpty": "CTA label cannot be empty.",
1581
1644
  "creatives.containersV2.MobilePush.Edit.deleteSecondCTAFirst": "Please delete second Secondary cta First",
1582
1645
  "creatives.containersV2.MobilePush.Edit.discardChanges": "Discard changes",
@@ -1619,6 +1682,7 @@ exports[`<Cap /> should render its children 1`] = `
1619
1682
  "creatives.containersV2.MobilePush.Edit.templateEditedSuccessfully": "MOBILEPUSH template edited successfully",
1620
1683
  "creatives.containersV2.MobilePush.Edit.templateNameNotEmpty": "Please provide a template name",
1621
1684
  "creatives.containersV2.MobilePush.Edit.templateNotConfigured": "Template not configured,",
1685
+ "creatives.containersV2.MobilePush.Edit.thisSectionDisabledHoverText": "This section is being revamped. Till then it will remain disabled.",
1622
1686
  "creatives.containersV2.MobilePush.Edit.title": "Title",
1623
1687
  "creatives.containersV2.MobilePush.Edit.titleHasUnsupportedTag": "Please check the message content for unsupported/missing tags",
1624
1688
  "creatives.containersV2.MobilePush.Edit.titleLabel": "Title*",
@@ -1855,11 +1919,157 @@ new message content.",
1855
1919
  "creatives.containersV2.WeChat.templateName": "Template Name",
1856
1920
  "creatives.containersV2.WeChat.wechatCreateSuccess": "WeChat template mapped successfully",
1857
1921
  "creatives.containersV2.WeChat.wechatEditSuccess": "WeChat template edited successfully",
1922
+ "creatives.containersV2.Whatsapp.IncorrectCategoryError": "INCORRECT CATEGORY: Message content different from expected content in the category selected. Refer {here} for expected content in each category.",
1923
+ "creatives.containersV2.Whatsapp.accountUpdate": "Account update",
1924
+ "creatives.containersV2.Whatsapp.accountUpdateTooltip": "Let customers know about updates or changes to their accounts.",
1925
+ "creatives.containersV2.Whatsapp.addVar": "Add variables",
1926
+ "creatives.containersV2.Whatsapp.afrikaans": "Afrikaans",
1927
+ "creatives.containersV2.Whatsapp.albanian": "Albanian",
1858
1928
  "creatives.containersV2.Whatsapp.alertUpdate": "Alert update",
1859
1929
  "creatives.containersV2.Whatsapp.alertUpdateTooltip": "Send important updates or news to customers.",
1930
+ "creatives.containersV2.Whatsapp.appointmentUpdate": "Appointment update",
1931
+ "creatives.containersV2.Whatsapp.appointmentUpdateTooltip": "Send confirmations, reminders, or other updates to customers about their appointments.",
1860
1932
  "creatives.containersV2.Whatsapp.approved": "Approved",
1933
+ "creatives.containersV2.Whatsapp.approvedStatusMsg": "This template has been approved",
1934
+ "creatives.containersV2.Whatsapp.arabic": "Arabic",
1935
+ "creatives.containersV2.Whatsapp.authentication": "Authentication",
1936
+ "creatives.containersV2.Whatsapp.authenticationTooltip": "Send codes that allow your customers to securely access their accounts.",
1937
+ "creatives.containersV2.Whatsapp.awaitingApproval": "Awaiting approval",
1938
+ "creatives.containersV2.Whatsapp.awaitingStatusDesc": "The template has been sent for approval at {date}, {time}. It takes up to 48 hrs to get approved.",
1939
+ "creatives.containersV2.Whatsapp.awaitingStatusMsg": "This template is awaiting approval",
1940
+ "creatives.containersV2.Whatsapp.azerbaijani": "Azerbaijani",
1941
+ "creatives.containersV2.Whatsapp.bengali": "Bengali",
1942
+ "creatives.containersV2.Whatsapp.btnDesc": "These will be show clickable buttons below your message.",
1943
+ "creatives.containersV2.Whatsapp.btnDisabledTooltip": "Please add all mandatory fields to proceed further",
1944
+ "creatives.containersV2.Whatsapp.btnLabel": "Buttons",
1945
+ "creatives.containersV2.Whatsapp.btnTypeCTA": "Call to action",
1946
+ "creatives.containersV2.Whatsapp.btnTypeNone": "None",
1947
+ "creatives.containersV2.Whatsapp.btnTypeQuickReply": "Quick reply",
1948
+ "creatives.containersV2.Whatsapp.bulgarian": "Bulgarian",
1949
+ "creatives.containersV2.Whatsapp.cancelButtonLabel": "Cancel",
1950
+ "creatives.containersV2.Whatsapp.catalan": "Catalan",
1951
+ "creatives.containersV2.Whatsapp.chineseCHN": "Chinese (CHN)",
1952
+ "creatives.containersV2.Whatsapp.chineseHKG": "Chinese (HKG)",
1953
+ "creatives.containersV2.Whatsapp.chineseTAI": "Chinese (TAI)",
1954
+ "creatives.containersV2.Whatsapp.croatian": "Croatian",
1955
+ "creatives.containersV2.Whatsapp.ctaDesc": "Create up to 2 buttons that let customers respond to your messages or take action.",
1956
+ "creatives.containersV2.Whatsapp.czech": "Czech",
1957
+ "creatives.containersV2.Whatsapp.danish": "Danish",
1958
+ "creatives.containersV2.Whatsapp.disabledEditTooltip": "This template is non-editable as this is {status}",
1959
+ "creatives.containersV2.Whatsapp.disabledEditTooltipStatus": "awaiting for approval",
1960
+ "creatives.containersV2.Whatsapp.disabledFeatureTooltip": "Not yet enabled. Coming soon!",
1961
+ "creatives.containersV2.Whatsapp.dutch": "Dutch",
1962
+ "creatives.containersV2.Whatsapp.emptyTemplateMessageErrorMessage": "Template message cannot be empty",
1963
+ "creatives.containersV2.Whatsapp.english": "English",
1964
+ "creatives.containersV2.Whatsapp.englishUK": "English (UK)",
1965
+ "creatives.containersV2.Whatsapp.englishUS": "English (US)",
1966
+ "creatives.containersV2.Whatsapp.estonian": "Estonian",
1967
+ "creatives.containersV2.Whatsapp.filipino": "Filipino",
1968
+ "creatives.containersV2.Whatsapp.finnish": "Finnish",
1969
+ "creatives.containersV2.Whatsapp.french": "French",
1970
+ "creatives.containersV2.Whatsapp.georgian": "Georgian",
1971
+ "creatives.containersV2.Whatsapp.german": "German",
1972
+ "creatives.containersV2.Whatsapp.greek": "Greek",
1973
+ "creatives.containersV2.Whatsapp.gujarati": "Gujarati",
1974
+ "creatives.containersV2.Whatsapp.hausa": "Hausa",
1975
+ "creatives.containersV2.Whatsapp.hebrew": "Hebrew",
1976
+ "creatives.containersV2.Whatsapp.here": "here",
1977
+ "creatives.containersV2.Whatsapp.hindi": "Hindi",
1978
+ "creatives.containersV2.Whatsapp.hungarian": "Hungarian",
1979
+ "creatives.containersV2.Whatsapp.indonesian": "Indonesian",
1980
+ "creatives.containersV2.Whatsapp.inputplaceHolderText": "{value} Add labels or text or combination of both",
1981
+ "creatives.containersV2.Whatsapp.invalidFormatError": "INVALID FORMAT: Placeholders or other elements were formatted incorrectly.",
1982
+ "creatives.containersV2.Whatsapp.irish": "Irish",
1983
+ "creatives.containersV2.Whatsapp.italian": "Italian",
1984
+ "creatives.containersV2.Whatsapp.japanese": "Japanese",
1985
+ "creatives.containersV2.Whatsapp.kannada": "Kannada",
1986
+ "creatives.containersV2.Whatsapp.kazakh": "Kazakh",
1987
+ "creatives.containersV2.Whatsapp.kinyarwanda": "Kinyarwanda",
1988
+ "creatives.containersV2.Whatsapp.korean": "Korean",
1989
+ "creatives.containersV2.Whatsapp.kyrgyz": "Kyrgyz (Kyrgyzstan)",
1990
+ "creatives.containersV2.Whatsapp.labelSeperator": "|",
1991
+ "creatives.containersV2.Whatsapp.languageLabel": "Language",
1992
+ "creatives.containersV2.Whatsapp.lao": "Lao",
1993
+ "creatives.containersV2.Whatsapp.latvian": "Latvian",
1994
+ "creatives.containersV2.Whatsapp.lithuanian": "Lithuanian",
1995
+ "creatives.containersV2.Whatsapp.macedonian": "Macedonian",
1996
+ "creatives.containersV2.Whatsapp.malay": "Malay",
1997
+ "creatives.containersV2.Whatsapp.malayalam": "Malayalam",
1998
+ "creatives.containersV2.Whatsapp.marathi": "Marathi",
1999
+ "creatives.containersV2.Whatsapp.marketing": "Marketing",
2000
+ "creatives.containersV2.Whatsapp.marketingTooltip": "Send promotional offers, product announcements, and more to increase awareness and engagement.",
2001
+ "creatives.containersV2.Whatsapp.mediaDocument": "Document",
2002
+ "creatives.containersV2.Whatsapp.mediaImage": "Image",
2003
+ "creatives.containersV2.Whatsapp.mediaLabel": "Media",
2004
+ "creatives.containersV2.Whatsapp.mediaText": "Text",
2005
+ "creatives.containersV2.Whatsapp.mediaVideo": "Video",
2006
+ "creatives.containersV2.Whatsapp.messageLanguageLabel": "Message language",
2007
+ "creatives.containersV2.Whatsapp.modifiedUnsubscribeText": "Click {value} to unsubscribe",
2008
+ "creatives.containersV2.Whatsapp.noContentBetweenVars": "Add atleast 1 character between 2 variables",
2009
+ "creatives.containersV2.Whatsapp.norwegian": "Norwegian",
2010
+ "creatives.containersV2.Whatsapp.optional": "(Optional)",
2011
+ "creatives.containersV2.Whatsapp.otp": "Otp",
2012
+ "creatives.containersV2.Whatsapp.page": "page",
2013
+ "creatives.containersV2.Whatsapp.pages": "pages",
2014
+ "creatives.containersV2.Whatsapp.paymentUpdate": "Payment update",
2015
+ "creatives.containersV2.Whatsapp.paymentUpdateTooltip": "Send a message to customers about their payment.",
2016
+ "creatives.containersV2.Whatsapp.pdf": "PDF",
2017
+ "creatives.containersV2.Whatsapp.persian": "Persian",
2018
+ "creatives.containersV2.Whatsapp.polish": "Polish",
2019
+ "creatives.containersV2.Whatsapp.portugueseBR": "Portuguese (BR)",
2020
+ "creatives.containersV2.Whatsapp.portuguesePOR": "Portuguese (POR)",
2021
+ "creatives.containersV2.Whatsapp.punjabi": "Punjabi",
2022
+ "creatives.containersV2.Whatsapp.quickReplyDesc": "Create up to 3 buttons that let customers respond to your messages or take action.",
2023
+ "creatives.containersV2.Whatsapp.rejected": "Rejected",
2024
+ "creatives.containersV2.Whatsapp.rejectedStatusMsg": "This template has been rejected",
2025
+ "creatives.containersV2.Whatsapp.removeMultinewlineChars": "More than two consecutive line breaks are not allowed.",
2026
+ "creatives.containersV2.Whatsapp.repetativeVars": "Variables cannot be repeated",
2027
+ "creatives.containersV2.Whatsapp.reservationUpdate": "Reservation update",
2028
+ "creatives.containersV2.Whatsapp.reservationUpdateTooltip": "Send confirmations, reminders, or other updates to customers about their reservations.",
2029
+ "creatives.containersV2.Whatsapp.romanian": "Romanian",
2030
+ "creatives.containersV2.Whatsapp.russian": "Russian",
2031
+ "creatives.containersV2.Whatsapp.select": "Select",
2032
+ "creatives.containersV2.Whatsapp.sendForApprovalButtonLabel": "Send for approval",
2033
+ "creatives.containersV2.Whatsapp.sequenceVars": "Variable name should start from {one} and it should be in sequential order",
2034
+ "creatives.containersV2.Whatsapp.serbian": "Serbian",
2035
+ "creatives.containersV2.Whatsapp.slovak": "Slovak",
2036
+ "creatives.containersV2.Whatsapp.slovenian": "Slovenian",
2037
+ "creatives.containersV2.Whatsapp.spanish": "Spanish",
2038
+ "creatives.containersV2.Whatsapp.spanishARG": "Spanish (ARG)",
2039
+ "creatives.containersV2.Whatsapp.spanishMEX": "Spanish (MEX)",
2040
+ "creatives.containersV2.Whatsapp.spanishSPA": "Spanish (SPA)",
2041
+ "creatives.containersV2.Whatsapp.swahili": "Swahili",
2042
+ "creatives.containersV2.Whatsapp.swedish": "Swedish",
2043
+ "creatives.containersV2.Whatsapp.tagContentMismatchError": "TAG CONTENT MISMATCH: The language and/or template category selected don’t match the template content.",
2044
+ "creatives.containersV2.Whatsapp.tamil": "Tamil",
2045
+ "creatives.containersV2.Whatsapp.telugu": "Telugu",
2046
+ "creatives.containersV2.Whatsapp.templateCategoryLabel": "Template category",
2047
+ "creatives.containersV2.Whatsapp.templateLanguageEnglish": "English",
2048
+ "creatives.containersV2.Whatsapp.templateMessageLabel": "Message",
2049
+ "creatives.containersV2.Whatsapp.templateMessageLength": "Characters count: {currentLength}/{maxLength}",
2050
+ "creatives.containersV2.Whatsapp.templateMessageLengthError": "Template message length cannot exceed 1024",
2051
+ "creatives.containersV2.Whatsapp.templateMessagePlaceholder": "Enter message with variable",
2052
+ "creatives.containersV2.Whatsapp.templateMessageTooltip": "You can write variables by adding two curly brackets before the variable name and two curly brackets after the variable name.{br}{br}Tip :{br}It looks something like this: Hi {var},{br}so 1 is the variable name here.",
2053
+ "creatives.containersV2.Whatsapp.templateMessageUnsubscribeText": "Click {unsubscribe} to unsubscribe",
2054
+ "creatives.containersV2.Whatsapp.templateNameDesc": "Must be a unique name and can only contain lowercase alphanumeric characters and underscores.",
2055
+ "creatives.containersV2.Whatsapp.templateNameRegexErrorMessage": "Template name can only contain lowercase alphanumeric characters and underscores",
2056
+ "creatives.containersV2.Whatsapp.templateNameTooltip": "Tip : Use a name that helps WhatsApp's reviewer understand the purpose of your message, for example \\"order_delivery\\" rather than \\"template_1\\"",
2057
+ "creatives.containersV2.Whatsapp.thai": "Thai",
1861
2058
  "creatives.containersV2.Whatsapp.transactional": "Transactional",
1862
- "creatives.containersV2.Whatsapp.transactionalTooltip": "Send account updates, order updates, alerts, and more to share important information.",
2059
+ "creatives.containersV2.Whatsapp.turkish": "Turkish",
2060
+ "creatives.containersV2.Whatsapp.ukrainian": "Ukrainian",
2061
+ "creatives.containersV2.Whatsapp.unknownVars": "Variable name should be numeric value from {one} to {nineteen}",
2062
+ "creatives.containersV2.Whatsapp.unsubscribeTextTooltipCreateFlow": "To enable the checkbox, reduce the message character count to 988",
2063
+ "creatives.containersV2.Whatsapp.unsubscribeTextTooltipEditFlow": "This is non-editable",
2064
+ "creatives.containersV2.Whatsapp.urdu": "Urdu",
2065
+ "creatives.containersV2.Whatsapp.useTwoBracketsOnly": "Use two brackets on each side to declare a variable",
2066
+ "creatives.containersV2.Whatsapp.utility": "Utility",
2067
+ "creatives.containersV2.Whatsapp.utilityTooltip": "Send account updates, order updates, alerts, and more to share important information.",
2068
+ "creatives.containersV2.Whatsapp.uzbek": "Uzbek",
2069
+ "creatives.containersV2.Whatsapp.videoErrorMessage": "Please upload the video with allowed file extension, size, dimension and aspect ratio",
2070
+ "creatives.containersV2.Whatsapp.vietnamese": "Vietnamese",
2071
+ "creatives.containersV2.Whatsapp.whatsappCreateNotification": "{name} has been sent for approval",
2072
+ "creatives.containersV2.Whatsapp.zulu": "Zulu",
1863
2073
  "creatives.containersV2.addLabels": "Add labels",
1864
2074
  "creatives.containersV2.appName": "App Name",
1865
2075
  "creatives.containersV2.applyNow": "Apply now",
@@ -807,6 +807,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
807
807
  };
808
808
 
809
809
  injectMultiColSection = (section) => {
810
+ const { formatMessage } = this.props.intl;
810
811
  _.forEach(section.inputFields, (inputField) => {
811
812
  _.forEach(inputField.cols, (col) => {
812
813
  const temp = col;
@@ -824,6 +825,23 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
824
825
  if (temp.id === "mobile-push-preview") {
825
826
  temp.content.appName = this.props.Templates.selectedWeChatAccount.name;
826
827
  }
828
+
829
+ if (messages?.[temp?.value]) {
830
+ temp.value = formatMessage(messages[temp.value]);
831
+ }
832
+ if (messages?.[temp?.label]) {
833
+ temp.label = formatMessage(messages[temp.label]);
834
+ }
835
+ if (messages?.[temp?.errorMessage]) {
836
+ temp.errorMessage = formatMessage(messages[temp.errorMessage]);
837
+ }
838
+ if (messages?.[temp?.placeholder]) {
839
+ temp.placeholder = formatMessage(messages[temp.placeholder]);
840
+ }
841
+ if (messages?.[temp?.hoverText]) {
842
+ temp.hoverText = formatMessage(messages[temp.hoverText]);
843
+ }
844
+
827
845
  temp.injectedEvents = {};
828
846
 
829
847
  _.forEach(col.supportedEvents, (event) => {
@@ -56,7 +56,7 @@ export default defineMessages({
56
56
  },
57
57
  "Copy Title and Content From IOS": {
58
58
  id: 'creatives.containers.MobilePush.Create.copyFromIos',
59
- defaultMessage: 'Copy title and content from IOS',
59
+ defaultMessage: 'Copy Title and Content From IOS',
60
60
  },
61
61
  "Title*": {
62
62
  id: 'creatives.containers.MobilePush.Create.titleLabel',
@@ -104,7 +104,7 @@ export default defineMessages({
104
104
  },
105
105
  "Copy Title and Content From Android": {
106
106
  id: 'creatives.containers.MobilePush.Create.copyFromAndroid',
107
- defaultMessage: 'Copy title and content from android',
107
+ defaultMessage: 'Copy Title and Content From Android',
108
108
  },
109
109
  "Template title has unsupported/missing tags.": {
110
110
  id: 'creatives.containers.MobilePush.Create.titleHasUnsupportedTag',
@@ -1734,6 +1734,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
1734
1734
  return sections;
1735
1735
  };
1736
1736
  injectMultiColSection = (section) => {
1737
+ const { formatMessage } = this.props.intl;
1737
1738
  _.forEach(section.inputFields, (inputField) => {
1738
1739
  _.forEach(inputField.cols, (col) => {
1739
1740
  const temp = col;
@@ -1742,6 +1743,23 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
1742
1743
  temp.value.sections = this.injectSections(temp.value.sections);
1743
1744
  return true;
1744
1745
  }
1746
+
1747
+ if (messages?.[temp?.value]) {
1748
+ temp.value = formatMessage(messages[temp.value]);
1749
+ }
1750
+ if (messages?.[temp?.label]) {
1751
+ temp.label = formatMessage(messages[temp.label]);
1752
+ }
1753
+ if (messages?.[temp?.errorMessage]) {
1754
+ temp.errorMessage = formatMessage(messages[temp.errorMessage]);
1755
+ }
1756
+ if (messages?.[temp?.placeholder]) {
1757
+ temp.placeholder = formatMessage(messages[temp.placeholder]);
1758
+ }
1759
+ if (messages?.[temp?.hoverText]) {
1760
+ temp.hoverText = formatMessage(messages[temp.hoverText]);
1761
+ }
1762
+
1745
1763
  temp.injectedEvents = {};
1746
1764
  temp.className = temp.className ? temp.className : '';
1747
1765
  if (this.props.location.query.type === 'embedded' && ((temp.type === "tag-list" || temp.type === "div" || temp.type === "icon") && this.props.location.query.module !== "dvs") && (temp.supportedEvents)) {
@@ -56,7 +56,7 @@ export default defineMessages({
56
56
  },
57
57
  "Copy Title and Content From IOS": {
58
58
  id: 'creatives.containers.MobilePush.Edit.copyFromIos',
59
- defaultMessage: 'Copy title and content from IOS',
59
+ defaultMessage: 'Copy Title and Content From IOS',
60
60
  },
61
61
  "Title*": {
62
62
  id: 'creatives.containers.MobilePush.Edit.titleLabel',
@@ -104,7 +104,7 @@ export default defineMessages({
104
104
  },
105
105
  "Copy Title and Content From Android": {
106
106
  id: 'creatives.containers.MobilePush.Edit.copyFromAndroid',
107
- defaultMessage: 'Copy title and content from android',
107
+ defaultMessage: 'Copy Title and Content From Android',
108
108
  },
109
109
  "Template title has unsupported/missing tags.": {
110
110
  id: 'creatives.containers.MobilePush.Edit.titleHasUnsupportedTag',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "7.16.13",
4
+ "version": "7.16.19",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",