@fonixtree/magic-design 0.1.78 → 0.1.80

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 (317) hide show
  1. package/es/assets/fonts/Trueno-Light.otf +0 -0
  2. package/es/assets/fonts/Trueno-Regular.otf +0 -0
  3. package/es/assets/fonts/TruenoBd.otf +0 -0
  4. package/es/assets/fonts/magic-box-iconfont.css +31 -3
  5. package/es/assets/fonts/magic-box-iconfont.css.bak +31 -3
  6. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  7. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  8. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  9. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  10. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  11. package/es/assets/images/base64/index.js +36 -2
  12. package/es/assets/images/layout-icon/walletLayout2.png +0 -0
  13. package/es/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  14. package/es/assets/less/cylon-antd.less +7246 -1686
  15. package/es/assets/less/font.less +22 -0
  16. package/es/common/AffiliateProductModal/index.js +582 -0
  17. package/es/common/AffiliateProductModal/index.less +146 -0
  18. package/es/common/CardCarousel/index.js +171 -0
  19. package/es/common/CardCarousel/index.less +28 -0
  20. package/es/common/GroupList/index.less +3 -0
  21. package/es/common/ImagePicker/index.js +1 -3
  22. package/es/common/LinkModal/FilteredProductModal/index.js +1 -1
  23. package/es/common/LinkModal/FunctionTable/index.js +2 -1
  24. package/es/common/LinkModal/index.js +14 -2
  25. package/es/common/MyModal/index.js +417 -0
  26. package/es/common/MyModal/index.less +74 -0
  27. package/es/common/ProductModal/index.js +2 -3
  28. package/es/common/ProductSource/index.js +42 -10
  29. package/es/common/UrlPicker/index.js +3 -1
  30. package/es/common/index.js +16 -0
  31. package/es/composite-comp/bol/components/Banner/mobile/index.js +4 -1
  32. package/es/composite-comp/bol/components/ImageText/pc/index.js +2 -2
  33. package/es/composite-comp/bol/components/Video/index.js +1 -2
  34. package/es/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
  35. package/es/composite-comp/bol/components/Wallet/index.js +11 -15
  36. package/es/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
  37. package/es/composite-comp/bol/components/Wallet/mobile/index.less +89 -13
  38. package/es/composite-comp/bol/components/Wallet/pc/index.js +0 -2
  39. package/es/composite-comp/bol/components/Wallet/pc/index.less +1 -40
  40. package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
  41. package/es/composite-comp/bol/components/WalletNuri/index.js +84 -0
  42. package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
  43. package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
  44. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
  45. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
  46. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
  47. package/es/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
  48. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  49. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
  50. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
  51. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
  52. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  53. package/es/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  54. package/es/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
  55. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +8 -6
  56. package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
  57. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
  58. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
  59. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
  60. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
  61. package/es/composite-comp/common/components/AffiliateProductItem/index.js +177 -0
  62. package/es/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
  63. package/es/composite-comp/common/components/ImageLabel/index.less +9 -3
  64. package/es/composite-comp/common/components/ProductItem/index.js +25 -17
  65. package/es/composite-comp/common/components/ProductItem/index.less +17 -8
  66. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  67. package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
  68. package/es/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
  69. package/es/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
  70. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
  71. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
  72. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
  73. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
  74. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
  75. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
  76. package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
  77. package/es/composite-comp/dito/components/HeadNavigation/index.js +84 -0
  78. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
  79. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
  80. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
  81. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
  82. package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
  83. package/es/composite-comp/dito/components/MenuNavigation/index.js +84 -0
  84. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
  85. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
  86. package/es/composite-comp/dito/components/Recommend/mobile/index.js +10 -9
  87. package/es/composite-comp/dito/components/Recommend/pc/index.js +12 -11
  88. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
  89. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
  90. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  91. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
  92. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
  93. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  94. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
  95. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
  96. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
  97. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
  98. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
  99. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
  100. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
  101. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
  102. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
  103. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
  104. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
  105. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +15 -11
  106. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
  107. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
  108. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
  109. package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
  110. package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
  111. package/es/constants/component-types.js +27 -3
  112. package/es/constants/index.js +26 -1
  113. package/es/constants/layout.js +48 -1
  114. package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
  115. package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
  116. package/es/core/Designer/ChatRobot/index.js +36 -14
  117. package/es/core/Designer/ChatRobot/index.less +69 -28
  118. package/es/core/Designer/ConfigPanel/index.js +8 -3
  119. package/es/core/Designer/History/index.js +2 -2
  120. package/es/core/Designer/PageCompList/index.js +8 -5
  121. package/es/core/Designer/QuickMenuBar/index.js +5 -3
  122. package/es/core/Designer/QuickMenuBar/index.less +4 -0
  123. package/es/core/Designer/RenderHtml/index.js +18 -15
  124. package/es/core/Designer/RenderHtml/index.less +1 -1
  125. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +19 -6
  126. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
  127. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
  128. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
  129. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
  130. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
  131. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
  132. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +36 -5
  133. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
  134. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
  135. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
  136. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
  137. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
  138. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
  139. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +28 -3
  140. package/es/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
  141. package/es/core/Designer/ToolBarModal/index.js +68 -22
  142. package/es/core/Designer/ToolBarModal/index.less +3 -2
  143. package/es/core/Designer/index.js +12 -1
  144. package/es/core/Renderer/index.js +55 -8
  145. package/es/decorator/compositeDecorator.js +23 -0
  146. package/es/locale/en/en.json +6 -1
  147. package/es/locale/es/es.json +6 -1
  148. package/es/locale/id/id.json +6 -1
  149. package/es/meta-comp/components/Image/index.js +31 -25
  150. package/es/meta-comp/components/Text/formats/textAlign.js +58 -0
  151. package/es/meta-comp/components/Text/index.js +20 -1
  152. package/es/meta-comp/components/Text/index.less +8 -0
  153. package/es/meta-comp/config-panels/ButtonConfig/index.js +5 -5
  154. package/es/meta-comp/config-panels/ImageConfig/index.js +48 -44
  155. package/es/mobx/Frame.js +17 -2
  156. package/es/utils/businessUtil.js +17 -6
  157. package/es/utils/commonUtil.js +54 -4
  158. package/es/utils/currencyUtil.js +9 -2
  159. package/lib/assets/fonts/Trueno-Light.otf +0 -0
  160. package/lib/assets/fonts/Trueno-Regular.otf +0 -0
  161. package/lib/assets/fonts/TruenoBd.otf +0 -0
  162. package/lib/assets/fonts/magic-box-iconfont.css +31 -3
  163. package/lib/assets/fonts/magic-box-iconfont.css.bak +31 -3
  164. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  165. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  166. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  167. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  168. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  169. package/lib/assets/images/base64/index.js +36 -2
  170. package/lib/assets/images/layout-icon/walletLayout2.png +0 -0
  171. package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  172. package/lib/assets/less/cylon-antd.less +7246 -1686
  173. package/lib/assets/less/font.less +22 -0
  174. package/lib/common/AffiliateProductModal/index.js +582 -0
  175. package/lib/common/AffiliateProductModal/index.less +146 -0
  176. package/lib/common/CardCarousel/index.js +171 -0
  177. package/lib/common/CardCarousel/index.less +28 -0
  178. package/lib/common/GroupList/index.less +3 -0
  179. package/lib/common/ImagePicker/index.js +1 -3
  180. package/lib/common/LinkModal/FilteredProductModal/index.js +1 -1
  181. package/lib/common/LinkModal/FunctionTable/index.js +2 -1
  182. package/lib/common/LinkModal/index.js +14 -2
  183. package/lib/common/MyModal/index.js +417 -0
  184. package/lib/common/MyModal/index.less +74 -0
  185. package/lib/common/ProductModal/index.js +2 -3
  186. package/lib/common/ProductSource/index.js +42 -10
  187. package/lib/common/UrlPicker/index.js +3 -1
  188. package/lib/common/index.js +16 -0
  189. package/lib/composite-comp/bol/components/Banner/mobile/index.js +4 -1
  190. package/lib/composite-comp/bol/components/ImageText/pc/index.js +2 -2
  191. package/lib/composite-comp/bol/components/Video/index.js +1 -2
  192. package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
  193. package/lib/composite-comp/bol/components/Wallet/index.js +11 -15
  194. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
  195. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +89 -13
  196. package/lib/composite-comp/bol/components/Wallet/pc/index.js +0 -2
  197. package/lib/composite-comp/bol/components/Wallet/pc/index.less +1 -40
  198. package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
  199. package/lib/composite-comp/bol/components/WalletNuri/index.js +84 -0
  200. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
  201. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
  202. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
  203. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
  204. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
  205. package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
  206. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  207. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
  208. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
  209. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
  210. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  211. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  212. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
  213. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +8 -6
  214. package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
  215. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
  216. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
  217. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
  218. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
  219. package/lib/composite-comp/common/components/AffiliateProductItem/index.js +177 -0
  220. package/lib/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
  221. package/lib/composite-comp/common/components/ImageLabel/index.less +9 -3
  222. package/lib/composite-comp/common/components/ProductItem/index.js +25 -17
  223. package/lib/composite-comp/common/components/ProductItem/index.less +17 -8
  224. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  225. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
  226. package/lib/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
  227. package/lib/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
  228. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
  229. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
  230. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
  231. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
  232. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
  233. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
  234. package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
  235. package/lib/composite-comp/dito/components/HeadNavigation/index.js +84 -0
  236. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
  237. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
  238. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
  239. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
  240. package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
  241. package/lib/composite-comp/dito/components/MenuNavigation/index.js +84 -0
  242. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
  243. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
  244. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +10 -9
  245. package/lib/composite-comp/dito/components/Recommend/pc/index.js +12 -11
  246. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
  247. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
  248. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  249. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
  250. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
  251. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  252. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
  253. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
  254. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
  255. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
  256. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
  257. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
  258. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
  259. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
  260. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
  261. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
  262. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
  263. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +15 -11
  264. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
  265. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
  266. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
  267. package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
  268. package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
  269. package/lib/constants/component-types.js +27 -3
  270. package/lib/constants/index.js +26 -1
  271. package/lib/constants/layout.js +48 -1
  272. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
  273. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
  274. package/lib/core/Designer/ChatRobot/index.js +36 -14
  275. package/lib/core/Designer/ChatRobot/index.less +69 -28
  276. package/lib/core/Designer/ConfigPanel/index.js +8 -3
  277. package/lib/core/Designer/History/index.js +2 -2
  278. package/lib/core/Designer/PageCompList/index.js +8 -5
  279. package/lib/core/Designer/QuickMenuBar/index.js +5 -3
  280. package/lib/core/Designer/QuickMenuBar/index.less +4 -0
  281. package/lib/core/Designer/RenderHtml/index.js +18 -15
  282. package/lib/core/Designer/RenderHtml/index.less +1 -1
  283. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +19 -6
  284. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
  285. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
  286. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
  287. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
  288. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
  289. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
  290. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +36 -5
  291. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
  292. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
  293. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
  294. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
  295. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
  296. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
  297. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +28 -3
  298. package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
  299. package/lib/core/Designer/ToolBarModal/index.js +68 -22
  300. package/lib/core/Designer/ToolBarModal/index.less +3 -2
  301. package/lib/core/Designer/index.js +12 -1
  302. package/lib/core/Renderer/index.js +55 -8
  303. package/lib/decorator/compositeDecorator.js +23 -0
  304. package/lib/locale/en/en.json +6 -1
  305. package/lib/locale/es/es.json +6 -1
  306. package/lib/locale/id/id.json +6 -1
  307. package/lib/meta-comp/components/Image/index.js +31 -25
  308. package/lib/meta-comp/components/Text/formats/textAlign.js +58 -0
  309. package/lib/meta-comp/components/Text/index.js +20 -1
  310. package/lib/meta-comp/components/Text/index.less +8 -0
  311. package/lib/meta-comp/config-panels/ButtonConfig/index.js +5 -5
  312. package/lib/meta-comp/config-panels/ImageConfig/index.js +48 -44
  313. package/lib/mobx/Frame.js +17 -2
  314. package/lib/utils/businessUtil.js +17 -6
  315. package/lib/utils/commonUtil.js +54 -4
  316. package/lib/utils/currencyUtil.js +9 -2
  317. package/package.json +1 -1
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.videoPCLayout = exports.videoH5Layout = exports.searchLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.newsletterLayout = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.dividerLayout = exports.carouselLayout = exports.WalletLayout = void 0;
6
+ exports.videoPCLayout = exports.videoH5Layout = exports.searchLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.newsletterLayout = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.dividerLayout = exports.carouselLayout = exports.affiliateLayoutPc = exports.affiliateLayoutMobile = exports.WalletNuriLayout = exports.WalletLayout = void 0;
7
7
 
