@capillarytech/creatives-library 8.0.234 → 8.0.236-alpha.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.
Files changed (83) hide show
  1. package/assets/Android.png +0 -0
  2. package/assets/iOS.png +0 -0
  3. package/constants/unified.js +1 -1
  4. package/initialReducer.js +2 -0
  5. package/package.json +1 -1
  6. package/services/api.js +5 -0
  7. package/services/tests/api.test.js +18 -0
  8. package/utils/common.js +1 -2
  9. package/utils/commonUtils.js +14 -1
  10. package/utils/transformTemplateConfig.js +0 -10
  11. package/v2Components/CapDeviceContent/index.js +61 -56
  12. package/v2Components/CapTagList/index.js +4 -0
  13. package/v2Components/HtmlEditor/HTMLEditor.js +165 -80
  14. package/v2Components/HtmlEditor/__tests__/HTMLEditor.test.js +532 -0
  15. package/v2Components/HtmlEditor/_htmlEditor.scss +0 -4
  16. package/v2Components/HtmlEditor/_index.lazy.scss +0 -1
  17. package/v2Components/HtmlEditor/components/CodeEditorPane/_codeEditorPane.scss +0 -98
  18. package/v2Components/HtmlEditor/components/CodeEditorPane/index.js +125 -148
  19. package/v2Components/HtmlEditor/components/DeviceToggle/_deviceToggle.scss +1 -0
  20. package/v2Components/HtmlEditor/components/DeviceToggle/index.js +3 -3
  21. package/v2Components/HtmlEditor/components/InAppPreviewPane/DeviceFrame.js +4 -7
  22. package/v2Components/HtmlEditor/components/InAppPreviewPane/__tests__/DeviceFrame.test.js +35 -45
  23. package/v2Components/HtmlEditor/components/InAppPreviewPane/_inAppPreviewPane.scss +1 -3
  24. package/v2Components/HtmlEditor/components/InAppPreviewPane/constants.js +33 -33
  25. package/v2Components/HtmlEditor/components/InAppPreviewPane/index.js +7 -6
  26. package/v2Components/HtmlEditor/constants.js +29 -20
  27. package/v2Components/HtmlEditor/hooks/__tests__/useInAppContent.test.js +158 -17
  28. package/v2Components/HtmlEditor/hooks/useInAppContent.js +53 -143
  29. package/v2Components/HtmlEditor/index.js +1 -1
  30. package/v2Components/HtmlEditor/messages.js +85 -85
  31. package/v2Components/MobilePushPreviewV2/index.js +32 -7
  32. package/v2Components/TemplatePreview/_templatePreview.scss +31 -21
  33. package/v2Components/TemplatePreview/index.js +47 -32
  34. package/v2Components/TemplatePreview/messages.js +4 -0
  35. package/v2Containers/BeeEditor/index.js +82 -80
  36. package/v2Containers/BeePopupEditor/constants.js +10 -0
  37. package/v2Containers/BeePopupEditor/index.js +180 -0
  38. package/v2Containers/BeePopupEditor/tests/index.test.js +627 -0
  39. package/v2Containers/CreativesContainer/SlideBoxContent.js +69 -34
  40. package/v2Containers/CreativesContainer/SlideBoxHeader.js +2 -1
  41. package/v2Containers/CreativesContainer/constants.js +1 -0
  42. package/v2Containers/CreativesContainer/index.js +65 -13
  43. package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxContent.test.js.snap +4 -12
  44. package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +15 -0
  45. package/v2Containers/InApp/__tests__/InAppHTMLEditor.test.js +376 -0
  46. package/v2Containers/InApp/__tests__/sagas.test.js +363 -0
  47. package/v2Containers/InApp/actions.js +7 -0
  48. package/v2Containers/InApp/constants.js +18 -4
  49. package/v2Containers/InApp/index.js +642 -355
  50. package/v2Containers/InApp/index.scss +4 -3
  51. package/v2Containers/InApp/messages.js +7 -3
  52. package/v2Containers/InApp/reducer.js +21 -3
  53. package/v2Containers/InApp/sagas.js +29 -9
  54. package/v2Containers/InApp/selectors.js +25 -5
  55. package/v2Containers/InApp/tests/index.test.js +154 -50
  56. package/v2Containers/InApp/tests/reducer.test.js +34 -0
  57. package/v2Containers/InApp/tests/sagas.test.js +61 -9
  58. package/v2Containers/InApp/tests/selectors.test.js +612 -0
  59. package/v2Containers/InAppWrapper/components/InAppWrapperView.js +159 -0
  60. package/v2Containers/InAppWrapper/components/__tests__/InAppWrapperView.test.js +256 -0
  61. package/v2Containers/InAppWrapper/constants.js +16 -0
  62. package/v2Containers/InAppWrapper/hooks/__tests__/useInAppWrapper.test.js +473 -0
  63. package/v2Containers/InAppWrapper/hooks/useInAppWrapper.js +198 -0
  64. package/v2Containers/InAppWrapper/index.js +146 -0
  65. package/v2Containers/InAppWrapper/messages.js +45 -0
  66. package/v2Containers/InappAdvance/index.js +1006 -0
  67. package/v2Containers/InappAdvance/index.scss +10 -0
  68. package/v2Containers/InappAdvance/tests/index.test.js +448 -0
  69. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +3 -0
  70. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +2 -0
  71. package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +2 -0
  72. package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +9 -0
  73. package/v2Containers/Rcs/index.js +3 -1
  74. package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +12 -0
  75. package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +4 -0
  76. package/v2Containers/TagList/index.js +65 -1
  77. package/v2Containers/Templates/_templates.scss +49 -1
  78. package/v2Containers/Templates/index.js +93 -5
  79. package/v2Containers/Templates/messages.js +4 -0
  80. package/v2Containers/Templates/reducer.js +20 -7
  81. package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +8 -88
  82. package/v2Containers/Templates/tests/reducer.test.js +125 -0
  83. package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +35 -0
