@fonixtree/magic-design 1.0.5 → 1.0.7

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 (517) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +67 -3
  2. package/es/assets/fonts/magic-box-iconfont.css.bak +67 -3
  3. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  4. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  5. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  6. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  7. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  8. package/es/assets/images/layout-icon/imageTextLeft.svg +6 -0
  9. package/es/assets/images/layout-icon/imageTextRight.svg +6 -0
  10. package/es/assets/images/layout-icon/locationLayout.png +0 -0
  11. package/es/assets/less/slider.less +49 -1
  12. package/es/common/ColorPicker/index.js +4 -1
  13. package/es/common/Field/index.js +20 -3
  14. package/es/common/ImageLazy/index.js +172 -0
  15. package/es/common/ImageLazy/index.less +0 -0
  16. package/es/common/ImageModal/index.js +35 -2
  17. package/es/common/ImagePicker/index.js +76 -12
  18. package/es/common/ImagePicker/index.less +1 -0
  19. package/es/common/LinkModal/AffiliateProductTable/index.js +348 -0
  20. package/es/common/LinkModal/BundleCampaign/index.js +2 -2
  21. package/es/common/LinkModal/CatgTable/index.js +6 -3
  22. package/es/common/LinkModal/CouponTable/index.js +10 -2
  23. package/es/common/LinkModal/FilteredProductModal/index.js +6 -7
  24. package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
  25. package/es/common/LinkModal/index.js +6 -0
  26. package/es/common/ProductModal/index.js +4 -4
  27. package/es/common/Video/index.js +11 -3
  28. package/es/common/Video/index.less +11 -7
  29. package/es/composite-comp/bol/components/Banner/defaultJSON.js +1 -1
  30. package/es/composite-comp/bol/components/Banner/index.js +15 -1
  31. package/es/composite-comp/bol/components/Banner/mobile/index.js +1 -4
  32. package/es/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  33. package/es/composite-comp/bol/components/Banner/pc/index.js +1 -4
  34. package/es/composite-comp/bol/components/Button/index.js +3 -4
  35. package/es/composite-comp/bol/components/Carousel/index.js +27 -3
  36. package/es/composite-comp/bol/components/Carousel/mobile/index.js +12 -24
  37. package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  38. package/es/composite-comp/bol/components/Carousel/pc/index.js +5 -6
  39. package/es/composite-comp/bol/components/CustomCode/defaultJSON.js +39 -0
  40. package/es/composite-comp/bol/components/CustomCode/index.js +138 -0
  41. package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
  42. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  43. package/es/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
  44. package/es/composite-comp/bol/components/ImageText/defaultJSON.js +11 -2
  45. package/es/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
  46. package/es/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  47. package/es/composite-comp/bol/components/ImageText/pc/index.js +98 -7
  48. package/es/composite-comp/bol/components/ImageText/pc/index.less +32 -0
  49. package/es/composite-comp/bol/components/Location/defaultJSON.js +60 -0
  50. package/es/composite-comp/bol/components/Location/index.js +100 -0
  51. package/es/composite-comp/bol/components/Location/index.less +15 -0
  52. package/es/composite-comp/bol/components/Newsletter/index.js +1 -4
  53. package/es/composite-comp/bol/components/Tag/index.js +3 -4
  54. package/es/composite-comp/bol/components/Text/index.js +3 -4
  55. package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +49 -10
  56. package/es/composite-comp/bol/components/Video/components/VideoTag/index.less +5 -5
  57. package/es/composite-comp/bol/components/Video/defaultJSON.js +10 -0
  58. package/es/composite-comp/bol/components/Video/index.js +23 -1
  59. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +9 -12
  60. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
  61. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +8 -11
  62. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
  63. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +9 -11
  64. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -50
  65. package/es/composite-comp/bol/components/Video/mobile/index.js +8 -49
  66. package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
  67. package/es/composite-comp/bol/components/Video/pc/Layout1/index.js +9 -12
  68. package/es/composite-comp/bol/components/Video/pc/Layout1/index.less +2 -2
  69. package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +15 -16
  70. package/es/composite-comp/bol/components/Video/pc/Layout2/index.less +4 -4
  71. package/es/composite-comp/bol/components/Video/pc/Layout3/index.js +8 -11
  72. package/es/composite-comp/bol/components/Video/pc/Layout3/index.less +2 -2
  73. package/es/composite-comp/bol/components/Video/pc/Layout4/index.js +9 -12
  74. package/es/composite-comp/bol/components/Video/pc/Layout4/index.less +5 -4
  75. package/es/composite-comp/bol/components/Video/pc/Layout5/index.js +9 -12
  76. package/es/composite-comp/bol/components/Video/pc/Layout5/index.less +12 -10
  77. package/es/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
  78. package/es/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
  79. package/es/composite-comp/bol/components/Wallet/pc/index.js +1 -4
  80. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +4 -0
  81. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
  82. package/es/composite-comp/bol/config-panels/CustomCodeConfig/MyEditor/index.js +42 -0
  83. package/es/composite-comp/bol/config-panels/CustomCodeConfig/index.js +111 -0
  84. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -1
  85. package/es/composite-comp/bol/config-panels/LocationConfig/index.js +149 -0
  86. package/es/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +12 -2
  87. package/es/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
  88. package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +182 -2
  89. package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +114 -2
  90. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +113 -2
  91. package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +64 -3
  92. package/es/composite-comp/common/components/ProductItem/index.js +1 -1
  93. package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +12 -2
  94. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
  95. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  96. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  97. package/es/composite-comp/dito/components/Recommend/mobile/index.js +2 -1
  98. package/es/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  99. package/es/composite-comp/dito/components/Recommend/pc/index.js +2 -1
  100. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
  101. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +67 -7
  102. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
  103. package/es/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
  104. package/es/composite-comp/dito/components/SignBoard/defaultJSON.js +41 -37
  105. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +37 -25
  106. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +62 -80
  107. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
  108. package/es/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +9 -47
  109. package/es/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
  110. package/es/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +68 -1
  111. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
  112. package/es/constants/component-types.js +10 -2
  113. package/es/constants/index.js +12 -2
  114. package/es/constants/layout.js +21 -1
  115. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
  116. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
  117. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
  118. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
  119. package/es/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
  120. package/es/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
  121. package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
  122. package/es/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
  123. package/es/core/Designer/AiImageGenerator/History/index.js +147 -0
  124. package/es/core/Designer/AiImageGenerator/History/index.less +75 -0
  125. package/es/core/Designer/AiImageGenerator/NumberSlider/index.js +31 -0
  126. package/es/core/Designer/AiImageGenerator/NumberSlider/index.less +8 -0
  127. package/es/core/Designer/AiImageGenerator/UploadReference/index.js +55 -0
  128. package/es/core/Designer/AiImageGenerator/UploadReference/index.less +45 -0
  129. package/es/core/Designer/AiImageGenerator/images/nodata.png +0 -0
  130. package/es/core/Designer/AiImageGenerator/index.js +752 -0
  131. package/es/core/Designer/AiImageGenerator/index.less +136 -0
  132. package/es/core/Designer/ChatRobot/components/CopyBtn/index.js +49 -0
  133. package/es/core/Designer/ChatRobot/components/CopyBtn/index.less +0 -0
  134. package/es/core/Designer/ChatRobot/index.js +343 -0
  135. package/es/core/Designer/ChatRobot/index.less +138 -0
  136. package/es/core/Designer/ChatRobot/markdown.less +1 -0
  137. package/es/core/Designer/ConfigPanel/index.js +2 -1
  138. package/es/core/Designer/FonixtreeGpt/index.js +160 -0
  139. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  140. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  141. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  142. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  143. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  144. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +96 -0
  145. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +26 -0
  146. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +101 -0
  147. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  148. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  149. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  150. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +93 -0
  151. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +26 -0
  152. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BackgroundSVG.js +27 -0
  153. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +29 -0
  154. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +49 -0
  155. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +29 -0
  156. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +26 -0
  157. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +27 -0
  158. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +31 -0
  159. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +34 -0
  160. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +41 -0
  161. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +136 -0
  162. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +25 -0
  163. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +1 -0
  164. package/es/core/Designer/TextEditModal/ToolBar/index.js +219 -0
  165. package/es/core/Designer/TextEditModal/ToolBar/index.less +19 -0
  166. package/es/core/Designer/TextEditModal/index.js +100 -0
  167. package/es/core/Designer/TextEditModal/index.less +4 -0
  168. package/es/core/Designer/TextEditModal_old/index.js +142 -0
  169. package/es/core/Designer/TextEditModal_old/index.less +25 -0
  170. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  171. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  172. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  173. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  174. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  175. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
  176. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
  177. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.js +101 -0
  178. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.less +60 -0
  179. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/CircleSVG.js +52 -0
  180. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/InitialSVG.js +51 -0
  181. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/SquareSVG.js +58 -0
  182. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +96 -0
  183. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +26 -0
  184. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +105 -0
  185. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  186. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  187. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  188. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
  189. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
  190. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.js +133 -0
  191. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.less +60 -0
  192. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/CJLDecimalSVG.js +46 -0
  193. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/DecimalSVG.js +46 -0
  194. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerAlphaSVG.js +46 -0
  195. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerRomanSVG.js +46 -0
  196. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperAlphaSVG.js +46 -0
  197. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperRomanSVG.js +46 -0
  198. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +105 -0
  199. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +26 -0
  200. package/es/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
  201. package/es/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
  202. package/es/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
  203. package/es/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
  204. package/es/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
  205. package/es/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
  206. package/es/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
  207. package/es/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +36 -0
  208. package/es/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
  209. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +151 -0
  210. package/es/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
  211. package/es/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
  212. package/es/core/Designer/ToolBarModal/index.js +354 -0
  213. package/es/core/Designer/ToolBarModal/index.less +32 -0
  214. package/es/core/Designer/index.js +56 -15
  215. package/es/decorator/index.js +38 -1
  216. package/es/decorator/lazyLoadDecorator.js +75 -0
  217. package/es/decorator/metaDecorator.js +1 -1
  218. package/es/locale/en/en.json +10 -0
  219. package/es/locale/es/es.json +10 -0
  220. package/es/locale/id/id.json +10 -0
  221. package/es/meta-comp/components/Button/index.js +7 -0
  222. package/es/meta-comp/components/Image/index.js +19 -3
  223. package/es/meta-comp/components/Text/formats/fontFamily.js +58 -0
  224. package/es/meta-comp/components/Text/formats/fontWeight.js +58 -0
  225. package/es/meta-comp/components/Text/formats/listStyleTypeStyle.js +58 -0
  226. package/es/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
  227. package/es/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
  228. package/es/meta-comp/components/Text/index.js +108 -372
  229. package/es/meta-comp/components/Text/index.less +57 -0
  230. package/es/meta-comp/config-panels/ButtonConfig/index.js +12 -12
  231. package/es/meta-comp/config-panels/ImageConfig/index.js +35 -12
  232. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-01.svg +4 -0
  233. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-02.svg +4 -0
  234. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-03.svg +4 -0
  235. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-04.svg +4 -0
  236. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-05.svg +3 -0
  237. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-01.svg +4 -0
  238. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-02.svg +4 -0
  239. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-03.svg +4 -0
  240. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-04.svg +4 -0
  241. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-05.svg +3 -0
  242. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/index.js +63 -0
  243. package/es/meta-comp/config-panels/PlayIconConfig/index.js +211 -0
  244. package/es/meta-comp/config-panels/PlayIconConfig/index.less +37 -2
  245. package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
  246. package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
  247. package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
  248. package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
  249. package/es/meta-comp/config-panels/TextConfig/index.js +14 -31
  250. package/es/meta-comp/config-panels/TextConfig/index.less +12 -16
  251. package/es/mobx/Frame.js +7 -1
  252. package/es/mobx/Store.js +3 -0
  253. package/es/utils/androidUtil.js +8 -1
  254. package/es/utils/businessUtil.js +13 -0
  255. package/es/utils/commonUtil.js +156 -34
  256. package/es/utils/coreUtil.js +18 -4
  257. package/es/utils/currencyUtil.js +8 -8
  258. package/lib/assets/fonts/magic-box-iconfont.css +67 -3
  259. package/lib/assets/fonts/magic-box-iconfont.css.bak +67 -3
  260. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  261. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  262. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  263. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  264. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  265. package/lib/assets/images/layout-icon/imageTextLeft.svg +6 -0
  266. package/lib/assets/images/layout-icon/imageTextRight.svg +6 -0
  267. package/lib/assets/images/layout-icon/locationLayout.png +0 -0
  268. package/lib/assets/less/slider.less +49 -1
  269. package/lib/common/ColorPicker/index.js +4 -1
  270. package/lib/common/Field/index.js +20 -3
  271. package/lib/common/ImageLazy/index.js +172 -0
  272. package/lib/common/ImageLazy/index.less +0 -0
  273. package/lib/common/ImageModal/index.js +35 -2
  274. package/lib/common/ImagePicker/index.js +76 -12
  275. package/lib/common/ImagePicker/index.less +1 -0
  276. package/lib/common/LinkModal/AffiliateProductTable/index.js +348 -0
  277. package/lib/common/LinkModal/BundleCampaign/index.js +2 -2
  278. package/lib/common/LinkModal/CatgTable/index.js +6 -3
  279. package/lib/common/LinkModal/CouponTable/index.js +10 -2
  280. package/lib/common/LinkModal/FilteredProductModal/index.js +6 -7
  281. package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
  282. package/lib/common/LinkModal/index.js +6 -0
  283. package/lib/common/ProductModal/index.js +4 -4
  284. package/lib/common/Video/index.js +11 -3
  285. package/lib/common/Video/index.less +11 -7
  286. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +1 -1
  287. package/lib/composite-comp/bol/components/Banner/index.js +15 -1
  288. package/lib/composite-comp/bol/components/Banner/mobile/index.js +1 -4
  289. package/lib/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  290. package/lib/composite-comp/bol/components/Banner/pc/index.js +1 -4
  291. package/lib/composite-comp/bol/components/Button/index.js +3 -4
  292. package/lib/composite-comp/bol/components/Carousel/index.js +27 -3
  293. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +12 -24
  294. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  295. package/lib/composite-comp/bol/components/Carousel/pc/index.js +5 -6
  296. package/lib/composite-comp/bol/components/CustomCode/defaultJSON.js +39 -0
  297. package/lib/composite-comp/bol/components/CustomCode/index.js +138 -0
  298. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
  299. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  300. package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
  301. package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +11 -2
  302. package/lib/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
  303. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  304. package/lib/composite-comp/bol/components/ImageText/pc/index.js +98 -7
  305. package/lib/composite-comp/bol/components/ImageText/pc/index.less +32 -0
  306. package/lib/composite-comp/bol/components/Location/defaultJSON.js +60 -0
  307. package/lib/composite-comp/bol/components/Location/index.js +100 -0
  308. package/lib/composite-comp/bol/components/Location/index.less +15 -0
  309. package/lib/composite-comp/bol/components/Newsletter/index.js +1 -4
  310. package/lib/composite-comp/bol/components/Tag/index.js +3 -4
  311. package/lib/composite-comp/bol/components/Text/index.js +3 -4
  312. package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +49 -10
  313. package/lib/composite-comp/bol/components/Video/components/VideoTag/index.less +5 -5
  314. package/lib/composite-comp/bol/components/Video/defaultJSON.js +10 -0
  315. package/lib/composite-comp/bol/components/Video/index.js +23 -1
  316. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +9 -12
  317. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
  318. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +8 -11
  319. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
  320. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +9 -11
  321. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -50
  322. package/lib/composite-comp/bol/components/Video/mobile/index.js +8 -49
  323. package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
  324. package/lib/composite-comp/bol/components/Video/pc/Layout1/index.js +9 -12
  325. package/lib/composite-comp/bol/components/Video/pc/Layout1/index.less +2 -2
  326. package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +15 -16
  327. package/lib/composite-comp/bol/components/Video/pc/Layout2/index.less +4 -4
  328. package/lib/composite-comp/bol/components/Video/pc/Layout3/index.js +8 -11
  329. package/lib/composite-comp/bol/components/Video/pc/Layout3/index.less +2 -2
  330. package/lib/composite-comp/bol/components/Video/pc/Layout4/index.js +9 -12
  331. package/lib/composite-comp/bol/components/Video/pc/Layout4/index.less +5 -4
  332. package/lib/composite-comp/bol/components/Video/pc/Layout5/index.js +9 -12
  333. package/lib/composite-comp/bol/components/Video/pc/Layout5/index.less +12 -10
  334. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
  335. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
  336. package/lib/composite-comp/bol/components/Wallet/pc/index.js +1 -4
  337. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +4 -0
  338. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
  339. package/lib/composite-comp/bol/config-panels/CustomCodeConfig/MyEditor/index.js +42 -0
  340. package/lib/composite-comp/bol/config-panels/CustomCodeConfig/index.js +111 -0
  341. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -1
  342. package/lib/composite-comp/bol/config-panels/LocationConfig/index.js +149 -0
  343. package/lib/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +12 -2
  344. package/lib/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
  345. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +182 -2
  346. package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +114 -2
  347. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +113 -2
  348. package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +64 -3
  349. package/lib/composite-comp/common/components/ProductItem/index.js +1 -1
  350. package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +12 -2
  351. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
  352. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  353. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  354. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +2 -1
  355. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  356. package/lib/composite-comp/dito/components/Recommend/pc/index.js +2 -1
  357. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
  358. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +67 -7
  359. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
  360. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
  361. package/lib/composite-comp/dito/components/SignBoard/defaultJSON.js +41 -37
  362. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +37 -25
  363. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +62 -80
  364. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
  365. package/lib/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +9 -47
  366. package/lib/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
  367. package/lib/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +68 -1
  368. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
  369. package/lib/constants/component-types.js +10 -2
  370. package/lib/constants/index.js +12 -2
  371. package/lib/constants/layout.js +21 -1
  372. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
  373. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
  374. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
  375. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
  376. package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
  377. package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
  378. package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
  379. package/lib/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
  380. package/lib/core/Designer/AiImageGenerator/History/index.js +147 -0
  381. package/lib/core/Designer/AiImageGenerator/History/index.less +75 -0
  382. package/lib/core/Designer/AiImageGenerator/NumberSlider/index.js +31 -0
  383. package/lib/core/Designer/AiImageGenerator/NumberSlider/index.less +8 -0
  384. package/lib/core/Designer/AiImageGenerator/UploadReference/index.js +55 -0
  385. package/lib/core/Designer/AiImageGenerator/UploadReference/index.less +45 -0
  386. package/lib/core/Designer/AiImageGenerator/images/nodata.png +0 -0
  387. package/lib/core/Designer/AiImageGenerator/index.js +752 -0
  388. package/lib/core/Designer/AiImageGenerator/index.less +136 -0
  389. package/lib/core/Designer/ChatRobot/components/CopyBtn/index.js +49 -0
  390. package/lib/core/Designer/ChatRobot/components/CopyBtn/index.less +0 -0
  391. package/lib/core/Designer/ChatRobot/index.js +343 -0
  392. package/lib/core/Designer/ChatRobot/index.less +138 -0
  393. package/lib/core/Designer/ChatRobot/markdown.less +1 -0
  394. package/lib/core/Designer/ConfigPanel/index.js +2 -1
  395. package/lib/core/Designer/FonixtreeGpt/index.js +160 -0
  396. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  397. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  398. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  399. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  400. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  401. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +96 -0
  402. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +26 -0
  403. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +101 -0
  404. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  405. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  406. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  407. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +93 -0
  408. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +26 -0
  409. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BackgroundSVG.js +27 -0
  410. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +29 -0
  411. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +49 -0
  412. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +29 -0
  413. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +26 -0
  414. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +27 -0
  415. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +31 -0
  416. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +34 -0
  417. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +41 -0
  418. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +136 -0
  419. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +25 -0
  420. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +1 -0
  421. package/lib/core/Designer/TextEditModal/ToolBar/index.js +219 -0
  422. package/lib/core/Designer/TextEditModal/ToolBar/index.less +19 -0
  423. package/lib/core/Designer/TextEditModal/index.js +100 -0
  424. package/lib/core/Designer/TextEditModal/index.less +4 -0
  425. package/lib/core/Designer/TextEditModal_old/index.js +142 -0
  426. package/lib/core/Designer/TextEditModal_old/index.less +25 -0
  427. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  428. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  429. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  430. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  431. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  432. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
  433. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
  434. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.js +101 -0
  435. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.less +60 -0
  436. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/CircleSVG.js +52 -0
  437. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/InitialSVG.js +51 -0
  438. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/SquareSVG.js +58 -0
  439. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +96 -0
  440. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +26 -0
  441. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +105 -0
  442. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  443. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  444. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  445. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
  446. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
  447. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.js +133 -0
  448. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.less +60 -0
  449. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/CJLDecimalSVG.js +46 -0
  450. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/DecimalSVG.js +46 -0
  451. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerAlphaSVG.js +46 -0
  452. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerRomanSVG.js +46 -0
  453. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperAlphaSVG.js +46 -0
  454. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperRomanSVG.js +46 -0
  455. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +105 -0
  456. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +26 -0
  457. package/lib/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
  458. package/lib/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
  459. package/lib/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
  460. package/lib/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
  461. package/lib/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
  462. package/lib/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
  463. package/lib/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
  464. package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +36 -0
  465. package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
  466. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +151 -0
  467. package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
  468. package/lib/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
  469. package/lib/core/Designer/ToolBarModal/index.js +354 -0
  470. package/lib/core/Designer/ToolBarModal/index.less +32 -0
  471. package/lib/core/Designer/index.js +56 -15
  472. package/lib/decorator/index.js +38 -1
  473. package/lib/decorator/lazyLoadDecorator.js +75 -0
  474. package/lib/decorator/metaDecorator.js +1 -1
  475. package/lib/locale/en/en.json +10 -0
  476. package/lib/locale/es/es.json +10 -0
  477. package/lib/locale/id/id.json +10 -0
  478. package/lib/meta-comp/components/Button/index.js +7 -0
  479. package/lib/meta-comp/components/Image/index.js +19 -3
  480. package/lib/meta-comp/components/Text/formats/fontFamily.js +58 -0
  481. package/lib/meta-comp/components/Text/formats/fontWeight.js +58 -0
  482. package/lib/meta-comp/components/Text/formats/listStyleTypeStyle.js +58 -0
  483. package/lib/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
  484. package/lib/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
  485. package/lib/meta-comp/components/Text/index.js +108 -372
  486. package/lib/meta-comp/components/Text/index.less +57 -0
  487. package/lib/meta-comp/config-panels/ButtonConfig/index.js +12 -12
  488. package/lib/meta-comp/config-panels/ImageConfig/index.js +35 -12
  489. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-01.svg +4 -0
  490. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-02.svg +4 -0
  491. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-03.svg +4 -0
  492. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-04.svg +4 -0
  493. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-05.svg +3 -0
  494. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-01.svg +4 -0
  495. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-02.svg +4 -0
  496. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-03.svg +4 -0
  497. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-04.svg +4 -0
  498. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-05.svg +3 -0
  499. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/index.js +63 -0
  500. package/lib/meta-comp/config-panels/PlayIconConfig/index.js +211 -0
  501. package/lib/meta-comp/config-panels/PlayIconConfig/index.less +37 -2
  502. package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
  503. package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
  504. package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
  505. package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
  506. package/lib/meta-comp/config-panels/TextConfig/index.js +14 -31
  507. package/lib/meta-comp/config-panels/TextConfig/index.less +12 -16
  508. package/lib/mobx/Frame.js +7 -1
  509. package/lib/mobx/Store.js +3 -0
  510. package/lib/utils/androidUtil.js +8 -1
  511. package/lib/utils/businessUtil.js +13 -0
  512. package/lib/utils/commonUtil.js +156 -34
  513. package/lib/utils/coreUtil.js +18 -4
  514. package/lib/utils/currencyUtil.js +8 -8
  515. package/package.json +5 -1
  516. package/es/assets/fonts/.DS_Store +0 -0
  517. package/lib/assets/fonts/.DS_Store +0 -0
