@fonixtree/magic-design 0.0.8 → 0.0.9

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 (352) hide show
  1. package/_virtual/Alpha.js +3 -0
  2. package/_virtual/Alpha2.js +3 -0
  3. package/_virtual/AlphaPointer.js +3 -0
  4. package/_virtual/Block.js +3 -0
  5. package/_virtual/BlockSwatches.js +3 -0
  6. package/_virtual/CheckIcon.js +3 -0
  7. package/_virtual/Checkboard.js +3 -0
  8. package/_virtual/Chrome.js +3 -0
  9. package/_virtual/ChromeFields.js +3 -0
  10. package/_virtual/ChromePointer.js +3 -0
  11. package/_virtual/ChromePointerCircle.js +3 -0
  12. package/_virtual/Circle.js +3 -0
  13. package/_virtual/CircleSwatch.js +3 -0
  14. package/_virtual/ColorWrap.js +3 -0
  15. package/_virtual/Compact.js +3 -0
  16. package/_virtual/CompactColor.js +3 -0
  17. package/_virtual/CompactFields.js +3 -0
  18. package/_virtual/EditableInput.js +3 -0
  19. package/_virtual/Github.js +3 -0
  20. package/_virtual/GithubSwatch.js +3 -0
  21. package/_virtual/Hue.js +3 -0
  22. package/_virtual/Hue2.js +3 -0
  23. package/_virtual/HuePointer.js +3 -0
  24. package/_virtual/Material.js +3 -0
  25. package/_virtual/Photoshop.js +3 -0
  26. package/_virtual/PhotoshopButton.js +3 -0
  27. package/_virtual/PhotoshopFields.js +3 -0
  28. package/_virtual/PhotoshopPointer.js +3 -0
  29. package/_virtual/PhotoshopPointerCircle.js +3 -0
  30. package/_virtual/PhotoshopPreviews.js +3 -0
  31. package/_virtual/Raised.js +3 -0
  32. package/_virtual/ResizeObserver.es.js +6 -0
  33. package/_virtual/Saturation.js +3 -0
  34. package/_virtual/Sketch.js +3 -0
  35. package/_virtual/SketchFields.js +3 -0
  36. package/_virtual/SketchPresetColors.js +3 -0
  37. package/_virtual/Slider2.js +3 -0
  38. package/_virtual/SliderPointer.js +3 -0
  39. package/_virtual/SliderSwatch.js +3 -0
  40. package/_virtual/SliderSwatches.js +3 -0
  41. package/_virtual/Swatch.js +3 -0
  42. package/_virtual/Swatches.js +3 -0
  43. package/_virtual/SwatchesColor.js +3 -0
  44. package/_virtual/SwatchesGroup.js +3 -0
  45. package/_virtual/Twitter.js +3 -0
  46. package/_virtual/UnfoldMoreHorizontalIcon.js +3 -0
  47. package/_virtual/__node-resolve_empty.js +6 -0
  48. package/_virtual/_cloneBuffer.js +3 -0
  49. package/_virtual/_commonjs-dynamic-modules.js +5 -0
  50. package/_virtual/_commonjsHelpers.js +28 -0
  51. package/_virtual/_node-resolve_empty.js +3 -0
  52. package/_virtual/_nodeUtil.js +3 -0
  53. package/_virtual/_rollupPluginBabelHelpers.js +18 -0
  54. package/_virtual/active.js +3 -0
  55. package/_virtual/alpha3.js +3 -0
  56. package/_virtual/arrows.js +3 -0
  57. package/_virtual/autoprefix.js +3 -0
  58. package/_virtual/axios.js +3 -0
  59. package/_virtual/checkboard2.js +3 -0
  60. package/_virtual/color.js +3 -0
  61. package/_virtual/colors.es2015.js +6 -0
  62. package/_virtual/default-props.js +3 -0
  63. package/_virtual/dots.js +3 -0
  64. package/_virtual/each.js +3 -0
  65. package/_virtual/flattenNames.js +3 -0
  66. package/_virtual/hover.js +3 -0
  67. package/_virtual/hue3.js +3 -0
  68. package/_virtual/index.js +3 -0
  69. package/_virtual/index10.js +3 -0
  70. package/_virtual/index11.js +3 -0
  71. package/_virtual/index12.js +3 -0
  72. package/_virtual/index2.js +5 -0
  73. package/_virtual/index3.js +3 -0
  74. package/_virtual/index4.js +3 -0
  75. package/_virtual/index5.js +3 -0
  76. package/_virtual/index6.js +3 -0
  77. package/_virtual/index7.js +3 -0
  78. package/_virtual/index8.js +3 -0
  79. package/_virtual/index9.js +3 -0
  80. package/_virtual/initial-state.js +3 -0
  81. package/_virtual/inner-slider.js +3 -0
  82. package/_virtual/innerSliderUtils.js +3 -0
  83. package/_virtual/interaction.js +3 -0
  84. package/_virtual/interopRequireDefault.js +3 -0
  85. package/_virtual/isBuffer.js +3 -0
  86. package/_virtual/lodash.js +3 -0
  87. package/_virtual/loop.js +3 -0
  88. package/_virtual/macy.js +3 -0
  89. package/_virtual/mergeClasses.js +3 -0
  90. package/_virtual/moment.js +3 -0
  91. package/_virtual/moment2.js +3 -0
  92. package/_virtual/react-dom.development.js +3 -0
  93. package/_virtual/react-is.development.js +3 -0
  94. package/_virtual/react-is.production.min.js +3 -0
  95. package/_virtual/regeneratorRuntime.js +3 -0
  96. package/_virtual/rng-browser.js +3 -0
  97. package/_virtual/saturation2.js +3 -0
  98. package/_virtual/scheduler-tracing.development.js +3 -0
  99. package/_virtual/scheduler-tracing.production.min.js +3 -0
  100. package/_virtual/scheduler.development.js +3 -0
  101. package/_virtual/scheduler.production.min.js +3 -0
  102. package/_virtual/slider.js +3 -0
  103. package/_virtual/tinycolor.js +3 -0
  104. package/_virtual/toArray.js +3 -0
  105. package/_virtual/tracing.js +3 -0
  106. package/_virtual/track.js +3 -0
  107. package/_virtual/typeof.js +3 -0
  108. package/package.json +4 -2
  109. package/src/components/assets/images/layout-icon/carouselLayout1.png.js +3 -0
  110. package/src/components/assets/images/layout-icon/carouselLayout2.png.js +3 -0
  111. package/src/components/assets/images/layout-icon/dividerLayout.svg.js +3 -0
  112. package/src/components/assets/images/layout-icon/imageGalleryLayout1.png.js +3 -0
  113. package/src/components/assets/images/layout-icon/imageGalleryLayout2.png.js +3 -0
  114. package/src/components/assets/images/layout-icon/imageGalleryLayout3.png.js +3 -0
  115. package/src/components/assets/images/layout-icon/layout-imagetext-m1-1.png.js +3 -0
  116. package/src/components/assets/images/layout-icon/layout-imagetext-m1-2.png.js +3 -0
  117. package/src/components/assets/images/layout-icon/layout-imagetext-m1-3.png.js +3 -0
  118. package/src/components/assets/images/layout-icon/layout-imagetext-m2.png.js +3 -0
  119. package/src/components/assets/images/layout-icon/layout-imagetext-m3.png.js +3 -0
  120. package/src/components/assets/images/layout-icon/layout-imagetext-p1.png.js +3 -0
  121. package/src/components/assets/images/layout-icon/layout-imagetext-p2.png.js +3 -0
  122. package/src/components/assets/images/layout-icon/layout-imagetext-p4.png.js +3 -0
  123. package/src/components/assets/images/layout-icon/layout-search.png.js +3 -0
  124. package/src/components/assets/images/layout-icon/newsletter.svg.js +3 -0
  125. package/src/components/assets/less/cylon-antd.less.js +3 -0
  126. package/src/components/assets/less/index.less.js +4 -0
  127. package/src/components/common/AlignSelector/index.js +65 -0
  128. package/src/components/common/AlignSelector/index.less.js +4 -0
  129. package/src/components/common/Button/index.js +155 -0
  130. package/src/components/common/Button/index.less.js +4 -0
  131. package/src/components/common/ButtonIconLayout/index.js +66 -0
  132. package/src/components/common/ButtonIconLayout/index.less.js +4 -0
  133. package/src/components/common/Collapse/index.js +404 -0
  134. package/src/components/common/Collapse/index.less.js +4 -0
  135. package/src/components/common/ColorPicker/index.js +95 -0
  136. package/src/components/common/ColorPicker/index.less.js +4 -0
  137. package/src/components/common/ColorPickerInput/index.js +76 -0
  138. package/src/components/common/ColorPickerInput/index.less.js +4 -0
  139. package/src/components/common/CountDown/index.js +110 -0
  140. package/src/components/common/CountDown/index.less.js +4 -0
  141. package/src/components/common/Field/index.js +43 -0
  142. package/src/components/common/Field/index.less.js +4 -0
  143. package/src/components/common/FontStyles/index.js +124 -0
  144. package/src/components/common/FontStyles/index.less.js +4 -0
  145. package/src/components/common/GroupList/defaultImg.png.js +3 -0
  146. package/src/components/common/GroupList/index.js +170 -0
  147. package/src/components/common/GroupList/index.less.js +4 -0
  148. package/src/components/common/IconPicker/index.js +93 -0
  149. package/src/components/common/IconPicker/index.less.js +4 -0
  150. package/src/components/common/Iconfont/index.js +74 -0
  151. package/src/components/common/Iconfont/index.less.js +4 -0
  152. package/src/components/common/ImageModal/CommonModal/const.js +16 -0
  153. package/src/components/common/ImageModal/CommonModal/index.js +114 -0
  154. package/src/components/common/ImageModal/CommonSelPicCard/index.js +147 -0
  155. package/src/components/common/ImageModal/CommonSelPicCard/index.less.js +4 -0
  156. package/src/components/common/ImageModal/const.js +18 -0
  157. package/src/components/common/ImageModal/index.js +628 -0
  158. package/src/components/common/ImageModal/index.less.js +4 -0
  159. package/src/components/common/ImagePicker/index.js +124 -0
  160. package/src/components/common/ImagePicker/index.less.js +4 -0
  161. package/src/components/common/InputNumber/index.js +135 -0
  162. package/src/components/common/InputNumber/index.less.js +4 -0
  163. package/src/components/common/LayoutSelector/imgs/center.png.js +3 -0
  164. package/src/components/common/LayoutSelector/imgs/left.png.js +3 -0
  165. package/src/components/common/LayoutSelector/imgs/right.png.js +3 -0
  166. package/src/components/common/LayoutSelector/index.js +70 -0
  167. package/src/components/common/LayoutSelector/index.less.js +4 -0
  168. package/src/components/common/LinkModal/CatgTable/index.js +159 -0
  169. package/src/components/common/LinkModal/CouponTable/index.js +192 -0
  170. package/src/components/common/LinkModal/CustomTable/index.js +153 -0
  171. package/src/components/common/LinkModal/FilteredProductModal/index.js +544 -0
  172. package/src/components/common/LinkModal/FilteredProductModal/index.less.js +4 -0
  173. package/src/components/common/LinkModal/FunctionTable/index.js +147 -0
  174. package/src/components/common/LinkModal/ProductDetailPage/index.js +322 -0
  175. package/src/components/common/LinkModal/ProductDetailPage/index.less.js +4 -0
  176. package/src/components/common/LinkModal/index.js +193 -0
  177. package/src/components/common/LinkModal/index.less.js +4 -0
  178. package/src/components/common/NewImg/index.js +91 -0
  179. package/src/components/common/ProductModal/index.js +637 -0
  180. package/src/components/common/ProductModal/index.less.js +4 -0
  181. package/src/components/common/ProductSource/index.js +91 -0
  182. package/src/components/common/ProductSource/index.less.js +4 -0
  183. package/src/components/common/RcCollapse/Collapse.js +176 -0
  184. package/src/components/common/RcCollapse/Panel.js +146 -0
  185. package/src/components/common/RcCollapse/PanelContent.js +41 -0
  186. package/src/components/common/RcCollapse/index.js +6 -0
  187. package/src/components/common/RcCollapse/index.less.js +4 -0
  188. package/src/components/common/RcCollapse/motionUtil.js +37 -0
  189. package/src/components/common/Slider/index.js +175 -0
  190. package/src/components/common/Slider/index.less.js +4 -0
  191. package/src/components/common/SwitchCollapse/index.js +243 -0
  192. package/src/components/common/SwitchCollapse/index.less.js +4 -0
  193. package/src/components/common/UrlPicker/index.js +81 -0
  194. package/src/components/common/UrlPicker/index.less.js +4 -0
  195. package/src/components/composite-comp/bol/components/Banner/defaultJSON.js +258 -0
  196. package/src/components/composite-comp/bol/components/Banner/imgs/banner.png.js +3 -0
  197. package/src/components/composite-comp/bol/components/Banner/index.js +34 -0
  198. package/src/components/composite-comp/bol/components/Banner/mobile/index.js +256 -0
  199. package/src/components/composite-comp/bol/components/Banner/mobile/index.less.js +4 -0
  200. package/src/components/composite-comp/bol/components/Banner/pc/index.js +334 -0
  201. package/src/components/composite-comp/bol/components/Banner/pc/index.less.js +4 -0
  202. package/src/components/composite-comp/bol/components/Button/defaultJSON.js +93 -0
  203. package/src/components/composite-comp/bol/components/Button/index.js +48 -0
  204. package/src/components/composite-comp/bol/components/Button/index.less.js +4 -0
  205. package/src/components/composite-comp/bol/components/Carousel/defaultJSON.js +286 -0
  206. package/src/components/composite-comp/bol/components/Carousel/imgs/defaultImg.png.js +3 -0
  207. package/src/components/composite-comp/bol/components/Carousel/index.js +37 -0
  208. package/src/components/composite-comp/bol/components/Carousel/mobile/index.js +217 -0
  209. package/src/components/composite-comp/bol/components/Carousel/mobile/index.less.js +4 -0
  210. package/src/components/composite-comp/bol/components/Carousel/pc/index.js +208 -0
  211. package/src/components/composite-comp/bol/components/Carousel/pc/index.less.js +4 -0
  212. package/src/components/composite-comp/bol/components/Divider/defaultJSON.js +40 -0
  213. package/src/components/composite-comp/bol/components/Divider/index.js +48 -0
  214. package/src/components/composite-comp/bol/components/ImageGallery/defaultJSON.js +64 -0
  215. package/src/components/composite-comp/bol/components/ImageGallery/index.js +30 -0
  216. package/src/components/composite-comp/bol/components/ImageGallery/mobile/index.js +47 -0
  217. package/src/components/composite-comp/bol/components/ImageGallery/mobile/index.less.js +4 -0
  218. package/src/components/composite-comp/bol/components/ImageText/defaultJSON.js +535 -0
  219. package/src/components/composite-comp/bol/components/ImageText/index.js +33 -0
  220. package/src/components/composite-comp/bol/components/ImageText/mobile/index.js +143 -0
  221. package/src/components/composite-comp/bol/components/ImageText/mobile/index.less.js +4 -0
  222. package/src/components/composite-comp/bol/components/ImageText/pc/index.js +112 -0
  223. package/src/components/composite-comp/bol/components/ImageText/pc/index.less.js +4 -0
  224. package/src/components/composite-comp/bol/components/Newsletter/defaultJSON.js +114 -0
  225. package/src/components/composite-comp/bol/components/Newsletter/index.js +65 -0
  226. package/src/components/composite-comp/bol/components/Newsletter/index.less.js +4 -0
  227. package/src/components/composite-comp/bol/components/Tag/defaultJSON.js +91 -0
  228. package/src/components/composite-comp/bol/components/Tag/index.js +52 -0
  229. package/src/components/composite-comp/bol/components/Tag/index.less.js +4 -0
  230. package/src/components/composite-comp/bol/components/Text/defaultJSON.js +125 -0
  231. package/src/components/composite-comp/bol/components/Text/index.js +68 -0
  232. package/src/components/composite-comp/bol/components/Text/index.less.js +4 -0
  233. package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +73 -0
  234. package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.less.js +4 -0
  235. package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +200 -0
  236. package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.less.js +4 -0
  237. package/src/components/composite-comp/bol/config-panels/BannerConfig/index.js +35 -0
  238. package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +79 -0
  239. package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png.js +3 -0
  240. package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png.js +3 -0
  241. package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/index.js +53 -0
  242. package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +91 -0
  243. package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +175 -0
  244. package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.less.js +4 -0
  245. package/src/components/composite-comp/bol/config-panels/CarouselConfig/imgs/defaultImg.png.js +3 -0
  246. package/src/components/composite-comp/bol/config-panels/CarouselConfig/index.js +54 -0
  247. package/src/components/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +234 -0
  248. package/src/components/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +66 -0
  249. package/src/components/composite-comp/bol/config-panels/DividerConfig/index.js +44 -0
  250. package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +91 -0
  251. package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/imgs/defaultImg.png.js +3 -0
  252. package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +44 -0
  253. package/src/components/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +74 -0
  254. package/src/components/composite-comp/bol/config-panels/ImageTextConfig/index.js +170 -0
  255. package/src/components/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +224 -0
  256. package/src/components/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +89 -0
  257. package/src/components/composite-comp/bol/config-panels/NewsletterConfig/index.js +44 -0
  258. package/src/components/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +88 -0
  259. package/src/components/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png.js +3 -0
  260. package/src/components/composite-comp/bol/config-panels/TagCompConfig/index.js +48 -0
  261. package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +79 -0
  262. package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +85 -0
  263. package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.less.js +4 -0
  264. package/src/components/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png.js +3 -0
  265. package/src/components/composite-comp/bol/config-panels/TextCompConfig/index.js +55 -0
  266. package/src/components/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +109 -0
  267. package/src/components/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +107 -0
  268. package/src/components/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +116 -0
  269. package/src/components/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +79 -0
  270. package/src/components/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +70 -0
  271. package/src/components/composite-comp/common/components/ImageLabel/index.js +47 -0
  272. package/src/components/composite-comp/common/components/ImageLabel/index.less.js +4 -0
  273. package/src/components/composite-comp/common/components/ProductItem/index.js +121 -0
  274. package/src/components/composite-comp/common/components/ProductItem/index.less.js +4 -0
  275. package/src/components/composite-comp/common/config-panels/BackgroundConfig/index.js +170 -0
  276. package/src/components/composite-comp/common/config-panels/CustomizeConfig/index.js +263 -0
  277. package/src/components/composite-comp/common/config-panels/CustomizeConfig/index.less.js +4 -0
  278. package/src/components/composite-comp/common/config-panels/SpacingConfig/index.js +214 -0
  279. package/src/components/composite-comp/common/config-panels/SpacingConfig/index.less.js +4 -0
  280. package/src/components/composite-comp/dito/components/FlashDeal/defaultJSON.js +176 -0
  281. package/src/components/composite-comp/dito/components/FlashDeal/index.js +31 -0
  282. package/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg1.png.js +3 -0
  283. package/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg2.png.js +3 -0
  284. package/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg3.png.js +3 -0
  285. package/src/components/composite-comp/dito/components/FlashDeal/mobile/index.js +233 -0
  286. package/src/components/composite-comp/dito/components/FlashDeal/mobile/index.less.js +4 -0
  287. package/src/components/composite-comp/dito/components/Recommend/defaultJSON.js +210 -0
  288. package/src/components/composite-comp/dito/components/Recommend/index.js +31 -0
  289. package/src/components/composite-comp/dito/components/Recommend/mobile/index.js +317 -0
  290. package/src/components/composite-comp/dito/components/Recommend/mobile/index.less.js +4 -0
  291. package/src/components/composite-comp/dito/components/SearchBar/defaultJSON.js +44 -0
  292. package/src/components/composite-comp/dito/components/SearchBar/imgs/dito-logo.svg.js +3 -0
  293. package/src/components/composite-comp/dito/components/SearchBar/index.js +31 -0
  294. package/src/components/composite-comp/dito/components/SearchBar/mobile/index.js +89 -0
  295. package/src/components/composite-comp/dito/components/SearchBar/mobile/index.less.js +4 -0
  296. package/src/components/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +202 -0
  297. package/src/components/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +102 -0
  298. package/src/components/composite-comp/dito/config-panels/FlashDealConfig/imgs/layout1.png.js +3 -0
  299. package/src/components/composite-comp/dito/config-panels/FlashDealConfig/index.js +49 -0
  300. package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +97 -0
  301. package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +89 -0
  302. package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.less.js +4 -0
  303. package/src/components/composite-comp/dito/config-panels/RecommendConfig/imgs/defaultImg.png.js +3 -0
  304. package/src/components/composite-comp/dito/config-panels/RecommendConfig/imgs/layout1.png.js +3 -0
  305. package/src/components/composite-comp/dito/config-panels/RecommendConfig/index.js +49 -0
  306. package/src/components/composite-comp/dito/config-panels/SearchBarConfig/index.js +115 -0
  307. package/src/components/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +237 -0
  308. package/src/components/constants/component-types.js +48 -0
  309. package/src/components/constants/index.js +74 -0
  310. package/src/components/constants/layout.js +90 -0
  311. package/src/components/core/Designer/CompListPanel/CompCard/index.js +33 -0
  312. package/src/components/core/Designer/CompListPanel/CompCard/index.less.js +4 -0
  313. package/src/components/core/Designer/CompListPanel/index.js +109 -0
  314. package/src/components/core/Designer/CompListPanel/index.less.js +4 -0
  315. package/src/components/core/Designer/ConfigPanel/index.js +246 -0
  316. package/src/components/core/Designer/ConfigPanel/index.less.js +4 -0
  317. package/src/components/core/Designer/History/index.js +82 -0
  318. package/src/components/core/Designer/PageCompList/index.js +328 -0
  319. package/src/components/core/Designer/PageCompList/index.less.js +4 -0
  320. package/src/components/core/Designer/QuickMenuBar/index.js +130 -0
  321. package/src/components/core/Designer/QuickMenuBar/index.less.js +4 -0
  322. package/src/components/core/Designer/ViewArea/index.js +86 -0
  323. package/src/components/core/Designer/ViewArea/index.less.js +4 -0
  324. package/src/components/core/Designer/index.js +445 -0
  325. package/src/components/core/Designer/index.less.js +4 -0
  326. package/src/components/core/Renderer/index.js +55 -0
  327. package/src/components/decorator/compositeDecorator.js +94 -0
  328. package/src/components/decorator/metaDecorator.js +150 -0
  329. package/src/components/index.js +4 -0
  330. package/src/components/meta-comp/components/Button/index.js +113 -0
  331. package/src/components/meta-comp/components/Button/index.less.js +4 -0
  332. package/src/components/meta-comp/components/Image/index.js +121 -0
  333. package/src/components/meta-comp/components/Image/index.less.js +4 -0
  334. package/src/components/meta-comp/components/Text/index.js +386 -0
  335. package/src/components/meta-comp/components/Text/index.less.js +4 -0
  336. package/src/components/meta-comp/config-panels/BaseConfig.js +47 -0
  337. package/src/components/meta-comp/config-panels/ButtonConfig/index.js +389 -0
  338. package/src/components/meta-comp/config-panels/ButtonConfig/index.less.js +4 -0
  339. package/src/components/meta-comp/config-panels/ImageConfig/index.js +260 -0
  340. package/src/components/meta-comp/config-panels/ImageConfig/index.less.js +4 -0
  341. package/src/components/meta-comp/config-panels/TextConfig/index.js +391 -0
  342. package/src/components/meta-comp/config-panels/TextConfig/index.less.js +4 -0
  343. package/src/components/mobx/Store.js +88 -0
  344. package/src/components/mobx/index.js +12 -0
  345. package/src/components/utils/androidUtil.js +22 -0
  346. package/src/components/utils/businessUtil.js +214 -0
  347. package/src/components/utils/commonUtil.js +223 -0
  348. package/src/components/utils/coreUtil.js +108 -0
  349. package/src/components/utils/currencyUtil.js +110 -0
  350. package/src/components/utils/dataTreeUtils.js +93 -0
  351. package/src/components/utils/dateUtil.js +30 -0
  352. package/src/components/utils/storeUtil.js +113 -0
