@capillarytech/creatives-library 8.0.106 → 8.0.107

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.106",
4
+ "version": "8.0.107",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -740,10 +740,7 @@ export class Creatives extends React.Component {
740
740
  forEach(androidContent.custom, (customKeyValue) => {
741
741
  custom[customKeyValue.key] = customKeyValue.value;
742
742
  });
743
- //skipping it for MPUSH as custom key is already in the reqd format for hydra sdk
744
- if (channel !== constants.MOBILE_PUSH) {
745
- androidContent.custom = custom;
746
- }
743
+ androidContent.custom = custom;
747
744
  templateData.androidContent = androidContent;
748
745
  templateData.androidContent.type = get(channelTemplate, 'definition.mode', '').toUpperCase();
749
746
  templateData.androidContent.deviceType = 'ANDROID';
@@ -759,10 +756,7 @@ export class Creatives extends React.Component {
759
756
  forEach(iosContent.custom, (customKeyValue) => {
760
757
  custom[customKeyValue.key] = customKeyValue.value;
761
758
  });
762
- //skipping it for MPUSH as custom key is already in the reqd format for hydra sdk
763
- if (channel !== constants.MOBILE_PUSH) {
764
- iosContent.custom = custom;
765
- }
759
+ iosContent.custom = custom;
766
760
  templateData.iosContent = iosContent;
767
761
  templateData.iosContent.type = get(channelTemplate, 'definition.mode').toUpperCase();
768
762
  templateData.iosContent.deviceType = IOS.toUpperCase();
@@ -54,7 +54,10 @@ const EmailWrapper = (props) => {
54
54
  onRemoveTemplateName,
55
55
  eventContextTags,
56
56
  isLoyaltyModule,
57
- cmsTemplatesLoader
57
+ cmsTemplatesLoader,
58
+ onPreviewContentClicked,
59
+ onTestContentClicked,
60
+ editor,
58
61
  } = props;
59
62
 
60
63
  // Pass destructured props to the custom hook
@@ -100,7 +103,10 @@ const EmailWrapper = (props) => {
100
103
  onRemoveTemplateName,
101
104
  eventContextTags,
102
105
  isLoyaltyModule,
103
- cmsTemplatesLoader
106
+ cmsTemplatesLoader,
107
+ onPreviewContentClicked,
108
+ onTestContentClicked,
109
+ editor,
104
110
  });
105
111
 
106
112
  // Render using the presentation component with data from the hook
@@ -122,6 +128,9 @@ const EmailWrapper = (props) => {
122
128
  isShowEmailCreate={isShowEmailCreate}
123
129
  emailProps={emailProps}
124
130
  cmsTemplatesProps={cmsTemplatesProps}
131
+ onPreviewContentClicked={onPreviewContentClicked}
132
+ onTestContentClicked={onTestContentClicked}
133
+ editor={editor}
125
134
  />
126
135
  );
127
136
  };
@@ -156,6 +165,9 @@ EmailWrapper.propTypes = {
156
165
  onRemoveTemplateName: PropTypes.func,
157
166
  eventContextTags: PropTypes.array,
158
167
  isLoyaltyModule: PropTypes.bool,
168
+ onPreviewContentClicked: PropTypes.func,
169
+ onTestContentClicked: PropTypes.func,
170
+ editor: PropTypes.object,
159
171
  };
160
172
 
161
173
  const mapStateToProps = createStructuredSelector({