@capillarytech/creatives-library 8.0.249 → 8.0.250-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 (136) hide show
  1. package/assets/Android.png +0 -0
  2. package/assets/iOS.png +0 -0
  3. package/constants/unified.js +2 -1
  4. package/initialReducer.js +2 -0
  5. package/package.json +1 -1
  6. package/services/api.js +10 -0
  7. package/services/tests/api.test.js +18 -0
  8. package/utils/common.js +5 -0
  9. package/utils/commonUtils.js +28 -5
  10. package/utils/tests/commonUtil.test.js +224 -0
  11. package/utils/transformTemplateConfig.js +0 -10
  12. package/v2Components/CapDeviceContent/index.js +61 -56
  13. package/v2Components/CapTagList/index.js +6 -1
  14. package/v2Components/CapTagListWithInput/index.js +5 -1
  15. package/v2Components/CapTagListWithInput/messages.js +1 -1
  16. package/v2Components/CapWhatsappCTA/tests/index.test.js +5 -0
  17. package/v2Components/ErrorInfoNote/index.js +452 -72
  18. package/v2Components/ErrorInfoNote/messages.js +22 -0
  19. package/v2Components/ErrorInfoNote/style.scss +280 -4
  20. package/v2Components/FormBuilder/tests/index.test.js +13 -4
  21. package/v2Components/HtmlEditor/HTMLEditor.js +640 -94
  22. package/v2Components/HtmlEditor/__tests__/HTMLEditor.apiErrors.test.js +874 -0
  23. package/v2Components/HtmlEditor/__tests__/HTMLEditor.test.js +1167 -133
  24. package/v2Components/HtmlEditor/__tests__/index.lazy.test.js +27 -16
  25. package/v2Components/HtmlEditor/_htmlEditor.scss +108 -45
  26. package/v2Components/HtmlEditor/_index.lazy.scss +1 -1
  27. package/v2Components/HtmlEditor/components/CodeEditorPane/_codeEditorPane.scss +13 -101
  28. package/v2Components/HtmlEditor/components/CodeEditorPane/index.js +148 -139
  29. package/v2Components/HtmlEditor/components/DeviceToggle/_deviceToggle.scss +2 -1
  30. package/v2Components/HtmlEditor/components/DeviceToggle/index.js +3 -3
  31. package/v2Components/HtmlEditor/components/EditorToolbar/_editorToolbar.scss +9 -0
  32. package/v2Components/HtmlEditor/components/EditorToolbar/index.js +1 -1
  33. package/v2Components/HtmlEditor/components/FullscreenModal/_fullscreenModal.scss +22 -0
  34. package/v2Components/HtmlEditor/components/InAppPreviewPane/DeviceFrame.js +4 -7
  35. package/v2Components/HtmlEditor/components/InAppPreviewPane/__tests__/DeviceFrame.test.js +35 -45
  36. package/v2Components/HtmlEditor/components/InAppPreviewPane/_inAppPreviewPane.scss +1 -3
  37. package/v2Components/HtmlEditor/components/InAppPreviewPane/constants.js +33 -33
  38. package/v2Components/HtmlEditor/components/InAppPreviewPane/index.js +7 -6
  39. package/v2Components/HtmlEditor/components/PreviewPane/_previewPane.scss +3 -6
  40. package/v2Components/HtmlEditor/components/PreviewPane/index.js +11 -13
  41. package/v2Components/HtmlEditor/components/SplitContainer/_splitContainer.scss +1 -1
  42. package/v2Components/HtmlEditor/components/ValidationErrorDisplay/index.js +49 -31
  43. package/v2Components/HtmlEditor/components/ValidationPanel/index.js +68 -39
  44. package/v2Components/HtmlEditor/components/ValidationTabs/_validationTabs.scss +254 -0
  45. package/v2Components/HtmlEditor/components/ValidationTabs/index.js +391 -0
  46. package/v2Components/HtmlEditor/components/ValidationTabs/messages.js +51 -0
  47. package/v2Components/HtmlEditor/constants.js +42 -20
  48. package/v2Components/HtmlEditor/hooks/__tests__/useInAppContent.test.js +373 -16
  49. package/v2Components/HtmlEditor/hooks/__tests__/useValidation.apiErrors.test.js +795 -0
  50. package/v2Components/HtmlEditor/hooks/useEditorContent.js +5 -2
  51. package/v2Components/HtmlEditor/hooks/useInAppContent.js +88 -146
  52. package/v2Components/HtmlEditor/hooks/useValidation.js +189 -53
  53. package/v2Components/HtmlEditor/index.js +1 -1
  54. package/v2Components/HtmlEditor/messages.js +95 -85
  55. package/v2Components/HtmlEditor/utils/__tests__/htmlValidator.enhanced.test.js +94 -45
  56. package/v2Components/HtmlEditor/utils/contentSanitizer.js +40 -41
  57. package/v2Components/HtmlEditor/utils/htmlValidator.js +71 -72
  58. package/v2Components/HtmlEditor/utils/liquidTemplateSupport.js +134 -102
  59. package/v2Components/HtmlEditor/utils/properSyntaxHighlighting.js +23 -25
  60. package/v2Components/HtmlEditor/utils/validationAdapter.js +66 -41
  61. package/v2Components/MobilePushPreviewV2/index.js +32 -7
  62. package/v2Components/TemplatePreview/_templatePreview.scss +44 -24
  63. package/v2Components/TemplatePreview/index.js +47 -32
  64. package/v2Components/TemplatePreview/messages.js +4 -0
  65. package/v2Components/TestAndPreviewSlidebox/_testAndPreviewSlidebox.scss +1 -0
  66. package/v2Containers/BeeEditor/index.js +172 -90
  67. package/v2Containers/BeePopupEditor/constants.js +10 -0
  68. package/v2Containers/BeePopupEditor/index.js +193 -0
  69. package/v2Containers/BeePopupEditor/tests/index.test.js +627 -0
  70. package/v2Containers/CreativesContainer/SlideBoxContent.js +127 -51
  71. package/v2Containers/CreativesContainer/SlideBoxFooter.js +163 -13
  72. package/v2Containers/CreativesContainer/SlideBoxHeader.js +2 -1
  73. package/v2Containers/CreativesContainer/constants.js +1 -0
  74. package/v2Containers/CreativesContainer/index.js +239 -46
  75. package/v2Containers/CreativesContainer/messages.js +8 -0
  76. package/v2Containers/CreativesContainer/tests/SlideBoxFooter.test.js +11 -2
  77. package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxContent.test.js.snap +38 -50
  78. package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +106 -0
  79. package/v2Containers/Email/actions.js +7 -0
  80. package/v2Containers/Email/constants.js +5 -1
  81. package/v2Containers/Email/index.js +222 -27
  82. package/v2Containers/Email/messages.js +32 -0
  83. package/v2Containers/Email/reducer.js +12 -1
  84. package/v2Containers/Email/sagas.js +61 -7
  85. package/v2Containers/Email/tests/__snapshots__/reducer.test.js.snap +2 -0
  86. package/v2Containers/Email/tests/sagas.test.js +320 -29
  87. package/v2Containers/EmailWrapper/components/EmailHTMLEditor.js +1321 -0
  88. package/v2Containers/EmailWrapper/components/EmailWrapperView.js +210 -15
  89. package/v2Containers/EmailWrapper/components/HTMLEditorTesting.js +40 -74
  90. package/v2Containers/EmailWrapper/components/__tests__/EmailHTMLEditor.test.js +1749 -0
  91. package/v2Containers/EmailWrapper/components/__tests__/EmailWrapperView.test.js +520 -0
  92. package/v2Containers/EmailWrapper/components/__tests__/HTMLEditorTesting.test.js +2 -67
  93. package/v2Containers/EmailWrapper/constants.js +2 -0
  94. package/v2Containers/EmailWrapper/hooks/useEmailWrapper.js +629 -77
  95. package/v2Containers/EmailWrapper/index.js +103 -23
  96. package/v2Containers/EmailWrapper/messages.js +61 -1
  97. package/v2Containers/EmailWrapper/tests/useEmailWrapper.edgeCases.test.js +643 -0
  98. package/v2Containers/EmailWrapper/tests/useEmailWrapper.test.js +594 -77
  99. package/v2Containers/InApp/__tests__/InAppHTMLEditor.test.js +376 -0
  100. package/v2Containers/InApp/__tests__/sagas.test.js +363 -0
  101. package/v2Containers/InApp/actions.js +7 -0
  102. package/v2Containers/InApp/constants.js +20 -4
  103. package/v2Containers/InApp/index.js +802 -359
  104. package/v2Containers/InApp/index.scss +4 -3
  105. package/v2Containers/InApp/messages.js +7 -3
  106. package/v2Containers/InApp/reducer.js +21 -3
  107. package/v2Containers/InApp/sagas.js +29 -9
  108. package/v2Containers/InApp/selectors.js +25 -5
  109. package/v2Containers/InApp/tests/index.test.js +154 -50
  110. package/v2Containers/InApp/tests/reducer.test.js +34 -0
  111. package/v2Containers/InApp/tests/sagas.test.js +61 -9
  112. package/v2Containers/InApp/tests/selectors.test.js +612 -0
  113. package/v2Containers/InAppWrapper/components/InAppWrapperView.js +162 -0
  114. package/v2Containers/InAppWrapper/components/__tests__/InAppWrapperView.test.js +267 -0
  115. package/v2Containers/InAppWrapper/components/inAppWrapperView.scss +9 -0
  116. package/v2Containers/InAppWrapper/constants.js +16 -0
  117. package/v2Containers/InAppWrapper/hooks/__tests__/useInAppWrapper.test.js +473 -0
  118. package/v2Containers/InAppWrapper/hooks/useInAppWrapper.js +198 -0
  119. package/v2Containers/InAppWrapper/index.js +148 -0
  120. package/v2Containers/InAppWrapper/messages.js +49 -0
  121. package/v2Containers/InappAdvance/index.js +1099 -0
  122. package/v2Containers/InappAdvance/index.scss +10 -0
  123. package/v2Containers/InappAdvance/tests/index.test.js +448 -0
  124. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +3 -0
  125. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +2 -0
  126. package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +2 -0
  127. package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +9 -0
  128. package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +12 -0
  129. package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +4 -0
  130. package/v2Containers/TagList/index.js +62 -19
  131. package/v2Containers/Templates/_templates.scss +60 -1
  132. package/v2Containers/Templates/index.js +89 -4
  133. package/v2Containers/Templates/messages.js +4 -0
  134. package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +34 -0
  135. package/v2Components/HtmlEditor/components/ValidationErrorDisplay/__tests__/index.test.js +0 -152
  136. package/v2Containers/EmailWrapper/tests/EmailWrapperView.test.js +0 -214
