@capillarytech/creatives-library 7.13.10 → 7.13.11
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/package.json +1 -1
- package/v2Components/FormBuilder/index.js +1 -1
- package/v2Components/TemplatePreview/index.js +2 -2
- package/v2Containers/CreativesContainer/SlideBoxContent.js +4 -4
- package/v2Containers/CreativesContainer/index.js +1 -1
- package/v2Containers/MobilePush/Create/index.js +1 -1
- package/v2Containers/MobilePush/Edit/index.js +1 -1
- package/v2Containers/MobilepushWrapper/index.js +1 -1
- package/v2Containers/TemplatesV2/index.js +1 -1
package/package.json
CHANGED
|
@@ -3092,7 +3092,7 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
|
|
|
3092
3092
|
onTestContentClicked={this.props.onTestContentClicked}
|
|
3093
3093
|
templateDataRaw={this.props.templateData}
|
|
3094
3094
|
module={this.props.location.query.module}
|
|
3095
|
-
|
|
3095
|
+
hideTestAndPreviewBtn={this.props.hideTestAndPreviewBtn}
|
|
3096
3096
|
>
|
|
3097
3097
|
</TemplatePreview>
|
|
3098
3098
|
</CapColumn>
|
|
@@ -160,7 +160,7 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
|
|
|
160
160
|
intl,
|
|
161
161
|
templateData,
|
|
162
162
|
rcsIosPreview,
|
|
163
|
-
|
|
163
|
+
hideTestAndPreviewBtn
|
|
164
164
|
} = this.props;
|
|
165
165
|
const { formatMessage } = intl;
|
|
166
166
|
const { buttonText, imageURL, rcsPreviewContent, messageContent: viberMessageContent } = content || {};
|
|
@@ -194,7 +194,7 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
|
|
|
194
194
|
const disablePreviewAndTest = this.props.channel === 'MOBILEPUSH' ? !this.props.content.header : (this.props.channel === 'SMS' ? !this.props.content : false);
|
|
195
195
|
const showTestAndPreview = showTestAndPreviewIcon &&
|
|
196
196
|
channel !== WECHAT &&
|
|
197
|
-
['outbound', 'library'].includes(module) && !
|
|
197
|
+
['outbound', 'library'].includes(module) && !hideTestAndPreviewBtn;
|
|
198
198
|
|
|
199
199
|
const renderLineMultiText = (content) => {
|
|
200
200
|
let textCount = 0;
|
|
@@ -147,7 +147,7 @@ export function SlideBoxContent(props) {
|
|
|
147
147
|
orgUnitId,
|
|
148
148
|
smsRegister,
|
|
149
149
|
enableNewChannels,
|
|
150
|
-
|
|
150
|
+
hideTestAndPreviewBtn
|
|
151
151
|
} = props;
|
|
152
152
|
const type = (messageDetails.type || '').toLowerCase(); // type is context in get tags values : outbound | dvs | referral | loyalty | coupons
|
|
153
153
|
const query = { type: !isFullMode && 'embedded', module: isFullMode ? 'default' : 'library', isEditFromCampaigns: (templateData || {}).isEditFromCampaigns};
|
|
@@ -408,7 +408,7 @@ export function SlideBoxContent(props) {
|
|
|
408
408
|
orgUnitId={orgUnitId}
|
|
409
409
|
smsRegister={smsRegister}
|
|
410
410
|
enableNewChannels={enableNewChannels}
|
|
411
|
-
|
|
411
|
+
hideTestAndPreviewBtn={hideTestAndPreviewBtn}
|
|
412
412
|
/>
|
|
413
413
|
)}
|
|
414
414
|
{isPreview && (
|
|
@@ -604,7 +604,7 @@ export function SlideBoxContent(props) {
|
|
|
604
604
|
onPreviewContentClicked={onPreviewContentClicked}
|
|
605
605
|
onTestContentClicked={onTestContentClicked}
|
|
606
606
|
type={type}
|
|
607
|
-
|
|
607
|
+
hideTestAndPreviewBtn={hideTestAndPreviewBtn}
|
|
608
608
|
/>
|
|
609
609
|
}
|
|
610
610
|
{isCreateMPush &&
|
|
@@ -631,7 +631,7 @@ export function SlideBoxContent(props) {
|
|
|
631
631
|
onValidationFail={onValidationFail}
|
|
632
632
|
selectedOfferDetails={selectedOfferDetails}
|
|
633
633
|
onPreviewContentClicked={onPreviewContentClicked}
|
|
634
|
-
|
|
634
|
+
hideTestAndPreviewBtn={hideTestAndPreviewBtn}
|
|
635
635
|
onTestContentClicked={onTestContentClicked}/>
|
|
636
636
|
}
|
|
637
637
|
{
|
|
@@ -1107,7 +1107,7 @@ export class Creatives extends React.Component {
|
|
|
1107
1107
|
messageStrategy={this.props.strategy}
|
|
1108
1108
|
orgUnitId={this.props.orgUnitId}
|
|
1109
1109
|
enableNewChannels={enableNewChannels}
|
|
1110
|
-
|
|
1110
|
+
hideTestAndPreviewBtn={this.props.hideTestAndPreviewBtn}
|
|
1111
1111
|
/>
|
|
1112
1112
|
}
|
|
1113
1113
|
footer={this.shouldShowFooter() &&
|
|
@@ -1737,7 +1737,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
|
|
|
1737
1737
|
onPreviewContentClicked={this.props.onPreviewContentClicked}
|
|
1738
1738
|
onTestContentClicked={this.props.onTestContentClicked}
|
|
1739
1739
|
templateData={this.props.templateData}
|
|
1740
|
-
|
|
1740
|
+
hideTestAndPreviewBtn={this.props.hideTestAndPreviewBtn}
|
|
1741
1741
|
/>
|
|
1742
1742
|
</CapColumn>
|
|
1743
1743
|
{this.props.iosCtasData && this.state.showIosCtaTable &&
|
|
@@ -1821,7 +1821,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
1821
1821
|
onPreviewContentClicked={this.props.onPreviewContentClicked}
|
|
1822
1822
|
onTestContentClicked={this.props.onTestContentClicked}
|
|
1823
1823
|
templateData={this.props.templateData}
|
|
1824
|
-
|
|
1824
|
+
hideTestAndPreviewBtn={this.props.hideTestAndPreviewBtn}
|
|
1825
1825
|
/>}
|
|
1826
1826
|
</CapColumn>
|
|
1827
1827
|
{this.props.iosCtasData && this.state.showIosCtaTable &&
|
|
@@ -115,7 +115,7 @@ export class MobilepushWrapper extends React.Component { // eslint-disable-line
|
|
|
115
115
|
onPreviewContentClicked={onPreviewContentClicked}
|
|
116
116
|
onTestContentClicked={onTestContentClicked}
|
|
117
117
|
templateData={templateData}
|
|
118
|
-
|
|
118
|
+
hideTestAndPreviewBtn={this.props.hideTestAndPreviewBtn}
|
|
119
119
|
/>
|
|
120
120
|
|
|
121
121
|
|
|
@@ -260,7 +260,7 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
|
|
|
260
260
|
handlePeviewTemplate={this.props.handlePeviewTemplate}
|
|
261
261
|
messageStrategy={this.props.messageStrategy}
|
|
262
262
|
smsRegister={smsRegister}
|
|
263
|
-
|
|
263
|
+
hideTestAndPreviewBtn={this.props.hideTestAndPreviewBtn}
|
|
264
264
|
/>);
|
|
265
265
|
}
|
|
266
266
|
}
|