@fonixtree/magic-design 1.0.5 → 2.0.3

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 (245) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +47 -3
  2. package/es/assets/fonts/magic-box-iconfont.css.bak +47 -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/less/slider.less +49 -1
  9. package/es/common/ImageModal/index.js +35 -2
  10. package/es/common/ImagePicker/index.js +69 -9
  11. package/es/common/ImagePicker/index.less +1 -0
  12. package/es/common/LinkModal/AffiliateProductTable/index.js +348 -0
  13. package/es/common/LinkModal/CatgTable/index.js +6 -3
  14. package/es/common/LinkModal/FilteredProductModal/index.js +2 -2
  15. package/es/common/LinkModal/ProductDetailPage/index.js +1 -1
  16. package/es/common/LinkModal/index.js +6 -0
  17. package/es/composite-comp/bol/components/Banner/defaultJSON.js +1 -1
  18. package/es/composite-comp/bol/components/Banner/index.js +15 -1
  19. package/es/composite-comp/bol/components/Banner/mobile/index.js +1 -4
  20. package/es/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  21. package/es/composite-comp/bol/components/Banner/pc/index.js +1 -4
  22. package/es/composite-comp/bol/components/Button/index.js +3 -4
  23. package/es/composite-comp/bol/components/Carousel/mobile/index.js +1 -4
  24. package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  25. package/es/composite-comp/bol/components/Carousel/pc/index.js +1 -4
  26. package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
  27. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  28. package/es/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
  29. package/es/composite-comp/bol/components/ImageText/defaultJSON.js +11 -2
  30. package/es/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
  31. package/es/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  32. package/es/composite-comp/bol/components/ImageText/pc/index.js +3 -4
  33. package/es/composite-comp/bol/components/Newsletter/index.js +1 -4
  34. package/es/composite-comp/bol/components/Tag/index.js +3 -4
  35. package/es/composite-comp/bol/components/Text/index.js +3 -4
  36. package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +49 -10
  37. package/es/composite-comp/bol/components/Video/components/VideoTag/index.less +5 -5
  38. package/es/composite-comp/bol/components/Video/defaultJSON.js +10 -0
  39. package/es/composite-comp/bol/components/Video/index.js +23 -1
  40. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +9 -12
  41. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
  42. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +8 -11
  43. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
  44. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +9 -11
  45. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -50
  46. package/es/composite-comp/bol/components/Video/mobile/index.js +8 -49
  47. package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
  48. package/es/composite-comp/bol/components/Video/pc/Layout1/index.js +9 -12
  49. package/es/composite-comp/bol/components/Video/pc/Layout1/index.less +2 -2
  50. package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +15 -16
  51. package/es/composite-comp/bol/components/Video/pc/Layout2/index.less +4 -4
  52. package/es/composite-comp/bol/components/Video/pc/Layout3/index.js +8 -11
  53. package/es/composite-comp/bol/components/Video/pc/Layout3/index.less +2 -2
  54. package/es/composite-comp/bol/components/Video/pc/Layout4/index.js +9 -12
  55. package/es/composite-comp/bol/components/Video/pc/Layout4/index.less +5 -4
  56. package/es/composite-comp/bol/components/Video/pc/Layout5/index.js +9 -12
  57. package/es/composite-comp/bol/components/Video/pc/Layout5/index.less +12 -10
  58. package/es/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
  59. package/es/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
  60. package/es/composite-comp/bol/components/Wallet/pc/index.js +1 -4
  61. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +4 -0
  62. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
  63. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -1
  64. package/es/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +12 -2
  65. package/es/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
  66. package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +10 -1
  67. package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +12 -2
  68. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
  69. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  70. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  71. package/es/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  72. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
  73. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +76 -80
  74. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
  75. package/es/constants/index.js +4 -2
  76. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
  77. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
  78. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
  79. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
  80. package/es/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
  81. package/es/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
  82. package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
  83. package/es/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
  84. package/es/core/Designer/AiImageGenerator/History/index.js +141 -0
  85. package/es/core/Designer/AiImageGenerator/History/index.less +69 -0
  86. package/es/core/Designer/AiImageGenerator/UploadReference/index.js +45 -0
  87. package/es/core/Designer/AiImageGenerator/UploadReference/index.less +39 -0
  88. package/es/core/Designer/AiImageGenerator/images/nodata.png +0 -0
  89. package/es/core/Designer/AiImageGenerator/index.js +711 -0
  90. package/es/core/Designer/AiImageGenerator/index.less +144 -0
  91. package/es/core/Designer/ChatRobot/components/CopyBtn/index.js +49 -0
  92. package/es/core/Designer/ChatRobot/components/CopyBtn/index.less +0 -0
  93. package/es/core/Designer/ChatRobot/index.js +321 -0
  94. package/es/core/Designer/ChatRobot/index.less +135 -0
  95. package/es/core/Designer/ChatRobot/markdown.less +1 -0
  96. package/es/core/Designer/FonixtreeGpt/index.js +160 -0
  97. package/es/core/Designer/index.js +27 -8
  98. package/es/decorator/metaDecorator.js +1 -1
  99. package/es/locale/en/en.json +5 -0
  100. package/es/locale/es/es.json +5 -0
  101. package/es/locale/id/id.json +5 -0
  102. package/es/meta-comp/config-panels/ImageConfig/index.js +32 -11
  103. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-01.svg +4 -0
  104. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-02.svg +4 -0
  105. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-03.svg +4 -0
  106. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-04.svg +4 -0
  107. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-05.svg +3 -0
  108. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-01.svg +4 -0
  109. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-02.svg +4 -0
  110. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-03.svg +4 -0
  111. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-04.svg +4 -0
  112. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-05.svg +3 -0
  113. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/index.js +63 -0
  114. package/es/meta-comp/config-panels/PlayIconConfig/index.js +211 -0
  115. package/es/meta-comp/config-panels/PlayIconConfig/index.less +37 -2
  116. package/es/meta-comp/config-panels/TextConfig/index.js +5 -1
  117. package/es/mobx/Store.js +3 -0
  118. package/es/utils/androidUtil.js +2 -1
  119. package/es/utils/businessUtil.js +13 -0
  120. package/es/utils/commonUtil.js +142 -34
  121. package/es/utils/coreUtil.js +3 -4
  122. package/lib/assets/fonts/magic-box-iconfont.css +47 -3
  123. package/lib/assets/fonts/magic-box-iconfont.css.bak +47 -3
  124. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  125. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  126. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  127. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  128. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  129. package/lib/assets/less/slider.less +49 -1
  130. package/lib/common/ImageModal/index.js +35 -2
  131. package/lib/common/ImagePicker/index.js +69 -9
  132. package/lib/common/ImagePicker/index.less +1 -0
  133. package/lib/common/LinkModal/AffiliateProductTable/index.js +348 -0
  134. package/lib/common/LinkModal/CatgTable/index.js +6 -3
  135. package/lib/common/LinkModal/FilteredProductModal/index.js +2 -2
  136. package/lib/common/LinkModal/ProductDetailPage/index.js +1 -1
  137. package/lib/common/LinkModal/index.js +6 -0
  138. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +1 -1
  139. package/lib/composite-comp/bol/components/Banner/index.js +15 -1
  140. package/lib/composite-comp/bol/components/Banner/mobile/index.js +1 -4
  141. package/lib/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  142. package/lib/composite-comp/bol/components/Banner/pc/index.js +1 -4
  143. package/lib/composite-comp/bol/components/Button/index.js +3 -4
  144. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +1 -4
  145. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  146. package/lib/composite-comp/bol/components/Carousel/pc/index.js +1 -4
  147. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
  148. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  149. package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
  150. package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +11 -2
  151. package/lib/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
  152. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  153. package/lib/composite-comp/bol/components/ImageText/pc/index.js +3 -4
  154. package/lib/composite-comp/bol/components/Newsletter/index.js +1 -4
  155. package/lib/composite-comp/bol/components/Tag/index.js +3 -4
  156. package/lib/composite-comp/bol/components/Text/index.js +3 -4
  157. package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +49 -10
  158. package/lib/composite-comp/bol/components/Video/components/VideoTag/index.less +5 -5
  159. package/lib/composite-comp/bol/components/Video/defaultJSON.js +10 -0
  160. package/lib/composite-comp/bol/components/Video/index.js +23 -1
  161. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +9 -12
  162. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
  163. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +8 -11
  164. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
  165. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +9 -11
  166. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -50
  167. package/lib/composite-comp/bol/components/Video/mobile/index.js +8 -49
  168. package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
  169. package/lib/composite-comp/bol/components/Video/pc/Layout1/index.js +9 -12
  170. package/lib/composite-comp/bol/components/Video/pc/Layout1/index.less +2 -2
  171. package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +15 -16
  172. package/lib/composite-comp/bol/components/Video/pc/Layout2/index.less +4 -4
  173. package/lib/composite-comp/bol/components/Video/pc/Layout3/index.js +8 -11
  174. package/lib/composite-comp/bol/components/Video/pc/Layout3/index.less +2 -2
  175. package/lib/composite-comp/bol/components/Video/pc/Layout4/index.js +9 -12
  176. package/lib/composite-comp/bol/components/Video/pc/Layout4/index.less +5 -4
  177. package/lib/composite-comp/bol/components/Video/pc/Layout5/index.js +9 -12
  178. package/lib/composite-comp/bol/components/Video/pc/Layout5/index.less +12 -10
  179. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
  180. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
  181. package/lib/composite-comp/bol/components/Wallet/pc/index.js +1 -4
  182. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +4 -0
  183. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
  184. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -1
  185. package/lib/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +12 -2
  186. package/lib/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
  187. package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +10 -1
  188. package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +12 -2
  189. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
  190. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  191. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  192. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  193. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
  194. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +76 -80
  195. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
  196. package/lib/constants/index.js +4 -2
  197. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
  198. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
  199. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
  200. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
  201. package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
  202. package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
  203. package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
  204. package/lib/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
  205. package/lib/core/Designer/AiImageGenerator/History/index.js +141 -0
  206. package/lib/core/Designer/AiImageGenerator/History/index.less +69 -0
  207. package/lib/core/Designer/AiImageGenerator/UploadReference/index.js +45 -0
  208. package/lib/core/Designer/AiImageGenerator/UploadReference/index.less +39 -0
  209. package/lib/core/Designer/AiImageGenerator/images/nodata.png +0 -0
  210. package/lib/core/Designer/AiImageGenerator/index.js +711 -0
  211. package/lib/core/Designer/AiImageGenerator/index.less +144 -0
  212. package/lib/core/Designer/ChatRobot/components/CopyBtn/index.js +49 -0
  213. package/lib/core/Designer/ChatRobot/components/CopyBtn/index.less +0 -0
  214. package/lib/core/Designer/ChatRobot/index.js +321 -0
  215. package/lib/core/Designer/ChatRobot/index.less +135 -0
  216. package/lib/core/Designer/ChatRobot/markdown.less +1 -0
  217. package/lib/core/Designer/FonixtreeGpt/index.js +160 -0
  218. package/lib/core/Designer/index.js +27 -8
  219. package/lib/decorator/metaDecorator.js +1 -1
  220. package/lib/locale/en/en.json +5 -0
  221. package/lib/locale/es/es.json +5 -0
  222. package/lib/locale/id/id.json +5 -0
  223. package/lib/meta-comp/config-panels/ImageConfig/index.js +32 -11
  224. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-01.svg +4 -0
  225. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-02.svg +4 -0
  226. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-03.svg +4 -0
  227. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-04.svg +4 -0
  228. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-05.svg +3 -0
  229. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-01.svg +4 -0
  230. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-02.svg +4 -0
  231. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-03.svg +4 -0
  232. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-04.svg +4 -0
  233. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-05.svg +3 -0
  234. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/index.js +63 -0
  235. package/lib/meta-comp/config-panels/PlayIconConfig/index.js +211 -0
  236. package/lib/meta-comp/config-panels/PlayIconConfig/index.less +37 -2
  237. package/lib/meta-comp/config-panels/TextConfig/index.js +5 -1
  238. package/lib/mobx/Store.js +3 -0
  239. package/lib/utils/androidUtil.js +2 -1
  240. package/lib/utils/businessUtil.js +13 -0
  241. package/lib/utils/commonUtil.js +142 -34
  242. package/lib/utils/coreUtil.js +3 -4
  243. package/package.json +2 -1
  244. package/es/assets/fonts/.DS_Store +0 -0
  245. package/lib/assets/fonts/.DS_Store +0 -0
