@fonixtree/magic-design 1.0.53 → 1.0.55

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 (411) 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 +62 -6
  5. package/es/assets/fonts/magic-box-iconfont.css.bak +35 -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/button.less +5 -0
  15. package/es/assets/less/cylon-antd.less +7246 -1686
  16. package/es/assets/less/font.less +22 -0
  17. package/es/common/AffiliateProductModal/index.js +582 -0
  18. package/es/common/AffiliateProductModal/index.less +146 -0
  19. package/es/common/Button/index.less +0 -1
  20. package/es/common/CardCarousel/index.js +171 -0
  21. package/es/common/CardCarousel/index.less +28 -0
  22. package/es/common/GroupList/index.js +7 -2
  23. package/es/common/ImagePicker/index.js +1 -3
  24. package/es/common/LinkModal/CouponTable/index.js +3 -3
  25. package/es/common/LinkModal/CustomTable/index.js +1 -0
  26. package/es/common/LinkModal/FunctionTable/index.js +2 -1
  27. package/es/common/LinkModal/index.js +14 -2
  28. package/es/common/MagicLink/index.js +2 -2
  29. package/es/common/MyModal/index.js +417 -0
  30. package/es/common/MyModal/index.less +74 -0
  31. package/es/common/ProductModal/index.js +38 -3
  32. package/es/common/ProductSource/index.js +59 -18
  33. package/es/common/UrlPicker/AnchorModal/index.js +170 -0
  34. package/es/common/UrlPicker/AnchorModal/index.less +21 -0
  35. package/es/common/UrlPicker/index.js +62 -10
  36. package/es/common/index.js +16 -0
  37. package/es/composite-comp/bol/components/Banner/mobile/index.js +1 -2
  38. package/es/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  39. package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  40. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  41. package/es/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  42. package/es/composite-comp/bol/components/Video/index.js +1 -2
  43. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
  44. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
  45. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -54
  46. package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
  47. package/es/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
  48. package/es/composite-comp/bol/components/Wallet/index.js +11 -15
  49. package/es/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
  50. package/es/composite-comp/bol/components/Wallet/mobile/index.less +103 -40
  51. package/es/composite-comp/bol/components/Wallet/pc/index.js +0 -2
  52. package/es/composite-comp/bol/components/Wallet/pc/index.less +1 -40
  53. package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
  54. package/es/composite-comp/bol/components/WalletNuri/index.js +84 -0
  55. package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
  56. package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
  57. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
  58. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
  59. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
  60. package/es/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
  61. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  62. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
  63. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
  64. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
  65. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  66. package/es/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  67. package/es/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
  68. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
  69. package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
  70. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
  71. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
  72. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
  73. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
  74. package/es/composite-comp/common/components/AffiliateProductItem/index.js +168 -0
  75. package/es/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
  76. package/es/composite-comp/common/components/ProductItem/index.js +22 -20
  77. package/es/composite-comp/common/components/ProductItem/index.less +2 -12
  78. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  79. package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
  80. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +1 -0
  81. package/es/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
  82. package/es/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
  83. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
  84. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
  85. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
  86. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
  87. package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +92 -0
  88. package/es/composite-comp/dito/components/CommonFunctions/index.js +84 -0
  89. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +107 -0
  90. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +30 -0
  91. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
  92. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  93. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
  94. package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +102 -0
  95. package/es/composite-comp/dito/components/HeadNavigation/index.js +84 -0
  96. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
  97. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
  98. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
  99. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
  100. package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
  101. package/es/composite-comp/dito/components/MenuNavigation/index.js +84 -0
  102. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
  103. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
  104. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  105. package/es/composite-comp/dito/components/Orders/defaultJSON.js +89 -0
  106. package/es/composite-comp/dito/components/Orders/index.js +84 -0
  107. package/es/composite-comp/dito/components/Orders/mobile/index.js +345 -0
  108. package/es/composite-comp/dito/components/Orders/mobile/index.less +87 -0
  109. package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +95 -0
  110. package/es/composite-comp/dito/components/PersonalInformation/index.js +84 -0
  111. package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  112. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +467 -0
  113. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +132 -0
  114. package/es/composite-comp/dito/components/Recommend/mobile/index.js +6 -5
  115. package/es/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  116. package/es/composite-comp/dito/components/Recommend/pc/index.js +6 -5
  117. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
  118. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +6 -9
  119. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +62 -66
  120. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
  121. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  122. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
  123. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
  124. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  125. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
  126. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +128 -0
  127. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +113 -0
  128. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
  129. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
  130. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
  131. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +121 -0
  132. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
  133. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
  134. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
  135. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
  136. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
  137. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
  138. package/es/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +131 -0
  139. package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +114 -0
  140. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +131 -0
  141. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +118 -0
  142. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +10 -9
  143. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
  144. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
  145. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
  146. package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +122 -0
  147. package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +1 -0
  148. package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
  149. package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
  150. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +148 -0
  151. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +9 -0
  152. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +143 -0
  153. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +9 -0
  154. package/es/constants/component-types.js +45 -3
  155. package/es/constants/index.js +74 -5
  156. package/es/constants/layout.js +48 -1
  157. package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +128 -0
  158. package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
  159. package/es/core/Designer/ChatRobot/index.js +84 -17
  160. package/es/core/Designer/ChatRobot/index.less +69 -28
  161. package/es/core/Designer/ConfigPanel/index.js +14 -3
  162. package/es/core/Designer/FonixtreeGpt/index.js +222 -29
  163. package/es/core/Designer/PageCompList/index.js +6 -5
  164. package/es/core/Designer/QuickMenuBar/index.js +11 -5
  165. package/es/core/Designer/QuickMenuBar/index.less +4 -0
  166. package/es/core/Designer/RenderHtml/index.js +18 -15
  167. package/es/core/Designer/RenderHtml/index.less +1 -1
  168. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +19 -6
  169. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
  170. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
  171. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
  172. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
  173. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
  174. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
  175. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +36 -5
  176. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
  177. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
  178. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
  179. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
  180. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
  181. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
  182. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +28 -3
  183. package/es/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
  184. package/es/core/Designer/ToolBarModal/index.js +68 -22
  185. package/es/core/Designer/ToolBarModal/index.less +3 -2
  186. package/es/core/Designer/index.js +26 -2
  187. package/es/core/Renderer/index.js +74 -29
  188. package/es/decorator/compositeDecorator.js +24 -1
  189. package/es/decorator/metaDecorator.js +1 -1
  190. package/es/locale/en/en.json +16 -2
  191. package/es/locale/es/es.json +16 -2
  192. package/es/locale/id/id.json +16 -2
  193. package/es/meta-comp/components/Image/index.js +31 -25
  194. package/es/meta-comp/components/Text/formats/textAlign.js +58 -0
  195. package/es/meta-comp/components/Text/index.js +4 -1
  196. package/es/meta-comp/components/Text/index.less +8 -0
  197. package/es/meta-comp/config-panels/ImageConfig/index.js +48 -44
  198. package/es/mobx/Frame.js +17 -2
  199. package/es/mobx/UserState.js +144 -0
  200. package/es/mobx/index.js +9 -3
  201. package/es/utils/androidUtil.js +13 -2
  202. package/es/utils/businessUtil.js +25 -3
  203. package/es/utils/commonUtil.js +167 -19
  204. package/es/utils/coreUtil.js +45 -2
  205. package/es/utils/currencyUtil.js +9 -2
  206. package/lib/assets/fonts/Trueno-Light.otf +0 -0
  207. package/lib/assets/fonts/Trueno-Regular.otf +0 -0
  208. package/lib/assets/fonts/TruenoBd.otf +0 -0
  209. package/lib/assets/fonts/magic-box-iconfont.css +62 -6
  210. package/lib/assets/fonts/magic-box-iconfont.css.bak +35 -3
  211. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  212. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  213. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  214. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  215. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  216. package/lib/assets/images/base64/index.js +36 -2
  217. package/lib/assets/images/layout-icon/walletLayout2.png +0 -0
  218. package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  219. package/lib/assets/less/button.less +5 -0
  220. package/lib/assets/less/cylon-antd.less +7246 -1686
  221. package/lib/assets/less/font.less +22 -0
  222. package/lib/common/AffiliateProductModal/index.js +582 -0
  223. package/lib/common/AffiliateProductModal/index.less +146 -0
  224. package/lib/common/Button/index.less +0 -1
  225. package/lib/common/CardCarousel/index.js +171 -0
  226. package/lib/common/CardCarousel/index.less +28 -0
  227. package/lib/common/GroupList/index.js +7 -2
  228. package/lib/common/ImagePicker/index.js +1 -3
  229. package/lib/common/LinkModal/CouponTable/index.js +3 -3
  230. package/lib/common/LinkModal/CustomTable/index.js +1 -0
  231. package/lib/common/LinkModal/FunctionTable/index.js +2 -1
  232. package/lib/common/LinkModal/index.js +14 -2
  233. package/lib/common/MagicLink/index.js +2 -2
  234. package/lib/common/MyModal/index.js +417 -0
  235. package/lib/common/MyModal/index.less +74 -0
  236. package/lib/common/ProductModal/index.js +38 -3
  237. package/lib/common/ProductSource/index.js +59 -18
  238. package/lib/common/UrlPicker/AnchorModal/index.js +170 -0
  239. package/lib/common/UrlPicker/AnchorModal/index.less +21 -0
  240. package/lib/common/UrlPicker/index.js +62 -10
  241. package/lib/common/index.js +16 -0
  242. package/lib/composite-comp/bol/components/Banner/mobile/index.js +1 -2
  243. package/lib/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  244. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  245. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  246. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  247. package/lib/composite-comp/bol/components/Video/index.js +1 -2
  248. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
  249. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
  250. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -54
  251. package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
  252. package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
  253. package/lib/composite-comp/bol/components/Wallet/index.js +11 -15
  254. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
  255. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +103 -40
  256. package/lib/composite-comp/bol/components/Wallet/pc/index.js +0 -2
  257. package/lib/composite-comp/bol/components/Wallet/pc/index.less +1 -40
  258. package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
  259. package/lib/composite-comp/bol/components/WalletNuri/index.js +84 -0
  260. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
  261. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
  262. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
  263. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
  264. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
  265. package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
  266. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  267. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
  268. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
  269. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
  270. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  271. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  272. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
  273. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
  274. package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
  275. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
  276. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
  277. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
  278. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
  279. package/lib/composite-comp/common/components/AffiliateProductItem/index.js +168 -0
  280. package/lib/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
  281. package/lib/composite-comp/common/components/ProductItem/index.js +22 -20
  282. package/lib/composite-comp/common/components/ProductItem/index.less +2 -12
  283. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  284. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
  285. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +1 -0
  286. package/lib/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
  287. package/lib/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
  288. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
  289. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
  290. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
  291. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
  292. package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +92 -0
  293. package/lib/composite-comp/dito/components/CommonFunctions/index.js +84 -0
  294. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +107 -0
  295. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +30 -0
  296. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
  297. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  298. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
  299. package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +102 -0
  300. package/lib/composite-comp/dito/components/HeadNavigation/index.js +84 -0
  301. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
  302. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
  303. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
  304. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
  305. package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
  306. package/lib/composite-comp/dito/components/MenuNavigation/index.js +84 -0
  307. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
  308. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
  309. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  310. package/lib/composite-comp/dito/components/Orders/defaultJSON.js +89 -0
  311. package/lib/composite-comp/dito/components/Orders/index.js +84 -0
  312. package/lib/composite-comp/dito/components/Orders/mobile/index.js +345 -0
  313. package/lib/composite-comp/dito/components/Orders/mobile/index.less +87 -0
  314. package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +95 -0
  315. package/lib/composite-comp/dito/components/PersonalInformation/index.js +84 -0
  316. package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  317. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +467 -0
  318. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +132 -0
  319. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +6 -5
  320. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  321. package/lib/composite-comp/dito/components/Recommend/pc/index.js +6 -5
  322. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
  323. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +6 -9
  324. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +62 -66
  325. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
  326. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  327. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
  328. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
  329. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  330. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
  331. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +128 -0
  332. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +113 -0
  333. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
  334. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
  335. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
  336. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +121 -0
  337. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
  338. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
  339. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
  340. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
  341. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
  342. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
  343. package/lib/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +131 -0
  344. package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +114 -0
  345. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +131 -0
  346. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +118 -0
  347. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +10 -9
  348. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
  349. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
  350. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
  351. package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +122 -0
  352. package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +1 -0
  353. package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
  354. package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
  355. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +148 -0
  356. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +9 -0
  357. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +143 -0
  358. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +9 -0
  359. package/lib/constants/component-types.js +45 -3
  360. package/lib/constants/index.js +74 -5
  361. package/lib/constants/layout.js +48 -1
  362. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +128 -0
  363. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
  364. package/lib/core/Designer/ChatRobot/index.js +84 -17
  365. package/lib/core/Designer/ChatRobot/index.less +69 -28
  366. package/lib/core/Designer/ConfigPanel/index.js +14 -3
  367. package/lib/core/Designer/FonixtreeGpt/index.js +222 -29
  368. package/lib/core/Designer/PageCompList/index.js +6 -5
  369. package/lib/core/Designer/QuickMenuBar/index.js +11 -5
  370. package/lib/core/Designer/QuickMenuBar/index.less +4 -0
  371. package/lib/core/Designer/RenderHtml/index.js +18 -15
  372. package/lib/core/Designer/RenderHtml/index.less +1 -1
  373. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +19 -6
  374. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
  375. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
  376. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
  377. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
  378. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
  379. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
  380. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +36 -5
  381. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
  382. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
  383. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
  384. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
  385. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
  386. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
  387. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +28 -3
  388. package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
  389. package/lib/core/Designer/ToolBarModal/index.js +68 -22
  390. package/lib/core/Designer/ToolBarModal/index.less +3 -2
  391. package/lib/core/Designer/index.js +26 -2
  392. package/lib/core/Renderer/index.js +74 -29
  393. package/lib/decorator/compositeDecorator.js +24 -1
  394. package/lib/decorator/metaDecorator.js +1 -1
  395. package/lib/locale/en/en.json +16 -2
  396. package/lib/locale/es/es.json +16 -2
  397. package/lib/locale/id/id.json +16 -2
  398. package/lib/meta-comp/components/Image/index.js +31 -25
  399. package/lib/meta-comp/components/Text/formats/textAlign.js +58 -0
  400. package/lib/meta-comp/components/Text/index.js +4 -1
  401. package/lib/meta-comp/components/Text/index.less +8 -0
  402. package/lib/meta-comp/config-panels/ImageConfig/index.js +48 -44
  403. package/lib/mobx/Frame.js +17 -2
  404. package/lib/mobx/UserState.js +144 -0
  405. package/lib/mobx/index.js +9 -3
  406. package/lib/utils/androidUtil.js +13 -2
  407. package/lib/utils/businessUtil.js +25 -3
  408. package/lib/utils/commonUtil.js +167 -19
  409. package/lib/utils/coreUtil.js +45 -2
  410. package/lib/utils/currencyUtil.js +9 -2
  411. package/package.json +1 -1
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ var _default = function _default(_a) {
13
+ var onChange = _a.onChange;
14
+ return /*#__PURE__*/_react["default"].createElement("svg", {
15
+ fill: "none",
16
+ height: "10",
17
+ id: "ne-t-alignment-center",
18
+ onClick: onChange,
19
+ viewBox: "0 0 15 10",
20
+ width: "15",
21
+ xmlns: "http://www.w3.org/2000/svg"
22
+ }, /*#__PURE__*/_react["default"].createElement("path", {
23
+ clipRule: "evenodd",
24
+ d: "M0.25 1C0.25 0.585786 0.585786 0.25 1 0.25H13.375C13.7892 0.25 14.125 0.585786 14.125 1C14.125 1.41421 13.7892 1.75 13.375 1.75H1C0.585786 1.75 0.25 1.41421 0.25 1Z",
25
+ fill: "#232F46",
26
+ fillRule: "evenodd"
27
+ }), /*#__PURE__*/_react["default"].createElement("path", {
28
+ clipRule: "evenodd",
29
+ d: "M0.25 4.9375C0.25 4.52329 0.585786 4.1875 1 4.1875H13.375C13.7892 4.1875 14.125 4.52329 14.125 4.9375C14.125 5.35171 13.7892 5.6875 13.375 5.6875H1C0.585786 5.6875 0.25 5.35171 0.25 4.9375Z",
30
+ fill: "#232F46",
31
+ fillRule: "evenodd"
32
+ }), /*#__PURE__*/_react["default"].createElement("path", {
33
+ clipRule: "evenodd",
34
+ d: "M0.25 8.875C0.25 8.46079 0.585786 8.125 1 8.125H13.375C13.7892 8.125 14.125 8.46079 14.125 8.875C14.125 9.28921 13.7892 9.625 13.375 9.625H1C0.585786 9.625 0.25 9.28921 0.25 8.875Z",
35
+ fill: "#232F46",
36
+ fillRule: "evenodd"
37
+ }));
38
+ };
39
+
40
+ exports["default"] = _default;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ var _default = function _default(_a) {
13
+ var onChange = _a.onChange;
14
+ return /*#__PURE__*/_react["default"].createElement("svg", {
15
+ fill: "none",
16
+ height: "10",
17
+ id: "ne-t-alignment-left",
18
+ onClick: onChange,
19
+ viewBox: "0 0 15 10",
20
+ width: "15",
21
+ xmlns: "http://www.w3.org/2000/svg"
22
+ }, /*#__PURE__*/_react["default"].createElement("path", {
23
+ clipRule: "evenodd",
24
+ d: "M0.25 1C0.25 0.585786 0.585786 0.25 1 0.25H10C10.4142 0.25 10.75 0.585786 10.75 1C10.75 1.41421 10.4142 1.75 10 1.75H1C0.585786 1.75 0.25 1.41421 0.25 1Z",
25
+ fill: "#232F46",
26
+ fillRule: "evenodd"
27
+ }), /*#__PURE__*/_react["default"].createElement("path", {
28
+ clipRule: "evenodd",
29
+ d: "M0.25 4.9375C0.25 4.52329 0.585786 4.1875 1 4.1875H13.375C13.7892 4.1875 14.125 4.52329 14.125 4.9375C14.125 5.35171 13.7892 5.6875 13.375 5.6875H1C0.585786 5.6875 0.25 5.35171 0.25 4.9375Z",
30
+ fill: "#232F46",
31
+ fillRule: "evenodd"
32
+ }), /*#__PURE__*/_react["default"].createElement("path", {
33
+ clipRule: "evenodd",
34
+ d: "M0.25 8.875C0.25 8.46079 0.585786 8.125 1 8.125H10C10.4142 8.125 10.75 8.46079 10.75 8.875C10.75 9.28921 10.4142 9.625 10 9.625H1C0.585786 9.625 0.25 9.28921 0.25 8.875Z",
35
+ fill: "#232F46",
36
+ fillRule: "evenodd"
37
+ }));
38
+ };
39
+
40
+ exports["default"] = _default;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ var _default = function _default(_a) {
13
+ var onChange = _a.onChange;
14
+ return /*#__PURE__*/_react["default"].createElement("svg", {
15
+ fill: "none",
16
+ height: "10",
17
+ id: "ne-t-alignment-right",
18
+ onClick: onChange,
19
+ viewBox: "0 0 15 10",
20
+ width: "15",
21
+ xmlns: "http://www.w3.org/2000/svg"
22
+ }, /*#__PURE__*/_react["default"].createElement("path", {
23
+ clipRule: "evenodd",
24
+ d: "M3.625 1C3.625 0.585786 3.96079 0.25 4.375 0.25H13.375C13.7892 0.25 14.125 0.585786 14.125 1C14.125 1.41421 13.7892 1.75 13.375 1.75H4.375C3.96079 1.75 3.625 1.41421 3.625 1Z",
25
+ fill: "#232F46",
26
+ fillRule: "evenodd"
27
+ }), /*#__PURE__*/_react["default"].createElement("path", {
28
+ clipRule: "evenodd",
29
+ d: "M0.25 4.9375C0.25 4.52329 0.585786 4.1875 1 4.1875H13.375C13.7892 4.1875 14.125 4.52329 14.125 4.9375C14.125 5.35171 13.7892 5.6875 13.375 5.6875H1C0.585786 5.6875 0.25 5.35171 0.25 4.9375Z",
30
+ fill: "#232F46",
31
+ fillRule: "evenodd"
32
+ }), /*#__PURE__*/_react["default"].createElement("path", {
33
+ clipRule: "evenodd",
34
+ d: "M3.625 8.875C3.625 8.46079 3.96079 8.125 4.375 8.125H13.375C13.7892 8.125 14.125 8.46079 14.125 8.875C14.125 9.28921 13.7892 9.625 13.375 9.625H4.375C3.96079 9.625 3.625 9.28921 3.625 8.875Z",
35
+ fill: "#232F46",
36
+ fillRule: "evenodd"
37
+ }));
38
+ };
39
+
40
+ exports["default"] = _default;
@@ -27,6 +27,12 @@ var _OrderSVG = _interopRequireDefault(require("./images/OrderSVG"));
27
27
 
