@capillarytech/creatives-library 7.17.173 → 7.17.175
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/package.json
CHANGED
|
@@ -77,9 +77,11 @@ describe("Creatives testing template creation", () => {
|
|
|
77
77
|
const whatsapp = creativesScreen.getByRole('tab', {
|
|
78
78
|
name: /whatsapp/i,
|
|
79
79
|
});
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
|
|
81
|
+
//Currently weChat tab has been disabled as we dont suppport it anymore
|
|
82
|
+
// const wechat = creativesScreen.getByRole('tab', {
|
|
83
|
+
// name: /wechat/i,
|
|
84
|
+
// });
|
|
83
85
|
const facebook = creativesScreen.getByRole('tab', {
|
|
84
86
|
name: /facebook/i,
|
|
85
87
|
});
|
|
@@ -109,8 +111,10 @@ describe("Creatives testing template creation", () => {
|
|
|
109
111
|
expect(creativesScreen.getByText(/text/i)).toBeInTheDocument();
|
|
110
112
|
userEvent.click(creativesScreen.getByText(/text/i));
|
|
111
113
|
await userEvent.click(facebook);
|
|
112
|
-
|
|
113
|
-
|
|
114
|
+
|
|
115
|
+
//Currently weChat tab has been disabled as we dont suppport it anymore
|
|
116
|
+
// await userEvent.click(wechat);
|
|
117
|
+
// expect(creativesScreen.getByText(/wechat account/i)).toBeInTheDocument();
|
|
114
118
|
await userEvent.click(mpush);
|
|
115
119
|
expect(
|
|
116
120
|
creativesScreen.getByText(/push notifications are not setup for your brand/i)
|
|
@@ -162,6 +162,7 @@ export const SmsTraiEdit = (props) => {
|
|
|
162
162
|
const {
|
|
163
163
|
'var-mapped': varMapped = {},
|
|
164
164
|
'updated-sms-editor': traiSmsEditor = '',
|
|
165
|
+
'unicode-validity': unicodeValidity = true,
|
|
165
166
|
} = traiBase;
|
|
166
167
|
//if varMap and updated-sms-editor is already present on non first edits,use those values
|
|
167
168
|
if (!isEmpty(varMapped)) {
|
|
@@ -196,6 +197,7 @@ export const SmsTraiEdit = (props) => {
|
|
|
196
197
|
}
|
|
197
198
|
setUpdatedSmsEditor(tempMsgArray);
|
|
198
199
|
}
|
|
200
|
+
updateIsUnicodeAllowed(unicodeValidity);
|
|
199
201
|
// calcaulate message length here
|
|
200
202
|
calculateTotalMessageLength();
|
|
201
203
|
}
|
|
@@ -2903,7 +2903,7 @@ FREE GIFTS-
|
|
|
2903
2903
|
"template_id": "'1107160207324585172'",
|
|
2904
2904
|
"template_name": "CAP71871_4",
|
|
2905
2905
|
"type": "Service-Explicit",
|
|
2906
|
-
"unicode-validity":
|
|
2906
|
+
"unicode-validity": false,
|
|
2907
2907
|
"updated-sms-editor": Array [
|
|
2908
2908
|
"LATEST FASHION@VISHAL
|
|
2909
2909
|
",
|
|
@@ -2975,7 +2975,7 @@ FREE GIFTS-
|
|
|
2975
2975
|
"template_id": "'1107160207324585172'",
|
|
2976
2976
|
"template_name": "CAP71871_4",
|
|
2977
2977
|
"type": "Service-Explicit",
|
|
2978
|
-
"unicode-validity":
|
|
2978
|
+
"unicode-validity": false,
|
|
2979
2979
|
"updated-sms-editor": Array [
|
|
2980
2980
|
"LATEST FASHION@VISHAL
|
|
2981
2981
|
",
|
|
@@ -4309,7 +4309,7 @@ FREE GIFTS-
|
|
|
4309
4309
|
</Row>
|
|
4310
4310
|
</CapRow>
|
|
4311
4311
|
<CapCheckbox
|
|
4312
|
-
checked={
|
|
4312
|
+
checked={false}
|
|
4313
4313
|
disabled={false}
|
|
4314
4314
|
key=".4"
|
|
4315
4315
|
labelType="h4"
|
|
@@ -4319,16 +4319,16 @@ FREE GIFTS-
|
|
|
4319
4319
|
className="cap-checkbox-v2"
|
|
4320
4320
|
>
|
|
4321
4321
|
<Checkbox
|
|
4322
|
-
checked={
|
|
4322
|
+
checked={false}
|
|
4323
4323
|
disabled={false}
|
|
4324
4324
|
indeterminate={false}
|
|
4325
4325
|
onChange={[Function]}
|
|
4326
4326
|
>
|
|
4327
4327
|
<label
|
|
4328
|
-
className="ant-checkbox-wrapper
|
|
4328
|
+
className="ant-checkbox-wrapper"
|
|
4329
4329
|
>
|
|
4330
4330
|
<Checkbox
|
|
4331
|
-
checked={
|
|
4331
|
+
checked={false}
|
|
4332
4332
|
className=""
|
|
4333
4333
|
defaultChecked={false}
|
|
4334
4334
|
disabled={false}
|
|
@@ -4340,11 +4340,11 @@ FREE GIFTS-
|
|
|
4340
4340
|
type="checkbox"
|
|
4341
4341
|
>
|
|
4342
4342
|
<span
|
|
4343
|
-
className="ant-checkbox
|
|
4343
|
+
className="ant-checkbox"
|
|
4344
4344
|
style={Object {}}
|
|
4345
4345
|
>
|
|
4346
4346
|
<input
|
|
4347
|
-
checked={
|
|
4347
|
+
checked={false}
|
|
4348
4348
|
className="ant-checkbox-input"
|
|
4349
4349
|
disabled={false}
|
|
4350
4350
|
onBlur={[Function]}
|
|
@@ -4409,7 +4409,7 @@ FREE GIFTS-
|
|
|
4409
4409
|
{#var#}
|
|
4410
4410
|
{#var#}"
|
|
4411
4411
|
key=".0"
|
|
4412
|
-
unicodeEnabled={
|
|
4412
|
+
unicodeEnabled={false}
|
|
4413
4413
|
>
|
|
4414
4414
|
<TemplatePreview
|
|
4415
4415
|
channel="SMS"
|
|
@@ -6676,7 +6676,7 @@ new message content.",
|
|
|
6676
6676
|
"timeZone": null,
|
|
6677
6677
|
}
|
|
6678
6678
|
}
|
|
6679
|
-
unicodeEnabled={
|
|
6679
|
+
unicodeEnabled={false}
|
|
6680
6680
|
>
|
|
6681
6681
|
<CapRow>
|
|
6682
6682
|
<Row
|
|
@@ -11639,7 +11639,7 @@ FREE GIFTS-
|
|
|
11639
11639
|
</Row>
|
|
11640
11640
|
</CapRow>
|
|
11641
11641
|
<CapCheckbox
|
|
11642
|
-
checked={
|
|
11642
|
+
checked={false}
|
|
11643
11643
|
disabled={false}
|
|
11644
11644
|
key=".4"
|
|
11645
11645
|
labelType="h4"
|
|
@@ -11649,16 +11649,16 @@ FREE GIFTS-
|
|
|
11649
11649
|
className="cap-checkbox-v2"
|
|
11650
11650
|
>
|
|
11651
11651
|
<Checkbox
|
|
11652
|
-
checked={
|
|
11652
|
+
checked={false}
|
|
11653
11653
|
disabled={false}
|
|
11654
11654
|
indeterminate={false}
|
|
11655
11655
|
onChange={[Function]}
|
|
11656
11656
|
>
|
|
11657
11657
|
<label
|
|
11658
|
-
className="ant-checkbox-wrapper
|
|
11658
|
+
className="ant-checkbox-wrapper"
|
|
11659
11659
|
>
|
|
11660
11660
|
<Checkbox
|
|
11661
|
-
checked={
|
|
11661
|
+
checked={false}
|
|
11662
11662
|
className=""
|
|
11663
11663
|
defaultChecked={false}
|
|
11664
11664
|
disabled={false}
|
|
@@ -11670,11 +11670,11 @@ FREE GIFTS-
|
|
|
11670
11670
|
type="checkbox"
|
|
11671
11671
|
>
|
|
11672
11672
|
<span
|
|
11673
|
-
className="ant-checkbox
|
|
11673
|
+
className="ant-checkbox"
|
|
11674
11674
|
style={Object {}}
|
|
11675
11675
|
>
|
|
11676
11676
|
<input
|
|
11677
|
-
checked={
|
|
11677
|
+
checked={false}
|
|
11678
11678
|
className="ant-checkbox-input"
|
|
11679
11679
|
disabled={false}
|
|
11680
11680
|
onBlur={[Function]}
|
|
@@ -11739,7 +11739,7 @@ FREE GIFTS-
|
|
|
11739
11739
|
{#var#}
|
|
11740
11740
|
{#var#}"
|
|
11741
11741
|
key=".0"
|
|
11742
|
-
unicodeEnabled={
|
|
11742
|
+
unicodeEnabled={false}
|
|
11743
11743
|
>
|
|
11744
11744
|
<TemplatePreview
|
|
11745
11745
|
channel="SMS"
|
|
@@ -14006,7 +14006,7 @@ new message content.",
|
|
|
14006
14006
|
"timeZone": null,
|
|
14007
14007
|
}
|
|
14008
14008
|
}
|
|
14009
|
-
unicodeEnabled={
|
|
14009
|
+
unicodeEnabled={false}
|
|
14010
14010
|
>
|
|
14011
14011
|
<CapRow>
|
|
14012
14012
|
<Row
|
|
@@ -19389,7 +19389,7 @@ FREE GIFTS-
|
|
|
19389
19389
|
</Row>
|
|
19390
19390
|
</CapRow>
|
|
19391
19391
|
<CapCheckbox
|
|
19392
|
-
checked={
|
|
19392
|
+
checked={false}
|
|
19393
19393
|
disabled={false}
|
|
19394
19394
|
key=".4"
|
|
19395
19395
|
labelType="h4"
|
|
@@ -19399,16 +19399,16 @@ FREE GIFTS-
|
|
|
19399
19399
|
className="cap-checkbox-v2"
|
|
19400
19400
|
>
|
|
19401
19401
|
<Checkbox
|
|
19402
|
-
checked={
|
|
19402
|
+
checked={false}
|
|
19403
19403
|
disabled={false}
|
|
19404
19404
|
indeterminate={false}
|
|
19405
19405
|
onChange={[Function]}
|
|
19406
19406
|
>
|
|
19407
19407
|
<label
|
|
19408
|
-
className="ant-checkbox-wrapper
|
|
19408
|
+
className="ant-checkbox-wrapper"
|
|
19409
19409
|
>
|
|
19410
19410
|
<Checkbox
|
|
19411
|
-
checked={
|
|
19411
|
+
checked={false}
|
|
19412
19412
|
className=""
|
|
19413
19413
|
defaultChecked={false}
|
|
19414
19414
|
disabled={false}
|
|
@@ -19420,11 +19420,11 @@ FREE GIFTS-
|
|
|
19420
19420
|
type="checkbox"
|
|
19421
19421
|
>
|
|
19422
19422
|
<span
|
|
19423
|
-
className="ant-checkbox
|
|
19423
|
+
className="ant-checkbox"
|
|
19424
19424
|
style={Object {}}
|
|
19425
19425
|
>
|
|
19426
19426
|
<input
|
|
19427
|
-
checked={
|
|
19427
|
+
checked={false}
|
|
19428
19428
|
className="ant-checkbox-input"
|
|
19429
19429
|
disabled={false}
|
|
19430
19430
|
onBlur={[Function]}
|
|
@@ -19489,7 +19489,7 @@ FREE GIFTS-
|
|
|
19489
19489
|
{#var#}
|
|
19490
19490
|
{#var#}"
|
|
19491
19491
|
key=".0"
|
|
19492
|
-
unicodeEnabled={
|
|
19492
|
+
unicodeEnabled={false}
|
|
19493
19493
|
>
|
|
19494
19494
|
<TemplatePreview
|
|
19495
19495
|
channel="SMS"
|
|
@@ -21756,7 +21756,7 @@ new message content.",
|
|
|
21756
21756
|
"timeZone": null,
|
|
21757
21757
|
}
|
|
21758
21758
|
}
|
|
21759
|
-
unicodeEnabled={
|
|
21759
|
+
unicodeEnabled={false}
|
|
21760
21760
|
>
|
|
21761
21761
|
<CapRow>
|
|
21762
21762
|
<Row
|
|
@@ -24838,7 +24838,7 @@ FREE GIFTS-
|
|
|
24838
24838
|
"template_id": "'1107160207324585172'",
|
|
24839
24839
|
"template_name": "CAP71871_4",
|
|
24840
24840
|
"type": "Service-Explicit",
|
|
24841
|
-
"unicode-validity":
|
|
24841
|
+
"unicode-validity": false,
|
|
24842
24842
|
"updated-sms-editor": Array [
|
|
24843
24843
|
"LATEST FASHION@VISHAL
|
|
24844
24844
|
",
|
|
@@ -24910,7 +24910,7 @@ FREE GIFTS-
|
|
|
24910
24910
|
"template_id": "'1107160207324585172'",
|
|
24911
24911
|
"template_name": "CAP71871_4",
|
|
24912
24912
|
"type": "Service-Explicit",
|
|
24913
|
-
"unicode-validity":
|
|
24913
|
+
"unicode-validity": false,
|
|
24914
24914
|
"updated-sms-editor": Array [
|
|
24915
24915
|
"LATEST FASHION@VISHAL
|
|
24916
24916
|
",
|
|
@@ -25818,7 +25818,7 @@ FREE GIFTS-
|
|
|
25818
25818
|
"template_id": "'1107160207324585172'",
|
|
25819
25819
|
"template_name": "CAP71871_4",
|
|
25820
25820
|
"type": "Service-Explicit",
|
|
25821
|
-
"unicode-validity":
|
|
25821
|
+
"unicode-validity": false,
|
|
25822
25822
|
"updated-sms-editor": Array [
|
|
25823
25823
|
"LATEST FASHION@VISHAL
|
|
25824
25824
|
",
|
|
@@ -25890,7 +25890,7 @@ FREE GIFTS-
|
|
|
25890
25890
|
"template_id": "'1107160207324585172'",
|
|
25891
25891
|
"template_name": "CAP71871_4",
|
|
25892
25892
|
"type": "Service-Explicit",
|
|
25893
|
-
"unicode-validity":
|
|
25893
|
+
"unicode-validity": false,
|
|
25894
25894
|
"updated-sms-editor": Array [
|
|
25895
25895
|
"LATEST FASHION@VISHAL
|
|
25896
25896
|
",
|
|
@@ -27248,7 +27248,7 @@ FREE GIFTS-
|
|
|
27248
27248
|
</Row>
|
|
27249
27249
|
</CapRow>
|
|
27250
27250
|
<CapCheckbox
|
|
27251
|
-
checked={
|
|
27251
|
+
checked={false}
|
|
27252
27252
|
disabled={false}
|
|
27253
27253
|
key=".4"
|
|
27254
27254
|
labelType="h4"
|
|
@@ -27258,16 +27258,16 @@ FREE GIFTS-
|
|
|
27258
27258
|
className="cap-checkbox-v2"
|
|
27259
27259
|
>
|
|
27260
27260
|
<Checkbox
|
|
27261
|
-
checked={
|
|
27261
|
+
checked={false}
|
|
27262
27262
|
disabled={false}
|
|
27263
27263
|
indeterminate={false}
|
|
27264
27264
|
onChange={[Function]}
|
|
27265
27265
|
>
|
|
27266
27266
|
<label
|
|
27267
|
-
className="ant-checkbox-wrapper
|
|
27267
|
+
className="ant-checkbox-wrapper"
|
|
27268
27268
|
>
|
|
27269
27269
|
<Checkbox
|
|
27270
|
-
checked={
|
|
27270
|
+
checked={false}
|
|
27271
27271
|
className=""
|
|
27272
27272
|
defaultChecked={false}
|
|
27273
27273
|
disabled={false}
|
|
@@ -27279,11 +27279,11 @@ FREE GIFTS-
|
|
|
27279
27279
|
type="checkbox"
|
|
27280
27280
|
>
|
|
27281
27281
|
<span
|
|
27282
|
-
className="ant-checkbox
|
|
27282
|
+
className="ant-checkbox"
|
|
27283
27283
|
style={Object {}}
|
|
27284
27284
|
>
|
|
27285
27285
|
<input
|
|
27286
|
-
checked={
|
|
27286
|
+
checked={false}
|
|
27287
27287
|
className="ant-checkbox-input"
|
|
27288
27288
|
disabled={false}
|
|
27289
27289
|
onBlur={[Function]}
|
|
@@ -27348,7 +27348,7 @@ FREE GIFTS-
|
|
|
27348
27348
|
{#var#}
|
|
27349
27349
|
{#var#}"
|
|
27350
27350
|
key=".0"
|
|
27351
|
-
unicodeEnabled={
|
|
27351
|
+
unicodeEnabled={false}
|
|
27352
27352
|
>
|
|
27353
27353
|
<TemplatePreview
|
|
27354
27354
|
channel="SMS"
|
|
@@ -29615,7 +29615,7 @@ new message content.",
|
|
|
29615
29615
|
"timeZone": null,
|
|
29616
29616
|
}
|
|
29617
29617
|
}
|
|
29618
|
-
unicodeEnabled={
|
|
29618
|
+
unicodeEnabled={false}
|
|
29619
29619
|
>
|
|
29620
29620
|
<CapRow>
|
|
29621
29621
|
<Row
|