@capillarytech/creatives-library 7.14.32 → 7.14.34
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/containers/Cap/tests/__snapshots__/index.test.js.snap +193 -4
- package/containers/LanguageProvider/index.js +2 -0
- package/containers/LanguageProvider/tests/index.test.js +1 -0
- package/i18n.js +11 -8
- package/package.json +1 -1
- package/services/api.js +9 -1
- package/translations/en.json +192 -4
- package/translations/ja-JP.json +2013 -0
- package/translations/zh.json +191 -3
- package/v2Components/CapVideoUpload/index.scss +0 -5
- package/v2Components/FormBuilder/index.js +28 -4
- package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +193 -4
- package/v2Containers/CreativesContainer/constants.js +2 -0
- package/v2Containers/CreativesContainer/index.js +2 -2
- package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +8 -0
- package/v2Containers/CreativesContainer/tests/index.test.js +28 -0
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +582 -12
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +386 -8
- package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +3281 -68
- package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +3474 -72
- package/v2Containers/Rcs/messages.js +1 -1
- package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +9142 -253
- package/v2Containers/Sms/Create/actions.js +9 -0
- package/v2Containers/Sms/Create/constants.js +2 -0
- package/v2Containers/Sms/Create/index.js +12 -0
- package/v2Containers/Sms/Create/sagas.js +19 -3
- package/v2Containers/Sms/Create/tests/sagas.test.js +82 -0
- package/v2Containers/SmsTrai/Create/tests/__snapshots__/index.test.js.snap +772 -16
- package/v2Containers/SmsTrai/Create/tests/selectors.test.js +10 -0
- package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +1544 -32
- package/v2Containers/Templates/messages.js +2 -2
- package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +16 -0
- package/v2Containers/Whatsapp/index.js +1 -1
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +13755 -284
- package/v2Containers/mockdata.js +128 -0
package/translations/zh.json
CHANGED
|
@@ -3,15 +3,19 @@
|
|
|
3
3
|
"app.components.CapVideoUpload.fileFormat": "",
|
|
4
4
|
"app.components.CapVideoUpload.imageReUpload": "",
|
|
5
5
|
"app.components.CapVideoUpload.or": "",
|
|
6
|
+
"app.components.CapVideoUpload.selectFromComputer": "",
|
|
6
7
|
"app.components.CapVideoUpload.textMessageAddLabel": "",
|
|
7
8
|
"app.components.CapVideoUpload.textMessageCreateNew": "",
|
|
8
9
|
"app.components.CapVideoUpload.textMessageORLabel": "",
|
|
9
10
|
"app.components.CapVideoUpload.textMessageSelectTemplate": "",
|
|
10
|
-
"app.components.CapVideoUpload.uploadComputer": "",
|
|
11
11
|
"app.components.CapVideoUpload.videoIncorrectSize": "",
|
|
12
12
|
"app.components.CapVideoUpload.videoRatioDescription": "",
|
|
13
13
|
"app.components.CapVideoUpload.videoSizeDescription": "",
|
|
14
|
+
"app.components.CapVideoUpload.whatsappErrorMessage": "",
|
|
15
|
+
"app.components.CapVideoUpload.whatsappFileFormat": "",
|
|
14
16
|
"app.components.TemplatePreview.includesOptoutTag": "",
|
|
17
|
+
"app.components.TemplatePreview.optoutCharactersTotal": "",
|
|
18
|
+
"app.components.TemplatePreview.whatsappMessageLength": "",
|
|
15
19
|
"app.v2containers.SmsTrai.Create.deferEdit": "",
|
|
16
20
|
"app.v2containers.SmsTrai.Create.doneButtonLabel": "",
|
|
17
21
|
"app.v2containers.SmsTrai.Create.downloadIssues": "",
|
|
@@ -140,18 +144,28 @@
|
|
|
140
144
|
"creatives.componentsV2.CapActionButton.templateButtonLinkPlaceholder": "",
|
|
141
145
|
"creatives.componentsV2.CapActionButton.templateButtonText": "",
|
|
142
146
|
"creatives.componentsV2.CapActionButton.templateButtonTextPlaceholder": "",
|
|
147
|
+
"creatives.componentsV2.CapDocumentUpload.docErrorDesc": "",
|
|
148
|
+
"creatives.componentsV2.CapDocumentUpload.docReUpload": "",
|
|
149
|
+
"creatives.componentsV2.CapDocumentUpload.dragAndDrop": "",
|
|
150
|
+
"creatives.componentsV2.CapDocumentUpload.format": "",
|
|
151
|
+
"creatives.componentsV2.CapDocumentUpload.imageDimenstionDescription": "",
|
|
152
|
+
"creatives.componentsV2.CapDocumentUpload.or": "",
|
|
153
|
+
"creatives.componentsV2.CapDocumentUpload.uploadComputer": "",
|
|
154
|
+
"creatives.componentsV2.CapDocumentUpload.whatsappDocSize": "",
|
|
143
155
|
"creatives.componentsV2.CapImageUpload.aspectRatio": "",
|
|
144
156
|
"creatives.componentsV2.CapImageUpload.dragAndDrop": "",
|
|
145
157
|
"creatives.componentsV2.CapImageUpload.format": "",
|
|
146
158
|
"creatives.componentsV2.CapImageUpload.imageDimenstionDescription": "",
|
|
159
|
+
"creatives.componentsV2.CapImageUpload.imageErrorDesc": "",
|
|
147
160
|
"creatives.componentsV2.CapImageUpload.imageGallery": "",
|
|
148
|
-
"creatives.componentsV2.CapImageUpload.imageIncorrectSize": "",
|
|
149
161
|
"creatives.componentsV2.CapImageUpload.imageReUpload": "",
|
|
150
162
|
"creatives.componentsV2.CapImageUpload.imageSize": "",
|
|
151
163
|
"creatives.componentsV2.CapImageUpload.or": "",
|
|
152
164
|
"creatives.componentsV2.CapImageUpload.uploadComputer": "",
|
|
153
165
|
"creatives.componentsV2.CapImageUpload.uploadGallery": "",
|
|
154
166
|
"creatives.componentsV2.CapImageUpload.uploadImageDescription": "",
|
|
167
|
+
"creatives.componentsV2.CapImageUpload.whatsappAspectRatio": "",
|
|
168
|
+
"creatives.componentsV2.CapImageUpload.whatsappImageSize": "",
|
|
155
169
|
"creatives.componentsV2.CapTagList.Cancel": "",
|
|
156
170
|
"creatives.componentsV2.CapTagList.Ok": "",
|
|
157
171
|
"creatives.componentsV2.CapTagList.all": "",
|
|
@@ -237,8 +251,21 @@
|
|
|
237
251
|
"creatives.componentsV2.SmsTest.header": "",
|
|
238
252
|
"creatives.componentsV2.SmsTest.inputSmsTemplate": "",
|
|
239
253
|
"creatives.componentsV2.SmsTest.inputTemplateName": "",
|
|
254
|
+
"creatives.componentsV2.TemplatePreview.charactersPerSms": "",
|
|
255
|
+
"creatives.componentsV2.TemplatePreview.charactersTotal": "",
|
|
256
|
+
"creatives.componentsV2.TemplatePreview.close": "",
|
|
240
257
|
"creatives.componentsV2.TemplatePreview.playVideo": "",
|
|
258
|
+
"creatives.componentsV2.TemplatePreview.preview": "",
|
|
259
|
+
"creatives.componentsV2.TemplatePreview.previewGenerated": "",
|
|
260
|
+
"creatives.componentsV2.TemplatePreview.previewGenerationMessage": "",
|
|
241
261
|
"creatives.componentsV2.TemplatePreview.showDetails": "",
|
|
262
|
+
"creatives.componentsV2.TemplatePreview.sms": "",
|
|
263
|
+
"creatives.componentsV2.TemplatePreview.smsFormatType": "",
|
|
264
|
+
"creatives.componentsV2.TemplatePreview.smsIcon": "",
|
|
265
|
+
"creatives.componentsV2.TemplatePreview.testMessage": "",
|
|
266
|
+
"creatives.componentsV2.TemplatePreview.textMessageCharacter": "",
|
|
267
|
+
"creatives.componentsV2.TemplatePreview.textMessageLabel": "",
|
|
268
|
+
"creatives.componentsV2.TemplatePreview.videoPreviewTooltip": "",
|
|
242
269
|
"creatives.componentsV2.Toastr.header": "",
|
|
243
270
|
"creatives.componentsV2.ToastrMessage.close": "",
|
|
244
271
|
"creatives.componentsV2.ToastrMessage.header": "",
|
|
@@ -249,6 +276,7 @@
|
|
|
249
276
|
"creatives.componentsV2.TopBar.logout": "",
|
|
250
277
|
"creatives.componentsV2.TopBar.profile": "",
|
|
251
278
|
"creatives.componentsV2.TopBar.settings": "",
|
|
279
|
+
"creatives.componentsV2.unbalanacedCurlyBraces": "",
|
|
252
280
|
"creatives.componentsv2.MobilePushPreviewV2.header": "",
|
|
253
281
|
"creatives.containers.Assets.Gallery.alphabetically": "",
|
|
254
282
|
"creatives.containers.Assets.Gallery.assetDeleteFailed": "",
|
|
@@ -987,6 +1015,7 @@
|
|
|
987
1015
|
"creatives.containersV2.Creatives.templateDeleteConfirm": "",
|
|
988
1016
|
"creatives.containersV2.Creatives.templateDeleteSuccess": "",
|
|
989
1017
|
"creatives.containersV2.Creatives.templateDuplicateSuccess": "",
|
|
1018
|
+
"creatives.containersV2.Creatives.templateNameEmpty": "",
|
|
990
1019
|
"creatives.containersV2.Creatives.templateSelection": "",
|
|
991
1020
|
"creatives.containersV2.Creatives.textTemplate": "",
|
|
992
1021
|
"creatives.containersV2.Creatives.unMapButton": "",
|
|
@@ -1124,6 +1153,7 @@
|
|
|
1124
1153
|
"creatives.containersV2.Email.yes": "",
|
|
1125
1154
|
"creatives.containersV2.EmailWrapper.createMode": "",
|
|
1126
1155
|
"creatives.containersV2.EmailWrapper.creativeName": "",
|
|
1156
|
+
"creatives.containersV2.EmailWrapper.emptyTemplateName": "",
|
|
1127
1157
|
"creatives.containersV2.EmailWrapper.header": "",
|
|
1128
1158
|
"creatives.containersV2.EmailWrapper.invalidUploadFileDesc": "",
|
|
1129
1159
|
"creatives.containersV2.EmailWrapper.invalidUploadFileError": "",
|
|
@@ -1285,6 +1315,7 @@
|
|
|
1285
1315
|
"creatives.containersV2.LineImageCarousel.emptyTitleErrorMessage": "",
|
|
1286
1316
|
"creatives.containersV2.LineImageCarousel.enterTextActionTypeTitle": "",
|
|
1287
1317
|
"creatives.containersV2.LineImageCarousel.enterUriActionTypeTitle": "",
|
|
1318
|
+
"creatives.containersV2.LineImageCarousel.imageDimenstionDesc": "",
|
|
1288
1319
|
"creatives.containersV2.LineImageCarousel.imageDimenstionDescription": "",
|
|
1289
1320
|
"creatives.containersV2.LineImageCarousel.imageGallery": "",
|
|
1290
1321
|
"creatives.containersV2.LineImageCarousel.imageReUpload": "",
|
|
@@ -1401,12 +1432,12 @@
|
|
|
1401
1432
|
"creatives.containersV2.LineWrapper.changeModalDescription": "",
|
|
1402
1433
|
"creatives.containersV2.LineWrapper.changeModalLabel": "",
|
|
1403
1434
|
"creatives.containersV2.LineWrapper.changeModalTitle": "",
|
|
1435
|
+
"creatives.containersV2.LineWrapper.flexLabel": "",
|
|
1404
1436
|
"creatives.containersV2.LineWrapper.imageLabel": "",
|
|
1405
1437
|
"creatives.containersV2.LineWrapper.imagemapLabel": "",
|
|
1406
1438
|
"creatives.containersV2.LineWrapper.modalDiscardChangesButtonLabel": "",
|
|
1407
1439
|
"creatives.containersV2.LineWrapper.modalSaveChangesButtonLabel": "",
|
|
1408
1440
|
"creatives.containersV2.LineWrapper.stickerLabel": "",
|
|
1409
|
-
"creatives.containersV2.LineWrapper.templateLabel": "",
|
|
1410
1441
|
"creatives.containersV2.LineWrapper.textLabel": "",
|
|
1411
1442
|
"creatives.containersV2.LineWrapper.videoLabel": "",
|
|
1412
1443
|
"creatives.containersV2.Login.header": "",
|
|
@@ -1561,7 +1592,161 @@
|
|
|
1561
1592
|
"creatives.containersV2.MobilepushWrapper.image": "",
|
|
1562
1593
|
"creatives.containersV2.MobilepushWrapper.text": "",
|
|
1563
1594
|
"creatives.containersV2.NotFoundPage.header": "",
|
|
1595
|
+
"creatives.containersV2.Rcs.addSmsCreative": "",
|
|
1596
|
+
"creatives.containersV2.Rcs.buttonTextAndUrl": "",
|
|
1597
|
+
"creatives.containersV2.Rcs.disabledMediaTooltip": "",
|
|
1598
|
+
"creatives.containersV2.Rcs.dltEditHeader": "",
|
|
1599
|
+
"creatives.containersV2.Rcs.emptyTemplateDescErrorMessage": "",
|
|
1600
|
+
"creatives.containersV2.Rcs.fallbackDesc": "",
|
|
1601
|
+
"creatives.containersV2.Rcs.fallbackLabel": "",
|
|
1602
|
+
"creatives.containersV2.Rcs.fallbackMsgLenError": "",
|
|
1603
|
+
"creatives.containersV2.Rcs.fallbackMsgPlaceholder": "",
|
|
1604
|
+
"creatives.containersV2.Rcs.fallbackPreviewtitle": "",
|
|
1605
|
+
"creatives.containersV2.Rcs.fallbackTextAreaLabel": "",
|
|
1606
|
+
"creatives.containersV2.Rcs.fallbackToolTip": "",
|
|
1607
|
+
"creatives.containersV2.Rcs.image": "",
|
|
1608
|
+
"creatives.containersV2.Rcs.mediaImage": "",
|
|
1609
|
+
"creatives.containersV2.Rcs.mediaLabel": "",
|
|
1610
|
+
"creatives.containersV2.Rcs.mediaNone": "",
|
|
1611
|
+
"creatives.containersV2.Rcs.mediaVideo": "",
|
|
1612
|
+
"creatives.containersV2.Rcs.optional": "",
|
|
1613
|
+
"creatives.containersV2.Rcs.rcsCreateNotification": "",
|
|
1614
|
+
"creatives.containersV2.Rcs.rcsDltDesc": "",
|
|
1615
|
+
"creatives.containersV2.Rcs.rcsDltTitle": "",
|
|
1616
|
+
"creatives.containersV2.Rcs.rcsDoneBtnToolTip": "",
|
|
1617
|
+
"creatives.containersV2.Rcs.rcsEditNotification": "",
|
|
1618
|
+
"creatives.containersV2.Rcs.templateButton": "",
|
|
1619
|
+
"creatives.containersV2.Rcs.templateButtonDesc": "",
|
|
1620
|
+
"creatives.containersV2.Rcs.templateCTAButton": "",
|
|
1621
|
+
"creatives.containersV2.Rcs.templateCTAButtonDesc": "",
|
|
1622
|
+
"creatives.containersV2.Rcs.templateDescLabel": "",
|
|
1623
|
+
"creatives.containersV2.Rcs.templateDescLengthError": "",
|
|
1624
|
+
"creatives.containersV2.Rcs.templateDescPlaceholder": "",
|
|
1625
|
+
"creatives.containersV2.Rcs.templateQRButton": "",
|
|
1626
|
+
"creatives.containersV2.Rcs.templateQRButtonDesc": "",
|
|
1627
|
+
"creatives.containersV2.Rcs.templateTitle": "",
|
|
1628
|
+
"creatives.containersV2.Rcs.templateTitlePlaceholder": "",
|
|
1629
|
+
"creatives.containersV2.Rcs.textMessage": "",
|
|
1630
|
+
"creatives.containersV2.Rcs.totalCharacters": "",
|
|
1564
1631
|
"creatives.containersV2.TagList.header": "",
|
|
1632
|
+
"creatives.containersV2.Templates.accountConfigError": "",
|
|
1633
|
+
"creatives.containersV2.Templates.all": "",
|
|
1634
|
+
"creatives.containersV2.Templates.alphabeticallyOption": "",
|
|
1635
|
+
"creatives.containersV2.Templates.areYouSureText": "",
|
|
1636
|
+
"creatives.containersV2.Templates.blankTemplate": "",
|
|
1637
|
+
"creatives.containersV2.Templates.campaigns": "",
|
|
1638
|
+
"creatives.containersV2.Templates.cancelText": "",
|
|
1639
|
+
"creatives.containersV2.Templates.category": "",
|
|
1640
|
+
"creatives.containersV2.Templates.chooseAccount": "",
|
|
1641
|
+
"creatives.containersV2.Templates.clearAll": "",
|
|
1642
|
+
"creatives.containersV2.Templates.continue": "",
|
|
1643
|
+
"creatives.containersV2.Templates.createEmailActionButton": "",
|
|
1644
|
+
"creatives.containersV2.Templates.createMessageContent": "",
|
|
1645
|
+
"creatives.containersV2.Templates.createNewActionButton": "",
|
|
1646
|
+
"creatives.containersV2.Templates.createNewTemplateLink": "",
|
|
1647
|
+
"creatives.containersV2.Templates.createSmsActionButton": "",
|
|
1648
|
+
"creatives.containersV2.Templates.creativeTemplates": "",
|
|
1649
|
+
"creatives.containersV2.Templates.creativeTemplatesDesc": "",
|
|
1650
|
+
"creatives.containersV2.Templates.creatives": "",
|
|
1651
|
+
"creatives.containersV2.Templates.creativesTemplatesEdit": "",
|
|
1652
|
+
"creatives.containersV2.Templates.creativesTemplatesSave": "",
|
|
1653
|
+
"creatives.containersV2.Templates.deleteButton": "",
|
|
1654
|
+
"creatives.containersV2.Templates.deletedSuccssfully": "",
|
|
1655
|
+
"creatives.containersV2.Templates.deletingTemplate": "",
|
|
1656
|
+
"creatives.containersV2.Templates.deletionFailed": "",
|
|
1657
|
+
"creatives.containersV2.Templates.duplicateButton": "",
|
|
1658
|
+
"creatives.containersV2.Templates.duplicatingTemplate": "",
|
|
1659
|
+
"creatives.containersV2.Templates.ebillHeader": "",
|
|
1660
|
+
"creatives.containersV2.Templates.ebillPreview": "",
|
|
1661
|
+
"creatives.containersV2.Templates.editButton": "",
|
|
1662
|
+
"creatives.containersV2.Templates.editMessageContent": "",
|
|
1663
|
+
"creatives.containersV2.Templates.emailHeader": "",
|
|
1664
|
+
"creatives.containersV2.Templates.emailPreview": "",
|
|
1665
|
+
"creatives.containersV2.Templates.emailTitleIllustartion": "",
|
|
1666
|
+
"creatives.containersV2.Templates.gettingAllTemplates": "",
|
|
1667
|
+
"creatives.containersV2.Templates.header": "",
|
|
1668
|
+
"creatives.containersV2.Templates.imageCarouselTemplate": "",
|
|
1669
|
+
"creatives.containersV2.Templates.imageMapTemplate": "",
|
|
1670
|
+
"creatives.containersV2.Templates.imageMapVideoTemplate": "",
|
|
1671
|
+
"creatives.containersV2.Templates.imageTemplate": "",
|
|
1672
|
+
"creatives.containersV2.Templates.invalidUploadFileError": "",
|
|
1673
|
+
"creatives.containersV2.Templates.layoutSelection": "",
|
|
1674
|
+
"creatives.containersV2.Templates.lineAccount": "",
|
|
1675
|
+
"creatives.containersV2.Templates.lineHeader": "",
|
|
1676
|
+
"creatives.containersV2.Templates.mapTemplate": "",
|
|
1677
|
+
"creatives.containersV2.Templates.mapTemplates": "",
|
|
1678
|
+
"creatives.containersV2.Templates.mobilepushAccount": "",
|
|
1679
|
+
"creatives.containersV2.Templates.mobilepushHeader": "",
|
|
1680
|
+
"creatives.containersV2.Templates.mostRecentOption": "",
|
|
1681
|
+
"creatives.containersV2.Templates.newEmailTemplate": "",
|
|
1682
|
+
"creatives.containersV2.Templates.newNotificationTemplate": "",
|
|
1683
|
+
"creatives.containersV2.Templates.newRCSTemplate": "",
|
|
1684
|
+
"creatives.containersV2.Templates.newSMSTemplate": "",
|
|
1685
|
+
"creatives.containersV2.Templates.newTemplate": "",
|
|
1686
|
+
"creatives.containersV2.Templates.newWhatsappTemplate": "",
|
|
1687
|
+
"creatives.containersV2.Templates.noAccountMessage": "",
|
|
1688
|
+
"creatives.containersV2.Templates.noAccountsPresent": "",
|
|
1689
|
+
"creatives.containersV2.Templates.noAccountsPresentFacebook": "",
|
|
1690
|
+
"creatives.containersV2.Templates.noAccountsPresentLine": "",
|
|
1691
|
+
"creatives.containersV2.Templates.noAccountsPresentViber": "",
|
|
1692
|
+
"creatives.containersV2.Templates.noAccountsPresentWeChat": "",
|
|
1693
|
+
"creatives.containersV2.Templates.noAccountsPresentWhatsapp": "",
|
|
1694
|
+
"creatives.containersV2.Templates.noApprovedWhatsappTemplatesDesc": "",
|
|
1695
|
+
"creatives.containersV2.Templates.noApprovedWhatsappTemplatesTitle": "",
|
|
1696
|
+
"creatives.containersV2.Templates.noFilteredWhatsappTemplatesDesc": "",
|
|
1697
|
+
"creatives.containersV2.Templates.noFilteredWhatsappTemplatesTitle": "",
|
|
1698
|
+
"creatives.containersV2.Templates.noTemplatesFound": "",
|
|
1699
|
+
"creatives.containersV2.Templates.noTemplatesMessage": "",
|
|
1700
|
+
"creatives.containersV2.Templates.preview": "",
|
|
1701
|
+
"creatives.containersV2.Templates.previewButton": "",
|
|
1702
|
+
"creatives.containersV2.Templates.previewGenerateText": "",
|
|
1703
|
+
"creatives.containersV2.Templates.promotional": "",
|
|
1704
|
+
"creatives.containersV2.Templates.pushTitleIllustartion": "",
|
|
1705
|
+
"creatives.containersV2.Templates.rcsDescIllustartion": "",
|
|
1706
|
+
"creatives.containersV2.Templates.rcsDltIllustrationDesc": "",
|
|
1707
|
+
"creatives.containersV2.Templates.rcsDltIllustrationTitle": "",
|
|
1708
|
+
"creatives.containersV2.Templates.rcsTitleIllustartion": "",
|
|
1709
|
+
"creatives.containersV2.Templates.richMediaTemplates": "",
|
|
1710
|
+
"creatives.containersV2.Templates.searchText": "",
|
|
1711
|
+
"creatives.containersV2.Templates.selectAccount": "",
|
|
1712
|
+
"creatives.containersV2.Templates.selectButton": "",
|
|
1713
|
+
"creatives.containersV2.Templates.selectDefaultButton": "",
|
|
1714
|
+
"creatives.containersV2.Templates.selectSmsHeader": "",
|
|
1715
|
+
"creatives.containersV2.Templates.selectWechatHeader": "",
|
|
1716
|
+
"creatives.containersV2.Templates.serviceExplicit": "",
|
|
1717
|
+
"creatives.containersV2.Templates.serviceImplicit": "",
|
|
1718
|
+
"creatives.containersV2.Templates.smsChannelTemplatesHeader": "",
|
|
1719
|
+
"creatives.containersV2.Templates.smsHeader": "",
|
|
1720
|
+
"creatives.containersV2.Templates.smsTitleIllustartion": "",
|
|
1721
|
+
"creatives.containersV2.Templates.somethingWentWrong": "",
|
|
1722
|
+
"creatives.containersV2.Templates.sortBy": "",
|
|
1723
|
+
"creatives.containersV2.Templates.status": "",
|
|
1724
|
+
"creatives.containersV2.Templates.template": "",
|
|
1725
|
+
"creatives.containersV2.Templates.templateDeleteConfirm": "",
|
|
1726
|
+
"creatives.containersV2.Templates.templateDeleteSuccess": "",
|
|
1727
|
+
"creatives.containersV2.Templates.templateDuplicateSuccess": "",
|
|
1728
|
+
"creatives.containersV2.Templates.templateSelection": "",
|
|
1729
|
+
"creatives.containersV2.Templates.textTemplate": "",
|
|
1730
|
+
"creatives.containersV2.Templates.unMapButton": "",
|
|
1731
|
+
"creatives.containersV2.Templates.uploadFile": "",
|
|
1732
|
+
"creatives.containersV2.Templates.uploadTemplate": "",
|
|
1733
|
+
"creatives.containersV2.Templates.uploadedAt": "",
|
|
1734
|
+
"creatives.containersV2.Templates.uploadedBy": "",
|
|
1735
|
+
"creatives.containersV2.Templates.uploadingFile": "",
|
|
1736
|
+
"creatives.containersV2.Templates.useEditor": "",
|
|
1737
|
+
"creatives.containersV2.Templates.weChatRichmediaTemplate": "",
|
|
1738
|
+
"creatives.containersV2.Templates.wechatAccount": "",
|
|
1739
|
+
"creatives.containersV2.Templates.wechatAccountNotConfigured": "",
|
|
1740
|
+
"creatives.containersV2.Templates.wechatChannelTemplatesHeader": "",
|
|
1741
|
+
"creatives.containersV2.Templates.wechatHeader": "",
|
|
1742
|
+
"creatives.containersV2.Templates.whatsappAccount": "",
|
|
1743
|
+
"creatives.containersV2.Templates.whatsappDescIllustration": "",
|
|
1744
|
+
"creatives.containersV2.Templates.whatsappMaxTemplates": "",
|
|
1745
|
+
"creatives.containersV2.Templates.whatsappOnlyApprovedTemplates": "",
|
|
1746
|
+
"creatives.containersV2.Templates.whatsappOverview": "",
|
|
1747
|
+
"creatives.containersV2.Templates.whatsappTitleIllustration": "",
|
|
1748
|
+
"creatives.containersV2.Templates.yesText": "",
|
|
1749
|
+
"creatives.containersV2.Templates.zipUploadFailed": "",
|
|
1565
1750
|
"creatives.containersV2.TemplatesV2.FTP": "",
|
|
1566
1751
|
"creatives.containersV2.TemplatesV2.callTask": "",
|
|
1567
1752
|
"creatives.containersV2.TemplatesV2.creatives": "",
|
|
@@ -1630,6 +1815,8 @@
|
|
|
1630
1815
|
"creatives.containersV2.Whatsapp.alertUpdate": "",
|
|
1631
1816
|
"creatives.containersV2.Whatsapp.alertUpdateTooltip": "",
|
|
1632
1817
|
"creatives.containersV2.Whatsapp.approved": "",
|
|
1818
|
+
"creatives.containersV2.Whatsapp.transactional": "",
|
|
1819
|
+
"creatives.containersV2.Whatsapp.transactionalTooltip": "",
|
|
1633
1820
|
"creatives.containersV2.addLabels": "",
|
|
1634
1821
|
"creatives.containersV2.appName": "",
|
|
1635
1822
|
"creatives.containersV2.applyNow": "",
|
|
@@ -1722,6 +1909,7 @@
|
|
|
1722
1909
|
"creatives.containersV2.richMedia.Create.wechatTitle": "",
|
|
1723
1910
|
"creatives.containersV2.richMedia.Create.wrongFormatFile": "",
|
|
1724
1911
|
"creatives.containersV2.richMedia.Create.wrongUrl": "",
|
|
1912
|
+
"creatives.containersV2.save": "",
|
|
1725
1913
|
"creatives.containersV2.shopNow": "",
|
|
1726
1914
|
"creatives.containersV2.signUp": "",
|
|
1727
1915
|
"creatives.containersV2.subscribe": "",
|
|
@@ -11,9 +11,11 @@ import PropTypes from 'prop-types';
|
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import _ from 'lodash';
|
|
13
13
|
import { Tabs, Table, Modal} from 'antd';
|
|
14
|
-
import {
|
|
14
|
+
import { connect } from 'react-redux';
|
|
15
|
+
import { CapSpin, CapDrawer, CapButton, CapInput, CapPopover, CapImage, CapCheckbox, CapRadio, CapSelect, CapTable, CapRow, CapColumn, CapNotification, CapUploader, CapHeading, CapIcon, CapTooltip, CapAiSuggestions} from '@capillarytech/cap-ui-library';
|
|
15
16
|
import { injectIntl, intlShape, FormattedMessage } from 'react-intl';
|
|
16
17
|
import LabelHOC from '@capillarytech/cap-ui-library/assets/HOCs/ComponentWithLabelHOC';
|
|
18
|
+
import { createStructuredSelector } from 'reselect';
|
|
17
19
|
import { CAP_SPACE_12, CAP_SPACE_08, FONT_COLOR_05, FONT_COLOR_04 } from '@capillarytech/cap-ui-library/styled/variables';
|
|
18
20
|
import TemplatePreview from '../TemplatePreview';
|
|
19
21
|
import TagList from '../../v2Containers/TagList';
|
|
@@ -24,9 +26,10 @@ import EDMEditor from "../Edmeditor";
|
|
|
24
26
|
import BeeEditor from '../../v2Containers/BeeEditor';
|
|
25
27
|
import CustomPopOver from '../CustomPopOver';
|
|
26
28
|
import messages from './messages';
|
|
29
|
+
import { selectCurrentOrgDetails } from "../../v2Containers/Cap/selectors";
|
|
27
30
|
import './_formBuilder.scss';
|
|
28
31
|
import {updateCharCount, checkUnicode} from "../../utils/smsCharCountV2";
|
|
29
|
-
import { SMS, LINE } from '../../v2Containers/CreativesContainer/constants';
|
|
32
|
+
import { SMS, LINE, ENABLE_AI_SUGGESTIONS } from '../../v2Containers/CreativesContainer/constants';
|
|
30
33
|
import { validateIfTagClosed } from '../../utils/tagValidations';
|
|
31
34
|
import globalMessages from '../../v2Containers/Cap/messages';
|
|
32
35
|
import { convert } from 'html-to-text';
|
|
@@ -2278,6 +2281,12 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
|
|
|
2278
2281
|
const messageContent = isVersionEnable ? formData[`${currentTab - 1}`][val.id] : formData[val.id];
|
|
2279
2282
|
const { MISSING_TAG_ERROR, UNSUPPORTED_TAG_ERROR, TAG_BRACKET_COUNT_MISMATCH_ERROR } = errorMessageForTags;
|
|
2280
2283
|
const { formatMessage } = this.props.intl;
|
|
2284
|
+
|
|
2285
|
+
const { accessibleFeatures = [] } = this.props.currentOrgDetails || {};
|
|
2286
|
+
const hasAiSuggestionsEnabled = accessibleFeatures.includes(
|
|
2287
|
+
ENABLE_AI_SUGGESTIONS
|
|
2288
|
+
);
|
|
2289
|
+
|
|
2281
2290
|
let errorMessageText = false;
|
|
2282
2291
|
switch (errorType) {
|
|
2283
2292
|
case MISSING_TAG_ERROR:
|
|
@@ -2313,6 +2322,16 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
|
|
|
2313
2322
|
disabled={val.disabled}
|
|
2314
2323
|
cols={cols}
|
|
2315
2324
|
/>
|
|
2325
|
+
{this.props.schema.channel === "SMS" && this.props.fetchAiSuggestions && hasAiSuggestionsEnabled && (
|
|
2326
|
+
<CapAiSuggestions
|
|
2327
|
+
style={{ bottom: "1rem" }}
|
|
2328
|
+
text={messageContent || ""}
|
|
2329
|
+
setText={(x) => {
|
|
2330
|
+
this.updateFormData(x, val);
|
|
2331
|
+
}}
|
|
2332
|
+
getCompletions={this.props.fetchAiSuggestions}
|
|
2333
|
+
/>
|
|
2334
|
+
)}
|
|
2316
2335
|
</CapColumn>
|
|
2317
2336
|
);
|
|
2318
2337
|
}
|
|
@@ -3617,7 +3636,12 @@ FormBuilder.propTypes = {
|
|
|
3617
3636
|
setDrawerVisibility: PropTypes.bool,
|
|
3618
3637
|
capDrawerContent: PropTypes.array,
|
|
3619
3638
|
isFullMode: PropTypes.bool,
|
|
3620
|
-
|
|
3639
|
+
fetchAiSuggestions: PropTypes.func,
|
|
3640
|
+
currentOrgDetails: PropTypes.object,
|
|
3621
3641
|
};
|
|
3622
3642
|
|
|
3623
|
-
|
|
3643
|
+
const mapStateToProps = createStructuredSelector({
|
|
3644
|
+
currentOrgDetails: selectCurrentOrgDetails(),
|
|
3645
|
+
});
|
|
3646
|
+
|
|
3647
|
+
export default connect(mapStateToProps)(injectIntl(FormBuilder));
|