@@ -117,7 +117,7 @@ function (_super) {
117
117
  display: 'flex'
118
118
  },
119
119
  type: "icon-search2"
120
- }))), data.content && data.content.icon.open && /*#__PURE__*/_react["default"].createElement("div", {
120
+ }))), data.content && data.content.icon.cartIcon.pc && /*#__PURE__*/_react["default"].createElement("div", {
121
121
  className: "shopping-wrap",
122
122
  onClick: function onClick() {
123
123
  return (0, _coreUtil.clickUrl)('/main/cart');
@@ -129,7 +129,7 @@ function (_super) {
129
129
  }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
130
130
  color: data.content.icon.color.pc,
131
131
  size: 16,
132
- type: "icon-ShoppingCartSimple"
132
+ type: "icon-ShoppingCartSimple1"
133
133
  }), /*#__PURE__*/_react["default"].createElement("span", {
134
134
  className: "shopping-txt"
135
135
  }, (0, _locale.i18n)('SHOPPING_CART')))), data.content && data.content.logo.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
@@ -11,43 +11,47 @@ var getDefaultJSON = function getDefaultJSON() {
11
11
  return {
12
12
  id: (0, _uuid.v4)(),
13
13
  type: 'SIGN_BOARD',
14
- // content: {
15
- // logo: {
16
- // id: uuidv4(),
17
- // open: true,
18
- // type: 'IMAGE',
19
- // content: {
20
- // h5Name: 'name2',
21
- // pcName: 'name2',
22
- // h5ImgSrc: '',
23
- // pcImgSrc: '',
24
- // clickUrl: '',
25
- // },
26
- // hover: {
27
- // open: false,
28
- // backgroundType: 'enlarge',
29
- // magnification: 1.5,
30
- // pcImgHoverUrl: '',
31
- // h5ImgHoverUrl: '',
32
- // },
33
- // },
34
- // box: {
35
- // id: uuidv4(),
36
- // open: true,
37
- // color: {
38
- // pc: '#D92929',
39
- // mobile: '#8493AF',
40
- // },
41
- // },
42
- // icon: {
43
- // id: uuidv4(),
44
- // open: true,
45
- // color: {
46
- // pc: '#D92929',
47
- // mobile: '#232F46',
48
- // },
49
- // },
50
- // },
14
+ content: {
15
+ logo: {
16
+ id: (0, _uuid.v4)(),
17
+ open: true,
18
+ type: 'IMAGE',
19
+ content: {
20
+ h5Name: 'name2',
21
+ pcName: 'name2',
22
+ h5ImgSrc: '',
23
+ pcImgSrc: '',
24
+ clickUrl: ''
25
+ },
26
+ hover: {
27
+ open: false,
28
+ backgroundType: 'enlarge',
29
+ magnification: 1.5,
30
+ pcImgHoverUrl: '',
31
+ h5ImgHoverUrl: ''
32
+ }
33
+ },
34
+ title: {
35
+ id: (0, _uuid.v4)(),
36
+ open: true,
37
+ type: 'TEXT',
38
+ specialContent: [],
39
+ text: 'Title',
40
+ content: {
41
+ sizeType: 'Customize font styles',
42
+ fontFamily: 'Open Sans',
43
+ fontWeight: 600,
44
+ fontSize: 16,
45
+ color: '#070707'
46
+ },
47
+ underline: {
48
+ open: false,
49
+ textDecorationColor: '',
50
+ textDecorationStyle: 'solid'
51
+ },
52
+ vertical: {}
53
+ }
54
+ },
51
55
  spacing: {
52
56
  pc: {
53
57
  paddingTop: 20,
@@ -13,8 +13,6 @@ var _antd = require("antd");
13
13
 
14
14
  var _common = require("../../../../../common");
15
15
 
16
- var _storeLogo = _interopRequireDefault(require("../imgs/storeLogo.png"));
17
-
18
16
  var _coreUtil = require("../../../../../utils/coreUtil");
19
17
 
20
18
  var _star = _interopRequireDefault(require("../imgs/star.svg"));
@@ -23,6 +21,8 @@ var _commonUtil = require("../../../../../utils/commonUtil");
23
21
 
24
22
  var _locale = require("../../../../../locale");
25
23
 
24
+ var _components = require("../../../../../meta-comp/components");
25
+
26
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
27
 
28
28
  var __extends = void 0 && (void 0).__extends || function () {
@@ -310,17 +310,21 @@ function (_super) {
310
310
 
311
311
  _this.toChat = function () {
312
312
  var storeInfo = _this.state.storeInfo; // 登录情况下,直接跳聊天页
313
-
314
- if (localStorage.getItem('isLogin') === 'Y') {
315
- (0, _commonUtil.navigateTo)("/chat/" + (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.sysAccount));
316
- } else {
317
- window.magicDesign.history.push({
318
- pathname: '/sign-in',
319
- state: {
320
- redirectUrl: "/chat/" + (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.sysAccount)
321
- }
322
- });
323
- }
313
+ // if (localStorage.getItem('isLogin') === 'Y') {
314
+ // navigateTo(`/chat/${storeInfo?.sysAccount}`);
315
+ // } else {
316
+ // window.magicDesign.history.push({ pathname: '/sign-in', state: { redirectUrl: `/chat/${storeInfo?.sysAccount}` } });
317
+ // }
318
+
319
+ var params = {
320
+ action: 'operation',
321
+ params: {
322
+ type: 'CHAT',
323
+ storeId: storeInfo.storeId,
324
+ sysAccount: storeInfo.sysAccount
325
+ }
326
+ };
327
+ window.magicDesign.handleAction(params);
324
328
  };
325
329
 
326
330
  return _this;
@@ -331,14 +335,16 @@ function (_super) {
331
335
  };
332
336
 
333
337
  SignBoardMobile.prototype.render = function () {
334
- var _this = this; // const { data } = this.props;
335
- // console.log('--SignBoard', data);
338
+ var _this = this;
339
+
340
+ var _a, _b;
336
341
 
342
+ var data = this.props.data; // console.log('--SignBoard', data);
337
343
 
338
- var _a = this.state,
339
- storeInfo = _a.storeInfo,
340
- isFollow = _a.isFollow,
341
- inputVal = _a.inputVal;
344
+ var _c = this.state,
345
+ storeInfo = _c.storeInfo,
346
+ isFollow = _c.isFollow,
347
+ inputVal = _c.inputVal;
342
348
  return /*#__PURE__*/_react["default"].createElement("div", {
343
349
  className: "m-sign-board-bar"
344
350
  }, /*#__PURE__*/_react["default"].createElement("div", {
@@ -363,12 +369,18 @@ function (_super) {
363
369
  type: "icon-search2"
364
370
  }))), /*#__PURE__*/_react["default"].createElement("div", {
365
371
  className: "store-info-wrap"
366
- }, /*#__PURE__*/_react["default"].createElement("img", {
367
- className: "store-logo",
368
- src: (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.storeLogoUrl) || _storeLogo["default"]
372
+ }, data.content && ((_a = data.content.logo) === null || _a === void 0 ? void 0 : _a.open) && /*#__PURE__*/_react["default"].createElement("div", {
373
+ className: "logo"
374
+ }, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
375
+ data: data.content.logo,
376
+ style: {
377
+ height: 44,
378
+ width: 44
379
+ }
380
+ })), data.content && ((_b = data.content.title) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
381
+ className: "card-text",
382
+ data: data.content.title
369
383
  }), /*#__PURE__*/_react["default"].createElement("div", {
370
- className: "store-name"
371
- }, (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.storeName) || 'Compraqui'), /*#__PURE__*/_react["default"].createElement("div", {
372
384
  onClick: this.clickCollect
373
385
  }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
374
386
  color: isFollow ? '#F1600F' : '#333333',
@@ -383,7 +395,7 @@ function (_super) {
383
395
  src: _star["default"]
384
396
  })), /*#__PURE__*/_react["default"].createElement("div", {
385
397
  className: "number"
386
- }, /*#__PURE__*/_react["default"].createElement("span", null, (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.userCollectionNum) || '1000+', " "), " ", (0, _locale.i18n)('FOLLOWERS')), /*#__PURE__*/_react["default"].createElement("div", {
398
+ }, /*#__PURE__*/_react["default"].createElement("span", null, (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.userCollectionNum) || '1000+', " "), " ", (0, _locale.i18n)('FOLLOWERS')), (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.hasCustomerService) === 'Y' && /*#__PURE__*/_react["default"].createElement("div", {
387
399
  className: "chat-btn",
388
400
  onClick: this.toChat
389
401
  }, (0, _locale.i18n)('CHAT'))));
@@ -1,82 +1,64 @@
1
1
  .m-sign-board-bar {
2
2
  width: 100%;
3
-
4
- .search {
5
- width: 100%;
6
- background: #EEEEEE;
7
- border-radius: 8px;
8
- padding: 8px 12px;
9
- height: 36px;
10
- display: flex;
11
- justify-content: space-between;
12
- align-items: center;
13
- margin-bottom: 4px;
14
- .search-input {
15
- height: 20px;
16
- font-weight: 400;
17
- font-size: 16px;
18
- line-height: 20px;
19
- padding: 0;
20
- background-color: transparent;
21
- border: none;
22
- }
23
- }
24
-
25
- .store-info-wrap {
26
- display: flex;
27
- align-items: center;
28
- margin-top: 20px;
29
- .number {
30
- font-family: 'Montserrat';
31
- font-weight: 400;
32
- font-size: 12px;
33
- line-height: 16px;
34
- color: #696973;
35
- display: flex;
36
- align-items: center;
37
- &> img {
38
- width: 14px;
39
- }
40
- &> span {
41
- font-weight: 700;
42
- font-size: 14px;
43
- line-height: 18px;
44
- color: #333333;
45
- margin: 0 4px;
46
- }
47
- &:nth-child(2) {
48
- margin-left: 24px;
49
- flex: 1;
50
- }
51
- }
52
- .chat-btn {
53
- padding: 5px 12px;
54
- // height: 26px;
55
- background: #FFFFFF;
56
- border: 1px solid #333333;
57
- border-radius: 4px;
58
- width: fit-content;
59
- font-family: 'Montserrat';
60
- font-weight: 400;
61
- font-size: 12px;
62
- line-height: 16px;
63
- text-transform: uppercase;
64
- color: #333333;
65
- }
66
- .store-logo {
67
- width: 44px;
68
- height: 44px;
69
- border-radius: 50%;
70
- }
71
- .store-name {
72
- flex: 1;
73
- margin-left: 12px;
74
- font-weight: 500;
75
- font-size: 16px;
76
- line-height: 20px;
77
- color: #070707;
78
- font-family: 'Montserrat';
79
- }
80
- }
81
-
82
- }
3
+ }
4
+ .m-sign-board-bar .search {
5
+ width: 100%;
6
+ background: #EEEEEE;
7
+ border-radius: 0.16rem;
8
+ padding: 0.16rem 0.24rem;
9
+ height: 0.72rem;
10
+ display: flex;
11
+ justify-content: space-between;
12
+ align-items: center;
13
+ margin-bottom: 0.08rem;
14
+ }
15
+ .m-sign-board-bar .search .search-input {
16
+ height: 0.4rem;
17
+ font-weight: 400;
18
+ font-size: 0.32rem;
19
+ line-height: 0.4rem;
20
+ padding: 0;
21
+ background-color: transparent;
22
+ border: none;
23
+ }
24
+ .m-sign-board-bar .store-info-wrap {
25
+ display: flex;
26
+ align-items: center;
27
+ margin-top: 0.4rem;
28
+ }
29
+ .m-sign-board-bar .store-info-wrap .number {
30
+ font-family: 'Montserrat';
31
+ font-weight: 400;
32
+ font-size: 0.24rem;
33
+ line-height: 0.32rem;
34
+ color: #696973;
35
+ display: flex;
36
+ align-items: center;
37
+ }
38
+ .m-sign-board-bar .store-info-wrap .number > img {
39
+ width: 0.28rem;
40
+ }
41
+ .m-sign-board-bar .store-info-wrap .number > span {
42
+ font-weight: 700;
43
+ font-size: 0.28rem;
44
+ line-height: 0.36rem;
45
+ color: #333333;
46
+ margin: 0 0.08rem;
47
+ }
48
+ .m-sign-board-bar .store-info-wrap .number:nth-child(2) {
49
+ margin-left: 0.48rem;
50
+ flex: 1;
51
+ }
52
+ .m-sign-board-bar .store-info-wrap .chat-btn {
53
+ padding: 0.1rem 0.24rem;
54
+ background: #FFFFFF;
55
+ border: 0.02rem solid #333333;
56
+ border-radius: 0.08rem;
57
+ width: fit-content;
58
+ font-family: 'Montserrat';
59
+ font-weight: 400;
60
+ font-size: 0.24rem;
61
+ line-height: 0.32rem;
62
+ text-transform: uppercase;
63
+ color: #333333;
64
+ }
@@ -9,6 +9,8 @@ exports["default"] = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
+ var _antd = require("antd");
13
+
12
14
  var _common = require("../../../../../common");
13
15
 
14
16
  var _ImageConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ImageConfig"));
@@ -102,14 +104,14 @@ function (_super) {
102
104
  metaOption: panelProps.box,
103
105
  toggleType: 'switch'
104
106
  }, {
105
- key: 'search3',
107
+ key: panelProps.icon.id,
106
108
  name: (0, _locale.i18n)('ICON'),
107
- value: /*#__PURE__*/_react["default"].createElement(_common.Field, {
109
+ toggleType: 'triangle',
110
+ value: /*#__PURE__*/_react["default"].createElement("div", {
108
111
  style: {
109
- marginTop: 20
110
- },
111
- title: (0, _locale.i18n)('COLOR')
112
- }, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
112
+ marginTop: 10
113
+ }
114
+ }, /*#__PURE__*/_react["default"].createElement(_common.Field, null, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
113
115
  colorType: "rgba",
114
116
  onChange: function onChange(v) {
115
117
  if ((0, _coreUtil.isPc)()) {
@@ -121,9 +123,37 @@ function (_super) {
121
123
  _this.selfRender();
122
124
  },
123
125
  value: (0, _coreUtil.isPc)() ? panelProps.icon.color.pc : panelProps.icon.color.mobile
124
- })),
125
- metaOption: panelProps.icon,
126
- toggleType: 'switch'
126
+ })), /*#__PURE__*/_react["default"].createElement("div", {
127
+ style: {
128
+ background: '#F5F6F7',
129
+ padding: '14px 12px 1px'
130
+ }
131
+ }, /*#__PURE__*/_react["default"].createElement(_common.Field, {
132
+ layout: "horizontal",
133
+ title: (0, _locale.i18n)('CART_ICON')
134
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Checkbox, {
135
+ checked: (0, _coreUtil.isPc)() ? panelProps.icon.cartIcon.pc : panelProps.icon.cartIcon.mobile,
136
+ onChange: function onChange(e) {
137
+ if ((0, _coreUtil.isPc)()) {
138
+ panelProps.icon.cartIcon.pc = e.target.checked;
139
+ } else {
140
+ panelProps.icon.cartIcon.mobile = e.target.checked;
141
+ }
142
+
143
+ _this.selfRender();
144
+ }
145
+ })), !(0, _coreUtil.isPc)() && /*#__PURE__*/_react["default"].createElement(_common.Field, {
146
+ layout: "horizontal",
147
+ title: (0, _locale.i18n)('MESSAGE_ICON')
148
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Checkbox, {
149
+ checked: panelProps.icon.messageIcon.mobile,
150
+ onChange: function onChange(e) {
151
+ panelProps.icon.messageIcon.mobile = e.target.checked;
152
+
153
+ _this.selfRender();
154
+ }
155
+ })))),
156
+ metaOption: panelProps.icon
127
157
  }];
