@capillarytech/creatives-library 8.0.117 → 8.0.120

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.117",
4
+ "version": "8.0.120",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -28,7 +28,7 @@ export const processErrors = (rawErrorData, errorType, platform, messages) => {
28
28
  };
29
29
 
30
30
  export const getLiquidProps = (errors, isAndroid, showTitle, showPlatformLabels) => ({
31
- title: (isAndroid ? true : !showTitle && true ) && errors?.LIQUID?.title,
31
+ title: (isAndroid || !showTitle) && errors?.LIQUID?.title,
32
32
  errors: [
33
33
  ...(errors?.STANDARD?.errorsToShow || []),
34
34
  ...(errors?.LIQUID?.errorsToShow || []),
@@ -1129,7 +1129,13 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
1129
1129
  };
1130
1130
 
1131
1131
  const onSuccess = (contentToSubmit) => {
1132
- this.handleLiquidTemplateSubmit(contentToSubmit);
1132
+ const channel = this.props.channel || this.props?.schema?.channel?.toUpperCase();
1133
+ if(channel === EMAIL) {
1134
+ const content = this.state.formData?.base?.[this.props.baseLanguage]?.["template-content"] || "";
1135
+ this.handleLiquidTemplateSubmit(content);
1136
+ } else {
1137
+ this.handleLiquidTemplateSubmit(contentToSubmit);
1138
+ }
1133
1139
  };
1134
1140
 
1135
1141
  // Call the common validation function
@@ -618,7 +618,7 @@ const withLineContainerSaga = injectSaga({ key: 'lineCreate', saga: v2LineContai
618
618
  const withMobilePushCreateSaga = injectSaga({ key: 'mobileCreate', saga: v2MobilePushCreateSagas });
619
619
  const withWechatMapTemplatesSaga = injectSaga({ key: 'weChatMapTemplate', saga: v2WechatMapTemplatesSagas });
620
620
  const withRcsSaga = injectSaga({ key: 'rcs', saga: v2RcsSagas });
621
- const withInAppSaga = injectSaga({ key: 'inapp', saga: v2InAppSagas });
621
+ const withInAppSaga = injectSaga({ key: 'inapp', saga: v2InAppSagas, mode: DAEMON });
622
622
  const withViberSaga = injectSaga({ key: 'viber', saga: v2ViberSagas });
623
623
  const withFacebookSaga = injectSaga({ key: 'facebook', saga: v2FacebookSagas });
624
624
  const withLineReducer = injectReducer({ key: 'lineCreate', reducer: createReducer });