@capillarytech/creatives-library 8.0.271 → 8.0.273

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 (153) 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 +34 -0
  8. package/tests/integration/TemplateCreation/TemplateCreation.integration.test.js +17 -35
  9. package/tests/integration/TemplateCreation/api-response.js +31 -1
  10. package/tests/integration/TemplateCreation/msw-handler.js +2 -0
  11. package/utils/common.js +5 -0
  12. package/utils/commonUtils.js +28 -5
  13. package/utils/imageUrlUpload.js +13 -14
  14. package/utils/tests/commonUtil.test.js +224 -0
  15. package/utils/tests/imageUrlUpload.test.js +298 -0
  16. package/utils/transformTemplateConfig.js +0 -10
  17. package/v2Components/CapDeviceContent/index.js +61 -56
  18. package/v2Components/CapTagList/index.js +6 -1
  19. package/v2Components/CapTagListWithInput/index.js +5 -1
  20. package/v2Components/CapTagListWithInput/messages.js +1 -1
  21. package/v2Components/CapWhatsappCTA/tests/index.test.js +5 -0
  22. package/v2Components/ErrorInfoNote/constants.js +1 -0
  23. package/v2Components/ErrorInfoNote/index.js +402 -72
  24. package/v2Components/ErrorInfoNote/messages.js +32 -6
  25. package/v2Components/ErrorInfoNote/style.scss +278 -6
  26. package/v2Components/FormBuilder/tests/index.test.js +13 -4
  27. package/v2Components/HtmlEditor/HTMLEditor.js +418 -99
  28. package/v2Components/HtmlEditor/__tests__/HTMLEditor.apiErrors.test.js +870 -0
  29. package/v2Components/HtmlEditor/__tests__/HTMLEditor.test.js +1882 -133
  30. package/v2Components/HtmlEditor/__tests__/index.lazy.test.js +27 -16
  31. package/v2Components/HtmlEditor/_htmlEditor.scss +108 -45
  32. package/v2Components/HtmlEditor/_index.lazy.scss +0 -1
  33. package/v2Components/HtmlEditor/components/CodeEditorPane/_codeEditorPane.scss +23 -102
  34. package/v2Components/HtmlEditor/components/CodeEditorPane/index.js +148 -140
  35. package/v2Components/HtmlEditor/components/DeviceToggle/_deviceToggle.scss +2 -1
  36. package/v2Components/HtmlEditor/components/DeviceToggle/index.js +3 -3
  37. package/v2Components/HtmlEditor/components/EditorToolbar/_editorToolbar.scss +9 -1
  38. package/v2Components/HtmlEditor/components/EditorToolbar/index.js +31 -6
  39. package/v2Components/HtmlEditor/components/FullscreenModal/_fullscreenModal.scss +22 -0
  40. package/v2Components/HtmlEditor/components/InAppPreviewPane/DeviceFrame.js +4 -7
  41. package/v2Components/HtmlEditor/components/InAppPreviewPane/__tests__/DeviceFrame.test.js +35 -45
  42. package/v2Components/HtmlEditor/components/InAppPreviewPane/_inAppPreviewPane.scss +1 -3
  43. package/v2Components/HtmlEditor/components/InAppPreviewPane/constants.js +33 -33
  44. package/v2Components/HtmlEditor/components/InAppPreviewPane/index.js +7 -6
  45. package/v2Components/HtmlEditor/components/PreviewPane/_previewPane.scss +7 -10
  46. package/v2Components/HtmlEditor/components/PreviewPane/index.js +22 -43
  47. package/v2Components/HtmlEditor/components/SplitContainer/_splitContainer.scss +1 -1
  48. package/v2Components/HtmlEditor/components/ValidationErrorDisplay/_validationErrorDisplay.scss +18 -0
  49. package/v2Components/HtmlEditor/components/ValidationErrorDisplay/index.js +36 -31
  50. package/v2Components/HtmlEditor/components/ValidationPanel/_validationPanel.scss +46 -34
  51. package/v2Components/HtmlEditor/components/ValidationPanel/constants.js +6 -0
  52. package/v2Components/HtmlEditor/components/ValidationPanel/index.js +52 -46
  53. package/v2Components/HtmlEditor/components/ValidationTabs/_validationTabs.scss +277 -0
  54. package/v2Components/HtmlEditor/components/ValidationTabs/index.js +295 -0
  55. package/v2Components/HtmlEditor/components/ValidationTabs/messages.js +51 -0
  56. package/v2Components/HtmlEditor/constants.js +45 -20
  57. package/v2Components/HtmlEditor/hooks/__tests__/useInAppContent.test.js +373 -16
  58. package/v2Components/HtmlEditor/hooks/__tests__/useValidation.test.js +351 -16
  59. package/v2Components/HtmlEditor/hooks/useEditorContent.js +5 -2
  60. package/v2Components/HtmlEditor/hooks/useInAppContent.js +88 -146
  61. package/v2Components/HtmlEditor/hooks/useValidation.js +213 -56
  62. package/v2Components/HtmlEditor/index.js +1 -1
  63. package/v2Components/HtmlEditor/messages.js +102 -94
  64. package/v2Components/HtmlEditor/utils/__tests__/htmlValidator.enhanced.test.js +214 -45
  65. package/v2Components/HtmlEditor/utils/__tests__/validationAdapter.test.js +134 -0
  66. package/v2Components/HtmlEditor/utils/contentSanitizer.js +40 -41
  67. package/v2Components/HtmlEditor/utils/htmlValidator.js +71 -72
  68. package/v2Components/HtmlEditor/utils/liquidTemplateSupport.js +158 -124
  69. package/v2Components/HtmlEditor/utils/properSyntaxHighlighting.js +23 -25
  70. package/v2Components/HtmlEditor/utils/validationAdapter.js +66 -41
  71. package/v2Components/HtmlEditor/utils/validationConstants.js +38 -0
  72. package/v2Components/MobilePushPreviewV2/constants.js +6 -0
  73. package/v2Components/MobilePushPreviewV2/index.js +33 -7
  74. package/v2Components/TemplatePreview/_templatePreview.scss +55 -24
  75. package/v2Components/TemplatePreview/index.js +47 -32
  76. package/v2Components/TemplatePreview/messages.js +4 -0
  77. package/v2Components/TestAndPreviewSlidebox/_testAndPreviewSlidebox.scss +1 -0
  78. package/v2Containers/BeeEditor/index.js +172 -90
  79. package/v2Containers/BeePopupEditor/_beePopupEditor.scss +14 -0
  80. package/v2Containers/BeePopupEditor/constants.js +10 -0
  81. package/v2Containers/BeePopupEditor/index.js +194 -0
  82. package/v2Containers/BeePopupEditor/tests/index.test.js +627 -0
  83. package/v2Containers/CreativesContainer/SlideBoxContent.js +127 -51
  84. package/v2Containers/CreativesContainer/SlideBoxFooter.js +156 -13
  85. package/v2Containers/CreativesContainer/SlideBoxHeader.js +2 -1
  86. package/v2Containers/CreativesContainer/constants.js +1 -0
  87. package/v2Containers/CreativesContainer/index.js +251 -47
  88. package/v2Containers/CreativesContainer/messages.js +8 -0
  89. package/v2Containers/CreativesContainer/tests/SlideBoxFooter.test.js +11 -2
  90. package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxContent.test.js.snap +38 -50
  91. package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +103 -0
  92. package/v2Containers/Email/actions.js +7 -0
  93. package/v2Containers/Email/constants.js +5 -1
  94. package/v2Containers/Email/index.js +234 -29
  95. package/v2Containers/Email/messages.js +32 -0
  96. package/v2Containers/Email/reducer.js +12 -1
  97. package/v2Containers/Email/sagas.js +61 -7
  98. package/v2Containers/Email/tests/__snapshots__/reducer.test.js.snap +2 -0
  99. package/v2Containers/Email/tests/reducer.test.js +46 -0
  100. package/v2Containers/Email/tests/sagas.test.js +320 -29
  101. package/v2Containers/EmailWrapper/components/EmailHTMLEditor.js +1246 -0
  102. package/v2Containers/EmailWrapper/components/EmailWrapperView.js +212 -21
  103. package/v2Containers/EmailWrapper/components/HTMLEditorTesting.js +40 -74
  104. package/v2Containers/EmailWrapper/components/__tests__/EmailHTMLEditor.test.js +2614 -0
  105. package/v2Containers/EmailWrapper/components/__tests__/EmailWrapperView.test.js +520 -0
  106. package/v2Containers/EmailWrapper/components/__tests__/HTMLEditorTesting.test.js +2 -67
  107. package/v2Containers/EmailWrapper/constants.js +2 -0
  108. package/v2Containers/EmailWrapper/hooks/useEmailWrapper.js +627 -79
  109. package/v2Containers/EmailWrapper/index.js +103 -23
  110. package/v2Containers/EmailWrapper/messages.js +65 -1
  111. package/v2Containers/EmailWrapper/tests/useEmailWrapper.edgeCases.test.js +955 -0
  112. package/v2Containers/EmailWrapper/tests/useEmailWrapper.test.js +596 -82
  113. package/v2Containers/InApp/__tests__/InAppHTMLEditor.test.js +376 -0
  114. package/v2Containers/InApp/__tests__/sagas.test.js +363 -0
  115. package/v2Containers/InApp/actions.js +7 -0
  116. package/v2Containers/InApp/constants.js +20 -4
  117. package/v2Containers/InApp/index.js +802 -360
  118. package/v2Containers/InApp/index.scss +4 -3
  119. package/v2Containers/InApp/messages.js +7 -3
  120. package/v2Containers/InApp/reducer.js +21 -3
  121. package/v2Containers/InApp/sagas.js +29 -9
  122. package/v2Containers/InApp/selectors.js +25 -5
  123. package/v2Containers/InApp/tests/index.test.js +154 -50
  124. package/v2Containers/InApp/tests/reducer.test.js +34 -0
  125. package/v2Containers/InApp/tests/sagas.test.js +61 -9
  126. package/v2Containers/InApp/tests/selectors.test.js +612 -0
  127. package/v2Containers/InAppWrapper/components/InAppWrapperView.js +151 -0
  128. package/v2Containers/InAppWrapper/components/__tests__/InAppWrapperView.test.js +267 -0
  129. package/v2Containers/InAppWrapper/components/inAppWrapperView.scss +23 -0
  130. package/v2Containers/InAppWrapper/constants.js +16 -0
  131. package/v2Containers/InAppWrapper/hooks/__tests__/useInAppWrapper.test.js +473 -0
  132. package/v2Containers/InAppWrapper/hooks/useInAppWrapper.js +198 -0
  133. package/v2Containers/InAppWrapper/index.js +148 -0
  134. package/v2Containers/InAppWrapper/messages.js +49 -0
  135. package/v2Containers/InappAdvance/index.js +1099 -0
  136. package/v2Containers/InappAdvance/index.scss +10 -0
  137. package/v2Containers/InappAdvance/tests/index.test.js +448 -0
  138. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +3 -0
  139. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +2 -0
  140. package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +2 -0
  141. package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +9 -0
  142. package/v2Containers/MobilePush/Create/index.js +1 -1
  143. package/v2Containers/MobilePush/Edit/index.js +10 -6
  144. package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +12 -0
  145. package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +4 -0
  146. package/v2Containers/TagList/index.js +62 -19
  147. package/v2Containers/Templates/_templates.scss +60 -1
  148. package/v2Containers/Templates/index.js +89 -4
  149. package/v2Containers/Templates/messages.js +4 -0
  150. package/v2Containers/TemplatesV2/TemplatesV2.style.js +4 -2
  151. package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +34 -0
  152. package/v2Components/HtmlEditor/components/ValidationErrorDisplay/__tests__/index.test.js +0 -152
  153. package/v2Containers/EmailWrapper/tests/EmailWrapperView.test.js +0 -214
