@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
@@ -7,13 +7,14 @@ exports.addZero = exports.addUrlQuery = void 0;
7
7
  exports.asyncDataURLtoImage = asyncDataURLtoImage;
8
8
  exports.checkFileName = exports.calcLastTime = exports.asyncNextTick = void 0;
9
9
  exports.commonFetch = commonFetch;
10
+ exports.compatibleNewPageData = void 0;
10
11
  exports.convertImageUrl = convertImageUrl;
11
12
  exports.convertToRem = void 0;
12
13
  exports.copy2ClipBoard = copy2ClipBoard;
13
14
  exports.covertKey = covertKey;
14
- exports.dragSource = void 0;
15
+ exports.dragSource = exports.downloadBase64Image = void 0;
15
16
  exports.ensure = ensure;
16
- exports.getColorRgba = void 0;
17
+ exports.getGAData = exports.getColorRgba = void 0;
17
18
  exports.getPageDataMap = getPageDataMap;
18
19
  exports.nextTick = exports.navigateTo = exports.importAsync = exports.getUrlParams = void 0;
19
20
  exports.pushGA = pushGA;
@@ -28,10 +29,30 @@ var _axios = _interopRequireDefault(require("axios"));
28
29
 
29
30
  var _lodash = require("lodash");
30
31
 
32
+ var _uuid = require("uuid");
33
+
31
34
  var _qs = _interopRequireDefault(require("qs"));
32
35
 
36
+ var _constants = require("../constants");
37
+
33
38
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
34
39
 
40
+ var __assign = void 0 && (void 0).__assign || function () {
41
+ __assign = Object.assign || function (t) {
42
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
43
+ s = arguments[i];
44
+
45
+ for (var p in s) {
46
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
47
+ }
48
+ }
49
+
50
+ return t;
51
+ };
52
+
53
+ return __assign.apply(this, arguments);
54
+ };
55
+
35
56
  var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
