@capillarytech/creatives-library 7.17.173 → 7.17.174

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "7.17.173",
4
+ "version": "7.17.174",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -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": true,
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": true,
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={true}
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={true}
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 ant-checkbox-wrapper-checked"
4328
+ className="ant-checkbox-wrapper"
4329
4329
  >
4330
4330
  <Checkbox
4331
- checked={true}
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 ant-checkbox-checked"
4343
+ className="ant-checkbox"
4344
4344
  style={Object {}}
4345
4345
  >
4346
4346
  <input
4347
- checked={true}
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={true}
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={true}
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={true}
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={true}
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 ant-checkbox-wrapper-checked"
11658
+ className="ant-checkbox-wrapper"
11659
11659
  >
11660
11660
  <Checkbox
11661
- checked={true}
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 ant-checkbox-checked"
11673
+ className="ant-checkbox"
11674
11674
  style={Object {}}
11675
11675
  >
11676
11676
  <input
11677
- checked={true}
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={true}
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={true}
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={true}
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={true}
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 ant-checkbox-wrapper-checked"
19408
+ className="ant-checkbox-wrapper"
19409
19409
  >
19410
19410
  <Checkbox
19411
- checked={true}
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 ant-checkbox-checked"
19423
+ className="ant-checkbox"
19424
19424
  style={Object {}}
19425
19425
  >
19426
19426
  <input
19427
- checked={true}
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={true}
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={true}
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": true,
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": true,
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": true,
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": true,
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={true}
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={true}
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 ant-checkbox-wrapper-checked"
27267
+ className="ant-checkbox-wrapper"
27268
27268
  >
27269
27269
  <Checkbox
27270
- checked={true}
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 ant-checkbox-checked"
27282
+ className="ant-checkbox"
27283
27283
  style={Object {}}
27284
27284
  >
27285
27285
  <input
27286
- checked={true}
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={true}
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={true}
29618
+ unicodeEnabled={false}
29619
29619
  >
29620
29620
  <CapRow>
29621
29621
  <Row
@@ -21,7 +21,6 @@ import messages from './messages';
21
21
  import * as actions from './actions';
22
22
  import * as templateActions from '../Templates/actions';
23
23
  import Templates from '../Templates';
24
- import * as commonUtil from '../../utils/common';
25
24
  import CallTask from '../CallTask';
26
25
  import Facebook from '../Facebook';
27
26
  import Viber from '../Viber';
@@ -61,6 +60,7 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
61
60
  sms: {content: <></>, tab: intl.formatMessage(messages.sms), key: 'sms'},
62
61
  rcs: { content: <></>, tab: intl.formatMessage(messages.rcs), key: RCS },
63
62
  email: {content: <></>, tab: intl.formatMessage(messages.email), key: 'email'},
63
+ weChat: {content: <></>, tab: intl.formatMessage(messages.wechat), key: 'wechat'},
64
64
  //'wechat': {content: this.getTemplatesComponent('wechat'), tab: 'Wechat', key: 'wechat'},
65
65
  mPush: {content: <></>, tab: intl.formatMessage(messages.pushNotification), key: 'mobilepush'},
66
66
  inApp: { content: <div></div>, tab: intl.formatMessage(messages.inapp), key: INAPP },
@@ -70,15 +70,6 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
70
70
  whatsapp: { content: <></>, tab: intl.formatMessage(messages.whatsapp), key: WHATSAPP },
71
71
  zalo: { content: <div></div>, tab: intl.formatMessage(messages.zalo), key: ZALO },
72
72
  };
73
- //Hiding we chat for all orgs across UI for now and enabling it based on feature 'ENABLE_WECHAT'
74
-
75
- if (commonUtil.hasWechatFeatureEnabled()) {
76
- defaultPanes.weChat = {
77
- content: <></>,
78
- tab: intl.formatMessage(messages.wechat),
79
- key: 'wechat',
80
- };
81
- }
82
73
  let filteredPanes = Object.keys(defaultPanes)
83
74
  .filter((key) => !channelsToHide.includes(key)).reduce((obj = [], key) => {
84
75
  obj.push(defaultPanes[key]);
@@ -162,7 +153,7 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
162
153
  if (queryItems.channel === WHATSAPP) {
163
154
  this.channelChange(WHATSAPP);
164
155
  }
165
- if (this.props?.isFullMode) {
156
+ if(this.props?.isFullMode){
166
157
  this.props.templateActions.getCdnTransformationConfig();
167
158
  }
168
159
  }
@@ -91,8 +91,7 @@ describe("Test TemplatesV2", () => {
91
91
  expect(getByText('Email')).toBeInTheDocument();
92
92
  expect(getByText('Push notification')).toBeInTheDocument();
93
93
  expect(getByText('Line')).toBeInTheDocument();
94
- //commented for removing wechat in tab
95
- // expect(getByText('Wechat')).toBeInTheDocument();
94
+ expect(getByText('Wechat')).toBeInTheDocument();
96
95
  expect(getByText('Viber')).toBeInTheDocument();
97
96
  expect(getByText('Facebook')).toBeInTheDocument();
98
97
  expect(getByText('WhatsApp')).toBeInTheDocument();