128
158
  return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
129
159
  headerSize: "middle",
@@ -15,6 +15,8 @@ var _ImageConfig = _interopRequireDefault(require("../../../../../meta-comp/conf
15
15
 
16
16
  var _coreUtil = require("../../../../../utils/coreUtil");
17
17
 
18
+ var _TextConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/TextConfig"));
19
+
18
20
  var _locale = require("../../../../../locale");
19
21
 
20
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -67,11 +69,9 @@ function (_super) {
67
69
  }
68
70
 
69
71
  SignBoardConfigContent.prototype.render = function () {
70
- var _this = this;
71
-
72
72
  var panelProps = this.props.panelProps;
73
73
  var source = [{
74
- key: 'search1',
74
+ key: 'logo',
75
75
  name: (0, _locale.i18n)('LOGO'),
76
76
  value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
77
77
  data: panelProps.logo
@@ -79,50 +79,12 @@ function (_super) {
79
79
  metaOption: panelProps.logo,
80
80
  toggleType: 'switch'
81
81
  }, {
82
- key: 'search2',
83
- name: (0, _locale.i18n)('SEARCH_BOX'),
84
- value: /*#__PURE__*/_react["default"].createElement(_common.Field, {
85
- style: {
86
- marginTop: 20
87
- },
88
- title: (0, _locale.i18n)('COLOR')
89
- }, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
90
- colorType: "rgba",
91
- onChange: function onChange(v) {
92
- if ((0, _coreUtil.isPc)()) {
93
- panelProps.box.color.pc = v;
94
- } else {
95
- panelProps.box.color.mobile = v;
96
- }
97
-
98
- _this.selfRender();
99
- },
100
- value: (0, _coreUtil.isPc)() ? panelProps.box.color.pc : panelProps.box.color.mobile
101
- })),
102
- metaOption: panelProps.box,
103
- toggleType: 'switch'
104
- }, {
105
- key: 'search3',
106
- name: (0, _locale.i18n)('ICON'),
107
- value: /*#__PURE__*/_react["default"].createElement(_common.Field, {
108
- style: {
109
- marginTop: 20
110
- },
111
- title: (0, _locale.i18n)('COLOR')
112
- }, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
113
- colorType: "rgba",
114
- onChange: function onChange(v) {
115
- if ((0, _coreUtil.isPc)()) {
116
- panelProps.icon.color.pc = v;
117
- } else {
118
- panelProps.icon.color.mobile = v;
119
- }
120
-
121
- _this.selfRender();
122
- },
123
- value: (0, _coreUtil.isPc)() ? panelProps.icon.color.pc : panelProps.icon.color.mobile
124
- })),
125
- metaOption: panelProps.icon,
82
+ key: 'title',
83
+ name: (0, _locale.i18n)('TITLE'),
84
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
85
+ data: panelProps.title
86
+ }),
87
+ metaOption: panelProps.title,
126
88
  toggleType: 'switch'
