@fonixtree/magic-design 2.0.62 → 2.0.64

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 (141) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +18 -6
  2. package/es/assets/fonts/magic-box-iconfont.css.bak +15 -12
  3. package/es/assets/fonts/magic-box-iconfont.js +1 -5
  4. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -5
  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/base64/index.js +28 -2
  9. package/es/common/ImagePicker/index.js +0 -2
  10. package/es/common/LinkModal/FunctionTable/index.js +2 -1
  11. package/es/common/LinkModal/index.js +14 -2
  12. package/es/common/MyModal/index.less +1 -1
  13. package/es/common/UrlPicker/index.js +3 -1
  14. package/es/composite-comp/bol/components/ImageText/pc/index.js +2 -2
  15. package/es/composite-comp/bol/components/Video/index.js +1 -2
  16. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +8 -6
  17. package/es/composite-comp/common/components/AffiliateProductItem/index.less +1 -1
  18. package/es/composite-comp/common/components/ImageLabel/index.less +10 -3
  19. package/es/composite-comp/common/components/ProductItem/index.js +25 -17
  20. package/es/composite-comp/common/components/ProductItem/index.less +17 -8
  21. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +1 -1
  22. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +6 -6
  23. package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
  24. package/es/composite-comp/dito/components/HeadNavigation/index.js +84 -0
  25. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
  26. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
  27. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
  28. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
  29. package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
  30. package/es/composite-comp/dito/components/MenuNavigation/index.js +84 -0
  31. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
  32. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
  33. package/es/composite-comp/dito/components/Recommend/mobile/index.js +4 -4
  34. package/es/composite-comp/dito/components/Recommend/pc/index.js +6 -6
  35. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
  36. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
  37. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
  38. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
  39. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
  40. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
  41. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
  42. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
  43. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
  44. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
  45. package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
  46. package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
  47. package/es/constants/component-types.js +15 -3
  48. package/es/constants/index.js +8 -0
  49. package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
  50. package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
  51. package/es/core/Designer/ChatRobot/index.js +36 -14
  52. package/es/core/Designer/ChatRobot/index.less +69 -28
  53. package/es/core/Designer/History/index.js +2 -2
  54. package/es/core/Designer/PageCompList/index.js +5 -3
  55. package/es/core/Designer/RenderHtml/index.js +18 -15
  56. package/es/core/Designer/RenderHtml/index.less +1 -1
  57. package/es/core/Designer/ToolBarModal/index.js +8 -7
  58. package/es/core/Designer/index.js +8 -0
  59. package/es/core/Renderer/index.js +3 -1
  60. package/es/decorator/compositeDecorator.js +23 -0
  61. package/es/locale/en/en.json +3 -0
  62. package/es/locale/es/es.json +3 -0
  63. package/es/locale/id/id.json +3 -0
  64. package/es/meta-comp/components/Text/formats/textAlign.js +58 -0
  65. package/es/meta-comp/components/Text/index.js +2 -0
  66. package/es/meta-comp/config-panels/ButtonConfig/index.js +5 -5
  67. package/es/meta-comp/config-panels/ImageConfig/index.js +4 -2
  68. package/es/utils/businessUtil.js +3 -3
  69. package/es/utils/commonUtil.js +2 -2
  70. package/lib/assets/fonts/magic-box-iconfont.css +18 -6
  71. package/lib/assets/fonts/magic-box-iconfont.css.bak +15 -12
  72. package/lib/assets/fonts/magic-box-iconfont.js +1 -5
  73. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -5
  74. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  75. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  76. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  77. package/lib/assets/images/base64/index.js +28 -2
  78. package/lib/common/ImagePicker/index.js +0 -2
  79. package/lib/common/LinkModal/FunctionTable/index.js +2 -1
  80. package/lib/common/LinkModal/index.js +14 -2
  81. package/lib/common/MyModal/index.less +1 -1
  82. package/lib/common/UrlPicker/index.js +3 -1
  83. package/lib/composite-comp/bol/components/ImageText/pc/index.js +2 -2
  84. package/lib/composite-comp/bol/components/Video/index.js +1 -2
  85. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +8 -6
  86. package/lib/composite-comp/common/components/AffiliateProductItem/index.less +1 -1
  87. package/lib/composite-comp/common/components/ImageLabel/index.less +10 -3
  88. package/lib/composite-comp/common/components/ProductItem/index.js +25 -17
  89. package/lib/composite-comp/common/components/ProductItem/index.less +17 -8
  90. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +1 -1
  91. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +6 -6
  92. package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
  93. package/lib/composite-comp/dito/components/HeadNavigation/index.js +84 -0
  94. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
  95. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
  96. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
  97. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
  98. package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
  99. package/lib/composite-comp/dito/components/MenuNavigation/index.js +84 -0
  100. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
  101. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
  102. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +4 -4
  103. package/lib/composite-comp/dito/components/Recommend/pc/index.js +6 -6
  104. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
  105. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
  106. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
  107. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
  108. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
  109. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
  110. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
  111. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
  112. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
  113. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
  114. package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
  115. package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
  116. package/lib/constants/component-types.js +15 -3
  117. package/lib/constants/index.js +8 -0
  118. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
  119. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
  120. package/lib/core/Designer/ChatRobot/index.js +36 -14
  121. package/lib/core/Designer/ChatRobot/index.less +69 -28
  122. package/lib/core/Designer/History/index.js +2 -2
  123. package/lib/core/Designer/PageCompList/index.js +5 -3
  124. package/lib/core/Designer/RenderHtml/index.js +18 -15
  125. package/lib/core/Designer/RenderHtml/index.less +1 -1
  126. package/lib/core/Designer/ToolBarModal/index.js +8 -7
  127. package/lib/core/Designer/index.js +8 -0
  128. package/lib/core/Renderer/index.js +3 -1
  129. package/lib/decorator/compositeDecorator.js +23 -0
  130. package/lib/locale/en/en.json +3 -0
  131. package/lib/locale/es/es.json +3 -0
  132. package/lib/locale/id/id.json +3 -0
  133. package/lib/meta-comp/components/Text/formats/textAlign.js +58 -0
  134. package/lib/meta-comp/components/Text/index.js +2 -0
  135. package/lib/meta-comp/config-panels/ButtonConfig/index.js +5 -5
  136. package/lib/meta-comp/config-panels/ImageConfig/index.js +4 -2
  137. package/lib/utils/businessUtil.js +3 -3
  138. package/lib/utils/commonUtil.js +2 -2
  139. package/package.json +1 -1
  140. package/es/assets/fonts/.DS_Store +0 -0
  141. package/lib/assets/fonts/.DS_Store +0 -0