@@ -2,20 +2,22 @@
2
2
 
3
3
  exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIFE Should handle isTestAndPreviewMode IIFE in Email edit mode with ID 1`] = `
4
4
  <SlideBoxContent__CreativesWrapper>
5
- <ForwardRef
5
+ <Connect(UserIsAuthenticated(Component))
6
6
  cap={Object {}}
7
7
  editor="default"
8
+ emailCreateMode="editor"
8
9
  eventContextTags={Object {}}
9
- getDefaultTags=""
10
+ getCmsTemplatesInProgress={false}
10
11
  handleCloseTestAndPreview={[MockFunction]}
11
12
  handleTestAndPreview={[MockFunction]}
12
13
  isLoyaltyModule={false}
13
14
  isTestAndPreviewMode={true}
14
- key="cretives-container-email-edit"
15
+ key="cretives-container-email-edit-wrapper"
15
16
  location={
16
17
  Object {
17
- "pathname": "/email/edit",
18
+ "pathname": "/email/edit/123",
18
19
  "query": Object {
20
+ "id": "123",
19
21
  "module": "library",
20
22
  "type": "embedded",
21
23
  },
@@ -28,14 +30,10 @@ exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIF
28
30
  "id": "123",
29
31
  }
30
32
  }
31
- route={
32
- Object {
33
- "name": "email",
34
- }
35
- }
36
33
  showLiquidErrorInFooter={false}