36
57
  function adopt(value) {
37
58
  return value instanceof P ? value : new P(function (resolve) {
@@ -722,13 +743,18 @@ var asyncNextTick = function asyncNextTick(asyncFunc, interval, count) {
722
743
  exports.asyncNextTick = asyncNextTick;
723
744
 
724
745
  var convertToRem = function convertToRem(value) {
725
- return value; // PTO项目 解开注释
726
- // if (window.magicDesign.device === 'pc' || window.magicDesign.mode === 'designer') {
727
- // return value;
728
- // }
729
- // const pxValue = parseFloat(value);
730
- // const remValue = pxValue / 50; // 假设1rem = 50px
731
- // return `${remValue}rem`;
746
+ // return value; // PTO项目 解开注释
747
+ if (window.magicDesign.device === 'pc') {
748
+ return value + "px";
749
+ }
750
+
751
+ var baseFont = ensure(function () {
752
+ return window.getComputedStyle(document.getElementsByTagName('html')[0]).fontSize.replace('px', '');
753
+ }, 50);
754
+ var pxValue = parseFloat(value);
755
+ var remValue = pxValue / baseFont; // 假设1rem = 50px
756
+
757
+ return remValue + "rem";
732
758
  };
733
759
  /** px to rem */
734
760
 
@@ -736,30 +762,126 @@ var convertToRem = function convertToRem(value) {
736
762
  exports.convertToRem = convertToRem;
737
763
 
738
764
  var pxToRem = function pxToRem(styleObj) {
739
- return styleObj; // PTO项目 解开注释
740
- // if (window.magicDesign.device === 'pc' || window.magicDesign.mode === 'designer') {
741
- // return styleObj;
742
- // }
743
- // const remObj = {};
744
- // for (const key in styleObj) {
745
- // if (styleObj.hasOwnProperty(key)) {
746
- // const value = styleObj[key];
747
- // if (typeof value === 'string' && value.endsWith('px')) {
748
- // remObj[key] = key === 'opacity' || key === 'lineHeight' ? value : convertToRem(value);
749
- // } else if (typeof value === 'number') {
750
- // remObj[key] = convertToRem(value);
751
- // } else if ((key === 'padding' || key === 'margin') && typeof value === 'string') {
752
- // const paddingValues = value.split(' ');
753
- // const remPaddingValues = paddingValues.map((paddingValue) => {
754
- // return paddingValue.endsWith('px') ? convertToRem(paddingValue) : paddingValue;
755
- // });
756
- // remObj[key] = remPaddingValues.join(' ');
757
- // } else {
758
- // remObj[key] = value;
759
- // }
760
- // }
761
- // }
762
- // return remObj;
765
+ // return styleObj; // PTO项目 解开注释
766
+ if (window.magicDesign.device === 'pc') {
767
+ return styleObj;
768
+ }
769
+
770
+ var remObj = {};
771
+
772
+ for (var key in styleObj) {
773
+ if (styleObj.hasOwnProperty(key)) {
774
+ var value = styleObj[key];
775
+
776
+ if (typeof value === 'string' && value.endsWith('px')) {
777
+ remObj[key] = convertToRem(value.split('px')[0]);
778
+ } else if (typeof value === 'number') {
779
+ remObj[key] = ['opacity', 'lineHeight', 'zIndex', 'fontWeight'].includes(key) ? value : convertToRem(value);
780
+ } else if ((key === 'padding' || key === 'margin') && typeof value === 'string') {
781
+ var paddingValues = value.split(' ');
782
+ var remPaddingValues = paddingValues.map(function (paddingValue) {
783
+ return paddingValue.endsWith('px') ? convertToRem(paddingValue) : paddingValue;
784
+ });
785
+ remObj[key] = remPaddingValues.join(' ');
786
+ } else {
787
+ remObj[key] = value;
788
+ }
789
+ }
790
+ }
791
+
792
+ return remObj;
793
+ };
794
+ /**
795
+ * 处理新老数据兼容问题
796
+ * @param pageData 大JSON
797
+ */
798
+
799
+
800
+ exports.pxToRem = pxToRem;
801
+
802
+ var compatibleNewPageData = function compatibleNewPageData(pageData) {
803
+ if (pageData.childNodes && pageData.childNodes.length > 0) {
804
+ pageData.childNodes.forEach(function (child) {
805
+ // 兼容新功能:banner 轮播的 dots 点 区分pc 移动
806
+ if (child.type === 'BANNER') {
807
+ if (!child.setting.dots.color.pc || !child.setting.dots.hoverColor.pc || !child.setting.dots.size.pc) {
808
+ child.setting.dots = __assign(__assign({}, child.setting.dots), {
809
+ color: {
810
+ pc: '#fff',
811
+ mobile: '#fff'
812
+ },
813
+ hoverColor: {
814
+ pc: '#fff',
815
+ mobile: '#fff'
816
+ },
817
+ size: {
818
+ pc: 16,
819
+ mobile: 8
820
+ },
821
+ hoverSize: {
822
+ pc: 16,
823
+ mobile: 8
824
+ }
825
+ });
826
+ }
827
+ } // 兼容新开发的功能: video新增播放按钮 的设置
828
+
829
+
830
+ if (child.type === 'VIDEO') {
831
+ // console.log('--compatibleNewPageData -- video ');
832
+ child.groupSource.forEach(function (group) {
833
+ if (!group.playIcon) {
834
+ group.playIcon = {
835
+ open: true,
836
+ parentId: group.id,
837
+ id: (0, _uuid.v4)(),
838
+ type: 'PLAY',
839
+ size: 48,
840
+ pcSize: 60,
841
+ iconType: 'light-playicon-01',
842
+ iconColor: 'Light'
843
+ };
844
+ }
845
+ }); // console.log('--compatibleNewPageData -- video add group.playIcon ', child.groupSource);
846
+ } // 兼容新功能:SEARCH 新增控制购物车和消息图标的开关
847
+
848
+
849
+ if (child.type === 'SEARCH') {
850
+ if (!child.content.icon.cartIcon || !child.content.icon.messageIcon) {
851
+ child.content.icon.cartIcon = {
852
+ pc: true,
853
+ mobile: false
854
+ };
855
+ child.content.icon.messageIcon = {
856
+ pc: false,
857
+ mobile: true
858
+ };
859
+ }
860
+ }
861
+ });
862
+ }
863
+ };
864
+
865
+ exports.compatibleNewPageData = compatibleNewPageData;
866
+
867
+ var getGAData = function getGAData(data) {
868
+ var _a;
869
+
870
+ return {
871
+ moduleId: data.id,
872
+ moduleName: data.moduleIndex + '.' + ((_a = _constants.compInfoMap[data.type]) === null || _a === void 0 ? void 0 : _a.name)
873
+ };
874
+ };
875
+
876
+ exports.getGAData = getGAData;
877
+
878
+ var downloadBase64Image = function downloadBase64Image(base64String, filename) {
879
+ // 创建一个虚拟的链接元素
880
+ var link = document.createElement('a');
881
+ link.href = base64String;
882
+ link.download = filename; // 模拟点击下载
883
+
884
+ link.click();
763
885
  };
764
886
 
765
- exports.pxToRem = pxToRem;
887
+ exports.downloadBase64Image = downloadBase64Image;
@@ -303,9 +303,24 @@ var clickUrl = function clickUrl(url) {
303
303
 
304
304
  var _b = data.params,
305
305
  params = _b === void 0 ? {} : _b;
306
+ console.log('clicked data:', data);
307
+ console.log({
308
+ type: 'jumpBrowser',
309
+ params: {
310
+ url: params.link
311
+ }
312
+ });
306
313
 
307
- if ((0, _androidUtil.browserVersion)().isApp) {
314
+ if ((0, _androidUtil.browserVersion)().isAshitaApp) {
308
315
  (0, _androidUtil.sendToApp)(data);
316
+ } else if ((0, _androidUtil.browserVersion)().isApp && params.link && params.link.startsWith('http')) {
317
+ // 兼容Nuri的 绝对路径跳转
318
+ (0, _androidUtil.sendToAndroid)({
319
+ type: 'jumpBrowser',
320
+ params: {
321
+ url: params.link
322
+ }
323
+ });
309
324
  } else {
310
325
  // 视频
311
326
  if (params.type === 'VIDEO') {
@@ -319,10 +334,9 @@ var clickUrl = function clickUrl(url) {
319
334
  if (params.type === 'GET_COUPON') {
320
335
  getCoupon(params.couponId);
321
336
  return;
322
- } // 分享
323
-
337
+ }
324
338
 
325
- if (params.type === 'SHARE_URL') {
339
+ if (params.type === 'SHARE_URL' || params.type === 'AFFILIATE_PRODUCT') {
326
340
  if (window.magicDesign.handleAction) {
327
341
  window.magicDesign.handleAction(params);
328
342
  }
@@ -15,7 +15,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
15
15
 
16
16
  /* eslint-disable */
17
17
  var precision = (0, _commonUtil.ensure)(function () {
18
- return window.ecommerce.precision;
18
+ return window.systemParams.precision;
19
19
  }, '0'); // 千分位展示
20
20
 
21
21
  var addSeparators = function addSeparators(nStr, thousandsSep, decimalSep) {
@@ -42,7 +42,7 @@ exports.addSeparators = addSeparators;
42
42
 
43
43
  var getPricePrefix = function getPricePrefix() {
44
44
  var pricePrefix = (0, _commonUtil.ensure)(function () {
45
- return window.ecommerce.prefix;
45
+ return window.systemParams.prefix;
46
46
  }, 'Rp');
47
47
  return pricePrefix;
48
48
  };
@@ -51,7 +51,7 @@ exports.getPricePrefix = getPricePrefix;
51
51
 
52
52
  var getPrecision = function getPrecision() {
53
53
  var ret = (0, _commonUtil.ensure)(function () {
54
- return window.ecommerce.precision;
54
+ return window.systemParams.precision;
55
55
  }, '0');
56
56
  return Number(ret);
57
57
  }; // 格式化金额
@@ -61,13 +61,13 @@ exports.getPrecision = getPrecision;
61
61
 
62
62
  var formatCurrency = function formatCurrency(num) {
63
63
  var displayPrecision = (0, _commonUtil.ensure)(function () {
64
- return window.ecommerce.displayCurrencyPrecision;
64
+ return window.systemParams.displayCurrencyPrecision;
65
65
  }, '0');
66
66
  var precision = (0, _commonUtil.ensure)(function () {
67
- return window.ecommerce.precision;
67
+ return window.systemParams.precision;
68
68
  }, '0');
69
69
  var pricePrefix = (0, _commonUtil.ensure)(function () {
70
- return window.ecommerce.prefix;
70
+ return window.systemParams.prefix;
71
71
  }, 'Rp');
72
72
  var numVal = num;
73
73
 
@@ -162,7 +162,7 @@ var currencyToFont = function currencyToFont(value, customPrecision, customDispl
162
162
  precision = Number(customPrecision);
163
163
  } else {
164
164
  precision = (0, _commonUtil.ensure)(function () {
165
- return window.ecommerce.precision;
165
+ return window.systemParams.precision;
166
166
  }, '0');
167
167
  }
168
168
 
@@ -180,7 +180,7 @@ var currencyToFont = function currencyToFont(value, customPrecision, customDispl
180
180
  displayPrecision = Number(customDisplayPrecision);
181
181
  } else {
182
182
  displayPrecision = (0, _commonUtil.ensure)(function () {
183
- return window.ecommerce.displayCurrencyPrecision;
183
+ return window.systemParams.displayCurrencyPrecision;
184
184
  }, 'Rp');
185
185
  }
186
186
 
@@ -1,8 +1,8 @@
1
1
  @font-face {
2
2
  font-family: "magic-box-iconfont"; /* Project id 3317752 */
3
- src: url('magic-box-iconfont.woff2?t=1686648198297') format('woff2'),
4
- url('magic-box-iconfont.woff?t=1686648198297') format('woff'),
5
- url('magic-box-iconfont.ttf?t=1686648198297') format('truetype');
3
+ src: url('magic-box-iconfont.woff2?t=1691480393512') format('woff2'),
4
+ url('magic-box-iconfont.woff?t=1691480393512') format('woff'),
5
+ url('magic-box-iconfont.ttf?t=1691480393512') format('truetype');
6
6
  }
7
7
 
8
8
  .magic-box-iconfont {
@@ -13,6 +13,70 @@
13
13
  -moz-osx-font-smoothing: grayscale;
14
14
  }
15
15
 
16
+ .magic-box-icon-ShoppingCartSimple1:before {
17
+ content: "\e680";
18
+ }
19
+
20
+ .magic-box-icon-erweima:before {
21
+ content: "\e67f";
22
+ }
23
+
24
+ .magic-box-icon-star:before {
25
+ content: "\e67d";
26
+ }
27
+
28
+ .magic-box-icon-MapPin:before {
29
+ content: "\e67e";
30
+ }
31
+
32
+ .magic-box-icon-HTML:before {
33
+ content: "\e67c";
34
+ }
35
+
36
+ .magic-box-icon-w-play-03:before {
37
+ content: "\e67b";
38
+ }
39
+
40
+ .magic-box-icon-b-play-03:before {
41
+ content: "\e671";
42
+ }
43
+
44
+ .magic-box-icon-select2:before {
45
+ content: "\e67a";
46
+ }
47
+
48
+ .magic-box-icon-b-play-02:before {
49
+ content: "\e672";
50
+ }
51
+
52
+ .magic-box-icon-b-play-05:before {
53
+ content: "\e673";
54
+ }
55
+
56
+ .magic-box-icon-b-play-01:before {
57
+ content: "\e674";
58
+ }
59
+
60
+ .magic-box-icon-w-play-01:before {
61
+ content: "\e675";
62
+ }
63
+
64
+ .magic-box-icon-w-play-04:before {
65
+ content: "\e676";
66
+ }
67
+
68
+ .magic-box-icon-w-play-02:before {
69
+ content: "\e677";
70
+ }
71
+
72
+ .magic-box-icon-b-play-04:before {
73
+ content: "\e678";
74
+ }
75
+
76
+ .magic-box-icon-w-play-05:before {
77
+ content: "\e679";
78
+ }
79
+
16
80
  .magic-box-icon-ListBullets02:before {
17
81
  content: "\e670";
18
82
  }
@@ -1,8 +1,8 @@
1
1
  @font-face {
2
2
  font-family: "magic-box-iconfont"; /* Project id 3317752 */
3
- src: url('magic-box-iconfont.woff2?t=1686648198297') format('woff2'),
4
- url('magic-box-iconfont.woff?t=1686648198297') format('woff'),
5
- url('magic-box-iconfont.ttf?t=1686648198297') format('truetype');
3
+ src: url('magic-box-iconfont.woff2?t=1691480393512') format('woff2'),
4
+ url('magic-box-iconfont.woff?t=1691480393512') format('woff'),
5
+ url('magic-box-iconfont.ttf?t=1691480393512') format('truetype');
6
6
  }
7
7
 
8
8
  .magic-box-iconfont {
@@ -13,6 +13,70 @@
13
13
  -moz-osx-font-smoothing: grayscale;
14
14
  }
15
15
 
16
+ .icon-ShoppingCartSimple1:before {
17
+ content: "\e680";
18
+ }
19
+
20
+ .icon-erweima:before {
21
+ content: "\e67f";
22
+ }
23
+
24
+ .icon-star:before {
25
+ content: "\e67d";
26
+ }
27
+
28
+ .icon-MapPin:before {
29
+ content: "\e67e";
30
+ }
31
+
32
+ .icon-HTML:before {
33
+ content: "\e67c";
34
+ }
35
+
36
+ .icon-w-play-03:before {
37
+ content: "\e67b";
38
+ }
39
+
40
+ .icon-b-play-03:before {
41
+ content: "\e671";
42
+ }
43
+
44
+ .icon-select2:before {
45
+ content: "\e67a";
46
+ }
47
+
48
+ .icon-b-play-02:before {
49
+ content: "\e672";
50
+ }
51
+
52
+ .icon-b-play-05:before {
53
+ content: "\e673";
54
+ }
55
+
56
+ .icon-b-play-01:before {
57
+ content: "\e674";
58
+ }
59
+
60
+ .icon-w-play-01:before {
61
+ content: "\e675";
62
+ }
63
+
64
+ .icon-w-play-04:before {
65
+ content: "\e676";
66
+ }
67
+
68
+ .icon-w-play-02:before {
69
+ content: "\e677";
70
+ }
71
+
72
+ .icon-b-play-04:before {
73
+ content: "\e678";
74
+ }
75
+
76
+ .icon-w-play-05:before {
77
+ content: "\e679";
78
+ }
79
+
16
80
  .icon-ListBullets02:before {
17
81
  content: "\e670";
18
82
  }