@fonixtree/magic-design 0.0.158 → 0.0.160
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/common/ImageModal/CommonModal/index.js +0 -1
- package/es/common/LinkModal/FilteredProductModal/index.js +1 -1
- package/es/common/ProductSource/index.js +1 -1
- package/es/common/Video/index.js +1 -1
- package/es/composite-comp/bol/components/Video/components/ShareBtn/index.less +2 -2
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +6 -1
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.less +1 -0
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +1 -1
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +1 -0
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +2 -2
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +1 -0
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +1 -1
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +1 -0
- package/es/composite-comp/bol/components/Video/mobile/index.js +0 -1
- package/es/composite-comp/bol/components/Video/pc/Layout1/index.less +1 -0
- package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +1 -1
- package/es/composite-comp/bol/components/Video/pc/Layout2/index.less +2 -0
- package/es/composite-comp/bol/components/Video/pc/Layout3/index.less +1 -0
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.less +1 -0
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.less +1 -0
- package/es/locale/en/en.json +1 -0
- package/es/locale/es/es.json +1 -0
- package/es/locale/id/id.json +1 -0
- package/lib/common/ImageModal/CommonModal/index.js +0 -1
- package/lib/common/LinkModal/FilteredProductModal/index.js +1 -1
- package/lib/common/ProductSource/index.js +1 -1
- package/lib/common/Video/index.js +1 -1
- package/lib/composite-comp/bol/components/Video/components/ShareBtn/index.less +2 -2
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +6 -1
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.less +1 -0
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +1 -1
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +1 -0
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +2 -2
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +1 -0
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +1 -1
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +1 -0
- package/lib/composite-comp/bol/components/Video/mobile/index.js +0 -1
- package/lib/composite-comp/bol/components/Video/pc/Layout1/index.less +1 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +1 -1
- package/lib/composite-comp/bol/components/Video/pc/Layout2/index.less +2 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout3/index.less +1 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.less +1 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.less +1 -0
- package/lib/locale/en/en.json +1 -0
- package/lib/locale/es/es.json +1 -0
- package/lib/locale/id/id.json +1 -0
- package/package.json +1 -1
|
@@ -35,7 +35,6 @@ function CommonModal(_a) {
|
|
|
35
35
|
okText: okText || 'Confirm',
|
|
36
36
|
cancelText: cancelText || 'Cancel'
|
|
37
37
|
};
|
|
38
|
-
console.log('CommonModal render');
|
|
39
38
|
return /*#__PURE__*/_react["default"].createElement(_antd.Modal, _extends({}, modalCommonProps, modalOpts, {
|
|
40
39
|
confirmLoading: confirmLoading,
|
|
41
40
|
onCancel: onCancel,
|
|
@@ -461,7 +461,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
461
461
|
startPrice: minimum * precision || '',
|
|
462
462
|
endPrice: maximum * precision || '',
|
|
463
463
|
// storeName:storeName,
|
|
464
|
-
|
|
464
|
+
campaignType: promotions.key || '',
|
|
465
465
|
pageSize: paginationParams.pageSize,
|
|
466
466
|
pageIndex: paginationParams.current,
|
|
467
467
|
state: 'A'
|
|
@@ -193,7 +193,7 @@ function ProductSource(_a) {
|
|
|
193
193
|
, 2];
|
|
194
194
|
return [4
|
|
195
195
|
/*yield*/
|
|
196
|
-
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "products", {
|
|
196
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/products", {
|
|
197
197
|
products: value
|
|
198
198
|
}, 'GET')];
|
|
199
199
|
|
package/es/common/Video/index.js
CHANGED
|
@@ -344,7 +344,7 @@ function (_super) {
|
|
|
344
344
|
contentWrap.appendChild(closeImgDom);
|
|
345
345
|
modelWrap.appendChild(shadowWrap);
|
|
346
346
|
modelWrap.appendChild(contentWrap);
|
|
347
|
-
(document.querySelector('[
|
|
347
|
+
(document.querySelector('[magic_design]') || document.body).appendChild(modelWrap);
|
|
348
348
|
createVideo('-modal-' + videoId, __assign(__assign({}, _this.props.opts), {
|
|
349
349
|
autoplay: true
|
|
350
350
|
}));
|
|
@@ -17,6 +17,8 @@ var _index = _interopRequireDefault(require("../ShareBtn/index"));
|
|
|
17
17
|
|
|
18
18
|
require("./index.less");
|
|
19
19
|
|
|
20
|
+
var _AlignSelector = require("../../../../../../common/AlignSelector");
|
|
21
|
+
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
23
|
|
|
22
24
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -86,7 +88,10 @@ function (_super) {
|
|
|
86
88
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
87
89
|
className: "right-wrap"
|
|
88
90
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
89
|
-
className: "tag-wrap"
|
|
91
|
+
className: "tag-wrap",
|
|
92
|
+
style: {
|
|
93
|
+
justifyContent: _AlignSelector.alignItemMap[align]
|
|
94
|
+
}
|
|
90
95
|
}, data.imageTag.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
96
|
className: "tag-image"
|
|
92
97
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
@@ -147,7 +147,7 @@ function (_super) {
|
|
|
147
147
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
148
148
|
alt: "",
|
|
149
149
|
src: _playCircle["default"]
|
|
150
|
-
})), /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
150
|
+
})), data.share.open && !isPlaying && /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
151
151
|
data: data
|
|
152
152
|
}), !isPlaying && /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
153
153
|
align: data.customize.align,
|
|
@@ -189,9 +189,9 @@ function (_super) {
|
|
|
189
189
|
scroll: 'node-' + data.id
|
|
190
190
|
})
|
|
191
191
|
}, data.share)
|
|
192
|
+
}), data.share.open && !isPlaying && /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
193
|
+
data: data
|
|
192
194
|
}));
|
|
193
|
-
}), /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
194
|
-
data: data
|
|
195
195
|
}))), /*#__PURE__*/_react["default"].createElement(_common.SwiperBan, {
|
|
196
196
|
data: data.groupSource,
|
|
197
197
|
onChange: function onChange(i) {
|
|
@@ -147,7 +147,7 @@ function (_super) {
|
|
|
147
147
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
148
148
|
alt: "",
|
|
149
149
|
src: _playCircle["default"]
|
|
150
|
-
})), data.share.open && /*#__PURE__*/_react["default"].createElement(_ShareBtn["default"], {
|
|
150
|
+
})), data.share.open && !isPlaying && /*#__PURE__*/_react["default"].createElement(_ShareBtn["default"], {
|
|
151
151
|
data: data.share
|
|
152
152
|
})), /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
153
153
|
align: data.customize.align,
|
|
@@ -98,7 +98,6 @@ function (_super) {
|
|
|
98
98
|
|
|
99
99
|
BannerMobile.prototype.render = function () {
|
|
100
100
|
var data = this.props.data;
|
|
101
|
-
console.log('data: ', data);
|
|
102
101
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
103
102
|
className: "m-video-mobile"
|
|
104
103
|
}, data.customize.layout.h5Layout == 'layout1' && /*#__PURE__*/_react["default"].createElement(_Layout["default"], {
|
|
@@ -201,7 +201,7 @@ function (_super) {
|
|
|
201
201
|
noShare: true,
|
|
202
202
|
padding: 32
|
|
203
203
|
}));
|
|
204
|
-
})), !hasPlaying && /*#__PURE__*/_react["default"].createElement(_ShareBtn["default"], {
|
|
204
|
+
})), data.share.open && !hasPlaying && /*#__PURE__*/_react["default"].createElement(_ShareBtn["default"], {
|
|
205
205
|
data: __assign({
|
|
206
206
|
url: (0, _commonUtil.addUrlQuery)(window.location.href, {
|
|
207
207
|
scroll: 'node-' + data.id
|
package/es/locale/en/en.json
CHANGED
package/es/locale/es/es.json
CHANGED
package/es/locale/id/id.json
CHANGED
|
@@ -35,7 +35,6 @@ function CommonModal(_a) {
|
|
|
35
35
|
okText: okText || 'Confirm',
|
|
36
36
|
cancelText: cancelText || 'Cancel'
|
|
37
37
|
};
|
|
38
|
-
console.log('CommonModal render');
|
|
39
38
|
return /*#__PURE__*/_react["default"].createElement(_antd.Modal, _extends({}, modalCommonProps, modalOpts, {
|
|
40
39
|
confirmLoading: confirmLoading,
|
|
41
40
|
onCancel: onCancel,
|
|
@@ -461,7 +461,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
461
461
|
startPrice: minimum * precision || '',
|
|
462
462
|
endPrice: maximum * precision || '',
|
|
463
463
|
// storeName:storeName,
|
|
464
|
-
|
|
464
|
+
campaignType: promotions.key || '',
|
|
465
465
|
pageSize: paginationParams.pageSize,
|
|
466
466
|
pageIndex: paginationParams.current,
|
|
467
467
|
state: 'A'
|
|
@@ -193,7 +193,7 @@ function ProductSource(_a) {
|
|
|
193
193
|
, 2];
|
|
194
194
|
return [4
|
|
195
195
|
/*yield*/
|
|
196
|
-
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "products", {
|
|
196
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/products", {
|
|
197
197
|
products: value
|
|
198
198
|
}, 'GET')];
|
|
199
199
|
|
|
@@ -344,7 +344,7 @@ function (_super) {
|
|
|
344
344
|
contentWrap.appendChild(closeImgDom);
|
|
345
345
|
modelWrap.appendChild(shadowWrap);
|
|
346
346
|
modelWrap.appendChild(contentWrap);
|
|
347
|
-
(document.querySelector('[
|
|
347
|
+
(document.querySelector('[magic_design]') || document.body).appendChild(modelWrap);
|
|
348
348
|
createVideo('-modal-' + videoId, __assign(__assign({}, _this.props.opts), {
|
|
349
349
|
autoplay: true
|
|
350
350
|
}));
|
|
@@ -17,6 +17,8 @@ var _index = _interopRequireDefault(require("../ShareBtn/index"));
|
|
|
17
17
|
|
|
18
18
|
require("./index.less");
|
|
19
19
|
|
|
20
|
+
var _AlignSelector = require("../../../../../../common/AlignSelector");
|
|
21
|
+
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
23
|
|
|
22
24
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -86,7 +88,10 @@ function (_super) {
|
|
|
86
88
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
87
89
|
className: "right-wrap"
|
|
88
90
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
89
|
-
className: "tag-wrap"
|
|
91
|
+
className: "tag-wrap",
|
|
92
|
+
style: {
|
|
93
|
+
justifyContent: _AlignSelector.alignItemMap[align]
|
|
94
|
+
}
|
|
90
95
|
}, data.imageTag.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
96
|
className: "tag-image"
|
|
92
97
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
@@ -147,7 +147,7 @@ function (_super) {
|
|
|
147
147
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
148
148
|
alt: "",
|
|
149
149
|
src: _playCircle["default"]
|
|
150
|
-
})), /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
150
|
+
})), data.share.open && !isPlaying && /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
151
151
|
data: data
|
|
152
152
|
}), !isPlaying && /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
153
153
|
align: data.customize.align,
|
|
@@ -189,9 +189,9 @@ function (_super) {
|
|
|
189
189
|
scroll: 'node-' + data.id
|
|
190
190
|
})
|
|
191
191
|
}, data.share)
|
|
192
|
+
}), data.share.open && !isPlaying && /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
193
|
+
data: data
|
|
192
194
|
}));
|
|
193
|
-
}), /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
194
|
-
data: data
|
|
195
195
|
}))), /*#__PURE__*/_react["default"].createElement(_common.SwiperBan, {
|
|
196
196
|
data: data.groupSource,
|
|
197
197
|
onChange: function onChange(i) {
|
|
@@ -147,7 +147,7 @@ function (_super) {
|
|
|
147
147
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
148
148
|
alt: "",
|
|
149
149
|
src: _playCircle["default"]
|
|
150
|
-
})), data.share.open && /*#__PURE__*/_react["default"].createElement(_ShareBtn["default"], {
|
|
150
|
+
})), data.share.open && !isPlaying && /*#__PURE__*/_react["default"].createElement(_ShareBtn["default"], {
|
|
151
151
|
data: data.share
|
|
152
152
|
})), /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
153
153
|
align: data.customize.align,
|
|
@@ -98,7 +98,6 @@ function (_super) {
|
|
|
98
98
|
|
|
99
99
|
BannerMobile.prototype.render = function () {
|
|
100
100
|
var data = this.props.data;
|
|
101
|
-
console.log('data: ', data);
|
|
102
101
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
103
102
|
className: "m-video-mobile"
|
|
104
103
|
}, data.customize.layout.h5Layout == 'layout1' && /*#__PURE__*/_react["default"].createElement(_Layout["default"], {
|
|
@@ -201,7 +201,7 @@ function (_super) {
|
|
|
201
201
|
noShare: true,
|
|
202
202
|
padding: 32
|
|
203
203
|
}));
|
|
204
|
-
})), !hasPlaying && /*#__PURE__*/_react["default"].createElement(_ShareBtn["default"], {
|
|
204
|
+
})), data.share.open && !hasPlaying && /*#__PURE__*/_react["default"].createElement(_ShareBtn["default"], {
|
|
205
205
|
data: __assign({
|
|
206
206
|
url: (0, _commonUtil.addUrlQuery)(window.location.href, {
|
|
207
207
|
scroll: 'node-' + data.id
|
package/lib/locale/en/en.json
CHANGED
package/lib/locale/es/es.json
CHANGED
package/lib/locale/id/id.json
CHANGED