@fonixtree/magic-design 0.1.76 → 0.1.78

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 (313) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +23 -3
  2. package/es/assets/fonts/magic-box-iconfont.css.bak +23 -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/modal.less +1 -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/ImagePicker/index.js +50 -5
  17. package/es/common/ImagePicker/index.less +1 -0
  18. package/es/common/LinkModal/BundleCampaign/index.js +2 -2
  19. package/es/common/LinkModal/CatgTable/index.js +1 -1
  20. package/es/common/LinkModal/CouponTable/index.js +10 -2
  21. package/es/common/LinkModal/FilteredProductModal/index.js +12 -9
  22. package/es/common/LinkModal/FilteredProductModal/index.less +1 -1
  23. package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
  24. package/es/common/LinkModal/index.js +1 -1
  25. package/es/common/ProductModal/index.js +25 -32
  26. package/es/common/Video/index.js +11 -3
  27. package/es/common/Video/index.less +11 -7
  28. package/es/composite-comp/bol/components/Banner/mobile/index.js +6 -0
  29. package/es/composite-comp/bol/components/Carousel/index.js +27 -3
  30. package/es/composite-comp/bol/components/Carousel/mobile/index.js +11 -20
  31. package/es/composite-comp/bol/components/Carousel/pc/index.js +4 -2
  32. package/es/composite-comp/bol/components/CustomCode/defaultJSON.js +39 -0
  33. package/es/composite-comp/bol/components/CustomCode/index.js +138 -0
  34. package/es/composite-comp/bol/components/ImageText/pc/index.js +95 -3
  35. package/es/composite-comp/bol/components/ImageText/pc/index.less +32 -0
  36. package/es/composite-comp/bol/components/Location/defaultJSON.js +60 -0
  37. package/es/composite-comp/bol/components/Location/index.js +100 -0
  38. package/es/composite-comp/bol/components/Location/index.less +15 -0
  39. package/es/composite-comp/bol/components/Video/defaultJSON.js +24 -0
  40. package/es/composite-comp/bol/config-panels/CustomCodeConfig/MyEditor/index.js +42 -0
  41. package/es/composite-comp/bol/config-panels/CustomCodeConfig/index.js +111 -0
  42. package/es/composite-comp/bol/config-panels/LocationConfig/index.js +149 -0
  43. package/es/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png +0 -0
  44. package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +182 -2
  45. package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +114 -2
  46. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +113 -2
  47. package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +53 -2
  48. package/es/composite-comp/common/components/ProductItem/index.js +8 -4
  49. package/es/composite-comp/common/components/ProductItem/index.less +30 -15
  50. package/es/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
  51. package/es/composite-comp/dito/components/Recommend/mobile/index.js +16 -3
  52. package/es/composite-comp/dito/components/Recommend/pc/index.js +2 -1
  53. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
  54. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +67 -7
  55. package/es/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
  56. package/es/composite-comp/dito/components/SignBoard/defaultJSON.js +41 -37
  57. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +46 -37
  58. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +0 -14
  59. package/es/composite-comp/dito/components/SignBoard/pc/index.js +8 -11
  60. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
  61. package/es/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +9 -47
  62. package/es/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
  63. package/es/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +68 -1
  64. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +4 -4
  65. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +14 -2
  66. package/es/constants/component-types.js +10 -2
  67. package/es/constants/index.js +10 -1
  68. package/es/constants/layout.js +21 -1
  69. package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +6 -6
  70. package/es/core/Designer/AiImageGenerator/History/index.js +147 -0
  71. package/es/core/Designer/AiImageGenerator/History/index.less +75 -0
  72. package/es/core/Designer/AiImageGenerator/NumberSlider/index.js +31 -0
  73. package/es/core/Designer/AiImageGenerator/NumberSlider/index.less +8 -0
  74. package/es/core/Designer/AiImageGenerator/UploadReference/index.js +18 -8
  75. package/es/core/Designer/AiImageGenerator/UploadReference/index.less +6 -0
  76. package/es/core/Designer/AiImageGenerator/index.js +364 -63
  77. package/es/core/Designer/AiImageGenerator/index.less +70 -46
  78. package/es/core/Designer/ChatRobot/index.js +51 -14
  79. package/es/core/Designer/ChatRobot/index.less +11 -0
  80. package/es/core/Designer/ConfigPanel/index.js +2 -1
  81. package/es/core/Designer/FonixtreeGpt/index.js +32 -171
  82. package/es/core/Designer/LeftTitle/index.js +1 -1
  83. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  84. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  85. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  86. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  87. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  88. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
  89. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
  90. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.js +101 -0
  91. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.less +60 -0
  92. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/CircleSVG.js +52 -0
  93. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/InitialSVG.js +51 -0
  94. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/SquareSVG.js +58 -0
  95. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +96 -0
  96. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +26 -0
  97. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +105 -0
  98. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  99. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  100. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  101. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
  102. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
  103. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.js +133 -0
  104. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.less +60 -0
  105. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/CJLDecimalSVG.js +46 -0
  106. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/DecimalSVG.js +46 -0
  107. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerAlphaSVG.js +46 -0
  108. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerRomanSVG.js +46 -0
  109. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperAlphaSVG.js +46 -0
  110. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperRomanSVG.js +46 -0
  111. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +105 -0
  112. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +26 -0
  113. package/es/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
  114. package/es/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
  115. package/es/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
  116. package/es/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
  117. package/es/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
  118. package/es/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
  119. package/es/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
  120. package/es/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +36 -0
  121. package/es/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
  122. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +151 -0
  123. package/es/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
  124. package/es/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
  125. package/es/core/Designer/ToolBarModal/index.js +366 -0
  126. package/es/core/Designer/ToolBarModal/index.less +32 -0
  127. package/es/core/Designer/index.js +33 -10
  128. package/es/core/Renderer/index.js +20 -21
  129. package/es/decorator/index.js +38 -1
  130. package/es/decorator/lazyLoadDecorator.js +75 -0
  131. package/es/locale/en/en.json +6 -1
  132. package/es/locale/es/es.json +6 -1
  133. package/es/locale/id/id.json +6 -1
  134. package/es/meta-comp/components/Button/index.js +7 -0
  135. package/es/meta-comp/components/Image/index.js +19 -3
  136. package/es/meta-comp/components/Text/formats/fontFamily.js +58 -0
  137. package/es/meta-comp/components/Text/formats/fontStyle.js +58 -0
  138. package/es/meta-comp/components/Text/formats/fontWeight.js +58 -0
  139. package/es/meta-comp/components/Text/formats/listStyleTypeStyle.js +58 -0
  140. package/es/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
  141. package/es/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
  142. package/es/meta-comp/components/Text/index.js +110 -372
  143. package/es/meta-comp/components/Text/index.less +57 -0
  144. package/es/meta-comp/config-panels/ButtonConfig/index.js +30 -28
  145. package/es/meta-comp/config-panels/ImageConfig/index.js +3 -1
  146. package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
  147. package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
  148. package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
  149. package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
  150. package/es/meta-comp/config-panels/TextConfig/index.js +9 -30
  151. package/es/meta-comp/config-panels/TextConfig/index.less +12 -16
  152. package/es/mobx/Frame.js +7 -1
  153. package/es/utils/androidUtil.js +6 -0
  154. package/es/utils/commonUtil.js +35 -7
  155. package/es/utils/coreUtil.js +15 -0
  156. package/es/utils/currencyUtil.js +29 -10
  157. package/lib/assets/fonts/magic-box-iconfont.css +23 -3
  158. package/lib/assets/fonts/magic-box-iconfont.css.bak +23 -3
  159. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  160. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  161. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  162. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  163. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  164. package/lib/assets/images/layout-icon/imageTextLeft.svg +6 -0
  165. package/lib/assets/images/layout-icon/imageTextRight.svg +6 -0
  166. package/lib/assets/images/layout-icon/locationLayout.png +0 -0
  167. package/lib/assets/less/modal.less +1 -1
  168. package/lib/common/ColorPicker/index.js +4 -1
  169. package/lib/common/Field/index.js +20 -3
  170. package/lib/common/ImageLazy/index.js +172 -0
  171. package/lib/common/ImageLazy/index.less +0 -0
  172. package/lib/common/ImagePicker/index.js +50 -5
  173. package/lib/common/ImagePicker/index.less +1 -0
  174. package/lib/common/LinkModal/BundleCampaign/index.js +2 -2
  175. package/lib/common/LinkModal/CatgTable/index.js +1 -1
  176. package/lib/common/LinkModal/CouponTable/index.js +10 -2
  177. package/lib/common/LinkModal/FilteredProductModal/index.js +12 -9
  178. package/lib/common/LinkModal/FilteredProductModal/index.less +1 -1
  179. package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
  180. package/lib/common/LinkModal/index.js +1 -1
  181. package/lib/common/ProductModal/index.js +25 -32
  182. package/lib/common/Video/index.js +11 -3
  183. package/lib/common/Video/index.less +11 -7
  184. package/lib/composite-comp/bol/components/Banner/mobile/index.js +6 -0
  185. package/lib/composite-comp/bol/components/Carousel/index.js +27 -3
  186. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +11 -20
  187. package/lib/composite-comp/bol/components/Carousel/pc/index.js +4 -2
  188. package/lib/composite-comp/bol/components/CustomCode/defaultJSON.js +39 -0
  189. package/lib/composite-comp/bol/components/CustomCode/index.js +138 -0
  190. package/lib/composite-comp/bol/components/ImageText/pc/index.js +95 -3
  191. package/lib/composite-comp/bol/components/ImageText/pc/index.less +32 -0
  192. package/lib/composite-comp/bol/components/Location/defaultJSON.js +60 -0
  193. package/lib/composite-comp/bol/components/Location/index.js +100 -0
  194. package/lib/composite-comp/bol/components/Location/index.less +15 -0
  195. package/lib/composite-comp/bol/components/Video/defaultJSON.js +24 -0
  196. package/lib/composite-comp/bol/config-panels/CustomCodeConfig/MyEditor/index.js +42 -0
  197. package/lib/composite-comp/bol/config-panels/CustomCodeConfig/index.js +111 -0
  198. package/lib/composite-comp/bol/config-panels/LocationConfig/index.js +149 -0
  199. package/lib/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png +0 -0
  200. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +182 -2
  201. package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +114 -2
  202. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +113 -2
  203. package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +53 -2
  204. package/lib/composite-comp/common/components/ProductItem/index.js +8 -4
  205. package/lib/composite-comp/common/components/ProductItem/index.less +30 -15
  206. package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
  207. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +16 -3
  208. package/lib/composite-comp/dito/components/Recommend/pc/index.js +2 -1
  209. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
  210. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +67 -7
  211. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
  212. package/lib/composite-comp/dito/components/SignBoard/defaultJSON.js +41 -37
  213. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +46 -37
  214. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +0 -14
  215. package/lib/composite-comp/dito/components/SignBoard/pc/index.js +8 -11
  216. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
  217. package/lib/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +9 -47
  218. package/lib/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
  219. package/lib/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +68 -1
  220. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +4 -4
  221. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +14 -2
  222. package/lib/constants/component-types.js +10 -2
  223. package/lib/constants/index.js +10 -1
  224. package/lib/constants/layout.js +21 -1
  225. package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +6 -6
  226. package/lib/core/Designer/AiImageGenerator/History/index.js +147 -0
  227. package/lib/core/Designer/AiImageGenerator/History/index.less +75 -0
  228. package/lib/core/Designer/AiImageGenerator/NumberSlider/index.js +31 -0
  229. package/lib/core/Designer/AiImageGenerator/NumberSlider/index.less +8 -0
  230. package/lib/core/Designer/AiImageGenerator/UploadReference/index.js +18 -8
  231. package/lib/core/Designer/AiImageGenerator/UploadReference/index.less +6 -0
  232. package/lib/core/Designer/AiImageGenerator/index.js +364 -63
  233. package/lib/core/Designer/AiImageGenerator/index.less +70 -46
  234. package/lib/core/Designer/ChatRobot/index.js +51 -14
  235. package/lib/core/Designer/ChatRobot/index.less +11 -0
  236. package/lib/core/Designer/ConfigPanel/index.js +2 -1
  237. package/lib/core/Designer/FonixtreeGpt/index.js +32 -171
  238. package/lib/core/Designer/LeftTitle/index.js +1 -1
  239. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  240. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  241. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  242. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  243. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  244. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
  245. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
  246. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.js +101 -0
  247. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.less +60 -0
  248. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/CircleSVG.js +52 -0
  249. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/InitialSVG.js +51 -0
  250. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/SquareSVG.js +58 -0
  251. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +96 -0
  252. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +26 -0
  253. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +105 -0
  254. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  255. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  256. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  257. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
  258. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
  259. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.js +133 -0
  260. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.less +60 -0
  261. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/CJLDecimalSVG.js +46 -0
  262. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/DecimalSVG.js +46 -0
  263. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerAlphaSVG.js +46 -0
  264. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerRomanSVG.js +46 -0
  265. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperAlphaSVG.js +46 -0
  266. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperRomanSVG.js +46 -0
  267. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +105 -0
  268. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +26 -0
  269. package/lib/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
  270. package/lib/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
  271. package/lib/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
  272. package/lib/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
  273. package/lib/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
  274. package/lib/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
  275. package/lib/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
  276. package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +36 -0
  277. package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
  278. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +151 -0
  279. package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
  280. package/lib/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
  281. package/lib/core/Designer/ToolBarModal/index.js +366 -0
  282. package/lib/core/Designer/ToolBarModal/index.less +32 -0
  283. package/lib/core/Designer/index.js +33 -10
  284. package/lib/core/Renderer/index.js +20 -21
  285. package/lib/decorator/index.js +38 -1
  286. package/lib/decorator/lazyLoadDecorator.js +75 -0
  287. package/lib/locale/en/en.json +6 -1
  288. package/lib/locale/es/es.json +6 -1
  289. package/lib/locale/id/id.json +6 -1
  290. package/lib/meta-comp/components/Button/index.js +7 -0
  291. package/lib/meta-comp/components/Image/index.js +19 -3
  292. package/lib/meta-comp/components/Text/formats/fontFamily.js +58 -0
  293. package/lib/meta-comp/components/Text/formats/fontStyle.js +58 -0
  294. package/lib/meta-comp/components/Text/formats/fontWeight.js +58 -0
  295. package/lib/meta-comp/components/Text/formats/listStyleTypeStyle.js +58 -0
  296. package/lib/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
  297. package/lib/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
  298. package/lib/meta-comp/components/Text/index.js +110 -372
  299. package/lib/meta-comp/components/Text/index.less +57 -0
  300. package/lib/meta-comp/config-panels/ButtonConfig/index.js +30 -28
  301. package/lib/meta-comp/config-panels/ImageConfig/index.js +3 -1
  302. package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
  303. package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
  304. package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
  305. package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
  306. package/lib/meta-comp/config-panels/TextConfig/index.js +9 -30
  307. package/lib/meta-comp/config-panels/TextConfig/index.less +12 -16
  308. package/lib/mobx/Frame.js +7 -1
  309. package/lib/utils/androidUtil.js +6 -0
  310. package/lib/utils/commonUtil.js +35 -7
  311. package/lib/utils/coreUtil.js +15 -0
  312. package/lib/utils/currencyUtil.js +29 -10
  313. package/package.json +5 -2
