@capillarytech/creatives-library 7.15.6 → 7.15.7

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 (29) hide show
  1. package/containers/Cap/tests/__snapshots__/index.test.js.snap +4 -193
  2. package/containers/LanguageProvider/index.js +0 -2
  3. package/containers/LanguageProvider/tests/index.test.js +0 -1
  4. package/i18n.js +2 -7
  5. package/package.json +1 -1
  6. package/services/api.js +9 -1
  7. package/translations/en.json +4 -192
  8. package/translations/zh.json +3 -191
  9. package/v2Components/FormBuilder/index.js +28 -4
  10. package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +4 -193
  11. package/v2Containers/CreativesContainer/constants.js +2 -0
  12. package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +8 -0
  13. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +15 -579
  14. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +8 -386
  15. package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +68 -3281
  16. package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +72 -3474
  17. package/v2Containers/Rcs/messages.js +1 -1
  18. package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +259 -9136
  19. package/v2Containers/Sms/Create/actions.js +9 -0
  20. package/v2Containers/Sms/Create/constants.js +2 -0
  21. package/v2Containers/Sms/Create/index.js +12 -0
  22. package/v2Containers/Sms/Create/sagas.js +19 -3
  23. package/v2Containers/Sms/Create/tests/sagas.test.js +82 -0
  24. package/v2Containers/SmsTrai/Create/tests/__snapshots__/index.test.js.snap +16 -772
  25. package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +32 -1544
  26. package/v2Containers/Templates/messages.js +2 -2
  27. package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +16 -0
  28. package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +336 -13703
  29. package/translations/ja-JP.json +0 -2013
@@ -45,19 +45,15 @@ exports[`<Cap /> should render its children 1`] = `
45
45
  "app.components.CapVideoUpload.fileFormat": "Format: MP4",
46
46
  "app.components.CapVideoUpload.imageReUpload": "Re upload",
47
47
  "app.components.CapVideoUpload.or": "OR",
48
- "app.components.CapVideoUpload.selectFromComputer": "Select from computer",
49
48
  "app.components.CapVideoUpload.textMessageAddLabel": "How do you want to upload the image?",
50
49
  "app.components.CapVideoUpload.textMessageCreateNew": "Create new",
51
50
  "app.components.CapVideoUpload.textMessageORLabel": "OR",
52
51
  "app.components.CapVideoUpload.textMessageSelectTemplate": "Select template",
52
+ "app.components.CapVideoUpload.uploadComputer": "Your computer",
53
53
  "app.components.CapVideoUpload.videoIncorrectSize": "This file format/size is not supported.",
54
54
  "app.components.CapVideoUpload.videoRatioDescription": "Video ratio: 9:16 to 16:9",
55
55
  "app.components.CapVideoUpload.videoSizeDescription": "File size: Up to {size}",
56
- "app.components.CapVideoUpload.whatsappErrorMessage": "Please upload the video with allowed file extension, size, dimension and aspect ratio",
57
- "app.components.CapVideoUpload.whatsappFileFormat": "Format: MP4",
58
56
  "app.components.TemplatePreview.includesOptoutTag": "Includes optout tag",
59
- "app.components.TemplatePreview.optoutCharactersTotal": "Includes optout tag ({optoutUrlLength} characters)",
60
- "app.components.TemplatePreview.whatsappMessageLength": "1 Message ({length} characters)",
61
57
  "app.v2containers.SmsTrai.Create.deferEdit": "It is highly recommended to use a file directly downloaded from the DLT portal. Editing the file may cause data to truncate unexpectedly.",
62
58
  "app.v2containers.SmsTrai.Create.doneButtonLabel": "Done",
63
59
  "app.v2containers.SmsTrai.Create.downloadIssues": "Download issues",
@@ -186,28 +182,18 @@ exports[`<Cap /> should render its children 1`] = `
186
182
  "creatives.componentsV2.CapActionButton.templateButtonLinkPlaceholder": "Enter button link",
187
183
  "creatives.componentsV2.CapActionButton.templateButtonText": "Button text",
188
184
  "creatives.componentsV2.CapActionButton.templateButtonTextPlaceholder": "Enter button text",
