@capillarytech/creatives-library 8.0.290 → 8.0.292-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/constants/unified.js +3 -1
- package/initialState.js +0 -2
- package/package.json +1 -1
- package/utils/common.js +5 -8
- package/utils/commonUtils.js +4 -85
- package/utils/tagValidations.js +83 -223
- package/utils/tests/commonUtil.test.js +147 -124
- package/utils/tests/tagValidations.test.js +441 -358
- package/v2Components/CommonTestAndPreview/SendTestMessage.js +1 -33
- package/v2Components/CommonTestAndPreview/actions.js +0 -20
- package/v2Components/CommonTestAndPreview/constants.js +0 -10
- package/v2Components/CommonTestAndPreview/index.js +15 -133
- package/v2Components/CommonTestAndPreview/reducer.js +0 -47
- package/v2Components/CommonTestAndPreview/sagas.js +0 -60
- package/v2Components/CommonTestAndPreview/selectors.js +0 -51
- package/v2Components/CommonTestAndPreview/tests/SendTestMessage.test.js +0 -127
- package/v2Components/CommonTestAndPreview/tests/actions.test.js +0 -50
- package/v2Components/CommonTestAndPreview/tests/constants.test.js +0 -18
- package/v2Components/CommonTestAndPreview/tests/index.test.js +1 -214
- package/v2Components/CommonTestAndPreview/tests/reducer.test.js +0 -118
- package/v2Components/CommonTestAndPreview/tests/sagas.test.js +0 -145
- package/v2Components/CommonTestAndPreview/tests/selectors.test.js +0 -146
- package/v2Components/ErrorInfoNote/index.js +2 -5
- package/v2Components/FormBuilder/index.js +137 -203
- package/v2Components/FormBuilder/messages.js +0 -8
- package/v2Components/HtmlEditor/HTMLEditor.js +0 -5
- package/v2Components/HtmlEditor/__tests__/HTMLEditor.apiErrors.test.js +0 -1
- package/v2Components/HtmlEditor/__tests__/HTMLEditor.test.js +0 -15
- package/v2Components/HtmlEditor/components/CodeEditorPane/index.js +1 -2
- package/v2Components/TestAndPreviewSlidebox/index.js +0 -14
- package/v2Containers/Cap/mockData.js +0 -14
- package/v2Containers/Cap/reducer.js +3 -55
- package/v2Containers/Cap/tests/reducer.test.js +0 -102
- package/v2Containers/CreativesContainer/SlideBoxContent.js +5 -1
- package/v2Containers/CreativesContainer/SlideBoxFooter.js +13 -5
- package/v2Containers/CreativesContainer/index.js +38 -7
- package/v2Containers/Email/index.js +1 -5
- package/v2Containers/EmailWrapper/components/EmailHTMLEditor.js +23 -70
- package/v2Containers/EmailWrapper/components/__tests__/EmailHTMLEditor.test.js +29 -137
- package/v2Containers/FTP/index.js +2 -51
- package/v2Containers/FTP/messages.js +0 -4
- package/v2Containers/InApp/index.js +4 -104
- package/v2Containers/InApp/tests/index.test.js +17 -6
- package/v2Containers/InappAdvance/index.js +4 -108
- package/v2Containers/InappAdvance/tests/index.test.js +2 -0
- package/v2Containers/Line/Container/Text/index.js +0 -1
- package/v2Containers/MobilePush/Create/index.js +42 -19
- package/v2Containers/MobilePush/Edit/index.js +42 -19
- package/v2Containers/MobilePushNew/index.js +12 -32
- package/v2Containers/MobilepushWrapper/index.js +3 -1
- package/v2Containers/Rcs/index.js +12 -37
- package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +12 -649
- package/v2Containers/Sms/Create/index.js +39 -3
- package/v2Containers/Sms/Create/messages.js +4 -0
- package/v2Containers/Sms/Edit/index.js +35 -3
- package/v2Containers/Sms/commonMethods.js +3 -6
- package/v2Containers/Sms/tests/commonMethods.test.js +122 -0
- package/v2Containers/SmsTrai/Edit/index.js +11 -47
- package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +6 -147
- package/v2Containers/SmsWrapper/index.js +2 -0
- package/v2Containers/Viber/index.js +0 -1
- package/v2Containers/WebPush/Create/hooks/useTagManagement.js +1 -3
- package/v2Containers/WebPush/Create/hooks/useTagManagement.test.js +0 -7
- package/v2Containers/WebPush/Create/index.js +2 -2
- package/v2Containers/WebPush/Create/utils/validation.js +17 -2
- package/v2Containers/WebPush/Create/utils/validation.test.js +59 -24
- package/v2Containers/Whatsapp/index.js +10 -18
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +4225 -26174
- package/v2Containers/Zalo/index.js +3 -11
- package/v2Components/CommonTestAndPreview/DeliverySettings/DeliverySettings.scss +0 -33
- package/v2Components/CommonTestAndPreview/DeliverySettings/ModifyDeliverySettings.js +0 -397
- package/v2Components/CommonTestAndPreview/DeliverySettings/ModifyDeliverySettings.scss +0 -35
- package/v2Components/CommonTestAndPreview/DeliverySettings/TECH_DETAILING_DELIVERY_SETTINGS.md +0 -725
- package/v2Components/CommonTestAndPreview/DeliverySettings/constants.js +0 -92
- package/v2Components/CommonTestAndPreview/DeliverySettings/index.js +0 -243
- package/v2Components/CommonTestAndPreview/DeliverySettings/messages.js +0 -111
- package/v2Components/CommonTestAndPreview/DeliverySettings/utils/parseSenderDetailsResponse.js +0 -91
- package/v2Components/CommonTestAndPreview/tests/DeliverySettings/ModifyDeliverySettings.test.js +0 -782
- package/v2Components/CommonTestAndPreview/tests/DeliverySettings/index.test.js +0 -200
- package/v2Components/CommonTestAndPreview/tests/DeliverySettings/utils/parseSenderDetailsResponse.test.js +0 -235
|
@@ -4265,7 +4265,7 @@ FREE GIFTS-
|
|
|
4265
4265
|
<CapCheckbox
|
|
4266
4266
|
checked={false}
|
|
4267
4267
|
disabled={false}
|
|
4268
|
-
key=".
|
|
4268
|
+
key=".3"
|
|
4269
4269
|
labelType="h4"
|
|
4270
4270
|
onChange={[Function]}
|
|
4271
4271
|
>
|
|
@@ -4327,7 +4327,7 @@ FREE GIFTS-
|
|
|
4327
4327
|
</div>
|
|
4328
4328
|
</CapCheckbox>
|
|
4329
4329
|
<div
|
|
4330
|
-
key=".
|
|
4330
|
+
key=".5"
|
|
4331
4331
|
style={
|
|
4332
4332
|
Object {
|
|
4333
4333
|
"marginBottom": "100px",
|
|
@@ -6034,10 +6034,8 @@ FREE GIFTS-
|
|
|
6034
6034
|
"createMessageMetaRequested": [Function],
|
|
6035
6035
|
"extractTagsRequested": [Function],
|
|
6036
6036
|
"getPrefilledValuesRequested": [Function],
|
|
6037
|
-
"getSenderDetailsRequested": [Function],
|
|
6038
6037
|
"getTestCustomersRequested": [Function],
|
|
6039
6038
|
"getTestGroupsRequested": [Function],
|
|
6040
|
-
"getWeCrmAccountsRequested": [Function],
|
|
6041
6039
|
"searchCustomersRequested": [Function],
|
|
6042
6040
|
"sendTestMessageRequested": [Function],
|
|
6043
6041
|
"updatePreviewRequested": [Function],
|
|
@@ -6080,7 +6078,6 @@ FREE GIFTS-
|
|
|
6080
6078
|
isExtractingTags={false}
|
|
6081
6079
|
isFetchingTestCustomers={false}
|
|
6082
6080
|
isFetchingTestGroups={false}
|
|
6083
|
-
isLoadingSenderDetails={false}
|
|
6084
6081
|
isSearchingCustomer={false}
|
|
6085
6082
|
isSendingTestMessage={false}
|
|
6086
6083
|
isUpdatingPreview={false}
|
|
@@ -6088,19 +6085,11 @@ FREE GIFTS-
|
|
|
6088
6085
|
onClose={[Function]}
|
|
6089
6086
|
prefilledValues={Object {}}
|
|
6090
6087
|
previewData={null}
|
|
6091
|
-
senderDetailsByChannel={
|
|
6092
|
-
Object {
|
|
6093
|
-
"EMAIL": Array [],
|
|
6094
|
-
"SMS": Array [],
|
|
6095
|
-
"WHATSAPP": Array [],
|
|
6096
|
-
}
|
|
6097
|
-
}
|
|
6098
6088
|
show={false}
|
|
6099
6089
|
testCustomers={Immutable.List []}
|
|
6100
6090
|
testGroups={Immutable.List []}
|
|
6101
6091
|
updatePreviewError={null}
|
|
6102
6092
|
updatePreviewErrors={Array []}
|
|
6103
|
-
wecrmAccounts={Array []}
|
|
6104
6093
|
>
|
|
6105
6094
|
<TestAndPreviewSlidebox
|
|
6106
6095
|
actions={
|
|
@@ -6112,10 +6101,8 @@ FREE GIFTS-
|
|
|
6112
6101
|
"createMessageMetaRequested": [Function],
|
|
6113
6102
|
"extractTagsRequested": [Function],
|
|
6114
6103
|
"getPrefilledValuesRequested": [Function],
|
|
6115
|
-
"getSenderDetailsRequested": [Function],
|
|
6116
6104
|
"getTestCustomersRequested": [Function],
|
|
6117
6105
|
"getTestGroupsRequested": [Function],
|
|
6118
|
-
"getWeCrmAccountsRequested": [Function],
|
|
6119
6106
|
"searchCustomersRequested": [Function],
|
|
6120
6107
|
"sendTestMessageRequested": [Function],
|
|
6121
6108
|
"updatePreviewRequested": [Function],
|
|
@@ -8406,28 +8393,18 @@ new message content.",
|
|
|
8406
8393
|
isExtractingTags={false}
|
|
8407
8394
|
isFetchingTestCustomers={false}
|
|
8408
8395
|
isFetchingTestGroups={false}
|
|
8409
|
-
isLoadingSenderDetails={false}
|
|
8410
8396
|
isSearchingCustomer={false}
|
|
8411
8397
|
isSendingTestMessage={false}
|
|
8412
8398
|
isUpdatingPreview={false}
|
|
8413
8399
|
messageMetaConfigId={null}
|
|
8414
8400
|
onClose={[Function]}
|
|
8415
|
-
orgUnitId={-1}
|
|
8416
8401
|
prefilledValues={Object {}}
|
|
8417
8402
|
previewData={null}
|
|
8418
|
-
senderDetailsByChannel={
|
|
8419
|
-
Object {
|
|
8420
|
-
"EMAIL": Array [],
|
|
8421
|
-
"SMS": Array [],
|
|
8422
|
-
"WHATSAPP": Array [],
|
|
8423
|
-
}
|
|
8424
|
-
}
|
|
8425
8403
|
show={false}
|
|
8426
8404
|
testCustomers={Immutable.List []}
|
|
8427
8405
|
testGroups={Immutable.List []}
|
|
8428
8406
|
updatePreviewError={null}
|
|
8429
8407
|
updatePreviewErrors={Array []}
|
|
8430
|
-
wecrmAccounts={Array []}
|
|
8431
8408
|
>
|
|
8432
8409
|
<CommonTestAndPreview
|
|
8433
8410
|
actions={
|
|
@@ -8439,10 +8416,8 @@ new message content.",
|
|
|
8439
8416
|
"createMessageMetaRequested": [Function],
|
|
8440
8417
|
"extractTagsRequested": [Function],
|
|
8441
8418
|
"getPrefilledValuesRequested": [Function],
|
|
8442
|
-
"getSenderDetailsRequested": [Function],
|
|
8443
8419
|
"getTestCustomersRequested": [Function],
|
|
8444
8420
|
"getTestGroupsRequested": [Function],
|
|
8445
|
-
"getWeCrmAccountsRequested": [Function],
|
|
8446
8421
|
"searchCustomersRequested": [Function],
|
|
8447
8422
|
"sendTestMessageRequested": [Function],
|
|
8448
8423
|
"updatePreviewRequested": [Function],
|
|
@@ -10740,25 +10715,16 @@ new message content.",
|
|
|
10740
10715
|
isExtractingTags={false}
|
|
10741
10716
|
isFetchingTestCustomers={false}
|
|
10742
10717
|
isFetchingTestGroups={false}
|
|
10743
|
-
isLoadingSenderDetails={false}
|
|
10744
10718
|
isSearchingCustomer={false}
|
|
10745
10719
|
isSendingTestMessage={false}
|
|
10746
10720
|
isUpdatingPreview={false}
|
|
10747
10721
|
messageMetaConfigId={null}
|
|
10748
10722
|
onClose={[Function]}
|
|
10749
|
-
orgUnitId={-1}
|
|
10750
10723
|
prefilledValues={Object {}}
|
|
10751
10724
|
previewData={null}
|
|
10752
10725
|
rcsIosPreview={false}
|
|
10753
10726
|
rcsOrientation={null}
|
|
10754
10727
|
rcsType={null}
|
|
10755
|
-
senderDetailsByChannel={
|
|
10756
|
-
Object {
|
|
10757
|
-
"EMAIL": Array [],
|
|
10758
|
-
"SMS": Array [],
|
|
10759
|
-
"WHATSAPP": Array [],
|
|
10760
|
-
}
|
|
10761
|
-
}
|
|
10762
10728
|
show={false}
|
|
10763
10729
|
templateLayoutType={null}
|
|
10764
10730
|
testCustomers={Immutable.List []}
|
|
@@ -10766,7 +10732,6 @@ new message content.",
|
|
|
10766
10732
|
unicodeEnabled={false}
|
|
10767
10733
|
updatePreviewError={null}
|
|
10768
10734
|
updatePreviewErrors={Array []}
|
|
10769
|
-
wecrmAccounts={Array []}
|
|
10770
10735
|
whatsappAccountName={null}
|
|
10771
10736
|
whatsappContentLen={0}
|
|
10772
10737
|
>
|
|
@@ -10820,14 +10785,6 @@ BUY1GET1-
|
|
|
10820
10785
|
FREE GIFTS-
|
|
10821
10786
|
{#var#}
|
|
10822
10787
|
{#var#}"
|
|
10823
|
-
deliverySettings={
|
|
10824
|
-
Object {
|
|
10825
|
-
"cdmaSenderId": "",
|
|
10826
|
-
"domainGatewayMapId": null,
|
|
10827
|
-
"domainId": null,
|
|
10828
|
-
"gsmSenderId": "",
|
|
10829
|
-
}
|
|
10830
|
-
}
|
|
10831
10788
|
formData={
|
|
10832
10789
|
Object {
|
|
10833
10790
|
"templateConfigs": Object {
|
|
@@ -10851,11 +10808,8 @@ FREE GIFTS-
|
|
|
10851
10808
|
handleTestEntitiesChange={[Function]}
|
|
10852
10809
|
isFetchingTestCustomers={false}
|
|
10853
10810
|
isFetchingTestGroups={false}
|
|
10854
|
-
isLoadingSenderDetails={false}
|
|
10855
10811
|
isSendingTestMessage={false}
|
|
10856
|
-
onSaveDeliverySettings={[Function]}
|
|
10857
10812
|
selectedTestEntities={Array []}
|
|
10858
|
-
senderDetailsOptions={Array []}
|
|
10859
10813
|
testEntitiesTreeData={
|
|
10860
10814
|
Array [
|
|
10861
10815
|
Object {
|
|
@@ -10872,7 +10826,6 @@ FREE GIFTS-
|
|
|
10872
10826
|
},
|
|
10873
10827
|
]
|
|
10874
10828
|
}
|
|
10875
|
-
wecrmAccounts={Array []}
|
|
10876
10829
|
/>
|
|
10877
10830
|
</CapRow>
|
|
10878
10831
|
<CapDivider
|
|
@@ -15223,7 +15176,7 @@ FREE GIFTS-
|
|
|
15223
15176
|
<CapCheckbox
|
|
15224
15177
|
checked={false}
|
|
15225
15178
|
disabled={false}
|
|
15226
|
-
key=".
|
|
15179
|
+
key=".3"
|
|
15227
15180
|
labelType="h4"
|
|
15228
15181
|
onChange={[Function]}
|
|
15229
15182
|
>
|
|
@@ -15285,7 +15238,7 @@ FREE GIFTS-
|
|
|
15285
15238
|
</div>
|
|
15286
15239
|
</CapCheckbox>
|
|
15287
15240
|
<div
|
|
15288
|
-
key=".
|
|
15241
|
+
key=".5"
|
|
15289
15242
|
style={
|
|
15290
15243
|
Object {
|
|
15291
15244
|
"marginBottom": "100px",
|
|
@@ -16992,10 +16945,8 @@ FREE GIFTS-
|
|
|
16992
16945
|
"createMessageMetaRequested": [Function],
|
|
16993
16946
|
"extractTagsRequested": [Function],
|
|
16994
16947
|
"getPrefilledValuesRequested": [Function],
|
|
16995
|
-
"getSenderDetailsRequested": [Function],
|
|
16996
16948
|
"getTestCustomersRequested": [Function],
|
|
16997
16949
|
"getTestGroupsRequested": [Function],
|
|
16998
|
-
"getWeCrmAccountsRequested": [Function],
|
|
16999
16950
|
"searchCustomersRequested": [Function],
|
|
17000
16951
|
"sendTestMessageRequested": [Function],
|
|
17001
16952
|
"updatePreviewRequested": [Function],
|
|
@@ -17038,7 +16989,6 @@ FREE GIFTS-
|
|
|
17038
16989
|
isExtractingTags={false}
|
|
17039
16990
|
isFetchingTestCustomers={false}
|
|
17040
16991
|
isFetchingTestGroups={false}
|
|
17041
|
-
isLoadingSenderDetails={false}
|
|
17042
16992
|
isSearchingCustomer={false}
|
|
17043
16993
|
isSendingTestMessage={false}
|
|
17044
16994
|
isUpdatingPreview={false}
|
|
@@ -17046,19 +16996,11 @@ FREE GIFTS-
|
|
|
17046
16996
|
onClose={[Function]}
|
|
17047
16997
|
prefilledValues={Object {}}
|
|
17048
16998
|
previewData={null}
|
|
17049
|
-
senderDetailsByChannel={
|
|
17050
|
-
Object {
|
|
17051
|
-
"EMAIL": Array [],
|
|
17052
|
-
"SMS": Array [],
|
|
17053
|
-
"WHATSAPP": Array [],
|
|
17054
|
-
}
|
|
17055
|
-
}
|
|
17056
16999
|
show={false}
|
|
17057
17000
|
testCustomers={Immutable.List []}
|
|
17058
17001
|
testGroups={Immutable.List []}
|
|
17059
17002
|
updatePreviewError={null}
|
|
17060
17003
|
updatePreviewErrors={Array []}
|
|
17061
|
-
wecrmAccounts={Array []}
|
|
17062
17004
|
>
|
|
17063
17005
|
<TestAndPreviewSlidebox
|
|
17064
17006
|
actions={
|
|
@@ -17070,10 +17012,8 @@ FREE GIFTS-
|
|
|
17070
17012
|
"createMessageMetaRequested": [Function],
|
|
17071
17013
|
"extractTagsRequested": [Function],
|
|
17072
17014
|
"getPrefilledValuesRequested": [Function],
|
|
17073
|
-
"getSenderDetailsRequested": [Function],
|
|
17074
17015
|
"getTestCustomersRequested": [Function],
|
|
17075
17016
|
"getTestGroupsRequested": [Function],
|
|
17076
|
-
"getWeCrmAccountsRequested": [Function],
|
|
17077
17017
|
"searchCustomersRequested": [Function],
|
|
17078
17018
|
"sendTestMessageRequested": [Function],
|
|
17079
17019
|
"updatePreviewRequested": [Function],
|
|
@@ -19364,28 +19304,18 @@ new message content.",
|
|
|
19364
19304
|
isExtractingTags={false}
|
|
19365
19305
|
isFetchingTestCustomers={false}
|
|
19366
19306
|
isFetchingTestGroups={false}
|
|
19367
|
-
isLoadingSenderDetails={false}
|
|
19368
19307
|
isSearchingCustomer={false}
|
|
19369
19308
|
isSendingTestMessage={false}
|
|
19370
19309
|
isUpdatingPreview={false}
|
|
19371
19310
|
messageMetaConfigId={null}
|
|
19372
19311
|
onClose={[Function]}
|
|
19373
|
-
orgUnitId={-1}
|
|
19374
19312
|
prefilledValues={Object {}}
|
|
19375
19313
|
previewData={null}
|
|
19376
|
-
senderDetailsByChannel={
|
|
19377
|
-
Object {
|
|
19378
|
-
"EMAIL": Array [],
|
|
19379
|
-
"SMS": Array [],
|
|
19380
|
-
"WHATSAPP": Array [],
|
|
19381
|
-
}
|
|
19382
|
-
}
|
|
19383
19314
|
show={false}
|
|
19384
19315
|
testCustomers={Immutable.List []}
|
|
19385
19316
|
testGroups={Immutable.List []}
|
|
19386
19317
|
updatePreviewError={null}
|
|
19387
19318
|
updatePreviewErrors={Array []}
|
|
19388
|
-
wecrmAccounts={Array []}
|
|
19389
19319
|
>
|
|
19390
19320
|
<CommonTestAndPreview
|
|
19391
19321
|
actions={
|
|
@@ -19397,10 +19327,8 @@ new message content.",
|
|
|
19397
19327
|
"createMessageMetaRequested": [Function],
|
|
19398
19328
|
"extractTagsRequested": [Function],
|
|
19399
19329
|
"getPrefilledValuesRequested": [Function],
|
|
19400
|
-
"getSenderDetailsRequested": [Function],
|
|
19401
19330
|
"getTestCustomersRequested": [Function],
|
|
19402
19331
|
"getTestGroupsRequested": [Function],
|
|
19403
|
-
"getWeCrmAccountsRequested": [Function],
|
|
19404
19332
|
"searchCustomersRequested": [Function],
|
|
19405
19333
|
"sendTestMessageRequested": [Function],
|
|
19406
19334
|
"updatePreviewRequested": [Function],
|
|
@@ -21698,25 +21626,16 @@ new message content.",
|
|
|
21698
21626
|
isExtractingTags={false}
|
|
21699
21627
|
isFetchingTestCustomers={false}
|
|
21700
21628
|
isFetchingTestGroups={false}
|
|
21701
|
-
isLoadingSenderDetails={false}
|
|
21702
21629
|
isSearchingCustomer={false}
|
|
21703
21630
|
isSendingTestMessage={false}
|
|
21704
21631
|
isUpdatingPreview={false}
|
|
21705
21632
|
messageMetaConfigId={null}
|
|
21706
21633
|
onClose={[Function]}
|
|
21707
|
-
orgUnitId={-1}
|
|
21708
21634
|
prefilledValues={Object {}}
|
|
21709
21635
|
previewData={null}
|
|
21710
21636
|
rcsIosPreview={false}
|
|
21711
21637
|
rcsOrientation={null}
|
|
21712
21638
|
rcsType={null}
|
|
21713
|
-
senderDetailsByChannel={
|
|
21714
|
-
Object {
|
|
21715
|
-
"EMAIL": Array [],
|
|
21716
|
-
"SMS": Array [],
|
|
21717
|
-
"WHATSAPP": Array [],
|
|
21718
|
-
}
|
|
21719
|
-
}
|
|
21720
21639
|
show={false}
|
|
21721
21640
|
templateLayoutType={null}
|
|
21722
21641
|
testCustomers={Immutable.List []}
|
|
@@ -21724,7 +21643,6 @@ new message content.",
|
|
|
21724
21643
|
unicodeEnabled={false}
|
|
21725
21644
|
updatePreviewError={null}
|
|
21726
21645
|
updatePreviewErrors={Array []}
|
|
21727
|
-
wecrmAccounts={Array []}
|
|
21728
21646
|
whatsappAccountName={null}
|
|
21729
21647
|
whatsappContentLen={0}
|
|
21730
21648
|
>
|
|
@@ -21778,14 +21696,6 @@ BUY1GET1-
|
|
|
21778
21696
|
FREE GIFTS-
|
|
21779
21697
|
{#var#}
|
|
21780
21698
|
{#var#}"
|
|
21781
|
-
deliverySettings={
|
|
21782
|
-
Object {
|
|
21783
|
-
"cdmaSenderId": "",
|
|
21784
|
-
"domainGatewayMapId": null,
|
|
21785
|
-
"domainId": null,
|
|
21786
|
-
"gsmSenderId": "",
|
|
21787
|
-
}
|
|
21788
|
-
}
|
|
21789
21699
|
formData={
|
|
21790
21700
|
Object {
|
|
21791
21701
|
"templateConfigs": Object {
|
|
@@ -21809,11 +21719,8 @@ FREE GIFTS-
|
|
|
21809
21719
|
handleTestEntitiesChange={[Function]}
|
|
21810
21720
|
isFetchingTestCustomers={false}
|
|
21811
21721
|
isFetchingTestGroups={false}
|
|
21812
|
-
isLoadingSenderDetails={false}
|
|
21813
21722
|
isSendingTestMessage={false}
|
|
21814
|
-
onSaveDeliverySettings={[Function]}
|
|
21815
21723
|
selectedTestEntities={Array []}
|
|
21816
|
-
senderDetailsOptions={Array []}
|
|
21817
21724
|
testEntitiesTreeData={
|
|
21818
21725
|
Array [
|
|
21819
21726
|
Object {
|
|
@@ -21830,7 +21737,6 @@ FREE GIFTS-
|
|
|
21830
21737
|
},
|
|
21831
21738
|
]
|
|
21832
21739
|
}
|
|
21833
|
-
wecrmAccounts={Array []}
|
|
21834
21740
|
/>
|
|
21835
21741
|
</CapRow>
|
|
21836
21742
|
<CapDivider
|
|
@@ -26211,7 +26117,7 @@ FREE GIFTS-
|
|
|
26211
26117
|
<CapCheckbox
|
|
26212
26118
|
checked={false}
|
|
26213
26119
|
disabled={false}
|
|
26214
|
-
key=".
|
|
26120
|
+
key=".3"
|
|
26215
26121
|
labelType="h4"
|
|
26216
26122
|
onChange={[Function]}
|
|
26217
26123
|
>
|
|
@@ -26273,7 +26179,7 @@ FREE GIFTS-
|
|
|
26273
26179
|
</div>
|
|
26274
26180
|
</CapCheckbox>
|
|
26275
26181
|
<div
|
|
26276
|
-
key=".
|
|
26182
|
+
key=".5"
|
|
26277
26183
|
style={
|
|
26278
26184
|
Object {
|
|
26279
26185
|
"marginBottom": "100px",
|
|
@@ -28040,10 +27946,8 @@ FREE GIFTS-
|
|
|
28040
27946
|
"createMessageMetaRequested": [Function],
|
|
28041
27947
|
"extractTagsRequested": [Function],
|
|
28042
27948
|
"getPrefilledValuesRequested": [Function],
|
|
28043
|
-
"getSenderDetailsRequested": [Function],
|
|
28044
27949
|
"getTestCustomersRequested": [Function],
|
|
28045
27950
|
"getTestGroupsRequested": [Function],
|
|
28046
|
-
"getWeCrmAccountsRequested": [Function],
|
|
28047
27951
|
"searchCustomersRequested": [Function],
|
|
28048
27952
|
"sendTestMessageRequested": [Function],
|
|
28049
27953
|
"updatePreviewRequested": [Function],
|
|
@@ -28086,7 +27990,6 @@ FREE GIFTS-
|
|
|
28086
27990
|
isExtractingTags={false}
|
|
28087
27991
|
isFetchingTestCustomers={false}
|
|
28088
27992
|
isFetchingTestGroups={false}
|
|
28089
|
-
isLoadingSenderDetails={false}
|
|
28090
27993
|
isSearchingCustomer={false}
|
|
28091
27994
|
isSendingTestMessage={false}
|
|
28092
27995
|
isUpdatingPreview={false}
|
|
@@ -28094,19 +27997,11 @@ FREE GIFTS-
|
|
|
28094
27997
|
onClose={[Function]}
|
|
28095
27998
|
prefilledValues={Object {}}
|
|
28096
27999
|
previewData={null}
|
|
28097
|
-
senderDetailsByChannel={
|
|
28098
|
-
Object {
|
|
28099
|
-
"EMAIL": Array [],
|
|
28100
|
-
"SMS": Array [],
|
|
28101
|
-
"WHATSAPP": Array [],
|
|
28102
|
-
}
|
|
28103
|
-
}
|
|
28104
28000
|
show={false}
|
|
28105
28001
|
testCustomers={Immutable.List []}
|
|
28106
28002
|
testGroups={Immutable.List []}
|
|
28107
28003
|
updatePreviewError={null}
|
|
28108
28004
|
updatePreviewErrors={Array []}
|
|
28109
|
-
wecrmAccounts={Array []}
|
|
28110
28005
|
>
|
|
28111
28006
|
<TestAndPreviewSlidebox
|
|
28112
28007
|
actions={
|
|
@@ -28118,10 +28013,8 @@ FREE GIFTS-
|
|
|
28118
28013
|
"createMessageMetaRequested": [Function],
|
|
28119
28014
|
"extractTagsRequested": [Function],
|
|
28120
28015
|
"getPrefilledValuesRequested": [Function],
|
|
28121
|
-
"getSenderDetailsRequested": [Function],
|
|
28122
28016
|
"getTestCustomersRequested": [Function],
|
|
28123
28017
|
"getTestGroupsRequested": [Function],
|
|
28124
|
-
"getWeCrmAccountsRequested": [Function],
|
|
28125
28018
|
"searchCustomersRequested": [Function],
|
|
28126
28019
|
"sendTestMessageRequested": [Function],
|
|
28127
28020
|
"updatePreviewRequested": [Function],
|
|
@@ -30412,28 +30305,18 @@ new message content.",
|
|
|
30412
30305
|
isExtractingTags={false}
|
|
30413
30306
|
isFetchingTestCustomers={false}
|
|
30414
30307
|
isFetchingTestGroups={false}
|
|
30415
|
-
isLoadingSenderDetails={false}
|
|
30416
30308
|
isSearchingCustomer={false}
|
|
30417
30309
|
isSendingTestMessage={false}
|
|
30418
30310
|
isUpdatingPreview={false}
|
|
30419
30311
|
messageMetaConfigId={null}
|
|
30420
30312
|
onClose={[Function]}
|
|
30421
|
-
orgUnitId={-1}
|
|
30422
30313
|
prefilledValues={Object {}}
|
|
30423
30314
|
previewData={null}
|
|
30424
|
-
senderDetailsByChannel={
|
|
30425
|
-
Object {
|
|
30426
|
-
"EMAIL": Array [],
|
|
30427
|
-
"SMS": Array [],
|
|
30428
|
-
"WHATSAPP": Array [],
|
|
30429
|
-
}
|
|
30430
|
-
}
|
|
30431
30315
|
show={false}
|
|
30432
30316
|
testCustomers={Immutable.List []}
|
|
30433
30317
|
testGroups={Immutable.List []}
|
|
30434
30318
|
updatePreviewError={null}
|
|
30435
30319
|
updatePreviewErrors={Array []}
|
|
30436
|
-
wecrmAccounts={Array []}
|
|
30437
30320
|
>
|
|
30438
30321
|
<CommonTestAndPreview
|
|
30439
30322
|
actions={
|
|
@@ -30445,10 +30328,8 @@ new message content.",
|
|
|
30445
30328
|
"createMessageMetaRequested": [Function],
|
|
30446
30329
|
"extractTagsRequested": [Function],
|
|
30447
30330
|
"getPrefilledValuesRequested": [Function],
|
|
30448
|
-
"getSenderDetailsRequested": [Function],
|
|
30449
30331
|
"getTestCustomersRequested": [Function],
|
|
30450
30332
|
"getTestGroupsRequested": [Function],
|
|
30451
|
-
"getWeCrmAccountsRequested": [Function],
|
|
30452
30333
|
"searchCustomersRequested": [Function],
|
|
30453
30334
|
"sendTestMessageRequested": [Function],
|
|
30454
30335
|
"updatePreviewRequested": [Function],
|
|
@@ -32746,25 +32627,16 @@ new message content.",
|
|
|
32746
32627
|
isExtractingTags={false}
|
|
32747
32628
|
isFetchingTestCustomers={false}
|
|
32748
32629
|
isFetchingTestGroups={false}
|
|
32749
|
-
isLoadingSenderDetails={false}
|
|
32750
32630
|
isSearchingCustomer={false}
|
|
32751
32631
|
isSendingTestMessage={false}
|
|
32752
32632
|
isUpdatingPreview={false}
|
|
32753
32633
|
messageMetaConfigId={null}
|
|
32754
32634
|
onClose={[Function]}
|
|
32755
|
-
orgUnitId={-1}
|
|
32756
32635
|
prefilledValues={Object {}}
|
|
32757
32636
|
previewData={null}
|
|
32758
32637
|
rcsIosPreview={false}
|
|
32759
32638
|
rcsOrientation={null}
|
|
32760
32639
|
rcsType={null}
|
|
32761
|
-
senderDetailsByChannel={
|
|
32762
|
-
Object {
|
|
32763
|
-
"EMAIL": Array [],
|
|
32764
|
-
"SMS": Array [],
|
|
32765
|
-
"WHATSAPP": Array [],
|
|
32766
|
-
}
|
|
32767
|
-
}
|
|
32768
32640
|
show={false}
|
|
32769
32641
|
templateLayoutType={null}
|
|
32770
32642
|
testCustomers={Immutable.List []}
|
|
@@ -32772,7 +32644,6 @@ new message content.",
|
|
|
32772
32644
|
unicodeEnabled={false}
|
|
32773
32645
|
updatePreviewError={null}
|
|
32774
32646
|
updatePreviewErrors={Array []}
|
|
32775
|
-
wecrmAccounts={Array []}
|
|
32776
32647
|
whatsappAccountName={null}
|
|
32777
32648
|
whatsappContentLen={0}
|
|
32778
32649
|
>
|
|
@@ -32826,14 +32697,6 @@ BUY1GET1-
|
|
|
32826
32697
|
FREE GIFTS-
|
|
32827
32698
|
{#var#}
|
|
32828
32699
|
{#var#}"
|
|
32829
|
-
deliverySettings={
|
|
32830
|
-
Object {
|
|
32831
|
-
"cdmaSenderId": "",
|
|
32832
|
-
"domainGatewayMapId": null,
|
|
32833
|
-
"domainId": null,
|
|
32834
|
-
"gsmSenderId": "",
|
|
32835
|
-
}
|
|
32836
|
-
}
|
|
32837
32700
|
formData={
|
|
32838
32701
|
Object {
|
|
32839
32702
|
"templateConfigs": Object {
|
|
@@ -32857,11 +32720,8 @@ FREE GIFTS-
|
|
|
32857
32720
|
handleTestEntitiesChange={[Function]}
|
|
32858
32721
|
isFetchingTestCustomers={false}
|
|
32859
32722
|
isFetchingTestGroups={false}
|
|
32860
|
-
isLoadingSenderDetails={false}
|
|
32861
32723
|
isSendingTestMessage={false}
|
|
32862
|
-
onSaveDeliverySettings={[Function]}
|
|
32863
32724
|
selectedTestEntities={Array []}
|
|
32864
|
-
senderDetailsOptions={Array []}
|
|
32865
32725
|
testEntitiesTreeData={
|
|
32866
32726
|
Array [
|
|
32867
32727
|
Object {
|
|
@@ -32878,7 +32738,6 @@ FREE GIFTS-
|
|
|
32878
32738
|
},
|
|
32879
32739
|
]
|
|
32880
32740
|
}
|
|
32881
|
-
wecrmAccounts={Array []}
|
|
32882
32741
|
/>
|
|
32883
32742
|
</CapRow>
|
|
32884
32743
|
<CapDivider
|
|
@@ -36,6 +36,7 @@ const SmsWrapper = (props) => {
|
|
|
36
36
|
handleTestAndPreview,
|
|
37
37
|
handleCloseTestAndPreview,
|
|
38
38
|
isTestAndPreviewMode,
|
|
39
|
+
onValidationFail,
|
|
39
40
|
} = props;
|
|
40
41
|
|
|
41
42
|
const smsProps = {
|
|
@@ -58,6 +59,7 @@ const SmsWrapper = (props) => {
|
|
|
58
59
|
handleTestAndPreview,
|
|
59
60
|
handleCloseTestAndPreview,
|
|
60
61
|
isTestAndPreviewMode,
|
|
62
|
+
onValidationFail,
|
|
61
63
|
};
|
|
62
64
|
const isTraiDlt = isTraiDLTEnable(isFullMode, smsRegister);
|
|
63
65
|
return <>
|
|
@@ -105,12 +105,10 @@ export const useTagManagement = ({
|
|
|
105
105
|
const validationConfig = useMemo(
|
|
106
106
|
() => ({
|
|
107
107
|
tagsParam: tags,
|
|
108
|
-
injectedTagsParams: injectedTags,
|
|
109
108
|
location,
|
|
110
109
|
tagModule: getDefaultTags,
|
|
111
|
-
eventContextTags,
|
|
112
110
|
}),
|
|
113
|
-
[tags,
|
|
111
|
+
[tags, location, getDefaultTags],
|
|
114
112
|
);
|
|
115
113
|
|
|
116
114
|
return {
|
|
@@ -528,26 +528,19 @@ describe('useTagManagement', () => {
|
|
|
528
528
|
|
|
529
529
|
describe('validationConfig', () => {
|
|
530
530
|
it('should return validation config with tags', () => {
|
|
531
|
-
const injectedTags = [{ id: 5, name: 'Injected Tag' }];
|
|
532
|
-
const eventContextTags = [{ id: 6, name: 'Event Tag' }];
|
|
533
|
-
|
|
534
531
|
const { result } = renderHook(() =>
|
|
535
532
|
useTagManagement({
|
|
536
533
|
location: defaultLocation,
|
|
537
534
|
globalActions: mockGlobalActions,
|
|
538
535
|
metaEntities: defaultMetaEntities,
|
|
539
|
-
injectedTags,
|
|
540
|
-
eventContextTags,
|
|
541
536
|
getDefaultTags: 'custom',
|
|
542
537
|
})
|
|
543
538
|
);
|
|
544
539
|
|
|
545
540
|
expect(result.current.validationConfig).toEqual({
|
|
546
541
|
tagsParam: defaultMetaEntities.tags.standard,
|
|
547
|
-
injectedTagsParams: injectedTags,
|
|
548
542
|
location: defaultLocation,
|
|
549
543
|
tagModule: 'custom',
|
|
550
|
-
eventContextTags,
|
|
551
544
|
});
|
|
552
545
|
});
|
|
553
546
|
|
|
@@ -295,8 +295,8 @@ const WebPushCreate = ({
|
|
|
295
295
|
const validateTemplateName = useCallback((value) => validateTemplateNameUtil(value), []);
|
|
296
296
|
|
|
297
297
|
const validateTitle = useCallback(
|
|
298
|
-
(value) => validateTitleUtil(value, formatMessage, messages, restrictPersonalization),
|
|
299
|
-
[formatMessage, restrictPersonalization],
|
|
298
|
+
(value) => validateTitleUtil(value, formatMessage, messages, restrictPersonalization, validationConfig, isFullMode),
|
|
299
|
+
[formatMessage, restrictPersonalization, validationConfig, isFullMode],
|
|
300
300
|
);
|
|
301
301
|
|
|
302
302
|
const validateUrl = useCallback(
|
|
@@ -11,19 +11,34 @@ import { hasPersonalizationTags } from '../../../../utils/commonUtils';
|
|
|
11
11
|
export const validateTemplateName = (value) => !value || value.trim() === '';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* Validates notification title
|
|
14
|
+
* Validates notification title (required and optional tag validation)
|
|
15
15
|
* @param {string} value - The title value
|
|
16
16
|
* @param {Function} formatMessage - i18n format message function
|
|
17
17
|
* @param {Object} messages - Message definitions
|
|
18
|
+
* @param {Object} [validationConfig] - Optional config for tag validation
|
|
19
|
+
* @param {boolean} [isFullMode] - Optional; when set with validationConfig, runs tag validation
|
|
18
20
|
* @returns {string} Error message if invalid, empty string if valid
|
|
19
21
|
*/
|
|
20
|
-
export const validateTitle = (value, formatMessage, messages, restrictPersonalization) => {
|
|
22
|
+
export const validateTitle = (value, formatMessage, messages, restrictPersonalization, validationConfig, isFullMode) => {
|
|
21
23
|
if (!value || value.trim() === '') {
|
|
22
24
|
return formatMessage(messages.titleRequired);
|
|
23
25
|
}
|
|
24
26
|
if (restrictPersonalization && hasPersonalizationTags(value)) {
|
|
25
27
|
return formatMessage(messages.personalizationTokensErrorMessage);
|
|
26
28
|
}
|
|
29
|
+
|
|
30
|
+
if (validationConfig != null) {
|
|
31
|
+
const validationResponse = validateTags({
|
|
32
|
+
content: value,
|
|
33
|
+
...validationConfig,
|
|
34
|
+
isFullMode,
|
|
35
|
+
}) || {};
|
|
36
|
+
|
|
37
|
+
if (validationResponse?.isBraceError) {
|
|
38
|
+
return formatMessage(globalMessages.unbalanacedCurlyBraces);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
27
42
|
return '';
|
|
28
43
|
};
|
|
29
44
|
|