@@ -0,0 +1,211 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _antd = require("antd");
11
+
12
+ var _classnames = _interopRequireDefault(require("classnames"));
13
+
14
+ require("./index.less");
15
+
16
+ var _PlaySvg = _interopRequireDefault(require("./PlaySvg"));
17
+
18
+ var _BaseConfig = _interopRequireDefault(require("../BaseConfig"));
19
+
20
+ var _common = require("../../../common");
21
+
22
+ var _locale = require("../../../locale");
23
+
24
+ var _coreUtil = require("../../../utils/coreUtil");
25
+
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
+
28
+ var __extends = void 0 && (void 0).__extends || function () {
29
+ var _extendStatics = function extendStatics(d, b) {
30
+ _extendStatics = Object.setPrototypeOf || {
31
+ __proto__: []
32
+ } instanceof Array && function (d, b) {
33
+ d.__proto__ = b;
34
+ } || function (d, b) {
35
+ for (var p in b) {
36
+ if (b.hasOwnProperty(p)) d[p] = b[p];
37
+ }
38
+ };
39
+
40
+ return _extendStatics(d, b);
41
+ };
42
+
43
+ return function (d, b) {
44
+ _extendStatics(d, b);
45
+
46
+ function __() {
47
+ this.constructor = d;
48
+ }
49
+
50
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
51
+ };
52
+ }();
53
+ /* eslint-disable react/no-this-in-sfc */
54
+
55
+
56
+ var Option = _antd.Select.Option;
57
+ var iconColorList = [{
58
+ key: 'Light',
59
+ value: (0, _locale.i18n)('LIGHT')
60
+ }, {
61
+ key: 'Dark',
62
+ value: (0, _locale.i18n)('DARK')
63
+ }];
64
+ var DarkIconList = [{
65
+ iconName: 'dark-playicon-01'
66
+ }, {
67
+ iconName: 'dark-playicon-02'
68
+ }, {
69
+ iconName: 'dark-playicon-03'
70
+ }, {
71
+ iconName: 'dark-playicon-04'
72
+ }, {
73
+ iconName: 'dark-playicon-05'
74
+ }];
75
+ var LightIconList = [{
76
+ iconName: 'light-playicon-01'
77
+ }, {
78
+ iconName: 'light-playicon-02'
79
+ }, {
80
+ iconName: 'light-playicon-03'
81
+ }, {
82
+ iconName: 'light-playicon-04'
83
+ }, {
84
+ iconName: 'light-playicon-05'
85
+ }];
86
+ var iconList = LightIconList;
87
+
88
+ var PlayIconConfig =
89
+ /** @class */
90
+ function (_super) {
91
+ __extends(PlayIconConfig, _super);
92
+
93
+ function PlayIconConfig() {
94
+ var _this = _super !== null && _super.apply(this, arguments) || this;
95
+
96
+ _this.state = {
97
+ iconSelectedIndex: 0
98
+ };
99
+
100
+ _this.reRender = function () {
101
+ (0, _coreUtil.renderPreview)();
102
+
103
+ _this.setState({});
104
+ };
105
+
106
+ return _this;
107
+ }
108
+
109
+ PlayIconConfig.prototype.componentDidMount = function () {
110
+ window.document.addEventListener('button-render', this.selfRender);
111
+ iconList = this.props.data.iconColor === 'Light' ? LightIconList : DarkIconList;
112
+ };
113
+
114
+ PlayIconConfig.prototype.componentWillUnmount = function () {
115
+ window.document.removeEventListener('button-render', this.selfRender);
116
+ };
117
+
118
+ PlayIconConfig.prototype.render = function () {
119
+ var _this = this;
120
+
121
+ var data = this.props.data;
122
+ var iconSelectedIndex = this.state.iconSelectedIndex;
123
+ return /*#__PURE__*/_react["default"].createElement("div", {
124
+ className: "play-config"
125
+ }, /*#__PURE__*/_react["default"].createElement(_common.Field, {
126
+ split: true,
127
+ title: "Play Icon Type"
128
+ }, /*#__PURE__*/_react["default"].createElement("div", {
129
+ className: "icon-wrap"
130
+ }, iconList.map(function (item, i) {
131
+ return /*#__PURE__*/_react["default"].createElement("div", {
132
+ key: item.iconName,
133
+ className: (0, _classnames["default"])('icon-item-wrap', {
134
+ 'icon-selected-wrap': i === iconSelectedIndex
135
+ }),
136
+ onClick: function onClick() {
137
+ _this.setState({
138
+ iconSelectedIndex: i
139
+ });
140
+
141
+ data.iconType = item.iconName;
142
+
143
+ _this.reRender();
144
+ }
145
+ }, /*#__PURE__*/_react["default"].createElement("div", {
146
+ className: "selected-icon"
147
+ }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
148
+ color: "#fff",
149
+ size: 8,
150
+ type: "icon-vector"
151
+ })), /*#__PURE__*/_react["default"].createElement(_PlaySvg["default"], {
152
+ imgName: item.iconName,
153
+ imgWidth: 28
154
+ }));
155
+ }))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
156
+ split: true,
157
+ title: "Play Icon Color"
158
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
159
+ className: "icon-color-select",
160
+ onChange: function onChange(value) {
161
+ data.iconColor = value;
162
+ iconList = value === 'Light' ? LightIconList : DarkIconList;
163
+ data.iconType = iconList[iconSelectedIndex].iconName;
164
+
165
+ _this.reRender();
166
+ },
167
+ size: "large",
168
+ value: data.iconColor
169
+ }, iconColorList.map(function (v) {
170
+ return /*#__PURE__*/_react["default"].createElement(Option, {
171
+ key: v.key,
172
+ value: v.key
173
+ }, v.value);
174
+ }))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
175
+ title: "Play Icon Size"
176
+ }, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
177
+ inputType: "int",
178
+ maxVal: 100,
179
+ minVal: 40,
180
+ onChange: function onChange(_a) {
181
+ var count = _a.count;
182
+
183
+ if ((0, _coreUtil.isPc)()) {
184
+ data.pcSize = count;
185
+ } else {
186
+ data.size = count;
187
+ }
188
+
189
+ _this.reRender();
190
+ },
191
+ value: {
192
+ count: (0, _coreUtil.isPc)() ? data.pcSize : data.size
193
+ }
194
+ })));
195
+ };
196
+
197
+ PlayIconConfig.defaultProps = {
198
+ data: {
199
+ open: false,
200
+ type: 'PLAY',
201
+ size: 48,
202
+ pcSize: 60,
203
+ iconType: 'light-playicon-01',
204
+ iconColor: 'Light'
205
+ }
206
+ };
207
+ return PlayIconConfig;
208
+ }(_BaseConfig["default"]);
209
+
210
+ var _default = PlayIconConfig;
211
+ exports["default"] = _default;
@@ -1,4 +1,39 @@
1
- .m-button-config {
2
- padding: 0 12px;
1
+ .play-config {
2
+ padding: 12px;
3
3
  background-color: #F5F6F7;
4
+ border-radius: 6px;
5
+ .icon-wrap {
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: flex-start;
9
+ .icon-item-wrap {
10
+ margin-right: 12px;
11
+ border-radius: 4px;
12
+ background-color: #D2D9E5;
13
+ padding: 4px;
14
+ line-height: 1;
15
+ border: 1px solid transparent;
16
+ min-height: 34px;
17
+ .selected-icon {
18
+ display: none;
19
+ }
20
+ }
21
+ .icon-selected-wrap {
22
+ border-color: #00AC5A;
23
+ position: relative;
24
+ .selected-icon {
25
+ position: absolute;
26
+ display: block;
27
+ top: -7px;
28
+ right: -7px;
29
+ background-color: #00AC5A;
30
+ width: 14px;
31
+ height: 14px;
32
+ border-radius: 50%;
33
+ display: flex;
34
+ align-items: center;
35
+ justify-content: center;
36
+ }
37
+ }
38
+ }
4
39
  }
@@ -241,8 +241,12 @@ function (_super) {
241
241
  }, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
242
242
  value: 400
243
243
  }, (0, _locale.i18n)('REGULAR')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
