@fonixtree/magic-design 0.0.78 → 0.0.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (339) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +24 -12
  2. package/es/assets/fonts/magic-box-iconfont.css.bak +24 -12
  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/layout-navigation-normal.png +0 -0
  9. package/es/assets/less/common.less +2 -2
  10. package/es/assets/less/modal.less +7 -2
  11. package/es/common/Button/index.js +2 -1
  12. package/es/common/Button/index.less +5 -0
  13. package/es/common/ButtonIconLayout/index.less +4 -2
  14. package/es/common/Collapse/index.js +14 -4
  15. package/es/common/FontStyles/index.less +1 -1
  16. package/es/common/GroupList/index.js +4 -3
  17. package/es/common/ImageModal/index.js +31 -26
  18. package/es/common/ImageModal/index.less +6 -1
  19. package/es/common/ImgArea/components/Crop.js +267 -0
  20. package/es/common/ImgArea/components/Icons.js +44 -0
  21. package/es/common/ImgArea/components/MultiCrops.js +210 -0
  22. package/es/common/ImgArea/index.js +11 -0
  23. package/es/common/LinkModal/BundleCampaign/index.js +17 -17
  24. package/es/common/LinkModal/CustomTable/index.js +1 -0
  25. package/es/common/LinkModal/FilteredProductModal/index.js +3 -3
  26. package/es/common/LinkModal/FilteredProductModal/index.less +2 -3
  27. package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
  28. package/es/common/LinkModal/index.less +1 -1
  29. package/es/common/MagicLink/index.js +89 -0
  30. package/es/common/MagicLink/index.less +0 -0
  31. package/es/common/ProductModal/index.js +1 -1
  32. package/es/common/ProductModal/index.less +12 -7
  33. package/es/common/UrlPicker/index.js +6 -2
  34. package/es/common/UrlPicker/index.less +12 -1
  35. package/es/common/index.js +8 -0
  36. package/es/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
  37. package/es/composite-comp/bol/components/Banner/mobile/index.js +4 -10
  38. package/es/composite-comp/bol/components/Banner/pc/index.js +3 -6
  39. package/es/composite-comp/bol/components/Button/defaultJSON.js +40 -70
  40. package/es/composite-comp/bol/components/Button/index.js +8 -14
  41. package/es/composite-comp/bol/components/Button/index.less +1 -0
  42. package/es/composite-comp/bol/components/Carousel/defaultJSON.js +12 -16
  43. package/es/composite-comp/bol/components/Carousel/index.js +1 -6
  44. package/es/composite-comp/bol/components/Carousel/mobile/index.js +4 -8
  45. package/es/composite-comp/bol/components/Carousel/pc/index.js +15 -7
  46. package/es/composite-comp/bol/components/Carousel/pc/index.less +13 -5
  47. package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
  48. package/es/composite-comp/bol/components/ImageText/defaultJSON.js +27 -167
  49. package/es/composite-comp/bol/components/ImageText/mobile/index.js +2 -5
  50. package/es/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
  51. package/es/composite-comp/bol/components/ImageText/pc/index.js +46 -18
  52. package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
  53. package/es/composite-comp/bol/components/Newsletter/index.js +1 -6
  54. package/es/composite-comp/bol/components/Tag/defaultJSON.js +38 -48
  55. package/es/composite-comp/bol/components/Tag/index.js +8 -14
  56. package/es/composite-comp/bol/components/Tag/index.less +1 -0
  57. package/es/composite-comp/bol/components/Text/defaultJSON.js +4 -6
  58. package/es/composite-comp/bol/components/Text/index.js +4 -8
  59. package/es/composite-comp/bol/components/Text/index.less +3 -3
  60. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
  61. package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +141 -0
  62. package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +16 -0
  63. package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
  64. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +4 -2
  65. package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -0
  66. package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
  67. package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +2 -1
  68. package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +6 -4
  69. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +9 -17
  70. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +141 -0
  71. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +16 -0
  72. package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +7 -4
  73. package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
  74. package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
  75. package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +103 -0
  76. package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +3 -0
  77. package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +8 -13
  78. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +10 -5
  79. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +8 -0
  80. package/es/composite-comp/bol/{config-panels/ButtonCompConfig/ButtonConfigContent → second-config-panels/TagSecondConfig}/index.js +40 -38
  81. package/es/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +3 -0
  82. package/es/composite-comp/common/components/ImageLabel/index.js +2 -2
  83. package/es/composite-comp/common/components/ImageLabel/index.less +6 -2
  84. package/es/composite-comp/common/components/ProductItem/index.js +1 -1
  85. package/es/composite-comp/common/components/ProductItem/index.less +9 -9
  86. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +24 -13
  87. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +25 -25
  88. package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +62 -2
  89. package/es/composite-comp/dito/components/FlashDeal/index.js +5 -1
  90. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -1
  91. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  92. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  93. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
  94. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +578 -0
  95. package/es/composite-comp/dito/components/FlashDeal/pc/index.less +121 -0
  96. package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +5 -4
  97. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +13 -3
  98. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +3 -2
  99. package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +131 -0
  100. package/es/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +6 -0
  101. package/es/composite-comp/dito/components/PcNavigation/index.js +85 -0
  102. package/es/composite-comp/dito/components/PcNavigation/pc/index.js +478 -0
  103. package/es/composite-comp/dito/components/PcNavigation/pc/index.less +98 -0
  104. package/es/composite-comp/dito/components/Recommend/defaultJSON.js +30 -12
  105. package/es/composite-comp/dito/components/Recommend/index.js +5 -6
  106. package/es/composite-comp/dito/components/Recommend/mobile/index.js +45 -37
  107. package/es/composite-comp/dito/components/Recommend/mobile/index.less +10 -2
  108. package/es/composite-comp/dito/components/Recommend/pc/index.js +134 -22
  109. package/es/composite-comp/dito/components/Recommend/pc/index.less +54 -12
  110. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +45 -19
  111. package/es/composite-comp/dito/components/SearchBar/index.js +7 -2
  112. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +29 -26
  113. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +13 -3
  114. package/es/composite-comp/dito/components/SearchBar/pc/index.js +151 -0
  115. package/es/composite-comp/dito/components/SearchBar/pc/index.less +59 -0
  116. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +16 -6
  117. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +20 -0
  118. package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +12 -2
  119. package/es/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +3 -1
  120. package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +129 -0
  121. package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +128 -0
  122. package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +222 -0
  123. package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +194 -0
  124. package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +16 -3
  125. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +140 -0
  126. package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +15 -51
  127. package/es/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +102 -0
  128. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +39 -29
  129. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +80 -49
  130. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +13 -1
  131. package/es/constants/component-types.js +13 -3
  132. package/es/constants/index.js +20 -2
  133. package/es/constants/layout.js +34 -8
  134. package/es/core/Designer/CompListPanel/index.js +8 -33
  135. package/es/core/Designer/ConfigPanel/TerminalSelect/index.js +73 -0
  136. package/es/core/Designer/ConfigPanel/TerminalSelect/index.less +29 -0
  137. package/es/core/Designer/ConfigPanel/index.js +72 -23
  138. package/es/core/Designer/ConfigPanel/index.less +4 -0
  139. package/es/core/Designer/History/index.js +34 -28
  140. package/es/core/Designer/PageCompList/index.js +13 -3
  141. package/es/core/Designer/PageCompList/index.less +10 -10
  142. package/es/core/Designer/QuickMenuBar/index.js +1 -1
  143. package/es/core/Designer/ViewArea/index.js +20 -6
  144. package/es/core/Designer/index.js +43 -37
  145. package/es/core/Renderer/index.js +21 -5
  146. package/es/decorator/compositeDecorator.js +45 -12
  147. package/es/decorator/index.js +8 -0
  148. package/es/decorator/metaDecorator.js +4 -3
  149. package/es/decorator/updateConfigDecorator.js +76 -0
  150. package/es/locale/en/en.json +14 -1
  151. package/es/locale/es/es.json +14 -1
  152. package/es/locale/id/id.json +14 -1
  153. package/es/meta-comp/components/Button/editable.js +114 -0
  154. package/es/meta-comp/components/Button/editable.less +6 -0
  155. package/es/meta-comp/components/Button/index.js +14 -33
  156. package/es/meta-comp/components/Button/index.less +3 -2
  157. package/es/meta-comp/components/Image/index.js +39 -8
  158. package/es/meta-comp/components/Image/index.less +7 -4
  159. package/es/meta-comp/components/Text/index.js +28 -11
  160. package/es/meta-comp/config-panels/BaseConfig.js +8 -10
  161. package/es/meta-comp/config-panels/ButtonConfig/index.js +2 -3
  162. package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +164 -0
  163. package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +26 -0
  164. package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +133 -0
  165. package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +17 -0
  166. package/es/meta-comp/config-panels/ImageConfig/index.js +17 -4
  167. package/es/meta-comp/config-panels/TextConfig/index.js +15 -6
  168. package/es/mobx/Store.js +6 -10
  169. package/es/utils/coreUtil.js +15 -2
  170. package/lib/assets/fonts/magic-box-iconfont.css +24 -12
  171. package/lib/assets/fonts/magic-box-iconfont.css.bak +24 -12
  172. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  173. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  174. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  175. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  176. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  177. package/lib/assets/images/layout-icon/layout-navigation-normal.png +0 -0
  178. package/lib/assets/less/common.less +2 -2
  179. package/lib/assets/less/modal.less +7 -2
  180. package/lib/common/Button/index.js +2 -1
  181. package/lib/common/Button/index.less +5 -0
  182. package/lib/common/ButtonIconLayout/index.less +4 -2
  183. package/lib/common/Collapse/index.js +14 -4
  184. package/lib/common/FontStyles/index.less +1 -1
  185. package/lib/common/GroupList/index.js +4 -3
  186. package/lib/common/ImageModal/index.js +31 -26
  187. package/lib/common/ImageModal/index.less +6 -1
  188. package/lib/common/ImgArea/components/Crop.js +267 -0
  189. package/lib/common/ImgArea/components/Icons.js +44 -0
  190. package/lib/common/ImgArea/components/MultiCrops.js +210 -0
  191. package/lib/common/ImgArea/index.js +11 -0
  192. package/lib/common/LinkModal/BundleCampaign/index.js +17 -17
  193. package/lib/common/LinkModal/CustomTable/index.js +1 -0
  194. package/lib/common/LinkModal/FilteredProductModal/index.js +3 -3
  195. package/lib/common/LinkModal/FilteredProductModal/index.less +2 -3
  196. package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
  197. package/lib/common/LinkModal/index.less +1 -1
  198. package/lib/common/MagicLink/index.js +89 -0
  199. package/lib/common/MagicLink/index.less +0 -0
  200. package/lib/common/ProductModal/index.js +1 -1
  201. package/lib/common/ProductModal/index.less +12 -7
  202. package/lib/common/UrlPicker/index.js +6 -2
  203. package/lib/common/UrlPicker/index.less +12 -1
  204. package/lib/common/index.js +8 -0
  205. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
  206. package/lib/composite-comp/bol/components/Banner/mobile/index.js +4 -10
  207. package/lib/composite-comp/bol/components/Banner/pc/index.js +3 -6
  208. package/lib/composite-comp/bol/components/Button/defaultJSON.js +40 -70
  209. package/lib/composite-comp/bol/components/Button/index.js +8 -14
  210. package/lib/composite-comp/bol/components/Button/index.less +1 -0
  211. package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +12 -16
  212. package/lib/composite-comp/bol/components/Carousel/index.js +1 -6
  213. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +4 -8
  214. package/lib/composite-comp/bol/components/Carousel/pc/index.js +15 -7
  215. package/lib/composite-comp/bol/components/Carousel/pc/index.less +13 -5
  216. package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
  217. package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +27 -167
  218. package/lib/composite-comp/bol/components/ImageText/mobile/index.js +2 -5
  219. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
  220. package/lib/composite-comp/bol/components/ImageText/pc/index.js +46 -18
  221. package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
  222. package/lib/composite-comp/bol/components/Newsletter/index.js +1 -6
  223. package/lib/composite-comp/bol/components/Tag/defaultJSON.js +38 -48
  224. package/lib/composite-comp/bol/components/Tag/index.js +8 -14
  225. package/lib/composite-comp/bol/components/Tag/index.less +1 -0
  226. package/lib/composite-comp/bol/components/Text/defaultJSON.js +4 -6
  227. package/lib/composite-comp/bol/components/Text/index.js +4 -8
  228. package/lib/composite-comp/bol/components/Text/index.less +3 -3
  229. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
  230. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +141 -0
  231. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +16 -0
  232. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
  233. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +4 -2
  234. package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -0
  235. package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
  236. package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +2 -1
  237. package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +6 -4
  238. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +9 -17
  239. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +141 -0
  240. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +16 -0
  241. package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +7 -4
  242. package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
  243. package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
  244. package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +103 -0
  245. package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +3 -0
  246. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +8 -13
  247. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +10 -5
  248. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +8 -0
  249. package/lib/composite-comp/bol/{config-panels/ButtonCompConfig/ButtonConfigContent → second-config-panels/TagSecondConfig}/index.js +40 -38
  250. package/lib/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +3 -0
  251. package/lib/composite-comp/common/components/ImageLabel/index.js +2 -2
  252. package/lib/composite-comp/common/components/ImageLabel/index.less +6 -2
  253. package/lib/composite-comp/common/components/ProductItem/index.js +1 -1
  254. package/lib/composite-comp/common/components/ProductItem/index.less +9 -9
  255. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +24 -13
  256. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +25 -25
  257. package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +62 -2
  258. package/lib/composite-comp/dito/components/FlashDeal/index.js +5 -1
  259. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -1
  260. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  261. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  262. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
  263. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +578 -0
  264. package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +121 -0
  265. package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +5 -4
  266. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +13 -3
  267. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +3 -2
  268. package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +131 -0
  269. package/lib/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +6 -0
  270. package/lib/composite-comp/dito/components/PcNavigation/index.js +85 -0
  271. package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +478 -0
  272. package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +98 -0
  273. package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +30 -12
  274. package/lib/composite-comp/dito/components/Recommend/index.js +5 -6
  275. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +45 -37
  276. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +10 -2
  277. package/lib/composite-comp/dito/components/Recommend/pc/index.js +134 -22
  278. package/lib/composite-comp/dito/components/Recommend/pc/index.less +54 -12
  279. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +45 -19
  280. package/lib/composite-comp/dito/components/SearchBar/index.js +7 -2
  281. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +29 -26
  282. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +13 -3
  283. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +151 -0
  284. package/lib/composite-comp/dito/components/SearchBar/pc/index.less +59 -0
  285. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +16 -6
  286. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +20 -0
  287. package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +12 -2
  288. package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +3 -1
  289. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +129 -0
  290. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +128 -0
  291. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +222 -0
  292. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +194 -0
  293. package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +16 -3
  294. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +140 -0
  295. package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +15 -51
  296. package/lib/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +102 -0
  297. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +39 -29
  298. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +80 -49
  299. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +13 -1
  300. package/lib/constants/component-types.js +13 -3
  301. package/lib/constants/index.js +20 -2
  302. package/lib/constants/layout.js +34 -8
  303. package/lib/core/Designer/CompListPanel/index.js +8 -33
  304. package/lib/core/Designer/ConfigPanel/TerminalSelect/index.js +73 -0
  305. package/lib/core/Designer/ConfigPanel/TerminalSelect/index.less +29 -0
  306. package/lib/core/Designer/ConfigPanel/index.js +72 -23
  307. package/lib/core/Designer/ConfigPanel/index.less +4 -0
  308. package/lib/core/Designer/History/index.js +34 -28
  309. package/lib/core/Designer/PageCompList/index.js +13 -3
  310. package/lib/core/Designer/PageCompList/index.less +10 -10
  311. package/lib/core/Designer/QuickMenuBar/index.js +1 -1
  312. package/lib/core/Designer/ViewArea/index.js +20 -6
  313. package/lib/core/Designer/index.js +43 -37
  314. package/lib/core/Renderer/index.js +21 -5
  315. package/lib/decorator/compositeDecorator.js +45 -12
  316. package/lib/decorator/index.js +8 -0
  317. package/lib/decorator/metaDecorator.js +4 -3
  318. package/lib/decorator/updateConfigDecorator.js +76 -0
  319. package/lib/locale/en/en.json +14 -1
  320. package/lib/locale/es/es.json +14 -1
  321. package/lib/locale/id/id.json +14 -1
  322. package/lib/meta-comp/components/Button/editable.js +114 -0
  323. package/lib/meta-comp/components/Button/editable.less +6 -0
  324. package/lib/meta-comp/components/Button/index.js +14 -33
  325. package/lib/meta-comp/components/Button/index.less +3 -2
  326. package/lib/meta-comp/components/Image/index.js +39 -8
  327. package/lib/meta-comp/components/Image/index.less +7 -4
  328. package/lib/meta-comp/components/Text/index.js +28 -11
  329. package/lib/meta-comp/config-panels/BaseConfig.js +8 -10
  330. package/lib/meta-comp/config-panels/ButtonConfig/index.js +2 -3
  331. package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +164 -0
  332. package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +26 -0
  333. package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +133 -0
  334. package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +17 -0
  335. package/lib/meta-comp/config-panels/ImageConfig/index.js +17 -4
  336. package/lib/meta-comp/config-panels/TextConfig/index.js +15 -6
  337. package/lib/mobx/Store.js +6 -10
  338. package/lib/utils/coreUtil.js +15 -2
  339. package/package.json +5 -3