37
34
  showTemplateName={[MockFunction]}
38
35
  showTestAndPreviewSlidebox={true}
36
+ step="createTemplateContent"
39
37
  templateData={
40
38
  Object {
41
39
  "_id": "123",
@@ -47,26 +45,29 @@ exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIF
47
45
  },
48
46
  }
49
47
  }
48
+ type=""
50
49
  />
51
50
  </SlideBoxContent__CreativesWrapper>
52
51
  `;
53
52
 
54
53
  exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIFE Should handle isTestAndPreviewMode IIFE in Email edit mode with ID 2`] = `
55
54
  <SlideBoxContent__CreativesWrapper>
56
- <ForwardRef
55
+ <Connect(UserIsAuthenticated(Component))
57
56
  cap={Object {}}
58
57
  editor="default"
58
+ emailCreateMode="editor"
59
59
  eventContextTags={Object {}}
60
- getDefaultTags=""
60
+ getCmsTemplatesInProgress={false}
61
61
  handleCloseTestAndPreview={[MockFunction]}
62
62
  handleTestAndPreview={[MockFunction]}
63
63
  isLoyaltyModule={false}
64
64
  isTestAndPreviewMode={false}
65
- key="cretives-container-email-edit"
65
+ key="cretives-container-email-edit-wrapper"
66
66
  location={
67
67
  Object {
68
- "pathname": "/email/edit",
68
+ "pathname": "/email/edit/123",
69
69
  "query": Object {
70
+ "id": "123",
70
71
  "module": "library",
71
72
  "type": "embedded",
72
73
  },
@@ -79,14 +80,10 @@ exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIF
79
80
  "id": "123",
80
81
  }
81
82
  }
82
- route={
83
- Object {
84
- "name": "email",
85
- }
86
- }
87
83
  showLiquidErrorInFooter={false}
88
84
  showTemplateName={[MockFunction]}
89
85
  showTestAndPreviewSlidebox={false}
86
+ step="createTemplateContent"
90
87
  templateData={
91
88
  Object {
92
89
  "_id": "123",
@@ -98,26 +95,29 @@ exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIF
98
95
  },
99
96
  }
100
97
  }
98
+ type=""
101
99
  />
102
100
  </SlideBoxContent__CreativesWrapper>
103
101
  `;
