@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.
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "8.0.142",
4
+ "version": "8.0.143",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -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="Inapp Preview"
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}
@@ -329,7 +329,7 @@
329
329
  }
330
330
  }
331
331
 
332
- .preview-section {
332
+ .preview-section-test {
333
333
  .section-title {
334
334
  margin-bottom: $CAP_SPACE_16;
335
335
  color: #333;
@@ -101,7 +101,7 @@ function BeePopupEditor(props) {
101
101
  }, [templateLayoutType]);
102
102
 
103
103
  useEffect(() => {
104
- savedCallback.current = Object.keys(selectedTag).length > 0 && selectedTag;
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: "650px" }}></div>
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: 284px;
6
- height: 258px;
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: 580px;
14
+ width: 41.4rem;
15
15
  margin-bottom: 1.5rem;
16
16
  .ant-input {
17
- height: 40px;
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 === "modeSelection" ? (
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 === 'basicEditor' && (
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 === 'beeEditor' && (
138
+ {inAppCreateMode === BEE_EDITOR && (
138
139
  <InappAdvanced
139
140
  getFormData={getFormData}
140
141
  setIsLoadingContent={setIsLoadingContent}