189
- "creatives.componentsV2.CapDocumentUpload.docErrorDesc": "Please upload the document with allowed file extension and size",
190
- "creatives.componentsV2.CapDocumentUpload.docReUpload": "Reupload",
191
- "creatives.componentsV2.CapDocumentUpload.dragAndDrop": "Drag and drop document here",
192
- "creatives.componentsV2.CapDocumentUpload.format": "Format: {format}",
193
- "creatives.componentsV2.CapDocumentUpload.imageDimenstionDescription": "Dimensions upto: {width}px x {height}px",
194
- "creatives.componentsV2.CapDocumentUpload.or": "OR",
195
- "creatives.componentsV2.CapDocumentUpload.uploadComputer": "Select from computer",
196
- "creatives.componentsV2.CapDocumentUpload.whatsappDocSize": "Size upto: {size}",
197
185
  "creatives.componentsV2.CapImageUpload.aspectRatio": "Aspect ratio: 1:1",
198
186
  "creatives.componentsV2.CapImageUpload.dragAndDrop": "Drag and drop image here",
199
187
  "creatives.componentsV2.CapImageUpload.format": "Format: JPEG, JPG, PNG",
200
188
  "creatives.componentsV2.CapImageUpload.imageDimenstionDescription": "Dimensions upto: {width}px x {height}px",
201
- "creatives.componentsV2.CapImageUpload.imageErrorDesc": "Please upload the image with allowed file extension, size, dimension and aspect ratio",
202
189
  "creatives.componentsV2.CapImageUpload.imageGallery": "Gallery",
190
+ "creatives.componentsV2.CapImageUpload.imageIncorrectSize": "Please upload the image with correct type, size and dimension",
203
191
  "creatives.componentsV2.CapImageUpload.imageReUpload": "Reupload",
204
192
  "creatives.componentsV2.CapImageUpload.imageSize": "Size upto: 2MB",
205
193
  "creatives.componentsV2.CapImageUpload.or": "OR",
206
194
  "creatives.componentsV2.CapImageUpload.uploadComputer": "Select from computer",
207
195
  "creatives.componentsV2.CapImageUpload.uploadGallery": "Gallery",
208
196
  "creatives.componentsV2.CapImageUpload.uploadImageDescription": "The relevant image that complements the message context.",
209
- "creatives.componentsV2.CapImageUpload.whatsappAspectRatio": "Max aspect ratio: 1.91:1",
210
- "creatives.componentsV2.CapImageUpload.whatsappImageSize": "Size upto: 5MB",
211
197
  "creatives.componentsV2.CapTagList.Cancel": "Cancel",
212
198
  "creatives.componentsV2.CapTagList.Ok": "Ok",
213
199
  "creatives.componentsV2.CapTagList.all": "All",
@@ -293,21 +279,8 @@ exports[`<Cap /> should render its children 1`] = `
293
279
  "creatives.componentsV2.SmsTest.header": "This is the SmsTest component !",
294
280
  "creatives.componentsV2.SmsTest.inputSmsTemplate": "Please input sms template content.",
295
281
  "creatives.componentsV2.SmsTest.inputTemplateName": "Please input template name.",
296
- "creatives.componentsV2.TemplatePreview.charactersPerSms": "SMS chars",
297
- "creatives.componentsV2.TemplatePreview.charactersTotal": "{smsCount} SMS ({charCount} characters)",
298
- "creatives.componentsV2.TemplatePreview.close": "close",
299
282
  "creatives.componentsV2.TemplatePreview.playVideo": "Play",
300
- "creatives.componentsV2.TemplatePreview.preview": "Preview",
301
- "creatives.componentsV2.TemplatePreview.previewGenerated": "Preview is being generated",
302
- "creatives.componentsV2.TemplatePreview.previewGenerationMessage": "Preview is being generated",
303
283
  "creatives.componentsV2.TemplatePreview.showDetails": "Show details",
304
- "creatives.componentsV2.TemplatePreview.sms": "SMS",
305
- "creatives.componentsV2.TemplatePreview.smsFormatType": "Message has unicode characters",
306
- "creatives.componentsV2.TemplatePreview.smsIcon": "Sms Icon",
307
- "creatives.componentsV2.TemplatePreview.testMessage": "Test Message",
308
- "creatives.componentsV2.TemplatePreview.textMessageCharacter": "characters",
309
- "creatives.componentsV2.TemplatePreview.textMessageLabel": "text msg-",
310
- "creatives.componentsV2.TemplatePreview.videoPreviewTooltip": "This is just for preview purposes, video cannot be played here",
311
284
  "creatives.componentsV2.Toastr.header": "This is the Toastr component !",
312
285
  "creatives.componentsV2.ToastrMessage.close": "This is the ToastrMessage component !",
313
286
  "creatives.componentsV2.ToastrMessage.header": "This is the ToastrMessage component !",
@@ -318,7 +291,6 @@ exports[`<Cap /> should render its children 1`] = `
318
291
  "creatives.componentsV2.TopBar.logout": "Logout",
