@capillarytech/creatives-library 8.0.142 → 8.0.143
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/loading_img.gif +0 -0
- package/package.json +1 -1
- package/v2Components/TemplatePreview/index.js +1 -1
- package/v2Components/TemplatePreview/messages.js +4 -0
- package/v2Components/TestAndPreviewSlidebox/PreviewSection.js +1 -1
- package/v2Components/TestAndPreviewSlidebox/_testAndPreviewSlidebox.scss +1 -1
- package/v2Containers/BeePopupEditor/index.js +2 -2
- package/v2Containers/Email/index.js +1 -1
- package/v2Containers/InApp/constants.js +3 -0
- package/v2Containers/InappWrapper/_inappWrapper.scss +4 -4
- package/v2Containers/InappWrapper/index.js +4 -3
|
Binary file
|
package/package.json
CHANGED
|
@@ -1336,7 +1336,7 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
|
|
|
1336
1336
|
/>
|
|
1337
1337
|
<iframe
|
|
1338
1338
|
srcDoc={inAppPreviewContent?.value}
|
|
1339
|
-
title=
|
|
1339
|
+
title={formatMessage(messages.inappPreview)}
|
|
1340
1340
|
style={{
|
|
1341
1341
|
position: 'absolute',
|
|
1342
1342
|
top: '3rem',
|
|
@@ -94,4 +94,8 @@ export default defineMessages({
|
|
|
94
94
|
id: 'creatives.componentsV2.TemplatePreview.videoNotSupported',
|
|
95
95
|
defaultMessage: 'Your browser does not support the video tag.',
|
|
96
96
|
},
|
|
97
|
+
inappPreview: {
|
|
98
|
+
id: 'creatives.componentsV2.TemplatePreview.inappPreview',
|
|
99
|
+
defaultMessage: 'Inapp Preview',
|
|
100
|
+
},
|
|
97
101
|
});
|
|
@@ -15,7 +15,7 @@ const PreviewSection = ({
|
|
|
15
15
|
formatMessage,
|
|
16
16
|
PreviewChrome,
|
|
17
17
|
}) => (
|
|
18
|
-
<CapRow className="preview-section panel-section">
|
|
18
|
+
<CapRow className="preview-section-test panel-section">
|
|
19
19
|
<PreviewChrome
|
|
20
20
|
device={previewDevice}
|
|
21
21
|
onDeviceChange={setPreviewDevice}
|
|
@@ -101,7 +101,7 @@ function BeePopupEditor(props) {
|
|
|
101
101
|
}, [templateLayoutType]);
|
|
102
102
|
|
|
103
103
|
useEffect(() => {
|
|
104
|
-
savedCallback.current = Object
|
|
104
|
+
savedCallback.current = Object?.keys(selectedTag)?.length > 0 && selectedTag;
|
|
105
105
|
}, [selectedTag]);
|
|
106
106
|
|
|
107
107
|
const onTagSelect = (result) => {
|
|
@@ -120,7 +120,7 @@ function BeePopupEditor(props) {
|
|
|
120
120
|
|
|
121
121
|
return (
|
|
122
122
|
<>
|
|
123
|
-
<div id="bee-plugin-container" style={{ height: "
|
|
123
|
+
<div id="bee-plugin-container" style={{ height: "46.5rem" }}></div>
|
|
124
124
|
<TagList
|
|
125
125
|
moduleFilterEnabled={moduleFilterEnabled}
|
|
126
126
|
label={label}
|
|
@@ -2709,7 +2709,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
2709
2709
|
return (
|
|
2710
2710
|
<div className="email-container">
|
|
2711
2711
|
<CapSpin spinning={isLoading}>
|
|
2712
|
-
{ showTestAndPreview &&
|
|
2712
|
+
{ !showTestAndPreviewSlidebox && showTestAndPreview &&
|
|
2713
2713
|
<div className="test-and-preview-container">
|
|
2714
2714
|
{this.showTestAndPreviewIcons('PREVIEW')}
|
|
2715
2715
|
{this.showTestAndPreviewIcons('TEST')}
|
|
@@ -164,3 +164,6 @@ export const INAPP_LAYOUT_DETAILS = {
|
|
|
164
164
|
|
|
165
165
|
export const DEVICE_SUPPORTED = '1';
|
|
166
166
|
export const AI_CONTENT_BOT_DISABLED = "AI_CONTENT_BOT_DISABLED";
|
|
167
|
+
export const MODE_SELECTION = "modeSelection";
|
|
168
|
+
export const BASIC_EDITOR = "basicEditor";
|
|
169
|
+
export const BEE_EDITOR = "beeEditor";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
.ant-radio-group.cap-radioCard-v2 {
|
|
4
4
|
.ant-radio-button-wrapper{
|
|
5
|
-
width:
|
|
6
|
-
height:
|
|
5
|
+
width: 20.28rem;
|
|
6
|
+
height: 18.43rem;
|
|
7
7
|
}
|
|
8
8
|
.ant-card-body {
|
|
9
9
|
padding: 1rem;
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
.template-name-inapp {
|
|
14
|
-
width:
|
|
14
|
+
width: 41.4rem;
|
|
15
15
|
margin-bottom: 1.5rem;
|
|
16
16
|
.ant-input {
|
|
17
|
-
height:
|
|
17
|
+
height: 2.86rem;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -16,6 +16,7 @@ import InApp from "../InApp/index";
|
|
|
16
16
|
import InappAdvanced from "../InappAdvanced/index";
|
|
17
17
|
import messages from "./messages";
|
|
18
18
|
import "./_inappWrapper.scss";
|
|
19
|
+
import { BASIC_EDITOR, BEE_EDITOR, MODE_SELECTION } from "../InApp/constants";
|
|
19
20
|
|
|
20
21
|
const CapRadioCardWithLabel = ComponentWithLabelHOC(CapRadioCard);
|
|
21
22
|
const CardContainer = styled.div`
|
|
@@ -83,7 +84,7 @@ export function InappWrapper(props) {
|
|
|
83
84
|
|
|
84
85
|
return (
|
|
85
86
|
<div className="inapp-wrapper">
|
|
86
|
-
{step ===
|
|
87
|
+
{step === MODE_SELECTION ? (
|
|
87
88
|
<div>
|
|
88
89
|
{isFullMode && (
|
|
89
90
|
<CapInput
|
|
@@ -109,7 +110,7 @@ export function InappWrapper(props) {
|
|
|
109
110
|
</div>
|
|
110
111
|
) : (
|
|
111
112
|
<div>
|
|
112
|
-
{inAppCreateMode ===
|
|
113
|
+
{inAppCreateMode === BASIC_EDITOR && (
|
|
113
114
|
<InApp
|
|
114
115
|
getFormData={getFormData}
|
|
115
116
|
setIsLoadingContent={setIsLoadingContent}
|
|
@@ -134,7 +135,7 @@ export function InappWrapper(props) {
|
|
|
134
135
|
onCreateComplete={onCreateComplete}
|
|
135
136
|
/>
|
|
136
137
|
)}
|
|
137
|
-
{inAppCreateMode ===
|
|
138
|
+
{inAppCreateMode === BEE_EDITOR && (
|
|
138
139
|
<InappAdvanced
|
|
139
140
|
getFormData={getFormData}
|
|
140
141
|
setIsLoadingContent={setIsLoadingContent}
|