@@ -0,0 +1,127 @@
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 _locale = require("../../../../locale");
13
+
14
+ var _common = require("../../../../common");
15
+
16
+ var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
17
+
18
+ var _BaseConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/BaseConfig"));
19
+
20
+ var _coreUtil = require("../../../../utils/coreUtil");
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
+
24
+ var __extends = void 0 && (void 0).__extends || function () {
25
+ var _extendStatics = function extendStatics(d, b) {
26
+ _extendStatics = Object.setPrototypeOf || {
27
+ __proto__: []
28
+ } instanceof Array && function (d, b) {
29
+ d.__proto__ = b;
30
+ } || function (d, b) {
31
+ for (var p in b) {
32
+ if (b.hasOwnProperty(p)) d[p] = b[p];
33
+ }
34
+ };
35
+
36
+ return _extendStatics(d, b);
37
+ };
38
+
39
+ return function (d, b) {
40
+ _extendStatics(d, b);
41
+
42
+ function __() {
43
+ this.constructor = d;
44
+ }
45
+
46
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47
+ };
48
+ }();
49
+
50
+ var WalletSecondConfig =
51
+ /** @class */
52
+ function (_super) {
53
+ __extends(WalletSecondConfig, _super);
54
+
55
+ function WalletSecondConfig() {
56
+ var _this = _super !== null && _super.apply(this, arguments) || this;
57
+
58
+ _this.state = {};
59
+
60
+ _this.reRender = function () {
61
+ (0, _coreUtil.renderPreview)();
62
+
63
+ _this.setState({});
64
+ };
65
+
66
+ _this.getContentPanel = function () {
67
+ var panelProps = _this.props.panelProps;
68
+ var defaultSource = [{
69
+ key: panelProps.image.id,
70
+ name: (0, _locale.i18n)('IMAGE'),
71
+ value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
72
+ data: panelProps.image,
73
+ needClickArea: false,
74
+ onlySpecificCode: "FunctionPage"
75
+ }),
76
+ metaOption: panelProps.image
77
+ }];
78
+ return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
79
+ title: (0, _locale.i18n)('NAME')
80
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
81
+ className: "inputStyle",
82
+ onChange: function onChange(e) {
83
+ panelProps.type = e.target.value;
84
+
85
+ _this.setState({});
86
+ },
87
+ placeholder: (0, _locale.i18n)('PLEASE_INPUT'),
88
+ size: "middle",
89
+ value: panelProps.type
90
+ })), /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
91
+ divider: "dashed",
92
+ headerSize: "middle",
93
+ onRefresh: function onRefresh() {
94
+ return (0, _coreUtil.renderPreview)();
95
+ },
96
+ showActiveColor: true,
97
+ source: defaultSource,
98
+ type: "switch"
99
+ }));
100
+ };
101
+
102
+ return _this;
103
+ }
104
+
105
+ WalletSecondConfig.prototype.render = function () {
106
+ var panelProps = this.props.panelProps;
107
+ return /*#__PURE__*/_react["default"].createElement("div", {
108
+ className: "Wallet_second_conf_wrap"
109
+ }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
110
+ divider: "bold",
111
+ headerSize: "large",
112
+ source: [{
113
+ key: panelProps.id || 'walletNuriContent',
114
+ name: (0, _locale.i18n)('CONTENT'),
115
+ value: this.getContentPanel()
116
+ }]
117
+ }));
118
+ };
119
+
120
+ WalletSecondConfig.defaultProps = {
121
+ panelProps: {}
122
+ };
123
+ return WalletSecondConfig;
124
+ }(_BaseConfig["default"]);
125
+
126
+ var _default = WalletSecondConfig;
127
+ exports["default"] = _default;
@@ -47,6 +47,10 @@ var _MobileNavigation = _interopRequireDefault(require("../composite-comp/dito/c
47
47
 
48
48
  var _PcNavigation = _interopRequireDefault(require("../composite-comp/dito/components/PcNavigation"));
49
49
 
50
+ var _MenuNavigation = _interopRequireDefault(require("../composite-comp/dito/components/MenuNavigation"));
51
+
52
+ var _HeadNavigation = _interopRequireDefault(require("../composite-comp/dito/components/HeadNavigation"));
53
+
50
54
  var _BannerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/BannerConfig"));
51
55
 
52
56
  var _DividerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/DividerConfig"));
@@ -89,6 +93,10 @@ var _MobileNavigationConfig = _interopRequireDefault(require("../composite-comp/
89
93
 
90
94
  var _PcNavigationConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/PcNavigationConfig"));
91
95
 
96
+ var _MenuNavigationConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/MenuNavigationConfig"));
97
+
98
+ var _HeadNavigationConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/HeadNavigationConfig"));
99
+
92
100
  var _BannerSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/BannerSecondConfig"));
93
101
 
94
102
  var _TextSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/TextSecondConfig"));
@@ -117,6 +125,10 @@ var _MobileNavigationSecondConfig = _interopRequireDefault(require("../composite
117
125
 
118
126
  var _PcNavigationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/PcNavigationSecondConfig"));
119
127
 
128
+ var _MenuNavigationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/MenuNavigationSecondConfig"));
129
+
130
+ var _HeadNavigationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/HeadNavigationSecondConfig"));
131
+
120
132
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
121
133
 
122
134
  var _a, _b, _c; // 组件
@@ -125,17 +137,17 @@ var _a, _b, _c; // 组件
125
137
  /**
126
138
  * 渲染组件索引
127
139
  */
128
- var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a);
140
+ var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a);
129
141
  /**
130
142
  * 一级配置面板索引
131
143
  */
132
144
 
133
145
  exports.componentMap = componentMap;
134
- var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b);
146
+ var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b);
135
147
  /**
136
148
  * 二级配置面板索引
137
149
  */
138
150
 
139
151
  exports.configPanelMap = configPanelMap;
140
- var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c);
152
+ var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c);
141
153
  exports.secondConfigPanelMap = secondConfigPanelMap;