@@ -0,0 +1,214 @@
1
+ import { urlType } from '../constants/index.js';
2
+
3
+ var parseUrl = function (url) {
4
+ var h5Link = url;
5
+ var pcLink = url;
6
+ var params;
7
+
8
+ var _a = url.split('-'),
9
+ type = _a[0],
10
+ arg1 = _a[1],
11
+ arg2 = _a[2];
12
+
13
+ switch (type) {
14
+ // 商品详情
15
+ case urlType.PRODUCT_DETAIL:
16
+ pcLink = "/offer-detail/".concat(arg1);
17
+ h5Link = "/product/detail/".concat(arg1, "?productId=").concat(arg2 !== null && arg2 !== void 0 ? arg2 : '');
18
+ params = {
19
+ type: 'PROD_DETAIL',
20
+ data: {
21
+ offerId: arg1,
22
+ productId: arg2
23
+ }
24
+ };
25
+ break;
26
+
27
+ case urlType.CATG_PROD_LIST:
28
+ // 商品列表
29
+ pcLink = "/offer-list/catg/".concat(arg1);
30
+ h5Link = "/product/list/".concat(arg1);
31
+ params = {
32
+ type: 'PROD_LIST',
33
+ data: {
34
+ catgId: arg1
35
+ }
36
+ };
37
+ break;
38
+
39
+ case urlType.GIVEAWAY_MISSION:
40
+ // 零元购
41
+ pcLink = '';
42
+ h5Link = "/special-mission?campaignId=".concat(arg1);
43
+ params = {
44
+ type: 'GIVEAWAY_MISSION',
45
+ data: {
46
+ campaignId: arg1
47
+ }
48
+ };
49
+ break;
50
+
51
+ case urlType.CUSTOMIZED:
52
+ // 自定义页面
53
+ pcLink = "/promotion/".concat(arg1);
54
+ h5Link = "/group/".concat(arg1);
55
+ params = {
56
+ type: 'CUSTOMIZED',
57
+ data: {
58
+ url: "/group/".concat(arg1)
59
+ }
60
+ };
61
+ break;
62
+
63
+ case urlType.PROD_FILTER:
64
+ pcLink = '';
65
+ h5Link = "/product/list?".concat(arg1);
66
+ params = {
67
+ type: 'PROD_FILTER',
68
+ data: {
69
+ params: arg1
70
+ }
71
+ };
72
+ break;
73
+
74
+ case urlType.ANCHOR:
75
+ // document.getElementById(id) && document.getElementById(id).scrollIntoView({ behavior: 'smooth' });
76
+ params = {
77
+ type: 'ANCHOR',
78
+ data: {
79
+ id: arg1
80
+ }
81
+ };
82
+ break;
83
+
84
+ case urlType.GET_COUPON:
85
+ // 领取优惠券
86
+ params = {
87
+ type: 'GET_COUPON',
88
+ data: {
89
+ couponId: arg1
90
+ }
91
+ };
92
+ break;
93
+
94
+ case '/spike':
95
+ params = {
96
+ type: 'FLASH_SHOP_MORE'
97
+ };
98
+ break;
99
+
100
+ default:
101
+ pcLink = url;
102
+ h5Link = url;
103
+ params = {
104
+ type: url
105
+ };
106
+ }
107
+
108
+ return {
109
+ pcLink: pcLink,
110
+ h5Link: h5Link,
111
+ params: params
112
+ };
113
+ };
114
+ /** 刷新预览区域 */
115
+
116
+ var renderPreview = function () {
117
+ var evt = new Event('render-view', {
118
+ bubbles: false
119
+ });
120
+ window.document.dispatchEvent(evt);
121
+ }; // 分类列表 数组转换成树结构
122
+
123
+ var listToTree = function (list) {
124
+ var map = {};
125
+ var node;
126
+ var tree = [];
127
+
128
+ for (var i = 0; i < list.length; i++) {
129
+ map[list[i].catgId] = list[i];
130
+ list[i].children = list[i].isLeaf == 0 ? null : [];
131
+ }
132
+
133
+ for (var i = 0; i < list.length; i += 1) {
134
+ node = {
135
+ catgName: list[i].catgName,
136
+ title: list[i].catgName,
137
+ value: list[i].catgId,
138
+ key: list[i].catgId,
139
+ children: list[i].children
140
+ };
141
+
142
+ if (list[i].parentCatgId !== null) {
143
+ map[list[i].parentCatgId] && map[list[i].parentCatgId].children.push(node);
144
+ } else {
145
+ tree.push(node);
146
+ }
147
+ }
148
+
149
+ return tree;
150
+ }; // 获取商品活动标签 包含秒杀、团规、满系
151
+
152
+ var getPromotionList = function (offer) {
153
+ var PROMOTION_TYPE_MAP = {
154
+ 2: 'SPECIAL PROMO',
155
+ 4: 'Group',
156
+ C: 'Discount',
157
+ D: 'Discount',
158
+ G: 'Gift' // 满赠
159
+
160
+ };
161
+ var promotType = offer.promotType,
162
+ sppType = offer.sppType;
163
+ var typeList = []; // 满系
164
+
165
+ if (promotType) {
166
+ typeList = promotType.match(/(C|G|D)/g) || [];
167
+ } // 秒杀团购
168
+
169
+
170
+ if (sppType) {
171
+ typeList = typeList.concat(sppType.split(','));
172
+ }
173
+
174
+ var promotNames = typeList.map(function (type) {
175
+ return PROMOTION_TYPE_MAP[type];
176
+ });
177
+ return Array.from(new Set(promotNames));
178
+ };
179
+ var canNumber = function (value) {
180
+ if (isNaN(Number(value))) {
181
+ return value;
182
+ }
183
+
184
+ return Number(value);
185
+ };
186
+ /** 计算样式 */
187
+
188
+ var computeStyle = function (_a, device) {
189
+ var background = _a.background,
190
+ spacing = _a.spacing;
191
+ var wrapStyle = {};
192
+
193
+ if (background) {
194
+ if (background.bgType === 'color') {
195
+ wrapStyle.backgroundColor = background.color;
196
+ wrapStyle.opacity = background.opacity ? background.opacity : 1;
197
+ } else {
198
+ wrapStyle.backgroundImage = "url(".concat(background.image, ")");
199
+ wrapStyle.backgroundPosition = 'center';
200
+ }
201
+ }
202
+
203
+ if (spacing) {
204
+ Object.keys(spacing[device]).forEach(function (key) {
205
+ if (!['', undefined].includes(spacing[device][key])) {
206
+ wrapStyle[key] = canNumber(spacing[device][key]);
207
+ }
208
+ });
209
+ }
210
+
211
+ return wrapStyle;
212
+ };
213
+
214
+ export { canNumber, computeStyle, getPromotionList, listToTree, parseUrl, renderPreview };
@@ -0,0 +1,223 @@
1
+ import axios from '../../../node_modules/axios/index.js';
2
+ import lib from '../../../node_modules/qs/lib/index.js';
3
+
4
+ /**
5
+ * 安全获取数据
6
+ * @param {function} func 获取函数
7
+ * @param {any} defaults 默认值
8
+ */
9
+
10
+ function ensure(func, defaults) {
11
+ try {
12
+ return func() || defaults;
13
+ } catch (error) {
14
+ return defaults;
15
+ }
16
+ }
17
+ /**
18
+ * fish fetch
19
+ * @param {*} url 请求地址
20
+ * @param {*} data 入参
21
+ * @param {*} method 请求方法
22
+ */
23
+
24
+ function commonFetch(url, data, method) {
25
+ if (data === void 0) {
26
+ data = {};
27
+ }
28
+
29
+ if (method === void 0) {
30
+ method = 'GET';
31
+ }
32
+
33
+ var _method = method.toUpperCase();
34
+
35
+ return new Promise(function (resolve) {
36
+ var _a, _b;
37
+
38
+ var isLoginUrl = url.includes('portal/login');
39
+ var headers = {
40
+ 'Content-Type': isLoginUrl ? 'application/x-www-form-urlencoded' : 'application/json; charset=UTF-8'
41
+ };
42
+
43
+ if (_method === 'GET') {
44
+ if ((_a = window.magicDesign) === null || _a === void 0 ? void 0 : _a.fetch) {
45
+ window.magicDesign.fetch(url, {
46
+ method: 'GET',
47
+ params: data
48
+ }).then(function (res) {
49
+ resolve(res);
50
+ });
51
+ return;
52
+ }
53
+
54
+ axios.get(url, {
55
+ params: data,
56
+ headers: headers
57
+ }).then(function (res) {
58
+ resolve(res.data);
59
+ });
60
+ }
61
+
62
+ if (_method === 'POST') {
63
+ if ((_b = window.magicDesign) === null || _b === void 0 ? void 0 : _b.fetch) {
64
+ window.magicDesign.fetch(url, {
65
+ method: 'POST',
66
+ data: data
67
+ }).then(function (res) {
68
+ resolve(res);
69
+ });
70
+ return;
71
+ }
72
+
73
+ axios.post(url, isLoginUrl ? lib.stringify(data) : data, {
74
+ headers: headers
75
+ }).then(function (res) {
76
+ resolve(res.data);
77
+ });
78
+ }
79
+ });
80
+ }
81
+ var navigateTo = function (url) {
82
+ if (!window.magicDesign || !window.magicDesign.history) {
83
+ window.location.href = url;
84
+ return;
85
+ }
86
+
87
+ window.magicDesign.history.push(url);
88
+ };
89
+ var dragSource = function (source, from, to) {
90
+ var out = source.splice(from, 1);
91
+
92
+ if (from > to) {
93
+ source.splice(to, 0, out[0]);
94
+ } else {
95
+ source.splice(to, 0, out[0]);
96
+ }
97
+
98
+ return source;
99
+ }; // 校验文件名称,不能存在 / \ ,
100
+
101
+ var checkFileName = function (fileName) {
102
+ if (fileName === undefined || fileName === null || fileName === '') {
103
+ return false;
104
+ }
105
+
106
+ var reg = /[\\,/]+/;
107
+
108
+ if (reg.test(fileName)) {
109
+ return false;
110
+ }
111
+
112
+ return true;
113
+ }; // 获取浏览器参数
114
+ /**
115
+ * 补0 函数
116
+ * @param {*} num 数字
117
+ */
118
+
119
+ var addZero = function (num) {
120
+ return String(num).length === 1 ? "0".concat(String(num)) : String(num);
121
+ };
122
+ /**
123
+ * 计算倒计时
124
+ * @param {number} lastTime 剩余时间 单位:毫秒
125
+ * @param {string?} type 'day' 以日为单位
126
+ * @returns
127
+ */
128
+
129
+ var calcLastTime = function (lastTime, type) {
130
+ if (lastTime <= 0) {
131
+ return 0;
132
+ }
133
+
134
+ var day = ~~(lastTime / 1000 / 60 / 60 / 24);
135
+ var hours = ~~(lastTime / 1000 / 60 / 60);
136
+ var mines = ~~(lastTime / 1000 / 60 % 60);
137
+ var second = ~~(lastTime / 1000 % 60);
138
+
139
+ if (type === 'day') {
140
+ hours = ~~(lastTime / 1000 / 60 / 60 % 24);
141
+ return "".concat(day, "DAYS ").concat(addZero(hours), ":").concat(addZero(mines), ":").concat(addZero(second));
142
+ }
143
+
144
+ if (type === '_hour') {
145
+ return hours;
146
+ }
147
+
148
+ if (type === '_mines') {
149
+ return mines;
150
+ }
151
+
152
+ return "".concat(addZero(hours), ":").concat(addZero(mines), ":").concat(addZero(second));
153
+ };
154
+ /**
155
+ * 获取图片URL
156
+ * @param {object} imageObj 图片对象
157
+ * @param {string?} type small | big
158
+ */
159
+
160
+ function convertImageUrl(imageObj, type) {
161
+ if (imageObj === void 0) {
162
+ imageObj = {};
163
+ }
164
+
165
+ if (!imageObj) return '';
166
+ var typeMap = {
167
+ small: 'smallImgUrl',
168
+ big: 'bigImgUrl'
169
+ }[type];
170
+ return ensure(function () {
171
+ return encodeURI(imageObj[typeMap] || imageObj.url);
172
+ }, '');
173
+ }
174
+ /** 序列化 style对象 */
175
+
176
+ var styleStringify = function (style, _a) {
177
+ var _b = _a === void 0 ? {} : _a,
178
+ _c = _b.suffix,
179
+ suffix = _c === void 0 ? 'px' : _c;
180
+
181
+ var numericProperties = ['height', 'width', 'top', 'left', 'right', 'bottom', 'fontSize', 'maxHeight', 'maxWidth', 'lineHeight', 'margin', 'marginTop', 'marginLeft', 'marginRight', 'marginBottom', 'padding', 'paddingLeft', 'paddingRight', 'paddingTop', 'paddingBottom'];
182
+ return Object.keys(style).reduce(function (styleStr, key) {
183
+ var value = style[key];
184
+ if (value == null) return styleStr;
185
+ var needSuffix = numericProperties.includes(key) && typeof value === 'number';
186
+ var newName = key.replace(/([A-Z])/g, '-$1').toLowerCase();
187
+ return "".concat(styleStr).concat(newName, ": ").concat(value).concat(needSuffix ? suffix : '', "; ");
188
+ }, '');
189
+ };
190
+ /** 十六进制色值转换成rgba */
191
+
192
+ var getColorRgba = function (sHex, alpha) {
193
+ if (alpha === void 0) {
194
+ alpha = 1;
195
+ }
196
+
197
+ var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
198
+ var sColor = sHex.toLowerCase();
199
+
200
+ if (sColor && reg.test(sColor)) {
201
+ if (sColor.length === 4) {
202
+ var sColorNew = '#';
203
+
204
+ for (var i = 1; i < 4; i += 1) {
205
+ sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
206
+ }
207
+
208
+ sColor = sColorNew;
209
+ }
210
+
211
+ var sColorChange = [];
212
+
213
+ for (var i = 1; i < 7; i += 2) {
214
+ sColorChange.push(parseInt('0x' + sColor.slice(i, i + 2)));
215
+ }
216
+
217
+ return 'rgba(' + sColorChange.join(',') + ',' + alpha + ')';
218
+ } else {
219
+ return sColor;
220
+ }
221
+ };
222
+
223
+ export { addZero, calcLastTime, checkFileName, commonFetch, convertImageUrl, dragSource, ensure, getColorRgba, navigateTo, styleStringify };
@@ -0,0 +1,108 @@
1
+ import uuid_1 from '../../../node_modules/uuid/index.js';
2
+ import { parseUrl } from './businessUtil.js';
3
+ import { navigateTo } from './commonUtil.js';
4
+ import { browserVersion } from './androidUtil.js';
5
+
6
+ var _this = undefined;
7
+ var isDesignMode = function () {
8
+ return window.magicDesign.mode === 'designer';
9
+ };
10
+ var isPc = function () {
11
+ return window.magicDesign.device === 'pc';
12
+ };
13
+ /** 刷新预览区域 */
14
+
15
+ var renderPreview = function () {
16
+ var evt = new Event('render-view', {
17
+ bubbles: false
18
+ });
19
+ window.document.dispatchEvent(evt);
20
+ };
21
+ var clickUrl = function (url) {
22
+ console.log('url', url);
23
+
24
+ if (window.magicDesign.readOnly || window.magicDesign.mode !== 'renderer' || !url) {
25
+ return;
26
+ }
27
+
28
+ var _a = parseUrl(url),
29
+ h5Link = _a.h5Link,
30
+ params = _a.params;
31
+
32
+ var type = params.type,
33
+ data = params.data; // 领取优惠券
34
+
35
+ if (type === 'GET_COUPON') {
36
+ _this.getCoupon(data.couponId);
37
+
38
+ return;
39
+ }
40
+
41
+ if (!browserVersion().isApp) {
42
+ if (url.startsWith('/')) {
43
+ navigateTo(url);
44
+ } else {
45
+ location.href = url;
46
+ }
47
+
48
+ return;
49
+ }
50
+
51
+ if (browserVersion().android) {
52
+ sendToAndroid({
53
+ type: 'jump',
54
+ params: {
55
+ url: h5Link
56
+ }
57
+ });
58
+ } else if (browserVersion().ios) {
59
+ if (type === 'CUSTOMIZED') {
60
+ // 适配ios 从首页跳转自定义页面
61
+ _this.goH5Page(h5Link);
62
+ }
63
+
64
+ sendToIos(params);
65
+ }
66
+ };
67
+
68
+ function isObject(value) {
69
+ var type = typeof value;
70
+ return value != null && (type === 'object' || type === 'function');
71
+ } // 拷贝节点方法,重新生成节点中的id和parentId字段
72
+
73
+
74
+ var copyNode = function (value, parentId) {
75
+ if (!isObject(value)) {
76
+ return value;
77
+ }
78
+
79
+ var isArr = Array.isArray(value);
80
+
81
+ if (isArr) {
82
+ var newArray_1 = [];
83
+ value.forEach(function (data) {
84
+ newArray_1.push(copyNode(data));
85
+ });
86
+ return newArray_1;
87
+ }
88
+
89
+ var newNode = {};
90
+
91
+ if (value.id) {
92
+ newNode.id = uuid_1.v4();
93
+ }
94
+
95
+ var names = Object.getOwnPropertyNames(value);
96
+ names.forEach(function (name) {
97
+ if (name === 'id') return;
98
+
99
+ if (name === 'parentId') {
100
+ newNode.parentId = parentId;
101
+ } else {
102
+ newNode[name] = copyNode(value[name], newNode.id);
103
+ }
104
+ });
105
+ return newNode;
106
+ };
107
+
108
+ export { clickUrl, copyNode, isDesignMode, isPc, renderPreview };
@@ -0,0 +1,110 @@
1
+ import divide_1 from '../../../node_modules/lodash/divide.js';
2
+ import isEmpty_1 from '../../../node_modules/lodash/isEmpty.js';
3
+ import { ensure } from './commonUtil.js';
4
+
5
+ /* eslint-disable */
6
+ ensure(function () {
7
+ return window.ecommerce.precision;
8
+ }, '0'); // 千分位展示
9
+
10
+ var addSeparators = function (nStr, thousandsSep, decimalSep) {
11
+ if (!Number(nStr)) {
12
+ return nStr;
13
+ }
14
+
15
+ var x1;
16
+ var x2;
17
+ nStr += '';
18
+ var x = nStr.split('.');
19
+ x1 = x[0];
20
+ x2 = x.length > 1 ? decimalSep + x[1] : '';
21
+ var rgx = /(\d+)(\d{3})/;
22
+
23
+ while (rgx.test(x1)) {
24
+ x1 = x1.replace(rgx, "$1".concat(thousandsSep, "$2"));
25
+ }
26
+
27
+ return x1 + x2;
28
+ };
29
+ var getPricePrefix = function () {
30
+ var pricePrefix = ensure(function () {
31
+ return window.ecommerce.prefix;
32
+ }, 'Rp');
33
+ return pricePrefix;
34
+ };
35
+ var getPrecision = function () {
36
+ var ret = ensure(function () {
37
+ return window.ecommerce.precision;
38
+ }, '0');
39
+ return Number(ret);
40
+ }; // 格式化金额
41
+
42
+ var formatCurrency = function (num) {
43
+ var displayPrecision = ensure(function () {
44
+ return window.ecommerce.displayCurrencyPrecision;
45
+ }, '0');
46
+ var precision = ensure(function () {
47
+ return window.ecommerce.precision;
48
+ }, '0');
49
+ var pricePrefix = ensure(function () {
50
+ return window.ecommerce.prefix;
51
+ }, 'Rp');
52
+ var numVal = num;
53
+
54
+ if (Number.isNaN(num) || !Number.isFinite(num)) {
55
+ numVal = 0;
56
+ }
57
+
58
+ var displayNum = displayPrecision != null && displayPrecision !== '' ? displayPrecision : precision;
59
+ var ret = numVal / Math.pow(10, precision);
60
+ return addSeparators(ret.toFixed(displayNum), pricePrefix === "IDR" || pricePrefix === "Rp" ? '.' : ',', '.');
61
+ };
62
+ var formatCurrencyWithSymbol = function (num) {
63
+ var ret = formatCurrency(num);
64
+ return "".concat(getPricePrefix(), " ").concat(ret);
65
+ };
66
+ /**
67
+ * 格式化数值,不加前缀 (前台使用) 例如:缩小100倍
68
+ * @param {*} value 数值
69
+ * @param {*} customPrecision 精度转换,默认读配置项
70
+ * @param {*} customDisplayPrecision 保留小数位数,默认读配置项(传null,表示不作处理只转换精度)
71
+ * @returns 格式化后的数值字符串
72
+ */
73
+
74
+ var currencyToFont = function (value, customPrecision, customDisplayPrecision) {
75
+ if (value === null || value === undefined || value === '' || Number.isNaN(Number(value))) {
76
+ return value;
77
+ }
78
+
79
+ var precision; // 优先使用参数上的精度
80
+
81
+ if (!isEmpty_1(customPrecision) && !Number.isNaN(Number(customPrecision))) {
82
+ precision = Number(customPrecision);
83
+ } else {
84
+ precision = ensure(function () {
85
+ return window.ecommerce.precision;
86
+ }, '0');
87
+ }
88
+
89
+ var number = Number(value);
90
+ var temp = divide_1(number, Math.pow(10, precision)); // 特殊处理,不需要格式化小数位
91
+
92
+ if (customDisplayPrecision === null) {
93
+ return "".concat(temp);
94
+ } // 精度格式化
95
+
96
+
97
+ var displayPrecision; // 优先使用参数上的精度
98
+
99
+ if (!isEmpty_1(customDisplayPrecision) && !Number.isNaN(Number(customDisplayPrecision))) {
100
+ displayPrecision = Number(customDisplayPrecision);
101
+ } else {
102
+ displayPrecision = ensure(function () {
103
+ return window.ecommerce.displayCurrencyPrecision;
104
+ }, 'Rp');
105
+ }
106
+
107
+ return temp.toFixed(Number(displayPrecision));
108
+ };
109
+
110
+ export { addSeparators, currencyToFont, formatCurrency, formatCurrencyWithSymbol, getPrecision, getPricePrefix };