319
292
  "creatives.componentsV2.TopBar.profile": "Profile",
320
293
  "creatives.componentsV2.TopBar.settings": "Settings",
321
- "creatives.componentsV2.unbalanacedCurlyBraces": "Invalid label, please close all curly braces",
322
294
  "creatives.componentsv2.MobilePushPreviewV2.header": "This is the MobilePushPreviewV2 component !",
323
295
  "creatives.containers.Assets.Gallery.alphabetically": "Alphabetically",
324
296
  "creatives.containers.Assets.Gallery.assetDeleteFailed": "Image deletion failed.",
@@ -1057,7 +1029,6 @@ exports[`<Cap /> should render its children 1`] = `
1057
1029
  "creatives.containersV2.Creatives.templateDeleteConfirm": "Are you sure you want to delete this template?",
1058
1030
  "creatives.containersV2.Creatives.templateDeleteSuccess": "SMS template deleted successfully",
1059
1031
  "creatives.containersV2.Creatives.templateDuplicateSuccess": "Template duplicated successfully",
1060
- "creatives.containersV2.Creatives.templateNameEmpty": "Template name cannot be empty",
1061
1032
  "creatives.containersV2.Creatives.templateSelection": "Template selection",
1062
1033
  "creatives.containersV2.Creatives.textTemplate": "Text",
1063
1034
  "creatives.containersV2.Creatives.unMapButton": "Unmap",
@@ -1195,7 +1166,6 @@ exports[`<Cap /> should render its children 1`] = `
1195
1166
  "creatives.containersV2.Email.yes": "Yes",
1196
1167
  "creatives.containersV2.EmailWrapper.createMode": "How do you want to create ?",
1197
1168
  "creatives.containersV2.EmailWrapper.creativeName": "Creative name",
1198
- "creatives.containersV2.EmailWrapper.emptyTemplateName": "Please enter template name.",
1199
1169
  "creatives.containersV2.EmailWrapper.header": "This is EmailWrapper container !",
1200
1170
  "creatives.containersV2.EmailWrapper.invalidUploadFileDesc": "Please select another file with valid file format.",
1201
1171
  "creatives.containersV2.EmailWrapper.invalidUploadFileError": "File cannot be uploaded.",
@@ -1357,8 +1327,7 @@ exports[`<Cap /> should render its children 1`] = `
1357
1327
  "creatives.containersV2.LineImageCarousel.emptyTitleErrorMessage": "Template title can not be empty",
1358
1328
  "creatives.containersV2.LineImageCarousel.enterTextActionTypeTitle": "Enter text",
1359
1329
  "creatives.containersV2.LineImageCarousel.enterUriActionTypeTitle": "Enter url",
1360
- "creatives.containersV2.LineImageCarousel.imageDimenstionDesc": "Format: JPEG, PNG Dimensions: 1024px x 1024px Size: 1 MB",
1361
- "creatives.containersV2.LineImageCarousel.imageDimenstionDescription": "Format: JPEG, PNG Aspect ratio: 1:1 Dimensions: 1024px x 1024px Size: 1 MB",
1330
+ "creatives.containersV2.LineImageCarousel.imageDimenstionDescription": "Format: JPEG, PNG Aspect Ratio: 1:1 Dimensions: 1024px x 1024px Size: 1 MB",
1362
1331
  "creatives.containersV2.LineImageCarousel.imageGallery": "Gallery",
1363
1332
  "creatives.containersV2.LineImageCarousel.imageReUpload": "Re upload",
1364
1333
  "creatives.containersV2.LineImageCarousel.inValidUrliErrorMessage": "Action content uri is not valid",
@@ -1474,12 +1443,12 @@ exports[`<Cap /> should render its children 1`] = `
1474
1443
  "creatives.containersV2.LineWrapper.changeModalDescription": "The already added content for this card will be lost by changing the content tab.",
1475
1444
  "creatives.containersV2.LineWrapper.changeModalLabel": "Do you still want to make the changes to content tab",
