@fonixtree/magic-design 1.0.126 → 1.0.128

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 (57) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +7 -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/composite-comp/dito/components/CommonFunctions/defaultJSON.js +2 -2
  7. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +8 -0
  8. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +3 -0
  9. package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +58 -4
  10. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +137 -7
  11. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +95 -8
  12. package/es/composite-comp/dito/config-panels/{OrdersConfig/ConfigGroup → PersonalInformationConfig/OrdersConfigGroup}/index.js +2 -2
  13. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +14 -4
  14. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +64 -1
  15. package/es/constants/component-types.js +3 -9
  16. package/es/constants/index.js +0 -4
  17. package/es/core/Designer/ConfigPanel/index.js +18 -1
  18. package/es/decorator/compositeDecorator.js +1 -1
  19. package/es/decorator/metaDecorator.js +1 -2
  20. package/es/mobx/Store.js +12 -0
  21. package/lib/assets/fonts/magic-box-iconfont.css +7 -3
  22. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  23. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  24. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  25. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  26. package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +2 -2
  27. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +8 -0
  28. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +3 -0
  29. package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +58 -4
  30. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +137 -7
  31. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +95 -8
  32. package/lib/composite-comp/dito/config-panels/{OrdersConfig/ConfigGroup → PersonalInformationConfig/OrdersConfigGroup}/index.js +2 -2
  33. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +14 -4
  34. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +64 -1
  35. package/lib/constants/component-types.js +3 -9
  36. package/lib/constants/index.js +0 -4
  37. package/lib/core/Designer/ConfigPanel/index.js +18 -1
  38. package/lib/decorator/compositeDecorator.js +1 -1
  39. package/lib/decorator/metaDecorator.js +1 -2
  40. package/lib/mobx/Store.js +12 -0
  41. package/package.json +1 -1
  42. package/es/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
  43. package/es/composite-comp/dito/components/Orders/index.js +0 -84
  44. package/es/composite-comp/dito/components/Orders/mobile/index.js +0 -352
  45. package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -86
  46. package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
  47. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
  48. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  49. package/lib/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
  50. package/lib/composite-comp/dito/components/Orders/index.js +0 -84
  51. package/lib/composite-comp/dito/components/Orders/mobile/index.js +0 -352
  52. package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -86
  53. package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
  54. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
  55. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  56. /package/es/composite-comp/dito/config-panels/PersonalInformationConfig/{ConfigGroup → PersonInfoConfigGroup}/index.js +0 -0
  57. /package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/{ConfigGroup → PersonInfoConfigGroup}/index.js +0 -0
@@ -55,8 +55,6 @@ var _HeadNavigation = _interopRequireDefault(require("../composite-comp/dito/com
55
55
 
56
56
  var _PersonalInformation = _interopRequireDefault(require("../composite-comp/dito/components/PersonalInformation"));
57
57
 
58
- var _Orders = _interopRequireDefault(require("../composite-comp/dito/components/Orders"));
59
-
60
58
  var _CommonFunctions = _interopRequireDefault(require("../composite-comp/dito/components/CommonFunctions"));
61
59
 
62
60
  var _Bargain = _interopRequireDefault(require("../composite-comp/dito/components/Bargain"));
@@ -113,8 +111,6 @@ var _HeadNavigationConfig = _interopRequireDefault(require("../composite-comp/di
113
111
 
114
112
  var _PersonalInformationConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/PersonalInformationConfig"));
115
113
 
116
- var _OrdersConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/OrdersConfig"));
117
-
118
114
  var _CommonFunctionsConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/CommonFunctionsConfig"));
119
115
 
120
116
  var _BargainConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/BargainConfig"));
@@ -155,8 +151,6 @@ var _HeadNavigationSecondConfig = _interopRequireDefault(require("../composite-c
155
151
 
156
152
  var _PersonalInformationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/PersonalInformationSecondConfig"));
157
153
 
158
- var _OrdersSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/OrdersSecondConfig"));
159
-
160
154
  var _CommonFunctionsSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig"));
161
155
 
162
156
  var _SearchBannerSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/SearchBannerSecondConfig"));
@@ -169,17 +163,17 @@ var _a, _b, _c; // 组件
169
163
  /**
170
164
  * 渲染组件索引
171
165
  */
172
- var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_Orders["default"].type] = _Orders["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a[_Bargain["default"].type] = _Bargain["default"], _a[_SearchBanner["default"].type] = _SearchBanner["default"], _a);
166
+ var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a[_Bargain["default"].type] = _Bargain["default"], _a[_SearchBanner["default"].type] = _SearchBanner["default"], _a);
173
167
  /**
174
168
  * 一级配置面板索引
175
169
  */
176
170
 
177
171
  exports.componentMap = componentMap;
178
- var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_Orders["default"].type] = _OrdersConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b[_Bargain["default"].type] = _BargainConfig["default"], _b[_SearchBanner["default"].type] = _SearchBannerConfig["default"], _b);
172
+ var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b[_Bargain["default"].type] = _BargainConfig["default"], _b[_SearchBanner["default"].type] = _SearchBannerConfig["default"], _b);
179
173
  /**
180
174
  * 二级配置面板索引
181
175
  */
182
176
 
183
177
  exports.configPanelMap = configPanelMap;
184
- var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_PersonalInformation["default"].type] = _PersonalInformationSecondConfig["default"], _c[_Orders["default"].type] = _OrdersSecondConfig["default"], _c[_CommonFunctions["default"].type] = _CommonFunctionsSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c[_SearchBanner["default"].type] = _SearchBannerSecondConfig["default"], _c);
178
+ var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_PersonalInformation["default"].type] = _PersonalInformationSecondConfig["default"], _c[_CommonFunctions["default"].type] = _CommonFunctionsSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c[_SearchBanner["default"].type] = _SearchBannerSecondConfig["default"], _c);
185
179
  exports.secondConfigPanelMap = secondConfigPanelMap;
