@fonixtree/magic-design 2.0.93 → 2.0.95

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 (119) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +11 -3
  2. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  3. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  4. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  5. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  6. package/es/common/index.js +8 -0
  7. package/es/composite-comp/bol/components/Banner/mobile/index.js +4 -2
  8. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-cashback.svg +9 -0
  9. package/es/composite-comp/common/components/AffiliateProductItem/index.js +25 -14
  10. package/es/composite-comp/common/components/AffiliateProductItem/index.less +31 -1
  11. package/es/composite-comp/common/components/ProductItem/index.js +36 -22
  12. package/es/composite-comp/common/components/ProductItem/index.less +9 -0
  13. package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +1 -1
  14. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -1
  15. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -3
  16. package/es/composite-comp/dito/components/GroupBuy/defaultJSON.js +232 -0
  17. package/es/composite-comp/dito/components/GroupBuy/index.js +86 -0
  18. package/es/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg.png +0 -0
  19. package/es/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg1.png +0 -0
  20. package/es/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg2.png +0 -0
  21. package/es/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg3.png +0 -0
  22. package/es/composite-comp/dito/components/GroupBuy/mobile/index.js +341 -0
  23. package/es/composite-comp/dito/components/GroupBuy/mobile/index.less +87 -0
  24. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +11 -0
  25. package/es/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
  26. package/es/composite-comp/dito/components/Recommend/mobile/index.js +4 -2
  27. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +4 -0
  28. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +13 -1
  29. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
  30. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +5 -3
  31. package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +174 -0
  32. package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.less +38 -0
  33. package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigTitle/index.js +103 -0
  34. package/es/composite-comp/dito/config-panels/GroupBuyConfig/imgs/layout1.png +0 -0
  35. package/es/composite-comp/dito/config-panels/GroupBuyConfig/index.js +73 -0
  36. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +7 -2
  37. package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/mobile/index.js +12 -10
  38. package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/pc/index.js +12 -10
  39. package/{lib/composite-comp/dito → es/composite-comp/nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +1 -1
  40. package/es/constants/component-types.js +9 -5
  41. package/es/constants/index.js +4 -0
  42. package/es/core/Renderer/index.js +27 -10
  43. package/es/decorator/metaDecorator.js +6 -2
  44. package/es/locale/en/en.json +5 -1
  45. package/es/locale/es/es.json +4 -0
  46. package/es/locale/id/id.json +5 -1
  47. package/es/utils/commonUtil.js +16 -0
  48. package/lib/assets/fonts/magic-box-iconfont.css +11 -3
  49. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  50. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  51. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  52. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  53. package/lib/common/index.js +8 -0
  54. package/lib/composite-comp/bol/components/Banner/mobile/index.js +4 -2
  55. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-cashback.svg +9 -0
  56. package/lib/composite-comp/common/components/AffiliateProductItem/index.js +25 -14
  57. package/lib/composite-comp/common/components/AffiliateProductItem/index.less +31 -1
  58. package/lib/composite-comp/common/components/ProductItem/index.js +36 -22
  59. package/lib/composite-comp/common/components/ProductItem/index.less +9 -0
  60. package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +1 -1
  61. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -1
  62. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -3
  63. package/lib/composite-comp/dito/components/GroupBuy/defaultJSON.js +232 -0
  64. package/lib/composite-comp/dito/components/GroupBuy/index.js +86 -0
  65. package/lib/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg.png +0 -0
  66. package/lib/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg1.png +0 -0
  67. package/lib/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg2.png +0 -0
  68. package/lib/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg3.png +0 -0
  69. package/lib/composite-comp/dito/components/GroupBuy/mobile/index.js +341 -0
  70. package/lib/composite-comp/dito/components/GroupBuy/mobile/index.less +87 -0
  71. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +11 -0
  72. package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
  73. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +4 -2
  74. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +4 -0
  75. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +13 -1
  76. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
  77. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +5 -3
  78. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +174 -0
  79. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.less +38 -0
  80. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigTitle/index.js +103 -0
  81. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/imgs/layout1.png +0 -0
  82. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/index.js +73 -0
  83. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +7 -2
  84. package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/mobile/index.js +12 -10
  85. package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/pc/index.js +12 -10
  86. package/{es/composite-comp/dito → lib/composite-comp/nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +1 -1
  87. package/lib/constants/component-types.js +9 -5
  88. package/lib/constants/index.js +4 -0
  89. package/lib/core/Renderer/index.js +27 -10
  90. package/lib/decorator/metaDecorator.js +6 -2
  91. package/lib/locale/en/en.json +5 -1
  92. package/lib/locale/es/es.json +4 -0
  93. package/lib/locale/id/id.json +5 -1
  94. package/lib/utils/commonUtil.js +16 -0
  95. package/package.json +1 -1
  96. /package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/defaultJSON.js +0 -0
  97. /package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/index.js +0 -0
  98. /package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/mobile/index.less +0 -0
  99. /package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/pc/index.less +0 -0
  100. /package/es/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -0
  101. /package/es/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  102. /package/es/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -0
  103. /package/es/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  104. /package/es/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/index.js +0 -0
  105. /package/es/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -0
  106. /package/es/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -0
  107. /package/es/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -0
  108. /package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/defaultJSON.js +0 -0
  109. /package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/index.js +0 -0
  110. /package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/mobile/index.less +0 -0
  111. /package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/pc/index.less +0 -0
  112. /package/lib/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -0
  113. /package/lib/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  114. /package/lib/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -0
  115. /package/lib/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  116. /package/lib/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/index.js +0 -0
  117. /package/lib/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -0
  118. /package/lib/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -0
  119. /package/lib/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -0
@@ -88,19 +88,36 @@ var Renderer = function Renderer(props) {
88
88
  var filterData = [];
89
89
 
90
90
  if (pageData && pageData.childNodes && pageData.childNodes.length) {
91
+ var graduallySetFloors = function graduallySetFloors(data, step, interval, start) {
92
+ if (step === void 0) {
93
+ step = 5;
94
+ }
95
+
96
+ if (interval === void 0) {
97
+ interval = 200;
98
+ }
99
+
100
+ if (start === void 0) {
101
+ start = 0;
102
+ } // 计算这一步应该显示的最终索引
103
+
104
+
105
+ var end = Math.min(start + step, data.length); // 更新楼层数量
106
+
107
+ setFloors(data.slice(0, end)); // 如果还有更多楼层要显示,设置一个定时器来递归调用此函数
108
+
109
+ if (end < data.length) {
110
+ setTimeout(function () {
111
+ graduallySetFloors(data, step, interval, end);
112
+ }, interval);
113
+ }
114
+ };
115
+
91
116
  filterData = pageData.childNodes.filter(function (node) {
92
117
  return (0, _coreUtil.isActiveFloor)(node.activeTerminal);
93
118
  });
94
- } // 首页组建分批渲染按5个一组
95
-
96
-
97
- setFloors(filterData.slice(0, 5));
98
- setTimeout(function () {
99
- setFloors(filterData.slice(0, 10));
100
- setTimeout(function () {
101
- setFloors(filterData);
102
- }, 200);
103
- }, 200);
119
+ graduallySetFloors(filterData);
120
+ }
104
121
  }, [pageData]);
