@antscorp/antsomi-ui 1.3.5-beta.832 → 1.3.5-beta.834
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/es/components/molecules/AddDynamicContent/components/DisplayFormat/DisplayFormat.d.ts +1 -0
- package/es/components/organism/AccountProfile/components/AccountSetting/AccountSetting.js +7 -7
- package/es/components/organism/ActivityTimeline/__mocks__/timeline.json +18 -9
- package/es/components/organism/ActivityTimeline/components/ProductCard/ProductCard.js +1 -1
- package/es/components/organism/ActivityTimeline/components/ProductCard/styled.js +5 -3
- package/es/components/organism/ActivityTimeline/styled.js +8 -0
- package/es/components/template/TemplateListing/Loadable.d.ts +1 -0
- package/es/locales/en/google-sheet.json +1 -1
- package/es/locales/ja/google-sheet.json +1582 -1582
- package/es/locales/vi/google-sheet.json +55 -55
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// Libraries
|
|
3
3
|
import axios from 'axios';
|
|
4
4
|
import clsx from 'clsx';
|
|
@@ -860,15 +860,15 @@ export const AccountSetting = memo(forwardRef((props, ref) => {
|
|
|
860
860
|
(logoManual && logoManual.url) ||
|
|
861
861
|
(!loading ? Image : '');
|
|
862
862
|
try {
|
|
863
|
-
return (_jsxs(Spin, { spinning: loading, children: [_jsxs(AccountDetail, { className: "wrap-table", children: [_jsxs("div", { className: "form-profile", children: [_jsxs("div", { className: "left-profile", children: [logo && _jsx("img", { src: avatarUrl, alt: "" }), _jsxs("div", { className: "preview mt-10", children: [isDisabledEdit || isPreview ? null : (_jsxs(
|
|
863
|
+
return (_jsxs(Spin, { spinning: loading, children: [_jsxs(AccountDetail, { className: "wrap-table", children: [_jsxs("div", { className: "form-profile", children: [_jsxs("div", { className: "left-profile", children: [logo && _jsx("img", { src: avatarUrl, alt: "" }), _jsxs("div", { className: "preview mt-10", children: [isDisabledEdit || isPreview ? null : (_jsxs("div", { className: "block-choose-input-file", children: [_jsx(UploadAvatar
|
|
864
|
+
// ref={input => {
|
|
865
|
+
// this.fileInput = input;
|
|
866
|
+
// }}
|
|
867
|
+
, {
|
|
864
868
|
// ref={input => {
|
|
865
869
|
// this.fileInput = input;
|
|
866
870
|
// }}
|
|
867
|
-
, {
|
|
868
|
-
// ref={input => {
|
|
869
|
-
// this.fileInput = input;
|
|
870
|
-
// }}
|
|
871
|
-
onFileUploading: onFileUploading, onFileUploaded: handleChangeLogo, callbackFileError: showFileError, dimensions: { width: 5000, height: 5000 }, extensions: ['png', 'jpg', 'PNG', 'JPG'], maxFileSize: 3072, iamDomain: iamDomain, authStr: `?_token=${token}&_user_id=${accountId}&_account_id=${accountId}`, setLoading: setLoading }) }), _jsx("span", { className: "choose-file-text", children: "Change avatar" })] })), errors.avatar ? (_jsxs("div", { className: "error", style: {
|
|
871
|
+
onFileUploading: onFileUploading, onFileUploaded: handleChangeLogo, callbackFileError: showFileError, dimensions: { width: 5000, height: 5000 }, extensions: ['png', 'jpg', 'PNG', 'JPG'], maxFileSize: 3072, iamDomain: iamDomain, authStr: `?_token=${token}&_user_id=${accountId}&_account_id=${accountId}`, setLoading: setLoading }), _jsx("span", { className: "choose-file-text", children: "Change avatar" })] })), errors.avatar ? (_jsxs("div", { className: "error", style: {
|
|
872
872
|
width: 'fit-content',
|
|
873
873
|
textAlign: 'left',
|
|
874
874
|
margin: '0 auto',
|
|
@@ -23,7 +23,12 @@
|
|
|
23
23
|
"url": "",
|
|
24
24
|
"urlName": "",
|
|
25
25
|
"userId": "1256187161",
|
|
26
|
-
"items": [
|
|
26
|
+
"items": [
|
|
27
|
+
{
|
|
28
|
+
"name": "",
|
|
29
|
+
"url": "https://sandbox-magento.antsomi.com/"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
27
32
|
"extra": {
|
|
28
33
|
"prop_id": "556300706",
|
|
29
34
|
"utm_type": "referrer",
|
|
@@ -46,8 +51,12 @@
|
|
|
46
51
|
"utm_source": "google.com",
|
|
47
52
|
"visitor_type": "returning",
|
|
48
53
|
"click_bc": "1256187161b1724237350",
|
|
49
|
-
"users": {
|
|
50
|
-
|
|
54
|
+
"users": {
|
|
55
|
+
"fb_uid": "fb.1.1723618150894.718581077124049320"
|
|
56
|
+
},
|
|
57
|
+
"customers": {
|
|
58
|
+
"customer_id": "211"
|
|
59
|
+
},
|
|
51
60
|
"title": ""
|
|
52
61
|
},
|
|
53
62
|
"context": {
|
|
@@ -1478,11 +1487,11 @@
|
|
|
1478
1487
|
"id": "469",
|
|
1479
1488
|
"type": "product",
|
|
1480
1489
|
"sale_price": 32,
|
|
1481
|
-
"item_quantity":
|
|
1482
|
-
"quantity":
|
|
1490
|
+
"item_quantity": 10,
|
|
1491
|
+
"quantity": 11,
|
|
1483
1492
|
"page_url": "https://sandbox-magento.antsomi.com/ryker-lumatech-trade-tee-crew-neck.html",
|
|
1484
1493
|
"last_updated": "2024-08-01 17:08:02",
|
|
1485
|
-
"image_url": "https://
|
|
1494
|
+
"image_url": "https://www.antsomi.com/wp-content/uploads/2021/04/Antsomi_Infinity_Marketing_Framework_CDP365.png",
|
|
1486
1495
|
"date_created": "2023-03-06 17:29:11",
|
|
1487
1496
|
"category_level_1": "Tops",
|
|
1488
1497
|
"category_level_2": "Tees",
|
|
@@ -1504,7 +1513,7 @@
|
|
|
1504
1513
|
"quantity": 1,
|
|
1505
1514
|
"page_url": "https://sandbox-magento.antsomi.com/minerva-lumatech-trade-v-tee.html",
|
|
1506
1515
|
"last_updated": "2024-06-13 13:41:37",
|
|
1507
|
-
"image_url": "https://
|
|
1516
|
+
"image_url": "https://www.antsomi.com/wp-content/uploads/2021/05/Media-coverage-DAVI-Antsomi-21_Apr_2021-455x1024.png",
|
|
1508
1517
|
"date_created": "2023-03-06 17:29:11",
|
|
1509
1518
|
"category_level_1": "Tops",
|
|
1510
1519
|
"category_level_2": "Tees",
|
|
@@ -1522,8 +1531,8 @@
|
|
|
1522
1531
|
"id": "565",
|
|
1523
1532
|
"type": "product",
|
|
1524
1533
|
"sale_price": 28,
|
|
1525
|
-
"item_quantity":
|
|
1526
|
-
"quantity":
|
|
1534
|
+
"item_quantity": 24,
|
|
1535
|
+
"quantity": 52,
|
|
1527
1536
|
"page_url": "https://sandbox-magento.antsomi.com/ryker-lumatech-trade-tee-v-neck.html",
|
|
1528
1537
|
"last_updated": "2024-07-31 19:47:26",
|
|
1529
1538
|
"image_url": "https://sandbox-magento.antsomi.com/media/catalog/product/m/s/ms02-gray_main_1.jpg",
|
|
@@ -4,5 +4,5 @@ import { translate } from '@antscorp/antsomi-ui/es/locales';
|
|
|
4
4
|
import { Flex, Image, Tooltip } from 'antd';
|
|
5
5
|
export const ProductCard = (props) => {
|
|
6
6
|
const { href = '/', urlImg = '/', title = null, quantity = 0, price = '' } = props;
|
|
7
|
-
return (_jsxs(WrapCard, { children: [_jsx(ImgPanel, { children: _jsx(Image, { src: urlImg }) }), _jsxs(InfoPanel, { children: [_jsxs(Flex, { children: [_jsx(Tooltip, { title: title, arrow: true, children: href && href.length > 0 ? (_jsx(LinkExtendTitle, { href: href, target: "_blank", children: title })) : (_jsx(LinkExtendTitle, { children: title })) }), quantity && (_jsxs(PlainCard, { children: [translate('_TITL_QUANTITY', 'Quantity'), ": ", quantity] }))] }), _jsx(PlainCard, { children: price })] })] }));
|
|
7
|
+
return (_jsxs(WrapCard, { children: [_jsx(ImgPanel, { children: _jsx(Image, { src: urlImg }) }), _jsxs(InfoPanel, { children: [_jsxs(Flex, { vertical: true, children: [_jsx(Tooltip, { title: title, arrow: true, children: href && href.length > 0 ? (_jsx(LinkExtendTitle, { href: href, target: "_blank", children: title })) : (_jsx(LinkExtendTitle, { children: title })) }), quantity && (_jsxs(PlainCard, { children: [translate('_TITL_QUANTITY', 'Quantity'), ": ", quantity] }))] }), _jsx(PlainCard, { children: price })] })] }));
|
|
8
8
|
};
|
|
@@ -63,7 +63,9 @@ export const ImgPanel = styled.div `
|
|
|
63
63
|
width: 100%;
|
|
64
64
|
|
|
65
65
|
> img.antsomi-image-img {
|
|
66
|
-
|
|
66
|
+
height: 100%;
|
|
67
|
+
width: 100%;
|
|
68
|
+
object-fit: contain;
|
|
67
69
|
}
|
|
68
70
|
}
|
|
69
71
|
`;
|
|
@@ -76,7 +78,7 @@ export const InfoPanel = styled.div `
|
|
|
76
78
|
`;
|
|
77
79
|
export const LinkExtendTitle = styled(Typography.Link) `
|
|
78
80
|
font-size: 0.75rem;
|
|
79
|
-
font-
|
|
81
|
+
font-weight: bold;
|
|
80
82
|
margin-bottom: 0.5rem;
|
|
81
83
|
white-space: nowrap;
|
|
82
84
|
overflow: hidden;
|
|
@@ -93,6 +95,6 @@ export const LinkExtendTitle = styled(Typography.Link) `
|
|
|
93
95
|
}
|
|
94
96
|
`;
|
|
95
97
|
export const PlainCard = styled.div `
|
|
96
|
-
font-size:
|
|
98
|
+
font-size: 12px;
|
|
97
99
|
line-height: 1.25;
|
|
98
100
|
`;
|
|
@@ -4,6 +4,14 @@ export const StyledRoot = styled.div `
|
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
height: 100%;
|
|
7
|
+
|
|
8
|
+
a.title-have-url {
|
|
9
|
+
font-weight: bold;
|
|
10
|
+
|
|
11
|
+
&:hover {
|
|
12
|
+
text-decoration: underline;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
7
15
|
`;
|
|
8
16
|
export const StyldTitle = styled.div `
|
|
9
17
|
font-size: 16px;
|
|
@@ -1288,7 +1288,7 @@
|
|
|
1288
1288
|
"_TITL_TOTAL_TESTING_INPUT": "Total testing input",
|
|
1289
1289
|
"_TITL_TRACKED_TIME": "Tracked time",
|
|
1290
1290
|
"_TITL_TREAT_AS_CONVERSION_OBECJT": "Treat as Conversion Object",
|
|
1291
|
-
"_TOOLTIP__TITL_TREAT_AS_CONVERSION_OBECJT": "
|
|
1291
|
+
"_TOOLTIP__TITL_TREAT_AS_CONVERSION_OBECJT": "Coi như đối tượng chuyển đổi",
|
|
1292
1292
|
"_TITL_TRIGGER_EVENT": "{{trigger_event_name}}, where:",
|
|
1293
1293
|
"_TITL_TRIGGER_TIME": "Trigger time",
|
|
1294
1294
|
"_TITL_UNTITLED_MEASURE": "Untitled Measure",
|