8
8
  var _dividerLayout = _interopRequireDefault(require("../assets/images/layout-icon/dividerLayout.svg"));
9
9
 
@@ -13,8 +13,12 @@ var _imageGalleryLayout = _interopRequireDefault(require("../assets/images/layou
13
13
 
14
14
  var _imageGalleryLayout2 = _interopRequireDefault(require("../assets/images/layout-icon/imageGalleryLayout2.png"));
15
15
 
16
+ var _walletNuriLayout = _interopRequireDefault(require("../assets/images/layout-icon/walletNuriLayout1.png"));
17
+
16
18
  var _walletLayout = _interopRequireDefault(require("../assets/images/layout-icon/walletLayout1.png"));
17
19
 
20
+ var _walletLayout2 = _interopRequireDefault(require("../assets/images/layout-icon/walletLayout2.png"));
21
+
18
22
  var _layoutImagetextM = _interopRequireDefault(require("../assets/images/layout-icon/layout-imagetext-m1-1.png"));
19
23
 
20
24
  var _layoutImagetextM2 = _interopRequireDefault(require("../assets/images/layout-icon/layout-imagetext-m1-2.png"));
@@ -112,8 +116,18 @@ var WalletLayout = [{
112
116
  id: 'layout1',
113
117
  name: 'layout1',
114
118
  image: _walletLayout["default"]
119
+ }, {
120
+ id: 'layout2',
121
+ name: 'layout2',
122
+ image: _walletLayout2["default"]
115
123
  }];
116
124
  exports.WalletLayout = WalletLayout;
125
+ var WalletNuriLayout = [{
126
+ id: 'layout1',
127
+ name: 'layout1',
128
+ image: _walletNuriLayout["default"]
129
+ }];
130
+ exports.WalletNuriLayout = WalletNuriLayout;
117
131
  var carouselLayout = [{
118
132
  id: 'layout1',
119
133
  name: 'layout1',
@@ -214,6 +228,39 @@ var recommendLayoutPc = [{
214
228
  image: _layoutRecommend5["default"]
215
229
  }];
216
230
  exports.recommendLayoutPc = recommendLayoutPc;
231
+ var affiliateLayoutMobile = [{
232
+ id: 'layout1',
233
+ name: 'layout1',
234
+ image: _layoutRecommend["default"]
235
+ }, {
236
+ id: 'layout2',
237
+ name: 'layout2',
238
+ image: _layoutRecommend2["default"]
239
+ }, // { id: 'layout3', name: 'layout3', image: recommendLayout3 },
240
+ {
241
+ id: 'layout4',
242
+ name: 'layout4',
243
+ image: _layoutRecommend4["default"]
244
+ }, {
245
+ id: 'layout5',
246
+ name: 'layout5',
247
+ image: _layoutRecommend5["default"]
248
+ }];
249
+ exports.affiliateLayoutMobile = affiliateLayoutMobile;
250
+ var affiliateLayoutPc = [{
251
+ id: 'layout1',
252
+ name: 'layout1',
253
+ image: _layoutRecommend3["default"]
254
+ }, {
255
+ id: 'layout2',
256
+ name: 'layout2',
257
+ image: _layoutRecommend4["default"]
258
+ }, {
259
+ id: 'layout3',
260
+ name: 'layout3',
261
+ image: _layoutRecommend5["default"]
262
+ }];
263
+ exports.affiliateLayoutPc = affiliateLayoutPc;
217
264
  var videoPCLayout = [{
218
265
  id: 'layout1',
219
266
  name: 'layout1',
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = SearchCondition;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _antd = require("antd");
13
+
14
+ var _classnames = _interopRequireDefault(require("classnames"));
15
+
16
+ require("./index.less");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ 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); }
21
+
22
+ 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; }
23
+
24
+ var toneList = ['Concise', 'Formal', 'Youthful', 'Innovative', 'Enticing'];
25
+
26
+ function SearchCondition() {
27
+ var _a = (0, _react.useState)('Concise'),
28
+ tone = _a[0],
29
+ setTone = _a[1];
30
+
31
+ var _b = (0, _react.useState)('30'),
32
+ count = _b[0],
33
+ setCount = _b[1];
34
+
35
+ var _c = (0, _react.useState)(''),
36
+ features = _c[0],
37
+ setFeatures = _c[1];
38
+
39
+ var _d = (0, _react.useState)(''),
40
+ key = _d[0],
41
+ setKey = _d[1];
42
+
43
+ return /*#__PURE__*/_react["default"].createElement("div", {
44
+ className: "condition_wrap"
45
+ }, /*#__PURE__*/_react["default"].createElement("div", {
46
+ className: "cond_title"
47
+ }, "Detailed description"), /*#__PURE__*/_react["default"].createElement("div", {
48
+ className: "cond_item"
49
+ }, /*#__PURE__*/_react["default"].createElement("div", {
50
+ className: "item_label"
51
+ }, "Preferred tone of the description?"), /*#__PURE__*/_react["default"].createElement("div", {
52
+ className: "cond_value"
53
+ }, toneList.map(function (name) {
54
+ return /*#__PURE__*/_react["default"].createElement("span", {
55
+ className: (0, _classnames["default"])('tone_item', {
56
+ tone_active: tone === name
57
+ }),
58
+ onClick: function onClick() {
59
+ return setTone(name);
60
+ }
61
+ }, name);
62
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
63
+ className: "cond_item"
64
+ }, /*#__PURE__*/_react["default"].createElement("div", {
65
+ className: "item_label"
66
+ }, "Desired word count range?"), /*#__PURE__*/_react["default"].createElement("div", {
67
+ className: "cond_value"
68
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
69
+ allowClear: true,
70
+ defaultValue: "30",
71
+ onChange: function onChange(e) {
72
+ return setCount(e);
73
+ },
74
+ options: [{
75
+ value: '30',
76
+ label: '30'
77
+ }, {
78
+ value: '50',
79
+ label: '50'
80
+ }, {
81
+ value: '70',
82
+ label: '70'
83
+ }],
84
+ style: {
85
+ width: '100%'
86
+ }
87
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
88
+ className: "cond_item"
89
+ }, /*#__PURE__*/_react["default"].createElement("div", {
90
+ className: "item_label"
91
+ }, "What are the key features?"), /*#__PURE__*/_react["default"].createElement("div", {
92
+ className: "cond_value"
93
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
94
+ onChange: function onChange(e) {
95
+ return setFeatures(e.target.value);
96
+ },
97
+ value: features
98
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
99
+ className: "cond_item"
100
+ }, /*#__PURE__*/_react["default"].createElement("div", {
101
+ className: "item_label"
102
+ }, "What key details should be emphasized?"), /*#__PURE__*/_react["default"].createElement("div", {
103
+ className: "cond_value"
104
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
105
+ onChange: function onChange(e) {
106
+ return setKey(e.target.value);
107
+ },
108
+ value: key
109
+ }))));
110
+ }
@@ -0,0 +1,33 @@
1
+ .condition_wrap {
2
+ padding: 12px 12px 0 12px;
3
+ .cond_title {
4
+ font-family: Open Sans;
5
+ font-size: 16px;
6
+ font-weight: 700;
7
+ margin-bottom: 16px;
8
+ }
9
+ .cond_item {
10
+ margin-bottom: 16px;
11
+ .item_label {
12
+ font-family: Open Sans;
13
+ font-size: 14px;
14
+ font-weight: 600;
15
+ margin-bottom: 8px;
16
+ }
17
+ .cond_value {
18
+ .tone_item {
19
+ cursor: pointer;
20
+ margin-right: 8px;
21
+ padding: 7px 10px;
22
+ height: 32px;
23
+ border: 1px solid #D2D9E5;
24
+ border-radius: 100px;
25
+ }
26
+ .tone_active {
27
+ background-color: #E9F0FF;
28
+ color: #2F54EB;
29
+ border-color: #D6E4FF;
30
+ }
31
+ }
32
+ }
33
+ }
@@ -15,6 +15,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
15
15
 
16
16
  var _CopyBtn = _interopRequireDefault(require("./components/CopyBtn"));
17
17
 
18
+ var _SearchCondition = _interopRequireDefault(require("./components/SearchCondition"));
19
+
18
20
  var _common = require("../../../common");
19
21
 
20
22
  var _FonixtreeGpt = _interopRequireDefault(require("../FonixtreeGpt"));
@@ -59,6 +61,8 @@ var __extends = void 0 && (void 0).__extends || function () {
59
61
  };
60
62
  }();
61
63
 
64
+ var TextArea = _antd.Input.TextArea;
65
+
62
66
  var ChatRobot =
63
67
  /** @class */
64
68
  function (_super) {
@@ -73,7 +77,8 @@ function (_super) {
73
77
  context: [],
74
78
  isGenerating: false,
75
79
  aiImageVisible: false,
76
- loading: true
80
+ loading: true,
81
+ showCondition: true
77
82
  };
78
83
 
79
84
  _this.scrollBottom = function () {
@@ -195,7 +200,8 @@ function (_super) {
195
200
  open = _a.open,
196
201
  isGenerating = _a.isGenerating,
197
202
  aiImageVisible = _a.aiImageVisible,
198
- loading = _a.loading;
203
+ loading = _a.loading,
204
+ showCondition = _a.showCondition;
199
205
 
200
206
  if (loading) {
201
207
  return null;
@@ -218,14 +224,17 @@ function (_super) {
218
224
  closable: false,
219
225
  footer: /*#__PURE__*/_react["default"].createElement("div", {
220
226
  className: "dialog_bottom"
221
- }, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
227
+ }, /*#__PURE__*/_react["default"].createElement("div", {
228
+ className: "bottom_input"
229
+ }, /*#__PURE__*/_react["default"].createElement(TextArea, {
230
+ autoSize: true,
231
+ className: "text_area",
222
232
  onChange: this.onMessageChage,
223
233
  onPressEnter: this.onEnter,
224
234
  placeholder: "Send a message",
225
235
  value: message
226
- }), /*#__PURE__*/_react["default"].createElement("div", {
227
- className: "btn_wrap"
228
- }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
236
+ }), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
237
+ className: "image_btn",
229
238
  color: "#2F54EB",
230
239
  onClick: this.generateImage,
231
240
  size: 20,
@@ -234,14 +243,21 @@ function (_super) {
234
243
  },
235
244
  type: "icon-image"
236
245
  }), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
237
- color: message.length > 0 ? '#2F54EB' : '#C1C9D7',
238
- onClick: this.onEnter,
239
- size: 20,
240
- style: {
241
- cursor: 'pointer'
246
+ className: "toggle_btn",
247
+ color: "#2F54EB",
248
+ onClick: function onClick() {
249
+ return _this.setState({
250
+ showCondition: !showCondition
251
+ });
242
252
  },
243
- type: message.length > 0 ? 'icon-send1' : 'icon-send'
244
- }))),
253
+ size: 24,
254
+ type: showCondition ? 'icon-circle-down' : 'icon-circle-up'
255
+ })), /*#__PURE__*/_react["default"].createElement("div", {
256
+ className: (0, _classnames["default"])('generate_btn', {
257
+ disable_btn: message.length === 0
258
+ }),
259
+ onClick: this.onEnter
260
+ }, "Generate")),
245
261
  footerStyle: {
246
262
  padding: 12
247
263
  },
@@ -311,6 +327,8 @@ function (_super) {
311
327
  }, /*#__PURE__*/_react["default"].createElement(_antd.Spin, {
312
328
  spinning: true
313
329
  }))), /*#__PURE__*/_react["default"].createElement("div", {
330
+ className: "regenerate_btn_wrap"
331
+ }, /*#__PURE__*/_react["default"].createElement("div", {
314
332
  className: "regenerate_btn",
315
333
  onClick: this.onRegenarate
316
334
  }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
@@ -321,7 +339,11 @@ function (_super) {
321
339
  marginRight: 5
322
340
  },
323
341
  type: "icon-refresh"
324
- }), "Regenerate Response"))), /*#__PURE__*/_react["default"].createElement(_AiImageGenerator["default"], {
342
+ }), "Regenerate Response")), /*#__PURE__*/_react["default"].createElement("div", {
343
+ className: (0, _classnames["default"])('more_condition', {
344
+ more_condition_hide: !showCondition
345
+ })
346
+ }, /*#__PURE__*/_react["default"].createElement(_SearchCondition["default"], null)))), /*#__PURE__*/_react["default"].createElement(_AiImageGenerator["default"], {
325
347
  onClose: function onClose() {
326
348
  return _this.setState({
327
349
  aiImageVisible: false
@@ -32,12 +32,15 @@
32
32
  }
33
33
  }
34
34
  .chat_content_wrap {
35
+ display: flex;
36
+ flex-direction: column;
35
37
  position: relative;
36
- padding-bottom: 40px;
37
38
  height: 100%;
38
39
  .content_wrap {
40
+ background: #F5F6F7;
41
+ flex: 1;
39
42
  padding: 16px;
40
- height: 100%;
43
+ // height: 100%;
41
44
  overflow: scroll;
42
45
  font-family: 'Open Sans';
43
46
  font-size: 14px;
@@ -78,16 +81,18 @@
78
81
  display: flex;
79
82
  justify-content: flex-end;
80
83
  .messageWrap {
84
+ border: 1px solid #E6EAF0;
81
85
  border-radius: 4px;
82
- background: #E9F0FF;
83
- color: #2F54EB;
86
+ background: #FFF;
87
+ color: #232F46;
84
88
  }
85
89
  }
86
90
  .assistantMessage {
87
91
  .messageWrap {
88
92
  border-radius: 4px;
89
- background: #F5F6F7;
90
- color: #232F46;
93
+ background: #E9F0FF;
94
+ color: #2F54EB;
95
+ border: 1px solid #D6E4FF;
91
96
  }
92
97
  }
93
98
  .recent_response {
@@ -101,38 +106,74 @@
101
106
  }
102
107
  }
103
108
  }
104
- .regenerate_btn {
109
+
110
+ .regenerate_btn_wrap {
111
+ background: #F5F6F7;
105
112
  display: flex;
106
113
  align-items: center;
107
- position: absolute;
108
- bottom: 10px;
109
- border: 1px solid #E6EAF0;
110
- border-radius: 4px;
111
- padding: 4px 12px;
112
- left: 50%;
113
- transform: translateX(-50%);
114
- cursor: pointer;
115
- font-family: 'Open Sans';
116
- font-style: normal;
117
- font-weight: 400;
118
- font-size: 13px;
114
+ justify-content: center;
115
+ padding-bottom: 12px;
116
+ .regenerate_btn {
117
+ background-color: #FFF;
118
+ bottom: 10px;
119
+ border: 1px solid #E6EAF0;
120
+ border-radius: 4px;
121
+ padding: 4px 12px;
122
+ cursor: pointer;
123
+ font-family: 'Open Sans';
124
+ font-style: normal;
125
+ font-weight: 400;
126
+ font-size: 13px;
127
+ }
128
+ }
129
+
130
+ .more_condition {
131
+ transition: all 0.4s;
132
+ max-height: 400px;
133
+ overflow: hidden;
134
+ box-shadow: 3px 3px 8px 0px #2D304008;
135
+ box-shadow: -3px -3px 8px 0px #2D304008;
136
+ }
137
+ .more_condition_hide {
138
+ max-height: 0;
119
139
  }
120
140
  }
121
141
  .dialog_bottom {
122
142
  position: relative;
123
143
  font-size: 14px;
124
- input {
125
- padding-right: 60px !important;
144
+ .bottom_input{
145
+ display: flex;
146
+ align-items: flex-start;
147
+ .text_area {
148
+ max-height: 200px;
149
+ padding-right: 30px;
150
+ }
151
+ .image_btn {
152
+ position: absolute;
153
+ right: 40px;
154
+ top: 6px;
155
+ }
156
+ .toggle_btn {
157
+ padding: 4px 0 4px 10px;
158
+ cursor: pointer;
159
+ }
126
160
  }
127
- .btn_wrap {
128
- position: absolute;
129
- right: 15px;
130
- top: 0px;
131
- width: 50px;
132
- height: 36px;
161
+ .generate_btn {
133
162
  display: flex;
134
163
  align-items: center;
135
- justify-content: space-between;
164
+ justify-content: center;
165
+ margin-top: 8px;
166
+ height: 36px;
167
+ background: #2F54EB;
168
+ border-radius: 6px;
169
+ color:#FFF;
170
+ font-family: Open Sans;
171
+ font-size: 14px;
172
+ font-weight: 600;
173
+ cursor: pointer;
174
+ }
175
+ .disable_btn {
176
+ background: #C1C9D7;
136
177
  }
137
178
  }
138
179
  }
@@ -81,7 +81,6 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
81
81
 
82
82
  switch (selectedNode.type) {
83
83
  case 'IMAGE_GALLERY':
84
- case 'WALLET':
85
84
  case 'BANNER':
86
85
  groupName = ''; // if (!groupName) {
87
86
  // groupName = isPc() ? panelProps.image?.content?.pcName : panelProps.image?.content?.h5Name;
@@ -109,10 +108,13 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
109
108
  break;
110
109
 
111
110
  case 'TEXT':
111
+ case 'WALLET':
112
112
  groupName = panelProps.title.text;
113
113
  break;
114
114
 
115
115
  case 'RECOMMEND':
116
+ case 'AFFILIATE_RECOMMEND':
117
+ // console.log('RECOMMEND ---panelProps.groupName.text', panelProps.groupName.text);
116
118
  groupName = panelProps.groupName.text;
117
119
  break;
118
120
 
@@ -374,8 +376,11 @@ function (_super) {
374
376
  onClick: this.onSecConfigBack,
375
377
  type: "icon"
376
378
  })), /*#__PURE__*/_react["default"].createElement("div", {
377
- className: "title"
378
- }, getSecondConfigName(selectedNode, clickedGroup))), this.getSecondConfigInstance()));
379
+ className: "title",
380
+ dangerouslySetInnerHTML: {
381
+ __html: getSecondConfigName(selectedNode, clickedGroup)
382
+ }
383
+ })), this.getSecondConfigInstance()));
379
384
  };