@@ -15,8 +15,6 @@ var _components = require("../../../../meta-comp/components");
15
15
 
16
16
  var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
17
17
 
18
- var _businessUtil = require("../../../../utils/businessUtil");
19
-
20
18
  require("./index.less");
21
19
 
22
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -76,20 +74,16 @@ function (_super) {
76
74
  var _a;
77
75
 
78
76
  var nodeData = this.props.nodeData;
79
- var wrapStyle = (0, _businessUtil.computeStyle)(nodeData, window.magicDesign.device);
80
77
  return /*#__PURE__*/_react["default"].createElement("div", {
81
78
  className: (0, _classnames["default"])('button-comp-wrap', (_a = {}, _a[nodeData.customize.layout] = true, _a[nodeData.customize.align] = true, _a)),
82
- onClick: this.onComponentClick,
83
- style: wrapStyle
84
- }, nodeData.content.button.open && /*#__PURE__*/_react["default"].createElement("div", {
85
- className: "first-button"
86
- }, /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
87
- data: nodeData.content.button
88
- })), nodeData.content.secondaryButton.open && /*#__PURE__*/_react["default"].createElement("div", {
89
- className: "secondary-button"
90
- }, /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
91
- data: nodeData.content.secondaryButton
92
- })));
79
+ onClick: this.onComponentClick
80
+ }, nodeData.groupSource && nodeData.groupSource.map(function (m) {
81
+ return /*#__PURE__*/_react["default"].createElement("div", {
82
+ className: "secondary-button"
83
+ }, /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
84
+ data: m.button
85
+ }));
86
+ }));
93
87
  };
