@capillarytech/creatives-library 7.12.29 → 7.12.31
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/containers/Assets/Gallery/tests/__snapshots__/reducer.test.js.snap +2 -2
- package/package.json +1 -1
- package/v2Components/CallTaskPreview/tests/__snapshots__/index.test.js.snap +30 -0
- package/v2Components/CapActionButton/index.js +7 -3
- package/v2Components/CapActionButton/tests/__snapshots__/index.test.js.snap +2 -2
- package/v2Containers/Assets/Gallery/tests/__snapshots__/reducer.test.js.snap +2 -2
- package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxContent.test.js.snap +0 -1
- package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +33734 -801
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`galleryReducer Initial State should match snapshot returns the initial state 1`] = `
|
|
4
|
-
|
|
5
|
-
"assetList":
|
|
4
|
+
Immutable.Map {
|
|
5
|
+
"assetList": Immutable.List [],
|
|
6
6
|
"assetUploading": false,
|
|
7
7
|
"fetchingAllAssets": false,
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`<CallTaskPreview /> Test if Call task component renders 1`] = `
|
|
4
|
+
<div
|
|
5
|
+
className="call-task-preview"
|
|
6
|
+
>
|
|
7
|
+
<img
|
|
8
|
+
alt="header"
|
|
9
|
+
className="call-task-image-undefined"
|
|
10
|
+
src="test-file-stub"
|
|
11
|
+
/>
|
|
12
|
+
<div
|
|
13
|
+
className="call-task-subject-container-undefined"
|
|
14
|
+
>
|
|
15
|
+
this is test
|
|
16
|
+
</div>
|
|
17
|
+
<div
|
|
18
|
+
className="call-task-message-container-undefined"
|
|
19
|
+
/>
|
|
20
|
+
<img
|
|
21
|
+
alt="footer"
|
|
22
|
+
src="test-file-stub"
|
|
23
|
+
style={
|
|
24
|
+
Object {
|
|
25
|
+
"width": "100%",
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
/>
|
|
29
|
+
</div>
|
|
30
|
+
`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
1
|
+
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { injectIntl, intlShape, FormattedMessage } from 'react-intl';
|
|
4
4
|
|
|
@@ -11,7 +11,6 @@ import CapTooltip from '@capillarytech/cap-ui-library/CapTooltip';
|
|
|
11
11
|
import CapLabel from '@capillarytech/cap-ui-library/CapLabel';
|
|
12
12
|
|
|
13
13
|
import { isUrl } from '../../v2Containers/Line/Container/Wrapper/utils';
|
|
14
|
-
import globalMessages from '../../v2Containers/Cap/messages';
|
|
15
14
|
import messages from './messages';
|
|
16
15
|
import './index.scss';
|
|
17
16
|
export const CapActionButton = (props) => {
|
|
@@ -55,7 +54,12 @@ export const CapActionButton = (props) => {
|
|
|
55
54
|
|
|
56
55
|
updateButtonURLErrorMessage(errorMessage);
|
|
57
56
|
};
|
|
58
|
-
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
const CapActionButtonBody = document.querySelector('.cap-action-button');
|
|
59
|
+
CapActionButtonBody.addEventListener('click', (event) => {
|
|
60
|
+
event.preventDefault();
|
|
61
|
+
});
|
|
62
|
+
}, []);
|
|
59
63
|
return (<CapRow
|
|
60
64
|
className="cap-action-button"
|
|
61
65
|
>
|
|
@@ -62,7 +62,7 @@ exports[`CapActionButton test Test if CapActionButton component renders 1`] = `
|
|
|
62
62
|
/>
|
|
63
63
|
<CapTooltip
|
|
64
64
|
placement="topLeft"
|
|
65
|
-
title="
|
|
65
|
+
title="Right now only one Call to action button is enabled, in future you would be able to add upto 3 buttons."
|
|
66
66
|
>
|
|
67
67
|
<CapButton
|
|
68
68
|
className="disabled-button"
|
|
@@ -137,7 +137,7 @@ exports[`CapActionButton test Test if CapActionButton component renders 2`] = `
|
|
|
137
137
|
/>
|
|
138
138
|
<CapTooltip
|
|
139
139
|
placement="topLeft"
|
|
140
|
-
title="
|
|
140
|
+
title="Right now only one Call to action button is enabled, in future you would be able to add upto 3 buttons."
|
|
141
141
|
>
|
|
142
142
|
<CapButton
|
|
143
143
|
className="disabled-button"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`galleryReducer Initial State should match snapshot returns the initial state 1`] = `
|
|
4
|
-
|
|
5
|
-
"assetList":
|
|
4
|
+
Immutable.Map {
|
|
5
|
+
"assetList": Immutable.List [],
|
|
6
6
|
"assetUploading": false,
|
|
7
7
|
"fetchingAllAssets": false,
|
|
8
8
|
}
|