@capillarytech/creatives-library 8.0.151 → 8.0.153-beta.0
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/index.js
CHANGED
|
@@ -103,6 +103,9 @@ import Rcs from './v2Containers/Rcs';
|
|
|
103
103
|
import rcsReducer from './v2Containers/Rcs/reducer';
|
|
104
104
|
import rcsSaga from './v2Containers/Rcs/sagas';
|
|
105
105
|
|
|
106
|
+
//API Imports
|
|
107
|
+
import { updateMetaConfig } from './services/api';
|
|
108
|
+
|
|
106
109
|
export {default as Ebill} from './v2Containers/Ebill';
|
|
107
110
|
export {default as EbillReducer} from './v2Containers/Ebill/reducer';
|
|
108
111
|
export {default as EbillSaga} from './v2Containers/Ebill/sagas';
|
|
@@ -146,7 +149,6 @@ export {default as EmailMobilePreview} from './v2Components/EmailMobilePreview';
|
|
|
146
149
|
export {default as MobilePushPreview} from './v2Components/MobilePushPreviewV2';
|
|
147
150
|
export {default as WechatRichmediaTemplatePreview} from './v2Components/TemplatePreview/WechatRichmediaTemplatePreview';
|
|
148
151
|
export {default as FTP} from './v2Containers/FTP';
|
|
149
|
-
export {default as updateMetaConfig} from './services/api';
|
|
150
152
|
|
|
151
153
|
CreativesContainer.CreativesContainerReducer = CreativesContainerReducer;
|
|
152
154
|
|
|
@@ -182,4 +184,5 @@ export { CapContainer,
|
|
|
182
184
|
RcsContainer,
|
|
183
185
|
ZaloContainer,
|
|
184
186
|
InAppContainer,
|
|
187
|
+
updateMetaConfig,
|
|
185
188
|
};
|
package/package.json
CHANGED
|
@@ -33,6 +33,22 @@ function SlideBoxFooter(props) {
|
|
|
33
33
|
shouldShowContinueFooter,
|
|
34
34
|
} = props;
|
|
35
35
|
|
|
36
|
+
console.log("SlideBoxFooter", {
|
|
37
|
+
slidBoxContent,
|
|
38
|
+
onSave,
|
|
39
|
+
onEditTemplate,
|
|
40
|
+
onCreateNextStep,
|
|
41
|
+
isFullMode,
|
|
42
|
+
fetchingCmsData,
|
|
43
|
+
isTemplateNameEmpty,
|
|
44
|
+
errorMessages,
|
|
45
|
+
isLiquidValidationError,
|
|
46
|
+
currentTab,
|
|
47
|
+
onTestAndPreview,
|
|
48
|
+
showTestAndPreviewButton,
|
|
49
|
+
shouldShowContinueFooter: shouldShowContinueFooter(),
|
|
50
|
+
shouldShowDoneFooter: shouldShowDoneFooter(),
|
|
51
|
+
});
|
|
36
52
|
return (
|
|
37
53
|
<div className='template-footer-width'>
|
|
38
54
|
{isLiquidValidationError && (<ErrorInfoNote errorMessages={errorMessages} currentTab={currentTab?.toUpperCase()} />)}
|
|
@@ -200,12 +200,19 @@ export class Creatives extends React.Component {
|
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
onCreateNextStep = () => {
|
|
203
|
+
console.log("onCreateNextStep 1");
|
|
203
204
|
this.setState((prevState) => {
|
|
204
205
|
let templateStep = prevState.templateStep + 1;
|
|
205
206
|
const { emailCreateMode, currentChannel } = prevState;
|
|
206
207
|
if ((currentChannel.toUpperCase() === constants.EMAIL && emailCreateMode === "upload") || [constants.MOBILE_PUSH, constants.WECHAT, constants.INAPP].includes(currentChannel.toUpperCase())) {
|
|
207
208
|
templateStep = prevState.templateStep + 2;
|
|
208
209
|
}
|
|
210
|
+
console.log("onCreateNextStep 2", {
|
|
211
|
+
templateStep,
|
|
212
|
+
currentChannel,
|
|
213
|
+
emailCreateMode,
|
|
214
|
+
prevState,
|
|
215
|
+
});
|
|
209
216
|
return {
|
|
210
217
|
templateStep,
|
|
211
218
|
};
|
|
@@ -1353,7 +1360,17 @@ export class Creatives extends React.Component {
|
|
|
1353
1360
|
}
|
|
1354
1361
|
}
|
|
1355
1362
|
|
|
1356
|
-
|
|
1363
|
+
console.log("shouldShowDoneFooter", {
|
|
1364
|
+
showDone,
|
|
1365
|
+
channel,
|
|
1366
|
+
currentStep,
|
|
1367
|
+
slidBoxContent,
|
|
1368
|
+
templateStep,
|
|
1369
|
+
currentChannel,
|
|
1370
|
+
templateData,
|
|
1371
|
+
isFullMode,
|
|
1372
|
+
isEmail: channel === constants.EMAIL,
|
|
1373
|
+
});
|
|
1357
1374
|
return showDone;
|
|
1358
1375
|
}
|
|
1359
1376
|
|
|
@@ -1432,7 +1449,19 @@ export class Creatives extends React.Component {
|
|
|
1432
1449
|
} else if (currentChannel.toUpperCase() === constants.INAPP) {
|
|
1433
1450
|
isShowContinueFooter = !isEmpty(inAppCreateMode) && currentChannel === "modeSelection";
|
|
1434
1451
|
}
|
|
1435
|
-
|
|
1452
|
+
console.log("shouldShowContinueFooter", {
|
|
1453
|
+
isShowContinueFooter,
|
|
1454
|
+
mobilePushCreateMode,
|
|
1455
|
+
weChatTemplateType,
|
|
1456
|
+
inAppCreateMode,
|
|
1457
|
+
currentStep,
|
|
1458
|
+
currentChannel,
|
|
1459
|
+
slidBoxContent,
|
|
1460
|
+
templateStep,
|
|
1461
|
+
emailCreateMode,
|
|
1462
|
+
emailLayout: this.props?.EmailLayout,
|
|
1463
|
+
isEmail: channel === constants.EMAIL,
|
|
1464
|
+
});
|
|
1436
1465
|
return isShowContinueFooter;
|
|
1437
1466
|
}
|
|
1438
1467
|
|