@capillarytech/creatives-library 8.0.259 → 8.0.260-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.
- 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 -34
- package/translations/en.json +3 -4
- package/utils/common.js +0 -12
- 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 -457
- package/v2Components/ErrorInfoNote/messages.js +6 -36
- package/v2Components/ErrorInfoNote/style.scss +6 -282
- package/v2Components/FormBuilder/index.js +4 -4
- package/v2Components/FormBuilder/tests/index.test.js +4 -13
- package/v2Components/HtmlEditor/HTMLEditor.js +94 -547
- package/v2Components/HtmlEditor/__tests__/HTMLEditor.test.js +133 -1441
- package/v2Components/HtmlEditor/__tests__/index.lazy.test.js +16 -27
- package/v2Components/HtmlEditor/_htmlEditor.scss +45 -108
- package/v2Components/HtmlEditor/_index.lazy.scss +1 -0
- package/v2Components/HtmlEditor/components/CodeEditorPane/_codeEditorPane.scss +102 -23
- package/v2Components/HtmlEditor/components/CodeEditorPane/index.js +140 -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 +4 -4
- 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 +43 -22
- 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/_validationErrorDisplay.scss +0 -1
- package/v2Components/HtmlEditor/components/ValidationErrorDisplay/index.js +31 -49
- package/v2Components/HtmlEditor/components/ValidationPanel/_validationPanel.scss +34 -50
- package/v2Components/HtmlEditor/components/ValidationPanel/index.js +41 -70
- package/v2Components/HtmlEditor/constants.js +20 -42
- package/v2Components/HtmlEditor/hooks/__tests__/useInAppContent.test.js +16 -373
- package/v2Components/HtmlEditor/hooks/__tests__/useValidation.test.js +16 -120
- package/v2Components/HtmlEditor/hooks/useEditorContent.js +2 -5
- package/v2Components/HtmlEditor/hooks/useInAppContent.js +146 -88
- package/v2Components/HtmlEditor/hooks/useValidation.js +53 -189
- package/v2Components/HtmlEditor/index.js +1 -1
- package/v2Components/HtmlEditor/messages.js +94 -92
- package/v2Components/HtmlEditor/utils/__tests__/htmlValidator.enhanced.test.js +45 -94
- package/v2Components/HtmlEditor/utils/__tests__/validationAdapter.test.js +0 -134
- package/v2Components/HtmlEditor/utils/contentSanitizer.js +41 -40
- package/v2Components/HtmlEditor/utils/htmlValidator.js +72 -71
- 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 -55
- package/v2Components/TemplatePreview/index.js +32 -47
- package/v2Components/TemplatePreview/messages.js +0 -4
- package/v2Components/TestAndPreviewSlidebox/_testAndPreviewSlidebox.scss +0 -1
- package/v2Containers/BeeEditor/index.js +90 -172
- package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +3 -4
- package/v2Containers/CreativesContainer/SlideBoxContent.js +52 -128
- package/v2Containers/CreativesContainer/SlideBoxFooter.js +13 -163
- package/v2Containers/CreativesContainer/SlideBoxHeader.js +1 -2
- package/v2Containers/CreativesContainer/constants.js +0 -1
- package/v2Containers/CreativesContainer/index.js +46 -240
- 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 -106
- package/v2Containers/Email/actions.js +0 -7
- package/v2Containers/Email/constants.js +1 -5
- package/v2Containers/Email/index.js +30 -239
- 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/reducer.test.js +0 -46
- package/v2Containers/Email/tests/sagas.test.js +29 -320
- package/v2Containers/EmailWrapper/components/EmailWrapperView.js +21 -211
- 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 -65
- package/v2Containers/EmailWrapper/tests/EmailWrapperView.test.js +214 -0
- package/v2Containers/EmailWrapper/tests/useEmailWrapper.test.js +77 -594
- package/v2Containers/InApp/actions.js +0 -7
- package/v2Containers/InApp/constants.js +4 -20
- package/v2Containers/InApp/index.js +360 -804
- 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 +71 -152
- 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 +12 -39
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +6 -10
- package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +75 -102
- package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +54 -81
- package/v2Containers/MobilePushNew/index.js +2 -3
- package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +178 -262
- package/v2Containers/SmsTrai/Create/tests/__snapshots__/index.test.js.snap +12 -16
- package/v2Containers/SmsTrai/Edit/index.js +1 -2
- package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +111 -468
- 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/WebPush/Create/messages.js +8 -0
- package/v2Containers/WebPush/Create/preview/PreviewControls.js +2 -2
- package/v2Containers/WebPush/Create/preview/PreviewDisclaimer.js +3 -1
- package/v2Containers/WebPush/Create/preview/components/AndroidMobileChromeHeader.js +5 -1
- package/v2Containers/WebPush/Create/preview/components/AndroidMobileExpanded.js +5 -1
- package/v2Containers/WebPush/Create/preview/components/tests/__snapshots__/AndroidMobileExpanded.test.js.snap +5 -1
- package/v2Containers/WebPush/Create/preview/preview.scss +7 -0
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +734 -1306
- package/v2Components/ErrorInfoNote/constants.js +0 -1
- package/v2Components/HtmlEditor/__tests__/HTMLEditor.apiErrors.test.js +0 -874
- package/v2Components/HtmlEditor/components/ValidationPanel/constants.js +0 -6
- package/v2Components/HtmlEditor/components/ValidationTabs/_validationTabs.scss +0 -255
- package/v2Components/HtmlEditor/components/ValidationTabs/index.js +0 -364
- package/v2Components/HtmlEditor/components/ValidationTabs/messages.js +0 -51
- package/v2Components/HtmlEditor/utils/validationConstants.js +0 -40
- package/v2Containers/BeePopupEditor/_beePopupEditor.scss +0 -14
- package/v2Containers/BeePopupEditor/constants.js +0 -10
- package/v2Containers/BeePopupEditor/index.js +0 -194
- package/v2Containers/BeePopupEditor/tests/index.test.js +0 -627
- package/v2Containers/EmailWrapper/components/EmailHTMLEditor.js +0 -1285
- package/v2Containers/EmailWrapper/components/__tests__/EmailHTMLEditor.test.js +0 -1880
- 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 -151
- package/v2Containers/InAppWrapper/components/__tests__/InAppWrapperView.test.js +0 -267
- package/v2Containers/InAppWrapper/components/inAppWrapperView.scss +0 -23
- 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
|
`;
|
|
@@ -1099,17 +1103,25 @@ exports[`Test SlideBoxContent container Should render correct component for what
|
|
|
1099
1103
|
|
|
1100
1104
|
exports[`Test SlideBoxContent container Should render correct component for whatsapp channel create mode 2`] = `
|
|
1101
1105
|
<SlideBoxContent__CreativesWrapper>
|
|
1102
|
-
<
|
|
1103
|
-
date={0}
|
|
1106
|
+
<ForwardRef
|
|
1104
1107
|
getDefaultTags=""
|
|
1105
|
-
|
|
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
|
+
}
|
|
1106
1119
|
onCreateComplete={[MockFunction]}
|
|
1107
1120
|
templateData={
|
|
1108
1121
|
Object {
|
|
1109
1122
|
"mode": "create",
|
|
1110
1123
|
}
|
|
1111
1124
|
}
|
|
1112
|
-
type=""
|
|
1113
1125
|
/>
|
|
1114
1126
|
</SlideBoxContent__CreativesWrapper>
|
|
1115
1127
|
`;
|
|
@@ -1274,7 +1286,7 @@ exports[`Test SlideBoxContent container Should render correctly with isTestAndPr
|
|
|
1274
1286
|
|
|
1275
1287
|
exports[`Test SlideBoxContent container Should render correctly with isTestAndPreviewMode disabled 2`] = `
|
|
1276
1288
|
<SlideBoxContent__CreativesWrapper>
|
|
1277
|
-
<Connect(UserIsAuthenticated(
|
|
1289
|
+
<Connect(UserIsAuthenticated(Connect(InjectIntl(EmailWrapper))))
|
|
1278
1290
|
date={0}
|
|
1279
1291
|
getCmsTemplatesInProgress={false}
|
|
1280
1292
|
isTestAndPreviewMode={false}
|
|
@@ -1349,7 +1361,7 @@ exports[`Test SlideBoxContent container Should render correctly with isTestAndPr
|
|
|
1349
1361
|
|
|
1350
1362
|
exports[`Test SlideBoxContent container Should render correctly with isTestAndPreviewMode enabled 2`] = `
|
|
1351
1363
|
<SlideBoxContent__CreativesWrapper>
|
|
1352
|
-
<Connect(UserIsAuthenticated(
|
|
1364
|
+
<Connect(UserIsAuthenticated(Connect(InjectIntl(EmailWrapper))))
|
|
1353
1365
|
date={0}
|
|
1354
1366
|
getCmsTemplatesInProgress={false}
|
|
1355
1367
|
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,47 +226,20 @@ 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
|
-
emailCreateMode=""
|
|
253
231
|
errorMessages={
|
|
254
232
|
Object {
|
|
255
233
|
"LIQUID_ERROR_MSG": Array [],
|
|
256
234
|
"STANDARD_ERROR_MSG": Array [],
|
|
257
235
|
}
|
|
258
236
|
}
|
|
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}
|
|
277
237
|
isLiquidValidationError={false}
|
|
278
|
-
isTemplateNameEmpty={false}
|
|
279
238
|
onCreateNextStep={[Function]}
|
|
280
239
|
onDiscard={[Function]}
|
|
281
240
|
onEditTemplate={[Function]}
|
|
282
241
|
onSave={[Function]}
|
|
283
242
|
onTestAndPreview={[Function]}
|
|
284
|
-
selectedEmailCreateMode={null}
|
|
285
243
|
shouldShowContinueFooter={[Function]}
|
|
286
244
|
shouldShowDoneFooter={[Function]}
|
|
287
245
|
showTestAndPreviewButton={true}
|
|
@@ -315,7 +273,6 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit all data
|
|
|
315
273
|
exports[`Test SlideBoxContent container campaign message, whatsapp edit min data 1`] = `
|
|
316
274
|
<CreativesContainer__SlideBoxWrapper
|
|
317
275
|
className="add-creatives-section creatives-library-mode "
|
|
318
|
-
shouldApplyFooterMargin={false}
|
|
319
276
|
slideBoxWrapperMargin={0}
|
|
320
277
|
>
|
|
321
278
|
<CapSlideBox
|
|
@@ -330,7 +287,6 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
|
|
|
330
287
|
handleCloseTestAndPreview={[Function]}
|
|
331
288
|
handleTestAndPreview={[Function]}
|
|
332
289
|
hostName=""
|
|
333
|
-
inAppEditorType={null}
|
|
334
290
|
isTestAndPreviewMode={false}
|
|
335
291
|
loyaltyMetaData={
|
|
336
292
|
Object {
|
|
@@ -346,9 +302,6 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
|
|
|
346
302
|
onEnterTemplateName={[Function]}
|
|
347
303
|
onFTPSubmit={[MockFunction]}
|
|
348
304
|
onFacebookSubmit={[MockFunction]}
|
|
349
|
-
onHtmlEditorValidationStateChange={[Function]}
|
|
350
|
-
onInAppEditorTypeChange={[Function]}
|
|
351
|
-
onInAppModeChange={[Function]}
|
|
352
305
|
onMobilepushModeChange={[Function]}
|
|
353
306
|
onPreviewTemplate={[Function]}
|
|
354
307
|
onRemoveTemplateName={[Function]}
|
|
@@ -371,47 +324,20 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
|
|
|
371
324
|
}
|
|
372
325
|
footer={
|
|
373
326
|
<SlideBoxFooter
|
|
374
|
-
continueButtonLabel={
|
|
375
|
-
Object {
|
|
376
|
-
"defaultMessage": "Next",
|
|
377
|
-
"id": "creatives.containersV2.Creatives.next",
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
327
|
currentChannel="WHATSAPP"
|
|
381
328
|
currentTab="ANDROID"
|
|
382
|
-
emailCreateMode=""
|
|
383
329
|
errorMessages={
|
|
384
330
|
Object {
|
|
385
331
|
"LIQUID_ERROR_MSG": Array [],
|
|
386
332
|
"STANDARD_ERROR_MSG": Array [],
|
|
387
333
|
}
|
|
388
334
|
}
|
|
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}
|
|
407
335
|
isLiquidValidationError={false}
|
|
408
|
-
isTemplateNameEmpty={false}
|
|
409
336
|
onCreateNextStep={[Function]}
|
|
410
337
|
onDiscard={[Function]}
|
|
411
338
|
onEditTemplate={[Function]}
|
|
412
339
|
onSave={[Function]}
|
|
413
340
|
onTestAndPreview={[Function]}
|
|
414
|
-
selectedEmailCreateMode={null}
|
|
415
341
|
shouldShowContinueFooter={[Function]}
|
|
416
342
|
shouldShowDoneFooter={[Function]}
|
|
417
343
|
showTestAndPreviewButton={true}
|
|
@@ -445,7 +371,6 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
|
|
|
445
371
|
exports[`Test SlideBoxContent container it should clear the url, on channel change from new whatsapp to another 1`] = `
|
|
446
372
|
<CreativesContainer__SlideBoxWrapper
|
|
447
373
|
className="add-creatives-section creatives-library-mode "
|
|
448
|
-
shouldApplyFooterMargin={false}
|
|
449
374
|
slideBoxWrapperMargin={0}
|
|
450
375
|
>
|
|
451
376
|
<CapSlideBox
|
|
@@ -460,7 +385,6 @@ exports[`Test SlideBoxContent container it should clear the url, on channel chan
|
|
|
460
385
|
handleCloseTestAndPreview={[Function]}
|
|
461
386
|
handleTestAndPreview={[Function]}
|
|
462
387
|
hostName=""
|
|
463
|
-
inAppEditorType={null}
|
|
464
388
|
isTestAndPreviewMode={false}
|
|
465
389
|
loyaltyMetaData={
|
|
466
390
|
Object {
|
|
@@ -476,9 +400,6 @@ exports[`Test SlideBoxContent container it should clear the url, on channel chan
|
|
|
476
400
|
onEnterTemplateName={[Function]}
|
|
477
401
|
onFTPSubmit={[MockFunction]}
|
|
478
402
|
onFacebookSubmit={[MockFunction]}
|
|
479
|
-
onHtmlEditorValidationStateChange={[Function]}
|
|
480
|
-
onInAppEditorTypeChange={[Function]}
|
|
481
|
-
onInAppModeChange={[Function]}
|
|
482
403
|
onMobilepushModeChange={[Function]}
|
|
483
404
|
onPreviewTemplate={[Function]}
|
|
484
405
|
onRemoveTemplateName={[Function]}
|
|
@@ -501,47 +422,20 @@ exports[`Test SlideBoxContent container it should clear the url, on channel chan
|
|
|
501
422
|
}
|
|
502
423
|
footer={
|
|
503
424
|
<SlideBoxFooter
|
|
504
|
-
continueButtonLabel={
|
|
505
|
-
Object {
|
|
506
|
-
"defaultMessage": "Next",
|
|
507
|
-
"id": "creatives.containersV2.Creatives.next",
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
425
|
currentChannel="WHATSAPP"
|
|
511
426
|
currentTab="ANDROID"
|
|
512
|
-
emailCreateMode=""
|
|
513
427
|
errorMessages={
|
|
514
428
|
Object {
|
|
515
429
|
"LIQUID_ERROR_MSG": Array [],
|
|
516
430
|
"STANDARD_ERROR_MSG": Array [],
|
|
517
431
|
}
|
|
518
432
|
}
|
|
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}
|
|
537
433
|
isLiquidValidationError={false}
|
|
538
|
-
isTemplateNameEmpty={false}
|
|
539
434
|
onCreateNextStep={[Function]}
|
|
540
435
|
onDiscard={[Function]}
|
|
541
436
|
onEditTemplate={[Function]}
|
|
542
437
|
onSave={[Function]}
|
|
543
438
|
onTestAndPreview={[Function]}
|
|
544
|
-
selectedEmailCreateMode={null}
|
|
545
439
|
shouldShowContinueFooter={[Function]}
|
|
546
440
|
shouldShowDoneFooter={[Function]}
|
|
547
441
|
showTestAndPreviewButton={true}
|
|
@@ -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';
|