@@ -9,19 +9,29 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
11
 
12
- var _lodash = require("lodash");
12
+ var _quill = _interopRequireDefault(require("quill"));
13
13
 
14
- require("./index.less");
14
+ require("./formats/fontWeight");
15
+
16
+ require("./formats/fontFamily");
17
+
18
+ require("./formats/textDecorationColor");
19
+
20
+ require("./formats/fontStyle");
15
21
 
16
- var _Iconfont = require("../../../common/Iconfont");
22
+ require("./formats/listStyleTypeStyle");
23
+
24
+ require("./formats/textDecorationStyle");
17
25
 
18
26
  var _decorator = require("../../../decorator");
19
27
 
20
28
  var _coreUtil = require("../../../utils/coreUtil");
21
29
 
30
+ var _commonUtil = require("../../../utils/commonUtil");
31
+
22
32
  var _mobx = require("../../../mobx");
23
33
 
24
- var _commonUtil = require("../../../utils/commonUtil");
34
+ require("./index.less");
25
35
 
26
36
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
37
 
@@ -92,6 +102,14 @@ var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
92
102
 
93
103
  return r;
94
104
  };
105
+ /* eslint-disable react/no-danger */
106
+
107
+
108
+ var sizeStyle = _quill["default"]["import"]('attributors/style/size');
109
+
110
+ sizeStyle.whitelist = null;
111
+
112
+ _quill["default"].register(sizeStyle, true);
95
113
 