104
102
 
105
103
  exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIFE Should handle isTestAndPreviewMode IIFE in Email edit mode without ID 1`] = `
106
104
  <SlideBoxContent__CreativesWrapper>
107
- <ForwardRef
105
+ <Connect(UserIsAuthenticated(Component))
108
106
  cap={Object {}}
109
107
  editor="default"
108
+ emailCreateMode="editor"
110
109
  eventContextTags={Object {}}
111
- getDefaultTags=""
110
+ getCmsTemplatesInProgress={false}
112
111
  handleCloseTestAndPreview={[MockFunction]}
113
112
  handleTestAndPreview={[MockFunction]}
114
113
  isLoyaltyModule={false}
115
114
  isTestAndPreviewMode={true}
116
- key="cretives-container-email-edit"
115
+ key="cretives-container-email-edit-wrapper"
117
116
  location={
118
117
  Object {
119
- "pathname": "/email/edit",
118
+ "pathname": "/email/edit/undefined",
120
119
  "query": Object {
120
+ "id": undefined,
121
121
  "module": "library",
122
122
  "type": "embedded",
123
123
  },
@@ -130,14 +130,10 @@ exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIF
130
130
  "id": undefined,
131
131
  }
132
132
  }
133
- route={
134
- Object {
135
- "name": "email",
136
- }
137
- }
138
133
  showLiquidErrorInFooter={false}
139
134
  showTemplateName={[MockFunction]}
140
135
  showTestAndPreviewSlidebox={true}
136
+ step="createTemplateContent"
141
137
  templateData={
142
138
  Object {
143
139
  "type": "EMAIL",
@@ -148,26 +144,29 @@ exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIF
148
144
  },
149
145
  }
150
146
  }
147
+ type=""
151
148
  />
152
149
  </SlideBoxContent__CreativesWrapper>
153
150
  `;
154
151
 
155
152
  exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIFE Should handle isTestAndPreviewMode IIFE in Email edit mode without ID 2`] = `
156
153
  <SlideBoxContent__CreativesWrapper>
157
- <ForwardRef
154
+ <Connect(UserIsAuthenticated(Component))
158
155
  cap={Object {}}
159
156
  editor="default"
157
+ emailCreateMode="editor"
160
158
  eventContextTags={Object {}}
161
- getDefaultTags=""
159
+ getCmsTemplatesInProgress={false}
162
160
  handleCloseTestAndPreview={[MockFunction]}
163
161
  handleTestAndPreview={[MockFunction]}
164
162
  isLoyaltyModule={false}
165
163
  isTestAndPreviewMode={false}
166
- key="cretives-container-email-edit"
164
+ key="cretives-container-email-edit-wrapper"
167
165
  location={
168
166
  Object {
169
- "pathname": "/email/edit",
167
+ "pathname": "/email/edit/undefined",
170
168
  "query": Object {
169
+ "id": undefined,
171
170
  "module": "library",
172
171
  "type": "embedded",
173
172
  },
@@ -180,14 +179,10 @@ exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIF
180
179
  "id": undefined,
181
180
  }
182
181
  }
183
- route={
184
- Object {
185
- "name": "email",
186
- }
187
- }
188
182
  showLiquidErrorInFooter={false}
189
183
  showTemplateName={[MockFunction]}
190
184
  showTestAndPreviewSlidebox={false}
185
+ step="createTemplateContent"
191
186
  templateData={
192
187
  Object {
193
188
  "type": "EMAIL",
@@ -198,6 +193,7 @@ exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIF
198
193
  },
199
194
  }
200
195
  }
196
+ type=""
201
197
  />
202
198
  </SlideBoxContent__CreativesWrapper>
203
199
  `;