28
28
  var _UnorderSVG = _interopRequireDefault(require("./images/UnorderSVG"));
29
29
 
30
+ var _AlignLeftSVG = _interopRequireDefault(require("./images/AlignLeftSVG"));
31
+
32
+ var _AlignCenterSVG = _interopRequireDefault(require("./images/AlignCenterSVG"));
33
+
34
+ var _AlignRightSVG = _interopRequireDefault(require("./images/AlignRightSVG"));
35
+
30
36
  var _BulletPicker = _interopRequireDefault(require("./components/BulletPicker"));
31
37
 
32
38
  var _OrderedPicker = _interopRequireDefault(require("./components/OrderedPicker"));
@@ -63,6 +69,22 @@ var __extends = void 0 && (void 0).__extends || function () {
63
69
  };
64
70
  }();
65
71
 
72
+ var __assign = void 0 && (void 0).__assign || function () {
73
+ __assign = Object.assign || function (t) {
74
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
75
+ s = arguments[i];
76
+
77
+ for (var p in s) {
78
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
79
+ }
80
+ }
81
+
82
+ return t;
83
+ };
84
+
85
+ return __assign.apply(this, arguments);
86
+ };
87
+
66
88
  var iconTypeMap = {
67
89
  bold: _BoldSVG["default"],
68
90
  italic: _ItalicSVG["default"],
@@ -94,7 +116,10 @@ var iconTypeMap = {
94
116
  return /*#__PURE__*/_react["default"].createElement(_ColorPickerBtn["default"], _extends({
95
117
  type: "text-decoration-color"
96
118
  }, props));
97
- }
119
+ },
120
+ alignLeft: _AlignLeftSVG["default"],
121
+ alignCenter: _AlignCenterSVG["default"],
122
+ alignRight: _AlignRightSVG["default"]
98
123
  };
