@fonixtree/magic-design 0.1.72 → 0.1.74

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 (229) 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/ImagePicker/index.js +69 -9
  10. package/es/common/ImagePicker/index.less +1 -0
  11. package/es/composite-comp/bol/components/Banner/defaultJSON.js +1 -1
  12. package/es/composite-comp/bol/components/Banner/index.js +14 -42
  13. package/es/composite-comp/bol/components/Banner/mobile/index.js +1 -4
  14. package/es/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  15. package/es/composite-comp/bol/components/Banner/pc/index.js +1 -4
  16. package/es/composite-comp/bol/components/Button/index.js +3 -4
  17. package/es/composite-comp/bol/components/Carousel/mobile/index.js +1 -4
  18. package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  19. package/es/composite-comp/bol/components/Carousel/pc/index.js +1 -4
  20. package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
  21. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  22. package/es/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
  23. package/es/composite-comp/bol/components/ImageText/defaultJSON.js +11 -2
  24. package/es/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
  25. package/es/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  26. package/es/composite-comp/bol/components/ImageText/pc/index.js +3 -4
  27. package/es/composite-comp/bol/components/Newsletter/index.js +1 -4
  28. package/es/composite-comp/bol/components/Tag/index.js +3 -4
  29. package/es/composite-comp/bol/components/Text/index.js +3 -4
  30. package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +49 -10
  31. package/es/composite-comp/bol/components/Video/components/VideoTag/index.less +5 -5
  32. package/es/composite-comp/bol/components/Video/defaultJSON.js +10 -0
  33. package/es/composite-comp/bol/components/Video/index.js +23 -1
  34. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +9 -12
  35. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
  36. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +8 -11
  37. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
  38. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +9 -11
  39. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -50
  40. package/es/composite-comp/bol/components/Video/mobile/index.js +8 -49
  41. package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
  42. package/es/composite-comp/bol/components/Video/pc/Layout1/index.js +9 -12
  43. package/es/composite-comp/bol/components/Video/pc/Layout1/index.less +2 -2
  44. package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +15 -16
  45. package/es/composite-comp/bol/components/Video/pc/Layout2/index.less +4 -4
  46. package/es/composite-comp/bol/components/Video/pc/Layout3/index.js +8 -11
  47. package/es/composite-comp/bol/components/Video/pc/Layout3/index.less +2 -2
  48. package/es/composite-comp/bol/components/Video/pc/Layout4/index.js +9 -12
  49. package/es/composite-comp/bol/components/Video/pc/Layout4/index.less +5 -4
  50. package/es/composite-comp/bol/components/Video/pc/Layout5/index.js +9 -12
  51. package/es/composite-comp/bol/components/Video/pc/Layout5/index.less +12 -10
  52. package/es/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
  53. package/es/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
  54. package/es/composite-comp/bol/components/Wallet/pc/index.js +1 -4
  55. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +4 -0
  56. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
  57. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -1
  58. package/es/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +12 -2
  59. package/es/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
  60. package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +10 -1
  61. package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +12 -2
  62. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
  63. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  64. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  65. package/es/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  66. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
  67. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +76 -80
  68. package/es/constants/index.js +2 -1
  69. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
  70. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
  71. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
  72. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
  73. package/es/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
  74. package/es/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
  75. package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
  76. package/es/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
  77. package/es/core/Designer/AiImageGenerator/History/index.js +141 -0
  78. package/es/core/Designer/AiImageGenerator/History/index.less +69 -0
  79. package/es/core/Designer/AiImageGenerator/UploadReference/index.js +45 -0
  80. package/es/core/Designer/AiImageGenerator/UploadReference/index.less +39 -0
  81. package/es/core/Designer/AiImageGenerator/images/nodata.png +0 -0
  82. package/es/core/Designer/AiImageGenerator/index.js +711 -0
  83. package/es/core/Designer/AiImageGenerator/index.less +140 -0
  84. package/es/core/Designer/ChatRobot/components/CopyBtn/index.js +49 -0
  85. package/es/core/Designer/ChatRobot/components/CopyBtn/index.less +0 -0
  86. package/es/core/Designer/ChatRobot/index.js +321 -0
  87. package/es/core/Designer/ChatRobot/index.less +130 -0
  88. package/es/core/Designer/ChatRobot/markdown.less +1 -0
  89. package/es/core/Designer/FonixtreeGpt/index.js +160 -0
  90. package/es/core/Designer/index.js +27 -8
  91. package/es/decorator/metaDecorator.js +1 -1
  92. package/es/locale/en/en.json +5 -0
  93. package/es/locale/es/es.json +5 -0
  94. package/es/locale/id/id.json +5 -0
  95. package/es/meta-comp/config-panels/ImageConfig/index.js +32 -11
  96. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-01.svg +4 -0
  97. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-02.svg +4 -0
  98. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-03.svg +4 -0
  99. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-04.svg +4 -0
  100. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-05.svg +3 -0
  101. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-01.svg +4 -0
  102. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-02.svg +4 -0
  103. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-03.svg +4 -0
  104. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-04.svg +4 -0
  105. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-05.svg +3 -0
  106. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/index.js +63 -0
  107. package/es/meta-comp/config-panels/PlayIconConfig/index.js +211 -0
  108. package/es/meta-comp/config-panels/PlayIconConfig/index.less +37 -2
  109. package/es/meta-comp/config-panels/TextConfig/index.js +5 -1
  110. package/es/mobx/Store.js +3 -0
  111. package/es/utils/androidUtil.js +2 -1
  112. package/es/utils/commonUtil.js +102 -3
  113. package/es/utils/coreUtil.js +1 -1
  114. package/lib/assets/fonts/magic-box-iconfont.css +47 -3
  115. package/lib/assets/fonts/magic-box-iconfont.css.bak +47 -3
  116. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  117. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  118. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  119. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  120. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  121. package/lib/assets/less/slider.less +49 -1
  122. package/lib/common/ImagePicker/index.js +69 -9
  123. package/lib/common/ImagePicker/index.less +1 -0
  124. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +1 -1
  125. package/lib/composite-comp/bol/components/Banner/index.js +14 -42
  126. package/lib/composite-comp/bol/components/Banner/mobile/index.js +1 -4
  127. package/lib/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  128. package/lib/composite-comp/bol/components/Banner/pc/index.js +1 -4
  129. package/lib/composite-comp/bol/components/Button/index.js +3 -4
  130. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +1 -4
  131. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  132. package/lib/composite-comp/bol/components/Carousel/pc/index.js +1 -4
  133. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
  134. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  135. package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
  136. package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +11 -2
  137. package/lib/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
  138. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  139. package/lib/composite-comp/bol/components/ImageText/pc/index.js +3 -4
  140. package/lib/composite-comp/bol/components/Newsletter/index.js +1 -4
  141. package/lib/composite-comp/bol/components/Tag/index.js +3 -4
  142. package/lib/composite-comp/bol/components/Text/index.js +3 -4
  143. package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +49 -10
  144. package/lib/composite-comp/bol/components/Video/components/VideoTag/index.less +5 -5
  145. package/lib/composite-comp/bol/components/Video/defaultJSON.js +10 -0
  146. package/lib/composite-comp/bol/components/Video/index.js +23 -1
  147. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +9 -12
  148. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
  149. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +8 -11
  150. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
  151. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +9 -11
  152. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -50
  153. package/lib/composite-comp/bol/components/Video/mobile/index.js +8 -49
  154. package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
  155. package/lib/composite-comp/bol/components/Video/pc/Layout1/index.js +9 -12
  156. package/lib/composite-comp/bol/components/Video/pc/Layout1/index.less +2 -2
  157. package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +15 -16
  158. package/lib/composite-comp/bol/components/Video/pc/Layout2/index.less +4 -4
  159. package/lib/composite-comp/bol/components/Video/pc/Layout3/index.js +8 -11
  160. package/lib/composite-comp/bol/components/Video/pc/Layout3/index.less +2 -2
  161. package/lib/composite-comp/bol/components/Video/pc/Layout4/index.js +9 -12
  162. package/lib/composite-comp/bol/components/Video/pc/Layout4/index.less +5 -4
  163. package/lib/composite-comp/bol/components/Video/pc/Layout5/index.js +9 -12
  164. package/lib/composite-comp/bol/components/Video/pc/Layout5/index.less +12 -10
  165. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
  166. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
  167. package/lib/composite-comp/bol/components/Wallet/pc/index.js +1 -4
  168. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +4 -0
  169. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
  170. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -1
  171. package/lib/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +12 -2
  172. package/lib/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
  173. package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +10 -1
  174. package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +12 -2
  175. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
  176. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  177. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  178. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  179. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
  180. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +76 -80
  181. package/lib/constants/index.js +2 -1
  182. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
  183. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
  184. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
  185. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
  186. package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
  187. package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
  188. package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
  189. package/lib/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
  190. package/lib/core/Designer/AiImageGenerator/History/index.js +141 -0
  191. package/lib/core/Designer/AiImageGenerator/History/index.less +69 -0
  192. package/lib/core/Designer/AiImageGenerator/UploadReference/index.js +45 -0
  193. package/lib/core/Designer/AiImageGenerator/UploadReference/index.less +39 -0
  194. package/lib/core/Designer/AiImageGenerator/images/nodata.png +0 -0
  195. package/lib/core/Designer/AiImageGenerator/index.js +711 -0
  196. package/lib/core/Designer/AiImageGenerator/index.less +140 -0
  197. package/lib/core/Designer/ChatRobot/components/CopyBtn/index.js +49 -0
  198. package/lib/core/Designer/ChatRobot/components/CopyBtn/index.less +0 -0
  199. package/lib/core/Designer/ChatRobot/index.js +321 -0
  200. package/lib/core/Designer/ChatRobot/index.less +130 -0
  201. package/lib/core/Designer/ChatRobot/markdown.less +1 -0
  202. package/lib/core/Designer/FonixtreeGpt/index.js +160 -0
  203. package/lib/core/Designer/index.js +27 -8
  204. package/lib/decorator/metaDecorator.js +1 -1
  205. package/lib/locale/en/en.json +5 -0
  206. package/lib/locale/es/es.json +5 -0
  207. package/lib/locale/id/id.json +5 -0
  208. package/lib/meta-comp/config-panels/ImageConfig/index.js +32 -11
  209. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-01.svg +4 -0
  210. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-02.svg +4 -0
  211. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-03.svg +4 -0
  212. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-04.svg +4 -0
  213. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-05.svg +3 -0
  214. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-01.svg +4 -0
  215. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-02.svg +4 -0
  216. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-03.svg +4 -0
  217. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-04.svg +4 -0
  218. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-05.svg +3 -0
  219. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/index.js +63 -0
  220. package/lib/meta-comp/config-panels/PlayIconConfig/index.js +211 -0
  221. package/lib/meta-comp/config-panels/PlayIconConfig/index.less +37 -2
  222. package/lib/meta-comp/config-panels/TextConfig/index.js +5 -1
  223. package/lib/mobx/Store.js +3 -0
  224. package/lib/utils/androidUtil.js +2 -1
  225. package/lib/utils/commonUtil.js +102 -3
  226. package/lib/utils/coreUtil.js +1 -1
  227. package/package.json +2 -1
  228. package/es/assets/fonts/.DS_Store +0 -0
  229. 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/lib/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
 