127
89
  }];
128
90
  return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
@@ -7,6 +7,8 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
+ var _SignBoardConfigContent = _interopRequireDefault(require("./SignBoardConfigContent"));
11
+
10
12
  var _locale = require("../../../../locale");
11
13
 
12
14
  var _common = require("../../../../common");
@@ -57,8 +59,13 @@ function (_super) {
57
59
  return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
58
60
  divider: "bold",
59
61
  headerSize: "large",
60
- source: [// { key: 'signBoard1', name: i18n('CONTENT'), value: <SignBoardConfigContent panelProps={data.content} /> },
61
- {
62
+ source: [{
63
+ key: 'signBoard1',
64
+ name: (0, _locale.i18n)('CONTENT'),
65
+ value: /*#__PURE__*/_react["default"].createElement(_SignBoardConfigContent["default"], {
66
+ panelProps: data.content
67
+ })
68
+ }, {
62
69
  key: 'signBoard4',
63
70
  name: (0, _locale.i18n)('SPACING'),
64
71
  value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
@@ -55,13 +55,80 @@ function (_super) {
55
55
 
56
56
  _this.state = {};
57
57
 
58
+ _this.getImageRecommendSize = function (customize) {
59
+ var obj = null;
60
+
61
+ switch (customize === null || customize === void 0 ? void 0 : customize.layout) {
62
+ case 'newline':
63
+ switch (customize === null || customize === void 0 ? void 0 : customize.rowNum) {
64
+ case 5:
65
+ obj = {
66
+ width: 48,
67
+ height: 48
68
+ };
69
+ break;
70
+
71
+ case 4:
72
+ obj = {
73
+ width: 52,
74
+ height: 52
75
+ };
76
+ break;
77
+
78
+ case 3:
79
+ obj = {
80
+ width: 82,
81
+ height: 82
82
+ };
83
+ break;
84
+ }
85
+
86
+ break;
87
+
88
+ case 'tile':
89
+ {
90
+ switch (customize === null || customize === void 0 ? void 0 : customize.rowNum) {
91
+ case 5:
92
+ obj = {
93
+ width: 44,
94
+ height: 44
95
+ };
96
+ break;
97
+
98
+ case 4:
99
+ obj = {
100
+ width: 52,
101
+ height: 52
102
+ };
103
+ break;
104
+
105
+ case 3:
106
+ obj = {
107
+ width: 78,
108
+ height: 78
109
+ };
110
+ break;
111
+ }
112
+
113
+ break;
114
+ }
115
+ }
116
+
117
+ return obj;
118
+ };
119
+
58
120
  _this.getContentPanel = function (data, needHover) {
121
+ var parentNode = _this.props.parentNode;
122
+
123
+ var size = _this.getImageRecommendSize(parentNode.customize);
124
+
59
125
  var source = [{
60
126
  key: 'mobileNavSecondContent1',
61
127
  name: (0, _locale.i18n)('IMAGE'),
62
128
  value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
63
129
  data: data.image,
64
- needHover: needHover
130
+ needHover: needHover,
131
+ recommendImgSize: size
65
132
  }),
66
133
  metaOption: data.image
67
134
  }, {
@@ -275,7 +275,7 @@ function (_super) {
275
275
  ];
276
276
  return [4
277
277
  /*yield*/
278
- , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/brands/list", {}, 'GET')];
278
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/designer/resource/brand/list")];
279
279
 
280
280
  case 3:
281
281
  res = _a.sent();