@capillarytech/creatives-library 7.17.190 → 7.17.191
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
|
@@ -7,7 +7,7 @@ import messages from "./messages";
|
|
|
7
7
|
export const DEFAULT_ACTION = 'app/v2Containers/Viber/DEFAULT_ACTION';
|
|
8
8
|
export const ALLOWED_EXTENSIONS_REGEX = (/\.(jpe?g|png)$/i);
|
|
9
9
|
export const VIBER_IMG_HEIGHT = 400;
|
|
10
|
-
export const VIBER_IMG_WIDTH =
|
|
10
|
+
export const VIBER_IMG_WIDTH = 400;
|
|
11
11
|
export const VIBER_IMG_SIZE = 10000000;
|
|
12
12
|
export const VIBER_VIDEO_SIZE = 209715200;
|
|
13
13
|
export const charLimit = 1000;
|
|
@@ -16,7 +16,7 @@ import CapNotification from '@capillarytech/cap-ui-library/CapNotification';
|
|
|
16
16
|
import CapTooltip from '@capillarytech/cap-ui-library/CapTooltip';
|
|
17
17
|
import CapIcon from '@capillarytech/cap-ui-library/CapIcon';
|
|
18
18
|
import CapRadioGroup from '@capillarytech/cap-ui-library/CapRadioGroup';
|
|
19
|
-
import
|
|
19
|
+
import CapAskAira from '@capillarytech/cap-ui-library/CapAskAira';
|
|
20
20
|
import { GA } from '@capillarytech/cap-ui-utils';
|
|
21
21
|
import { makeSelectViber, makeSelectCreateViber } from './selectors';
|
|
22
22
|
import * as viberActions from './actions';
|
|
@@ -25,7 +25,7 @@ import TemplatePreview from '../../v2Components/TemplatePreview';
|
|
|
25
25
|
import { isUrl } from '../Line/Container/Wrapper/utils';
|
|
26
26
|
import messages from './messages';
|
|
27
27
|
import TagList from '../TagList';
|
|
28
|
-
import { makeSelectMetaEntities, setInjectedTags,selectCurrentOrgDetails } from '../Cap/selectors';
|
|
28
|
+
import { makeSelectMetaEntities, setInjectedTags, selectCurrentOrgDetails } from '../Cap/selectors';
|
|
29
29
|
import {
|
|
30
30
|
ALLOWED_IMAGE_EXTENSIONS_REGEX_VIBER,
|
|
31
31
|
ALLOWED_EXTENSIONS_VIDEO_REGEX_VIBER,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
NONE,
|
|
40
40
|
mediaRadioOptions,
|
|
41
41
|
buttonRadioOptions,
|
|
42
|
-
AI_CONTENT_BOT_DISABLED
|
|
42
|
+
AI_CONTENT_BOT_DISABLED,
|
|
43
43
|
} from './constants';
|
|
44
44
|
import withCreatives from '../../hoc/withCreatives';
|
|
45
45
|
import { CREATE, EDIT, TRACK_CREATE_VIBER, TRACK_EDIT_VIBER } from '../App/constants';
|
|
@@ -70,7 +70,7 @@ export const Viber = (props) => {
|
|
|
70
70
|
getFormSubscriptionData,
|
|
71
71
|
viberData = {},
|
|
72
72
|
selectedOfferDetails = [],
|
|
73
|
-
currentOrgDetails
|
|
73
|
+
currentOrgDetails,
|
|
74
74
|
} = props || {};
|
|
75
75
|
|
|
76
76
|
const { formatMessage } = intl;
|
|
@@ -272,20 +272,20 @@ export const Viber = (props) => {
|
|
|
272
272
|
selectedOfferDetails={selectedOfferDetails}
|
|
273
273
|
/>
|
|
274
274
|
</CapColumn>
|
|
275
|
-
<div
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
275
|
+
<div className="viber-textarea-wrapper">
|
|
276
|
+
<TextArea
|
|
277
|
+
id={"viber_textarea"}
|
|
278
|
+
autosize={false}
|
|
279
|
+
onChange={onTextContentChange}
|
|
280
|
+
className={`${errorMessageTextarea ? "error" : ""}`}
|
|
281
|
+
errorMessage={errorMessageTextarea}
|
|
282
|
+
defaultValue={messageContent || ""}
|
|
283
|
+
value={messageContent || ""}
|
|
284
|
+
rows={5}
|
|
285
|
+
cols={2}
|
|
286
|
+
placeholder={formatMessage(messages.enterMessage)}
|
|
287
|
+
/>
|
|
288
|
+
{!isAiContentBotDisabled && (
|
|
289
289
|
<CapAskAira.ContentGenerationBot
|
|
290
290
|
text={messageContent || ""}
|
|
291
291
|
setText={(text) => {
|
|
@@ -297,7 +297,7 @@ export const Viber = (props) => {
|
|
|
297
297
|
bottom: "0.2rem",
|
|
298
298
|
right: "0.2rem",
|
|
299
299
|
left: "auto",
|
|
300
|
-
position: "absolute"
|
|
300
|
+
position: "absolute",
|
|
301
301
|
}}
|
|
302
302
|
/>
|
|
303
303
|
)}
|
|
@@ -78,10 +78,6 @@ export default defineMessages({
|
|
|
78
78
|
id: `${scope}.imageReUpload`,
|
|
79
79
|
defaultMessage: 'Re upload',
|
|
80
80
|
},
|
|
81
|
-
imageDimenstionDescription: {
|
|
82
|
-
id: `${scope}.imageDimenstionDescription`,
|
|
83
|
-
defaultMessage: 'Dimensions: 300px x 400px',
|
|
84
|
-
},
|
|
85
81
|
imageSizeDescription: {
|
|
86
82
|
id: `${scope}.imageSizeDescription`,
|
|
87
83
|
defaultMessage: ' Size: 10mb',
|