@capillarytech/creatives-library 8.0.36 → 8.0.38

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": "8.0.36",
4
+ "version": "8.0.38",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -17,7 +17,7 @@
17
17
  "@bugsnag/js": "^7.2.1",
18
18
  "@bugsnag/plugin-react": "7.2.1",
19
19
  "@capillarytech/cap-ui-utils": "3.0.4",
20
- "@capillarytech/vulcan-react-sdk": "^2.3.2-alpha.0",
20
+ "@capillarytech/vulcan-react-sdk": "^2.3.5",
21
21
  "@mailupinc/bee-plugin": "^1.2.0",
22
22
  "babel-cli": "^6.26.0",
23
23
  "chalk": "^2.4.2",
@@ -5,7 +5,7 @@ import * as types from './constants';
5
5
  export function* getAllAssets(assetType, queryParams) {
6
6
  try {
7
7
  const result = yield call(Api.getAllAssets, assetType, queryParams);
8
- yield put({ type: types.GET_ALL_ASSETS_SUCCESS, data: result?.response, isReset: queryParams.page === 1 });
8
+ yield put({ type: types.GET_ALL_ASSETS_SUCCESS, data: result?.response, isReset: assetType.queryParams.page === 1 });
9
9
  } catch (error) {
10
10
  yield put({ type: types.GET_ALL_ASSETS_FAILURE, error });
11
11
  }
@@ -85,7 +85,7 @@ exports[`Test SlideBoxContent container Should render correct component for line
85
85
  }
86
86
  viberBrandName=""
87
87
  />
88
- <withReducer(Connect(Connect(UserIsAuthenticated(InjectIntl(CreativesCommon)))))
88
+ <ForwardRef
89
89
  location={
90
90
  Object {
91
91
  "pathname": "/sms/edit",
@@ -283,7 +283,7 @@ exports[`Test SlideBoxContent container Should render correct component for line
283
283
  }
284
284
  viberBrandName=""
285
285
  />
286
- <withReducer(Connect(Connect(UserIsAuthenticated(InjectIntl(CreativesCommon)))))
286
+ <ForwardRef
287
287
  location={
288
288
  Object {
289
289
  "pathname": "/sms/edit",
@@ -453,7 +453,7 @@ exports[`Test SlideBoxContent container Should render correct component for line
453
453
  }
454
454
  viberBrandName=""
455
455
  />
456
- <withReducer(Connect(Connect(UserIsAuthenticated(InjectIntl(CreativesCommon)))))
456
+ <ForwardRef
457
457
  location={
458
458
  Object {
459
459
  "pathname": "/sms/edit",
@@ -517,7 +517,7 @@ exports[`Test SlideBoxContent container Should render correct component for line
517
517
 
518
518
  exports[`Test SlideBoxContent container Should render correct component for rcs channel create mode 1`] = `
519
519
  <SlideBoxContent__CreativesWrapper>
520
- <withReducer(Connect(Connect(UserIsAuthenticated(InjectIntl(CreativesCommon)))))
520
+ <ForwardRef
521
521
  getDefaultTags=""
522
522
  location={
523
523
  Object {
@@ -537,7 +537,7 @@ exports[`Test SlideBoxContent container Should render correct component for rcs
537
537
 
538
538
  exports[`Test SlideBoxContent container Should render correct component for rcs channel edit mode 1`] = `
539
539
  <SlideBoxContent__CreativesWrapper>
540
- <withReducer(Connect(Connect(UserIsAuthenticated(InjectIntl(CreativesCommon)))))
540
+ <ForwardRef
541
541
  getDefaultTags=""
542
542
  location={
543
543
  Object {
@@ -637,7 +637,7 @@ exports[`Test SlideBoxContent container Should render correct component for rcs
637
637
 
638
638
  exports[`Test SlideBoxContent container Should render correct component for rcs channel templates mode 1`] = `
639
639
  <SlideBoxContent__CreativesWrapper>
640
- <Connect(UserIsAuthenticated(withSaga(withReducer(Connect(InjectIntl(withStyles__StyledComponent))))))
640
+ <Connect(UserIsAuthenticated(Component))
641
641
  FTPMode="create"
642
642
  channel="rcs"
643
643
  location={
@@ -885,7 +885,7 @@ exports[`Test SlideBoxContent container Should render correct component for vibe
885
885
 
886
886
  exports[`Test SlideBoxContent container Should render correct component for whatsapp channel create mode 1`] = `
887
887
  <SlideBoxContent__CreativesWrapper>
888
- <withSaga(withReducer(Connect(Connect(UserIsAuthenticated(InjectIntl(CreativesCommon))))))
888
+ <ForwardRef
889
889
  onCreateComplete={[MockFunction]}
890
890
  />
891
891
  </SlideBoxContent__CreativesWrapper>
@@ -893,7 +893,7 @@ exports[`Test SlideBoxContent container Should render correct component for what
893
893
 
894
894
  exports[`Test SlideBoxContent container Should render correct component for whatsapp channel edit mode 1`] = `
895
895
  <SlideBoxContent__CreativesWrapper>
896
- <withSaga(withReducer(Connect(Connect(UserIsAuthenticated(InjectIntl(CreativesCommon))))))
896
+ <ForwardRef
897
897
  getDefaultTags=""
898
898
  location={
899
899
  Object {
@@ -1027,7 +1027,7 @@ Click {{3}} to unsubscribe",
1027
1027
 
1028
1028
  exports[`Test SlideBoxContent container Should render correct component for whatsapp channel templates mode 1`] = `
1029
1029
  <SlideBoxContent__CreativesWrapper>
1030
- <Connect(UserIsAuthenticated(withSaga(withReducer(Connect(InjectIntl(withStyles__StyledComponent))))))
1030
+ <Connect(UserIsAuthenticated(Component))
1031
1031
  FTPMode="create"
1032
1032
  channel="whatsapp"
1033
1033
  location={
@@ -26,8 +26,7 @@ import * as globalActions from '../Cap/actions';
26
26
  import './_email.scss';
27
27
  import {getMessageObject} from '../../utils/messageUtils';
28
28
  import EmailPreview from '../../v2Components/EmailPreview';
29
- import { getDecodedFileName } from '../../utils/common';
30
-
29
+ import { getDecodedFileName ,hasLiquidSupportFeature} from '../../utils/common';
31
30
  import Pagination from '../../v2Components/Pagination';
32
31
  import * as creativesContainerActions from '../CreativesContainer/actions';
33
32
  import withCreatives from '../../hoc/withCreatives';
@@ -156,6 +155,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
156
155
  deleteLanguage: this.deleteLanguage,
157
156
  },
158
157
  };
158
+ this.liquidFlow = hasLiquidSupportFeature();
159
159
  }
160
160
  componentWillMount() {
161
161
  const formData = this.initFormData(this.props, true); //_.cloneDeep(this.state.formData);
@@ -217,6 +217,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
217
217
  layout: 'EMAIL',
218
218
  type: 'LAYOUT',
219
219
  version: 'v2',
220
+ liquidFlow:this.liquidFlow,
220
221
  };
221
222
  this.props.globalActions.fetchSchemaForEntity(query);
222
223
  window.addEventListener("message", this.handleFrameTasks);
@@ -257,6 +258,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
257
258
  type: 'TAG',
258
259
  context: this.props.location.query.type === 'embedded' ? this.props.location.query.module : 'default',
259
260
  embedded: this.props.location.query.type === 'embedded' ? this.props.location.query.type : 'full',
261
+ liquidFlow:this.liquidFlow
260
262
  };
261
263
  if (this.props.getDefaultTags) {
262
264
  query.context = this.props.getDefaultTags;
@@ -1511,7 +1513,6 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
1511
1513
  const isEdmSupport = (this.props.location.query.isEdmSupport !== "false") || false;
1512
1514
  if (isSelected) {
1513
1515
  const data = _.find(this.props.Email.assetList, {_id: id});
1514
-
1515
1516
  if (data) {
1516
1517
  storeS3FileSizeDetails(data?.metaInfo?.secure_file_path, data?.metaInfo?.file_size);
1517
1518
 
@@ -2020,6 +2021,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
2020
2021
  type: 'TAG',
2021
2022
  context: (data || '').toLowerCase() === 'all' ? 'default' : (data || '').toLowerCase(),
2022
2023
  embedded: 'full',
2024
+ liquidFlow:this.liquidFlow
2023
2025
  };
2024
2026
  this.props.globalActions.fetchSchemaForEntity(query);
2025
2027
  }
@@ -56,11 +56,10 @@ export function* getTemplateDetails(id) {
56
56
  }
57
57
  }
58
58
 
59
- //get this checked
60
- export function* getAllAssets({assetType, queryParams}) {
59
+ export function* getAllAssets(assetType, queryParams) {
61
60
  try {
62
61
  const result = yield call(Api.getAllAssets, assetType, queryParams);
63
- yield put({ type: types.GET_ALL_ASSETS_SUCCESS, data: result?.response, isReset: queryParams.page === 1 });
62
+ yield put({ type: types.GET_ALL_ASSETS_SUCCESS, data: result?.response, isReset: assetType.queryParams.page === 1 });
64
63
  } catch (error) {
65
64
  yield put({ type: types.GET_ALL_ASSETS_FAILURE, error });
66
65
  }
@@ -3592,7 +3592,7 @@ new message content.",
3592
3592
  <CapHeading
3593
3593
  type="h3"
3594
3594
  />
3595
- <Connect(UserIsAuthenticated(withSaga(withReducer(Connect(InjectIntl(Gallery))))))
3595
+ <Connect(UserIsAuthenticated(Component))
3596
3596
  isFullMode={true}
3597
3597
  isLineAsset={true}
3598
3598
  location={
@@ -7411,7 +7411,7 @@ new message content.",
7411
7411
  <CapHeading
7412
7412
  type="h3"
7413
7413
  />
7414
- <Connect(UserIsAuthenticated(withSaga(withReducer(Connect(InjectIntl(Gallery))))))
7414
+ <Connect(UserIsAuthenticated(Component))
7415
7415
  isFullMode={true}
7416
7416
  isLineAsset={true}
7417
7417
  location={
@@ -11174,7 +11174,7 @@ new message content.",
11174
11174
  <CapHeading
11175
11175
  type="h3"
11176
11176
  />
11177
- <Connect(UserIsAuthenticated(withSaga(withReducer(Connect(InjectIntl(Gallery))))))
11177
+ <Connect(UserIsAuthenticated(Component))
11178
11178
  isFullMode={true}
11179
11179
  isLineAsset={true}
11180
11180
  location={
@@ -95550,7 +95550,7 @@ new message content.",
95550
95550
  >
95551
95551
  Gallery
95552
95552
  </CapHeading>
95553
- <Connect(UserIsAuthenticated(withSaga(withReducer(Connect(InjectIntl(Gallery))))))
95553
+ <Connect(UserIsAuthenticated(Component))
95554
95554
  isFullMode={true}
95555
95555
  isLineAsset={true}
95556
95556
  location={
@@ -116451,7 +116451,7 @@ new message content.",
116451
116451
  >
116452
116452
  Gallery
116453
116453
  </CapHeading>
116454
- <Connect(UserIsAuthenticated(withSaga(withReducer(Connect(InjectIntl(Gallery))))))
116454
+ <Connect(UserIsAuthenticated(Component))
116455
116455
  isFullMode={true}
116456
116456
  isLineAsset={true}
116457
116457
  location={
@@ -137246,7 +137246,7 @@ new message content.",
137246
137246
  >
137247
137247
  Gallery
137248
137248
  </CapHeading>
137249
- <Connect(UserIsAuthenticated(withSaga(withReducer(Connect(InjectIntl(Gallery))))))
137249
+ <Connect(UserIsAuthenticated(Component))
137250
137250
  isFullMode={true}
137251
137251
  isLineAsset={true}
137252
137252
  location={
@@ -158147,7 +158147,7 @@ new message content.",
158147
158147
  >
158148
158148
  Gallery
158149
158149
  </CapHeading>
158150
- <Connect(UserIsAuthenticated(withSaga(withReducer(Connect(InjectIntl(Gallery))))))
158150
+ <Connect(UserIsAuthenticated(Component))
158151
158151
  isFullMode={true}
158152
158152
  isLineAsset={true}
158153
158153
  location={
@@ -199002,7 +199002,7 @@ new message content.",
199002
199002
  >
199003
199003
  Gallery
199004
199004
  </CapHeading>
199005
- <Connect(UserIsAuthenticated(withSaga(withReducer(Connect(InjectIntl(Gallery))))))
199005
+ <Connect(UserIsAuthenticated(Component))
199006
199006
  isFullMode={true}
199007
199007
  isLineAsset={true}
199008
199008
  location={