96
114
  var contentStyle = function contentStyle(content) {
97
115
  return {
@@ -105,187 +123,9 @@ var contentStyle = function contentStyle(content) {
105
123
  width: '100%'
106
124
  };
107
125
  };
108
- /** 从父级数组中 分离出 片段数组 */
109
-
110
126
 
111
127
  exports.contentStyle = contentStyle;
112
128
 
113
- var calcSplitRange = function calcSplitRange(parentRange, splitRange) {
114
- if (parentRange[0] == splitRange[0]) {
115
- if (parentRange[1] == splitRange[1]) {
116
- return parentRange;
117
- } else {
118
- return [[parentRange[0], splitRange[1]], [splitRange[1], parentRange[1]]];
119
- }
120
- }
121
-
122
- if (parentRange[1] == splitRange[1]) {
123
- return [[parentRange[0], splitRange[0]], [splitRange[0], parentRange[1]]];
124
- }
125
-
126
- return [[parentRange[0], splitRange[0]], [splitRange[0], splitRange[1]], [splitRange[1], parentRange[1]]];
127
- };
128
- /** 驱动配置面板渲染 */
129
-
130
-
131
- var triggerTextConfigRender = function triggerTextConfigRender() {
132
- window.document.dispatchEvent(new Event('text-render', {
133
- bubbles: false
134
- }));
135
- };
136
- /** 初始化监听事件 */
137
-
138
-
139
- var initSelectionEvent = function initSelectionEvent() {
140
- if (!window.document.onselectionchange) {
141
- window.document.onselectionchange = (0, _lodash.debounce)(function (e) {
142
- var _a;
143
-
144
- var _b, _c, _d, _e;
145
- /** 找到选中的text区域 并且注册过事件 */
146
-
147
-
148
- var findSelectionTarget = window._selectionTarget.find(function (_a) {
149
- var target = _a.target;
150
- return target == e.target.activeElement;
151
- });
152
- /** 所有选中状态清楚 */
153
-
154
-
155
- var clearSelection = function clearSelection() {
156
- _mobx.store.setState({
157
- textSelection: null
158
- });
159
-
160
- triggerTextConfigRender();
161
- };
162
-
163
- if (findSelectionTarget) {
164
- var range = window.getSelection().getRangeAt(0);
165
- /** 记录当前选中的范围 给label使用 */
166
-
167
- window._currentRange = window.getSelection().getRangeAt(0);
168
- var startOffset = range.startOffset,
169
- endOffset = range.endOffset,
170
- startContainer_1 = range.startContainer,
171
- endContainer = range.endContainer;
172
- /** 起始点=终点 取消 */
173
-
174
- if (startOffset == endOffset) {
175
- clearSelection();
176
- return;
177
- }
178
- /** 如果全部选中 取消 */
179
-
180
-
181
- if (startOffset == 0 && endOffset == findSelectionTarget.data.text.length) {
182
- clearSelection();
183
- return;
184
- }
185
- /** 判断起始点和结束点是否相同 */
186
-
187
-
188
- if (startContainer_1 == endContainer) {
189
- /** 如果还没有选中区域 */
190
- if (findSelectionTarget.data.specialContent.length == 0) {
191
- var nowRange_1 = [startOffset, endOffset].sort(function (a, b) {
192
- return a - b;
193
- });
194
- var rangeList = calcSplitRange([0, findSelectionTarget.data.text.length], nowRange_1);
195
- findSelectionTarget.data.specialContent = rangeList.map(function (range) {
196
- return {
197
- range: range,
198
- content: {}
199
- };
200
- });
201
- var findSelectionRange = (_b = findSelectionTarget.data.specialContent) === null || _b === void 0 ? void 0 : _b.find(function (c) {
202
- return JSON.stringify(c.range) == JSON.stringify(nowRange_1);
203
- });
204
-
205
- _mobx.store.setState({
206
- textSelection: findSelectionRange.content
207
- });
208
- } else {
209
- /** 如果已有选中区域 */
210
- var nowRange_2 = [startOffset, endOffset].sort(function (a, b) {
211
- return a - b;
212
- });
213
- var selectionRangeJSON_1 = Object.keys(findSelectionTarget.selectionRefMap).find(function (rangeTarget) {
214
- return findSelectionTarget.selectionRefMap[rangeTarget] == startContainer_1.parentNode;
215
- });
216
- var findSelectionRangeTarget_1 = (_c = findSelectionTarget.data.specialContent) === null || _c === void 0 ? void 0 : _c.find(function (c) {
217
- return JSON.stringify(c.range) == selectionRangeJSON_1;
218
- });
219
- /** 选中没配置过的区域 可以进行拆分 */
220
-
221
- if ((0, _lodash.isEmpty)(findSelectionRangeTarget_1.content)) {
222
- /** 计算偏移值 */
223
- nowRange_2[0] += findSelectionRangeTarget_1.range[0];
224
- nowRange_2[1] += findSelectionRangeTarget_1.range[0];
225
- /** 补充新的选中区域 */
226
-
227
- if (JSON.stringify(findSelectionRangeTarget_1.range) != JSON.stringify(nowRange_2)) {
228
- var rangeList = calcSplitRange(findSelectionRangeTarget_1.range, nowRange_2);
229
- var nowContentIndex = (_d = findSelectionTarget.data.specialContent) === null || _d === void 0 ? void 0 : _d.findIndex(function (c) {
230
- return c == findSelectionRangeTarget_1;
231
- });
232
-
233
- (_a = findSelectionTarget.data.specialContent).splice.apply(_a, __spreadArrays([nowContentIndex, 1], rangeList.map(function (range) {
234
- return {
235
- range: range,
236
- content: {}
237
- };
238
- })));
239
- }
240
-
241
- var findSelectionRange = (_e = findSelectionTarget.data.specialContent) === null || _e === void 0 ? void 0 : _e.find(function (c) {
242
- return JSON.stringify(c.range) == JSON.stringify(nowRange_2);
243
- });
244
-
245
- _mobx.store.setState({
246
- textSelection: findSelectionRange.content
247
- });
248
- } else {
249
- /** 选中已经配置过的区域 不能拆分 */
250
- _mobx.store.setState({
251
- textSelection: findSelectionRangeTarget_1.content
252
- });
253
- }
254
- }
255
- } else {
256
- _mobx.store.setState({
257
- textSelection: null
258
- });
259
- }
260
-
261
- findSelectionTarget.refresh();
262
- } // todo 不知道干什么用的
263
-
264
-
265
- triggerTextConfigRender();
266
- }, 500);
267
- }
268
- };
269
- /** 添加选择区域监听目标 */
270
-
271
-
272
- var appendSelectionTarget = function appendSelectionTarget(data) {
273
- if (!window._selectionTarget) {
274
- window._selectionTarget = [__assign({}, data)];
275
- } else {
276
- window._selectionTarget.push(__assign({}, data));
277
- }
278
- };
279
- /** 删除监听目标 */
280
-
281
-
282
- var deleteSelectionTarget = function deleteSelectionTarget(deleteTarget) {
283
- window._selectionTarget = window._selectionTarget.filter(function (_a) {
284
- var target = _a.target;
285
- return target != deleteTarget;
286
- });
287
- };
288
-
289
129
  var Text =
290
130
  /** @class */
291
131
  function (_super) {
@@ -294,145 +134,56 @@ function (_super) {
294
134
  function Text() {
295
135
  var _this = _super !== null && _super.apply(this, arguments) || this;
296
136
 
297
- _this.state = {};
298
- /** 分割区域dom映射 */
299
-
300
- _this.selectionRefMap = {};
301
137
  _this.textRef = /*#__PURE__*/_react["default"].createRef();
302
- /** 备份历史数据 比对不一致时渲染 */
303
-
304
- _this.preData = '';
305
- _this.preTextSelection = null;
306
- /** 创建关闭图标按钮 */
307
-
308
- _this.createHoverClose = function (node, onCloseClick) {
309
- if (onCloseClick === void 0) {
310
- onCloseClick = function onCloseClick() {};
311
- }
312
-
313
- node.className = 'select-container';
314
- var closeNode = document.createElement('span');
315
- closeNode.className = 'close-wrap';
316
- closeNode.contentEditable = 'false';
317
- var iconNode = document.createElement('span');
318
- iconNode.contentEditable = 'false';
319
- iconNode.className = (0, _Iconfont.convertIconClass)('icon-close-circle');
320
- iconNode.onclick = onCloseClick;
321
- closeNode.appendChild(iconNode);
322
- node.appendChild(closeNode);
138
+ _this.quillRef = null;
139
+ _this.state = {
140
+ editabled: false
323
141
  };
324
142
 
325
- _this.renderText = function (data, mode) {
326
- var outputType = _this.props.outputType || window.magicDesign.outputType;
327
-
328
- var _mode = mode || window.magicDesign.mode;
329
-
330
- if (!_this.textRef.current) return;
331
-
332
- _this.textRef.current.blur();
333
- /** 保留历史数据 */
334
-
335
-
336
- _this.preData = JSON.stringify(data);
337
- _this.preTextSelection = _mobx.store.textSelection;
338
- _this.preDevice = window.magicDesign.device;
339
- /** 渲染html */
340
-
341
- if (data.specialContent.length == 0) {
342
- if (outputType == 'html' && _mode == 'renderer') {
343
- if (data === null || data === void 0 ? void 0 : data.content.clickUrl) {
344
- var a = document.createElement('a');
345
- a.href = _typeof(data.content.clickUrl) === 'object' ? data.content.clickUrl.value : data.content.clickUrl;
346
- a.target = '_blank';
347
- a.innerHTML = data.text;
348
- _this.textRef.current.innerHTML = '';
143
+ _this.renderEditor = function () {
144
+ _this.setState({
145
+ editabled: true
146
+ }, function () {
147
+ _this.quillRef = new _quill["default"](_this.textRef.current, {
148
+ placeholder: '请输入内容...'
149
+ });
349
150
 
350
- _this.textRef.current.appendChild(a);
351
- } else {
352
- _this.textRef.current.innerHTML = data.text;
151
+ _mobx.frameStore.setState({
152
+ textModalState: {
153
+ quillRef: null
353
154
  }
354
- } else {
355
- _this.textRef.current.innerHTML = data.text;
356
- }
357
- } else {
358
- _this.textRef.current.innerHTML = '';
359
- data.specialContent.forEach(function (c, index) {
360
- var _a, _b, _c;
361
-
362
- var node = document.createElement('span');
363
- node.style = (0, _commonUtil.styleStringify)(contentStyle(c.content));
364
-
365
- if (c === null || c === void 0 ? void 0 : c.content.clickUrl) {
366
- if (outputType == 'html' && _mode == 'renderer') {
367
- var a = document.createElement('a');
368
- a.href = _typeof(c.content.clickUrl) === 'object' ? c.content.clickUrl.value : c.content.clickUrl;
369
- a.target = '_blank';
370
-
371
- if (_mode == 'designer') {
372
- a.onclick = function (e) {
373
- e.preventDefault();
374
- };
375
- }
376
-
377
- a.innerText = (_a = data.text).slice.apply(_a, c.range);
378
- node.appendChild(a);
379
- } else {
380
- node.innerText = (_b = data.text).slice.apply(_b, c.range);
381
-
382
- node.onclick = function (e) {
383
- if (c.content.clickUrl) {
384
- e.stopPropagation();
385
- }
386
-
387
- (0, _coreUtil.clickUrl)(c.content.clickUrl);
388
- };
389
- }
390
- } else {
391
- node.innerText = (_c = data.text).slice.apply(_c, c.range);
392
- }
393
-
394
- _this.selectionRefMap[JSON.stringify(c.range)] = node;
395
-
396
- _this.textRef.current.appendChild(node);
397
- /** 找到当前选中的区域 */
398
-
399
-
400
- if (_mobx.store.textSelection == (c === null || c === void 0 ? void 0 : c.content)) {
401
- /** 添加删除按钮 */
402
- _this.createHoverClose(node, function () {
403
- /** 第一步去除选中区域 */
404
- _mobx.store.setState({
405
- textSelection: null
406
- });
407
- /** 清空区间配置 */
408
-
155
+ });
409
156
 
410
- data.specialContent[index].content = {};
411
- /** 合并区间无配置区间 */
157
+ setTimeout(function () {
158
+ _mobx.frameStore.setState({
159
+ textModalState: {
160
+ quillRef: _this.quillRef
161
+ }
162
+ });
163
+ }, 100);
164
+ });
165
+ };
412
166
 
413
- for (var i = 0; i < data.specialContent.length - 1;) {
414
- /** 如果本级和下级都是空值 那么合并 */
415
- if ((0, _lodash.isEmpty)(data.specialContent[i].content) && (0, _lodash.isEmpty)(data.specialContent[i + 1].content)) {
416
- data.specialContent[i].range = [data.specialContent[i].range[0], data.specialContent[i + 1].range[1]];
417
- data.specialContent.splice(i + 1, 1);
418
- } else {
419
- i += 1;
420
- }
421
- }
167
+ _this.onContentClick = function () {
168
+ var data = _this.props.data;
422
169
 
423
- triggerTextConfigRender();
424
- });
425
- }
426
- });
170
+ if (window.magicDesign.mode == 'designer') {
171
+ _this.renderEditor();
172
+ } else {
173
+ (0, _coreUtil.clickUrl)(data.content.clickUrl);
427
174
  }
428
- /** 清除无用的node */
175
+ };
176
+
177
+ _this.onEditorClose = function () {
178
+ _this.props.data.html = _this.quillRef.root.innerHTML;
429
179
 
180
+ _this.setState({
181
+ editabled: false
182
+ });
430
183
 
431
- Object.keys(_this.selectionRefMap).forEach(function (key) {
432
- if (!data.specialContent.find(function (c) {
433
- return JSON.stringify(c.range) == key;
434
- })) {
435
- Reflect.deleteProperty(_this.selectionRefMap, key);
184
+ _mobx.frameStore.setState({
185
+ textModalState: {
186
+ quillRef: null
436
187
  }
437
188
  });
438
189
  };
@@ -441,49 +192,28 @@ function (_super) {
441
192
  }
442
193
 
443
194
  Text.prototype.componentDidMount = function () {
444
- var _this = this;
445
-
446
- this.renderText(this.props.data, this.props.mode);
447
- initSelectionEvent();
448
- appendSelectionTarget({
449
- target: this.textRef.current,
450
- data: this.props.data,
451
- selectionRefMap: this.selectionRefMap,
452
- refresh: function refresh() {
453
- _this.renderText(_this.props.data, _this.props.mode);
454
- }
195
+ __spreadArrays(this.textRef.current.querySelectorAll('a')).forEach(function (dom) {
196
+ dom.addEventListener('click', function (event) {
197
+ event.preventDefault();
198
+ var target = event.currentTarget;
199
+ var href = target.getAttribute('href'); // 在这里执行你想要的操作
200
+
201
+ console.log('链接点击事件:', href);
202
+ var data = JSON.parse(href);
203
+ (0, _coreUtil.clickUrl)(data);
204
+ });
455
205
  });
456
206
  };
457
207
 
458
- Text.prototype.shouldComponentUpdate = function (nextProps) {
459
- var should1 = JSON.stringify(nextProps.data) != this.preData;
460
- var should2 = _mobx.store.textSelection != this.preTextSelection;
461
- var should3 = window.magicDesign.device != this.preDevice;
462
- var result = should1 || should2 || should3;
463
-
464
- if (result) {
465
- this.renderText(nextProps.data, nextProps.mode);
466
- }
467
-
468
- return result;
469
- };
470
-
471
- Text.prototype.componentWillUnmount = function () {
472
- deleteSelectionTarget(this.textRef.current);
208
+ Text.prototype.shouldComponentUpdate = function () {
209
+ return true;
473
210
  };
474
211
 
475
212
  Text.prototype.render = function () {
476
- var _this = this;
477
-
478
213
  var _a = this.props,
479
214
  data = _a.data,
480
- className = _a.className,
481
- readonly = _a.readonly,
482
- onTextInput = _a.onTextInput,
483
- mode = _a.mode;
484
-
485
- var _mode = mode || window.magicDesign.mode;
486
-
215
+ className = _a.className;
216
+ var editabled = this.state.editabled;
487
217
  var style = contentStyle(data.content);
488
218
 
489
219
  if (data.underline) {
@@ -501,41 +231,46 @@ function (_super) {
501
231
  } else {
502
232
  style = __assign(__assign({}, style), data.spacing.mobile);
503
233
  }
504
- } // const style: React.CSSProperties = {
505
- // ...contentStyle(data.content),
506
- // textDecorationLine: data?.underline.open ? 'underline' : 'none',
507
- // textDecorationColor: data?.underline.textDecorationColor,
508
- // textDecorationStyle: data?.underline.textDecorationStyle,
509
- // };
234
+ }
510
235
 
236
+ if (editabled) {
237
+ return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
238
+ className: "editor-shadow",
239
+ onClick: this.onEditorClose
240
+ }), /*#__PURE__*/_react["default"].createElement("div", {
241
+ className: "quill-text-content-wrap",
242
+ style: {
243
+ zIndex: 3
244
+ }
245
+ }, /*#__PURE__*/_react["default"].createElement("div", {
246
+ ref: this.textRef,
247
+ className: (0, _classnames["default"])('m-meta-text', className),
248
+ dangerouslySetInnerHTML: {
249
+ __html: data.html || data.text
250
+ },
251
+ onClick: function onClick() {
252
+ (0, _coreUtil.clickUrl)(data.content.clickUrl);
253
+ },
254
+ onKeyDown: function onKeyDown(e) {
255
+ e.stopPropagation();
256
+ },
257
+ style: (0, _commonUtil.pxToRem)(__assign({}, style))
258
+ })));
259
+ }
511
260
 
512
261
  return /*#__PURE__*/_react["default"].createElement("div", {
513
262
  ref: this.textRef,
514
- className: (0, _classnames["default"])('m-meta-text', className),
515
- contentEditable: _mode == 'designer' && !readonly,
516
- onClick: function onClick() {
517
- (0, _coreUtil.clickUrl)(data.content.clickUrl);
518
- },
519
- onInput: function onInput(e) {
520
- var text = e.target.textContent;
521
- data.text = text;
522
- /** 毁灭吧 累了 */
523
-
524
- data.specialContent = [];
525
- /** 主动更新历史数据避免render */
526
-
527
- _this.preData = JSON.stringify(__assign(__assign({}, JSON.parse(_this.preData)), {
528
- text: text
529
- }));
530
- /** 通知变更 */
531
-
532
- onTextInput(text);
263
+ className: (0, _classnames["default"])('m-meta-text', 'quill-text-content-wrap', className),
264
+ dangerouslySetInnerHTML: {
265
+ __html: data.html || data.text
533
266
  },
267
+ onClick: this.onContentClick,
534
268
  onKeyDown: function onKeyDown(e) {
535
269
  e.stopPropagation();
536
270
  },
537
- style: (0, _commonUtil.pxToRem)(__assign({}, style)),
538
- suppressContentEditableWarning: true
271
+ style: (0, _commonUtil.pxToRem)(__assign(__assign({}, style), {
272
+ zIndex: 1
273
+ }))
539
274
  });
540
275
  };
541
276
 
@@ -543,6 +278,9 @@ function (_super) {
543
278
  readonly: false,
544
279
  onTextInput: function onTextInput() {}
545
280
  };
281
+
282
+ __decorate([(0, _decorator.shouldUpdate)()], Text.prototype, "shouldComponentUpdate", null);
283
+
546
284
  Text = __decorate([_decorator.metaDecorator], Text);
547
285
  return Text;
548
286
  }(_react["default"].Component);
@@ -1,6 +1,63 @@
1
+ .editor-shadow {
2
+ position: fixed;
3
+ top: 0;
4
+ right: 0;
5
+ bottom: 0;
6
+ left: 0;
7
+ background-color: rgba(0, 0, 0, 0);
8
+ z-index: 2;
9
+ }
10
+
11
+ .quill-text-content-wrap {
12
+ position: relative;
13
+ z-index: 3;
14
+
15
+ .ql-font-Montserrat {
16
+ font-family: 'Montserrat';
17
+ font-style: normal;
18
+ font-weight: 400;
19
+ }
20
+
21
+ .ql-font-MontserratBold {
22
+ font-family: 'Montserrat';
23
+ font-style: normal;
24
+ font-weight: 600;
25
+ }
26
+
27
+ .ql-font-OpenSans {
28
+ font-family: 'Open Sans';
29
+ font-style: normal;
30
+ font-weight: 400;
31
+ }
32
+
33
+ .ql-font-OpenSansBold {
34
+ font-family: 'Open Sans';
35
+ font-style: normal;
36
+ font-weight: 600;
37
+ }
38
+ }
39
+
40
+ .ql-clipboard {
41
+ left: -100000px;
42
+ height: 1px;
43
+ overflow-y: hidden;
44
+ position: absolute;
45
+ top: 50%;
46
+ }
47
+
1
48
  .m-meta-text {
2
49
  display: block;
3
50
 
51
+
52
+ ol,
53
+ ul,
54
+ dl,
55
+ p {
56
+ margin-bottom: 0;
57
+ }
58
+
59
+
60
+
4
61
  .select-container {
5
62
  position: relative;
6
63