380
385
 
381
386
  return ConfigPanel;
@@ -7,7 +7,7 @@ exports["default"] = void 0;
7
7
 
8
8
  var _cloneDeep = _interopRequireDefault(require("lodash/cloneDeep"));
9
9
 
10
- var _lodash = require("lodash");
10
+ var _debounce = _interopRequireDefault(require("lodash/debounce"));
11
11
 
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
13
 
@@ -79,7 +79,7 @@ function () {
79
79
  _this.doAction(callback);
80
80
  };
81
81
 
82
- this.doAction = (0, _lodash.debounce)(function (callback) {
82
+ this.doAction = (0, _debounce["default"])(function (callback) {
83
83
  var newCursor = _this.cursor + _this.step;
84
84
  _this.cursor = newCursor;
85
85
  var newData = (0, _cloneDeep["default"])(_this.list[newCursor]);
@@ -15,7 +15,9 @@ var _immutabilityHelper = _interopRequireDefault(require("immutability-helper"))
15
15
 
16
16
  var _react = _interopRequireWildcard(require("react"));
17
17
 
18
- var _lodash = require("lodash");
18
+ var _findIndex = _interopRequireDefault(require("lodash/findIndex"));
19
+
20
+ var _findLastIndex = _interopRequireDefault(require("lodash/findLastIndex"));
19
21
 
20
22
  var _common = require("../../../common");
21
23
 
@@ -61,7 +63,8 @@ function PageCompList(_a) {
61
63
  pageData = _a.pageData,
62
64
  onAdd = _a.onAdd,
63
65
  renderPagesManage = _a.renderPagesManage,
64
- pageName = _a.pageName;
66
+ pageName = _a.pageName,
67
+ pageType = _a.pageType;
65
68
 
66
69
  var _b = (0, _react.useState)(pageData || []),
67
70
  components = _b[0],
@@ -139,7 +142,7 @@ function PageCompList(_a) {
139
142
 
140
143
  var getLastSameIndex = function getLastSameIndex(comps, index) {
141
144
  var lastComps = comps.slice(0, index);
142
- var newIndex = (0, _lodash.findLastIndex)(lastComps, function (comp) {
145
+ var newIndex = (0, _findLastIndex["default"])(lastComps, function (comp) {
143
146
  return (0, _coreUtil.isActiveFloor)(comp.activeTerminal);
144
147
  });
145
148
  return newIndex;
@@ -147,7 +150,7 @@ function PageCompList(_a) {
147
150
 
148
151
  var getNextSameIndex = function getNextSameIndex(comps, index) {
149
152
  var nextComps = comps.slice(index + 1);
150
- var newIndex = (0, _lodash.findIndex)(nextComps, function (comp) {
153
+ var newIndex = (0, _findIndex["default"])(nextComps, function (comp) {
151
154
  return (0, _coreUtil.isActiveFloor)(comp.activeTerminal);
152
155
  });
153
156
  return newIndex + index + 1;
@@ -313,7 +316,7 @@ function PageCompList(_a) {
313
316
  className: "page-comp-list"
314
317
  }, /*#__PURE__*/_react["default"].createElement("div", {
315
318
  className: "title mb16"
316
- }, pageName), /*#__PURE__*/_react["default"].createElement(_common.Button, {
319
+ }, pageName), pageType !== 'Menu' && /*#__PURE__*/_react["default"].createElement(_common.Button, {
317
320
  icon: "icon-add",
318
321
  onClick: onAdd,
319
322
  size: "large",
@@ -116,7 +116,8 @@ function (_super) {
116
116
  language = _a.language,
117
117
  outputType = _a.outputType,
118
118
  onHtmlSave = _a.onHtmlSave,
119
- onHtmlBack = _a.onHtmlBack;
119
+ onHtmlBack = _a.onHtmlBack,
120
+ pageType = _a.pageType;
120
121
  var languageTemp = langBook[language] || {};
121
122
  return /*#__PURE__*/_react["default"].createElement("div", {
122
123
  className: "quick_menu_wrap"
@@ -138,7 +139,7 @@ function (_super) {
138
139
  className: "menu_center"
139
140
  }, /*#__PURE__*/_react["default"].createElement("div", {
140
141
  className: "device_group"
141
- }, /*#__PURE__*/_react["default"].createElement("div", {
142
+ }, pageType !== 'Menu' && /*#__PURE__*/_react["default"].createElement("div", {
142
143
  className: (0, _classnames["default"])('device_pc', {
143
144
  active: device === _constants.deviceTypeMap.PC
144
145
  }),
@@ -150,7 +151,8 @@ function (_super) {
150
151
  type: "icon-pc"
151
152
  })), /*#__PURE__*/_react["default"].createElement("div", {
152
153
  className: (0, _classnames["default"])('device_phone', {
153
- active: device === _constants.deviceTypeMap.PHONE
154
+ active: device === _constants.deviceTypeMap.PHONE,
155
+ only_mobile: pageType === 'Menu'
154
156
  }),
155
157
  "data-code": _constants.quickMenuCode.MODE_PHONE,
156
158
  onClick: this.onBtnClick
@@ -61,6 +61,10 @@
61
61
  align-items: center;
62
62
  justify-content: center;
63
63
  }
64
+ .only_mobile {
65
+ border-top-left-radius: 8px;
66
+ border-bottom-left-radius: 8px;
67
+ }
64
68
 
65
69
  .active {
66
70
  background: #E9F0FF;
@@ -58,21 +58,24 @@ function (_super) {
58
58
  _this.setState({
59
59
  renderProps: renderProps
60
60
  }, function () {
61
- document.querySelector('#render-html-wrap > div').style = 'max-width:600px;margin:auto;';
62
- /** 去除设计器模式下元素 */
63
-
64
- document.querySelectorAll('#render-html-wrap > div .composite_mask').forEach(function (el) {
65
- el.remove();
66
- });
67
- var html = document.querySelector('#render-html-wrap').innerHTML;
68
- /** 处理背景图资源引号问题 */
69
-
70
- html = html.replace(/url\("((\S|\s)*)"\)/g, 'url($1)');
71
- resolve(html);
72
-
73
- _this.setState({
74
- renderProps: null
75
- });
61
+ /** 兼容分批加载 */
62
+ setTimeout(function () {
63
+ document.querySelector('#render-html-wrap > div').style = 'max-width:600px;margin:auto;';
64
+ /** 去除设计器模式下元素 */
65
+
66
+ document.querySelectorAll('#render-html-wrap > div .composite_mask').forEach(function (el) {
67
+ el.remove();
68
+ });
69
+ var html = document.querySelector('#render-html-wrap').innerHTML;
70
+ /** 处理背景图资源引号问题 */
71
+
72
+ html = html.replace(/url\("((\S|\s)*)"\)/g, 'url($1)');
73
+ resolve(html);
74
+
75
+ _this.setState({
76
+ renderProps: null
77
+ });
78
+ }, 1000);
76
79
  });
77
80
  });
78
81
  };
@@ -1,5 +1,5 @@
1
1
  #render-html-wrap {
2
2
  position: fixed;
3
- top: 10px;
3
+ top: -99999px;
4
4
  left: 0;
5
5
  }