@@ -1103,25 +1099,17 @@ exports[`Test SlideBoxContent container Should render correct component for what
1103
1099
 
1104
1100
  exports[`Test SlideBoxContent container Should render correct component for whatsapp channel create mode 2`] = `
1105
1101
  <SlideBoxContent__CreativesWrapper>
1106
- <ForwardRef
1102
+ <Connect(Connect(UserIsAuthenticated(InjectIntl(CreativesCommon))))
1103
+ date={0}
1107
1104
  getDefaultTags=""
1108
- location={
1109
- Object {
1110
- "pathname": "/inapp/create",
1111
- "query": Object {
1112
- "isEditFromCampaigns": undefined,
1113
- "module": "library",
1114
- "type": "embedded",
1115
- },
1116
- "search": "",
1117
- }
1118
- }
1105
+ key="creatives-inapp-wrapper"
1119
1106
  onCreateComplete={[MockFunction]}
1120
1107
  templateData={
1121
1108
  Object {
1122
1109
  "mode": "create",
1123
1110
  }
1124
1111
  }
1112
+ type=""
1125
1113
  />
1126
1114
  </SlideBoxContent__CreativesWrapper>
1127
1115
  `;
@@ -1286,7 +1274,7 @@ exports[`Test SlideBoxContent container Should render correctly with isTestAndPr
1286
1274
 
1287
1275
  exports[`Test SlideBoxContent container Should render correctly with isTestAndPreviewMode disabled 2`] = `
1288
1276
  <SlideBoxContent__CreativesWrapper>
1289
- <Connect(UserIsAuthenticated(Connect(InjectIntl(EmailWrapper))))
1277
+ <Connect(UserIsAuthenticated(Component))
1290
1278
  date={0}
1291
1279
  getCmsTemplatesInProgress={false}
1292
1280
  isTestAndPreviewMode={false}
@@ -1361,7 +1349,7 @@ exports[`Test SlideBoxContent container Should render correctly with isTestAndPr
1361
1349
 
1362
1350
  exports[`Test SlideBoxContent container Should render correctly with isTestAndPreviewMode enabled 2`] = `
1363
1351
  <SlideBoxContent__CreativesWrapper>
1364
- <Connect(UserIsAuthenticated(Connect(InjectIntl(EmailWrapper))))
1352
+ <Connect(UserIsAuthenticated(Component))
1365
1353
  date={0}
1366
1354
  getCmsTemplatesInProgress={false}
1367
1355
  isTestAndPreviewMode={true}
@@ -3,6 +3,7 @@
3
3
  exports[`Test SlideBoxContent container campaign message, add creative click rcs 1`] = `
4
4
  <CreativesContainer__SlideBoxWrapper
5
5
  className="add-creatives-section creatives-library-mode "
6
+ shouldApplyFooterMargin={false}
6
7
  slideBoxWrapperMargin={0}
7
8
  >
8
9
  <CapSlideBox
@@ -17,6 +18,7 @@ exports[`Test SlideBoxContent container campaign message, add creative click rcs
17
18
  handleCloseTestAndPreview={[Function]}
18
19
  handleTestAndPreview={[Function]}
19
20
  hostName=""
21
+ inAppEditorType={null}
20
22
  isTestAndPreviewMode={false}
21
23
  loyaltyMetaData={
22
24
  Object {
@@ -32,6 +34,9 @@ exports[`Test SlideBoxContent container campaign message, add creative click rcs
32
34
  onEnterTemplateName={[Function]}
33
35
  onFTPSubmit={[MockFunction]}
34
36
  onFacebookSubmit={[MockFunction]}
37
+ onHtmlEditorValidationStateChange={[Function]}
38
+ onInAppEditorTypeChange={[Function]}
39
+ onInAppModeChange={[Function]}
35
40
  onMobilepushModeChange={[Function]}
36
41
  onPreviewTemplate={[Function]}
37
42
  onRemoveTemplateName={[Function]}
@@ -89,6 +94,7 @@ exports[`Test SlideBoxContent container campaign message, add creative click rcs
89
94
  exports[`Test SlideBoxContent container campaign message, add creative click whatsapp 1`] = `
90
95
  <CreativesContainer__SlideBoxWrapper
91
96
  className="add-creatives-section creatives-library-mode "
97
+ shouldApplyFooterMargin={false}
92
98
  slideBoxWrapperMargin={0}
93
99
  >
94
100
  <CapSlideBox
@@ -103,6 +109,7 @@ exports[`Test SlideBoxContent container campaign message, add creative click wha
103
109
  handleCloseTestAndPreview={[Function]}
104
110
  handleTestAndPreview={[Function]}
105
111
  hostName=""
112
+ inAppEditorType={null}
106
113
  isTestAndPreviewMode={false}
107
114
  loyaltyMetaData={
108
115
  Object {
@@ -118,6 +125,9 @@ exports[`Test SlideBoxContent container campaign message, add creative click wha
118
125
  onEnterTemplateName={[Function]}
119
126
  onFTPSubmit={[MockFunction]}
120
127
  onFacebookSubmit={[MockFunction]}
128
+ onHtmlEditorValidationStateChange={[Function]}
129
+ onInAppEditorTypeChange={[Function]}
130
+ onInAppModeChange={[Function]}
121
131
  onMobilepushModeChange={[Function]}
122
132
  onPreviewTemplate={[Function]}
123
133
  onRemoveTemplateName={[Function]}
@@ -175,6 +185,7 @@ exports[`Test SlideBoxContent container campaign message, add creative click wha
175
185
  exports[`Test SlideBoxContent container campaign message, whatsapp edit all data 1`] = `
176
186
  <CreativesContainer__SlideBoxWrapper
177
187
  className="add-creatives-section creatives-library-mode "
188
+ shouldApplyFooterMargin={false}
178
189
  slideBoxWrapperMargin={0}
179
190
  >
180
191
  <CapSlideBox
@@ -189,6 +200,7 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit all data
189
200
  handleCloseTestAndPreview={[Function]}
190
201
  handleTestAndPreview={[Function]}
191
202
  hostName=""
203
+ inAppEditorType={null}
192
204
  isTestAndPreviewMode={false}
193
205
  loyaltyMetaData={
194
206
  Object {
@@ -204,6 +216,9 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit all data
204
216
  onEnterTemplateName={[Function]}
205
217
  onFTPSubmit={[MockFunction]}
206
218
  onFacebookSubmit={[MockFunction]}
219
+ onHtmlEditorValidationStateChange={[Function]}
220
+ onInAppEditorTypeChange={[Function]}
221
+ onInAppModeChange={[Function]}
207
222
  onMobilepushModeChange={[Function]}
208
223
  onPreviewTemplate={[Function]}
209
224
  onRemoveTemplateName={[Function]}
@@ -226,20 +241,47 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit all data
226
241
  }
227
242
  footer={
228
243
  <SlideBoxFooter
244
+ continueButtonLabel={
245
+ Object {
246
+ "defaultMessage": "Next",
247
+ "id": "creatives.containersV2.Creatives.next",
248
+ }
249
+ }
229
250
  currentChannel="WHATSAPP"
230
251
  currentTab="ANDROID"
252
+ emailCreateMode=""
231
253
  errorMessages={
232
254
  Object {
233
255
  "LIQUID_ERROR_MSG": Array [],
234
256
  "STANDARD_ERROR_MSG": Array [],
235
257
  }
236
258
  }
259
+ fetchingCmsData={false}
260
+ htmlEditorValidationState={
261
+ Object {
262
+ "errorsAcknowledged": false,
263
+ "isContentEmpty": true,
264
+ "issueCounts": Object {
265
+ "html": 0,
266
+ "label": 0,
267
+ "liquid": 0,
268
+ "total": 0,
269
+ },
270
+ "validationComplete": false,
271
+ }
272
+ }
273
+ isContinueButtonDisabled={true}
274
+ isCreatingTemplate={false}
275
+ isEmptyContent={false}
276
+ isFullMode={false}
237
277
  isLiquidValidationError={false}
278
+ isTemplateNameEmpty={false}
238
279
  onCreateNextStep={[Function]}
239
280
  onDiscard={[Function]}
240
281
  onEditTemplate={[Function]}
241
282
  onSave={[Function]}
242
283
  onTestAndPreview={[Function]}
284
+ selectedEmailCreateMode={null}
243
285
  shouldShowContinueFooter={[Function]}
244
286
  shouldShowDoneFooter={[Function]}
245
287
  showTestAndPreviewButton={true}
@@ -273,6 +315,7 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit all data
273
315
  exports[`Test SlideBoxContent container campaign message, whatsapp edit min data 1`] = `
274
316
  <CreativesContainer__SlideBoxWrapper
275
317
  className="add-creatives-section creatives-library-mode "
318
+ shouldApplyFooterMargin={false}
276
319
  slideBoxWrapperMargin={0}
277
320
  >
278
321
  <CapSlideBox
@@ -287,6 +330,7 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
287
330
  handleCloseTestAndPreview={[Function]}
288
331
  handleTestAndPreview={[Function]}
289
332
  hostName=""
333
+ inAppEditorType={null}
290
334
  isTestAndPreviewMode={false}
291
335
  loyaltyMetaData={
292
336
  Object {
@@ -302,6 +346,9 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
302
346
  onEnterTemplateName={[Function]}
303
347
  onFTPSubmit={[MockFunction]}
304
348
  onFacebookSubmit={[MockFunction]}
349
+ onHtmlEditorValidationStateChange={[Function]}
350
+ onInAppEditorTypeChange={[Function]}
351
+ onInAppModeChange={[Function]}
305
352
  onMobilepushModeChange={[Function]}
306
353
  onPreviewTemplate={[Function]}
307
354
  onRemoveTemplateName={[Function]}
@@ -324,20 +371,47 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
324
371
  }
325
372
  footer={
326
373
  <SlideBoxFooter
374
+ continueButtonLabel={
375
+ Object {
376
+ "defaultMessage": "Next",
377
+ "id": "creatives.containersV2.Creatives.next",
378
+ }
379
+ }
327
380
  currentChannel="WHATSAPP"
328
381
  currentTab="ANDROID"
382
+ emailCreateMode=""
329
383
  errorMessages={
330
384
  Object {
331
385
  "LIQUID_ERROR_MSG": Array [],
332
386
  "STANDARD_ERROR_MSG": Array [],
333
387
  }
334
388
  }
389
+ fetchingCmsData={false}
390
+ htmlEditorValidationState={
391
+ Object {
392
+ "errorsAcknowledged": false,
393
+ "isContentEmpty": true,
394
+ "issueCounts": Object {
395
+ "html": 0,
396
+ "label": 0,
397
+ "liquid": 0,
398
+ "total": 0,
399
+ },
400
+ "validationComplete": false,
401
+ }
402
+ }
403
+ isContinueButtonDisabled={true}
404
+ isCreatingTemplate={false}
405
+ isEmptyContent={false}
406
+ isFullMode={false}
335
407
  isLiquidValidationError={false}
408
+ isTemplateNameEmpty={false}
336
409
  onCreateNextStep={[Function]}
337
410
  onDiscard={[Function]}
338
411
  onEditTemplate={[Function]}
339
412
  onSave={[Function]}
340
413
  onTestAndPreview={[Function]}
414
+ selectedEmailCreateMode={null}
341
415
  shouldShowContinueFooter={[Function]}
342
416
  shouldShowDoneFooter={[Function]}
343
417
  showTestAndPreviewButton={true}
@@ -371,6 +445,7 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
371
445
  exports[`Test SlideBoxContent container it should clear the url, on channel change from new whatsapp to another 1`] = `
372
446
  <CreativesContainer__SlideBoxWrapper
373
447
  className="add-creatives-section creatives-library-mode "
448
+ shouldApplyFooterMargin={false}
374
449
  slideBoxWrapperMargin={0}
375
450
  >
376
451
  <CapSlideBox
@@ -385,6 +460,7 @@ exports[`Test SlideBoxContent container it should clear the url, on channel chan
385
460
  handleCloseTestAndPreview={[Function]}
386
461
  handleTestAndPreview={[Function]}
387
462
  hostName=""
463
+ inAppEditorType={null}
388
464
  isTestAndPreviewMode={false}
389
465
  loyaltyMetaData={
390
466
  Object {
@@ -400,6 +476,9 @@ exports[`Test SlideBoxContent container it should clear the url, on channel chan
400
476
  onEnterTemplateName={[Function]}
401
477
  onFTPSubmit={[MockFunction]}
402
478
  onFacebookSubmit={[MockFunction]}
479
+ onHtmlEditorValidationStateChange={[Function]}
480
+ onInAppEditorTypeChange={[Function]}
481
+ onInAppModeChange={[Function]}
403
482
  onMobilepushModeChange={[Function]}
404
483
  onPreviewTemplate={[Function]}
405
484
  onRemoveTemplateName={[Function]}
@@ -422,20 +501,47 @@ exports[`Test SlideBoxContent container it should clear the url, on channel chan
422
501
  }
423
502
  footer={
424
503
  <SlideBoxFooter
504
+ continueButtonLabel={
505
+ Object {
506
+ "defaultMessage": "Next",
507
+ "id": "creatives.containersV2.Creatives.next",
508
+ }
509
+ }
425
510
  currentChannel="WHATSAPP"
426
511
  currentTab="ANDROID"
512
+ emailCreateMode=""
427
513
  errorMessages={
428
514
  Object {
429
515
  "LIQUID_ERROR_MSG": Array [],
430
516
  "STANDARD_ERROR_MSG": Array [],
431
517
  }
432
518
  }
519
+ fetchingCmsData={false}
520
+ htmlEditorValidationState={
521
+ Object {
522
+ "errorsAcknowledged": false,
523
+ "isContentEmpty": true,
524
+ "issueCounts": Object {
525
+ "html": 0,
526
+ "label": 0,
527
+ "liquid": 0,
528
+ "total": 0,
529
+ },
530
+ "validationComplete": false,
531
+ }
532
+ }
533
+ isContinueButtonDisabled={true}
534
+ isCreatingTemplate={false}
535
+ isEmptyContent={false}
536
+ isFullMode={false}
433
537
  isLiquidValidationError={false}
538
+ isTemplateNameEmpty={false}
434
539
  onCreateNextStep={[Function]}
435
540
  onDiscard={[Function]}
436
541
  onEditTemplate={[Function]}
437
542
  onSave={[Function]}
438
543
  onTestAndPreview={[Function]}
544
+ selectedEmailCreateMode={null}
439
545
  shouldShowContinueFooter={[Function]}
440
546
  shouldShowDoneFooter={[Function]}
441
547
  showTestAndPreviewButton={true}
@@ -66,6 +66,13 @@ export function clearCRUDResponse() {
66
66
  };
67
67
  }
68
68
 
69
+ export function getCmsAccounts(cmsType) {
70
+ return {
71
+ type: types.GET_CMS_ACCOUNTS_REQUEST,
72
+ cmsType,
73
+ };
74
+ }
75
+
69
76
  export function clearStoreValues() {
70
77
  return {
71
78
  type: types.CLEAR_ALL_VALUES,
@@ -36,4 +36,8 @@ export const DUPLICATE_TEMPLATE_REQUEST = 'app/v2Containers/Email/DUPLICATE_TEMP
36
36
  export const DUPLICATE_TEMPLATE_SUCCESS = 'app/v2Containers/Email/DUPLICATE_TEMPLATE_SUCCESS';
37
37
  export const DUPLICATE_TEMPLATE_FAILURE = 'app/v2Containers/Email/DUPLICATE_TEMPLATE_FAILURE';
38
38
 
39
- export const TRANSFORM_EMAIL_TEMPLATE_REQUEST = 'app/v2Containers/Email/TRANSFORM_EMAIL_TEMPLATE_REQUEST';
39
+ export const TRANSFORM_EMAIL_TEMPLATE_REQUEST = 'app/v2Containers/Email/TRANSFORM_EMAIL_TEMPLATE_REQUEST';
40
+
41
+ export const GET_CMS_ACCOUNTS_REQUEST = 'app/v2Containers/Email/GET_CMS_ACCOUNTS_REQUEST';
42
+ export const GET_CMS_ACCOUNTS_SUCCESS = 'app/v2Containers/Email/GET_CMS_ACCOUNTS_SUCCESS';
43
+ export const GET_CMS_ACCOUNTS_FAILURE = 'app/v2Containers/Email/GET_CMS_ACCOUNTS_FAILURE';