@fonixtree/magic-design 1.0.64 → 1.0.66

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 (419) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/assets/fonts/magic-box-iconfont.css +6 -62
  3. package/es/assets/fonts/magic-box-iconfont.css.bak +3 -35
  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/images/base64/index.js +2 -36
  10. package/es/assets/less/button.less +0 -5
  11. package/es/assets/less/cylon-antd.less +1686 -7246
  12. package/es/assets/less/font.less +0 -22
  13. package/es/common/Button/index.less +1 -0
  14. package/es/common/CountDown/index.js +11 -20
  15. package/es/common/GroupList/index.js +2 -7
  16. package/es/common/ImagePicker/index.js +3 -1
  17. package/es/common/LinkModal/CouponTable/index.js +3 -3
  18. package/es/common/LinkModal/CustomTable/index.js +0 -1
  19. package/es/common/LinkModal/FunctionTable/index.js +1 -2
  20. package/es/common/LinkModal/index.js +2 -14
  21. package/es/common/MagicLink/index.js +2 -2
  22. package/es/common/ProductModal/index.js +3 -38
  23. package/es/common/ProductSource/index.js +18 -59
  24. package/es/common/UrlPicker/index.js +10 -62
  25. package/es/common/index.js +0 -24
  26. package/es/composite-comp/bol/components/Banner/mobile/index.js +2 -1
  27. package/es/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  28. package/es/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  29. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  30. package/es/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  31. package/es/composite-comp/bol/components/Video/index.js +2 -1
  32. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
  33. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
  34. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
  35. package/es/composite-comp/bol/components/Video/mobile/index.less +3 -2
  36. package/es/composite-comp/bol/components/Wallet/defaultJSON.js +88 -112
  37. package/es/composite-comp/bol/components/Wallet/index.js +15 -11
  38. package/es/composite-comp/bol/components/Wallet/mobile/index.js +64 -314
  39. package/es/composite-comp/bol/components/Wallet/mobile/index.less +40 -103
  40. package/es/composite-comp/bol/components/Wallet/pc/index.js +2 -0
  41. package/es/composite-comp/bol/components/Wallet/pc/index.less +40 -1
  42. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +6 -1
  43. package/es/composite-comp/bol/config-panels/WalletConfig/index.js +2 -11
  44. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
  45. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +82 -58
  46. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +0 -2
  47. package/es/composite-comp/common/components/ProductItem/index.js +20 -22
  48. package/es/composite-comp/common/components/ProductItem/index.less +12 -2
  49. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -13
  50. package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -3
  51. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
  52. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +6 -8
  53. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  54. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +6 -8
  55. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  56. package/es/composite-comp/dito/components/Recommend/mobile/index.js +5 -6
  57. package/es/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  58. package/es/composite-comp/dito/components/Recommend/pc/index.js +5 -6
  59. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  60. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +9 -6
  61. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +66 -62
  62. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +9 -10
  63. package/es/constants/component-types.js +3 -45
  64. package/es/constants/index.js +5 -74
  65. package/es/constants/layout.js +1 -48
  66. package/es/core/Designer/ChatRobot/index.js +17 -84
  67. package/es/core/Designer/ChatRobot/index.less +28 -69
  68. package/es/core/Designer/ConfigPanel/index.js +3 -14
  69. package/es/core/Designer/FonixtreeGpt/index.js +29 -222
  70. package/es/core/Designer/PageCompList/index.js +5 -6
  71. package/es/core/Designer/QuickMenuBar/index.js +5 -11
  72. package/es/core/Designer/QuickMenuBar/index.less +0 -4
  73. package/es/core/Designer/RenderHtml/index.js +15 -18
  74. package/es/core/Designer/RenderHtml/index.less +1 -1
  75. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +6 -19
  76. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +6 -19
  77. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +6 -19
  78. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +6 -27
  79. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +20 -4
  80. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +5 -36
  81. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +16 -17
  82. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +6 -27
  83. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +20 -4
  84. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +3 -28
  85. package/es/core/Designer/ToolBarModal/ToolBtn/index.less +1 -2
  86. package/es/core/Designer/ToolBarModal/index.js +27 -69
  87. package/es/core/Designer/ToolBarModal/index.less +2 -3
  88. package/es/core/Designer/index.js +2 -26
  89. package/es/core/Renderer/index.js +29 -74
  90. package/es/decorator/compositeDecorator.js +6 -33
  91. package/es/decorator/metaDecorator.js +1 -1
  92. package/es/locale/en/en.json +3 -17
  93. package/es/locale/es/es.json +3 -17
  94. package/es/locale/id/id.json +3 -17
  95. package/es/meta-comp/components/Image/index.js +25 -31
  96. package/es/meta-comp/components/Text/index.js +1 -4
  97. package/es/meta-comp/components/Text/index.less +0 -8
  98. package/es/meta-comp/config-panels/ImageConfig/index.js +44 -48
  99. package/es/mobx/Frame.js +2 -17
  100. package/es/mobx/index.js +3 -9
  101. package/es/utils/androidUtil.js +2 -13
  102. package/es/utils/businessUtil.js +3 -25
  103. package/es/utils/commonUtil.js +22 -177
  104. package/es/utils/coreUtil.js +2 -45
  105. package/es/utils/currencyUtil.js +2 -9
  106. package/lib/assets/fonts/.DS_Store +0 -0
  107. package/lib/assets/fonts/magic-box-iconfont.css +6 -62
  108. package/lib/assets/fonts/magic-box-iconfont.css.bak +3 -35
  109. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  110. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  111. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  112. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  113. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  114. package/lib/assets/images/base64/index.js +2 -36
  115. package/lib/assets/less/button.less +0 -5
  116. package/lib/assets/less/cylon-antd.less +1686 -7246
  117. package/lib/assets/less/font.less +0 -22
  118. package/lib/common/Button/index.less +1 -0
  119. package/lib/common/CountDown/index.js +11 -20
  120. package/lib/common/GroupList/index.js +2 -7
  121. package/lib/common/ImagePicker/index.js +3 -1
  122. package/lib/common/LinkModal/CouponTable/index.js +3 -3
  123. package/lib/common/LinkModal/CustomTable/index.js +0 -1
  124. package/lib/common/LinkModal/FunctionTable/index.js +1 -2
  125. package/lib/common/LinkModal/index.js +2 -14
  126. package/lib/common/MagicLink/index.js +2 -2
  127. package/lib/common/ProductModal/index.js +3 -38
  128. package/lib/common/ProductSource/index.js +18 -59
  129. package/lib/common/UrlPicker/index.js +10 -62
  130. package/lib/common/index.js +0 -24
  131. package/lib/composite-comp/bol/components/Banner/mobile/index.js +2 -1
  132. package/lib/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  133. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  134. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  135. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  136. package/lib/composite-comp/bol/components/Video/index.js +2 -1
  137. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
  138. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
  139. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
  140. package/lib/composite-comp/bol/components/Video/mobile/index.less +3 -2
  141. package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +88 -112
  142. package/lib/composite-comp/bol/components/Wallet/index.js +15 -11
  143. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +64 -314
  144. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +40 -103
  145. package/lib/composite-comp/bol/components/Wallet/pc/index.js +2 -0
  146. package/lib/composite-comp/bol/components/Wallet/pc/index.less +40 -1
  147. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +6 -1
  148. package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +2 -11
  149. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
  150. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +82 -58
  151. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +0 -2
  152. package/lib/composite-comp/common/components/ProductItem/index.js +20 -22
  153. package/lib/composite-comp/common/components/ProductItem/index.less +12 -2
  154. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -13
  155. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -3
  156. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
  157. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +6 -8
  158. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  159. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +6 -8
  160. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  161. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +5 -6
  162. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  163. package/lib/composite-comp/dito/components/Recommend/pc/index.js +5 -6
  164. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  165. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +9 -6
  166. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +66 -62
  167. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +9 -10
  168. package/lib/constants/component-types.js +3 -45
  169. package/lib/constants/index.js +5 -74
  170. package/lib/constants/layout.js +1 -48
  171. package/lib/core/Designer/ChatRobot/index.js +17 -84
  172. package/lib/core/Designer/ChatRobot/index.less +28 -69
  173. package/lib/core/Designer/ConfigPanel/index.js +3 -14
  174. package/lib/core/Designer/FonixtreeGpt/index.js +29 -222
  175. package/lib/core/Designer/PageCompList/index.js +5 -6
  176. package/lib/core/Designer/QuickMenuBar/index.js +5 -11
  177. package/lib/core/Designer/QuickMenuBar/index.less +0 -4
  178. package/lib/core/Designer/RenderHtml/index.js +15 -18
  179. package/lib/core/Designer/RenderHtml/index.less +1 -1
  180. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +6 -19
  181. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +6 -19
  182. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +6 -19
  183. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +6 -27
  184. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +20 -4
  185. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +5 -36
  186. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +16 -17
  187. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +6 -27
  188. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +20 -4
  189. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +3 -28
  190. package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +1 -2
  191. package/lib/core/Designer/ToolBarModal/index.js +27 -69
  192. package/lib/core/Designer/ToolBarModal/index.less +2 -3
  193. package/lib/core/Designer/index.js +2 -26
  194. package/lib/core/Renderer/index.js +29 -74
  195. package/lib/decorator/compositeDecorator.js +6 -33
  196. package/lib/decorator/metaDecorator.js +1 -1
  197. package/lib/locale/en/en.json +3 -17
  198. package/lib/locale/es/es.json +3 -17
  199. package/lib/locale/id/id.json +3 -17
  200. package/lib/meta-comp/components/Image/index.js +25 -31
  201. package/lib/meta-comp/components/Text/index.js +1 -4
  202. package/lib/meta-comp/components/Text/index.less +0 -8
  203. package/lib/meta-comp/config-panels/ImageConfig/index.js +44 -48
  204. package/lib/mobx/Frame.js +2 -17
  205. package/lib/mobx/index.js +3 -9
  206. package/lib/utils/androidUtil.js +2 -13
  207. package/lib/utils/businessUtil.js +3 -25
  208. package/lib/utils/commonUtil.js +22 -177
  209. package/lib/utils/coreUtil.js +2 -45
  210. package/lib/utils/currencyUtil.js +2 -9
  211. package/package.json +1 -2
  212. package/es/assets/fonts/Trueno-Light.otf +0 -0
  213. package/es/assets/fonts/Trueno-Regular.otf +0 -0
  214. package/es/assets/fonts/TruenoBd.otf +0 -0
  215. package/es/assets/images/layout-icon/walletLayout2.png +0 -0
  216. package/es/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  217. package/es/common/AffiliateProductModal/index.js +0 -582
  218. package/es/common/AffiliateProductModal/index.less +0 -146
  219. package/es/common/CardCarousel/index.js +0 -171
  220. package/es/common/CardCarousel/index.less +0 -28
  221. package/es/common/CropperModal/index.js +0 -126
  222. package/es/common/CropperModal/index.less +0 -29
  223. package/es/common/MyModal/index.js +0 -417
  224. package/es/common/MyModal/index.less +0 -74
  225. package/es/common/UrlPicker/AnchorModal/index.js +0 -170
  226. package/es/common/UrlPicker/AnchorModal/index.less +0 -21
  227. package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +0 -148
  228. package/es/composite-comp/bol/components/WalletNuri/index.js +0 -84
  229. package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +0 -366
  230. package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +0 -22
  231. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +0 -201
  232. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +0 -9
  233. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  234. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +0 -100
  235. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +0 -72
  236. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -123
  237. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  238. package/es/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  239. package/es/composite-comp/bol/config-panels/WalletNuriConfig/index.js +0 -61
  240. package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +0 -152
  241. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +0 -9
  242. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +0 -40
  243. package/es/composite-comp/common/components/AffiliateProductItem/index.js +0 -168
  244. package/es/composite-comp/common/components/AffiliateProductItem/index.less +0 -129
  245. package/es/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +0 -243
  246. package/es/composite-comp/dito/components/AffiliateRecommend/index.js +0 -90
  247. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +0 -660
  248. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +0 -84
  249. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +0 -728
  250. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.less +0 -124
  251. package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
  252. package/es/composite-comp/dito/components/CommonFunctions/index.js +0 -84
  253. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -107
  254. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
  255. package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +0 -102
  256. package/es/composite-comp/dito/components/HeadNavigation/index.js +0 -84
  257. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +0 -112
  258. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +0 -34
  259. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +0 -206
  260. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +0 -25
  261. package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +0 -107
  262. package/es/composite-comp/dito/components/MenuNavigation/index.js +0 -84
  263. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +0 -87
  264. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +0 -8
  265. package/es/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
  266. package/es/composite-comp/dito/components/Orders/index.js +0 -84
  267. package/es/composite-comp/dito/components/Orders/mobile/index.js +0 -345
  268. package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -82
  269. package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
  270. package/es/composite-comp/dito/components/PersonalInformation/index.js +0 -84
  271. package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  272. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -568
  273. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -133
  274. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -102
  275. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  276. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +0 -148
  277. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -16
  278. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  279. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +0 -141
  280. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
  281. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
  282. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +0 -203
  283. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +0 -72
  284. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +0 -142
  285. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +0 -121
  286. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +0 -23
  287. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +0 -203
  288. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +0 -72
  289. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +0 -137
  290. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +0 -6
  291. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +0 -40
  292. package/es/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
  293. package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
  294. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
  295. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
  296. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -431
  297. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -214
  298. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -15
  299. package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -122
  300. package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +0 -0
  301. package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +0 -127
  302. package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +0 -127
  303. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
  304. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  305. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
  306. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
  307. package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +0 -128
  308. package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +0 -33
  309. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +0 -77
  310. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +0 -27
  311. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +0 -40
  312. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +0 -40
  313. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +0 -40
  314. package/es/meta-comp/components/Text/formats/textAlign.js +0 -58
  315. package/es/mobx/UserState.js +0 -144
  316. package/lib/assets/fonts/Trueno-Light.otf +0 -0
  317. package/lib/assets/fonts/Trueno-Regular.otf +0 -0
  318. package/lib/assets/fonts/TruenoBd.otf +0 -0
  319. package/lib/assets/images/layout-icon/walletLayout2.png +0 -0
  320. package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  321. package/lib/common/AffiliateProductModal/index.js +0 -582
  322. package/lib/common/AffiliateProductModal/index.less +0 -146
  323. package/lib/common/CardCarousel/index.js +0 -171
  324. package/lib/common/CardCarousel/index.less +0 -28
  325. package/lib/common/CropperModal/index.js +0 -126
  326. package/lib/common/CropperModal/index.less +0 -29
  327. package/lib/common/MyModal/index.js +0 -417
  328. package/lib/common/MyModal/index.less +0 -74
  329. package/lib/common/UrlPicker/AnchorModal/index.js +0 -170
  330. package/lib/common/UrlPicker/AnchorModal/index.less +0 -21
  331. package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +0 -148
  332. package/lib/composite-comp/bol/components/WalletNuri/index.js +0 -84
  333. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +0 -366
  334. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +0 -22
  335. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +0 -201
  336. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +0 -9
  337. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  338. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +0 -100
  339. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +0 -72
  340. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -123
  341. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  342. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  343. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/index.js +0 -61
  344. package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +0 -152
  345. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +0 -9
  346. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +0 -40
  347. package/lib/composite-comp/common/components/AffiliateProductItem/index.js +0 -168
  348. package/lib/composite-comp/common/components/AffiliateProductItem/index.less +0 -129
  349. package/lib/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +0 -243
  350. package/lib/composite-comp/dito/components/AffiliateRecommend/index.js +0 -90
  351. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +0 -660
  352. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +0 -84
  353. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +0 -728
  354. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.less +0 -124
  355. package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
  356. package/lib/composite-comp/dito/components/CommonFunctions/index.js +0 -84
  357. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -107
  358. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
  359. package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +0 -102
  360. package/lib/composite-comp/dito/components/HeadNavigation/index.js +0 -84
  361. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +0 -112
  362. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +0 -34
  363. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +0 -206
  364. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +0 -25
  365. package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +0 -107
  366. package/lib/composite-comp/dito/components/MenuNavigation/index.js +0 -84
  367. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +0 -87
  368. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +0 -8
  369. package/lib/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
  370. package/lib/composite-comp/dito/components/Orders/index.js +0 -84
  371. package/lib/composite-comp/dito/components/Orders/mobile/index.js +0 -345
  372. package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -82
  373. package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
  374. package/lib/composite-comp/dito/components/PersonalInformation/index.js +0 -84
  375. package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  376. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -568
  377. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -133
  378. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -102
  379. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  380. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +0 -148
  381. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -16
  382. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  383. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +0 -141
  384. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
  385. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
  386. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +0 -203
  387. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +0 -72
  388. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +0 -142
  389. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +0 -121
  390. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +0 -23
  391. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +0 -203
  392. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +0 -72
  393. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +0 -137
  394. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +0 -6
  395. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +0 -40
  396. package/lib/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
  397. package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
  398. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
  399. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
  400. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -431
  401. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -214
  402. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -15
  403. package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -122
  404. package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +0 -0
  405. package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +0 -127
  406. package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +0 -127
  407. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
  408. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  409. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
  410. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
  411. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +0 -128
  412. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +0 -33
  413. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +0 -77
  414. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +0 -27
  415. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +0 -40
  416. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +0 -40
  417. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +0 -40
  418. package/lib/meta-comp/components/Text/formats/textAlign.js +0 -58
  419. package/lib/mobx/UserState.js +0 -144
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.fontWeightList = exports.fontSizeList = exports.fontFamilyList = exports["default"] = exports.OpenSansFontWeightList = void 0;
6
+ exports.fontWeightList = exports.fontSizeList = exports.fontFamilyList = exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
@@ -13,6 +13,8 @@ var _ToolBtn = _interopRequireDefault(require("./ToolBtn"));
13
13
 
