@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
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
UPLOAD_INAPP_ASSET_REQUEST,
|
|
8
8
|
CLEAR_INAPP_ASSET,
|
|
9
9
|
INAPP_EDIT_TEMPLATE_REQUEST,
|
|
10
|
-
GET_BEE_POPUP_BUILDER_TOKEN_REQUEST,
|
|
11
10
|
} from "./constants";
|
|
12
11
|
|
|
13
12
|
export function createInAppTemplate(payload, callback) {
|
|
@@ -63,9 +62,3 @@ export const clearInAppAsset = (templateType) => ({
|
|
|
63
62
|
type: CLEAR_INAPP_ASSET,
|
|
64
63
|
templateType,
|
|
65
64
|
});
|
|
66
|
-
|
|
67
|
-
export function getBeePopupBuilderToken() {
|
|
68
|
-
return {
|
|
69
|
-
type: GET_BEE_POPUP_BUILDER_TOKEN_REQUEST,
|
|
70
|
-
};
|
|
71
|
-
}
|
|
@@ -34,18 +34,12 @@ export const UPLOAD_INAPP_ASSET_SUCCESS = `${prefix}/UPLOAD_INAPP_ASSET_SUCCESS`
|
|
|
34
34
|
export const UPLOAD_INAPP_ASSET_FAILURE = `${prefix}/UPLOAD_INAPP_ASSET_FAILURE`;
|
|
35
35
|
export const CLEAR_INAPP_ASSET = `${prefix}/CLEAR_INAPP_ASSET`;
|
|
36
36
|
|
|
37
|
-
export const GET_BEE_POPUP_BUILDER_TOKEN_REQUEST = `${prefix}/GET_BEE_POPUP_BUILDER_TOKEN_REQUEST`;
|
|
38
|
-
export const GET_BEE_POPUP_BUILDER_TOKEN_SUCCESS = `${prefix}/GET_BEE_POPUP_BUILDER_TOKEN_SUCCESS`;
|
|
39
|
-
export const GET_BEE_POPUP_BUILDER_TOKEN_FAILURE = `${prefix}/GET_BEE_POPUP_BUILDER_TOKEN_FAILURE`;
|
|
40
|
-
|
|
41
37
|
export const INAPP_MEDIA_TYPES = {
|
|
42
38
|
TEXT: "TEXT",
|
|
43
39
|
IMAGE: "IMAGE",
|
|
44
|
-
HTML: "HTML",
|
|
45
40
|
};
|
|
46
41
|
export const BIG_TEXT = 'BIG_TEXT';
|
|
47
42
|
export const BIG_PICTURE = 'BIG_PICTURE';
|
|
48
|
-
export const BIG_HTML = 'BIG_HTML';
|
|
49
43
|
export const NONE = "NONE";
|
|
50
44
|
export const CTA = "CTA";
|
|
51
45
|
export const MAPP_SDK = "MAPP_SDK";
|
|
@@ -76,16 +70,14 @@ export const INAPP_IMG_SIZE = 5000000; // 5MB
|
|
|
76
70
|
export const TEMPLATE_MESSAGE_MAX_LENGTH = 1024;
|
|
77
71
|
|
|
78
72
|
export const INAPP_MESSAGE_LAYOUT_TYPES = {
|
|
79
|
-
MODAL: "
|
|
73
|
+
MODAL: "POPUP",
|
|
80
74
|
TOPBANNER: "HEADER",
|
|
81
75
|
BOTTOMBANNER: "FOOTER",
|
|
82
76
|
FULLSCREEN: "FULLSCREEN",
|
|
83
|
-
POPUP: "POPUP",
|
|
84
77
|
};
|
|
85
78
|
|
|
86
79
|
export const ANDROID = "ANDROID";
|
|
87
80
|
export const IOS = "iOS";
|
|
88
|
-
export const IOS_CAPITAL = "IOS";
|
|
89
81
|
export const LAYOUT_RADIO_OPTIONS = [
|
|
90
82
|
{
|
|
91
83
|
value: INAPP_MESSAGE_LAYOUT_TYPES.MODAL,
|
|
@@ -144,11 +136,6 @@ export const BUTTON_RADIO_OPTIONS = [
|
|
|
144
136
|
];
|
|
145
137
|
|
|
146
138
|
export const INAPP_LAYOUT_DETAILS = {
|
|
147
|
-
MODAL: {
|
|
148
|
-
tagColor: CAP_ORANGE01,
|
|
149
|
-
tagTextColor: CAP_ORANGE,
|
|
150
|
-
text: <FormattedMessage {...messages.layoutModal} />,
|
|
151
|
-
},
|
|
152
139
|
POPUP: {
|
|
153
140
|
tagColor: CAP_ORANGE01,
|
|
154
141
|
tagTextColor: CAP_ORANGE,
|
|
@@ -157,12 +144,12 @@ export const INAPP_LAYOUT_DETAILS = {
|
|
|
157
144
|
HEADER: {
|
|
158
145
|
tagColor: CAP_PURPLE03,
|
|
159
146
|
tagTextColor: CAP_PURPLE02,
|
|
160
|
-
text: <FormattedMessage {...messages.
|
|
147
|
+
text: <FormattedMessage {...messages.header} />,
|
|
161
148
|
},
|
|
162
149
|
FOOTER: {
|
|
163
150
|
tagColor: CAP_PALE_GREY,
|
|
164
151
|
tagTextColor: FONT_COLOR_05,
|
|
165
|
-
text: <FormattedMessage {...messages.
|
|
152
|
+
text: <FormattedMessage {...messages.footer} />,
|
|
166
153
|
},
|
|
167
154
|
FULLSCREEN: {
|
|
168
155
|
tagColor: CAP_GREEN02,
|
|
@@ -172,7 +159,4 @@ export const INAPP_LAYOUT_DETAILS = {
|
|
|
172
159
|
};
|
|
173
160
|
|
|
174
161
|
export const DEVICE_SUPPORTED = '1';
|
|
175
|
-
export const AI_CONTENT_BOT_DISABLED = "AI_CONTENT_BOT_DISABLED";
|
|
176
|
-
export const MODE_SELECTION = "modeSelection";
|
|
177
|
-
export const BASIC_EDITOR = "basicEditor";
|
|
178
|
-
export const BEE_EDITOR = "beeEditor";
|
|
162
|
+
export const AI_CONTENT_BOT_DISABLED = "AI_CONTENT_BOT_DISABLED";
|