@@ -185,6 +185,14 @@ var compInfoMap = {
185
185
  WALLET_NURI: {
186
186
  name: 'Wallet',
187
187
  icon: 'icon-Wallet'
188
+ },
189
+ HEAD_NAVIGATION: {
190
+ name: 'Head Navigation',
191
+ icon: 'icon-header'
192
+ },
193
+ MENU_NAVIGATION: {
194
+ name: 'Menu Navigation',
195
+ icon: 'icon-footer'
188
196
  }
189
197
  };
190
198
  /**
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = SearchCondition;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _antd = require("antd");
13
+
14
+ var _classnames = _interopRequireDefault(require("classnames"));
15
+
16
+ require("./index.less");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
+
22
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
+
24
+ var toneList = ['Concise', 'Formal', 'Youthful', 'Innovative', 'Enticing'];
25
+
26
+ function SearchCondition() {
27
+ var _a = (0, _react.useState)('Concise'),
28
+ tone = _a[0],
29
+ setTone = _a[1];
30
+
31
+ var _b = (0, _react.useState)('30'),
32
+ count = _b[0],
33
+ setCount = _b[1];
34
+
35
+ var _c = (0, _react.useState)(''),
36
+ features = _c[0],
37
+ setFeatures = _c[1];
38
+
39
+ var _d = (0, _react.useState)(''),
40
+ key = _d[0],
41
+ setKey = _d[1];
42
+
43
+ return /*#__PURE__*/_react["default"].createElement("div", {
44
+ className: "condition_wrap"
45
+ }, /*#__PURE__*/_react["default"].createElement("div", {
46
+ className: "cond_title"
47
+ }, "Detailed description"), /*#__PURE__*/_react["default"].createElement("div", {
48
+ className: "cond_item"
49
+ }, /*#__PURE__*/_react["default"].createElement("div", {
50
+ className: "item_label"
51
+ }, "Preferred tone of the description?"), /*#__PURE__*/_react["default"].createElement("div", {
52
+ className: "cond_value"
53
+ }, toneList.map(function (name) {
54
+ return /*#__PURE__*/_react["default"].createElement("span", {
55
+ className: (0, _classnames["default"])('tone_item', {
56
+ tone_active: tone === name
57
+ }),
58
+ onClick: function onClick() {
59
+ return setTone(name);
60
+ }
61
+ }, name);
62
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
63
+ className: "cond_item"
64
+ }, /*#__PURE__*/_react["default"].createElement("div", {
65
+ className: "item_label"
66
+ }, "Desired word count range?"), /*#__PURE__*/_react["default"].createElement("div", {
67
+ className: "cond_value"
68
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
69
+ allowClear: true,
70
+ defaultValue: "30",
71
+ onChange: function onChange(e) {
72
+ return setCount(e);
73
+ },
74
+ options: [{
75
+ value: '30',
76
+ label: '30'
77
+ }, {
78
+ value: '50',
79
+ label: '50'
80
+ }, {
81
+ value: '70',
82
+ label: '70'
83
+ }],
84
+ style: {
85
+ width: '100%'
86
+ }
87
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
88
+ className: "cond_item"
89
+ }, /*#__PURE__*/_react["default"].createElement("div", {
90
+ className: "item_label"
91
+ }, "What are the key features?"), /*#__PURE__*/_react["default"].createElement("div", {
92
+ className: "cond_value"
93
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
94
+ onChange: function onChange(e) {
95
+ return setFeatures(e.target.value);
96
+ },
97
+ value: features
98
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
99
+ className: "cond_item"
100
+ }, /*#__PURE__*/_react["default"].createElement("div", {
101
+ className: "item_label"
102
+ }, "What key details should be emphasized?"), /*#__PURE__*/_react["default"].createElement("div", {
103
+ className: "cond_value"
104
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
105
+ onChange: function onChange(e) {
106
+ return setKey(e.target.value);
107
+ },
108
+ value: key
109
+ }))));
110
+ }
@@ -0,0 +1,33 @@
1
+ .condition_wrap {
2
+ padding: 12px 12px 0 12px;
3
+ .cond_title {
4
+ font-family: Open Sans;
5
+ font-size: 16px;
6
+ font-weight: 700;
7
+ margin-bottom: 16px;
8
+ }
9
+ .cond_item {
10
+ margin-bottom: 16px;
11
+ .item_label {
12
+ font-family: Open Sans;
13
+ font-size: 14px;
14
+ font-weight: 600;
15
+ margin-bottom: 8px;
16
+ }
17
+ .cond_value {
18
+ .tone_item {
19
+ cursor: pointer;
20
+ margin-right: 8px;
21
+ padding: 7px 10px;
22
+ height: 32px;
23
+ border: 1px solid #D2D9E5;
24
+ border-radius: 100px;
25
+ }
26
+ .tone_active {
27
+ background-color: #E9F0FF;
28
+ color: #2F54EB;
29
+ border-color: #D6E4FF;
30
+ }
31
+ }
32
+ }
33
+ }
@@ -15,6 +15,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
15
15
 
16
16
  var _CopyBtn = _interopRequireDefault(require("./components/CopyBtn"));
17
17
 
18
+ var _SearchCondition = _interopRequireDefault(require("./components/SearchCondition"));
19
+
18
20
  var _common = require("../../../common");
19
21
 
20
22
  var _FonixtreeGpt = _interopRequireDefault(require("../FonixtreeGpt"));
@@ -59,6 +61,8 @@ var __extends = void 0 && (void 0).__extends || function () {
59
61
  };
60
62
  }();
61
63
 
64
+ var TextArea = _antd.Input.TextArea;
65
+
62
66
  var ChatRobot =
63
67
  /** @class */
64
68
  function (_super) {
@@ -73,7 +77,8 @@ function (_super) {
73
77
  context: [],
74
78
  isGenerating: false,
75
79
  aiImageVisible: false,
76
- loading: true
80
+ loading: true,
81
+ showCondition: true
77
82
  };
78
83
 
79
84
  _this.scrollBottom = function () {
@@ -195,7 +200,8 @@ function (_super) {
195
200
  open = _a.open,
196
201
  isGenerating = _a.isGenerating,
197
202
  aiImageVisible = _a.aiImageVisible,
198
- loading = _a.loading;
203
+ loading = _a.loading,
204
+ showCondition = _a.showCondition;
199
205
 
200
206
  if (loading) {
201
207
  return null;
@@ -218,14 +224,17 @@ function (_super) {
218
224
  closable: false,
219
225
  footer: /*#__PURE__*/_react["default"].createElement("div", {
220
226
  className: "dialog_bottom"
221
- }, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
227
+ }, /*#__PURE__*/_react["default"].createElement("div", {
228
+ className: "bottom_input"
229
+ }, /*#__PURE__*/_react["default"].createElement(TextArea, {
230
+ autoSize: true,
231
+ className: "text_area",
222
232
  onChange: this.onMessageChage,
223
233
  onPressEnter: this.onEnter,
224
234
  placeholder: "Send a message",
225
235
  value: message
226
- }), /*#__PURE__*/_react["default"].createElement("div", {
227
- className: "btn_wrap"
228
- }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
236
+ }), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
237
+ className: "image_btn",
229
238
  color: "#2F54EB",
230
239
  onClick: this.generateImage,
231
240
  size: 20,
@@ -234,14 +243,21 @@ function (_super) {
234
243
  },
235
244
  type: "icon-image"
236
245
  }), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
237
- color: message.length > 0 ? '#2F54EB' : '#C1C9D7',
238
- onClick: this.onEnter,
239
- size: 20,
240
- style: {
241
- cursor: 'pointer'
246
+ className: "toggle_btn",
247
+ color: "#2F54EB",
248
+ onClick: function onClick() {
249
+ return _this.setState({
250
+ showCondition: !showCondition
251
+ });
242
252
  },
243
- type: message.length > 0 ? 'icon-send1' : 'icon-send'
244
- }))),
253
+ size: 24,
254
+ type: showCondition ? 'icon-circle-down' : 'icon-circle-up'
255
+ })), /*#__PURE__*/_react["default"].createElement("div", {
256
+ className: (0, _classnames["default"])('generate_btn', {
257
+ disable_btn: message.length === 0
258
+ }),
259
+ onClick: this.onEnter
260
+ }, "Generate")),
245
261
  footerStyle: {
246
262
  padding: 12
247
263
  },
