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