94
88
 
95
89
  Button.defaultProps = {};
@@ -2,6 +2,7 @@
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: center;
5
+ flex-wrap: wrap;
5
6
 
6
7
  .first-button {
7
8
  margin: 5px;
@@ -7,10 +7,6 @@ exports.imagesGroupSourceJSON = exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
- var _defaultImg = _interopRequireDefault(require("./imgs/defaultImg.png"));
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
-
14
10
  var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
15
11
  var groupId = (0, _uuid.v4)();
16
12
  return {
@@ -24,8 +20,8 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
24
20
  content: {
25
21
  h5Name: 'h5Name',
26
22
  pcName: 'pcName',
27
- h5ImgSrc: _defaultImg["default"],
28
- pcImgSrc: _defaultImg["default"],
23
+ h5ImgSrc: '',
24
+ pcImgSrc: '',
29
25
  clickUrl: ''
30
26
  },
31
27
  hover: {
@@ -44,7 +40,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
44
40
  specialContent: [],
45
41
  text: 'Title of this group',
46
42
  content: {
47
- sizeType: 'Headline 1',
43
+ sizeType: 'Customize font styles',
48
44
  fontFamily: 'Open Sans',
49
45
  fontWeight: 600,
50
46
  fontSize: 16,
@@ -67,7 +63,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
67
63
  specialContent: [],
68
64
  text: 'Please enter a description',
69
65
  content: {
70
- sizeType: 'Headline 1',
66
+ sizeType: 'Customize font styles',
71
67
  fontFamily: 'Open Sans',
72
68
  fontWeight: 400,
73
69
  fontSize: 14,
@@ -86,8 +82,8 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
86
82
  content: {
87
83
  h5Name: '',
88
84
  pcName: '',
89
- h5ImgSrc: _defaultImg["default"],
90
- pcImgSrc: _defaultImg["default"],
85
+ h5ImgSrc: '',
86
+ pcImgSrc: '',
91
87
  clickUrl: ''
92
88
  },
93
89
  hover: {
@@ -109,7 +105,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
109
105
  backgroundColor: '#E6EAF0'
110
106
  },
111
107
  buttonText: {
112
- // sizeType: 'Headline 1',
108
+ sizeType: 'Customize font styles',
113
109
  fontFamily: 'Open Sans',
114
110
  fontWeight: 600,
115
111
  fontSize: 14,
@@ -145,7 +141,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
145
141
  backgroundColor: '#E6EAF0'
146
142
  },
147
143
  buttonText: {
148
- // sizeType: 'Headline 1',
144
+ sizeType: 'Customize font styles',
149
145
  fontFamily: 'Open Sans',
150
146
  fontWeight: 600,
151
147
  fontSize: 14,
@@ -174,7 +170,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
174
170
  backgroundColor: '#E6EAF0'
175
171
  },
176
172
  buttonText: {
177
- // sizeType: 'Headline 1',
173
+ sizeType: 'Customize font styles',
178
174
  fontFamily: 'Open Sans',
179
175
  fontWeight: 600,
180
176
  fontSize: 14,
@@ -210,7 +206,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
210
206
  backgroundColor: '#E6EAF0'
211
207
  },
212
208
  buttonText: {
213
- // sizeType: 'Headline 1',
209
+ sizeType: 'Customize font styles',
214
210
  fontFamily: 'Open Sans',
215
211
  fontWeight: 600,
216
212
  fontSize: 14,
@@ -266,12 +262,12 @@ var getDefaultJSON = function getDefaultJSON() {
266
262
  pc: {
267
263
  paddingTop: 10,
268
264
  paddingBottom: 10,
269
- marginBottom: 0
265
+ marginBottom: window.magicDesign.compSpacing * 1.5
270
266
  },
271
267
  mobile: {
272
268
  paddingTop: 10,
273
269
  paddingBottom: 10,
274
- marginBottom: 0
270
+ marginBottom: window.magicDesign.compSpacing
275
271
  }
276
272
  },
277
273
  customize: {
@@ -15,8 +15,6 @@ var _defaultJSON = require("./defaultJSON");
15
15
 
16
16
  var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
17
17
 
18
- var _businessUtil = require("../../../../utils/businessUtil");
19
-
20
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
19
 
22
20
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -72,10 +70,7 @@ function (_super) {
72
70
 
73
71
  Carousel.prototype.render = function () {
74
72
  var nodeData = this.props.nodeData;
75
- var wrapStyle = (0, _businessUtil.computeStyle)(nodeData, window.magicDesign.device);
76
- return /*#__PURE__*/_react["default"].createElement("div", {
77
- style: wrapStyle
78
- }, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
73
+ return /*#__PURE__*/_react["default"].createElement("div", null, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
79
74
  data: nodeData
80
75
  }) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
81
76
  data: nodeData
@@ -177,18 +177,15 @@ function (_super) {
177
177
  autoplay: data.setting.autoplay.open,
178
178
  autoplaySpeed: data.setting.autoplay.interval * 1000,
179
179
  speed: 500,
180
+ draggable: window.magicDesign.mode === 'renderer',
180
181
  slidesToShow: colNum,
181
- slidesToScroll: colNum,
182
+ slidesToScroll: 1,
182
183
  beforeChange: function beforeChange(oldIndex, newIndex) {
183
184
  _this.setState({
184
185
  sliderIndex: newIndex
185
186
  });
186
187
  }
187
- }; // const navStyle = {
188
- // fontSize: data.setting.navigation.size,
189
- // color: data.setting.navigation.color,
190
- // };
191
-
188
+ };
192
189
  return /*#__PURE__*/_react["default"].createElement("div", {
193
190
  className: "m-carousel-mobile",
194
191
  style: bgStyle
@@ -204,7 +201,6 @@ function (_super) {
204
201
  className: "img"
205
202
  }, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
206
203
  data: item.image,
207
- isBackground: true,
208
204
  maxHeight: MOBILE_IMG_SIZE[colNum - 1].h,
209
205
  maxWidth: MOBILE_IMG_SIZE[colNum - 1].w
210
206
  })), showText && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, item.title.open && /*#__PURE__*/_react["default"].createElement("div", {
@@ -225,7 +221,7 @@ function (_super) {
225
221
  }), item.secondButtonTag.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
226
222
  data: item.secondButtonTag
227
223
  }))));
228
- })), data.setting.dots.open && /*#__PURE__*/_react["default"].createElement("div", {
224
+ })), data.setting.dots.open && Math.ceil(data.groupSource.length / colNum) > 1 && /*#__PURE__*/_react["default"].createElement("div", {
229
225
  className: "swiper-ban"
230
226
  }, data.groupSource.length > 1 && data.groupSource.map(function (item, i) {
231
227
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -153,8 +153,6 @@ function (_super) {
153
153
  };
154
154
  }
155
155
 
156
- var spacing = data.spacing[window.magicDesign.device];
157
- if (spacing.contentWidth) bgStyle.width = spacing.contentWidth;
158
156
  var settings = {
159
157
  className: 'slider-wrap',
160
158
  arrows: false,
@@ -162,8 +160,9 @@ function (_super) {
162
160
  autoplay: data.setting.autoplay.open,
163
161
  autoplaySpeed: data.setting.autoplay.interval * 1000,
164
162
  speed: 500,
163
+ draggable: window.magicDesign.mode === 'renderer',
165
164
  slidesToShow: colNum,
166
- slidesToScroll: colNum,
165
+ slidesToScroll: 1,
167
166
  beforeChange: function beforeChange(oldIndex, newIndex) {
168
167
  _this.setState({
169
168
  sliderIndex: newIndex
@@ -174,9 +173,15 @@ function (_super) {
174
173
  fontSize: data.setting.navigation.size,
175
174
  color: data.setting.navigation.color
176
175
  };
176
+ var spacing = data.spacing[window.magicDesign.device];
177
177
  return /*#__PURE__*/_react["default"].createElement("div", {
178
178
  className: "m-carousel-pc",
179
179
  style: bgStyle
180
+ }, /*#__PURE__*/_react["default"].createElement("div", {
181
+ className: "content",
182
+ style: {
183
+ width: spacing.contentWidth ? 'fit-content' : '100%'
184
+ }
180
185
  }, data.setting.navigation.open && /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
181
186
  className: "carousel-icon-left",
182
187
  onClick: function onClick() {
@@ -186,7 +191,11 @@ function (_super) {
186
191
  onMouseLeave: this.mouseLeaveBtn,
187
192
  style: navStyle,
188
193
  type: "icon-left"
189
- }), /*#__PURE__*/_react["default"].createElement(_reactSlick["default"], _extends({
194
+ }), /*#__PURE__*/_react["default"].createElement("div", {
195
+ style: {
196
+ width: spacing.contentWidth || 'calc(100% - 52px)'
197
+ }
198
+ }, /*#__PURE__*/_react["default"].createElement(_reactSlick["default"], _extends({
190
199
  ref: function ref(slider) {
191
200
  return _this.sliderRef = slider;
192
201
  }
@@ -198,7 +207,6 @@ function (_super) {
198
207
  className: "img"
199
208
  }, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
200
209
  data: item.image,
201
- isBackground: true,
202
210
  maxHeight: PC_IMG_SIZE[colNum - 1].maxH,
203
211
  maxWidth: PC_IMG_SIZE[colNum - 1].maxW,
204
212
  minWidth: PC_IMG_SIZE[colNum - 1].minW
@@ -220,7 +228,7 @@ function (_super) {
220
228
  }), item.secondButtonTag.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
221
229
  data: item.secondButtonTag
222
230
  }))));
223
- })), data.setting.dots.open && /*#__PURE__*/_react["default"].createElement("div", {
231
+ }))), data.setting.dots.open && Math.ceil(data.groupSource.length / colNum) > 1 && /*#__PURE__*/_react["default"].createElement("div", {
224
232
  className: "swiper-ban"
225
233
  }, data.groupSource.length > 1 && data.groupSource.map(function (item, i) {
226
234
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -245,7 +253,7 @@ function (_super) {
245
253
  onMouseLeave: this.mouseLeaveBtn,
246
254
  style: navStyle,
247
255
  type: "icon-right"
248
- }));
256
+ })));
249
257
  };
