@capillarytech/creatives-library 8.0.246-alpha.0 → 8.0.246
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/assets/Android.png +0 -0
- package/assets/iOS.png +0 -0
- package/constants/unified.js +1 -2
- package/initialReducer.js +0 -2
- package/package.json +1 -1
- package/services/api.js +0 -10
- package/services/tests/api.test.js +0 -18
- package/utils/common.js +0 -5
- package/utils/commonUtils.js +5 -28
- package/utils/tests/commonUtil.test.js +0 -224
- package/utils/transformTemplateConfig.js +10 -0
- package/v2Components/CapDeviceContent/index.js +56 -61
- package/v2Components/CapTagList/index.js +1 -6
- package/v2Components/CapTagListWithInput/index.js +1 -5
- package/v2Components/CapTagListWithInput/messages.js +1 -1
- package/v2Components/CapWhatsappCTA/tests/index.test.js +0 -5
- package/v2Components/ErrorInfoNote/index.js +72 -447
- package/v2Components/ErrorInfoNote/messages.js +0 -22
- package/v2Components/ErrorInfoNote/style.scss +4 -280
- package/v2Components/FormBuilder/tests/index.test.js +4 -13
- package/v2Components/HtmlEditor/HTMLEditor.js +94 -642
- package/v2Components/HtmlEditor/__tests__/HTMLEditor.test.js +133 -1135
- package/v2Components/HtmlEditor/__tests__/index.lazy.test.js +16 -27
- package/v2Components/HtmlEditor/_htmlEditor.scss +45 -108
- package/v2Components/HtmlEditor/_index.lazy.scss +1 -1
- package/v2Components/HtmlEditor/components/CodeEditorPane/_codeEditorPane.scss +101 -13
- package/v2Components/HtmlEditor/components/CodeEditorPane/index.js +139 -148
- package/v2Components/HtmlEditor/components/DeviceToggle/_deviceToggle.scss +1 -2
- package/v2Components/HtmlEditor/components/DeviceToggle/index.js +3 -3
- package/v2Components/HtmlEditor/components/EditorToolbar/_editorToolbar.scss +0 -9
- package/v2Components/HtmlEditor/components/EditorToolbar/index.js +1 -1
- package/v2Components/HtmlEditor/components/FullscreenModal/_fullscreenModal.scss +0 -22
- package/v2Components/HtmlEditor/components/InAppPreviewPane/DeviceFrame.js +7 -4
- package/v2Components/HtmlEditor/components/InAppPreviewPane/__tests__/DeviceFrame.test.js +45 -35
- package/v2Components/HtmlEditor/components/InAppPreviewPane/_inAppPreviewPane.scss +3 -1
- package/v2Components/HtmlEditor/components/InAppPreviewPane/constants.js +33 -33
- package/v2Components/HtmlEditor/components/InAppPreviewPane/index.js +6 -7
- package/v2Components/HtmlEditor/components/PreviewPane/_previewPane.scss +6 -3
- package/v2Components/HtmlEditor/components/PreviewPane/index.js +13 -11
- package/v2Components/HtmlEditor/components/SplitContainer/_splitContainer.scss +1 -1
- package/v2Components/HtmlEditor/components/ValidationErrorDisplay/__tests__/index.test.js +152 -0
- package/v2Components/HtmlEditor/components/ValidationErrorDisplay/index.js +31 -49
- package/v2Components/HtmlEditor/constants.js +20 -29
- package/v2Components/HtmlEditor/hooks/__tests__/useInAppContent.test.js +16 -373
- package/v2Components/HtmlEditor/hooks/useEditorContent.js +2 -5
- package/v2Components/HtmlEditor/hooks/useInAppContent.js +146 -88
- package/v2Components/HtmlEditor/hooks/useValidation.js +45 -150
- package/v2Components/HtmlEditor/index.js +1 -1
- package/v2Components/HtmlEditor/messages.js +85 -95
- package/v2Components/HtmlEditor/utils/liquidTemplateSupport.js +102 -134
- package/v2Components/HtmlEditor/utils/properSyntaxHighlighting.js +25 -23
- package/v2Components/HtmlEditor/utils/validationAdapter.js +41 -66
- package/v2Components/MobilePushPreviewV2/index.js +7 -32
- package/v2Components/TemplatePreview/_templatePreview.scss +24 -44
- package/v2Components/TemplatePreview/index.js +32 -47
- package/v2Components/TemplatePreview/messages.js +0 -4
- package/v2Components/TestAndPreviewSlidebox/_testAndPreviewSlidebox.scss +0 -1
- package/v2Components/TestAndPreviewSlidebox/index.js +25 -31
- package/v2Containers/BeeEditor/index.js +90 -172
- package/v2Containers/CreativesContainer/SlideBoxContent.js +51 -128
- package/v2Containers/CreativesContainer/SlideBoxFooter.js +12 -113
- package/v2Containers/CreativesContainer/SlideBoxHeader.js +1 -2
- package/v2Containers/CreativesContainer/constants.js +0 -1
- package/v2Containers/CreativesContainer/index.js +46 -238
- package/v2Containers/CreativesContainer/messages.js +0 -8
- package/v2Containers/CreativesContainer/tests/SlideBoxFooter.test.js +2 -11
- package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxContent.test.js.snap +50 -38
- package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +0 -91
- package/v2Containers/Email/actions.js +0 -7
- package/v2Containers/Email/constants.js +1 -5
- package/v2Containers/Email/index.js +30 -229
- package/v2Containers/Email/messages.js +0 -32
- package/v2Containers/Email/reducer.js +1 -12
- package/v2Containers/Email/sagas.js +7 -61
- package/v2Containers/Email/tests/__snapshots__/reducer.test.js.snap +0 -2
- package/v2Containers/Email/tests/sagas.test.js +1 -1
- package/v2Containers/EmailWrapper/components/EmailWrapperView.js +15 -210
- package/v2Containers/EmailWrapper/components/HTMLEditorTesting.js +74 -40
- package/v2Containers/EmailWrapper/components/__tests__/HTMLEditorTesting.test.js +67 -2
- package/v2Containers/EmailWrapper/constants.js +0 -2
- package/v2Containers/EmailWrapper/hooks/useEmailWrapper.js +77 -629
- package/v2Containers/EmailWrapper/index.js +23 -103
- package/v2Containers/EmailWrapper/messages.js +1 -61
- package/v2Containers/EmailWrapper/tests/EmailWrapperView.test.js +214 -0
- package/v2Containers/EmailWrapper/tests/useEmailWrapper.test.js +77 -509
- package/v2Containers/InApp/actions.js +0 -7
- package/v2Containers/InApp/constants.js +4 -20
- package/v2Containers/InApp/index.js +357 -801
- package/v2Containers/InApp/index.scss +3 -4
- package/v2Containers/InApp/messages.js +3 -7
- package/v2Containers/InApp/reducer.js +3 -21
- package/v2Containers/InApp/sagas.js +9 -29
- package/v2Containers/InApp/selectors.js +5 -25
- package/v2Containers/InApp/tests/index.test.js +50 -154
- package/v2Containers/InApp/tests/reducer.test.js +0 -34
- package/v2Containers/InApp/tests/sagas.test.js +9 -61
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +0 -3
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +0 -2
- package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +0 -2
- package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +0 -9
- package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +0 -12
- package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +0 -4
- package/v2Containers/TagList/index.js +19 -62
- package/v2Containers/Templates/_templates.scss +1 -60
- package/v2Containers/Templates/index.js +4 -89
- package/v2Containers/Templates/messages.js +0 -4
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +0 -35
- package/v2Components/HtmlEditor/__tests__/HTMLEditor.apiErrors.test.js +0 -874
- package/v2Components/HtmlEditor/components/ValidationTabs/_validationTabs.scss +0 -254
- package/v2Components/HtmlEditor/components/ValidationTabs/index.js +0 -363
- package/v2Components/HtmlEditor/components/ValidationTabs/messages.js +0 -51
- package/v2Components/HtmlEditor/hooks/__tests__/useValidation.apiErrors.test.js +0 -630
- package/v2Containers/BeePopupEditor/constants.js +0 -10
- package/v2Containers/BeePopupEditor/index.js +0 -193
- package/v2Containers/BeePopupEditor/tests/index.test.js +0 -627
- package/v2Containers/EmailWrapper/components/EmailHTMLEditor.js +0 -1317
- package/v2Containers/EmailWrapper/components/__tests__/EmailHTMLEditor.test.js +0 -1605
- package/v2Containers/EmailWrapper/components/__tests__/EmailWrapperView.test.js +0 -520
- package/v2Containers/EmailWrapper/tests/useEmailWrapper.edgeCases.test.js +0 -643
- package/v2Containers/InApp/__tests__/InAppHTMLEditor.test.js +0 -376
- package/v2Containers/InApp/__tests__/sagas.test.js +0 -363
- package/v2Containers/InApp/tests/selectors.test.js +0 -612
- package/v2Containers/InAppWrapper/components/InAppWrapperView.js +0 -162
- package/v2Containers/InAppWrapper/components/__tests__/InAppWrapperView.test.js +0 -267
- package/v2Containers/InAppWrapper/components/inAppWrapperView.scss +0 -9
- package/v2Containers/InAppWrapper/constants.js +0 -16
- package/v2Containers/InAppWrapper/hooks/__tests__/useInAppWrapper.test.js +0 -473
- package/v2Containers/InAppWrapper/hooks/useInAppWrapper.js +0 -198
- package/v2Containers/InAppWrapper/index.js +0 -148
- package/v2Containers/InAppWrapper/messages.js +0 -49
- package/v2Containers/InappAdvance/index.js +0 -1099
- package/v2Containers/InappAdvance/index.scss +0 -10
- package/v2Containers/InappAdvance/tests/index.test.js +0 -448
|
@@ -2,22 +2,20 @@
|
|
|
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
|
-
<
|
|
5
|
+
<ForwardRef
|
|
6
6
|
cap={Object {}}
|
|
7
7
|
editor="default"
|
|
8
|
-
emailCreateMode="editor"
|
|
9
8
|
eventContextTags={Object {}}
|
|
10
|
-
|
|
9
|
+
getDefaultTags=""
|
|
11
10
|
handleCloseTestAndPreview={[MockFunction]}
|
|
12
11
|
handleTestAndPreview={[MockFunction]}
|
|
13
12
|
isLoyaltyModule={false}
|
|
14
13
|
isTestAndPreviewMode={true}
|
|
15
|
-
key="cretives-container-email-edit
|
|
14
|
+
key="cretives-container-email-edit"
|
|
16
15
|
location={
|
|
17
16
|
Object {
|
|
18
|
-
"pathname": "/email/edit
|
|
17
|
+
"pathname": "/email/edit",
|
|
19
18
|
"query": Object {
|
|
20
|
-
"id": "123",
|
|
21
19
|
"module": "library",
|
|
22
20
|
"type": "embedded",
|
|
23
21
|
},
|
|
@@ -30,10 +28,14 @@ exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIF
|
|
|
30
28
|
"id": "123",
|
|
31
29
|
}
|
|
32
30
|
}
|
|
31
|
+
route={
|
|
32
|
+
Object {
|
|
33
|
+
"name": "email",
|
|
34
|
+
}
|
|
35
|
+
}
|
|
33
36
|
showLiquidErrorInFooter={false}
|
|
34
37
|
showTemplateName={[MockFunction]}
|
|
35
38
|
showTestAndPreviewSlidebox={true}
|
|
36
|
-
step="createTemplateContent"
|
|
37
39
|
templateData={
|
|
38
40
|
Object {
|
|
39
41
|
"_id": "123",
|
|
@@ -45,29 +47,26 @@ exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIF
|
|
|
45
47
|
},
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
|
-
type=""
|
|
49
50
|
/>
|
|
50
51
|
</SlideBoxContent__CreativesWrapper>
|
|
51
52
|
`;
|
|
52
53
|
|
|
53
54
|
exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIFE Should handle isTestAndPreviewMode IIFE in Email edit mode with ID 2`] = `
|
|
54
55
|
<SlideBoxContent__CreativesWrapper>
|
|
55
|
-
<
|
|
56
|
+
<ForwardRef
|
|
56
57
|
cap={Object {}}
|
|
57
58
|
editor="default"
|
|
58
|
-
emailCreateMode="editor"
|
|
59
59
|
eventContextTags={Object {}}
|
|
60
|
-
|
|
60
|
+
getDefaultTags=""
|
|
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"
|
|
66
66
|
location={
|
|
67
67
|
Object {
|
|
68
|
-
"pathname": "/email/edit
|
|
68
|
+
"pathname": "/email/edit",
|
|
69
69
|
"query": Object {
|
|
70
|
-
"id": "123",
|
|
71
70
|
"module": "library",
|
|
72
71
|
"type": "embedded",
|
|
73
72
|
},
|
|
@@ -80,10 +79,14 @@ exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIF
|
|
|
80
79
|
"id": "123",
|
|
81
80
|
}
|
|
82
81
|
}
|
|
82
|
+
route={
|
|
83
|
+
Object {
|
|
84
|
+
"name": "email",
|
|
85
|
+
}
|
|
86
|
+
}
|
|
83
87
|
showLiquidErrorInFooter={false}
|
|
84
88
|
showTemplateName={[MockFunction]}
|
|
85
89
|
showTestAndPreviewSlidebox={false}
|
|
86
|
-
step="createTemplateContent"
|
|
87
90
|
templateData={
|
|
88
91
|
Object {
|
|
89
92
|
"_id": "123",
|
|
@@ -95,29 +98,26 @@ exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIF
|
|
|
95
98
|
},
|
|
96
99
|
}
|
|
97
100
|
}
|
|
98
|
-
type=""
|
|
99
101
|
/>
|
|
100
102
|
</SlideBoxContent__CreativesWrapper>
|
|
101
103
|
`;
|
|
102
104
|
|
|
103
105
|
exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIFE Should handle isTestAndPreviewMode IIFE in Email edit mode without ID 1`] = `
|
|
104
106
|
<SlideBoxContent__CreativesWrapper>
|
|
105
|
-
<
|
|
107
|
+
<ForwardRef
|
|
106
108
|
cap={Object {}}
|
|
107
109
|
editor="default"
|
|
108
|
-
emailCreateMode="editor"
|
|
109
110
|
eventContextTags={Object {}}
|
|
110
|
-
|
|
111
|
+
getDefaultTags=""
|
|
111
112
|
handleCloseTestAndPreview={[MockFunction]}
|
|
112
113
|
handleTestAndPreview={[MockFunction]}
|
|
113
114
|
isLoyaltyModule={false}
|
|
114
115
|
isTestAndPreviewMode={true}
|
|
115
|
-
key="cretives-container-email-edit
|
|
116
|
+
key="cretives-container-email-edit"
|
|
116
117
|
location={
|
|
117
118
|
Object {
|
|
118
|
-
"pathname": "/email/edit
|
|
119
|
+
"pathname": "/email/edit",
|
|
119
120
|
"query": Object {
|
|
120
|
-
"id": undefined,
|
|
121
121
|
"module": "library",
|
|
122
122
|
"type": "embedded",
|
|
123
123
|
},
|
|
@@ -130,10 +130,14 @@ 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
|
+
}
|
|
133
138
|
showLiquidErrorInFooter={false}
|
|
134
139
|
showTemplateName={[MockFunction]}
|
|
135
140
|
showTestAndPreviewSlidebox={true}
|
|
136
|
-
step="createTemplateContent"
|
|
137
141
|
templateData={
|
|
138
142
|
Object {
|
|
139
143
|
"type": "EMAIL",
|
|
@@ -144,29 +148,26 @@ exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIF
|
|
|
144
148
|
},
|
|
145
149
|
}
|
|
146
150
|
}
|
|
147
|
-
type=""
|
|
148
151
|
/>
|
|
149
152
|
</SlideBoxContent__CreativesWrapper>
|
|
150
153
|
`;
|
|
151
154
|
|
|
152
155
|
exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIFE Should handle isTestAndPreviewMode IIFE in Email edit mode without ID 2`] = `
|
|
153
156
|
<SlideBoxContent__CreativesWrapper>
|
|
154
|
-
<
|
|
157
|
+
<ForwardRef
|
|
155
158
|
cap={Object {}}
|
|
156
159
|
editor="default"
|
|
157
|
-
emailCreateMode="editor"
|
|
158
160
|
eventContextTags={Object {}}
|
|
159
|
-
|
|
161
|
+
getDefaultTags=""
|
|
160
162
|
handleCloseTestAndPreview={[MockFunction]}
|
|
161
163
|
handleTestAndPreview={[MockFunction]}
|
|
162
164
|
isLoyaltyModule={false}
|
|
163
165
|
isTestAndPreviewMode={false}
|
|
164
|
-
key="cretives-container-email-edit
|
|
166
|
+
key="cretives-container-email-edit"
|
|
165
167
|
location={
|
|
166
168
|
Object {
|
|
167
|
-
"pathname": "/email/edit
|
|
169
|
+
"pathname": "/email/edit",
|
|
168
170
|
"query": Object {
|
|
169
|
-
"id": undefined,
|
|
170
171
|
"module": "library",
|
|
171
172
|
"type": "embedded",
|
|
172
173
|
},
|
|
@@ -179,10 +180,14 @@ exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIF
|
|
|
179
180
|
"id": undefined,
|
|
180
181
|
}
|
|
181
182
|
}
|
|
183
|
+
route={
|
|
184
|
+
Object {
|
|
185
|
+
"name": "email",
|
|
186
|
+
}
|
|
187
|
+
}
|
|
182
188
|
showLiquidErrorInFooter={false}
|
|
183
189
|
showTemplateName={[MockFunction]}
|
|
184
190
|
showTestAndPreviewSlidebox={false}
|
|
185
|
-
step="createTemplateContent"
|
|
186
191
|
templateData={
|
|
187
192
|
Object {
|
|
188
193
|
"type": "EMAIL",
|
|
@@ -193,7 +198,6 @@ exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIF
|
|
|
193
198
|
},
|
|
194
199
|
}
|
|
195
200
|
}
|
|
196
|
-
type=""
|
|
197
201
|
/>
|
|
198
202
|
</SlideBoxContent__CreativesWrapper>
|
|
199
203
|
`;
|
|
@@ -1097,17 +1101,25 @@ exports[`Test SlideBoxContent container Should render correct component for what
|
|
|
1097
1101
|
|
|
1098
1102
|
exports[`Test SlideBoxContent container Should render correct component for whatsapp channel create mode 2`] = `
|
|
1099
1103
|
<SlideBoxContent__CreativesWrapper>
|
|
1100
|
-
<
|
|
1101
|
-
date={0}
|
|
1104
|
+
<ForwardRef
|
|
1102
1105
|
getDefaultTags=""
|
|
1103
|
-
|
|
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
|
+
}
|
|
1104
1117
|
onCreateComplete={[MockFunction]}
|
|
1105
1118
|
templateData={
|
|
1106
1119
|
Object {
|
|
1107
1120
|
"mode": "create",
|
|
1108
1121
|
}
|
|
1109
1122
|
}
|
|
1110
|
-
type=""
|
|
1111
1123
|
/>
|
|
1112
1124
|
</SlideBoxContent__CreativesWrapper>
|
|
1113
1125
|
`;
|
|
@@ -1271,7 +1283,7 @@ exports[`Test SlideBoxContent container Should render correctly with isTestAndPr
|
|
|
1271
1283
|
|
|
1272
1284
|
exports[`Test SlideBoxContent container Should render correctly with isTestAndPreviewMode disabled 2`] = `
|
|
1273
1285
|
<SlideBoxContent__CreativesWrapper>
|
|
1274
|
-
<Connect(UserIsAuthenticated(
|
|
1286
|
+
<Connect(UserIsAuthenticated(Connect(InjectIntl(EmailWrapper))))
|
|
1275
1287
|
date={0}
|
|
1276
1288
|
getCmsTemplatesInProgress={false}
|
|
1277
1289
|
isTestAndPreviewMode={false}
|
|
@@ -1345,7 +1357,7 @@ exports[`Test SlideBoxContent container Should render correctly with isTestAndPr
|
|
|
1345
1357
|
|
|
1346
1358
|
exports[`Test SlideBoxContent container Should render correctly with isTestAndPreviewMode enabled 2`] = `
|
|
1347
1359
|
<SlideBoxContent__CreativesWrapper>
|
|
1348
|
-
<Connect(UserIsAuthenticated(
|
|
1360
|
+
<Connect(UserIsAuthenticated(Connect(InjectIntl(EmailWrapper))))
|
|
1349
1361
|
date={0}
|
|
1350
1362
|
getCmsTemplatesInProgress={false}
|
|
1351
1363
|
isTestAndPreviewMode={true}
|
|
@@ -3,7 +3,6 @@
|
|
|
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}
|
|
7
6
|
slideBoxWrapperMargin={0}
|
|
8
7
|
>
|
|
9
8
|
<CapSlideBox
|
|
@@ -18,7 +17,6 @@ exports[`Test SlideBoxContent container campaign message, add creative click rcs
|
|
|
18
17
|
handleCloseTestAndPreview={[Function]}
|
|
19
18
|
handleTestAndPreview={[Function]}
|
|
20
19
|
hostName=""
|
|
21
|
-
inAppEditorType={null}
|
|
22
20
|
isTestAndPreviewMode={false}
|
|
23
21
|
loyaltyMetaData={
|
|
24
22
|
Object {
|
|
@@ -34,9 +32,6 @@ exports[`Test SlideBoxContent container campaign message, add creative click rcs
|
|
|
34
32
|
onEnterTemplateName={[Function]}
|
|
35
33
|
onFTPSubmit={[MockFunction]}
|
|
36
34
|
onFacebookSubmit={[MockFunction]}
|
|
37
|
-
onHtmlEditorValidationStateChange={[Function]}
|
|
38
|
-
onInAppEditorTypeChange={[Function]}
|
|
39
|
-
onInAppModeChange={[Function]}
|
|
40
35
|
onMobilepushModeChange={[Function]}
|
|
41
36
|
onPreviewTemplate={[Function]}
|
|
42
37
|
onRemoveTemplateName={[Function]}
|
|
@@ -94,7 +89,6 @@ exports[`Test SlideBoxContent container campaign message, add creative click rcs
|
|
|
94
89
|
exports[`Test SlideBoxContent container campaign message, add creative click whatsapp 1`] = `
|
|
95
90
|
<CreativesContainer__SlideBoxWrapper
|
|
96
91
|
className="add-creatives-section creatives-library-mode "
|
|
97
|
-
shouldApplyFooterMargin={false}
|
|
98
92
|
slideBoxWrapperMargin={0}
|
|
99
93
|
>
|
|
100
94
|
<CapSlideBox
|
|
@@ -109,7 +103,6 @@ exports[`Test SlideBoxContent container campaign message, add creative click wha
|
|
|
109
103
|
handleCloseTestAndPreview={[Function]}
|
|
110
104
|
handleTestAndPreview={[Function]}
|
|
111
105
|
hostName=""
|
|
112
|
-
inAppEditorType={null}
|
|
113
106
|
isTestAndPreviewMode={false}
|
|
114
107
|
loyaltyMetaData={
|
|
115
108
|
Object {
|
|
@@ -125,9 +118,6 @@ exports[`Test SlideBoxContent container campaign message, add creative click wha
|
|
|
125
118
|
onEnterTemplateName={[Function]}
|
|
126
119
|
onFTPSubmit={[MockFunction]}
|
|
127
120
|
onFacebookSubmit={[MockFunction]}
|
|
128
|
-
onHtmlEditorValidationStateChange={[Function]}
|
|
129
|
-
onInAppEditorTypeChange={[Function]}
|
|
130
|
-
onInAppModeChange={[Function]}
|
|
131
121
|
onMobilepushModeChange={[Function]}
|
|
132
122
|
onPreviewTemplate={[Function]}
|
|
133
123
|
onRemoveTemplateName={[Function]}
|
|
@@ -185,7 +175,6 @@ exports[`Test SlideBoxContent container campaign message, add creative click wha
|
|
|
185
175
|
exports[`Test SlideBoxContent container campaign message, whatsapp edit all data 1`] = `
|
|
186
176
|
<CreativesContainer__SlideBoxWrapper
|
|
187
177
|
className="add-creatives-section creatives-library-mode "
|
|
188
|
-
shouldApplyFooterMargin={false}
|
|
189
178
|
slideBoxWrapperMargin={0}
|
|
190
179
|
>
|
|
191
180
|
<CapSlideBox
|
|
@@ -200,7 +189,6 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit all data
|
|
|
200
189
|
handleCloseTestAndPreview={[Function]}
|
|
201
190
|
handleTestAndPreview={[Function]}
|
|
202
191
|
hostName=""
|
|
203
|
-
inAppEditorType={null}
|
|
204
192
|
isTestAndPreviewMode={false}
|
|
205
193
|
loyaltyMetaData={
|
|
206
194
|
Object {
|
|
@@ -216,9 +204,6 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit all data
|
|
|
216
204
|
onEnterTemplateName={[Function]}
|
|
217
205
|
onFTPSubmit={[MockFunction]}
|
|
218
206
|
onFacebookSubmit={[MockFunction]}
|
|
219
|
-
onHtmlEditorValidationStateChange={[Function]}
|
|
220
|
-
onInAppEditorTypeChange={[Function]}
|
|
221
|
-
onInAppModeChange={[Function]}
|
|
222
207
|
onMobilepushModeChange={[Function]}
|
|
223
208
|
onPreviewTemplate={[Function]}
|
|
224
209
|
onRemoveTemplateName={[Function]}
|
|
@@ -241,12 +226,6 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit all data
|
|
|
241
226
|
}
|
|
242
227
|
footer={
|
|
243
228
|
<SlideBoxFooter
|
|
244
|
-
continueButtonLabel={
|
|
245
|
-
Object {
|
|
246
|
-
"defaultMessage": "Next",
|
|
247
|
-
"id": "creatives.containersV2.Creatives.next",
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
229
|
currentChannel="WHATSAPP"
|
|
251
230
|
currentTab="ANDROID"
|
|
252
231
|
errorMessages={
|
|
@@ -255,28 +234,12 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit all data
|
|
|
255
234
|
"STANDARD_ERROR_MSG": Array [],
|
|
256
235
|
}
|
|
257
236
|
}
|
|
258
|
-
htmlEditorValidationState={
|
|
259
|
-
Object {
|
|
260
|
-
"errorsAcknowledged": false,
|
|
261
|
-
"isContentEmpty": true,
|
|
262
|
-
"issueCounts": Object {
|
|
263
|
-
"html": 0,
|
|
264
|
-
"label": 0,
|
|
265
|
-
"liquid": 0,
|
|
266
|
-
"total": 0,
|
|
267
|
-
},
|
|
268
|
-
"validationComplete": false,
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
isContinueButtonDisabled={true}
|
|
272
|
-
isCreatingTemplate={false}
|
|
273
237
|
isLiquidValidationError={false}
|
|
274
238
|
onCreateNextStep={[Function]}
|
|
275
239
|
onDiscard={[Function]}
|
|
276
240
|
onEditTemplate={[Function]}
|
|
277
241
|
onSave={[Function]}
|
|
278
242
|
onTestAndPreview={[Function]}
|
|
279
|
-
selectedEmailCreateMode={null}
|
|
280
243
|
shouldShowContinueFooter={[Function]}
|
|
281
244
|
shouldShowDoneFooter={[Function]}
|
|
282
245
|
showTestAndPreviewButton={false}
|
|
@@ -310,7 +273,6 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit all data
|
|
|
310
273
|
exports[`Test SlideBoxContent container campaign message, whatsapp edit min data 1`] = `
|
|
311
274
|
<CreativesContainer__SlideBoxWrapper
|
|
312
275
|
className="add-creatives-section creatives-library-mode "
|
|
313
|
-
shouldApplyFooterMargin={false}
|
|
314
276
|
slideBoxWrapperMargin={0}
|
|
315
277
|
>
|
|
316
278
|
<CapSlideBox
|
|
@@ -325,7 +287,6 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
|
|
|
325
287
|
handleCloseTestAndPreview={[Function]}
|
|
326
288
|
handleTestAndPreview={[Function]}
|
|
327
289
|
hostName=""
|
|
328
|
-
inAppEditorType={null}
|
|
329
290
|
isTestAndPreviewMode={false}
|
|
330
291
|
loyaltyMetaData={
|
|
331
292
|
Object {
|
|
@@ -341,9 +302,6 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
|
|
|
341
302
|
onEnterTemplateName={[Function]}
|
|
342
303
|
onFTPSubmit={[MockFunction]}
|
|
343
304
|
onFacebookSubmit={[MockFunction]}
|
|
344
|
-
onHtmlEditorValidationStateChange={[Function]}
|
|
345
|
-
onInAppEditorTypeChange={[Function]}
|
|
346
|
-
onInAppModeChange={[Function]}
|
|
347
305
|
onMobilepushModeChange={[Function]}
|
|
348
306
|
onPreviewTemplate={[Function]}
|
|
349
307
|
onRemoveTemplateName={[Function]}
|
|
@@ -366,12 +324,6 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
|
|
|
366
324
|
}
|
|
367
325
|
footer={
|
|
368
326
|
<SlideBoxFooter
|
|
369
|
-
continueButtonLabel={
|
|
370
|
-
Object {
|
|
371
|
-
"defaultMessage": "Next",
|
|
372
|
-
"id": "creatives.containersV2.Creatives.next",
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
327
|
currentChannel="WHATSAPP"
|
|
376
328
|
currentTab="ANDROID"
|
|
377
329
|
errorMessages={
|
|
@@ -380,28 +332,12 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
|
|
|
380
332
|
"STANDARD_ERROR_MSG": Array [],
|
|
381
333
|
}
|
|
382
334
|
}
|
|
383
|
-
htmlEditorValidationState={
|
|
384
|
-
Object {
|
|
385
|
-
"errorsAcknowledged": false,
|
|
386
|
-
"isContentEmpty": true,
|
|
387
|
-
"issueCounts": Object {
|
|
388
|
-
"html": 0,
|
|
389
|
-
"label": 0,
|
|
390
|
-
"liquid": 0,
|
|
391
|
-
"total": 0,
|
|
392
|
-
},
|
|
393
|
-
"validationComplete": false,
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
isContinueButtonDisabled={true}
|
|
397
|
-
isCreatingTemplate={false}
|
|
398
335
|
isLiquidValidationError={false}
|
|
399
336
|
onCreateNextStep={[Function]}
|
|
400
337
|
onDiscard={[Function]}
|
|
401
338
|
onEditTemplate={[Function]}
|
|
402
339
|
onSave={[Function]}
|
|
403
340
|
onTestAndPreview={[Function]}
|
|
404
|
-
selectedEmailCreateMode={null}
|
|
405
341
|
shouldShowContinueFooter={[Function]}
|
|
406
342
|
shouldShowDoneFooter={[Function]}
|
|
407
343
|
showTestAndPreviewButton={false}
|
|
@@ -435,7 +371,6 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
|
|
|
435
371
|
exports[`Test SlideBoxContent container it should clear the url, on channel change from new whatsapp to another 1`] = `
|
|
436
372
|
<CreativesContainer__SlideBoxWrapper
|
|
437
373
|
className="add-creatives-section creatives-library-mode "
|
|
438
|
-
shouldApplyFooterMargin={false}
|
|
439
374
|
slideBoxWrapperMargin={0}
|
|
440
375
|
>
|
|
441
376
|
<CapSlideBox
|
|
@@ -450,7 +385,6 @@ exports[`Test SlideBoxContent container it should clear the url, on channel chan
|
|
|
450
385
|
handleCloseTestAndPreview={[Function]}
|
|
451
386
|
handleTestAndPreview={[Function]}
|
|
452
387
|
hostName=""
|
|
453
|
-
inAppEditorType={null}
|
|
454
388
|
isTestAndPreviewMode={false}
|
|
455
389
|
loyaltyMetaData={
|
|
456
390
|
Object {
|
|
@@ -466,9 +400,6 @@ exports[`Test SlideBoxContent container it should clear the url, on channel chan
|
|
|
466
400
|
onEnterTemplateName={[Function]}
|
|
467
401
|
onFTPSubmit={[MockFunction]}
|
|
468
402
|
onFacebookSubmit={[MockFunction]}
|
|
469
|
-
onHtmlEditorValidationStateChange={[Function]}
|
|
470
|
-
onInAppEditorTypeChange={[Function]}
|
|
471
|
-
onInAppModeChange={[Function]}
|
|
472
403
|
onMobilepushModeChange={[Function]}
|
|
473
404
|
onPreviewTemplate={[Function]}
|
|
474
405
|
onRemoveTemplateName={[Function]}
|
|
@@ -491,12 +422,6 @@ exports[`Test SlideBoxContent container it should clear the url, on channel chan
|
|
|
491
422
|
}
|
|
492
423
|
footer={
|
|
493
424
|
<SlideBoxFooter
|
|
494
|
-
continueButtonLabel={
|
|
495
|
-
Object {
|
|
496
|
-
"defaultMessage": "Next",
|
|
497
|
-
"id": "creatives.containersV2.Creatives.next",
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
425
|
currentChannel="WHATSAPP"
|
|
501
426
|
currentTab="ANDROID"
|
|
502
427
|
errorMessages={
|
|
@@ -505,28 +430,12 @@ exports[`Test SlideBoxContent container it should clear the url, on channel chan
|
|
|
505
430
|
"STANDARD_ERROR_MSG": Array [],
|
|
506
431
|
}
|
|
507
432
|
}
|
|
508
|
-
htmlEditorValidationState={
|
|
509
|
-
Object {
|
|
510
|
-
"errorsAcknowledged": false,
|
|
511
|
-
"isContentEmpty": true,
|
|
512
|
-
"issueCounts": Object {
|
|
513
|
-
"html": 0,
|
|
514
|
-
"label": 0,
|
|
515
|
-
"liquid": 0,
|
|
516
|
-
"total": 0,
|
|
517
|
-
},
|
|
518
|
-
"validationComplete": false,
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
isContinueButtonDisabled={true}
|
|
522
|
-
isCreatingTemplate={false}
|
|
523
433
|
isLiquidValidationError={false}
|
|
524
434
|
onCreateNextStep={[Function]}
|
|
525
435
|
onDiscard={[Function]}
|
|
526
436
|
onEditTemplate={[Function]}
|
|
527
437
|
onSave={[Function]}
|
|
528
438
|
onTestAndPreview={[Function]}
|
|
529
|
-
selectedEmailCreateMode={null}
|
|
530
439
|
shouldShowContinueFooter={[Function]}
|
|
531
440
|
shouldShowDoneFooter={[Function]}
|
|
532
441
|
showTestAndPreviewButton={false}
|
|
@@ -66,13 +66,6 @@ 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
|
-
|
|
76
69
|
export function clearStoreValues() {
|
|
77
70
|
return {
|
|
78
71
|
type: types.CLEAR_ALL_VALUES,
|
|
@@ -36,8 +36,4 @@ 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';
|
|
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';
|
|
39
|
+
export const TRANSFORM_EMAIL_TEMPLATE_REQUEST = 'app/v2Containers/Email/TRANSFORM_EMAIL_TEMPLATE_REQUEST';
|