@@ -10,6 +10,7 @@ import SmsWrapper from '../SmsWrapper';
10
10
  import Email from '../Email';
11
11
  import EmailWrapper from '../EmailWrapper';
12
12
  import MobilepushWrapper from '../MobilepushWrapper';
13
+ import InAppWrapper from '../InAppWrapper';
13
14
  import EmailPreviewV2 from '../../v2Components/EmailPreviewV2';
14
15
  import MobilePushPreview from '../../v2Components/MobilePushPreviewV2';
15
16
  import WechatWrapper from '../WeChat/Wrapper';
@@ -115,7 +116,11 @@ export function SlideBoxContent(props) {
115
116
  emailCreateMode,
116
117
  onMobilepushModeChange,
117
118
  mobilePushCreateMode,
119
+ onInAppEditorTypeChange,
120
+ inAppEditorType,
118
121
  templateStep,
122
+ inAppCreateMode,
123
+ onInAppModeChange,
119
124
  onEnterTemplateName,
120
125
  onRemoveTemplateName,
121
126
  onCreateNextStep,
@@ -940,42 +945,70 @@ export function SlideBoxContent(props) {
940
945
  />
941
946
  )}
942
947
 
943
- {isCreateInApp && (<InApp
944
- isFullMode={isFullMode}
945
- onCreateComplete={onCreateComplete}
946
- handleClose={handleClose}
947
- location={{
948
- pathname: `/inapp/create`,
949
- query,
950
- search: '',
951
- }}
952
- getFormData={getFormData}
953
- isGetFormData={isGetFormData}
954
- templateData={templateData}
955
- getDefaultTags={type}
956
- eventContextTags={eventContextTags}
957
- showLiquidErrorInFooter={showLiquidErrorInFooter}
958
- />
948
+ {isCreateInApp && (
949
+ <InAppWrapper
950
+ key="creatives-inapp-wrapper"
951
+ date={new Date().getMilliseconds()}
952
+ setIsLoadingContent={setIsLoadingContent}
953
+ onInAppEditorTypeChange={onInAppEditorTypeChange}
954
+ inAppEditorType={inAppEditorType}
955
+ isGetFormData={isGetFormData}
956
+ getFormdata={getFormData}
957
+ templateData={templateData}
958
+ type={type}
959
+ step={templateStep}
960
+ showNextStep={onCreateNextStep}
961
+ isFullMode={isFullMode}
962
+ cap={cap}
963
+ onResetStep={onResetStep}
964
+ showTemplateName={showTemplateName}
965
+ onEnterTemplateName={onEnterTemplateName}
966
+ onRemoveTemplateName={onRemoveTemplateName}
967
+ onValidationFail={onValidationFail}
968
+ forwardedTags={forwardedTags}
969
+ selectedOfferDetails={selectedOfferDetails}
970
+ onPreviewContentClicked={onPreviewContentClicked}
971
+ onTestContentClicked={onTestContentClicked}
972
+ moduleType={moduleType}
973
+ showLiquidErrorInFooter={showLiquidErrorInFooter}
974
+ eventContextTags={eventContextTags}
975
+ onCreateComplete={onCreateComplete}
976
+ handleClose={handleClose}
977
+ getDefaultTags={type}
978
+ onInAppModeChange={onInAppModeChange}
979
+ inAppCreateMode={inAppCreateMode}
980
+ />
959
981
  )}
960
982
 
961
- {isEditInApp && (<InApp
962
- isFullMode={isFullMode}
963
- templateData={templateData}
964
- getFormData={getFormData}
965
- getDefaultTags={type}
966
- forwardedTags={forwardedTags}
967
- onCreateComplete={onCreateComplete}
968
- selectedOfferDetails={selectedOfferDetails}
969
- eventContextTags={eventContextTags}
970
- params={{
971
- id: templateData._id,
972
- }}
973
- location={{
974
- pathname: `/inapp/edit`,
975
- query,
976
- search: '',
977
- }}
978
- showLiquidErrorInFooter={showLiquidErrorInFooter}
983
+ {isEditInApp && (
984
+ <InApp
985
+ key={`creatives-inapp-edit-${templateData._id || 'new'}`}
986
+ isEditInApp={true}
987
+ isFullMode={isFullMode}
988
+ templateData={templateData}
989
+ getFormData={getFormData}
990
+ getDefaultTags={type}
991
+ forwardedTags={forwardedTags}
992
+ onCreateComplete={onCreateComplete}
993
+ selectedOfferDetails={selectedOfferDetails}
994
+ eventContextTags={eventContextTags}
995
+ params={{
996
+ id: templateData._id,
997
+ }}
998
+ location={{
999
+ pathname: `/inapp/edit`,
1000
+ query,
1001
+ search: '',
1002
+ }}
1003
+ showLiquidErrorInFooter={showLiquidErrorInFooter}
1004
+ setIsLoadingContent={setIsLoadingContent}
1005
+ onInAppModeChange={onInAppModeChange}
1006
+ inAppCreateMode={inAppCreateMode}
1007
+ isGetFormData={isGetFormData}
1008
+ showTemplateName={showTemplateName}
1009
+ onValidationFail={onValidationFail}
1010
+ type={type}
1011
+ query={query}
979
1012
  />
980
1013
  )}
981
1014
 
@@ -1010,6 +1043,8 @@ SlideBoxContent.propTypes = {
1010
1043
  onSelectTemplate: PropTypes.func,
1011
1044
  onPreviewTemplate: PropTypes.func,
1012
1045
  templateData: PropTypes.object,
1046
+ onInAppEditorTypeChange: PropTypes.func,
1047
+ inAppEditorType: PropTypes.object,
1013
1048
  location: PropTypes.object,
1014
1049
  isGetFormData: PropTypes.bool,
1015
1050
  getFormData: PropTypes.func,
@@ -45,6 +45,7 @@ export function SlideBoxHeader(props) {
45
45
  const isZaloEdit = channel.toLowerCase() === ZALO && slidBoxContent === 'editTemplate';
46
46
  const zaloOverview = isZaloEdit && isFullMode;
47
47
  const whatsappOverview = isWhatsappEdit && isFullMode;
48
+ const shouldShowInAppEditHeader = isInAppEdit && !isFullMode;
48
49
  const headerMessage = whatsappOverview ? messages.whatsappOverview : zaloOverview ? messages.zaloOverview : messages.editMessageContent;
49
50
  const {
50
51
  whatsappTemplateName,
@@ -109,7 +110,7 @@ export function SlideBoxHeader(props) {
109
110
  }
110
111
  />
111
112
  )}
112
- {!showTemplateNameHeader && slidBoxContent === 'editTemplate' && (
113
+ {!showTemplateNameHeader && slidBoxContent === 'editTemplate' && (shouldShowInAppEditHeader || !isInAppCreate) && (
113
114
  <CapHeader
114
115
  className="support-video-elements"
115
116
  title={<FormattedMessage {...headerMessage} values={{ channel: getChannelLabel(channel) }} />}
@@ -24,6 +24,7 @@ export const INAPP = "INAPP";
24
24
  export const PREVIEW = "preview";
25
25
  export const EDIT_TEMPLATE = "editTemplate";
26
26
  export const JOURNEY = "journey";
27
+ export const HTML = "HTML";
27
28
 
28
29
  export const LOYALTY_SUPPORTED_ACTION = "SEND_COMMUNICATION_ACTION";
29
30
 
@@ -95,6 +95,7 @@ export class Creatives extends React.Component {
95
95
  currentChannel: this.props.channel || 'sms',
96
96
  weChatTemplateType: '',
97
97
  weChatMaptemplateStep: 0,
98
+ inAppEditorType: null,
98
99
  isLiquidValidationError: false,
99
100
  errorMessages: [],
100
101
  liquidErrorMessage: {
@@ -261,6 +262,10 @@ export class Creatives extends React.Component {
261
262
  this.setState({ inAppCreateMode: mode });
262
263
  }
263
264
 
265
+ onInAppEditorTypeChange = (editorType) => {
266
+ this.setState({ inAppEditorType: editorType });
267
+ }
268
+
264
269
  onMobilepushModeChange = (mode) => {
265
270
  this.setState({ mobilePushCreateMode: mode });
266
271
  }
@@ -439,8 +444,22 @@ export class Creatives extends React.Component {
439
444
  versions: {
440
445
  base: {
441
446
  content: {
442
- ANDROID: templateData?.androidContent,
443
- IOS: templateData?.iosContent,
447
+ ANDROID: templateData?.androidContent?.type === constants.HTML ? {
448
+ type: templateData?.androidContent?.type,
449
+ bodyType: templateData?.androidContent?.bodyType,
450
+ deviceType: constants.ANDROID,
451
+ beeHtml: { value: templateData?.androidContent?.message },
452
+ beeJson: templateData?.androidContent?.expandableDetails?.message,
453
+ isBEEeditor: true,
454
+ } : templateData?.androidContent,
455
+ IOS: templateData?.iosContent?.type === constants.HTML ? {
456
+ type: templateData?.iosContent?.type,
457
+ bodyType: templateData?.iosContent?.bodyType,
458
+ deviceType: constants.IOS,
459
+ beeHtml: { value: templateData?.iosContent?.message },
460
+ beeJson: templateData?.iosContent?.expandableDetails?.message,
461
+ isBEEeditor: true,
462
+ } : templateData?.iosContent,
444
463
  },
445
464
  },
446
465
  },
@@ -857,9 +876,22 @@ export class Creatives extends React.Component {
857
876
  if (channel === constants.MOBILE_PUSH && androidContent?.expandableDetails?.carouselData?.length) {
858
877
  androidContent.expandableDetails = this.getMobilePushCarouselData({...androidContent?.expandableDetails});
859
878
  }
860
- templateData.androidContent = androidContent;
861
- templateData.androidContent.type = androidContent?.type || get(channelTemplate, 'definition.mode', '')?.toUpperCase() || constants.TEXT;
862
- templateData.androidContent.deviceType = constants.ANDROID;
879
+ if (androidContent?.isBEEeditor && androidContent?.beeHtml?.value) {
880
+ templateData.androidContent = {};
881
+ templateData.androidContent.type = constants.HTML;
882
+ templateData.androidContent.message = androidContent?.beeHtml?.value || '';
883
+ templateData.androidContent.title = 'bee free template';
884
+ templateData.androidContent.bodyType = androidContent?.bodyType;
885
+ templateData.androidContent.deviceType = constants.ANDROID;
886
+ templateData.androidContent.expandableDetails = {
887
+ style: 'BIG_HTML',
888
+ message: androidContent?.beeJson || '',
889
+ };
890
+ } else if (!androidContent?.isBEEeditor) {
891
+ templateData.androidContent = androidContent;
892
+ templateData.androidContent.type = androidContent?.type || get(channelTemplate, 'definition.mode', '')?.toUpperCase() || constants.TEXT;
893
+ templateData.androidContent.deviceType = constants.ANDROID;
894
+ }
863
895
  }
864
896
  const iosContent = channel === constants.INAPP ? get(channelTemplate, 'versions.base.content.IOS') : get(channelTemplate, 'versions.base.IOS');
865
897
  if (!isEmpty(iosContent)) {
@@ -879,9 +911,22 @@ export class Creatives extends React.Component {
879
911
  if (channel === constants.MOBILE_PUSH && iosContent?.expandableDetails?.carouselData?.length) {
880
912
  iosContent.expandableDetails = this.getMobilePushCarouselData({...iosContent?.expandableDetails});
881
913
  }
882
- templateData.iosContent = iosContent;
883
- templateData.iosContent.type = iosContent?.type || get(channelTemplate, 'definition.mode', '')?.toUpperCase() || 'TEXT';
884
- templateData.iosContent.deviceType = constants.IOS;
914
+ if (iosContent?.isBEEeditor && iosContent?.beeHtml?.value) {
915
+ templateData.iosContent = {};
916
+ templateData.iosContent.type = constants.HTML;
917
+ templateData.iosContent.message = iosContent?.beeHtml?.value || '';
918
+ templateData.iosContent.title = 'bee free template';
919
+ templateData.iosContent.bodyType = iosContent?.bodyType;
920
+ templateData.iosContent.deviceType = constants.IOS;
921
+ templateData.iosContent.expandableDetails = {
922
+ style: 'BIG_HTML',
923
+ message: iosContent?.beeJson || '',
924
+ };
925
+ } else if (!iosContent?.isBEEeditor) {
926
+ templateData.iosContent = iosContent;
927
+ templateData.iosContent.type = iosContent?.type || get(channelTemplate, 'definition.mode', '')?.toUpperCase() || 'TEXT';
928
+ templateData.iosContent.deviceType = constants.IOS;
929
+ }
885
930
  }
886
931
  templateData.messageSubject = channelTemplate?.name ? channelTemplate?.name : "messageSubject";
887
932
  }
@@ -1284,6 +1329,9 @@ export class Creatives extends React.Component {
1284
1329
  if (prevState.currentChannel.toUpperCase() === constants.EMAIL) {
1285
1330
  newState = { ...newState, emailCreateMode: null };
1286
1331
  }
1332
+ if (prevState.currentChannel.toUpperCase() === constants.INAPP) {
1333
+ newState = { ...newState, inAppEditorType: null };
1334
+ }
1287
1335
  return newState;
1288
1336
  });
1289
1337
  }
@@ -1329,7 +1377,7 @@ export class Creatives extends React.Component {
1329
1377
  shouldShowFooter = () => {
1330
1378
  const { isFullMode } = this.props;
1331
1379
  const {
1332
- slidBoxContent, currentChannel, emailCreateMode, templateNameExists, templateStep, mobilePushCreateMode, weChatTemplateType, templateData,
1380
+ slidBoxContent, currentChannel, emailCreateMode, templateNameExists, templateStep, mobilePushCreateMode, weChatTemplateType, templateData, inAppCreateMode,
1333
1381
  } = this.state;
1334
1382
  const channel = currentChannel.toUpperCase();
1335
1383
  const currentStep = this.creativesTemplateSteps[templateStep];
@@ -1372,6 +1420,7 @@ export class Creatives extends React.Component {
1372
1420
  showFooter = true;
1373
1421
  }
1374
1422
 
1423
+
1375
1424
  if (showFooter) {
1376
1425
  if (slidBoxContent === "createTemplate" && ((channel === constants.EMAIL && currentStep === 'createTemplateContent')
1377
1426
  || ([constants.SMS, constants.WECHAT].includes(channel) && currentStep === 'modeSelection'))) {
@@ -1394,7 +1443,7 @@ export class Creatives extends React.Component {
1394
1443
 
1395
1444
  shouldShowDoneFooter = () => {
1396
1445
  const {
1397
- slidBoxContent, templateStep, currentChannel, templateData,
1446
+ slidBoxContent, templateStep, currentChannel, templateData, inAppCreateMode,
1398
1447
  } = this.state;
1399
1448
  const { isFullMode } = this.props;
1400
1449
  const currentStep = this.creativesTemplateSteps[templateStep];
@@ -1487,7 +1536,7 @@ export class Creatives extends React.Component {
1487
1536
 
1488
1537
  shouldShowContinueFooter = () => { // only for email for now, has to be modified according to channel
1489
1538
  const {
1490
- slidBoxContent, templateStep, currentChannel, emailCreateMode, mobilePushCreateMode, inAppCreateMode, weChatTemplateType,
1539
+ slidBoxContent, templateStep, currentChannel, emailCreateMode, mobilePushCreateMode, inAppEditorType, weChatTemplateType,
1491
1540
  } = this.state;
1492
1541
  let isShowContinueFooter = false;
1493
1542
  const currentStep = this.creativesTemplateSteps[templateStep];
@@ -1502,8 +1551,6 @@ export class Creatives extends React.Component {
1502
1551
  isShowContinueFooter = !isEmpty(mobilePushCreateMode) && currentStep === "modeSelection";
1503
1552
  } else if (currentChannel.toUpperCase() === constants.WECHAT) {
1504
1553
  isShowContinueFooter = !isEmpty(weChatTemplateType) && currentStep === "modeSelection";
1505
- } else if (currentChannel.toUpperCase() === constants.INAPP) {
1506
- isShowContinueFooter = !isEmpty(inAppCreateMode) && currentChannel === "modeSelection";
1507
1554
  }
1508
1555
 
1509
1556
  return isShowContinueFooter;
@@ -1549,6 +1596,7 @@ export class Creatives extends React.Component {
1549
1596
  activeFormBuilderTab,
1550
1597
  showTestAndPreviewSlidebox,
1551
1598
  isTestAndPreviewMode,
1599
+ inAppEditorType,
1552
1600
  } = this.state;
1553
1601
  const {
1554
1602
  isFullMode,
@@ -1632,6 +1680,8 @@ export class Creatives extends React.Component {
1632
1680
  onChannelChange={this.onChannelChange}
1633
1681
  onEmailModeChange={this.onEmailModeChange}//used when create is clicked in email
1634
1682
  emailCreateMode={emailCreateMode}// upload zip || use editor are values
1683
+ onInAppEditorTypeChange={this.onInAppEditorTypeChange}//used when create is clicked in inapp
1684
+ inAppEditorType={inAppEditorType}// htmlEditor || dragDropEditor are values
1635
1685
  templateStep={this.creativesTemplateSteps[templateStep]}
1636
1686
  onCreateNextStep={this.onCreateNextStep}
1637
1687
  onEnterTemplateName={this.onEnterTemplateName}
@@ -1641,6 +1691,8 @@ export class Creatives extends React.Component {
1641
1691
  cap={cap}
1642
1692
  setIsLoadingContent={this.setIsLoadingContent}
1643
1693
  onMobilepushModeChange={this.onMobilepushModeChange}
1694
+ inAppCreateMode={this.state.inAppCreateMode}
1695
+ onInAppModeChange={this.onInAppModeChange}
1644
1696
  mobilePushCreateMode={mobilePushCreateMode}
1645
1697
  showTemplateName={this.showTemplateName}
1646
1698
  onValidationFail={this.onValidationFail}
@@ -1101,25 +1101,17 @@ exports[`Test SlideBoxContent container Should render correct component for what
1101
1101
 
1102
1102
  exports[`Test SlideBoxContent container Should render correct component for whatsapp channel create mode 2`] = `
1103
1103
  <SlideBoxContent__CreativesWrapper>
1104
- <ForwardRef
1104
+ <Connect(Connect(UserIsAuthenticated(InjectIntl(CreativesCommon))))
1105
+ date={0}
1105
1106
  getDefaultTags=""
1106
- location={
1107
- Object {
1108
- "pathname": "/inapp/create",
1109
- "query": Object {
1110
- "isEditFromCampaigns": undefined,
1111
- "module": "library",
1112
- "type": "embedded",
1113
- },
1114
- "search": "",
1115
- }
1116
- }
1107
+ key="creatives-inapp-wrapper"
1117
1108
  onCreateComplete={[MockFunction]}
1118
1109
  templateData={
1119
1110
  Object {
1120
1111
  "mode": "create",
1121
1112
  }
1122
1113
  }
1114
+ type=""
1123
1115
  />
1124
1116
  </SlideBoxContent__CreativesWrapper>
1125
1117
  `;
@@ -17,6 +17,7 @@ exports[`Test SlideBoxContent container campaign message, add creative click rcs
17
17
  handleCloseTestAndPreview={[Function]}
18
18
  handleTestAndPreview={[Function]}
19
19
  hostName=""
20
+ inAppEditorType={null}
20
21
  isTestAndPreviewMode={false}
21
22
  loyaltyMetaData={
22
23
  Object {
@@ -32,6 +33,8 @@ exports[`Test SlideBoxContent container campaign message, add creative click rcs
32
33
  onEnterTemplateName={[Function]}
33
34
  onFTPSubmit={[MockFunction]}
34
35
  onFacebookSubmit={[MockFunction]}
36
+ onInAppEditorTypeChange={[Function]}
37
+ onInAppModeChange={[Function]}
35
38
  onMobilepushModeChange={[Function]}
36
39
  onPreviewTemplate={[Function]}
37
40
  onRemoveTemplateName={[Function]}
@@ -103,6 +106,7 @@ exports[`Test SlideBoxContent container campaign message, add creative click wha
103
106
  handleCloseTestAndPreview={[Function]}
104
107
  handleTestAndPreview={[Function]}
105
108
  hostName=""
109
+ inAppEditorType={null}
106
110
  isTestAndPreviewMode={false}
107
111
  loyaltyMetaData={
108
112
  Object {
@@ -118,6 +122,8 @@ exports[`Test SlideBoxContent container campaign message, add creative click wha
118
122
  onEnterTemplateName={[Function]}
119
123
  onFTPSubmit={[MockFunction]}
120
124
  onFacebookSubmit={[MockFunction]}
125
+ onInAppEditorTypeChange={[Function]}
126
+ onInAppModeChange={[Function]}
121
127
  onMobilepushModeChange={[Function]}
122
128
  onPreviewTemplate={[Function]}
123
129
  onRemoveTemplateName={[Function]}
@@ -189,6 +195,7 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit all data
189
195
  handleCloseTestAndPreview={[Function]}
190
196
  handleTestAndPreview={[Function]}
191
197
  hostName=""
198
+ inAppEditorType={null}
192
199
  isTestAndPreviewMode={false}
193
200
  loyaltyMetaData={
194
201
  Object {
@@ -204,6 +211,8 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit all data
204
211
  onEnterTemplateName={[Function]}
205
212
  onFTPSubmit={[MockFunction]}
206
213
  onFacebookSubmit={[MockFunction]}
214
+ onInAppEditorTypeChange={[Function]}
215
+ onInAppModeChange={[Function]}
207
216
  onMobilepushModeChange={[Function]}
208
217
  onPreviewTemplate={[Function]}
209
218
  onRemoveTemplateName={[Function]}
@@ -287,6 +296,7 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
287
296
  handleCloseTestAndPreview={[Function]}
288
297
  handleTestAndPreview={[Function]}
289
298
  hostName=""
299
+ inAppEditorType={null}
290
300
  isTestAndPreviewMode={false}
291
301
  loyaltyMetaData={
292
302
  Object {
@@ -302,6 +312,8 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
302
312
  onEnterTemplateName={[Function]}
303
313
  onFTPSubmit={[MockFunction]}
304
314
  onFacebookSubmit={[MockFunction]}
315
+ onInAppEditorTypeChange={[Function]}
316
+ onInAppModeChange={[Function]}
305
317
  onMobilepushModeChange={[Function]}
306
318
  onPreviewTemplate={[Function]}
307
319
  onRemoveTemplateName={[Function]}
@@ -385,6 +397,7 @@ exports[`Test SlideBoxContent container it should clear the url, on channel chan
385
397
  handleCloseTestAndPreview={[Function]}
386
398
  handleTestAndPreview={[Function]}
387
399
  hostName=""
400
+ inAppEditorType={null}
388
401
  isTestAndPreviewMode={false}
389
402
  loyaltyMetaData={
390
403
  Object {
@@ -400,6 +413,8 @@ exports[`Test SlideBoxContent container it should clear the url, on channel chan
400
413
  onEnterTemplateName={[Function]}
401
414
  onFTPSubmit={[MockFunction]}
402
415
  onFacebookSubmit={[MockFunction]}
416
+ onInAppEditorTypeChange={[Function]}
417
+ onInAppModeChange={[Function]}
403
418
  onMobilepushModeChange={[Function]}
404
419
  onPreviewTemplate={[Function]}
405
420
  onRemoveTemplateName={[Function]}