@@ -43,7 +43,12 @@ describe("test for empty email empty template name", () => {
43
43
  slidBoxContent: "editTemplate",
44
44
  currentChannel: "EMAIL",
45
45
  templateStep: "modeSelection",
46
- isTemplateNameEmpty: true
46
+ isTemplateNameEmpty: true,
47
+ htmlEditorValidationState: {
48
+ isContentEmpty: false,
49
+ issueCounts: { html: 0, label: 0, liquid: 0, total: 0 },
50
+ },
51
+ isCreatingTemplate: false,
47
52
  }
48
53
  renderComponent(props);
49
54
  const errorMessage = await screen.findByText(/template name cannot be empty/i);
@@ -52,7 +57,11 @@ describe("test for empty email empty template name", () => {
52
57
  expect(updateBtn).toBeDisabled();
53
58
  renderComponent({
54
59
  ...props,
55
- isTemplateNameEmpty: false
60
+ isTemplateNameEmpty: false,
61
+ htmlEditorValidationState: {
62
+ isContentEmpty: false,
63
+ issueCounts: { html: 0, label: 0, liquid: 0, total: 0 },
64
+ },
56
65
  })
57
66
  const updateBtns = screen.getAllByRole('button',{name:/update/i});
58
67
  expect(updateBtns[1]).toBeEnabled();
@@ -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,46 @@ 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
+ "errors": 0,
266
+ "total": 0,
267
+ "warnings": 0,
268
+ },
269
+ "validationComplete": false,
270
+ }
271
+ }
272
+ isContinueButtonDisabled={false}
273
+ isCreatingTemplate={false}
274
+ isEmptyContent={false}
275
+ isFullMode={false}
237
276
  isLiquidValidationError={false}
