@fonixtree/magic-design 2.0.72 → 2.0.74

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.
Files changed (39) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/common/AffiliateProductModal/index.js +1 -1
  3. package/es/common/AffiliateProductModal/index.less +1 -1
  4. package/es/common/LinkModal/FilteredProductModal/index.js +81 -105
  5. package/es/common/LinkModal/FilteredProductModal/index.less +1 -0
  6. package/es/common/LinkModal/ProductDetailPage/index.js +96 -58
  7. package/es/common/LinkModal/ProductDetailPage/index.less +6 -1
  8. package/es/common/ProductModal/index.js +124 -87
  9. package/es/common/ProductModal/index.less +7 -1
  10. package/es/common/ProductSource/index.js +82 -21
  11. package/es/composite-comp/bol/components/Wallet/mobile/index.js +1 -1
  12. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +1 -1
  13. package/es/composite-comp/dito/components/Recommend/mobile/index.js +26 -23
  14. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +4 -2
  15. package/es/constants/index.js +1 -1
  16. package/es/locale/en/en.json +3 -2
  17. package/es/locale/es/es.json +3 -2
  18. package/es/locale/id/id.json +3 -2
  19. package/es/utils/commonUtil.js +14 -6
  20. package/lib/assets/fonts/.DS_Store +0 -0
  21. package/lib/common/AffiliateProductModal/index.js +1 -1
  22. package/lib/common/AffiliateProductModal/index.less +1 -1
  23. package/lib/common/LinkModal/FilteredProductModal/index.js +81 -105
  24. package/lib/common/LinkModal/FilteredProductModal/index.less +1 -0
  25. package/lib/common/LinkModal/ProductDetailPage/index.js +96 -58
  26. package/lib/common/LinkModal/ProductDetailPage/index.less +6 -1
  27. package/lib/common/ProductModal/index.js +124 -87
  28. package/lib/common/ProductModal/index.less +7 -1
  29. package/lib/common/ProductSource/index.js +82 -21
  30. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +1 -1
  31. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +1 -1
  32. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +26 -23
  33. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +4 -2
  34. package/lib/constants/index.js +1 -1
  35. package/lib/locale/en/en.json +3 -2
  36. package/lib/locale/es/es.json +3 -2
  37. package/lib/locale/id/id.json +3 -2
  38. package/lib/utils/commonUtil.js +14 -6
  39. package/package.json +1 -1
@@ -114,11 +114,13 @@ function (_super) {
114
114
  }, (0, _locale.i18n)('AI_RECOMMENDATION')))), /*#__PURE__*/_react["default"].createElement("div", {
115
115
  className: "greyBg"
116
116
  }, panelProps.sourceType === 'select' && /*#__PURE__*/_react["default"].createElement(_common.ProductSource, {
117
- onChange: function onChange(v) {
118
- panelProps.prodIds = v;
117
+ onChange: function onChange(ids, type) {
118
+ panelProps.prodIds = ids;
119
+ panelProps.prodType = type;
119
120
 
120
121
  _this.selfRender();
121
122
  },
123
+ prodType: panelProps.prodType,
122
124
  value: panelProps.prodIds
123
125
  }), panelProps.sourceType === 'recommend' && /*#__PURE__*/_react["default"].createElement(_AIRecommendation["default"], {
124
126
  onChange: function onChange(val) {
@@ -42,7 +42,7 @@ var walletType = {
42
42
  BNPL: 'BNPL',
43
43
  B2B: 'B2B PayLater',
44
44
  BALANCE: 'Balance',
45
- CENDUIT: 'Cenduit'
45
+ CENDUIT: 'CenDuit'
46
46
  };
47
47
  exports.walletType = walletType;
48
48
  var urlType = {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "PUSH": "Push",
3
- "SET_AS_TEMPLATE":"Set as Template",
3
+ "SET_AS_TEMPLATE": "Set as Template",
4
4
  "DISPLAY_PAGE": "Display page",
5
5
  "NAME": "Name",
6
6
  "ADD_MENU": "Add Menu",
@@ -97,7 +97,8 @@
97
97
  "BANNER_HEIGHT": "Banner Height",
98
98
  "IMAGE": "Image",
99
99
  "PRODUCT_NAME": "Product Name",
100
- "PRODUCT_CODE": "Product Code",
100
+ "SKU_CODE": "SKU Code",
101
+ "SPU_CODE": "SPU Code",
101
102
  "SKU": "SKU",
102
103
  "PRICE": "Price",
103
104
  "BRAND": "Brand",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "PUSH": "Push",
3
- "SET_AS_TEMPLATE":"Set as Template",
3
+ "SET_AS_TEMPLATE": "Set as Template",
4
4
  "DISPLAY_PAGE": "Display page",
5
5
  "NAME": "Name",
6
6
  "ADD_MENU": "Add Menu",
@@ -97,7 +97,8 @@
97
97
  "BANNER_HEIGHT": "Altura del banner",
98
98
  "IMAGE": "Imagen",
99
99
  "PRODUCT_NAME": "Nombre del producto",
100
- "PRODUCT_CODE": "Código de producto",
100
+ "SKU_CODE": "Código SKU",
101
+ "SPU_CODE": "Código spu",
101
102
  "SKU": "SKU",
102
103
  "PRICE": "Precio",
103
104
  "BRAND": "Marca",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "PUSH": "Push",
3
- "SET_AS_TEMPLATE":"Set as Template",
3
+ "SET_AS_TEMPLATE": "Set as Template",
4
4
  "DISPLAY_PAGE": "Display page",
5
5
  "NAME": "Name",
6
6
  "ADD_MENU": "Add Menu",
@@ -97,7 +97,8 @@
97
97
  "BANNER_HEIGHT": "Banner Height",
98
98
  "IMAGE": "Image",
99
99
  "PRODUCT_NAME": "Product Name",
100
- "PRODUCT_CODE": "Product Code",
100
+ "SKU_CODE": "SKU Code",
101
+ "SPU_CODE": "SPU Code",
101
102
  "SKU": "SKU",
102
103
  "PRICE": "Price",
103
104
  "BRAND": "Brand",
@@ -291,14 +291,22 @@ var navigateTo = function navigateTo(url) {
291
291
  return;
292
292
  }
293
293
 
294
- if (url.startsWith('/')) {
295
- if (window.magicDesign.history && !window.magicDesign.navigatePreUrl) {
296
- window.magicDesign.history.push(url);
297
- } else {
294
+ var _a = url.split(';'),
295
+ h5Url = _a[0],
296
+ appUrl = _a[1]; // 未配置App路径并且h5绝对路径时直接跳转,其他情况让业务层处理
297
+
298
+
299
+ if (!appUrl && !h5Url.startsWith('/')) {
300
+ window.location.href = h5Url;
301
+ } else if (window.magicDesign.history) {
302
+ window.magicDesign.history.push(url);
303
+ } else if (window.magicDesign.navigatePreUrl) {
304
+ // 预览模式跳转
305
+ if (h5Url.startsWith('/')) {
298
306
  window.location.href = "" + window.magicDesign.navigatePreUrl + url;
307
+ } else {
308
+ window.location.href = h5Url;
299
309
  }
300
- } else {
301
- window.location.href = url;
302
310
  }
303
311
  };
304
312
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "2.0.72",
4
+ "version": "2.0.74",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",