@@ -224,10 +224,6 @@ var compInfoMap = {
224
224
  name: 'Personal Information',
225
225
  icon: 'icon-account'
226
226
  },
227
- ORDERS: {
228
- name: 'Orders',
229
- icon: 'icon-orders'
230
- },
231
227
  COMMON_FUNCTIONS: {
232
228
  name: 'Common Functions',
233
229
  icon: 'icon-function'
@@ -66,6 +66,7 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
66
66
  return;
67
67
  }
68
68
 
69
+ console.log('....', selectedNode, _mobx.store.clickedGroup);
69
70
  var panelProps = selectedNode.groupSource.find(function (src) {
70
71
  return src.id === clickedGroup;
71
72
  });
@@ -73,6 +74,15 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
73
74
  return src.id === clickedGroup;
74
75
  });
75
76
 
77
+ if (!panelProps) {
78
+ panelProps = selectedNode.groupSource2.find(function (src) {
79
+ return src.id === clickedGroup;
80
+ });
81
+ panelIndex = selectedNode.groupSource2.findIndex(function (src) {
82
+ return src.id === clickedGroup;
83
+ });
84
+ }
85
+
76
86
  if (!panelProps) {
77
87
  return;
78
88
  }
@@ -133,7 +143,6 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
133
143
  break;
134
144
 
135
145
  case 'PERSONAL_INFOMATION':
136
- case 'ORDERS':
137
146
  groupName = panelProps.sourceType;
138
147
  break;
139
148
  }
@@ -291,6 +300,14 @@ function (_super) {
291
300
  });
292
301
  }, null);
293
302
 
303
+ if (!panelProps) {
304
+ panelProps = (0, _commonUtil.ensure)(function () {
305
+ return selectedNode === null || selectedNode === void 0 ? void 0 : selectedNode.groupSource2.find(function (src) {
306
+ return src.id === _this.state.clickedGroup;
307
+ });
308
+ }, null);
309
+ }
310
+
294
311
  if (panelProps) {
295
312
  var instance = Clazz ? /*#__PURE__*/_react["default"].createElement(Clazz, {
296
313
  panelProps: panelProps,
@@ -144,7 +144,7 @@ function compositeDecorator(WrappedComponent) {
144
144
  var zIndex = '0';
145
145
  var position = 'relative';
146
146
 
147
- if (nodeData.type === 'CAROUSEL' || nodeData.type === 'IMAGE_GALLERY' || nodeData.type === 'ORDERS') {
147
+ if (nodeData.type === 'CAROUSEL' || nodeData.type === 'IMAGE_GALLERY') {
148
148
  zIndex = '1';
149
149
  } // 解决pc导航hover上去,类目被下面组件遮罩的问题
150
150
 
@@ -220,8 +220,7 @@ function metaDecorator(WrappedComponent) {
220
220
  className = _a.className,
221
221
  rest = __rest(_a, ["className"]);
222
222
 
223
- var hoverStyle = this.getInteractStyle(); // console.log(rest);
224
-
223
+ var hoverStyle = this.getInteractStyle();
225
224
  return /*#__PURE__*/_react["default"].createElement("div", {
226
225
  className: className,
227
226
  style: this.getStyle()
package/es/mobx/Store.js CHANGED
@@ -81,6 +81,18 @@ function () {
81
81
  });
82
82
  return !!group;
83
83
  });
84
+
85
+ if (!componentFloor) {
86
+ componentFloor = this.MPageData.find(function (floor) {
87
+ var _a;
88
+
89
+ var group = (_a = floor.groupSource2) === null || _a === void 0 ? void 0 : _a.find(function (grp) {
90
+ return grp.id === id;
91
+ });
92
+ return !!group;
93
+ });
94
+ }
95
+
84
96
  return componentFloor === null || componentFloor === void 0 ? void 0 : componentFloor.id;
85
97
  };
86
98
  /**
@@ -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=1732721916699') format('woff2'),
5
- url('magic-box-iconfont.woff?t=1732721916699') format('woff'),
6
- url('magic-box-iconfont.ttf?t=1732721916699') format('truetype');
4
+ src: url('magic-box-iconfont.woff2?t=1735528110181') format('woff2'),
5
+ url('magic-box-iconfont.woff?t=1735528110181') format('woff'),
6
+ url('magic-box-iconfont.ttf?t=1735528110181') format('truetype');
7
7
  }
8
8
 
9
9
  .magic-box-iconfont {
@@ -14,6 +14,10 @@
14
14
  -moz-osx-font-smoothing: grayscale;
15
15
  }
16
16
 
17
+ .magic-box-icon-settings:before {
18
+ content: "\e659";
19
+ }
20
+
17
21
  .magic-box-icon-chatbot:before {
18
22
  content: "\e657";
19
23
  }