@capillarytech/creatives-library 7.12.95 → 7.12.96
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
|
@@ -83,6 +83,14 @@ const CHANNEL_CONFIGS = {
|
|
|
83
83
|
},
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
|
+
WECHAT: {
|
|
87
|
+
transformations: {
|
|
88
|
+
width: 360,
|
|
89
|
+
height: 200,
|
|
90
|
+
quality: QUALITY_TYPE.DECREASE,
|
|
91
|
+
|
|
92
|
+
}
|
|
93
|
+
}
|
|
86
94
|
};
|
|
87
95
|
|
|
88
96
|
/**
|
|
@@ -95,6 +103,7 @@ export const getCdnUrl = ({
|
|
|
95
103
|
channelName: receivedChannelName,
|
|
96
104
|
channelSubType: receivedChannelSubType,
|
|
97
105
|
}) => {
|
|
106
|
+
console.log('hello func called..');
|
|
98
107
|
const channelName = receivedChannelName?.toUpperCase();
|
|
99
108
|
const channelSubType = receivedChannelSubType?.toUpperCase();
|
|
100
109
|
|
|
@@ -32,6 +32,8 @@ import { GA } from '@capillarytech/cap-ui-utils';
|
|
|
32
32
|
import { CREATE, EDIT, TRACK_CREATE_WECHAT, TRACK_EDIT_WECHAT } from '../../../App/constants';
|
|
33
33
|
import { gtmPush } from '../../../../utils/gtmTrackers';
|
|
34
34
|
import { WECHAT } from '../../../CreativesContainer/constants';
|
|
35
|
+
import { getCdnUrl } from '../../../../utils/cdnTransformation';
|
|
36
|
+
|
|
35
37
|
export class Create extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
|
36
38
|
constructor(props) {
|
|
37
39
|
super(props);
|
|
@@ -478,7 +480,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
|
|
|
478
480
|
need_open_comment: postCommentsData.need_open_comment,
|
|
479
481
|
only_fans_can_comment: postCommentsData.only_fans_can_comment,
|
|
480
482
|
thumb_media_id: contentData.mediaId,
|
|
481
|
-
image_url: contentData.imageUrl,
|
|
483
|
+
image_url: getCdnUrl({url: contentData.imageUrl, channelName: 'WECHAT'}),
|
|
482
484
|
};
|
|
483
485
|
mediaList.push(filteredContent);
|
|
484
486
|
});
|