@fonixtree/magic-design 0.1.92 → 0.2.1

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 (249) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/assets/fonts/magic-box-iconfont.css +7 -35
  3. package/es/assets/fonts/magic-box-iconfont.css.bak +4 -8
  4. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  5. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  6. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  7. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  8. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  9. package/es/assets/less/button.less +0 -5
  10. package/es/common/AffiliateProductModal/index.js +1 -1
  11. package/es/common/AffiliateProductModal/index.less +1 -1
  12. package/es/common/Button/index.less +1 -0
  13. package/es/common/CountDown/index.js +11 -20
  14. package/es/common/GroupList/index.js +2 -7
  15. package/es/common/LinkModal/BundleCampaign/index.js +2 -2
  16. package/es/common/LinkModal/CouponTable/index.js +1 -1
  17. package/es/common/LinkModal/CustomTable/index.js +0 -1
  18. package/es/common/LinkModal/FilteredProductModal/index.js +106 -82
  19. package/es/common/LinkModal/FilteredProductModal/index.less +0 -1
  20. package/es/common/LinkModal/ProductDetailPage/index.js +60 -115
  21. package/es/common/LinkModal/ProductDetailPage/index.less +1 -6
  22. package/es/common/LinkModal/SelectVideoModal/index.js +2 -3
  23. package/es/common/LinkModal/index.js +5 -20
  24. package/es/common/MagicLink/index.js +2 -2
  25. package/es/common/ProductModal/index.js +124 -181
  26. package/es/common/ProductModal/index.less +1 -7
  27. package/es/common/ProductSource/index.js +21 -81
  28. package/es/common/UrlPicker/index.js +10 -51
  29. package/es/common/Video/index.js +86 -142
  30. package/es/common/VideoUpload/index.js +1 -1
  31. package/es/common/index.js +0 -8
  32. package/es/composite-comp/bol/components/Banner/mobile/index.js +2 -4
  33. package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +1 -3
  34. package/es/composite-comp/common/components/AffiliateProductItem/index.js +20 -22
  35. package/es/composite-comp/common/components/AffiliateProductItem/index.less +1 -31
  36. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
  37. package/{lib/composite-comp/nuri → es/composite-comp/dito}/components/AffiliateRecommend/mobile/index.js +10 -12
  38. package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/pc/index.js +10 -12
  39. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +1 -8
  40. package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +17 -22
  41. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +2 -2
  42. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +0 -11
  43. package/es/composite-comp/dito/components/Recommend/mobile/index.js +26 -31
  44. package/es/composite-comp/dito/components/Recommend/pc/index.js +1 -1
  45. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +1 -13
  46. package/{lib/composite-comp/nuri → es/composite-comp/dito}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +1 -1
  47. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +27 -25
  48. package/es/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +20 -0
  49. package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +1 -1
  50. package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +1 -1
  51. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +2 -4
  52. package/es/constants/component-types.js +6 -24
  53. package/es/constants/index.js +5 -52
  54. package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +16 -34
  55. package/es/core/Designer/ChatRobot/index.js +4 -49
  56. package/es/core/Designer/ConfigPanel/index.js +0 -6
  57. package/es/core/Designer/FonixtreeGpt/index.js +29 -222
  58. package/es/core/Designer/PageCompList/index.js +1 -1
  59. package/es/core/Designer/QuickMenuBar/index.js +2 -6
  60. package/es/core/Designer/ToolBarModal/index.js +1 -5
  61. package/es/core/Designer/index.js +1 -12
  62. package/es/core/Renderer/index.js +2 -6
  63. package/es/decorator/compositeDecorator.js +6 -10
  64. package/es/decorator/index.js +1 -4
  65. package/es/decorator/metaDecorator.js +3 -7
  66. package/es/locale/en/en.json +2 -20
  67. package/es/locale/es/es.json +2 -20
  68. package/es/locale/id/id.json +2 -20
  69. package/es/meta-comp/config-panels/TextConfig/index.js +1 -1
  70. package/es/mobx/index.js +3 -9
  71. package/es/utils/androidUtil.js +2 -17
  72. package/es/utils/businessUtil.js +5 -54
  73. package/es/utils/commonUtil.js +13 -151
  74. package/es/utils/coreUtil.js +24 -89
  75. package/lib/assets/fonts/.DS_Store +0 -0
  76. package/lib/assets/fonts/magic-box-iconfont.css +7 -35
  77. package/lib/assets/fonts/magic-box-iconfont.css.bak +4 -8
  78. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  79. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  80. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  81. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  82. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  83. package/lib/assets/less/button.less +0 -5
  84. package/lib/common/AffiliateProductModal/index.js +1 -1
  85. package/lib/common/AffiliateProductModal/index.less +1 -1
  86. package/lib/common/Button/index.less +1 -0
  87. package/lib/common/CountDown/index.js +11 -20
  88. package/lib/common/GroupList/index.js +2 -7
  89. package/lib/common/LinkModal/BundleCampaign/index.js +2 -2
  90. package/lib/common/LinkModal/CouponTable/index.js +1 -1
  91. package/lib/common/LinkModal/CustomTable/index.js +0 -1
  92. package/lib/common/LinkModal/FilteredProductModal/index.js +106 -82
  93. package/lib/common/LinkModal/FilteredProductModal/index.less +0 -1
  94. package/lib/common/LinkModal/ProductDetailPage/index.js +60 -115
  95. package/lib/common/LinkModal/ProductDetailPage/index.less +1 -6
  96. package/lib/common/LinkModal/SelectVideoModal/index.js +2 -3
  97. package/lib/common/LinkModal/index.js +5 -20
  98. package/lib/common/MagicLink/index.js +2 -2
  99. package/lib/common/ProductModal/index.js +124 -181
  100. package/lib/common/ProductModal/index.less +1 -7
  101. package/lib/common/ProductSource/index.js +21 -81
  102. package/lib/common/UrlPicker/index.js +10 -51
  103. package/lib/common/Video/index.js +86 -142
  104. package/lib/common/VideoUpload/index.js +1 -1
  105. package/lib/common/index.js +0 -8
  106. package/lib/composite-comp/bol/components/Banner/mobile/index.js +2 -4
  107. package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +1 -3
  108. package/lib/composite-comp/common/components/AffiliateProductItem/index.js +20 -22
  109. package/lib/composite-comp/common/components/AffiliateProductItem/index.less +1 -31
  110. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
  111. package/{es/composite-comp/nuri → lib/composite-comp/dito}/components/AffiliateRecommend/mobile/index.js +10 -12
  112. package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/pc/index.js +10 -12
  113. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +1 -8
  114. package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +17 -22
  115. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +2 -2
  116. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +0 -11
  117. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +26 -31
  118. package/lib/composite-comp/dito/components/Recommend/pc/index.js +1 -1
  119. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -13
  120. package/{es/composite-comp/nuri → lib/composite-comp/dito}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +1 -1
  121. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +27 -25
  122. package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +20 -0
  123. package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +1 -1
  124. package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +1 -1
  125. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +2 -4
  126. package/lib/constants/component-types.js +6 -24
  127. package/lib/constants/index.js +5 -52
  128. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +16 -34
  129. package/lib/core/Designer/ChatRobot/index.js +4 -49
  130. package/lib/core/Designer/ConfigPanel/index.js +0 -6
  131. package/lib/core/Designer/FonixtreeGpt/index.js +29 -222
  132. package/lib/core/Designer/PageCompList/index.js +1 -1
  133. package/lib/core/Designer/QuickMenuBar/index.js +2 -6
  134. package/lib/core/Designer/ToolBarModal/index.js +1 -5
  135. package/lib/core/Designer/index.js +1 -12
  136. package/lib/core/Renderer/index.js +2 -6
  137. package/lib/decorator/compositeDecorator.js +6 -10
  138. package/lib/decorator/index.js +1 -4
  139. package/lib/decorator/metaDecorator.js +3 -7
  140. package/lib/locale/en/en.json +2 -20
  141. package/lib/locale/es/es.json +2 -20
  142. package/lib/locale/id/id.json +2 -20
  143. package/lib/meta-comp/config-panels/TextConfig/index.js +1 -1
  144. package/lib/mobx/index.js +3 -9
  145. package/lib/utils/androidUtil.js +2 -17
  146. package/lib/utils/businessUtil.js +5 -54
  147. package/lib/utils/commonUtil.js +13 -151
  148. package/lib/utils/coreUtil.js +24 -89
  149. package/package.json +1 -2
  150. package/es/common/CropperModal/index.js +0 -126
  151. package/es/common/CropperModal/index.less +0 -29
  152. package/es/common/LinkModal/AffiliatePlatform/index.js +0 -326
  153. package/es/common/LinkModal/AffiliateStore/index.js +0 -332
  154. package/es/common/ProductModal/SortableImageList/index.js +0 -118
  155. package/es/common/ProductModal/SortableImageList/index.less +0 -3
  156. package/es/common/UrlPicker/AnchorModal/index.js +0 -170
  157. package/es/common/UrlPicker/AnchorModal/index.less +0 -21
  158. package/es/common/Video/QualityComponent/index.js +0 -169
  159. package/es/common/Video/QualityComponent/index.less +0 -78
  160. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-cashback.svg +0 -9
  161. package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
  162. package/es/composite-comp/dito/components/CommonFunctions/index.js +0 -84
  163. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -113
  164. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
  165. package/es/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
  166. package/es/composite-comp/dito/components/Orders/index.js +0 -84
  167. package/es/composite-comp/dito/components/Orders/mobile/index.js +0 -350
  168. package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -86
  169. package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
  170. package/es/composite-comp/dito/components/PersonalInformation/index.js +0 -84
  171. package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  172. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -592
  173. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -135
  174. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
  175. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
  176. package/es/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
  177. package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
  178. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
  179. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
  180. package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -121
  181. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
  182. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  183. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
  184. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
  185. package/es/mobx/UserState.js +0 -144
  186. package/lib/common/CropperModal/index.js +0 -126
  187. package/lib/common/CropperModal/index.less +0 -29
  188. package/lib/common/LinkModal/AffiliatePlatform/index.js +0 -326
  189. package/lib/common/LinkModal/AffiliateStore/index.js +0 -332
  190. package/lib/common/ProductModal/SortableImageList/index.js +0 -118
  191. package/lib/common/ProductModal/SortableImageList/index.less +0 -3
  192. package/lib/common/UrlPicker/AnchorModal/index.js +0 -170
  193. package/lib/common/UrlPicker/AnchorModal/index.less +0 -21
  194. package/lib/common/Video/QualityComponent/index.js +0 -169
  195. package/lib/common/Video/QualityComponent/index.less +0 -78
  196. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-cashback.svg +0 -9
  197. package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
  198. package/lib/composite-comp/dito/components/CommonFunctions/index.js +0 -84
  199. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -113
  200. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
  201. package/lib/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
  202. package/lib/composite-comp/dito/components/Orders/index.js +0 -84
  203. package/lib/composite-comp/dito/components/Orders/mobile/index.js +0 -350
  204. package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -86
  205. package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
  206. package/lib/composite-comp/dito/components/PersonalInformation/index.js +0 -84
  207. package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  208. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -592
  209. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -135
  210. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
  211. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
  212. package/lib/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
  213. package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
  214. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
  215. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
  216. package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -121
  217. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
  218. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  219. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
  220. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
  221. package/lib/mobx/UserState.js +0 -144
  222. /package/es/common/Video/{RateComponent → components}/index.js +0 -0
  223. /package/es/common/Video/{RateComponent → components}/index.less +0 -0
  224. /package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/defaultJSON.js +0 -0
  225. /package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/index.js +0 -0
  226. /package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/mobile/index.less +0 -0
  227. /package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/pc/index.less +0 -0
  228. /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -0
  229. /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  230. /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -0
  231. /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  232. /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/index.js +0 -0
  233. /package/es/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -0
  234. /package/es/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -0
  235. /package/es/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -0
  236. /package/lib/common/Video/{RateComponent → components}/index.js +0 -0
  237. /package/lib/common/Video/{RateComponent → components}/index.less +0 -0
  238. /package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/defaultJSON.js +0 -0
  239. /package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/index.js +0 -0
  240. /package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/mobile/index.less +0 -0
  241. /package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/pc/index.less +0 -0
  242. /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -0
  243. /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  244. /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -0
  245. /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  246. /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/index.js +0 -0
  247. /package/lib/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -0
  248. /package/lib/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -0
  249. /package/lib/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -0