244
+ value: 500
245
+ }, (0, _locale.i18n)('MEDIUM')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
244
246
  value: 600
245
- }, (0, _locale.i18n)('MEDIUM')))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
247
+ }, (0, _locale.i18n)('SEMIBOLD')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
248
+ value: 700
249
+ }, (0, _locale.i18n)('BOLD')))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
246
250
  title: (0, _locale.i18n)('FONT_SIZE')
247
251
  }, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
248
252
  onChange: function onChange(_a) {
package/es/mobx/Store.js CHANGED
@@ -38,6 +38,8 @@ function () {
38
38
 
39
39
  this.CarouselStore = {}; // 轮播组件暂存数据
40
40
 
41
+ this.imgGenVisible = false; // 图片生成器是否可见
42
+
41
43
  (0, _mobx.makeObservable)(this, {
42
44
  MPageData: _mobx.observable,
43
45
  locale: _mobx.observable,
@@ -47,6 +49,7 @@ function () {
47
49
  clickedFloor: _mobx.observable,
48
50
  hoveredFloor: _mobx.observable,
49
51
  CarouselStore: _mobx.observable,
52
+ imgGenVisible: _mobx.observable,
50
53
  setState: _mobx.action.bound
51
54
  });
52
55
  }
@@ -21,7 +21,8 @@ var browserVersion = function browserVersion() {
21
21
  webApp: u.indexOf('Safari') == -1,
22
22
  weixin: u.indexOf('MicroMessenger') > -1,
23
23
  qq: u.match(/\sQQ/i) == ' qq',
24
- isApp: u.indexOf('app/CYLON-APP') > -1
24
+ isApp: u.indexOf('app/CYLON-APP') > -1,
25
+ isAshitaApp: u.indexOf('app/ASHITA-APP') > -1
25
26
  };
26
27
  };
27
28
 
@@ -153,6 +153,19 @@ var newParseUrl = function newParseUrl(urlObj) {
153
153
  };
154
154
  break;
155
155
 
156
+ case _constants.urlTypeMap.AFFILIATE_PRODUCT:
157
+ // 分销商品
158
+ link = '';
159
+ params = {
160
+ action: 'operation',
161
+ params: {
162
+ type: 'AFFILIATE_PRODUCT',
163
+ productName: value,
164
+ productId: productId
165
+ }
166
+ };
167
+ break;
168
+
156
169
  default:
157
170
  var map = {
158
171
  '/main/cart': 'CART',
@@ -7,13 +7,14 @@ exports.addZero = exports.addUrlQuery = void 0;
7
7
  exports.asyncDataURLtoImage = asyncDataURLtoImage;
8
8
  exports.checkFileName = exports.calcLastTime = exports.asyncNextTick = void 0;
9
9
  exports.commonFetch = commonFetch;
10
+ exports.compatibleNewPageData = void 0;
10
11
  exports.convertImageUrl = convertImageUrl;
11
12
  exports.convertToRem = void 0;
12
13
  exports.copy2ClipBoard = copy2ClipBoard;
13
14
  exports.covertKey = covertKey;
14
- exports.dragSource = void 0;
15
+ exports.dragSource = exports.downloadBase64Image = void 0;
15
16
  exports.ensure = ensure;
16
- exports.getColorRgba = void 0;
17
+ exports.getGAData = exports.getColorRgba = void 0;
17
18
  exports.getPageDataMap = getPageDataMap;
18
19
  exports.nextTick = exports.navigateTo = exports.importAsync = exports.getUrlParams = void 0;
19
20
  exports.pushGA = pushGA;
@@ -28,10 +29,30 @@ var _axios = _interopRequireDefault(require("axios"));
28
29
 
29
30
  var _lodash = require("lodash");
30
31
 
32
+ var _uuid = require("uuid");
33
+
31
34
  var _qs = _interopRequireDefault(require("qs"));
32
35
 
36
+ var _constants = require("../constants");
37
+
33
38
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
34
39
 
40
+ var __assign = void 0 && (void 0).__assign || function () {
41
+ __assign = Object.assign || function (t) {
42
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
43
+ s = arguments[i];
44
+
45
+ for (var p in s) {
46
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
47
+ }
48
+ }
49
+
50
+ return t;
51
+ };
52
+
53
+ return __assign.apply(this, arguments);
54
+ };
55
+
35
56
  var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
36
57
  function adopt(value) {
37
58
  return value instanceof P ? value : new P(function (resolve) {
@@ -722,13 +743,18 @@ var asyncNextTick = function asyncNextTick(asyncFunc, interval, count) {
722
743
  exports.asyncNextTick = asyncNextTick;
723
744
 
724
745
  var convertToRem = function convertToRem(value) {
725
- return value; // PTO项目 解开注释
726
- // if (window.magicDesign.device === 'pc' || window.magicDesign.mode === 'designer') {
727
- // return value;
728
- // }
729
- // const pxValue = parseFloat(value);
730
- // const remValue = pxValue / 50; // 假设1rem = 50px
731
- // return `${remValue}rem`;
746
+ // return value; // PTO项目 解开注释
747
+ if (window.magicDesign.device === 'pc' || window.magicDesign.mode === 'designer') {
748
+ return value + "px";
749
+ }
750
+
751
+ var baseFont = ensure(function () {
752
+ return window.getComputedStyle(document.getElementsByTagName('html')[0]).fontSize.replace('px', '');
753
+ }, 50);
754
+ var pxValue = parseFloat(value);
755
+ var remValue = pxValue / baseFont; // 假设1rem = 50px
756
+
757
+ return remValue + "rem";
732
758
  };
733
759
  /** px to rem */
734
760
 
@@ -736,30 +762,112 @@ var convertToRem = function convertToRem(value) {
736
762
  exports.convertToRem = convertToRem;
737
763
 
738
764
  var pxToRem = function pxToRem(styleObj) {
739
- return styleObj; // PTO项目 解开注释
740
- // if (window.magicDesign.device === 'pc' || window.magicDesign.mode === 'designer') {
741
- // return styleObj;
742
- // }
743
- // const remObj = {};
744
- // for (const key in styleObj) {
745
- // if (styleObj.hasOwnProperty(key)) {
746
- // const value = styleObj[key];
747
- // if (typeof value === 'string' && value.endsWith('px')) {
748
- // remObj[key] = key === 'opacity' || key === 'lineHeight' ? value : convertToRem(value);
749
- // } else if (typeof value === 'number') {
750
- // remObj[key] = convertToRem(value);
751
- // } else if ((key === 'padding' || key === 'margin') && typeof value === 'string') {
752
- // const paddingValues = value.split(' ');
753
- // const remPaddingValues = paddingValues.map((paddingValue) => {
754
- // return paddingValue.endsWith('px') ? convertToRem(paddingValue) : paddingValue;
755
- // });
756
- // remObj[key] = remPaddingValues.join(' ');
757
- // } else {
758
- // remObj[key] = value;
759
- // }
760
- // }
761
- // }
762
- // return remObj;
765
+ // return styleObj; // PTO项目 解开注释
766
+ if (window.magicDesign.device === 'pc' || window.magicDesign.mode === 'designer') {
767
+ return styleObj;
768
+ }
769
+
770
+ var remObj = {};
771
+
772
+ for (var key in styleObj) {
773
+ if (styleObj.hasOwnProperty(key)) {
774
+ var value = styleObj[key];
775
+
776
+ if (typeof value === 'string' && value.endsWith('px')) {
777
+ remObj[key] = key === 'opacity' || key === 'lineHeight' ? value : convertToRem(value);
778
+ } else if (typeof value === 'number') {
779
+ remObj[key] = convertToRem(value);
780
+ } else if ((key === 'padding' || key === 'margin') && typeof value === 'string') {
781
+ var paddingValues = value.split(' ');
782
+ var remPaddingValues = paddingValues.map(function (paddingValue) {
783
+ return paddingValue.endsWith('px') ? convertToRem(paddingValue) : paddingValue;
784
+ });
785
+ remObj[key] = remPaddingValues.join(' ');
786
+ } else {
787
+ remObj[key] = value;
788
+ }
789
+ }
790
+ }
791
+
792
+ return remObj;
793
+ };
794
+ /**
795
+ * 处理新老数据兼容问题
796
+ * @param pageData 大JSON
797
+ */
798
+
799
+
800
+ exports.pxToRem = pxToRem;
801
+
802
+ var compatibleNewPageData = function compatibleNewPageData(pageData) {
803
+ if (pageData.childNodes && pageData.childNodes.length > 0) {
804
+ pageData.childNodes.forEach(function (child) {
805
+ // 兼容新功能:banner 轮播的 dots 点 区分pc 移动
806
+ if (child.type === 'BANNER') {
807
+ if (!child.setting.dots.color.pc || !child.setting.dots.hoverColor.pc || !child.setting.dots.size.pc) {
808
+ child.setting.dots = __assign(__assign({}, child.setting.dots), {
809
+ color: {
810
+ pc: '#fff',
811
+ mobile: '#fff'
812
+ },
813
+ hoverColor: {
814
+ pc: '#fff',
815
+ mobile: '#fff'
816
+ },
817
+ size: {
818
+ pc: 16,
819
+ mobile: 8
820
+ },
821
+ hoverSize: {
822
+ pc: 16,
823
+ mobile: 8
824
+ }
825
+ });
826
+ }
827
+ } // 兼容新开发的功能: video新增播放按钮 的设置
828
+
829
+
830
+ if (child.type === 'VIDEO') {
831
+ // console.log('--compatibleNewPageData -- video ');
832
+ child.groupSource.forEach(function (group) {
833
+ if (!group.playIcon) {
834
+ group.playIcon = {
835
+ open: true,
836
+ parentId: group.id,
837
+ id: (0, _uuid.v4)(),
838
+ type: 'PLAY',
839
+ size: 48,
840
+ pcSize: 60,
841
+ iconType: 'light-playicon-01',
842
+ iconColor: 'Light'
843
+ };
844
+ }
845
+ }); // console.log('--compatibleNewPageData -- video add group.playIcon ', child.groupSource);
846
+ }
847
+ });
848
+ }
849
+ };
850
+
851
+ exports.compatibleNewPageData = compatibleNewPageData;
852
+
853
+ var getGAData = function getGAData(data) {
854
+ var _a;
855
+
856
+ return {
857
+ moduleId: data.id,
858
+ moduleName: data.moduleIndex + '.' + ((_a = _constants.compInfoMap[data.type]) === null || _a === void 0 ? void 0 : _a.name)
859
+ };
860
+ };
861
+
862
+ exports.getGAData = getGAData;
863
+
864
+ var downloadBase64Image = function downloadBase64Image(base64String, filename) {
865
+ // 创建一个虚拟的链接元素
866
+ var link = document.createElement('a');
867
+ link.href = base64String;
868
+ link.download = filename; // 模拟点击下载
869
+
870
+ link.click();
763
871
  };
764
872
 
765
- exports.pxToRem = pxToRem;
873
+ exports.downloadBase64Image = downloadBase64Image;
@@ -304,7 +304,7 @@ var clickUrl = function clickUrl(url) {
304
304
  var _b = data.params,
305
305
  params = _b === void 0 ? {} : _b;
306
306
 
307
- if ((0, _androidUtil.browserVersion)().isApp) {
307
+ if ((0, _androidUtil.browserVersion)().isAshitaApp) {
308
308
  (0, _androidUtil.sendToApp)(data);
309
309
  } else {
310
310
  // 视频
@@ -319,10 +319,9 @@ var clickUrl = function clickUrl(url) {
319
319
  if (params.type === 'GET_COUPON') {
320
320
  getCoupon(params.couponId);
321
321
  return;
322
- } // 分享
323
-
322
+ }
324
323
 
325
- if (params.type === 'SHARE_URL') {
324
+ if (params.type === 'SHARE_URL' || params.type === 'AFFILIATE_PRODUCT') {
326
325
  if (window.magicDesign.handleAction) {
327
326
  window.magicDesign.handleAction(params);
328
327
  }
@@ -1,8 +1,8 @@
1
1
  @font-face {
2
2
  font-family: "magic-box-iconfont"; /* Project id 3317752 */
3
- src: url('magic-box-iconfont.woff2?t=1686648198297') format('woff2'),
4
- url('magic-box-iconfont.woff?t=1686648198297') format('woff'),
5
- url('magic-box-iconfont.ttf?t=1686648198297') format('truetype');
3
+ src: url('magic-box-iconfont.woff2?t=1687675025610') format('woff2'),
4
+ url('magic-box-iconfont.woff?t=1687675025610') format('woff'),
5
+ url('magic-box-iconfont.ttf?t=1687675025610') format('truetype');
6
6
  }
7
7
 
8
8
  .magic-box-iconfont {
@@ -13,6 +13,50 @@
13
13
  -moz-osx-font-smoothing: grayscale;
14
14
  }
15
15
 
16
+ .magic-box-icon-w-play-03:before {
17
+ content: "\e67b";
18
+ }
19
+
20
+ .magic-box-icon-b-play-03:before {
21
+ content: "\e671";
22
+ }
23
+
24
+ .magic-box-icon-select2:before {
25
+ content: "\e67a";
26
+ }
27
+
28
+ .magic-box-icon-b-play-02:before {
29
+ content: "\e672";
30
+ }
31
+
32
+ .magic-box-icon-b-play-05:before {
33
+ content: "\e673";
34
+ }
35
+
36
+ .magic-box-icon-b-play-01:before {
37
+ content: "\e674";
38
+ }
39
+
40
+ .magic-box-icon-w-play-01:before {
41
+ content: "\e675";
42
+ }
43
+
44
+ .magic-box-icon-w-play-04:before {
45
+ content: "\e676";
46
+ }
47
+
48
+ .magic-box-icon-w-play-02:before {
49
+ content: "\e677";
50
+ }
51
+
52
+ .magic-box-icon-b-play-04:before {
53
+ content: "\e678";
54
+ }
55
+
56
+ .magic-box-icon-w-play-05:before {
57
+ content: "\e679";
58
+ }
59
+
16
60
  .magic-box-icon-ListBullets02:before {
17
61
  content: "\e670";
18
62
  }
@@ -1,8 +1,8 @@
1
1
  @font-face {
2
2
  font-family: "magic-box-iconfont"; /* Project id 3317752 */
3
- src: url('magic-box-iconfont.woff2?t=1686648198297') format('woff2'),
4
- url('magic-box-iconfont.woff?t=1686648198297') format('woff'),
5
- url('magic-box-iconfont.ttf?t=1686648198297') format('truetype');
3
+ src: url('magic-box-iconfont.woff2?t=1687675025610') format('woff2'),
4
+ url('magic-box-iconfont.woff?t=1687675025610') format('woff'),
5
+ url('magic-box-iconfont.ttf?t=1687675025610') format('truetype');
6
6
  }
7
7
 
8
8
  .magic-box-iconfont {
@@ -13,6 +13,50 @@
13
13
  -moz-osx-font-smoothing: grayscale;
14
14
  }
15
15
 
16
+ .icon-w-play-03:before {
17
+ content: "\e67b";
18
+ }
19
+
20
+ .icon-b-play-03:before {
21
+ content: "\e671";
22
+ }
23
+
24
+ .icon-select2:before {
25
+ content: "\e67a";
26
+ }
27
+
28
+ .icon-b-play-02:before {
29
+ content: "\e672";
30
+ }
31
+
32
+ .icon-b-play-05:before {
33
+ content: "\e673";
34
+ }
35
+
36
+ .icon-b-play-01:before {
37
+ content: "\e674";
38
+ }
39
+
40
+ .icon-w-play-01:before {
41
+ content: "\e675";
42
+ }
43
+
44
+ .icon-w-play-04:before {
45
+ content: "\e676";
46
+ }
47
+
48
+ .icon-w-play-02:before {
49
+ content: "\e677";
50
+ }
51
+
52
+ .icon-b-play-04:before {
53
+ content: "\e678";
54
+ }
55
+
56
+ .icon-w-play-05:before {
57
+ content: "\e679";
58
+ }
59
+
16
60
  .icon-ListBullets02:before {
17
61
  content: "\e670";
18
62
  }