14
14
  var _coreUtil = require("../../../utils/coreUtil");
15
15
 
16
+ var _UnderlineSelect = _interopRequireDefault(require("../../../meta-comp/config-panels/TextConfig/UnderlineSelect"));
17
+
16
18
  require("./index.less");
17
19
 
18
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -67,17 +69,6 @@ var fontWeightList = [{
67
69
  value: '700'
68
70
  }];
69
71
  exports.fontWeightList = fontWeightList;
70
- var OpenSansFontWeightList = [{
71
- name: 'Regular',
72
- value: '400'
73
- }, {
74
- name: 'Semibold',
75
- value: '600'
76
- }, {
77
- name: 'Bold',
78
- value: '700'
79
- }];
80
- exports.OpenSansFontWeightList = OpenSansFontWeightList;
81
72
 
82
73
  var ToolBarModal =
83
74
  /** @class */
@@ -91,7 +82,6 @@ function (_super) {
91
82
  quillFormat: {}
92
83
  };
93
84
  _this.toolBarRef = /*#__PURE__*/_react["default"].createRef();
94
- _this.selectedTextLength = 0;
95
85
 
96
86
  _this.setToolBarPosition = function () {
97
87
  var _a = _this.props.quillRef.container.getBoundingClientRect(),
@@ -111,8 +101,6 @@ function (_super) {
111
101
  var range = _this.props.quillRef.getSelection();
112
102
 
113
103
  if (range) {
114
- _this.selectedTextLength = range.length;
115
-
116
104
  var quillFormat = _this.props.quillRef.getFormat();
117
105
 
118
106
  console.log('quillFormat: ', quillFormat);
@@ -120,8 +108,6 @@ function (_super) {
120
108
  _this.setState({
121
109
  quillFormat: quillFormat
122
110
  });
123
- } else {
124
- if (_this.selectedTextLength === 0) _this.props.quillRef.setSelection(0, _this.props.quillRef.getLength());
125
111
  }
126
112
  };
127
113
 
@@ -153,15 +139,17 @@ function (_super) {
153
139
 
154
140
  _this.props.quillRef.format('list', currentListType == 'bullet' ? '' : 'bullet');
155
141
  } else if (type == 'link') {
156
- _this.props.quillRef.format('link', JSON.stringify(value));
142
+ if (window.magicDesign.outputType === 'html') {
143
+ _this.props.quillRef.format('link', value.name);
144
+ } else {
145
+ _this.props.quillRef.format('link', JSON.stringify(value));
146
+ }
157
147
  } else if (type == 'size') {
158
148
  _this.props.quillRef.format('size', value + 'px');
159
149
  } else if (type == 'font') {
160
150
  _this.props.quillRef.format('font', value);
161
151
  } else if (type == 'font-weight') {
162
152
  _this.props.quillRef.format('font-weight', value);
163
- } else if (type == 'text-align') {
164
- _this.props.quillRef.format('text-align', value);
165
153
  } else if (type == 'font-style') {
166
154
  _this.props.quillRef.format('font-style', 'italic' === quillFormat['font-style'] ? '' : 'italic');
167
155
  } else if (type == 'font-family') {
@@ -171,32 +159,22 @@ function (_super) {
171
159
 
172
160
  _this.props.quillRef.format('text-decoration-style', value);
173
161
  } else if (type == 'bullet') {
174
- _this.props.quillRef.setSelection(0, _this.props.quillRef.getLength());
175
-
176
- if (!value || value === quillFormat['list-style-type']) {
177
- _this.props.quillRef.format('list-style-type', '');
162
+ _this.props.quillRef.format('list-style-type', value);
178
163
 
164
+ if (value === quillFormat['list-style-type']) {
179
165
  _this.props.quillRef.format('list', '');
180
166
  } else {
181
- _this.props.quillRef.format('list-style-type', value);
182
-
183
167
  _this.props.quillRef.format('list', 'bullet');
184
168
  }
185
169
  } else if (type == 'ordered') {
186
- _this.props.quillRef.setSelection(0, _this.props.quillRef.getLength());
187
-
188
- if (!value || value === quillFormat['list-style-type']) {
189
- _this.props.quillRef.format('list-style-type', '');
170
+ _this.props.quillRef.format('list-style-type', value);
190
171
 
172
+ if (value === quillFormat['list-style-type']) {
191
173
  _this.props.quillRef.format('list', '');
192
174
  } else {
193
- _this.props.quillRef.format('list-style-type', value);
194
-
195
175
  _this.props.quillRef.format('list', 'ordered');
196
176
  }
197
177
  } else if (type == 'text-decoration-color') {
198
- _this.props.quillRef.setSelection(0, _this.props.quillRef.getLength());
199
-
200
178
  if (value) {
201
179
  _this.props.quillRef.format('underline', true);
202
180
  } else {
@@ -233,9 +211,6 @@ function (_super) {
233
211
  var _this = this;
234
212
 
235
213
  var quillFormat = this.state.quillFormat;
236
-
237
- var _fontWeightList = quillFormat['font-family'] === 'OpenSans' ? OpenSansFontWeightList : fontWeightList;
238
-
239
214
  return /*#__PURE__*/_react["default"].createElement("div", {
240
215
  ref: this.toolBarRef,
241
216
  className: "toolbar-wrap"
@@ -270,7 +245,7 @@ function (_super) {
270
245
  width: '150px'
271
246
  },
272
247
  value: quillFormat['font-weight']
273
- }, _fontWeightList.map(function (v) {
248
+ }, fontWeightList.map(function (v) {
274
249
  return /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
275
250
  label: v.name,
276
251
  value: v.value
@@ -292,7 +267,20 @@ function (_super) {
292
267
  label: v.name,
293
268
  value: v
294
269
  }, v, "px");
295
- })))), /*#__PURE__*/_react["default"].createElement("div", {
270
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
271
+ className: "tool-item"
272
+ }, /*#__PURE__*/_react["default"].createElement(_UnderlineSelect["default"], {
273
+ onChange: function onChange(v) {
274
+ _this.onToolBtnClick('text-decoration-style', v);
275
+ },
276
+ placeholder: "Underline Style",
277
+ repeatCount: 28,
278
+ size: "small",
279
+ style: {
280
+ width: '140px'
281
+ },
282
+ value: quillFormat['text-decoration-style']
283
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
296
284
  className: "toolbar-row"
297
285
  }, /*#__PURE__*/_react["default"].createElement("div", {
298
286
  className: "tool-item"
@@ -317,10 +305,6 @@ function (_super) {
317
305
  _this.onToolBtnClick('text-decoration-color', value);
318
306
  },
319
307
  type: "text-decoration-color",
320
- underlineOnChange: function underlineOnChange(value) {
321
- return _this.onToolBtnClick('text-decoration-style', value);
322
- },
323
- underlineValue: quillFormat['text-decoration-style'],
324
308
  value: {
325
309
  color: quillFormat['text-decoration-color']
326
310
  }
@@ -370,32 +354,6 @@ function (_super) {
370
354
  className: "tooll-line"
371
355
  }), /*#__PURE__*/_react["default"].createElement("div", {
372
356
  className: "tool-item"
373
- }, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
374
- active: quillFormat['text-align'] === 'left',
375
- onChange: function onChange() {
376
- _this.onToolBtnClick('text-align', 'left');
377
- },
378
- type: "alignLeft"
379
- })), /*#__PURE__*/_react["default"].createElement("div", {
380
- className: "tool-item"
381
- }, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
382
- active: quillFormat['text-align'] === 'center',
383
- onChange: function onChange() {
384
- _this.onToolBtnClick('text-align', 'center');
385
- },
386
- type: "alignCenter"
387
- })), /*#__PURE__*/_react["default"].createElement("div", {
388
- className: "tool-item"
389
- }, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
390
- active: quillFormat['text-align'] === 'right',
391
- onChange: function onChange() {
392
- _this.onToolBtnClick('text-align', 'right');
393
- },
394
- type: "alignRight"
395
- })), /*#__PURE__*/_react["default"].createElement("div", {
396
- className: "tooll-line"
397
- }), /*#__PURE__*/_react["default"].createElement("div", {
398
- className: "tool-item"
399
357
  }, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
400
358
  onChange: function onChange(value) {
401
359
  _this.onToolBtnClick('link', value);
@@ -14,14 +14,13 @@
14
14
 
15
15
  .tool-item {
16
16
  margin: 0 5px;
17
- display: flex;
18
17
  }
19
18
 
20
19
  .tooll-line {
21
20
  display: inline-flex;
22
21
  width: 1px;
23
- height: 16px;
24
- background-color: #C1C9D7;
22
+ height: 24px;
23
+ background-color: rgba(0, 0, 0, .04);
25
24
  margin: 0 5px;
26
25
  }
27
26
 
@@ -263,7 +263,6 @@ window.magicDesign = {
263
263
 
264
264
  var setDesignConfig = function setDesignConfig(data) {
265
265
  window.magicDesign = __assign(__assign(__assign({}, window.magicDesign), data), {
266
- designMode: true,
267
266
  compWidth: Number(data.compWidth),
268
267
  compSpacing: Number(data.compSpacing),
269
268
  MBaseUrl: data.MBaseUrl || 'operation/v1',
@@ -272,13 +271,6 @@ var setDesignConfig = function setDesignConfig(data) {
272
271
  };
273
272
 
274
273
  var debug = require('debug')('worker:Designer');
275
-
276
- _antd.message.config({
277
- getContainer: function getContainer() {
278
- return document.querySelector('[magic_design]');
279
- },
280
- prefixCls: 'cylon-message'
281
- });
282
274
  /**
283
275
  * @class Designer
284
276
  * 主入口。
@@ -467,9 +459,7 @@ function (_super) {
467
459
  var _a = _this.props,
468
460
  onPublish = _a.onPublish,
469
461
  onSave = _a.onSave,
470
- onPreviews = _a.onPreviews,
471
- onPush = _a.onPush,
472
- onSetAsTemp = _a.onSetAsTemp;
462
+ onPreviews = _a.onPreviews;
473
463
  var _b = _this.state,
474
464
  device = _b.device,
475
465
  MPageData = _b.MPageData;
@@ -504,14 +494,6 @@ function (_super) {
504
494
 
505
495
  break;
506
496
 
507
- case _constants.quickMenuCode.PUSH:
508
- onPush(handleParams);
509
- break;
510
-
511
- case _constants.quickMenuCode.SET_AS_TEMPLATE:
512
- onSetAsTemp(handleParams);
513
- break;
514
-
515
497
  case _constants.quickMenuCode.PUBLISH:
516
498
  onPublish(handleParams);
517
499
  break;
@@ -528,9 +510,6 @@ function (_super) {
528
510
  break;
529
511
 
530
512
  case _constants.quickMenuCode.SAVE:
531
- /** 如果保存则重置为mobile,同一移动端截图 #10504010 */
532
- _this.onSwitchDevice(_constants.deviceTypeMap.PHONE);
533
-
534
513
  onSave(handleParams);
535
514
  break;
536
515
 
@@ -604,7 +583,6 @@ function (_super) {
604
583
  onHtmlBack: _this.onHtmlBack,
605
584
  onHtmlSave: _this.onHtmlSave,
606
585
  outputType: _this.props.outputType,
607
- pageType: _this.props.pageType,
608
586
  redoDisable: !_this.history.redoAble(),
609
587
  undoDisable: !_this.history.undoAble()
610
588
  });
@@ -763,8 +741,7 @@ function (_super) {
763
741
  pageName = _b.pageName,
764
742
  onCancelPublish = _b.onCancelPublish,
765
743
  leftTitle = _b.leftTitle,
766
- outputType = _b.outputType,
767
- pageType = _b.pageType;
744
+ outputType = _b.outputType;
768
745
  var renderPagesManage = pagesManager;
769
746
 
770
747
  if (outputType == 'html') {
@@ -788,7 +765,6 @@ function (_super) {
788
765
  onAdd: this.onAdd,
789
766
  pageData: MPageData,
790
767
  pageName: pageName,
791
- pageType: pageType,
792
768
  renderPagesManage: renderPagesManage,
793
769
  setPageData: this.setPageData
794
770
  }), /*#__PURE__*/_react["default"].createElement(_CompListPanel["default"], {
@@ -15,16 +15,10 @@ var _componentTypes = require("../../constants/component-types");
15
15
 
16
16
  var _coreUtil = require("../../utils/coreUtil");
17
17
 
18
- var _mobx = require("../../mobx");
19
-
20
- var _common = require("../../common");
21
-
22
18
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
19
 
24
20
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
21
 
26
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
27
-
28
22
  var __assign = void 0 && (void 0).__assign || function () {
29
23
  __assign = Object.assign || function (t) {
30
24
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -43,13 +37,11 @@ var __assign = void 0 && (void 0).__assign || function () {
43
37
 
44
38
  var setDesignConfig = function setDesignConfig(props) {
45
39
  var config = props.config,
46
- device = props.device,
47
- isPreview = props.isPreview;
40
+ device = props.device;
48
41
  window.magicDesign = __assign(__assign({
49
42
  pageBackground: '#f2f2f2',
50
43
  mode: 'renderer',
51
44
  device: device,
52
- designMode: isPreview,
53
45
  navigatePreUrl: ''
54
46
  }, config), {
55
47
  compSpacing: Number(config.compSpacing),
@@ -64,43 +56,40 @@ var setDesignConfig = function setDesignConfig(props) {
64
56
  var Renderer = function Renderer(props) {
65
57
  var pageData = props.pageData,
66
58
  outputType = props.outputType,
67
- noSetWindow = props.noSetWindow,
68
- isPreview = props.isPreview;
69
-
70
- var _a = (0, _react.useState)([]),
71
- floors = _a[0],
72
- setFloors = _a[1];
73
-
74
- var _b = (0, _react.useState)(_mobx.frameStore.modalState),
75
- modalState = _b[0],
76
- setModalState = _b[1];
59
+ noSetWindow = props.noSetWindow;
77
60
 
78
61
  if (!noSetWindow) {
79
62
  setDesignConfig(props);
80
63
  }
81
64
 
82
65
  window.magicDesignPageData = pageData;
83
- var pageBackground = window.magicDesign.pageBackground;
84
- (0, _react.useEffect)(function () {
85
- console.log('----pageData change', pageData);
86
- var filterData = [];
66
+ var pageBackground = window.magicDesign.pageBackground; // 根据楼层展示设备进行过滤
67
+
68
+ var filterCompFloor = function filterCompFloor() {
69
+ var source = [];
87
70
 
88
71
  if (pageData && pageData.childNodes && pageData.childNodes.length) {
89
- filterData = pageData.childNodes.filter(function (node) {
72
+ source = pageData.childNodes.filter(function (node) {
90
73
  return (0, _coreUtil.isActiveFloor)(node.activeTerminal);
91
74
  });
92
- } // 首页组建分批渲染按5个一组
75
+ }
93
76
 
77
+ return source;
78
+ };
94
79
 
95
- setFloors(filterData.slice(0, 5));
96
- setTimeout(function () {
97
- setFloors(filterData.slice(0, 10));
98
- setTimeout(function () {
99
- setFloors(filterData);
100
- }, 200);
101
- }, 200);
102
- }, [pageData]);
103
80
  (0, _react.useEffect)(function () {
81
+ // const data = await fishFetch('/h5/ga/mediaid', {}, 'GET');
82
+ (0, _commonUtil.importAsync)('https://www.googletagmanager.com/gtag/js?id=G-7B9GSSLVX3', 'js').then(function () {
83
+ window.dataLayer = window.dataLayer || [];
84
+
85
+ function gtag() {
86
+ dataLayer.push(arguments);
87
+ }
88
+
89
+ gtag('js', new Date());
90
+ gtag('config', 'G-7B9GSSLVX3');
91
+ window.gtag = gtag;
92
+ });
104
93
  setTimeout(function () {
105
94
  var _a;
106
95
 
@@ -110,44 +99,15 @@ var Renderer = function Renderer(props) {
110
99
  });
111
100
  }, 300);
112
101
  });
113
- (0, _react.useEffect)(function () {
114
- var disposer = (0, _mobx.autorun)(function () {
115
- setModalState(_mobx.frameStore.modalState);
116
- });
117
- return function () {
118
- disposer();
119
- };
120
- }, []); // 传入空数组表示仅在组件挂载和卸载时执行
121
-
122
- /** 弹窗关闭 */
123
-
124
- var onCloseModal = function onCloseModal() {
125
- _mobx.frameStore.setState({
126
- modalState: {
127
- visible: false
128
- }
129
- });
130
- };
131
-
132
- var getRestStyle = function getRestStyle() {
133
- if (modalState.visible) {
134
- return {
135
- position: 'relative',
136
- overflow: 'hidden'
137
- };
138
- }
139
-
140
- return {};
141
- };
142
-
143
102
  return /*#__PURE__*/_react["default"].createElement("div", {
144
103
  className: "render_wrap",
145
104
  magic_design: "",
146
- style: __assign({
105
+ style: {
147
106
  height: '100%',
148
- background: pageBackground
149
- }, getRestStyle())
150
- }, floors.length > 0 && floors.map(function (nodeData, moduleIndex) {
107
+ background: pageBackground,
108
+ overflow: 'auto'
109
+ }
110
+ }, filterCompFloor().map(function (nodeData, moduleIndex) {
151
111
  var Clazz = _componentTypes.componentMap[nodeData.type];
152
112
 
153
113
  if (!Clazz) {
@@ -169,18 +129,13 @@ var Renderer = function Renderer(props) {
169
129
  key: nodeData.id,
170
130
  id: 'node-' + nodeData.id
171
131
  }, /*#__PURE__*/_react["default"].createElement(Clazz, __assign({}, newInstanceProps), null));
172
- }), modalState.visible && /*#__PURE__*/_react["default"].createElement(_common.MyModal, _extends({
173
- isPreview: isPreview
174
- }, modalState, {
175
- onClose: onCloseModal
176
- })));
132
+ }));
177
133
  };
178
134
 
179
135
  Renderer.defaultProps = {
180
136
  pageData: {},
181
137
  device: 'pc',
182
- config: {},
183
- isPreview: false
138
+ config: {}
184
139
  };
185
140
  var _default = Renderer;
186
141
  exports["default"] = _default;
@@ -87,11 +87,7 @@ function compositeDecorator(WrappedComponent) {
87
87
  }; // 复合组件点击事件
88
88
 
89
89
  _this.onCompositeCompClick = function (event) {
90
- if (window.magicDesign.mode === 'renderer') {
91
- return;
92
- } // 触发左侧楼层的滚动
93
-
94
-
90
+ // 触发左侧楼层的滚动
95
91
  if (document.getElementById("card" + _this.props.nodeData.id)) {
96
92
  document.getElementById("card" + _this.props.nodeData.id).scrollIntoView({
97
93
  behavior: 'smooth'
@@ -119,20 +115,19 @@ function compositeDecorator(WrappedComponent) {
119
115
  device = _b.device,
120
116
  compWidth = _b.compWidth;
121
117
  var zIndex = '0';
122
- var position = 'relative';
123
118
 
124
- if (nodeData.type === 'CAROUSEL' || nodeData.type === 'IMAGE_GALLERY' || nodeData.type === 'ORDERS') {
119
+ if (nodeData.type === 'CAROUSEL' || nodeData.type === 'IMAGE_GALLERY') {
125
120
  zIndex = '1';
126
121
  } // 解决pc导航hover上去,类目被下面组件遮罩的问题
127
122
 
128
123
 
129
- if (nodeData.type === 'PC_NAVIGATION' || nodeData.type === 'PERSONAL_INFOMATION') {
124
+ if (nodeData.type === 'PC_NAVIGATION') {
130
125
  zIndex = '2';
131
126
  }
132
127
 
133
128
  var wrapStyle = {
134
129
  border: 'none',
135
- position: position,
130
+ position: 'relative',
136
131
  zIndex: zIndex,
137
132
  margin: '0 auto'
138
133
  }; // 复合组件内边距
@@ -158,19 +153,6 @@ function compositeDecorator(WrappedComponent) {
158
153
 
159
154
  if (device === _constants.deviceTypeMap.PC && compWidth && !((_a = spacing === null || spacing === void 0 ? void 0 : spacing.pc) === null || _a === void 0 ? void 0 : _a.fillUp)) {
160
155
  wrapStyle.width = compWidth;
161
- } // 如果是菜单 则需要设为fixed
162
-
163
-
164
- if (nodeData.type === 'HEAD_NAVIGATION' || nodeData.type === 'MENU_NAVIGATION') {
165
- wrapStyle.position = 'absolute';
166
- wrapStyle.left = 0;
167
- wrapStyle.width = '100%';
168
-
169
- if (nodeData.type === 'HEAD_NAVIGATION') {
170
- wrapStyle.top = 0;
171
- } else {
172
- wrapStyle.bottom = 0;
173
- }
174
156
  }
175
157
 
176
158
  return wrapStyle;
@@ -210,7 +192,8 @@ function compositeDecorator(WrappedComponent) {
210
192
  };
211
193
 
212
194
  _this.getWrapStyle = function () {
213
- var mode = window.magicDesign.mode;
195
+ var mode = window.magicDesign.mode; // const { nodeData } = this.props;
196
+
214
197
  var style = {
215
198
  position: 'relative',
216
199
  zIndex: '1'
@@ -245,15 +228,6 @@ function compositeDecorator(WrappedComponent) {
245
228
  });
246
229
  };
247
230
 
248
- _this.getOuterWrapStyle = function () {
249
- var nodeData = _this.props.nodeData;
250
-
251
- if (window.magicDesign.designMode && (nodeData.type === 'HEAD_NAVIGATION' || nodeData.type === 'MENU_NAVIGATION')) {
252
- var element = document.querySelector('.phone_view_area .device_border') || document.querySelector('#root .render_wrap');
253
- element.style.position = 'relative';
254
- }
255
- };
256
-
257
231
  return _this;
258
232
  }
259
233
 
@@ -266,7 +240,6 @@ function compositeDecorator(WrappedComponent) {
266
240
  hoveredFloor: _mobx.store.hoveredFloor
267
241
  });
268
242
  });
269
- this.getOuterWrapStyle();
270
243
  };
271
244
 
272
245
  Wrapper.prototype.componentWillUnmount = function () {
@@ -95,7 +95,7 @@ function metaDecorator(WrappedComponent) {
95
95
  GAData = _c.GAData;
96
96
  (0, _commonUtil.pushGA)(__assign(__assign({}, GAData), {
97
97
  elementId: data.id,
98
- elementName: data.text || (GAData === null || GAData === void 0 ? void 0 : GAData.groupName)
98
+ elementName: data.text || GAData.groupName
99
99
  }));
100
100
  return;
101
101
  } // 组织冒泡
@@ -1,20 +1,4 @@
1
1
  {
2
- "SUBMIT": "Submit",
3
- "CANCELLED": "Cancelled",
4
- "DONE": "Done",
5
- "TO_RECEIVE": "To Receive",
6
- "TO_SHIP": "To ship",
7
- "TO_PAY": "To Pay",
8
- "VIEW_ALL_ORDERS": "View All Orders",
9
- "ORDERS": "Orders",
10
- "RECENTLY_VIEWED": "Recently Viewed",
11
- "VOUCHERS": "Vouchers",
12
- "STORES": "Stores",
13
- "WISHLIST": "Wishlist",
14
- "IMAGE_NAME_IS_TOO_LONG": "Image name is too long",
15
- "ADD": "Add",
16
- "LOGIN_OR_REGISTER": "Login or Register",
17
- "ANCHOR": "Anchor",
18
2
  "PUSH": "Push",
19
3
  "SET_AS_TEMPLATE": "Set as Template",
20
4
  "DISPLAY_PAGE": "Display page",
@@ -33,6 +17,7 @@
33
17
  "DARK": "Dark",
34
18
  "LIGHT": "Light",
35
19
  "URL_IMAGE": "url image",
20
+ "AI_IMAGE": "AI Image",
36
21
  "IMAGE_URL": "Image URL",
37
22
  "UPLOAD": "Upload",
38
23
  "HOW_LONG_BETWEEN_SLIDES_(SECS)": "How long between slides (secs)",
@@ -77,7 +62,7 @@
77
62
  "ADD_CLICKABLE_AREA": "Add Clickable Area",
78
63
  "ADD_AREA": "Add Area",
79
64
  "CLICKABLE_AREA": "Clickable Area",
80
- "VOUCHER_SUCCESS": "Coupon received successfully!",
65
+ "VOUCHER_SUCCESS": "Voucher received successfully!",
81
66
  "NAVIGATION_NAME": "Navigation Name",
82
67
  "ADD_NAVIGATION": "Add Navigation",
83
68
  "SAVE": "Save",
@@ -129,6 +114,7 @@
129
114
  "MOVE_DOWN": "Move Down",
130
115
  "COPY": "Copy",
131
116
  "DELETE": "Delete",
117
+ "DONE": "Done",
132
118
  "ADD_COMPONENT": "Add Component",
133
119
  "ALL": "ALL",
134
120
  "HOT": "Hot",
@@ -1,20 +1,4 @@
1
1
  {
2
- "SUBMIT": "Submit",
3
- "CANCELLED": "Cancelled",
4
- "DONE": "Hecho",
5
- "TO_RECEIVE": "To Receive",
6
- "TO_SHIP": "To ship",
7
- "TO_PAY": "To Pay",
8
- "VIEW_ALL_ORDERS": "View All Orders",
9
- "ORDERS": "Orders",
10
- "RECENTLY_VIEWED": "Recently Viewed",
11
- "VOUCHERS": "Vouchers",
12
- "STORES": "Stores",
13
- "WISHLIST": "Wishlist",
14
- "IMAGE_NAME_IS_TOO_LONG": "Image name is too long",
15
- "ADD": "Add",
16
- "LOGIN_OR_REGISTER": "Login or Register",
17
- "ANCHOR": "Anchor",
18
2
  "PUSH": "Push",
19
3
  "SET_AS_TEMPLATE": "Set as Template",
20
4
  "DISPLAY_PAGE": "Display page",
@@ -33,6 +17,7 @@
33
17
  "DARK": "Dark",
34
18
  "LIGHT": "Light",
35
19
  "URL_IMAGE": "url image",
20
+ "AI_IMAGE": "AI Image",
36
21
  "IMAGE_URL": "Image URL",
37
22
  "UPLOAD": "Upload",
38
23
  "HOW_LONG_BETWEEN_SLIDES_(SECS)": "How long between slides (secs)",
@@ -77,7 +62,7 @@
77
62
  "ADD_CLICKABLE_AREA": "Add Clickable Area",
78
63
  "ADD_AREA": "Add Area",
79
64
  "CLICKABLE_AREA": "Clickable Area",
80
- "VOUCHER_SUCCESS": "Coupon received successfully!",
65
+ "VOUCHER_SUCCESS": "Voucher received successfully!",
81
66
  "NAVIGATION_NAME": "Navigation Name",
82
67
  "ADD_NAVIGATION": "Add Navigation",
83
68
  "SAVE": "Guardar",
@@ -129,6 +114,7 @@
129
114
  "MOVE_DOWN": "Mover hacia abajo",
130
115
  "COPY": "Copiar",
131
116
  "DELETE": "Eliminar",
117
+ "DONE": "Hecho",
132
118
  "ADD_COMPONENT": "Agregar Componente",
133
119
  "ALL": "TODO",
134
120
  "HOT": "Caliente",