99
124
 
100
125
  var ToolBtn =
@@ -137,10 +162,10 @@ function (_super) {
137
162
  className: (0, _classnames["default"])('tool-btn-wrap', {
138
163
  active: active
139
164
  })
140
- }, iconTypeMap[type]({
165
+ }, iconTypeMap[type](__assign({
141
166
  value: value,
142
167
  onChange: onChange
143
- }));
168
+ }, this.props)));
144
169
  };
145
170
 
146
171
  ToolBtn.defaultProps = {};
@@ -1,5 +1,6 @@
1
1
  .tool-btn-wrap {
2
- width: 26px;
2
+ width: auto;
3
+ min-width: 26px;
3
4
  height: 26px;
4
5
  display: flex;
5
6
  align-items: center;
@@ -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"] = void 0;
6
+ exports.fontWeightList = exports.fontSizeList = exports.fontFamilyList = exports["default"] = exports.OpenSansFontWeightList = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
@@ -13,8 +13,6 @@ 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
-
18
16
  require("./index.less");
19
17
 
20
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -69,6 +67,17 @@ var fontWeightList = [{
69
67
  value: '700'
70
68
  }];
71
69
  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;
72
81
 
73
82
  var ToolBarModal =
74
83
  /** @class */
@@ -82,6 +91,7 @@ function (_super) {
82
91
  quillFormat: {}
83
92
  };
84
93
  _this.toolBarRef = /*#__PURE__*/_react["default"].createRef();
94
+ _this.selectedTextLength = 0;
85
95
 
86
96
  _this.setToolBarPosition = function () {
87
97
  var _a = _this.props.quillRef.container.getBoundingClientRect(),
@@ -101,6 +111,8 @@ function (_super) {
101
111
  var range = _this.props.quillRef.getSelection();
102
112
 
103
113
  if (range) {
114
+ _this.selectedTextLength = range.length;
115
+
104
116
  var quillFormat = _this.props.quillRef.getFormat();
105
117
 
106
118
  console.log('quillFormat: ', quillFormat);
@@ -108,6 +120,8 @@ function (_super) {
108
120
  _this.setState({
109
121
  quillFormat: quillFormat
110
122
  });
123
+ } else {
124
+ if (_this.selectedTextLength === 0) _this.props.quillRef.setSelection(0, _this.props.quillRef.getLength());
111
125
  }
112
126
  };
113
127
 
@@ -146,6 +160,8 @@ function (_super) {
146
160
  _this.props.quillRef.format('font', value);
147
161
  } else if (type == 'font-weight') {
148
162
  _this.props.quillRef.format('font-weight', value);
163
+ } else if (type == 'text-align') {
164
+ _this.props.quillRef.format('text-align', value);
149
165
  } else if (type == 'font-style') {
150
166
  _this.props.quillRef.format('font-style', 'italic' === quillFormat['font-style'] ? '' : 'italic');
151
167
  } else if (type == 'font-family') {
@@ -155,22 +171,32 @@ function (_super) {
155
171
 
156
172
  _this.props.quillRef.format('text-decoration-style', value);
157
173
  } else if (type == 'bullet') {
158
- _this.props.quillRef.format('list-style-type', value);
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', '');
159
178
 
160
- if (value === quillFormat['list-style-type']) {
161
179
  _this.props.quillRef.format('list', '');
162
180
  } else {
181
+ _this.props.quillRef.format('list-style-type', value);
182
+
163
183
  _this.props.quillRef.format('list', 'bullet');
164
184
  }
165
185
  } else if (type == 'ordered') {
166
- _this.props.quillRef.format('list-style-type', value);
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', '');
167
190
 
168
- if (value === quillFormat['list-style-type']) {
169
191
  _this.props.quillRef.format('list', '');
170
192
  } else {
193
+ _this.props.quillRef.format('list-style-type', value);
194
+
171
195
  _this.props.quillRef.format('list', 'ordered');
172
196
  }
173
197
  } else if (type == 'text-decoration-color') {
198
+ _this.props.quillRef.setSelection(0, _this.props.quillRef.getLength());
199
+
174
200
  if (value) {
175
201
  _this.props.quillRef.format('underline', true);
176
202
  } else {
@@ -207,6 +233,9 @@ function (_super) {
207
233
  var _this = this;
208
234
 
209
235
  var quillFormat = this.state.quillFormat;
236
+
237
+ var _fontWeightList = quillFormat['font-family'] === 'OpenSans' ? OpenSansFontWeightList : fontWeightList;
238
+
210
239
  return /*#__PURE__*/_react["default"].createElement("div", {
211
240
  ref: this.toolBarRef,
212
241
  className: "toolbar-wrap"
@@ -241,7 +270,7 @@ function (_super) {
241
270
  width: '150px'
242
271
  },
243
272
  value: quillFormat['font-weight']
244
- }, fontWeightList.map(function (v) {
273
+ }, _fontWeightList.map(function (v) {
245
274
  return /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
246
275
  label: v.name,
247
276
  value: v.value
@@ -263,20 +292,7 @@ function (_super) {
263
292
  label: v.name,
264
293
  value: v
265
294
  }, v, "px");
266
- }))), /*#__PURE__*/_react["default"].createElement("div", {
267
- className: "tool-item"
268
- }, /*#__PURE__*/_react["default"].createElement(_UnderlineSelect["default"], {
269
- onChange: function onChange(v) {
270
- _this.onToolBtnClick('text-decoration-style', v);
271
- },
272
- placeholder: "Underline Style",
273
- repeatCount: 28,
274
- size: "small",
275
- style: {
276
- width: '140px'
277
- },
278
- value: quillFormat['text-decoration-style']
279
- }))), /*#__PURE__*/_react["default"].createElement("div", {
295
+ })))), /*#__PURE__*/_react["default"].createElement("div", {
280
296
  className: "toolbar-row"
281
297
  }, /*#__PURE__*/_react["default"].createElement("div", {
282
298
  className: "tool-item"
@@ -301,6 +317,10 @@ function (_super) {
301
317
  _this.onToolBtnClick('text-decoration-color', value);
302
318
  },
303
319
  type: "text-decoration-color",
320
+ underlineOnChange: function underlineOnChange(value) {
321
+ return _this.onToolBtnClick('text-decoration-style', value);
322
+ },
323
+ underlineValue: quillFormat['text-decoration-style'],
304
324
  value: {
305
325
  color: quillFormat['text-decoration-color']
306
326
  }
@@ -350,6 +370,32 @@ function (_super) {
350
370
  className: "tooll-line"
351
371
  }), /*#__PURE__*/_react["default"].createElement("div", {
352
372
  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"
353
399
  }, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
354
400
  onChange: function onChange(value) {
355
401
  _this.onToolBtnClick('link', value);
@@ -14,13 +14,14 @@
14
14
 
15
15
  .tool-item {
16
16
  margin: 0 5px;
17
+ display: flex;
17
18
  }
18
19
 
19
20
  .tooll-line {
20
21
  display: inline-flex;
21
22
  width: 1px;
22
- height: 24px;
23
- background-color: rgba(0, 0, 0, .04);
23
+ height: 16px;
24
+ background-color: #C1C9D7;
24
25
  margin: 0 5px;
25
26
  }
26
27
 
@@ -263,6 +263,7 @@ window.magicDesign = {
263
263
 
264
264
  var setDesignConfig = function setDesignConfig(data) {
265
265
  window.magicDesign = __assign(__assign(__assign({}, window.magicDesign), data), {
266
+ designMode: true,
266
267
  compWidth: Number(data.compWidth),
267
268
  compSpacing: Number(data.compSpacing),
268
269
  MBaseUrl: data.MBaseUrl || 'operation/v1',
@@ -271,6 +272,13 @@ var setDesignConfig = function setDesignConfig(data) {
271
272
  };
272
273
 
273
274
  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
+ });
274
282
  /**
275
283
  * @class Designer
276
284
  * 主入口。
@@ -459,7 +467,9 @@ function (_super) {
459
467
  var _a = _this.props,
460
468
  onPublish = _a.onPublish,
461
469
  onSave = _a.onSave,
462
- onPreviews = _a.onPreviews;
470
+ onPreviews = _a.onPreviews,
471
+ onPush = _a.onPush,
472
+ onSetAsTemp = _a.onSetAsTemp;
463
473
  var _b = _this.state,
464
474
  device = _b.device,
465
475
  MPageData = _b.MPageData;
@@ -494,6 +504,14 @@ function (_super) {
494
504
 
495
505
  break;
496
506
 
507
+ case _constants.quickMenuCode.PUSH:
508
+ onPush(handleParams);
509
+ break;
510
+
511
+ case _constants.quickMenuCode.SET_AS_TEMPLATE:
512
+ onSetAsTemp(handleParams);
513
+ break;
514
+
497
515
  case _constants.quickMenuCode.PUBLISH:
498
516
  onPublish(handleParams);
499
517
  break;
@@ -510,6 +528,9 @@ function (_super) {
510
528
  break;
511
529
 
512
530
  case _constants.quickMenuCode.SAVE:
531
+ /** 如果保存则重置为mobile,同一移动端截图 #10504010 */
532
+ _this.onSwitchDevice(_constants.deviceTypeMap.PHONE);
533
+
513
534
  onSave(handleParams);
514
535
  break;
515
536
 
@@ -583,6 +604,7 @@ function (_super) {
583
604
  onHtmlBack: _this.onHtmlBack,
584
605
  onHtmlSave: _this.onHtmlSave,
585
606
  outputType: _this.props.outputType,
607
+ pageType: _this.props.pageType,
586
608
  redoDisable: !_this.history.redoAble(),
587
609
  undoDisable: !_this.history.undoAble()
588
610
  });
@@ -741,7 +763,8 @@ function (_super) {
741
763
  pageName = _b.pageName,
742
764
  onCancelPublish = _b.onCancelPublish,
743
765
  leftTitle = _b.leftTitle,
744
- outputType = _b.outputType;
766
+ outputType = _b.outputType,
767
+ pageType = _b.pageType;
745
768
  var renderPagesManage = pagesManager;
746
769
 
747
770
  if (outputType == 'html') {
@@ -765,6 +788,7 @@ function (_super) {
765
788
  onAdd: this.onAdd,
766
789
  pageData: MPageData,
767
790
  pageName: pageName,
791
+ pageType: pageType,
768
792
  renderPagesManage: renderPagesManage,
769
793
  setPageData: this.setPageData
770
794
  }), /*#__PURE__*/_react["default"].createElement(_CompListPanel["default"], {
@@ -15,10 +15,16 @@ 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
+
18
22
  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); }
19
23
 
20
24
  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; }
21
25
 
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
+
22
28
  var __assign = void 0 && (void 0).__assign || function () {
23
29
  __assign = Object.assign || function (t) {
24
30
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -37,11 +43,13 @@ var __assign = void 0 && (void 0).__assign || function () {
37
43
 
38
44
  var setDesignConfig = function setDesignConfig(props) {
39
45
  var config = props.config,
40
- device = props.device;
46
+ device = props.device,
47
+ isPreview = props.isPreview;
41
48
  window.magicDesign = __assign(__assign({
42
49
  pageBackground: '#f2f2f2',
43
50
  mode: 'renderer',
44
51
  device: device,
52
+ designMode: isPreview,
45
53
  navigatePreUrl: ''
46
54
  }, config), {
47
55
  compSpacing: Number(config.compSpacing),
@@ -56,40 +64,43 @@ var setDesignConfig = function setDesignConfig(props) {
56
64
  var Renderer = function Renderer(props) {
57
65
  var pageData = props.pageData,
58
66
  outputType = props.outputType,
59
- noSetWindow = props.noSetWindow;
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];
60
77
 
61
78
  if (!noSetWindow) {
62
79
  setDesignConfig(props);
63
80
  }
64
81
 
65
82
  window.magicDesignPageData = pageData;
66
- var pageBackground = window.magicDesign.pageBackground; // 根据楼层展示设备进行过滤
67
-
68
- var filterCompFloor = function filterCompFloor() {
69
- var source = [];
83
+ var pageBackground = window.magicDesign.pageBackground;
84
+ (0, _react.useEffect)(function () {
85
+ console.log('----pageData change', pageData);
86
+ var filterData = [];
70
87
 
71
88
  if (pageData && pageData.childNodes && pageData.childNodes.length) {
72
- source = pageData.childNodes.filter(function (node) {
89
+ filterData = pageData.childNodes.filter(function (node) {
73
90
  return (0, _coreUtil.isActiveFloor)(node.activeTerminal);
74
91
  });
75
- }
92
+ } // 首页组建分批渲染按5个一组
76
93
 
77
- return source;
78
- };
79
94
 
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]);
80
103
  (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
- });
93
104
  setTimeout(function () {
94
105
  var _a;
95
106
 
@@ -99,15 +110,44 @@ var Renderer = function Renderer(props) {
99
110
  });
100
111
  }, 300);
101
112
  });
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
+
102
143
  return /*#__PURE__*/_react["default"].createElement("div", {
103
144
  className: "render_wrap",
104
145
  magic_design: "",
105
- style: {
146
+ style: __assign({
106
147
  height: '100%',
107
- background: pageBackground,
108
- overflow: 'auto'
109
- }
110
- }, filterCompFloor().map(function (nodeData, moduleIndex) {
148
+ background: pageBackground
149
+ }, getRestStyle())
150
+ }, floors.length > 0 && floors.map(function (nodeData, moduleIndex) {
111
151
  var Clazz = _componentTypes.componentMap[nodeData.type];
112
152
 
113
153
  if (!Clazz) {
@@ -129,13 +169,18 @@ var Renderer = function Renderer(props) {
129
169
  key: nodeData.id,
130
170
  id: 'node-' + nodeData.id
131
171
  }, /*#__PURE__*/_react["default"].createElement(Clazz, __assign({}, newInstanceProps), null));
132
- }));
172
+ }), modalState.visible && /*#__PURE__*/_react["default"].createElement(_common.MyModal, _extends({
173
+ isPreview: isPreview
174
+ }, modalState, {
175
+ onClose: onCloseModal
176
+ })));
133
177
  };
134
178
 
135
179
  Renderer.defaultProps = {
136
180
  pageData: {},
137
181
  device: 'pc',
138
- config: {}
182
+ config: {},
183
+ isPreview: false
139
184
  };
140
185
  var _default = Renderer;
141
186
  exports["default"] = _default;