@capillarytech/creatives-library 6.12.13 → 6.12.14
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capillarytech/creatives-library",
|
|
3
3
|
"author": "meharaj",
|
|
4
|
-
"version": "6.12.
|
|
4
|
+
"version": "6.12.14",
|
|
5
5
|
"description": "Capillary creatives ui",
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"module": "./index.es.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@babel/polyfill": "7.4.3",
|
|
16
16
|
"@bugsnag/js": "^7.2.1",
|
|
17
17
|
"@bugsnag/plugin-react": "^7.2.1",
|
|
18
|
-
"@capillarytech/cap-ui-utils": "1.
|
|
18
|
+
"@capillarytech/cap-ui-utils": "1.2.8",
|
|
19
19
|
"@mailupinc/bee-plugin": "^1.2.0",
|
|
20
20
|
"babel-cli": "^6.26.0",
|
|
21
21
|
"chalk": "1.1.3",
|
|
@@ -106,14 +106,14 @@ export class Cap extends React.Component { // eslint-disable-line react/prefer-s
|
|
|
106
106
|
//locale = 'zh';
|
|
107
107
|
console.log('Setting final locale as', locale);
|
|
108
108
|
moment.locale(locale);
|
|
109
|
-
logNewTab(BugsnagClient);
|
|
110
109
|
window.addEventListener('storage', this.handleStorageChange, false);
|
|
111
110
|
document.addEventListener(
|
|
112
111
|
'visibilitychange',
|
|
113
112
|
this.handleVisibilityChange,
|
|
114
113
|
false,
|
|
115
114
|
);
|
|
116
|
-
window.addEventListener('
|
|
115
|
+
window.addEventListener('pageshow', this.tabOnloadEventHandler, false);
|
|
116
|
+
window.addEventListener('pagehide', tabBeforeUnloadEventHandler, false);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
componentWillReceiveProps(nextProps) {
|
|
@@ -167,14 +167,22 @@ export class Cap extends React.Component { // eslint-disable-line react/prefer-s
|
|
|
167
167
|
this.handleVisibilityChange,
|
|
168
168
|
false,
|
|
169
169
|
);
|
|
170
|
-
|
|
171
170
|
window.removeEventListener(
|
|
172
|
-
'
|
|
173
|
-
this.
|
|
171
|
+
'pageshow',
|
|
172
|
+
this.tabOnloadEventHandler,
|
|
173
|
+
false,
|
|
174
|
+
);
|
|
175
|
+
window.removeEventListener(
|
|
176
|
+
'pagehide',
|
|
177
|
+
tabBeforeUnloadEventHandler,
|
|
174
178
|
false,
|
|
175
179
|
);
|
|
176
180
|
}
|
|
177
181
|
|
|
182
|
+
tabOnloadEventHandler = () => {
|
|
183
|
+
logNewTab(BugsnagClient);
|
|
184
|
+
}
|
|
185
|
+
|
|
178
186
|
setDimensionData() {
|
|
179
187
|
const userGtmData = this.getUserGtmData();
|
|
180
188
|
Object.values(userGtmData).forEach((value, index) => {
|
|
@@ -2666,7 +2666,8 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
2666
2666
|
if (this.props.location.query.type === 'embedded' && this.props.location.query.module === 'library' && !this.props.getDefaultTags) {
|
|
2667
2667
|
tags = this.props.supportedTags;
|
|
2668
2668
|
}
|
|
2669
|
-
const
|
|
2669
|
+
const { showImageSelectionBox = false } = this.state;
|
|
2670
|
+
const showTestAndPreview = !showImageSelectionBox && getDefaultTags === 'outbound';
|
|
2670
2671
|
return (
|
|
2671
2672
|
<div className="email-container">
|
|
2672
2673
|
<CapSpin spinning={isLoading}>
|