@@ -311,6 +327,8 @@ function (_super) {
311
327
  }, /*#__PURE__*/_react["default"].createElement(_antd.Spin, {
312
328
  spinning: true
313
329
  }))), /*#__PURE__*/_react["default"].createElement("div", {
330
+ className: "regenerate_btn_wrap"
331
+ }, /*#__PURE__*/_react["default"].createElement("div", {
314
332
  className: "regenerate_btn",
315
333
  onClick: this.onRegenarate
316
334
  }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
@@ -321,7 +339,11 @@ function (_super) {
321
339
  marginRight: 5
322
340
  },
323
341
  type: "icon-refresh"
324
- }), "Regenerate Response"))), /*#__PURE__*/_react["default"].createElement(_AiImageGenerator["default"], {
342
+ }), "Regenerate Response")), /*#__PURE__*/_react["default"].createElement("div", {
343
+ className: (0, _classnames["default"])('more_condition', {
344
+ more_condition_hide: !showCondition
345
+ })
346
+ }, /*#__PURE__*/_react["default"].createElement(_SearchCondition["default"], null)))), /*#__PURE__*/_react["default"].createElement(_AiImageGenerator["default"], {
325
347
  onClose: function onClose() {
326
348
  return _this.setState({
327
349
  aiImageVisible: false
@@ -32,12 +32,15 @@
32
32
  }
33
33
  }
34
34
  .chat_content_wrap {
35
+ display: flex;
36
+ flex-direction: column;
35
37
  position: relative;
36
- padding-bottom: 40px;
37
38
  height: 100%;
38
39
  .content_wrap {
40
+ background: #F5F6F7;
41
+ flex: 1;
39
42
  padding: 16px;
40
- height: 100%;
43
+ // height: 100%;
41
44
  overflow: scroll;
42
45
  font-family: 'Open Sans';
43
46
  font-size: 14px;
@@ -78,16 +81,18 @@
78
81
  display: flex;
79
82
  justify-content: flex-end;
80
83
  .messageWrap {
84
+ border: 1px solid #E6EAF0;
81
85
  border-radius: 4px;
82
- background: #E9F0FF;
83
- color: #2F54EB;
86
+ background: #FFF;
87
+ color: #232F46;
84
88
  }
85
89
  }
86
90
  .assistantMessage {
87
91
  .messageWrap {
88
92
  border-radius: 4px;
89
- background: #F5F6F7;
90
- color: #232F46;
93
+ background: #E9F0FF;
94
+ color: #2F54EB;
95
+ border: 1px solid #D6E4FF;
91
96
  }
92
97
  }
93
98
  .recent_response {
@@ -101,38 +106,74 @@
101
106
  }
102
107
  }
103
108
  }
104
- .regenerate_btn {
109
+
110
+ .regenerate_btn_wrap {
111
+ background: #F5F6F7;
105
112
  display: flex;
106
113
  align-items: center;
107
- position: absolute;
108
- bottom: 10px;
109
- border: 1px solid #E6EAF0;
110
- border-radius: 4px;
111
- padding: 4px 12px;
112
- left: 50%;
113
- transform: translateX(-50%);
114
- cursor: pointer;
115
- font-family: 'Open Sans';
116
- font-style: normal;
117
- font-weight: 400;
118
- font-size: 13px;
114
+ justify-content: center;
115
+ padding-bottom: 12px;
116
+ .regenerate_btn {
117
+ background-color: #FFF;
118
+ bottom: 10px;
119
+ border: 1px solid #E6EAF0;
120
+ border-radius: 4px;
121
+ padding: 4px 12px;
122
+ cursor: pointer;
123
+ font-family: 'Open Sans';
124
+ font-style: normal;
125
+ font-weight: 400;
126
+ font-size: 13px;
127
+ }
128
+ }
129
+
130
+ .more_condition {
131
+ transition: all 0.4s;
132
+ max-height: 400px;
133
+ overflow: hidden;
134
+ box-shadow: 3px 3px 8px 0px #2D304008;
135
+ box-shadow: -3px -3px 8px 0px #2D304008;
136
+ }
137
+ .more_condition_hide {
138
+ max-height: 0;
119
139
  }
120
140
  }
121
141
  .dialog_bottom {
122
142
  position: relative;
123
143
  font-size: 14px;
124
- input {
125
- padding-right: 60px !important;
144
+ .bottom_input{
145
+ display: flex;
146
+ align-items: flex-start;
147
+ .text_area {
148
+ max-height: 200px;
149
+ padding-right: 30px;
150
+ }
151
+ .image_btn {
152
+ position: absolute;
153
+ right: 40px;
154
+ top: 6px;
155
+ }
156
+ .toggle_btn {
157
+ padding: 4px 0 4px 10px;
158
+ cursor: pointer;
159
+ }
126
160
  }
127
- .btn_wrap {
128
- position: absolute;
129
- right: 15px;
130
- top: 0px;
131
- width: 50px;
132
- height: 36px;
161
+ .generate_btn {
133
162
  display: flex;
134
163
  align-items: center;
135
- justify-content: space-between;
164
+ justify-content: center;
165
+ margin-top: 8px;
166
+ height: 36px;
167
+ background: #2F54EB;
168
+ border-radius: 6px;
169
+ color:#FFF;
170
+ font-family: Open Sans;
171
+ font-size: 14px;
172
+ font-weight: 600;
173
+ cursor: pointer;
174
+ }
175
+ .disable_btn {
176
+ background: #C1C9D7;
136
177
  }
137
178
  }
138
179
  }
@@ -7,7 +7,7 @@ exports["default"] = void 0;
7
7
 
8
8
  var _cloneDeep = _interopRequireDefault(require("lodash/cloneDeep"));
9
9
 
10
- var _lodash = require("lodash");
10
+ var _debounce = _interopRequireDefault(require("lodash/debounce"));
11
11
 
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
13
 
@@ -79,7 +79,7 @@ function () {
79
79
  _this.doAction(callback);
80
80
  };
81
81
 
82
- this.doAction = (0, _lodash.debounce)(function (callback) {
82
+ this.doAction = (0, _debounce["default"])(function (callback) {
83
83
  var newCursor = _this.cursor + _this.step;
84
84
  _this.cursor = newCursor;
85
85
  var newData = (0, _cloneDeep["default"])(_this.list[newCursor]);
@@ -15,7 +15,9 @@ var _immutabilityHelper = _interopRequireDefault(require("immutability-helper"))
15
15
 
16
16
  var _react = _interopRequireWildcard(require("react"));
17
17
 
18
- var _lodash = require("lodash");
18
+ var _findIndex = _interopRequireDefault(require("lodash/findIndex"));
19
+
20
+ var _findLastIndex = _interopRequireDefault(require("lodash/findLastIndex"));
19
21
 
20
22
  var _common = require("../../../common");
21
23
 
@@ -139,7 +141,7 @@ function PageCompList(_a) {
139
141
 
140
142
  var getLastSameIndex = function getLastSameIndex(comps, index) {
141
143
  var lastComps = comps.slice(0, index);
142
- var newIndex = (0, _lodash.findLastIndex)(lastComps, function (comp) {
144
+ var newIndex = (0, _findLastIndex["default"])(lastComps, function (comp) {
143
145
  return (0, _coreUtil.isActiveFloor)(comp.activeTerminal);
144
146
  });
145
147
  return newIndex;
@@ -147,7 +149,7 @@ function PageCompList(_a) {
147
149
 
148
150
  var getNextSameIndex = function getNextSameIndex(comps, index) {
149
151
  var nextComps = comps.slice(index + 1);
150
- var newIndex = (0, _lodash.findIndex)(nextComps, function (comp) {
152
+ var newIndex = (0, _findIndex["default"])(nextComps, function (comp) {
151
153
  return (0, _coreUtil.isActiveFloor)(comp.activeTerminal);
152
154
  });
153
155
  return newIndex + index + 1;