250
258
 
251
259
  CarouselPc.defaultProps = {
@@ -1,20 +1,26 @@
1
1
  .m-carousel-pc {
2
- display: flex;
3
2
  position: relative;
4
- margin: 0 auto;
3
+ overflow-x: auto;
4
+ width: 100%;
5
+
6
+ .content {
7
+ display: flex;
8
+ width: fit-content;
9
+ margin: 0 auto;
10
+ }
5
11
 
6
12
  .carousel-icon-left {
7
13
  float: left;
8
- margin-left: 50px;
14
+ margin-left: 10px;
9
15
  }
10
16
 
11
17
  .carousel-icon-right {
12
18
  float: right;
13
- margin-right: 50px;
19
+ margin-right: 10px;
14
20
  }
15
21
 
16
22
  .slider-wrap {
17
- width: calc(100% - 200px);
23
+ width: 100%;
18
24
  padding: 30px 0;
19
25
  margin: 0 auto;
20
26
 
@@ -65,6 +71,8 @@
65
71
  position: absolute;
66
72
  width: 100%;
67
73
  bottom: 0;
74
+ left: 0;
75
+ right: 0;
68
76
  display: flex;
69
77
  align-items: center;
70
78
  justify-content: center;
@@ -50,12 +50,12 @@ var getDefaultJSON = function getDefaultJSON() {
50
50
  pc: {
51
51
  paddingTop: 10,
52
52
  paddingBottom: 10,
53
- marginBottom: 0
53
+ marginBottom: window.magicDesign.compSpacing * 1.5
54
54
  },
55
55
  mobile: {
56
56
  paddingTop: 10,
57
57
  paddingBottom: 10,
58
- marginBottom: 0
58
+ marginBottom: window.magicDesign.compSpacing
59
59
  }
60
60
  },
61
61
  customize: {
@@ -9,12 +9,17 @@ var _uuid = require("uuid");
9
9
 
10
10
  var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
11
11
  var groupId = (0, _uuid.v4)();
12
+ var imageId = (0, _uuid.v4)();
13
+ var titleId = (0, _uuid.v4)();
14
+ var textId = (0, _uuid.v4)();
15
+ var buttonId = (0, _uuid.v4)();
16
+ var secButtonId = (0, _uuid.v4)();
12
17
  return {
13
18
  id: groupId,
14
19
  image: {
15
20
  parentId: groupId,
16
- id: (0, _uuid.v4)(),
17
- open: false,
21
+ id: imageId,
22
+ open: true,
18
23
  type: 'IMAGE',
19
24
  content: {
20
25
  h5Name: 'name2',
@@ -33,13 +38,13 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
33
38
  },
34
39
  title: {
35
40
  parentId: groupId,
36
- id: (0, _uuid.v4)(),
41
+ id: titleId,
37
42
  open: true,
38
43
  type: 'TEXT',
39
44
  specialContent: [],
40
45
  text: 'Title of this group',
41
46
  content: {
42
- sizeType: 'Headline 1',
47
+ sizeType: 'Customize font styles',
43
48
  fontFamily: 'Open Sans',
44
49
  fontWeight: 600,
45
50
  fontSize: 12,
@@ -55,13 +60,13 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
55
60
  },
56
61
  text: {
57
62
  parentId: groupId,
58
- id: (0, _uuid.v4)(),
63
+ id: textId,
59
64
  open: true,
60
65
  type: 'TEXT',
61
66
  specialContent: [],
62
67
  text: 'Please enter a description',
63
68
  content: {
64
- sizeType: 'Headline 1',
69
+ sizeType: 'Customize font styles',
65
70
  fontFamily: 'Open Sans',
66
71
  fontWeight: 400,
67
72
  fontSize: 10,
@@ -73,7 +78,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
73
78
  },
74
79
  button: {
75
80
  parentId: groupId,
76
- id: (0, _uuid.v4)(),
81
+ id: buttonId,
77
82
  open: true,
78
83
  type: 'BUTTON',
79
84
  text: 'Button',
@@ -82,7 +87,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
82
87
  backgroundColor: '#2F54EB'
83
88
  },
84
89
  buttonText: {
85
- sizeType: 'Headline 1',
90
+ sizeType: 'Customize font styles',
86
91
  fontFamily: 'Open Sans',
87
92
  fontWeight: 400,
88
93
  fontSize: 10,
@@ -104,7 +109,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
104
109
  backgroundColor: '#0d39ed'
105
110
  },
106
111
  buttonText: {
107
- sizeType: 'Headline 1',
112
+ sizeType: 'Customize font styles',
108
113
  fontFamily: 'Open Sans',
109
114
  fontWeight: 600,
110
115
  fontSize: 14,
@@ -128,7 +133,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
128
133
  },
129
134
  secondButton: {
130
135
  parentId: groupId,
131
- id: (0, _uuid.v4)(),
136
+ id: secButtonId,
132
137
  open: true,
133
138
  type: 'BUTTON',
134
139
  text: 'More',
@@ -137,7 +142,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
137
142
  backgroundColor: '#fff'
138
143
  },
139
144
  buttonText: {
140
- sizeType: 'Headline 1',
145
+ sizeType: 'Customize font styles',
141
146
  fontFamily: 'Open Sans',
142
147
  fontWeight: 400,
143
148
  fontSize: 10,
@@ -159,7 +164,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
159
164
  backgroundColor: '#E9F0FF'
160
165
  },
161
166
  buttonText: {
162
- sizeType: 'Headline 1',
167
+ sizeType: 'Customize font styles',
163
168
  fontFamily: 'Open Sans',
164
169
  fontWeight: 600,
165
170
  fontSize: 14,
@@ -191,7 +196,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
191
196
  open: false,
192
197
  image: {
193
198
  parentId: groupId,
194
- id: (0, _uuid.v4)(),
199
+ id: imageId,
195
200
  open: false,
196
201
  type: 'IMAGE',
197
202
  content: {
@@ -211,7 +216,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
211
216
  },
212
217
  title: {
213
218
  parentId: groupId,
214
- id: (0, _uuid.v4)(),
219
+ id: titleId,
215
220
  open: true,
216
221
  type: 'TEXT',
217
222
  specialContent: [],
@@ -231,13 +236,13 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
231
236
  vertical: {}
232
237
  },
233
238
  text: {
234
- id: (0, _uuid.v4)(),
239
+ id: textId,
235
240
  open: true,
236
241
  type: 'TEXT',
237
242
  specialContent: [],
238
243
  text: '',
239
244
  content: {
240
- sizeType: 'Headline 1',
245
+ sizeType: 'Customize font styles',
241
246
  fontFamily: 'Open Sans',
242
247
  fontWeight: 400,
243
248
  fontSize: 18,
@@ -248,7 +253,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
248
253
  vertical: {}
249
254
  },
250
255
  button: {
251
- id: (0, _uuid.v4)(),
256
+ id: buttonId,
252
257
  open: true,
253
258
  type: 'BUTTON',
254
259
  text: 'Button',
@@ -257,7 +262,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
257
262
  backgroundColor: '#2F54EB'
258
263
  },
259
264
  buttonText: {
260
- sizeType: 'Headline 1',
265
+ sizeType: 'Customize font styles',
261
266
  fontFamily: 'Open Sans',
262
267
  fontWeight: 600,
263
268
  fontSize: 14,
@@ -279,7 +284,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
279
284
  backgroundColor: '#0d39ed'
280
285
  },
281
286
  buttonText: {
282
- sizeType: 'Headline 1',
287
+ sizeType: 'Customize font styles',
283
288
  fontFamily: 'Open Sans',
284
289
  fontWeight: 600,
285
290
  fontSize: 14,
@@ -298,7 +303,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
298
303
  }
299
304
  },
300
305
  secondButton: {
301
- id: (0, _uuid.v4)(),
306
+ id: secButtonId,
302
307
  open: true,
303
308
  type: 'BUTTON',
304
309
  text: 'More',
@@ -307,7 +312,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
307
312
  backgroundColor: '#fff'
308
313
  },
309
314
  buttonText: {
310
- sizeType: 'Headline 1',
315
+ sizeType: 'Customize font styles',
311
316
  fontFamily: 'Open Sans',
312
317
  fontWeight: 600,
313
318
  fontSize: 14,
@@ -329,7 +334,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
329
334
  backgroundColor: '#E9F0FF'
330
335
  },
331
336
  buttonText: {
332
- sizeType: 'Headline 1',
337
+ sizeType: 'Customize font styles',
333
338
  fontFamily: 'Open Sans',
334
339
  fontWeight: 600,
335
340
  fontSize: 14,
@@ -363,151 +368,6 @@ var getDefaultJSON = function getDefaultJSON() {
363
368
  return {
364
369
  id: (0, _uuid.v4)(),
365
370
  type: 'IMAGE_TEXT',
366
- // headline: {
367
- // id: uuidv4(),
368
- // open: true,
369
- // type: 'TEXT',
370
- // specialContent: [],
371
- // text: 'Digital Maturity',
372
- // content: {
373
- // sizeType: 'Headline 1',
374
- // fontFamily: 'Open Sans',
375
- // fontWeight: 600,
376
- // fontSize: 28,
377
- // color: '#232F46',
378
- // width: 0,
379
- // },
380
- // underline: {
381
- // open: false,
382
- // textDecorationColor: '',
383
- // textDecorationStyle: 'solid',
384
- // },
385
- // vertical: {
386
- // },
387
- // },
388
- // subtitle: {
389
- // id: uuidv4(),
390
- // open: true,
391
- // type: 'TEXT',
392
- // specialContent: [],
393
- // text: 'Freedom to innovate and create with ODA compliant B/OSS solutions',
394
- // content: {
395
- // sizeType: 'Headline 1',
396
- // fontFamily: 'Open Sans',
397
- // fontWeight: 400,
398
- // // textAlign: 'center',
399
- // fontSize: 16,
400
- // color: '#232F46',
401
- // width: 0,
402
- // },
403
- // underline: {
404
- // open: false,
405
- // textDecorationColor: '',
406
- // textDecorationStyle: 'solid',
407
- // },
408
- // vertical: {
409
- // },
410
- // },
411
- // button: {
412
- // id: uuidv4(),
413
- // open: true,
414
- // type: 'BUTTON',
415
- // text: 'Button',
416
- // content: {
417
- // url: '',
418
- // backgroundColor: '#2F54EB',
419
- // },
420
- // buttonText: {
421
- // sizeType: 'Headline 1',
422
- // fontFamily: 'Open Sans',
423
- // fontWeight: 600,
424
- // fontSize: 14,
425
- // fontStyle: 'normal',
426
- // color: '#fff',
427
- // },
428
- // buttonBorder: {
429
- // open: true,
430
- // borderColor: '',
431
- // borderRadius: 6,
432
- // },
433
- // buttonIcon: {
434
- // iconUrl: '',
435
- // layout: 'right',
436
- // },
437
- // hover: {
438
- // open: false,
439
- // content: {
440
- // backgroundColor: '#0d39ed',
441
- // },
442
- // buttonText: {
443
- // sizeType: 'Headline 1',
444
- // fontFamily: 'Open Sans',
445
- // fontWeight: 600,
446
- // fontSize: 14,
447
- // fontStyle: 'normal',
448
- // color: '#fff',
449
- // },
450
- // buttonBorder: {
451
- // open: true,
452
- // borderColor: '',
453
- // borderRadius: 6,
454
- // },
455
- // buttonIcon: {
456
- // iconUrl: '',
457
- // layout: 'right',
458
- // },
459
- // },
460
- // },
461
- // secondButton: {
462
- // id: uuidv4(),
463
- // open: false,
464
- // type: 'BUTTON',
465
- // text: 'Button',
466
- // content: {
467
- // url: '',
468
- // backgroundColor: '#FFFFFF',
469
- // },
470
- // buttonText: {
471
- // sizeType: 'Headline 1',
472
- // fontFamily: 'Open Sans',
473
- // fontWeight: 600,
474
- // fontSize: 14,
475
- // fontStyle: 'normal',
476
- // color: '#2F54EB',
477
- // },
478
- // buttonBorder: {
479
- // open: true,
480
- // borderColor: '#2F54EB',
481
- // borderRadius: 6,
482
- // },
483
- // buttonIcon: {
484
- // iconUrl: '',
485
- // layout: 'right',
486
- // },
487
- // hover: {
488
- // open: false,
489
- // content: {
490
- // backgroundColor: '#0d39ed',
491
- // },
492
- // buttonText: {
493
- // sizeType: 'Headline 1',
494
- // fontFamily: 'Open Sans',
495
- // fontWeight: 600,
496
- // fontSize: 14,
497
- // fontStyle: 'normal',
498
- // color: '#fff',
499
- // },
500
- // buttonBorder: {
501
- // open: true,
502
- // borderColor: '',
503
- // borderRadius: 6,
504
- // },
505
- // buttonIcon: {
506
- // iconUrl: '',
507
- // layout: 'right',
508
- // },
509
- // },
510
- // },
511
371
  spacing: {
512
372
  pc: {
513
373
  paddingTop: 10,