@fonixtree/magic-design 1.0.65 → 1.0.67
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.
- package/es/assets/fonts/.DS_Store +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +6 -62
- package/es/assets/fonts/magic-box-iconfont.css.bak +3 -35
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/images/base64/index.js +2 -36
- package/es/assets/less/button.less +0 -5
- package/es/assets/less/cylon-antd.less +1686 -7246
- package/es/assets/less/font.less +0 -22
- package/es/common/Button/index.less +1 -0
- package/es/common/CountDown/index.js +11 -20
- package/es/common/GroupList/index.js +2 -7
- package/es/common/ImagePicker/index.js +3 -1
- package/es/common/LinkModal/CouponTable/index.js +3 -3
- package/es/common/LinkModal/CustomTable/index.js +0 -1
- package/es/common/LinkModal/FunctionTable/index.js +1 -2
- package/es/common/LinkModal/index.js +2 -14
- package/es/common/MagicLink/index.js +2 -2
- package/es/common/ProductModal/index.js +3 -38
- package/es/common/ProductSource/index.js +18 -59
- package/es/common/UrlPicker/index.js +10 -62
- package/es/common/index.js +0 -24
- package/es/composite-comp/bol/components/Banner/mobile/index.js +2 -1
- package/es/composite-comp/bol/components/Banner/mobile/index.less +78 -52
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
- package/es/composite-comp/bol/components/Video/index.js +2 -1
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
- package/es/composite-comp/bol/components/Video/mobile/index.less +3 -2
- package/es/composite-comp/bol/components/Wallet/defaultJSON.js +88 -112
- package/es/composite-comp/bol/components/Wallet/index.js +15 -11
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +64 -314
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +40 -103
- package/es/composite-comp/bol/components/Wallet/pc/index.js +2 -0
- package/es/composite-comp/bol/components/Wallet/pc/index.less +40 -1
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +6 -1
- package/es/composite-comp/bol/config-panels/WalletConfig/index.js +2 -11
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +82 -58
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +0 -2
- package/es/composite-comp/common/components/ProductItem/index.js +20 -22
- package/es/composite-comp/common/components/ProductItem/index.less +12 -2
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -13
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -3
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +6 -8
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +6 -8
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +5 -6
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
- package/es/composite-comp/dito/components/Recommend/pc/index.js +5 -6
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +9 -6
- package/es/composite-comp/dito/components/SignBoard/mobile/index.less +66 -62
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +9 -10
- package/es/constants/component-types.js +3 -45
- package/es/constants/index.js +5 -74
- package/es/constants/layout.js +1 -48
- package/es/core/Designer/ChatRobot/index.js +17 -84
- package/es/core/Designer/ChatRobot/index.less +28 -69
- package/es/core/Designer/ConfigPanel/index.js +3 -14
- package/es/core/Designer/FonixtreeGpt/index.js +29 -222
- package/es/core/Designer/PageCompList/index.js +5 -6
- package/es/core/Designer/QuickMenuBar/index.js +5 -11
- package/es/core/Designer/QuickMenuBar/index.less +0 -4
- package/es/core/Designer/RenderHtml/index.js +15 -18
- package/es/core/Designer/RenderHtml/index.less +1 -1
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +6 -19
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +6 -19
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +6 -19
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +6 -27
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +20 -4
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +5 -36
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +16 -17
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +6 -27
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +20 -4
- package/es/core/Designer/ToolBarModal/ToolBtn/index.js +3 -28
- package/es/core/Designer/ToolBarModal/ToolBtn/index.less +1 -2
- package/es/core/Designer/ToolBarModal/index.js +27 -69
- package/es/core/Designer/ToolBarModal/index.less +2 -3
- package/es/core/Designer/index.js +2 -26
- package/es/core/Renderer/index.js +29 -74
- package/es/decorator/compositeDecorator.js +6 -33
- package/es/decorator/metaDecorator.js +1 -1
- package/es/locale/en/en.json +3 -17
- package/es/locale/es/es.json +3 -17
- package/es/locale/id/id.json +3 -17
- package/es/meta-comp/components/Image/index.js +25 -31
- package/es/meta-comp/components/Text/index.js +1 -4
- package/es/meta-comp/components/Text/index.less +0 -8
- package/es/meta-comp/config-panels/ImageConfig/index.js +44 -48
- package/es/meta-comp/config-panels/TextConfig/index.js +1 -1
- package/es/mobx/Frame.js +2 -17
- package/es/mobx/index.js +3 -9
- package/es/utils/androidUtil.js +2 -13
- package/es/utils/businessUtil.js +3 -25
- package/es/utils/commonUtil.js +22 -177
- package/es/utils/coreUtil.js +2 -45
- package/es/utils/currencyUtil.js +2 -9
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +6 -62
- package/lib/assets/fonts/magic-box-iconfont.css.bak +3 -35
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/images/base64/index.js +2 -36
- package/lib/assets/less/button.less +0 -5
- package/lib/assets/less/cylon-antd.less +1686 -7246
- package/lib/assets/less/font.less +0 -22
- package/lib/common/Button/index.less +1 -0
- package/lib/common/CountDown/index.js +11 -20
- package/lib/common/GroupList/index.js +2 -7
- package/lib/common/ImagePicker/index.js +3 -1
- package/lib/common/LinkModal/CouponTable/index.js +3 -3
- package/lib/common/LinkModal/CustomTable/index.js +0 -1
- package/lib/common/LinkModal/FunctionTable/index.js +1 -2
- package/lib/common/LinkModal/index.js +2 -14
- package/lib/common/MagicLink/index.js +2 -2
- package/lib/common/ProductModal/index.js +3 -38
- package/lib/common/ProductSource/index.js +18 -59
- package/lib/common/UrlPicker/index.js +10 -62
- package/lib/common/index.js +0 -24
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +2 -1
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +78 -52
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
- package/lib/composite-comp/bol/components/Video/index.js +2 -1
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
- package/lib/composite-comp/bol/components/Video/mobile/index.less +3 -2
- package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +88 -112
- package/lib/composite-comp/bol/components/Wallet/index.js +15 -11
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +64 -314
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +40 -103
- package/lib/composite-comp/bol/components/Wallet/pc/index.js +2 -0
- package/lib/composite-comp/bol/components/Wallet/pc/index.less +40 -1
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +6 -1
- package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +2 -11
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +82 -58
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +0 -2
- package/lib/composite-comp/common/components/ProductItem/index.js +20 -22
- package/lib/composite-comp/common/components/ProductItem/index.less +12 -2
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -13
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -3
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +6 -8
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +6 -8
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +5 -6
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +5 -6
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +9 -6
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +66 -62
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +9 -10
- package/lib/constants/component-types.js +3 -45
- package/lib/constants/index.js +5 -74
- package/lib/constants/layout.js +1 -48
- package/lib/core/Designer/ChatRobot/index.js +17 -84
- package/lib/core/Designer/ChatRobot/index.less +28 -69
- package/lib/core/Designer/ConfigPanel/index.js +3 -14
- package/lib/core/Designer/FonixtreeGpt/index.js +29 -222
- package/lib/core/Designer/PageCompList/index.js +5 -6
- package/lib/core/Designer/QuickMenuBar/index.js +5 -11
- package/lib/core/Designer/QuickMenuBar/index.less +0 -4
- package/lib/core/Designer/RenderHtml/index.js +15 -18
- package/lib/core/Designer/RenderHtml/index.less +1 -1
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +6 -19
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +6 -19
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +6 -19
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +6 -27
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +20 -4
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +5 -36
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +16 -17
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +6 -27
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +20 -4
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +3 -28
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +1 -2
- package/lib/core/Designer/ToolBarModal/index.js +27 -69
- package/lib/core/Designer/ToolBarModal/index.less +2 -3
- package/lib/core/Designer/index.js +2 -26
- package/lib/core/Renderer/index.js +29 -74
- package/lib/decorator/compositeDecorator.js +6 -33
- package/lib/decorator/metaDecorator.js +1 -1
- package/lib/locale/en/en.json +3 -17
- package/lib/locale/es/es.json +3 -17
- package/lib/locale/id/id.json +3 -17
- package/lib/meta-comp/components/Image/index.js +25 -31
- package/lib/meta-comp/components/Text/index.js +1 -4
- package/lib/meta-comp/components/Text/index.less +0 -8
- package/lib/meta-comp/config-panels/ImageConfig/index.js +44 -48
- package/lib/meta-comp/config-panels/TextConfig/index.js +1 -1
- package/lib/mobx/Frame.js +2 -17
- package/lib/mobx/index.js +3 -9
- package/lib/utils/androidUtil.js +2 -13
- package/lib/utils/businessUtil.js +3 -25
- package/lib/utils/commonUtil.js +22 -177
- package/lib/utils/coreUtil.js +2 -45
- package/lib/utils/currencyUtil.js +2 -9
- package/package.json +1 -2
- package/es/assets/fonts/Trueno-Light.otf +0 -0
- package/es/assets/fonts/Trueno-Regular.otf +0 -0
- package/es/assets/fonts/TruenoBd.otf +0 -0
- package/es/assets/images/layout-icon/walletLayout2.png +0 -0
- package/es/assets/images/layout-icon/walletNuriLayout1.png +0 -0
- package/es/common/AffiliateProductModal/index.js +0 -582
- package/es/common/AffiliateProductModal/index.less +0 -146
- package/es/common/CardCarousel/index.js +0 -171
- package/es/common/CardCarousel/index.less +0 -28
- package/es/common/CropperModal/index.js +0 -126
- package/es/common/CropperModal/index.less +0 -29
- package/es/common/MyModal/index.js +0 -417
- package/es/common/MyModal/index.less +0 -74
- package/es/common/UrlPicker/AnchorModal/index.js +0 -170
- package/es/common/UrlPicker/AnchorModal/index.less +0 -21
- package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +0 -148
- package/es/composite-comp/bol/components/WalletNuri/index.js +0 -84
- package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +0 -366
- package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +0 -22
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +0 -201
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +0 -9
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +0 -100
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +0 -72
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -123
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/index.js +0 -61
- package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +0 -152
- package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +0 -9
- package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +0 -40
- package/es/composite-comp/common/components/AffiliateProductItem/index.js +0 -168
- package/es/composite-comp/common/components/AffiliateProductItem/index.less +0 -129
- package/es/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +0 -243
- package/es/composite-comp/dito/components/AffiliateRecommend/index.js +0 -90
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +0 -660
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +0 -84
- package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +0 -728
- package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.less +0 -124
- package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
- package/es/composite-comp/dito/components/CommonFunctions/index.js +0 -84
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -107
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
- package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +0 -102
- package/es/composite-comp/dito/components/HeadNavigation/index.js +0 -84
- package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +0 -112
- package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +0 -34
- package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +0 -206
- package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +0 -25
- package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +0 -107
- package/es/composite-comp/dito/components/MenuNavigation/index.js +0 -84
- package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +0 -87
- package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +0 -8
- package/es/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
- package/es/composite-comp/dito/components/Orders/index.js +0 -84
- package/es/composite-comp/dito/components/Orders/mobile/index.js +0 -345
- package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -82
- package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
- package/es/composite-comp/dito/components/PersonalInformation/index.js +0 -84
- package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -568
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -133
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -102
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +0 -148
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -16
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +0 -141
- package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
- package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +0 -203
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +0 -72
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +0 -142
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +0 -121
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +0 -23
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +0 -203
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +0 -72
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +0 -137
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +0 -6
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +0 -40
- package/es/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
- package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -431
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -214
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -15
- package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -122
- package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +0 -0
- package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +0 -127
- package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +0 -127
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +0 -128
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +0 -33
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +0 -77
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +0 -27
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +0 -40
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +0 -40
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +0 -40
- package/es/meta-comp/components/Text/formats/textAlign.js +0 -58
- package/es/mobx/UserState.js +0 -144
- package/lib/assets/fonts/Trueno-Light.otf +0 -0
- package/lib/assets/fonts/Trueno-Regular.otf +0 -0
- package/lib/assets/fonts/TruenoBd.otf +0 -0
- package/lib/assets/images/layout-icon/walletLayout2.png +0 -0
- package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
- package/lib/common/AffiliateProductModal/index.js +0 -582
- package/lib/common/AffiliateProductModal/index.less +0 -146
- package/lib/common/CardCarousel/index.js +0 -171
- package/lib/common/CardCarousel/index.less +0 -28
- package/lib/common/CropperModal/index.js +0 -126
- package/lib/common/CropperModal/index.less +0 -29
- package/lib/common/MyModal/index.js +0 -417
- package/lib/common/MyModal/index.less +0 -74
- package/lib/common/UrlPicker/AnchorModal/index.js +0 -170
- package/lib/common/UrlPicker/AnchorModal/index.less +0 -21
- package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +0 -148
- package/lib/composite-comp/bol/components/WalletNuri/index.js +0 -84
- package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +0 -366
- package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +0 -22
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +0 -201
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +0 -9
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +0 -100
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +0 -72
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -123
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/index.js +0 -61
- package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +0 -152
- package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +0 -9
- package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +0 -40
- package/lib/composite-comp/common/components/AffiliateProductItem/index.js +0 -168
- package/lib/composite-comp/common/components/AffiliateProductItem/index.less +0 -129
- package/lib/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +0 -243
- package/lib/composite-comp/dito/components/AffiliateRecommend/index.js +0 -90
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +0 -660
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +0 -84
- package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +0 -728
- package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.less +0 -124
- package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
- package/lib/composite-comp/dito/components/CommonFunctions/index.js +0 -84
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -107
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
- package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +0 -102
- package/lib/composite-comp/dito/components/HeadNavigation/index.js +0 -84
- package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +0 -112
- package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +0 -34
- package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +0 -206
- package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +0 -25
- package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +0 -107
- package/lib/composite-comp/dito/components/MenuNavigation/index.js +0 -84
- package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +0 -87
- package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +0 -8
- package/lib/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
- package/lib/composite-comp/dito/components/Orders/index.js +0 -84
- package/lib/composite-comp/dito/components/Orders/mobile/index.js +0 -345
- package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -82
- package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
- package/lib/composite-comp/dito/components/PersonalInformation/index.js +0 -84
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -568
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -133
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -102
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +0 -148
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -16
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +0 -141
- package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
- package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +0 -203
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +0 -72
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +0 -142
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +0 -121
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +0 -23
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +0 -203
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +0 -72
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +0 -137
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +0 -6
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +0 -40
- package/lib/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
- package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -431
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -214
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -15
- package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -122
- package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +0 -0
- package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +0 -127
- package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +0 -127
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +0 -128
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +0 -33
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +0 -77
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +0 -27
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +0 -40
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +0 -40
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +0 -40
- package/lib/meta-comp/components/Text/formats/textAlign.js +0 -58
- package/lib/mobx/UserState.js +0 -144
|
@@ -15,8 +15,6 @@ 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
|
-
|
|
20
18
|
var _common = require("../../../common");
|
|
21
19
|
|
|
22
20
|
var _FonixtreeGpt = _interopRequireDefault(require("../FonixtreeGpt"));
|
|
@@ -61,8 +59,6 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
61
59
|
};
|
|
62
60
|
}();
|
|
63
61
|
|
|
64
|
-
var TextArea = _antd.Input.TextArea;
|
|
65
|
-
|
|
66
62
|
var ChatRobot =
|
|
67
63
|
/** @class */
|
|
68
64
|
function (_super) {
|
|
@@ -71,15 +67,13 @@ function (_super) {
|
|
|
71
67
|
function ChatRobot(props) {
|
|
72
68
|
var _this = _super.call(this, props) || this;
|
|
73
69
|
|
|
74
|
-
_this.condRef = /*#__PURE__*/_react["default"].createRef();
|
|
75
70
|
_this.state = {
|
|
76
71
|
open: false,
|
|
77
72
|
message: '',
|
|
78
73
|
context: [],
|
|
79
74
|
isGenerating: false,
|
|
80
75
|
aiImageVisible: false,
|
|
81
|
-
loading: true
|
|
82
|
-
showCondition: true
|
|
76
|
+
loading: true
|
|
83
77
|
};
|
|
84
78
|
|
|
85
79
|
_this.scrollBottom = function () {
|
|
@@ -97,57 +91,15 @@ function (_super) {
|
|
|
97
91
|
return marked.parse(text);
|
|
98
92
|
};
|
|
99
93
|
|
|
100
|
-
_this.getMessageObj = function (msg) {
|
|
101
|
-
var showCondition = _this.state.showCondition;
|
|
102
|
-
|
|
103
|
-
if (!showCondition) {
|
|
104
|
-
return {
|
|
105
|
-
content: msg,
|
|
106
|
-
showContent: msg
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
var newMsg = msg;
|
|
111
|
-
|
|
112
|
-
if (msg.endsWith('.')) {
|
|
113
|
-
newMsg += '.';
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
var cond = _this.condRef.current.getValues();
|
|
117
|
-
|
|
118
|
-
if (cond.tone) {
|
|
119
|
-
newMsg += " The tone should be " + cond.tone + ".";
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
if (cond.count) {
|
|
123
|
-
newMsg += " Within " + cond.count + " words.";
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
if (cond.features) {
|
|
127
|
-
newMsg += " The description should cover key features " + cond.features + ".";
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
if (cond.keyDetail) {
|
|
131
|
-
newMsg += " Emphasize " + cond.keyDetail + ".";
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
return {
|
|
135
|
-
content: newMsg,
|
|
136
|
-
showContent: msg
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
|
|
140
94
|
_this.onEnter = function () {
|
|
141
95
|
var message = _this.state.message;
|
|
142
96
|
|
|
143
97
|
if (!message) {
|
|
144
98
|
return;
|
|
145
|
-
}
|
|
99
|
+
} // chat
|
|
146
100
|
|
|
147
|
-
var messageObj = _this.getMessageObj(message); // chat
|
|
148
101
|
|
|
149
|
-
|
|
150
|
-
_this.chatGpt.sendMessage(messageObj);
|
|
102
|
+
_this.chatGpt.sendMessage(message);
|
|
151
103
|
|
|
152
104
|
var context = _this.chatGpt.getContext();
|
|
153
105
|
|
|
@@ -243,8 +195,7 @@ function (_super) {
|
|
|
243
195
|
open = _a.open,
|
|
244
196
|
isGenerating = _a.isGenerating,
|
|
245
197
|
aiImageVisible = _a.aiImageVisible,
|
|
246
|
-
loading = _a.loading
|
|
247
|
-
showCondition = _a.showCondition;
|
|
198
|
+
loading = _a.loading;
|
|
248
199
|
|
|
249
200
|
if (loading) {
|
|
250
201
|
return null;
|
|
@@ -267,17 +218,14 @@ function (_super) {
|
|
|
267
218
|
closable: false,
|
|
268
219
|
footer: /*#__PURE__*/_react["default"].createElement("div", {
|
|
269
220
|
className: "dialog_bottom"
|
|
270
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
271
|
-
className: "bottom_input"
|
|
272
|
-
}, /*#__PURE__*/_react["default"].createElement(TextArea, {
|
|
273
|
-
autoSize: true,
|
|
274
|
-
className: "text_area",
|
|
221
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
275
222
|
onChange: this.onMessageChage,
|
|
276
223
|
onPressEnter: this.onEnter,
|
|
277
224
|
placeholder: "Send a message",
|
|
278
225
|
value: message
|
|
279
|
-
}), /*#__PURE__*/_react["default"].createElement(
|
|
280
|
-
className: "
|
|
226
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
227
|
+
className: "btn_wrap"
|
|
228
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
281
229
|
color: "#2F54EB",
|
|
282
230
|
onClick: this.generateImage,
|
|
283
231
|
size: 20,
|
|
@@ -286,21 +234,14 @@ function (_super) {
|
|
|
286
234
|
},
|
|
287
235
|
type: "icon-image"
|
|
288
236
|
}), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
});
|
|
237
|
+
color: message.length > 0 ? '#2F54EB' : '#C1C9D7',
|
|
238
|
+
onClick: this.onEnter,
|
|
239
|
+
size: 20,
|
|
240
|
+
style: {
|
|
241
|
+
cursor: 'pointer'
|
|
295
242
|
},
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
299
|
-
className: (0, _classnames["default"])('generate_btn', {
|
|
300
|
-
disable_btn: message.length === 0
|
|
301
|
-
}),
|
|
302
|
-
onClick: this.onEnter
|
|
303
|
-
}, "Generate")),
|
|
243
|
+
type: message.length > 0 ? 'icon-send1' : 'icon-send'
|
|
244
|
+
}))),
|
|
304
245
|
footerStyle: {
|
|
305
246
|
padding: 12
|
|
306
247
|
},
|
|
@@ -355,7 +296,7 @@ function (_super) {
|
|
|
355
296
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
356
297
|
className: "messageContentWrap",
|
|
357
298
|
dangerouslySetInnerHTML: {
|
|
358
|
-
__html: _this.getMarkText(ctxNode.
|
|
299
|
+
__html: _this.getMarkText(ctxNode.content)
|
|
359
300
|
}
|
|
360
301
|
}), ctxNode.role === 'assistant' && /*#__PURE__*/_react["default"].createElement("div", {
|
|
361
302
|
className: "msgIconWrap"
|
|
@@ -370,8 +311,6 @@ function (_super) {
|
|
|
370
311
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Spin, {
|
|
371
312
|
spinning: true
|
|
372
313
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
373
|
-
className: "regenerate_btn_wrap"
|
|
374
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
375
314
|
className: "regenerate_btn",
|
|
376
315
|
onClick: this.onRegenarate
|
|
377
316
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
@@ -382,13 +321,7 @@ function (_super) {
|
|
|
382
321
|
marginRight: 5
|
|
383
322
|
},
|
|
384
323
|
type: "icon-refresh"
|
|
385
|
-
}), "Regenerate Response")), /*#__PURE__*/_react["default"].createElement("
|
|
386
|
-
className: (0, _classnames["default"])('more_condition', {
|
|
387
|
-
more_condition_hide: !showCondition
|
|
388
|
-
})
|
|
389
|
-
}, /*#__PURE__*/_react["default"].createElement(_SearchCondition["default"], {
|
|
390
|
-
onRef: this.condRef
|
|
391
|
-
})))), /*#__PURE__*/_react["default"].createElement(_AiImageGenerator["default"], {
|
|
324
|
+
}), "Regenerate Response"))), /*#__PURE__*/_react["default"].createElement(_AiImageGenerator["default"], {
|
|
392
325
|
onClose: function onClose() {
|
|
393
326
|
return _this.setState({
|
|
394
327
|
aiImageVisible: false
|
|
@@ -32,15 +32,12 @@
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
.chat_content_wrap {
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-direction: column;
|
|
37
35
|
position: relative;
|
|
36
|
+
padding-bottom: 40px;
|
|
38
37
|
height: 100%;
|
|
39
38
|
.content_wrap {
|
|
40
|
-
background: #F5F6F7;
|
|
41
|
-
flex: 1;
|
|
42
39
|
padding: 16px;
|
|
43
|
-
|
|
40
|
+
height: 100%;
|
|
44
41
|
overflow: scroll;
|
|
45
42
|
font-family: 'Open Sans';
|
|
46
43
|
font-size: 14px;
|
|
@@ -81,18 +78,16 @@
|
|
|
81
78
|
display: flex;
|
|
82
79
|
justify-content: flex-end;
|
|
83
80
|
.messageWrap {
|
|
84
|
-
border: 1px solid #E6EAF0;
|
|
85
81
|
border-radius: 4px;
|
|
86
|
-
background: #
|
|
87
|
-
color: #
|
|
82
|
+
background: #E9F0FF;
|
|
83
|
+
color: #2F54EB;
|
|
88
84
|
}
|
|
89
85
|
}
|
|
90
86
|
.assistantMessage {
|
|
91
87
|
.messageWrap {
|
|
92
88
|
border-radius: 4px;
|
|
93
|
-
background: #
|
|
94
|
-
color: #
|
|
95
|
-
border: 1px solid #D6E4FF;
|
|
89
|
+
background: #F5F6F7;
|
|
90
|
+
color: #232F46;
|
|
96
91
|
}
|
|
97
92
|
}
|
|
98
93
|
.recent_response {
|
|
@@ -106,74 +101,38 @@
|
|
|
106
101
|
}
|
|
107
102
|
}
|
|
108
103
|
}
|
|
109
|
-
|
|
110
|
-
.regenerate_btn_wrap {
|
|
111
|
-
background: #F5F6F7;
|
|
104
|
+
.regenerate_btn {
|
|
112
105
|
display: flex;
|
|
113
106
|
align-items: center;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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;
|
|
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;
|
|
139
119
|
}
|
|
140
120
|
}
|
|
141
121
|
.dialog_bottom {
|
|
142
122
|
position: relative;
|
|
143
123
|
font-size: 14px;
|
|
144
|
-
|
|
145
|
-
|
|
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
|
-
}
|
|
124
|
+
input {
|
|
125
|
+
padding-right: 60px !important;
|
|
160
126
|
}
|
|
161
|
-
.
|
|
127
|
+
.btn_wrap {
|
|
128
|
+
position: absolute;
|
|
129
|
+
right: 15px;
|
|
130
|
+
top: 0px;
|
|
131
|
+
width: 50px;
|
|
132
|
+
height: 36px;
|
|
162
133
|
display: flex;
|
|
163
134
|
align-items: center;
|
|
164
|
-
justify-content:
|
|
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;
|
|
135
|
+
justify-content: space-between;
|
|
177
136
|
}
|
|
178
137
|
}
|
|
179
138
|
}
|
|
@@ -81,6 +81,7 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
|
|
|
81
81
|
|
|
82
82
|
switch (selectedNode.type) {
|
|
83
83
|
case 'IMAGE_GALLERY':
|
|
84
|
+
case 'WALLET':
|
|
84
85
|
case 'BANNER':
|
|
85
86
|
groupName = ''; // if (!groupName) {
|
|
86
87
|
// groupName = isPc() ? panelProps.image?.content?.pcName : panelProps.image?.content?.h5Name;
|
|
@@ -108,14 +109,10 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
|
|
|
108
109
|
break;
|
|
109
110
|
|
|
110
111
|
case 'TEXT':
|
|
111
|
-
case 'WALLET':
|
|
112
|
-
case 'COMMON_FUNCTIONS':
|
|
113
112
|
groupName = panelProps.title.text;
|
|
114
113
|
break;
|
|
115
114
|
|
|
116
115
|
case 'RECOMMEND':
|
|
117
|
-
case 'AFFILIATE_RECOMMEND':
|
|
118
|
-
// console.log('RECOMMEND ---panelProps.groupName.text', panelProps.groupName.text);
|
|
119
116
|
groupName = panelProps.groupName.text;
|
|
120
117
|
break;
|
|
121
118
|
|
|
@@ -130,11 +127,6 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
|
|
|
130
127
|
case 'TAG':
|
|
131
128
|
groupName = panelProps.button.text;
|
|
132
129
|
break;
|
|
133
|
-
|
|
134
|
-
case 'PERSONAL_INFOMATION':
|
|
135
|
-
case 'ORDERS':
|
|
136
|
-
groupName = panelProps.sourceType;
|
|
137
|
-
break;
|
|
138
130
|
}
|
|
139
131
|
|
|
140
132
|
return groupName || 'Group Name';
|
|
@@ -382,11 +374,8 @@ function (_super) {
|
|
|
382
374
|
onClick: this.onSecConfigBack,
|
|
383
375
|
type: "icon"
|
|
384
376
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
385
|
-
className: "title"
|
|
386
|
-
|
|
387
|
-
__html: getSecondConfigName(selectedNode, clickedGroup)
|
|
388
|
-
}
|
|
389
|
-
})), this.getSecondConfigInstance()));
|
|
377
|
+
className: "title"
|
|
378
|
+
}, getSecondConfigName(selectedNode, clickedGroup))), this.getSecondConfigInstance()));
|
|
390
379
|
};
|
|
391
380
|
|
|
392
381
|
return ConfigPanel;
|
|
@@ -11,165 +11,6 @@ var _commonUtil = require("../../../utils/commonUtil");
|
|
|
11
11
|
|
|
12
12
|
var _storeUtil = require("../../../utils/storeUtil");
|
|
13
13
|
|
|
14
|
-
var __assign = void 0 && (void 0).__assign || function () {
|
|
15
|
-
__assign = Object.assign || function (t) {
|
|
16
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17
|
-
s = arguments[i];
|
|
18
|
-
|
|
19
|
-
for (var p in s) {
|
|
20
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return t;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
return __assign.apply(this, arguments);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
|
|
31
|
-
function adopt(value) {
|
|
32
|
-
return value instanceof P ? value : new P(function (resolve) {
|
|
33
|
-
resolve(value);
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
-
function fulfilled(value) {
|
|
39
|
-
try {
|
|
40
|
-
step(generator.next(value));
|
|
41
|
-
} catch (e) {
|
|
42
|
-
reject(e);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
function rejected(value) {
|
|
47
|
-
try {
|
|
48
|
-
step(generator["throw"](value));
|
|
49
|
-
} catch (e) {
|
|
50
|
-
reject(e);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function step(result) {
|
|
55
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
63
|
-
var _ = {
|
|
64
|
-
label: 0,
|
|
65
|
-
sent: function sent() {
|
|
66
|
-
if (t[0] & 1) throw t[1];
|
|
67
|
-
return t[1];
|
|
68
|
-
},
|
|
69
|
-
trys: [],
|
|
70
|
-
ops: []
|
|
71
|
-
},
|
|
72
|
-
f,
|
|
73
|
-
y,
|
|
74
|
-
t,
|
|
75
|
-
g;
|
|
76
|
-
return g = {
|
|
77
|
-
next: verb(0),
|
|
78
|
-
"throw": verb(1),
|
|
79
|
-
"return": verb(2)
|
|
80
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
81
|
-
return this;
|
|
82
|
-
}), g;
|
|
83
|
-
|
|
84
|
-
function verb(n) {
|
|
85
|
-
return function (v) {
|
|
86
|
-
return step([n, v]);
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
function step(op) {
|
|
91
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
92
|
-
|
|
93
|
-
while (_) {
|
|
94
|
-
try {
|
|
95
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
96
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
97
|
-
|
|
98
|
-
switch (op[0]) {
|
|
99
|
-
case 0:
|
|
100
|
-
case 1:
|
|
101
|
-
t = op;
|
|
102
|
-
break;
|
|
103
|
-
|
|
104
|
-
case 4:
|
|
105
|
-
_.label++;
|
|
106
|
-
return {
|
|
107
|
-
value: op[1],
|
|
108
|
-
done: false
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
case 5:
|
|
112
|
-
_.label++;
|
|
113
|
-
y = op[1];
|
|
114
|
-
op = [0];
|
|
115
|
-
continue;
|
|
116
|
-
|
|
117
|
-
case 7:
|
|
118
|
-
op = _.ops.pop();
|
|
119
|
-
|
|
120
|
-
_.trys.pop();
|
|
121
|
-
|
|
122
|
-
continue;
|
|
123
|
-
|
|
124
|
-
default:
|
|
125
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
126
|
-
_ = 0;
|
|
127
|
-
continue;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
131
|
-
_.label = op[1];
|
|
132
|
-
break;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
136
|
-
_.label = t[1];
|
|
137
|
-
t = op;
|
|
138
|
-
break;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
if (t && _.label < t[2]) {
|
|
142
|
-
_.label = t[2];
|
|
143
|
-
|
|
144
|
-
_.ops.push(op);
|
|
145
|
-
|
|
146
|
-
break;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
if (t[2]) _.ops.pop();
|
|
150
|
-
|
|
151
|
-
_.trys.pop();
|
|
152
|
-
|
|
153
|
-
continue;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
op = body.call(thisArg, _);
|
|
157
|
-
} catch (e) {
|
|
158
|
-
op = [6, e];
|
|
159
|
-
y = 0;
|
|
160
|
-
} finally {
|
|
161
|
-
f = t = 0;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
if (op[0] & 5) throw op[1];
|
|
166
|
-
return {
|
|
167
|
-
value: op[0] ? op[1] : void 0,
|
|
168
|
-
done: true
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
|
|
173
14
|
// 角色
|
|
174
15
|
var roleMap = {
|
|
175
16
|
ASSISTANT: 'assistant',
|
|
@@ -192,7 +33,6 @@ function () {
|
|
|
192
33
|
this.initParams = {}; // 建立连接
|
|
193
34
|
|
|
194
35
|
this.initChatConnect = function () {
|
|
195
|
-
// return new Promise((resolve, reject) => {
|
|
196
36
|
var _a = _this.initParams,
|
|
197
37
|
onMessage = _a.onMessage,
|
|
198
38
|
onEnd = _a.onEnd;
|
|
@@ -203,16 +43,14 @@ function () {
|
|
|
203
43
|
|
|
204
44
|
eventSource.onopen = function (event) {
|
|
205
45
|
console.log('onOpen');
|
|
206
|
-
sse = event.target;
|
|
46
|
+
sse = event.target;
|
|
207
47
|
};
|
|
208
48
|
|
|
209
49
|
eventSource.onmessage = function (event) {
|
|
210
50
|
if (event.data == '[DONE]') {
|
|
211
51
|
_this.isGenerating = false;
|
|
212
52
|
|
|
213
|
-
_this.insertMessage2Context(
|
|
214
|
-
content: text
|
|
215
|
-
}, roleMap.ASSISTANT);
|
|
53
|
+
_this.insertMessage2Context(text, roleMap.ASSISTANT);
|
|
216
54
|
|
|
217
55
|
text = '';
|
|
218
56
|
onEnd();
|
|
@@ -239,80 +77,50 @@ function () {
|
|
|
239
77
|
_this.isGenerating = false;
|
|
240
78
|
|
|
241
79
|
_this.regenerate();
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
}; // 获取全部对话上下文
|
|
80
|
+
};
|
|
81
|
+
}; // 获取chat上下文
|
|
245
82
|
|
|
246
83
|
|
|
247
84
|
this.getContext = function () {
|
|
248
85
|
var messages = (0, _storeUtil.getSessionStore)(catchKey) || [];
|
|
249
86
|
return messages;
|
|
250
|
-
}; // 获取发送消息上下文
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
this.getSendContext = function () {
|
|
254
|
-
var context = (0, _storeUtil.getSessionStore)(catchKey) || [];
|
|
255
|
-
context = context.splice(context.length - 5).map(function (ctx) {
|
|
256
|
-
return {
|
|
257
|
-
role: ctx.role,
|
|
258
|
-
content: ctx.content
|
|
259
|
-
};
|
|
260
|
-
});
|
|
261
|
-
return context;
|
|
262
87
|
}; // 消息插入上下文中
|
|
263
88
|
|
|
264
89
|
|
|
265
|
-
this.insertMessage2Context = function (
|
|
90
|
+
this.insertMessage2Context = function (message, role) {
|
|
266
91
|
if (role === void 0) {
|
|
267
92
|
role = roleMap.USER;
|
|
268
93
|
}
|
|
269
94
|
|
|
270
95
|
var messages = (0, _storeUtil.getSessionStore)(catchKey) || [];
|
|
271
|
-
messages.push(
|
|
96
|
+
messages.push({
|
|
97
|
+
content: message,
|
|
272
98
|
role: role
|
|
273
|
-
}
|
|
99
|
+
});
|
|
274
100
|
(0, _storeUtil.setSessionStore)(catchKey, messages);
|
|
275
101
|
}; // 发送消息
|
|
276
102
|
|
|
277
103
|
|
|
278
|
-
this.sendMessage = function (
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
, this.initChatConnect()];
|
|
299
|
-
|
|
300
|
-
case 1:
|
|
301
|
-
_a.sent();
|
|
302
|
-
|
|
303
|
-
newMessages = messages.splice(messages.length - 5);
|
|
304
|
-
setTimeout(function () {
|
|
305
|
-
(0, _commonUtil.commonFetch)('/designer/v1/ai/stream-chat-completion', {
|
|
306
|
-
clientId: _this.clientId,
|
|
307
|
-
messages: newMessages
|
|
308
|
-
}, 'POST');
|
|
309
|
-
}, 200);
|
|
310
|
-
return [2
|
|
311
|
-
/*return*/
|
|
312
|
-
];
|
|
313
|
-
}
|
|
314
|
-
});
|
|
315
|
-
});
|
|
104
|
+
this.sendMessage = function (message) {
|
|
105
|
+
if (!message) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
_this.isGenerating = true;
|
|
110
|
+
|
|
111
|
+
_this.insertMessage2Context(message);
|
|
112
|
+
|
|
113
|
+
var messages = _this.getContext();
|
|
114
|
+
|
|
115
|
+
_this.initChatConnect();
|
|
116
|
+
|
|
117
|
+
var newMessages = messages.splice(messages.length - 5);
|
|
118
|
+
setTimeout(function () {
|
|
119
|
+
(0, _commonUtil.commonFetch)('/designer/v1/ai/stream-chat-completion', {
|
|
120
|
+
clientId: _this.clientId,
|
|
121
|
+
messages: newMessages
|
|
122
|
+
}, 'POST');
|
|
123
|
+
}, 200);
|
|
316
124
|
}; // 重新生成
|
|
317
125
|
|
|
318
126
|
|
|
@@ -331,8 +139,7 @@ function () {
|
|
|
331
139
|
|
|
332
140
|
_this.initChatConnect();
|
|
333
141
|
|
|
334
|
-
var newMessages =
|
|
335
|
-
|
|
142
|
+
var newMessages = messages.splice(messages.length - 5);
|
|
336
143
|
setTimeout(function () {
|
|
337
144
|
(0, _commonUtil.commonFetch)('/designer/v1/ai/stream-chat-completion', {
|
|
338
145
|
clientId: _this.clientId,
|