@@ -41,7 +41,7 @@ var _SignBoard = _interopRequireDefault(require("../composite-comp/dito/componen
41
41
 
42
42
  var _Recommend = _interopRequireDefault(require("../composite-comp/dito/components/Recommend"));
43
43
 
44
- var _AffiliateRecommend = _interopRequireDefault(require("../composite-comp/nuri/components/AffiliateRecommend"));
44
+ var _AffiliateRecommend = _interopRequireDefault(require("../composite-comp/dito/components/AffiliateRecommend"));
45
45
 
46
46
  var _MobileNavigation = _interopRequireDefault(require("../composite-comp/dito/components/MobileNavigation"));
47
47
 
@@ -51,12 +51,6 @@ var _MenuNavigation = _interopRequireDefault(require("../composite-comp/dito/com
51
51
 
52
52
  var _HeadNavigation = _interopRequireDefault(require("../composite-comp/dito/components/HeadNavigation"));
53
53
 
54
- var _PersonalInformation = _interopRequireDefault(require("../composite-comp/dito/components/PersonalInformation"));
55
-
56
- var _Orders = _interopRequireDefault(require("../composite-comp/dito/components/Orders"));
57
-
58
- var _CommonFunctions = _interopRequireDefault(require("../composite-comp/dito/components/CommonFunctions"));
59
-
60
54
  var _BannerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/BannerConfig"));
61
55
 
62
56
  var _DividerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/DividerConfig"));
@@ -93,7 +87,7 @@ var _SignBoardConfig = _interopRequireDefault(require("../composite-comp/dito/co
93
87
 
94
88
  var _RecommendConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/RecommendConfig"));
95
89
 
96
- var _AffiliateRecommendConfig = _interopRequireDefault(require("../composite-comp/nuri/config-panels/AffiliateRecommendConfig"));
90
+ var _AffiliateRecommendConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/AffiliateRecommendConfig"));
97
91
 
98
92
  var _MobileNavigationConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/MobileNavigationConfig"));
99
93
 
@@ -103,12 +97,6 @@ var _MenuNavigationConfig = _interopRequireDefault(require("../composite-comp/di
103
97
 
104
98
  var _HeadNavigationConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/HeadNavigationConfig"));
105
99
 
106
- var _PersonalInformationConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/PersonalInformationConfig"));
107
-
108
- var _OrdersConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/OrdersConfig"));
109
-
110
- var _CommonFunctionsConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/CommonFunctionsConfig"));
111
-
112
100
  var _BannerSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/BannerSecondConfig"));
113
101
 
114
102
  var _TextSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/TextSecondConfig"));
@@ -131,7 +119,7 @@ var _WalletNuriSecondConfig = _interopRequireDefault(require("../composite-comp/
131
119
 
132
120
  var _RecommendSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/RecommendSecondConfig"));
133
121
 
134
- var _AffiliateRecommendSecondConfig = _interopRequireDefault(require("../composite-comp/nuri/second-config-panels/AffiliateRecommendSecondConfig"));
122
+ var _AffiliateRecommendSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig"));
135
123
 
136
124
  var _MobileNavigationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/MobileNavigationSecondConfig"));
137
125
 
@@ -141,12 +129,6 @@ var _MenuNavigationSecondConfig = _interopRequireDefault(require("../composite-c
141
129
 
142
130
  var _HeadNavigationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/HeadNavigationSecondConfig"));
143
131
 
144
- var _PersonalInformationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/PersonalInformationSecondConfig"));
145
-
146
- var _OrdersSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/OrdersSecondConfig"));
147
-
148
- var _CommonFunctionsSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig"));
149
-
150
132
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
151
133
 
152
134
  var _a, _b, _c; // 组件
@@ -155,17 +137,17 @@ var _a, _b, _c; // 组件
155
137
  /**
156
138
  * 渲染组件索引
157
139
  */
158
- 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[_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);
140
+ 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[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["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);
159
141
  /**
160
142
  * 一级配置面板索引
161
143
  */
162
144
 
163
145
  exports.componentMap = componentMap;
164
- 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[_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);
146
+ 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[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["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);
165
147
  /**
166
148
  * 二级配置面板索引
167
149
  */
168
150
 
169
151
  exports.configPanelMap = configPanelMap;
170
- 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);
152
+ 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[_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);
171
153
  exports.secondConfigPanelMap = secondConfigPanelMap;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.walletType = exports.urlTypeMap = exports.urlType = exports.tempTypeMap = exports.respCodeMap = exports.quickMenuCode = exports.personalInfoType = exports.partyTypeMap = exports.orderStatusType = exports.metaType = exports.metaInst = exports.metaInsType = exports.magicMode = exports.eventType = exports.deviceTypeWidthMap = exports.deviceTypeMap = exports.compInfoMap = exports.STORE_KEY = exports.STORAGE_KEY = exports.CREDIT_STATE = void 0;
6
+ exports.walletType = exports.urlTypeMap = exports.urlType = exports.respCodeMap = exports.quickMenuCode = exports.partyTypeMap = exports.metaType = exports.metaInst = exports.metaInsType = exports.magicMode = exports.eventType = exports.deviceTypeWidthMap = exports.deviceTypeMap = exports.compInfoMap = exports.STORAGE_KEY = exports.CREDIT_STATE = void 0;
7
7
  var STORAGE_KEY = {
8
8
  LOCALE: 'magicLocale',
9
9
  MAGIC_RENDER_HTML: 'MAGIC_RENDER_HTML',
@@ -45,21 +45,6 @@ var walletType = {
45
45
  CENDUIT: 'CenDuit'
46
46
  };
47
47
  exports.walletType = walletType;
48
- var orderStatusType = {
49
- PAY: 'To Pay',
50
- SHIP: 'To Ship',
51
- RECEIVE: 'To Receive',
52
- DONE: 'Done',
53
- CANCELLED: 'Cancelled'
54
- };
55
- exports.orderStatusType = orderStatusType;
56
- var personalInfoType = {
57
- WISHLIST: 'Wishlist',
58
- STORES: 'Stores',
59
- VOUCHERS: 'Vouchers',
60
- VIEWED: 'Recently Viewed'
61
- };
62
- exports.personalInfoType = personalInfoType;
63
48
  var urlType = {
64
49
  PRODUCT_DETAIL: 'proDetail',
65
50
  CATG_PROD_LIST: 'catg',
@@ -83,11 +68,7 @@ var urlTypeMap = {
83
68
  SHARE_URL: 'ShareURL',
84
69
  MINI_APP: 'MiniApp',
85
70
  STORE: 'Store',
86
- AFFILIATE_PRODUCT: 'AffiliateProduct',
87
- AFFILIATE_STORE: 'AffiliateStore',
88
- ANCHOR: 'Anchor',
89
- MINI_API: 'MiniApi',
90
- AFFILIATE_PLATFORM: 'AffiliatePlatform'
71
+ AFFILIATE_PRODUCT: 'AffiliateProduct'
91
72
  };
92
73
  exports.urlTypeMap = urlTypeMap;
93
74
  var respCodeMap = {
@@ -117,9 +98,7 @@ var quickMenuCode = {
117
98
  PUBLISH: 'PUBLISH',
118
99
  PUBLISH_LATER: 'PUBLISH_LATER',
119
100
  MODE_PC: 'MODE_PC',
120
- MODE_PHONE: 'MODE_PHONE',
121
- PUSH: 'PUSH',
122
- SET_AS_TEMPLATE: 'SET_AS_TEMPLATE'
101
+ MODE_PHONE: 'MODE_PHONE'
123
102
  };
124
103
  exports.quickMenuCode = quickMenuCode;
125
104
  var compInfoMap = {
@@ -201,7 +180,7 @@ var compInfoMap = {
201
180
  },
202
181
  WALLET: {
203
182
  name: 'Wallet',
204
- icon: 'icon-cards_fill'
183
+ icon: 'icon-image-gallery'
205
184
  },
206
185
  WALLET_NURI: {
207
186
  name: 'Wallet',
@@ -214,18 +193,6 @@ var compInfoMap = {
214
193
  MENU_NAVIGATION: {
215
194
  name: 'Menu Navigation',
216
195
  icon: 'icon-footer'
217
- },
218
- PERSONAL_INFOMATION: {
219
- name: 'Personal Information',
220
- icon: 'icon-account'
221
- },
222
- ORDERS: {
223
- name: 'Orders',
224
- icon: 'icon-orders'
225
- },
226
- COMMON_FUNCTIONS: {
227
- name: 'Common Functions',
228
- icon: 'icon-function'
229
196
  }
230
197
  };
231
198
  /**
@@ -295,18 +262,4 @@ var partyTypeMap = {
295
262
  'operation/v1': 'P',
296
263
  'trade/v1': 'S'
297
264
  };
298
- /** 模版类型 */
299
-
300
- exports.partyTypeMap = partyTypeMap;
301
- var tempTypeMap = {
302
- PAGE: 'Page',
303
- TEMPLATE: 'TemplateLibrary'
304
- };
305
- /** 持久化缓存 KEY */
306
-
307
- exports.tempTypeMap = tempTypeMap;
308
- var STORE_KEY = {
309
- // 是否从sf app跳转
310
- IS_FROM_SF: 'isFromSf'
311
- };
312
- exports.STORE_KEY = STORE_KEY;
265
+ exports.partyTypeMap = partyTypeMap;
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports["default"] = void 0;
8
+ exports["default"] = SearchCondition;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
@@ -23,37 +23,23 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
23
23
 
24
24
  var toneList = ['Concise', 'Formal', 'Youthful', 'Innovative', 'Enticing'];
25
25
 
26
- function SearchCondition(_a) {
27
- var onRef = _a.onRef;
26
+ function SearchCondition() {
27
+ var _a = (0, _react.useState)('Concise'),
28
+ tone = _a[0],
29
+ setTone = _a[1];
28
30
 
29
- var _b = (0, _react.useState)('Concise'),
30
- tone = _b[0],
31
- setTone = _b[1];
31
+ var _b = (0, _react.useState)('30'),
32
+ count = _b[0],
33
+ setCount = _b[1];
32
34
 
33
- var _c = (0, _react.useState)('30'),
34
- count = _c[0],
35
- setCount = _c[1];
35
+ var _c = (0, _react.useState)(''),
36
+ features = _c[0],
37
+ setFeatures = _c[1];
36
38
 
37
39
  var _d = (0, _react.useState)(''),
38
- features = _d[0],
39
- setFeatures = _d[1];
40
+ key = _d[0],
41
+ setKey = _d[1];
40
42
 
41
- var _e = (0, _react.useState)(''),
42
- keyDetail = _e[0],
43
- setKeyDetail = _e[1];
44
-
45
- (0, _react.useImperativeHandle)(onRef, function () {
46
- return {
47
- getValues: function getValues() {
48
- return {
49
- tone: tone,
50
- count: count,
51
- features: features,
52
- keyDetail: keyDetail
53
- };
54
- }
55
- };
56
- });
57
43
  return /*#__PURE__*/_react["default"].createElement("div", {
58
44
  className: "condition_wrap"
59
45
  }, /*#__PURE__*/_react["default"].createElement("div", {
@@ -117,12 +103,8 @@ function SearchCondition(_a) {
117
103
  className: "cond_value"
118
104
  }, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
119
105
  onChange: function onChange(e) {
120
- return setKeyDetail(e.target.value);
106
+ return setKey(e.target.value);
121
107
  },
122
- value: keyDetail
108
+ value: key
123
109
  }))));
124
- }
125
-
126
- var _default = /*#__PURE__*/(0, _react.forwardRef)(SearchCondition);
127
-
128
- exports["default"] = _default;
110
+ }
@@ -71,7 +71,6 @@ function (_super) {
71
71
  function ChatRobot(props) {
72
72
  var _this = _super.call(this, props) || this;
73
73
 
74
- _this.condRef = /*#__PURE__*/_react["default"].createRef();
75
74
  _this.state = {
76
75
  open: false,
77
76
  message: '',
@@ -97,57 +96,15 @@ function (_super) {
97
96
  return marked.parse(text);
98
97
  };
99
98
 
100
- _this.getMessageObj = function (msg) {
101
- var showCondition = _this.state.showCondition;
102
-
103
- if (!showCondition) {
104
- return {
105
- content: msg,
106
- showContent: msg
107
- };
108
- }
109
-
110
- var newMsg = msg;
111
-
112
- if (msg.endsWith('.')) {
113
- newMsg += '.';
114
- }
115
-
116
- var cond = _this.condRef.current.getValues();
117
-
118
- if (cond.tone) {
119
- newMsg += " The tone should be " + cond.tone + ".";
120
- }
121
-
122
- if (cond.count) {
123
- newMsg += " Within " + cond.count + " words.";
124
- }
125
-
126
- if (cond.features) {
127
- newMsg += " The description should cover key features " + cond.features + ".";
128
- }
129
-
130
- if (cond.keyDetail) {
131
- newMsg += " Emphasize " + cond.keyDetail + ".";
132
- }
133
-
134
- return {
135
- content: newMsg,
136
- showContent: msg
137
- };
138
- };
139
-
140
99
  _this.onEnter = function () {
141
100
  var message = _this.state.message;
142
101
 
143
102
  if (!message) {
144
103
  return;
145
- }
146
-
147
- var messageObj = _this.getMessageObj(message); // chat
104
+ } // chat
148
105
 
149
106
 
150
- _this.chatGpt.sendMessage(messageObj);
107
+ _this.chatGpt.sendMessage(message);
151
108
 
152
109
  var context = _this.chatGpt.getContext();
153
110
 
@@ -355,7 +312,7 @@ function (_super) {
355
312
  }, /*#__PURE__*/_react["default"].createElement("div", {
356
313
  className: "messageContentWrap",
357
314
  dangerouslySetInnerHTML: {
358
- __html: _this.getMarkText(ctxNode.showContent || ctxNode.content)
315
+ __html: _this.getMarkText(ctxNode.content)
359
316
  }
360
317
  }), ctxNode.role === 'assistant' && /*#__PURE__*/_react["default"].createElement("div", {
361
318
  className: "msgIconWrap"
@@ -386,9 +343,7 @@ function (_super) {
386
343
  className: (0, _classnames["default"])('more_condition', {
387
344
  more_condition_hide: !showCondition
388
345
  })
389
- }, /*#__PURE__*/_react["default"].createElement(_SearchCondition["default"], {
390
- onRef: this.condRef
391
- })))), /*#__PURE__*/_react["default"].createElement(_AiImageGenerator["default"], {
346
+ }, /*#__PURE__*/_react["default"].createElement(_SearchCondition["default"], null)))), /*#__PURE__*/_react["default"].createElement(_AiImageGenerator["default"], {
392
347
  onClose: function onClose() {
393
348
  return _this.setState({
394
349
  aiImageVisible: false
@@ -109,7 +109,6 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
109
109
 
110
110
  case 'TEXT':
111
111
  case 'WALLET':
112
- case 'COMMON_FUNCTIONS':
113
112
  groupName = panelProps.title.text;
114
113
  break;
115
114
 
@@ -130,11 +129,6 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
130
129
  case 'TAG':
131
130
  groupName = panelProps.button.text;
132
131
  break;
133
-
134
- case 'PERSONAL_INFOMATION':
135
- case 'ORDERS':
136
- groupName = panelProps.sourceType;
137
- break;
138
132
  }
139
133
 
140
134
  return groupName || 'Group Name';