@@ -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) {
@@ -767,5 +788,83 @@ var pxToRem = function pxToRem(styleObj) {
767
788
 
768
789
  return remObj;
769
790
  };
791
+ /**
792
+ * 处理新老数据兼容问题
793
+ * @param pageData 大JSON
794
+ */
795
+
796
+
797
+ exports.pxToRem = pxToRem;
798
+
799
+ var compatibleNewPageData = function compatibleNewPageData(pageData) {
800
+ if (pageData.childNodes && pageData.childNodes.length > 0) {
801
+ pageData.childNodes.forEach(function (child) {
802
+ // 兼容新功能:banner 轮播的 dots 点 区分pc 移动
803
+ if (child.type === 'BANNER') {
804
+ if (!child.setting.dots.color.pc || !child.setting.dots.hoverColor.pc || !child.setting.dots.size.pc) {
805
+ child.setting.dots = __assign(__assign({}, child.setting.dots), {
806
+ color: {
807
+ pc: '#fff',
808
+ mobile: '#fff'
809
+ },
810
+ hoverColor: {
811
+ pc: '#fff',
812
+ mobile: '#fff'
813
+ },
814
+ size: {
815
+ pc: 16,
816
+ mobile: 8
817
+ },
818
+ hoverSize: {
819
+ pc: 16,
820
+ mobile: 8
821
+ }
822
+ });
823
+ }
824
+ } // 兼容新开发的功能: video新增播放按钮 的设置
825
+
826
+
827
+ if (child.type === 'VIDEO') {
828
+ // console.log('--compatibleNewPageData -- video ');
829
+ child.groupSource.forEach(function (group) {
830
+ if (!group.playIcon) {
831
+ group.playIcon = {
832
+ open: true,
833
+ parentId: group.id,
834
+ id: (0, _uuid.v4)(),
835
+ type: 'PLAY',
836
+ size: 48,
837
+ pcSize: 60,
838
+ iconType: 'light-playicon-01',
839
+ iconColor: 'Light'
840
+ };
841
+ }
842
+ }); // console.log('--compatibleNewPageData -- video add group.playIcon ', child.groupSource);
843
+ }
844
+ });
845
+ }
846
+ };
847
+
848
+ exports.compatibleNewPageData = compatibleNewPageData;
849
+
850
+ var getGAData = function getGAData(data) {
851
+ var _a;
852
+
853
+ return {
854
+ moduleId: data.id,
855
+ moduleName: data.moduleIndex + '.' + ((_a = _constants.compInfoMap[data.type]) === null || _a === void 0 ? void 0 : _a.name)
856
+ };
857
+ };
858
+
859
+ exports.getGAData = getGAData;
860
+
861
+ var downloadBase64Image = function downloadBase64Image(base64String, filename) {
862
+ // 创建一个虚拟的链接元素
863
+ var link = document.createElement('a');
864
+ link.href = base64String;
865
+ link.download = filename; // 模拟点击下载
866
+
867
+ link.click();
868
+ };
770
869
 
771
- exports.pxToRem = pxToRem;
870
+ 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
  // 视频
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.1.72",
4
+ "version": "0.1.74",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",
@@ -26,6 +26,7 @@
26
26
  "interactjs": "1.10.17",
27
27
  "lodash": "4.17.21",
28
28
  "macy": "2.5.1",
29
+ "marked": "4",
29
30
  "mobx": "6.6.1",
30
31
  "mobx-react": "7.5.2",
31
32
  "moment": "2.29.3",
Binary file
Binary file