277
+ isTemplateNameEmpty={false}
238
278
  onCreateNextStep={[Function]}
239
279
  onDiscard={[Function]}
240
280
  onEditTemplate={[Function]}
241
281
  onSave={[Function]}
242
282
  onTestAndPreview={[Function]}
283
+ selectedEmailCreateMode={null}
243
284
  shouldShowContinueFooter={[Function]}
244
285
  shouldShowDoneFooter={[Function]}
245
286
  showTestAndPreviewButton={true}
@@ -273,6 +314,7 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit all data
273
314
  exports[`Test SlideBoxContent container campaign message, whatsapp edit min data 1`] = `
274
315
  <CreativesContainer__SlideBoxWrapper
275
316
  className="add-creatives-section creatives-library-mode "
317
+ shouldApplyFooterMargin={false}
276
318
  slideBoxWrapperMargin={0}
277
319
  >
278
320
  <CapSlideBox
@@ -287,6 +329,7 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
287
329
  handleCloseTestAndPreview={[Function]}
288
330
  handleTestAndPreview={[Function]}
289
331
  hostName=""
332
+ inAppEditorType={null}
290
333
  isTestAndPreviewMode={false}
291
334
  loyaltyMetaData={
292
335
  Object {
@@ -302,6 +345,9 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
302
345
  onEnterTemplateName={[Function]}
303
346
  onFTPSubmit={[MockFunction]}
304
347
  onFacebookSubmit={[MockFunction]}
348
+ onHtmlEditorValidationStateChange={[Function]}
349
+ onInAppEditorTypeChange={[Function]}
350
+ onInAppModeChange={[Function]}
305
351
  onMobilepushModeChange={[Function]}
306
352
  onPreviewTemplate={[Function]}
307
353
  onRemoveTemplateName={[Function]}
@@ -324,20 +370,46 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
324
370
  }
325
371
  footer={
326
372
  <SlideBoxFooter
373
+ continueButtonLabel={
374
+ Object {
375
+ "defaultMessage": "Next",
376
+ "id": "creatives.containersV2.Creatives.next",
377
+ }
378
+ }
327
379
  currentChannel="WHATSAPP"
328
380
  currentTab="ANDROID"
381
+ emailCreateMode=""
329
382
  errorMessages={
330
383
  Object {
331
384
  "LIQUID_ERROR_MSG": Array [],
332
385
  "STANDARD_ERROR_MSG": Array [],
333
386
  }
334
387
  }
388
+ fetchingCmsData={false}
389
+ htmlEditorValidationState={
390
+ Object {
391
+ "errorsAcknowledged": false,
392
+ "isContentEmpty": true,
393
+ "issueCounts": Object {
394
+ "errors": 0,
395
+ "total": 0,
396
+ "warnings": 0,
397
+ },
398
+ "validationComplete": false,
399
+ }
400
+ }
401
+ isContinueButtonDisabled={false}
402
+ isCreatingTemplate={false}
403
+ isEmptyContent={false}
404
+ isFullMode={false}
335
405
  isLiquidValidationError={false}
406
+ isTemplateNameEmpty={false}
336
407
  onCreateNextStep={[Function]}
337
408
  onDiscard={[Function]}
338
409
  onEditTemplate={[Function]}
339
410
  onSave={[Function]}
340
411
  onTestAndPreview={[Function]}
412
+ selectedEmailCreateMode={null}
341
413
  shouldShowContinueFooter={[Function]}
342
414
  shouldShowDoneFooter={[Function]}
343
415
  showTestAndPreviewButton={true}
@@ -371,6 +443,7 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
371
443
  exports[`Test SlideBoxContent container it should clear the url, on channel change from new whatsapp to another 1`] = `