105
122
  (0, _react.useEffect)(function () {
106
123
  setTimeout(function () {
@@ -93,10 +93,14 @@ function metaDecorator(WrappedComponent) {
93
93
  var _c = _this.props,
94
94
  data = _c.data,
95
95
  GAData = _c.GAData;
96
- (0, _commonUtil.pushGA)(__assign(__assign({}, GAData), {
96
+
97
+ var eventData = __assign(__assign({}, GAData), {
97
98
  elementId: data.id,
98
99
  elementName: data.text || (GAData === null || GAData === void 0 ? void 0 : GAData.groupName)
99
- }));
100
+ });
101
+
102
+ (0, _commonUtil.pushGA)(eventData); // triggerBuryingPointEvent(eventData);
103
+
100
104
  return;
101
105
  } // 组织冒泡
102
106
 
@@ -1,4 +1,8 @@
1
1
  {
2
+ "BOX_BACKGROUND": "Box Background",
3
+ "BOX_COLOR": "Box Color",
4
+ "PROGRESS_BAR_COLOR": "Progress Bar Color",
5
+ "GROUP_LABEL": "Group Label",
2
6
  "SUBMIT": "Submit",
3
7
  "CANCELLED": "Cancelled",
4
8
  "DONE": "Done",
@@ -88,7 +92,7 @@
88
92
  "CONTENT_WIDTH": "Content Width",
89
93
  "MAGNIFICATION": "Magnification",
90
94
  "RECOMMENDED_RULES": "Recommended Rules",
91
- "PRODUCT_SORT_BY": "product sort by",
95
+ "PRODUCT_SORT_BY": "Product Sort By",
92
96
  "PADDING": "Padding",
93
97
  "COMPONENT_SPACING": "Component spacing",
94
98
  "ALIGNMENT": "Alignment",
@@ -1,4 +1,8 @@
1
1
  {
2
+ "BOX_BACKGROUND": "Box Background",
3
+ "BOX_COLOR": "Box Color",
4
+ "PROGRESS_BAR_COLOR": "Progress Bar Color",
5
+ "GROUP_LABEL": "Group Label",
2
6
  "SUBMIT": "Submit",
3
7
  "CANCELLED": "Cancelled",
4
8
  "DONE": "Hecho",
@@ -1,4 +1,8 @@
1
1
  {
2
+ "BOX_BACKGROUND": "Box Background",
3
+ "BOX_COLOR": "Box Color",
4
+ "PROGRESS_BAR_COLOR": "Progress Bar Color",
5
+ "GROUP_LABEL": "Group Label",
2
6
  "SUBMIT": "Submit",
3
7
  "CANCELLED": "Cancelled",
4
8
  "DONE": "Done",
@@ -88,7 +92,7 @@
88
92
  "CONTENT_WIDTH": "Content Width",
89
93
  "MAGNIFICATION": "Magnification",
90
94
  "RECOMMENDED_RULES": "Recommended Rules",
91
- "PRODUCT_SORT_BY": "product sort by",
95
+ "PRODUCT_SORT_BY": "Product Sort By",
92
96
  "PADDING": "Padding",
93
97
  "COMPONENT_SPACING": "Component spacing",
94
98
  "ALIGNMENT": "Alignment",
@@ -28,6 +28,7 @@ exports.shareLinkedin = shareLinkedin;
28
28
  exports.shareTwitter = shareTwitter;
29
29
  exports.sleep = sleep;
30
30
  exports.styleStringify = void 0;
31
+ exports.triggerBuryingPointEvent = triggerBuryingPointEvent;
31
32
 
32
33
  var _axios = _interopRequireDefault(require("axios"));
33
34
 
@@ -758,6 +759,21 @@ function pushGA(data, eventName) {
758
759
  console.error(error);
759
760
  }
760
761
  }
762
+ /** 触发埋点事件
763
+ *
764
+ window.document.addEventListener('magic-design-burying-point', e => {
765
+ console.log(e.data);
766
+ });
767
+ */
768
+
769
+
770
+ function triggerBuryingPointEvent(data) {
771
+ var evt = new Event('magic-design-burying-point', {
772
+ bubbles: false
773
+ });
774
+ evt.data = data;
775
+ window.document.dispatchEvent(evt);
776
+ }
761
777
  /** react key 计算 */
762
778
 
763
779
 
@@ -1,9 +1,9 @@
1
1
  @font-face {
2
2
  font-family: "magic-box-iconfont";
3
3
  /* Project id 3317752 */
4
- src: url('magic-box-iconfont.woff2?t=1709712007938') format('woff2'),
5
- url('magic-box-iconfont.woff?t=1709712007938') format('woff'),
6
- url('magic-box-iconfont.ttf?t=1709712007938') format('truetype');
4
+ src: url('magic-box-iconfont.woff2?t=1713253836150') format('woff2'),
5
+ url('magic-box-iconfont.woff?t=1713253836150') format('woff'),
6
+ url('magic-box-iconfont.ttf?t=1713253836150') format('truetype');
7
7
  }
8
8
 
9
9
  .magic-box-iconfont {
@@ -14,6 +14,14 @@
14
14
  -moz-osx-font-smoothing: grayscale;
15
15
  }
16
16
 
17
+ .magic-box-icon-group-users:before {
18
+ content: "\e60a";
19
+ }
20
+
21
+ .magic-box-icon-group-buy:before {
22
+ content: "\e643";
23
+ }
24
+
17
25
  .magic-box-icon-orders:before {
18
26
  content: "\e64c";
19
27
  }