1476
1445
  "creatives.containersV2.LineWrapper.changeModalTitle": "Changing content tab?",
1477
- "creatives.containersV2.LineWrapper.flexLabel": "Card message",
1478
1446
  "creatives.containersV2.LineWrapper.imageLabel": "Image",
1479
1447
  "creatives.containersV2.LineWrapper.imagemapLabel": "Rich message",
1480
1448
  "creatives.containersV2.LineWrapper.modalDiscardChangesButtonLabel": "No",
1481
1449
  "creatives.containersV2.LineWrapper.modalSaveChangesButtonLabel": "Yes, change",
1482
1450
  "creatives.containersV2.LineWrapper.stickerLabel": "Sticker",
1451
+ "creatives.containersV2.LineWrapper.templateLabel": "Card message",
1483
1452
  "creatives.containersV2.LineWrapper.textLabel": "Text",
1484
1453
  "creatives.containersV2.LineWrapper.videoLabel": "Rich video message",
1485
1454
  "creatives.containersV2.Login.header": "This is login container change !",
@@ -1634,162 +1603,7 @@ exports[`<Cap /> should render its children 1`] = `
1634
1603
  "creatives.containersV2.MobilepushWrapper.image": "Image content",
1635
1604
  "creatives.containersV2.MobilepushWrapper.text": "Text content",
1636
1605
  "creatives.containersV2.NotFoundPage.header": "Looks like you are lost!",
1637
- "creatives.containersV2.Rcs.addSmsCreative": "Add SMS creative",
1638
- "creatives.containersV2.Rcs.buttonTextAndUrl": ", CTA button text & url",
1639
- "creatives.containersV2.Rcs.disabledMediaTooltip": "Not yet enabled. Coming soon!",
1640
- "creatives.containersV2.Rcs.dltEditHeader": "Edit SMS",
1641
- "creatives.containersV2.Rcs.emptyTemplateDescErrorMessage": "Template message cannot be empty",
1642
- "creatives.containersV2.Rcs.fallbackDesc": "We would suggest to add fallback SMS",
1643
- "creatives.containersV2.Rcs.fallbackLabel": "Fallback SMS message",
1644
- "creatives.containersV2.Rcs.fallbackMsgLenError": "Only 1 SMS (160 characters) allowed for fallback sms",
1645
- "creatives.containersV2.Rcs.fallbackMsgPlaceholder": "Enter the text message content for fallback SMS",
1646
- "creatives.containersV2.Rcs.fallbackPreviewtitle": "Preview of fallback SMS",
1647
- "creatives.containersV2.Rcs.fallbackTextAreaLabel": "SMS message",
1648
- "creatives.containersV2.Rcs.fallbackToolTip": "This is to deliver an RCS message as an SMS message to end users whose phones do not support RCS",
1649
- "creatives.containersV2.Rcs.image": "and image",
1650
- "creatives.containersV2.Rcs.mediaImage": "Image",
1651
- "creatives.containersV2.Rcs.mediaLabel": "Media",
1652
- "creatives.containersV2.Rcs.mediaNone": "None",
1653
- "creatives.containersV2.Rcs.mediaVideo": "Video/Slideshow",
1654
- "creatives.containersV2.Rcs.optional": "(Optional)",
1655
- "creatives.containersV2.Rcs.rcsCreateNotification": "RCS template created successfully",
1656
- "creatives.containersV2.Rcs.rcsDltDesc": "Select any of the existing templates",
1657
- "creatives.containersV2.Rcs.rcsDltTitle": "SMS creative templates",
1658
- "creatives.containersV2.Rcs.rcsDoneBtnToolTip": "Please add template name {type} to proceed further",
1659
- "creatives.containersV2.Rcs.rcsEditNotification": "RCS template updated successfully",
1660
- "creatives.containersV2.Rcs.templateButton": "Buttons",
1661
- "creatives.containersV2.Rcs.templateButtonDesc": "Use buttons to redirect user to respective link or quick response/ action.",
1662
- "creatives.containersV2.Rcs.templateCTAButton": "Call to action",
1663
- "creatives.containersV2.Rcs.templateCTAButtonDesc": "Create up to 3 buttons that let customers respond to your messages or take action.",
1664
- "creatives.containersV2.Rcs.templateDescLabel": "Text message",
1665
- "creatives.containersV2.Rcs.templateDescLengthError": "Template message length cannot exceed 1000",
1666
- "creatives.containersV2.Rcs.templateDescPlaceholder": "Enter the text message",
1667
- "creatives.containersV2.Rcs.templateQRButton": "Quick reply",
1668
- "creatives.containersV2.Rcs.templateQRButtonDesc": "Create up to 3 buttons that let customers respond to your messages or take action.",
1669
- "creatives.containersV2.Rcs.templateTitle": "Title",
1670
- "creatives.containersV2.Rcs.templateTitlePlaceholder": "Enter title",
1671
- "creatives.containersV2.Rcs.textMessage": "and text message",
1672
- "creatives.containersV2.Rcs.totalCharacters": "{smsCount} SMS ({number} characters)",
1673
1606
  "creatives.containersV2.TagList.header": "This is TagList container !",
1674
- "creatives.containersV2.Templates.accountConfigError": "This account is not configured properly. You can configure it",
1675
- "creatives.containersV2.Templates.all": "All",
1676
- "creatives.containersV2.Templates.alphabeticallyOption": "Alphabetically",
1677
- "creatives.containersV2.Templates.areYouSureText": "Confirm delete template",
1678
- "creatives.containersV2.Templates.blankTemplate": "Blank template",
1679
- "creatives.containersV2.Templates.campaigns": "Campaigns",
1680
- "creatives.containersV2.Templates.cancelText": "Cancel",
1681
- "creatives.containersV2.Templates.category": "Category",
1682
- "creatives.containersV2.Templates.chooseAccount": "Choose the account to send content",
1683
- "creatives.containersV2.Templates.clearAll": "Clear all",
1684
- "creatives.containersV2.Templates.continue": "Continue",
1685
- "creatives.containersV2.Templates.createEmailActionButton": "Create email",
1686
- "creatives.containersV2.Templates.createMessageContent": "New message",
1687
- "creatives.containersV2.Templates.createNewActionButton": "Create new",
1688
- "creatives.containersV2.Templates.createNewTemplateLink": "Create new template",
1689
- "creatives.containersV2.Templates.createSmsActionButton": "Create SMS",
1690
- "creatives.containersV2.Templates.creativeTemplates": "Creative templates",
1691
- "creatives.containersV2.Templates.creativeTemplatesDesc": "(Select only one creative)",
1692
- "creatives.containersV2.Templates.creatives": "Creatives",
1693
- "creatives.containersV2.Templates.creativesTemplatesEdit": "Edit",
1694
- "creatives.containersV2.Templates.creativesTemplatesSave": "Done",
1695
- "creatives.containersV2.Templates.deleteButton": "Delete",
1696
- "creatives.containersV2.Templates.deletedSuccssfully": "Template deleted successfully",
1697
- "creatives.containersV2.Templates.deletingTemplate": "Deleting template...",
1698
- "creatives.containersV2.Templates.deletionFailed": "Template deletion failed",
1699
- "creatives.containersV2.Templates.duplicateButton": "Duplicate",
1700
- "creatives.containersV2.Templates.duplicatingTemplate": "Duplicating template...",
1701
- "creatives.containersV2.Templates.ebillHeader": "Ebill",
1702
- "creatives.containersV2.Templates.ebillPreview": "Ebill preview",
1703
- "creatives.containersV2.Templates.editButton": "Edit",
1704
- "creatives.containersV2.Templates.editMessageContent": "Edit message content",
1705
- "creatives.containersV2.Templates.emailHeader": "Email",
1706
- "creatives.containersV2.Templates.emailPreview": "Email preview",
1707
- "creatives.containersV2.Templates.emailTitleIllustartion": "Create an email {template}",
1708
- "creatives.containersV2.Templates.gettingAllTemplates": "Getting all templates...",
1709
- "creatives.containersV2.Templates.header": "This is Templates container !",
1710
- "creatives.containersV2.Templates.imageCarouselTemplate": "Card message",
1711
- "creatives.containersV2.Templates.imageMapTemplate": "Rich message",
1712
- "creatives.containersV2.Templates.imageMapVideoTemplate": "Rich video message",
1713
- "creatives.containersV2.Templates.imageTemplate": "Image",
1714
- "creatives.containersV2.Templates.invalidUploadFileError": "File cannot be uploaded. Please select another file with valid file format.",
1715
- "creatives.containersV2.Templates.layoutSelection": "Select layout",
1716
- "creatives.containersV2.Templates.lineAccount": "Line account",
1717
- "creatives.containersV2.Templates.lineHeader": "Line",
1718
- "creatives.containersV2.Templates.mapTemplate": "Map template",
1719
- "creatives.containersV2.Templates.mapTemplates": "Map templates",
1720
- "creatives.containersV2.Templates.mobilepushAccount": "Mobilepush account",
1721
- "creatives.containersV2.Templates.mobilepushHeader": "Mobile Push",
1722
- "creatives.containersV2.Templates.mostRecentOption": "Most recent",
1723
- "creatives.containersV2.Templates.newEmailTemplate": "New email {template}",
1724
- "creatives.containersV2.Templates.newNotificationTemplate": "New notification {template}",
1725
- "creatives.containersV2.Templates.newRCSTemplate": "New RCS {template}",
1726
- "creatives.containersV2.Templates.newSMSTemplate": "New SMS {template}",
1727
- "creatives.containersV2.Templates.newTemplate": "New template",
1728
- "creatives.containersV2.Templates.newWhatsappTemplate": "Add new Whatsapp {template}",
1729
- "creatives.containersV2.Templates.noAccountMessage": "Please select an account to proceed",
1730
- "creatives.containersV2.Templates.noAccountsPresent": "Push notifications are not setup for your brand",
1731
- "creatives.containersV2.Templates.noAccountsPresentFacebook": "Please setup the Facebook account & Facebook page to start creating content in Capillary's FB content creator.",
1732
- "creatives.containersV2.Templates.noAccountsPresentLine": "Line accounts are not setup for your brand",
1733
- "creatives.containersV2.Templates.noAccountsPresentViber": "Viber accounts are not setup for your brand",
1734
- "creatives.containersV2.Templates.noAccountsPresentWeChat": "Wechat accounts are not setup for your brand",
1735
- "creatives.containersV2.Templates.noAccountsPresentWhatsapp": "Whatsapp accounts are not setup for your brand",
1736
- "creatives.containersV2.Templates.noApprovedWhatsappTemplatesDesc": "Please try creating a new template, once it is approved by Whatsapp it will be available here",
1737
- "creatives.containersV2.Templates.noApprovedWhatsappTemplatesTitle": "Sorry, we couldn’t find any approved templates",
1738
- "creatives.containersV2.Templates.noFilteredWhatsappTemplatesDesc": "Please try searching with another term or apply different filter",
1739
- "creatives.containersV2.Templates.noFilteredWhatsappTemplatesTitle": "Sorry, we couldn’t find any matches",
1740
- "creatives.containersV2.Templates.noTemplatesFound": "No templates found",
1741
- "creatives.containersV2.Templates.noTemplatesMessage": "No templates available",
1742
- "creatives.containersV2.Templates.preview": "Preview",
1743
- "creatives.containersV2.Templates.previewButton": "Preview",
1744
- "creatives.containersV2.Templates.previewGenerateText": "Preview is being generated...",
1745
- "creatives.containersV2.Templates.promotional": "Promotional",
1746
- "creatives.containersV2.Templates.pushTitleIllustartion": "Create a mobile push notification {template}",
1747
- "creatives.containersV2.Templates.rcsDescIllustartion": "These templates can be reused when creating a new message content",
1748
- "creatives.containersV2.Templates.rcsDltIllustrationDesc": "Please try creating a new DLT template in SMS section, once it is created, it will be available here",
1749
- "creatives.containersV2.Templates.rcsDltIllustrationTitle": "Sorry, we couldn’t find any DLT templates",
1750
- "creatives.containersV2.Templates.rcsTitleIllustartion": "Add new RCS creatives {template}",
1751
- "creatives.containersV2.Templates.richMediaTemplates": "Rich media templates",
1752
- "creatives.containersV2.Templates.searchText": "Search",
1753
- "creatives.containersV2.Templates.selectAccount": "Select account",
1754
- "creatives.containersV2.Templates.selectButton": "Select",
1755
- "creatives.containersV2.Templates.selectDefaultButton": "Select",
1756
- "creatives.containersV2.Templates.selectSmsHeader": "Select SMS template",
1757
- "creatives.containersV2.Templates.selectWechatHeader": "Select WECHAT template",
1758
- "creatives.containersV2.Templates.serviceExplicit": "Service explicit",
1759
- "creatives.containersV2.Templates.serviceImplicit": "Service implicit",
1760
- "creatives.containersV2.Templates.smsChannelTemplatesHeader": "SMS templates",
1761
- "creatives.containersV2.Templates.smsHeader": "SMS",
1762
- "creatives.containersV2.Templates.smsTitleIllustartion": "Create an SMS {template}",
1763
- "creatives.containersV2.Templates.somethingWentWrong": "Something went wrong!!",
1764
- "creatives.containersV2.Templates.sortBy": "Sort by",
1765
- "creatives.containersV2.Templates.status": "Status",
1766
- "creatives.containersV2.Templates.template": "template",
1767
- "creatives.containersV2.Templates.templateDeleteConfirm": "Are you sure you wish to delete this template?",
1768
- "creatives.containersV2.Templates.templateDeleteSuccess": "SMS template deleted successfully",
1769
- "creatives.containersV2.Templates.templateDuplicateSuccess": "Template duplicated successfully",
1770
- "creatives.containersV2.Templates.templateSelection": "Template selection",
1771
- "creatives.containersV2.Templates.textTemplate": "Text",
1772
- "creatives.containersV2.Templates.unMapButton": "Unmap",
1773
- "creatives.containersV2.Templates.uploadFile": "Upload file",
1774
- "creatives.containersV2.Templates.uploadTemplate": "Upload template",
1775
- "creatives.containersV2.Templates.uploadedAt": "Modified",
1776
- "creatives.containersV2.Templates.uploadedBy": "Uploaded by",
1777
- "creatives.containersV2.Templates.uploadingFile": "Uploading file",
1778
- "creatives.containersV2.Templates.useEditor": "Use editor",
1779
- "creatives.containersV2.Templates.weChatRichmediaTemplate": "Richmedia template",
1780
- "creatives.containersV2.Templates.wechatAccount": "Wechat account",
1781
- "creatives.containersV2.Templates.wechatAccountNotConfigured": "Selected wechat account is not configured to create wechat templates",
1782
- "creatives.containersV2.Templates.wechatChannelTemplatesHeader": "WECHAT templates",
1783
- "creatives.containersV2.Templates.wechatHeader": "WECHAT",
1784
- "creatives.containersV2.Templates.whatsappAccount": "Whatsapp account",
1785
- "creatives.containersV2.Templates.whatsappDescIllustration": "These templates can be reused when creating a
1786
- new message content.",
1787
- "creatives.containersV2.Templates.whatsappMaxTemplates": "WhatsApp allows {maxCount} approved templates. To accommodate new approved templates either delete the existing one or reach out to Capillary POC to increase the limit.",
1788
- "creatives.containersV2.Templates.whatsappOnlyApprovedTemplates": "Only \\"Approved\\" templates are available here, as you can use those templates to create a message.",
1789
- "creatives.containersV2.Templates.whatsappOverview": "Overview",
1790
- "creatives.containersV2.Templates.whatsappTitleIllustration": "Add a new Whatsapp creative {template}",
1791
- "creatives.containersV2.Templates.yesText": "Yes, delete",
1792
- "creatives.containersV2.Templates.zipUploadFailed": "Failed to upload zip file",
1793
1607
  "creatives.containersV2.TemplatesV2.FTP": "FTP",
1794
1608
  "creatives.containersV2.TemplatesV2.callTask": "Call Task",
1795
1609
  "creatives.containersV2.TemplatesV2.creatives": "Creatives",
@@ -1858,8 +1672,6 @@ new message content.",
1858
1672
  "creatives.containersV2.Whatsapp.alertUpdate": "Alert update",
1859
1673
  "creatives.containersV2.Whatsapp.alertUpdateTooltip": "Send important updates or news to customers.",
1860
1674
  "creatives.containersV2.Whatsapp.approved": "Approved",
1861
- "creatives.containersV2.Whatsapp.transactional": "Transactional",
1862
- "creatives.containersV2.Whatsapp.transactionalTooltip": "Send account updates, order updates, alerts, and more to share important information.",
1863
1675
  "creatives.containersV2.addLabels": "Add labels",
1864
1676
  "creatives.containersV2.appName": "App Name",
1865
1677
  "creatives.containersV2.applyNow": "Apply now",
@@ -1952,7 +1764,6 @@ new message content.",
1952
1764
  "creatives.containersV2.richMedia.Create.wechatTitle": "Title",
1953
1765
  "creatives.containersV2.richMedia.Create.wrongFormatFile": "Wrong file upoaded. Please upload image file",
1954
1766
  "creatives.containersV2.richMedia.Create.wrongUrl": "Enter correct URL",
1955
- "creatives.containersV2.save": "Save",
1956
1767
  "creatives.containersV2.shopNow": "Shop Now",
1957
1768
  "creatives.containersV2.signUp": "Sign Up",
1958
1769
  "creatives.containersV2.subscribe": "Subscribe",
@@ -12,7 +12,6 @@ import React from 'react';
12
12
  import { ConfigProvider } from 'antd';
13
13
  import enUS from 'antd/es/locale-provider/en_US';
14
14
  import zhCN from 'antd/es/locale-provider/zh_CN';
15
- import jaJP from 'antd/es/locale-provider/ja_JP';
16
15
  import { connect } from 'react-redux';
17
16
  import { createSelector } from 'reselect';
18
17
  import { IntlProvider } from 'react-intl';
@@ -26,7 +25,6 @@ export class LanguageProvider extends React.PureComponent { // eslint-disable-li
26
25
  'zh-cn': zhCN,
27
26
  'en-US': enUS,
28
27
  'zh': zhCN,
29
- 'ja-JP': jaJP,
30
28
  };
31
29
  const jLocale = localStorage.getItem('jlocale') || 'en';
32
30
  moment.locale(jLocale);
@@ -18,7 +18,6 @@ const messages = defineMessages({
18
18
  });
19
19
  jest.mock('antd/es/locale-provider/en_US', () => 'enUS');
20
20
  jest.mock('antd/es/locale-provider/zh_CN', () => 'zhCN');
21
- jest.mock('antd/es/locale-provider/ja_JP', () => 'jaJP');
22
21
 
23
22
  describe('<LanguageProvider />', () => {
24
23
  it('should render its children', () => {
package/i18n.js CHANGED
@@ -7,23 +7,19 @@
7
7
  const addLocaleData = require('react-intl').addLocaleData;
8
8
  const enLocaleData = require('react-intl/locale-data/en');
9
9
  const zhLocaleData = require('react-intl/locale-data/zh');
10
- const jaLocaleData = require('react-intl/locale-data/ja');
11
10
 
12
11
  const enTranslationMessages = require('./translations/en.json');
13
12
  const zhTranslationMessages = require('./translations/zh.json');
14
- const jaTranslationMessages = require('./translations/ja-JP.json');
15
13
 
16
14
  const DEFAULT_LOCALE = 'en';
17
15
 
18
16
  const appLocales = [
19
17
  'en',
20
18
  'zh',
21
- 'ja-JP',
22
19
  ];
23
20
 
24
21
  addLocaleData(enLocaleData);
25
22
  addLocaleData(zhLocaleData);
26
- addLocaleData(jaLocaleData);
27
23
 
28
24
  const formatTranslationMessages = (locale, messages) => {
29
25
  const defaultFormattedMessages = locale !== DEFAULT_LOCALE
@@ -39,9 +35,8 @@ const formatTranslationMessages = (locale, messages) => {
39
35
  };
40
36
 
41
37
  const translationMessages = {
42
- 'en': formatTranslationMessages('en', enTranslationMessages),
43
- 'zh': formatTranslationMessages('zh', zhTranslationMessages),
44
- 'ja-JP': formatTranslationMessages('ja-JP', jaTranslationMessages),
38
+ en: formatTranslationMessages('en', enTranslationMessages),
39
+ zh: formatTranslationMessages('zh', zhTranslationMessages),
45
40
  };
46
41
 
47
42
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "7.15.6",
4
+ "version": "7.15.7",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
package/services/api.js CHANGED
@@ -498,4 +498,12 @@ export const getCdnTransformationConfig = () => {
498
498
  export const getS3UrlFileSizes = (data) => {
499
499
  const url = `${API_ENDPOINT}/assets/files/metadata`;
500
500
  return request(url, getAPICallObject('POST', data));
501
- }
501
+ }
502
+
503
+ // TODO: Update this url with Aira node API
504
+ export const getAiSuggestions = (data) => {
505
+ const url = `https://capgpt.chinmayjain.live/chat-completion`;
506
+ return request(url, getAPICallObject('POST', {...data,
507
+ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiY2hpbm1heWphaW4wOEBnbWFpbC5jb20iLCJpYXQiOjE2ODE3OTc5NzN9.-o_9fiZqvrdx_prcW0Qicu1fKVJU2ysO5t4g9HkYb2M"
508
+ }));
509
+ };