372
444
  <CreativesContainer__SlideBoxWrapper
373
445
  className="add-creatives-section creatives-library-mode "
446
+ shouldApplyFooterMargin={false}
374
447
  slideBoxWrapperMargin={0}
375
448
  >
376
449
  <CapSlideBox
@@ -385,6 +458,7 @@ exports[`Test SlideBoxContent container it should clear the url, on channel chan
385
458
  handleCloseTestAndPreview={[Function]}
386
459
  handleTestAndPreview={[Function]}
387
460
  hostName=""
461
+ inAppEditorType={null}
388
462
  isTestAndPreviewMode={false}
389
463
  loyaltyMetaData={
390
464
  Object {
@@ -400,6 +474,9 @@ exports[`Test SlideBoxContent container it should clear the url, on channel chan
400
474
  onEnterTemplateName={[Function]}
401
475
  onFTPSubmit={[MockFunction]}
402
476
  onFacebookSubmit={[MockFunction]}
477
+ onHtmlEditorValidationStateChange={[Function]}
478
+ onInAppEditorTypeChange={[Function]}
479
+ onInAppModeChange={[Function]}
403
480
  onMobilepushModeChange={[Function]}
404
481
  onPreviewTemplate={[Function]}
405
482
  onRemoveTemplateName={[Function]}
@@ -422,20 +499,46 @@ exports[`Test SlideBoxContent container it should clear the url, on channel chan
422
499
  }
423
500
  footer={
424
501
  <SlideBoxFooter
502
+ continueButtonLabel={
503
+ Object {
504
+ "defaultMessage": "Next",
505
+ "id": "creatives.containersV2.Creatives.next",
506
+ }
507
+ }
425
508
  currentChannel="WHATSAPP"
426
509
  currentTab="ANDROID"
510
+ emailCreateMode=""
427
511
  errorMessages={
428
512
  Object {
429
513
  "LIQUID_ERROR_MSG": Array [],
430
514
  "STANDARD_ERROR_MSG": Array [],
431
515
  }
432
516
  }
517
+ fetchingCmsData={false}
518
+ htmlEditorValidationState={
519
+ Object {
520
+ "errorsAcknowledged": false,
521
+ "isContentEmpty": true,
522
+ "issueCounts": Object {
523
+ "errors": 0,
524
+ "total": 0,
525
+ "warnings": 0,
526
+ },
527
+ "validationComplete": false,
528
+ }
529
+ }
530
+ isContinueButtonDisabled={false}
531
+ isCreatingTemplate={false}
532
+ isEmptyContent={false}
533
+ isFullMode={false}
433
534
  isLiquidValidationError={false}
535
+ isTemplateNameEmpty={false}
434
536
  onCreateNextStep={[Function]}
435
537
  onDiscard={[Function]}
436
538
  onEditTemplate={[Function]}
437
539
  onSave={[Function]}
438
540
  onTestAndPreview={[Function]}
541
+ selectedEmailCreateMode={null}
439
542
  shouldShowContinueFooter={[Function]}
440
543
  shouldShowDoneFooter={[Function]}
441
544
  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';