@fonixtree/magic-design 1.0.5 → 1.0.6
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/magic-box-iconfont.css +67 -3
- package/es/assets/fonts/magic-box-iconfont.css.bak +67 -3
- 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/layout-icon/imageTextLeft.svg +6 -0
- package/es/assets/images/layout-icon/imageTextRight.svg +6 -0
- package/es/assets/images/layout-icon/locationLayout.png +0 -0
- package/es/assets/less/slider.less +49 -1
- package/es/common/ColorPicker/index.js +4 -1
- package/es/common/Field/index.js +20 -3
- package/es/common/ImageLazy/index.js +172 -0
- package/es/common/ImageLazy/index.less +0 -0
- package/es/common/ImageModal/index.js +35 -2
- package/es/common/ImagePicker/index.js +76 -12
- package/es/common/ImagePicker/index.less +1 -0
- package/es/common/LinkModal/AffiliateProductTable/index.js +348 -0
- package/es/common/LinkModal/BundleCampaign/index.js +2 -2
- package/es/common/LinkModal/CatgTable/index.js +6 -3
- package/es/common/LinkModal/CouponTable/index.js +10 -2
- package/es/common/LinkModal/FilteredProductModal/index.js +5 -6
- package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/es/common/LinkModal/index.js +6 -0
- package/es/common/ProductModal/index.js +2 -2
- package/es/common/Video/index.js +11 -3
- package/es/common/Video/index.less +11 -7
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +1 -1
- package/es/composite-comp/bol/components/Banner/index.js +15 -1
- package/es/composite-comp/bol/components/Banner/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/Banner/mobile/index.less +52 -78
- package/es/composite-comp/bol/components/Banner/pc/index.js +1 -4
- package/es/composite-comp/bol/components/Button/index.js +3 -4
- package/es/composite-comp/bol/components/Carousel/index.js +27 -3
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +12 -24
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
- package/es/composite-comp/bol/components/Carousel/pc/index.js +5 -6
- package/es/composite-comp/bol/components/CustomCode/defaultJSON.js +39 -0
- package/es/composite-comp/bol/components/CustomCode/index.js +138 -0
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
- package/es/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +11 -2
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
- package/es/composite-comp/bol/components/ImageText/pc/index.js +98 -7
- package/es/composite-comp/bol/components/ImageText/pc/index.less +32 -0
- package/es/composite-comp/bol/components/Location/defaultJSON.js +60 -0
- package/es/composite-comp/bol/components/Location/index.js +100 -0
- package/es/composite-comp/bol/components/Location/index.less +15 -0
- package/es/composite-comp/bol/components/Newsletter/index.js +1 -4
- package/es/composite-comp/bol/components/Tag/index.js +3 -4
- package/es/composite-comp/bol/components/Text/index.js +3 -4
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +49 -10
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.less +5 -5
- package/es/composite-comp/bol/components/Video/defaultJSON.js +10 -0
- package/es/composite-comp/bol/components/Video/index.js +23 -1
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +9 -12
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +8 -11
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +9 -11
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -50
- package/es/composite-comp/bol/components/Video/mobile/index.js +8 -49
- package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
- package/es/composite-comp/bol/components/Video/pc/Layout1/index.js +9 -12
- package/es/composite-comp/bol/components/Video/pc/Layout1/index.less +2 -2
- package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +15 -16
- package/es/composite-comp/bol/components/Video/pc/Layout2/index.less +4 -4
- package/es/composite-comp/bol/components/Video/pc/Layout3/index.js +8 -11
- package/es/composite-comp/bol/components/Video/pc/Layout3/index.less +2 -2
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.js +9 -12
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.less +5 -4
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.js +9 -12
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.less +12 -10
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
- package/es/composite-comp/bol/components/Wallet/pc/index.js +1 -4
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +4 -0
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
- package/es/composite-comp/bol/config-panels/CustomCodeConfig/MyEditor/index.js +42 -0
- package/es/composite-comp/bol/config-panels/CustomCodeConfig/index.js +111 -0
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -1
- package/es/composite-comp/bol/config-panels/LocationConfig/index.js +149 -0
- package/es/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +12 -2
- package/es/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
- package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +182 -2
- package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +114 -2
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +113 -2
- package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +64 -3
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +12 -2
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +2 -1
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
- package/es/composite-comp/dito/components/Recommend/pc/index.js +2 -1
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +67 -7
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
- package/es/composite-comp/dito/components/SignBoard/defaultJSON.js +21 -37
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +35 -24
- package/es/composite-comp/dito/components/SignBoard/mobile/index.less +71 -80
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
- package/es/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +0 -48
- package/es/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
- package/es/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +68 -1
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/es/constants/component-types.js +10 -2
- package/es/constants/index.js +12 -2
- package/es/constants/layout.js +21 -1
- package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
- package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
- package/es/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
- package/es/core/Designer/AiImageGenerator/History/index.js +147 -0
- package/es/core/Designer/AiImageGenerator/History/index.less +75 -0
- package/es/core/Designer/AiImageGenerator/NumberSlider/index.js +31 -0
- package/es/core/Designer/AiImageGenerator/NumberSlider/index.less +8 -0
- package/es/core/Designer/AiImageGenerator/UploadReference/index.js +55 -0
- package/es/core/Designer/AiImageGenerator/UploadReference/index.less +45 -0
- package/es/core/Designer/AiImageGenerator/images/nodata.png +0 -0
- package/es/core/Designer/AiImageGenerator/index.js +752 -0
- package/es/core/Designer/AiImageGenerator/index.less +136 -0
- package/es/core/Designer/ChatRobot/components/CopyBtn/index.js +49 -0
- package/es/core/Designer/ChatRobot/components/CopyBtn/index.less +0 -0
- package/es/core/Designer/ChatRobot/index.js +343 -0
- package/es/core/Designer/ChatRobot/index.less +138 -0
- package/es/core/Designer/ChatRobot/markdown.less +1 -0
- package/es/core/Designer/ConfigPanel/index.js +2 -1
- package/es/core/Designer/FonixtreeGpt/index.js +160 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +96 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +26 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +101 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +26 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +93 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +26 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BackgroundSVG.js +27 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +29 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +49 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +29 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +26 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +27 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +31 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +34 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +41 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +136 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +25 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +1 -0
- package/es/core/Designer/TextEditModal/ToolBar/index.js +219 -0
- package/es/core/Designer/TextEditModal/ToolBar/index.less +19 -0
- package/es/core/Designer/TextEditModal/index.js +100 -0
- package/es/core/Designer/TextEditModal/index.less +4 -0
- package/es/core/Designer/TextEditModal_old/index.js +142 -0
- package/es/core/Designer/TextEditModal_old/index.less +25 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.js +101 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.less +60 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/CircleSVG.js +52 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/InitialSVG.js +51 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/SquareSVG.js +58 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +96 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +105 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.js +133 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.less +60 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/CJLDecimalSVG.js +46 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/DecimalSVG.js +46 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerAlphaSVG.js +46 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerRomanSVG.js +46 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperAlphaSVG.js +46 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperRomanSVG.js +46 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +105 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +36 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/index.js +151 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
- package/es/core/Designer/ToolBarModal/index.js +354 -0
- package/es/core/Designer/ToolBarModal/index.less +32 -0
- package/es/core/Designer/index.js +56 -15
- package/es/decorator/index.js +14 -0
- package/es/decorator/lazyLoadDecorator.js +75 -0
- package/es/decorator/metaDecorator.js +1 -1
- package/es/locale/en/en.json +10 -0
- package/es/locale/es/es.json +10 -0
- package/es/locale/id/id.json +10 -0
- package/es/meta-comp/components/Image/index.js +19 -3
- package/es/meta-comp/components/Text/formats/fontFamily.js +58 -0
- package/es/meta-comp/components/Text/formats/fontWeight.js +58 -0
- package/es/meta-comp/components/Text/formats/listStyleTypeStyle.js +58 -0
- package/es/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
- package/es/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
- package/es/meta-comp/components/Text/index.js +103 -374
- package/es/meta-comp/components/Text/index.less +57 -0
- package/es/meta-comp/config-panels/ImageConfig/index.js +35 -12
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-01.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-02.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-03.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-04.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-05.svg +3 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-01.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-02.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-03.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-04.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-05.svg +3 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/index.js +63 -0
- package/es/meta-comp/config-panels/PlayIconConfig/index.js +211 -0
- package/es/meta-comp/config-panels/PlayIconConfig/index.less +37 -2
- package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
- package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
- package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
- package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
- package/es/meta-comp/config-panels/TextConfig/index.js +14 -31
- package/es/meta-comp/config-panels/TextConfig/index.less +12 -16
- package/es/mobx/Frame.js +7 -1
- package/es/mobx/Store.js +3 -0
- package/es/utils/androidUtil.js +8 -1
- package/es/utils/businessUtil.js +13 -0
- package/es/utils/commonUtil.js +156 -34
- package/es/utils/coreUtil.js +18 -4
- package/lib/assets/fonts/magic-box-iconfont.css +67 -3
- package/lib/assets/fonts/magic-box-iconfont.css.bak +67 -3
- 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/layout-icon/imageTextLeft.svg +6 -0
- package/lib/assets/images/layout-icon/imageTextRight.svg +6 -0
- package/lib/assets/images/layout-icon/locationLayout.png +0 -0
- package/lib/assets/less/slider.less +49 -1
- package/lib/common/ColorPicker/index.js +4 -1
- package/lib/common/Field/index.js +20 -3
- package/lib/common/ImageLazy/index.js +172 -0
- package/lib/common/ImageLazy/index.less +0 -0
- package/lib/common/ImageModal/index.js +35 -2
- package/lib/common/ImagePicker/index.js +76 -12
- package/lib/common/ImagePicker/index.less +1 -0
- package/lib/common/LinkModal/AffiliateProductTable/index.js +348 -0
- package/lib/common/LinkModal/BundleCampaign/index.js +2 -2
- package/lib/common/LinkModal/CatgTable/index.js +6 -3
- package/lib/common/LinkModal/CouponTable/index.js +10 -2
- package/lib/common/LinkModal/FilteredProductModal/index.js +5 -6
- package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/lib/common/LinkModal/index.js +6 -0
- package/lib/common/ProductModal/index.js +2 -2
- package/lib/common/Video/index.js +11 -3
- package/lib/common/Video/index.less +11 -7
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +1 -1
- package/lib/composite-comp/bol/components/Banner/index.js +15 -1
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +52 -78
- package/lib/composite-comp/bol/components/Banner/pc/index.js +1 -4
- package/lib/composite-comp/bol/components/Button/index.js +3 -4
- package/lib/composite-comp/bol/components/Carousel/index.js +27 -3
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +12 -24
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +5 -6
- package/lib/composite-comp/bol/components/CustomCode/defaultJSON.js +39 -0
- package/lib/composite-comp/bol/components/CustomCode/index.js +138 -0
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +11 -2
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +98 -7
- package/lib/composite-comp/bol/components/ImageText/pc/index.less +32 -0
- package/lib/composite-comp/bol/components/Location/defaultJSON.js +60 -0
- package/lib/composite-comp/bol/components/Location/index.js +100 -0
- package/lib/composite-comp/bol/components/Location/index.less +15 -0
- package/lib/composite-comp/bol/components/Newsletter/index.js +1 -4
- package/lib/composite-comp/bol/components/Tag/index.js +3 -4
- package/lib/composite-comp/bol/components/Text/index.js +3 -4
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +49 -10
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.less +5 -5
- package/lib/composite-comp/bol/components/Video/defaultJSON.js +10 -0
- package/lib/composite-comp/bol/components/Video/index.js +23 -1
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +9 -12
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +8 -11
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +9 -11
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -50
- package/lib/composite-comp/bol/components/Video/mobile/index.js +8 -49
- package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
- package/lib/composite-comp/bol/components/Video/pc/Layout1/index.js +9 -12
- package/lib/composite-comp/bol/components/Video/pc/Layout1/index.less +2 -2
- package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +15 -16
- package/lib/composite-comp/bol/components/Video/pc/Layout2/index.less +4 -4
- package/lib/composite-comp/bol/components/Video/pc/Layout3/index.js +8 -11
- package/lib/composite-comp/bol/components/Video/pc/Layout3/index.less +2 -2
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.js +9 -12
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.less +5 -4
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.js +9 -12
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.less +12 -10
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
- package/lib/composite-comp/bol/components/Wallet/pc/index.js +1 -4
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +4 -0
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/CustomCodeConfig/MyEditor/index.js +42 -0
- package/lib/composite-comp/bol/config-panels/CustomCodeConfig/index.js +111 -0
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/LocationConfig/index.js +149 -0
- package/lib/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +12 -2
- package/lib/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
- package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +182 -2
- package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +114 -2
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +113 -2
- package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +64 -3
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +12 -2
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +2 -1
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +2 -1
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +67 -7
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
- package/lib/composite-comp/dito/components/SignBoard/defaultJSON.js +21 -37
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +35 -24
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +71 -80
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
- package/lib/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +0 -48
- package/lib/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
- package/lib/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +68 -1
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/lib/constants/component-types.js +10 -2
- package/lib/constants/index.js +12 -2
- package/lib/constants/layout.js +21 -1
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
- package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
- package/lib/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
- package/lib/core/Designer/AiImageGenerator/History/index.js +147 -0
- package/lib/core/Designer/AiImageGenerator/History/index.less +75 -0
- package/lib/core/Designer/AiImageGenerator/NumberSlider/index.js +31 -0
- package/lib/core/Designer/AiImageGenerator/NumberSlider/index.less +8 -0
- package/lib/core/Designer/AiImageGenerator/UploadReference/index.js +55 -0
- package/lib/core/Designer/AiImageGenerator/UploadReference/index.less +45 -0
- package/lib/core/Designer/AiImageGenerator/images/nodata.png +0 -0
- package/lib/core/Designer/AiImageGenerator/index.js +752 -0
- package/lib/core/Designer/AiImageGenerator/index.less +136 -0
- package/lib/core/Designer/ChatRobot/components/CopyBtn/index.js +49 -0
- package/lib/core/Designer/ChatRobot/components/CopyBtn/index.less +0 -0
- package/lib/core/Designer/ChatRobot/index.js +343 -0
- package/lib/core/Designer/ChatRobot/index.less +138 -0
- package/lib/core/Designer/ChatRobot/markdown.less +1 -0
- package/lib/core/Designer/ConfigPanel/index.js +2 -1
- package/lib/core/Designer/FonixtreeGpt/index.js +160 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +96 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +26 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +101 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +26 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +93 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +26 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BackgroundSVG.js +27 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +29 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +49 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +29 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +26 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +27 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +31 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +34 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +41 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +136 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +25 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +1 -0
- package/lib/core/Designer/TextEditModal/ToolBar/index.js +219 -0
- package/lib/core/Designer/TextEditModal/ToolBar/index.less +19 -0
- package/lib/core/Designer/TextEditModal/index.js +100 -0
- package/lib/core/Designer/TextEditModal/index.less +4 -0
- package/lib/core/Designer/TextEditModal_old/index.js +142 -0
- package/lib/core/Designer/TextEditModal_old/index.less +25 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.js +101 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.less +60 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/CircleSVG.js +52 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/InitialSVG.js +51 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/SquareSVG.js +58 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +96 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +105 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.js +133 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.less +60 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/CJLDecimalSVG.js +46 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/DecimalSVG.js +46 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerAlphaSVG.js +46 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerRomanSVG.js +46 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperAlphaSVG.js +46 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperRomanSVG.js +46 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +105 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +36 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +151 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
- package/lib/core/Designer/ToolBarModal/index.js +354 -0
- package/lib/core/Designer/ToolBarModal/index.less +32 -0
- package/lib/core/Designer/index.js +56 -15
- package/lib/decorator/index.js +14 -0
- package/lib/decorator/lazyLoadDecorator.js +75 -0
- package/lib/decorator/metaDecorator.js +1 -1
- package/lib/locale/en/en.json +10 -0
- package/lib/locale/es/es.json +10 -0
- package/lib/locale/id/id.json +10 -0
- package/lib/meta-comp/components/Image/index.js +19 -3
- package/lib/meta-comp/components/Text/formats/fontFamily.js +58 -0
- package/lib/meta-comp/components/Text/formats/fontWeight.js +58 -0
- package/lib/meta-comp/components/Text/formats/listStyleTypeStyle.js +58 -0
- package/lib/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
- package/lib/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
- package/lib/meta-comp/components/Text/index.js +103 -374
- package/lib/meta-comp/components/Text/index.less +57 -0
- package/lib/meta-comp/config-panels/ImageConfig/index.js +35 -12
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-01.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-02.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-03.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-04.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-05.svg +3 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-01.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-02.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-03.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-04.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-05.svg +3 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/index.js +63 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/index.js +211 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/index.less +37 -2
- package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
- package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
- package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
- package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
- package/lib/meta-comp/config-panels/TextConfig/index.js +14 -31
- package/lib/meta-comp/config-panels/TextConfig/index.less +12 -16
- package/lib/mobx/Frame.js +7 -1
- package/lib/mobx/Store.js +3 -0
- package/lib/utils/androidUtil.js +8 -1
- package/lib/utils/businessUtil.js +13 -0
- package/lib/utils/commonUtil.js +156 -34
- package/lib/utils/coreUtil.js +18 -4
- package/package.json +5 -1
- package/es/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/.DS_Store +0 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
.generate_drawer {
|
|
2
|
+
::-webkit-scrollbar {
|
|
3
|
+
width: 0;
|
|
4
|
+
height: 0;
|
|
5
|
+
}
|
|
6
|
+
.dialog_head {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
.dialog_title {
|
|
11
|
+
|
|
12
|
+
}
|
|
13
|
+
.btn_group {
|
|
14
|
+
display: flex;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
.drawer_content {
|
|
18
|
+
display: flex;
|
|
19
|
+
min-height: 100%;
|
|
20
|
+
.left_wrap {
|
|
21
|
+
border-radius: 4px;
|
|
22
|
+
background-color: #FFF;
|
|
23
|
+
width: 320px;
|
|
24
|
+
min-height: 100%;
|
|
25
|
+
padding: 16px;
|
|
26
|
+
}
|
|
27
|
+
.middle_wrap {
|
|
28
|
+
flex: 1 1 auto;
|
|
29
|
+
padding: 32px 54px;
|
|
30
|
+
height: 550px;
|
|
31
|
+
position: relative;
|
|
32
|
+
.img_wrap {
|
|
33
|
+
width: 492px;
|
|
34
|
+
height: 492px;
|
|
35
|
+
display: grid;
|
|
36
|
+
grid-template-columns: repeat(2, 1fr);
|
|
37
|
+
grid-template-rows: repeat(2, 1fr);
|
|
38
|
+
grid-gap: 12px;
|
|
39
|
+
margin: 0 auto;
|
|
40
|
+
|
|
41
|
+
.aiImageItem {
|
|
42
|
+
position: relative;
|
|
43
|
+
background-color: #ccc;
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
font-size: 24px;
|
|
48
|
+
img {
|
|
49
|
+
width: 100%;
|
|
50
|
+
}
|
|
51
|
+
.imgHandleBtnWrap {
|
|
52
|
+
display: flex;
|
|
53
|
+
position: absolute;
|
|
54
|
+
bottom: 12px;
|
|
55
|
+
right: 12px;
|
|
56
|
+
.refreshBtnWrap {
|
|
57
|
+
background-color: #FFF;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
height: 28px;
|
|
60
|
+
width: 28px;
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
border-radius: 50%;
|
|
65
|
+
border: 1px solid #D2D9E5;
|
|
66
|
+
}
|
|
67
|
+
.downloadBtnWrap {
|
|
68
|
+
background-color: #FFF;
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
height: 28px;
|
|
71
|
+
width: 28px;
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
margin-left: 12px;
|
|
76
|
+
border-radius: 50%;
|
|
77
|
+
border: 1px solid #D2D9E5;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
.imgSelectBtnWrap {
|
|
81
|
+
position: absolute;
|
|
82
|
+
top: 12px;
|
|
83
|
+
right: 12px;
|
|
84
|
+
border-radius: 50%;
|
|
85
|
+
height: 19px;
|
|
86
|
+
width: 19px;
|
|
87
|
+
display: flex;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
align-items: center;
|
|
90
|
+
background: #FFF;
|
|
91
|
+
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
.noDataWrap {
|
|
95
|
+
width: 100%;
|
|
96
|
+
height: 100%;
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
.no_data {
|
|
101
|
+
height: 183px;
|
|
102
|
+
width: 212px;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
}
|
|
107
|
+
.btn_wrap {
|
|
108
|
+
margin-top: 40px;
|
|
109
|
+
display: flex;
|
|
110
|
+
justify-content: center;
|
|
111
|
+
.regenerate_btn {
|
|
112
|
+
border: 1px solid #E6EAF0;
|
|
113
|
+
border-radius: 4px;
|
|
114
|
+
padding: 4px 12px;
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
font-family: 'Open Sans';
|
|
117
|
+
font-style: normal;
|
|
118
|
+
font-weight: 400;
|
|
119
|
+
font-size: 13px;
|
|
120
|
+
background-color: #FFF;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
.search_wrap {
|
|
124
|
+
margin-top: 12px;
|
|
125
|
+
.cylon-input {
|
|
126
|
+
border-top-right-radius: 0 !important;
|
|
127
|
+
border-bottom-right-radius: 0 !important;
|
|
128
|
+
}
|
|
129
|
+
.cylon-btn {
|
|
130
|
+
border-top-left-radius: 0 !important;
|
|
131
|
+
border-bottom-left-radius: 0 !important;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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"] = CopyBtn;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _common = require("../../../../../common");
|
|
13
|
+
|
|
14
|
+
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); }
|
|
15
|
+
|
|
16
|
+
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; }
|
|
17
|
+
|
|
18
|
+
var btnTypeMap = {
|
|
19
|
+
COPY: 'icon-copy1',
|
|
20
|
+
COPIED: 'icon-vector'
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
function CopyBtn(_a) {
|
|
24
|
+
var onClick = _a.onClick;
|
|
25
|
+
|
|
26
|
+
var _b = (0, _react.useState)(btnTypeMap.COPY),
|
|
27
|
+
btnType = _b[0],
|
|
28
|
+
setBtnType = _b[1];
|
|
29
|
+
|
|
30
|
+
var onBtnClick = function onBtnClick() {
|
|
31
|
+
// 拷贝
|
|
32
|
+
setBtnType(btnTypeMap.COPIED);
|
|
33
|
+
onClick(); // 定时更改图标
|
|
34
|
+
|
|
35
|
+
setTimeout(function () {
|
|
36
|
+
setBtnType(btnTypeMap.COPY);
|
|
37
|
+
}, 2000);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
41
|
+
color: "#2F54EB",
|
|
42
|
+
onClick: onBtnClick,
|
|
43
|
+
size: 20,
|
|
44
|
+
style: {
|
|
45
|
+
cursor: 'pointer'
|
|
46
|
+
},
|
|
47
|
+
type: btnType
|
|
48
|
+
});
|
|
49
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,343 @@
|
|
|
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"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _antd = require("antd");
|
|
13
|
+
|
|
14
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
+
|
|
16
|
+
var _CopyBtn = _interopRequireDefault(require("./components/CopyBtn"));
|
|
17
|
+
|
|
18
|
+
var _common = require("../../../common");
|
|
19
|
+
|
|
20
|
+
var _FonixtreeGpt = _interopRequireDefault(require("../FonixtreeGpt"));
|
|
21
|
+
|
|
22
|
+
var _AiImageGenerator = _interopRequireDefault(require("../AiImageGenerator"));
|
|
23
|
+
|
|
24
|
+
var _commonUtil = require("../../../utils/commonUtil");
|
|
25
|
+
|
|
26
|
+
require("./index.less");
|
|
27
|
+
|
|
28
|
+
require("./markdown.less");
|
|
29
|
+
|
|
30
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
|
+
|
|
32
|
+
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); }
|
|
33
|
+
|
|
34
|
+
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; }
|
|
35
|
+
|
|
36
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
37
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
38
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
39
|
+
__proto__: []
|
|
40
|
+
} instanceof Array && function (d, b) {
|
|
41
|
+
d.__proto__ = b;
|
|
42
|
+
} || function (d, b) {
|
|
43
|
+
for (var p in b) {
|
|
44
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
return _extendStatics(d, b);
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
return function (d, b) {
|
|
52
|
+
_extendStatics(d, b);
|
|
53
|
+
|
|
54
|
+
function __() {
|
|
55
|
+
this.constructor = d;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
59
|
+
};
|
|
60
|
+
}();
|
|
61
|
+
|
|
62
|
+
var ChatRobot =
|
|
63
|
+
/** @class */
|
|
64
|
+
function (_super) {
|
|
65
|
+
__extends(ChatRobot, _super);
|
|
66
|
+
|
|
67
|
+
function ChatRobot(props) {
|
|
68
|
+
var _this = _super.call(this, props) || this;
|
|
69
|
+
|
|
70
|
+
_this.state = {
|
|
71
|
+
open: false,
|
|
72
|
+
message: '',
|
|
73
|
+
context: [],
|
|
74
|
+
isGenerating: false,
|
|
75
|
+
aiImageVisible: false,
|
|
76
|
+
loading: true
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
_this.scrollBottom = function () {
|
|
80
|
+
var container = document.getElementById('content_wrap');
|
|
81
|
+
container.scrollTop = container.scrollHeight + 50;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
_this.onMessageChage = function (e) {
|
|
85
|
+
_this.setState({
|
|
86
|
+
message: e.target.value
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
_this.getMarkText = function (text) {
|
|
91
|
+
return marked.parse(text);
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
_this.onEnter = function () {
|
|
95
|
+
var message = _this.state.message;
|
|
96
|
+
|
|
97
|
+
if (!message) {
|
|
98
|
+
return;
|
|
99
|
+
} // chat
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
_this.chatGpt.sendMessage(message);
|
|
103
|
+
|
|
104
|
+
var context = _this.chatGpt.getContext();
|
|
105
|
+
|
|
106
|
+
_this.setState({
|
|
107
|
+
isGenerating: true,
|
|
108
|
+
context: context,
|
|
109
|
+
message: ''
|
|
110
|
+
}, function () {
|
|
111
|
+
_this.scrollBottom();
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
_this.onShowDrawer = function () {
|
|
116
|
+
_this.setState({
|
|
117
|
+
open: true
|
|
118
|
+
});
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
_this.onCloseDrawer = function () {
|
|
122
|
+
_this.setState({
|
|
123
|
+
open: false
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
_this.onRegenarate = function () {
|
|
128
|
+
_this.setState({
|
|
129
|
+
isGenerating: true
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
_this.chatGpt.regenerate();
|
|
133
|
+
|
|
134
|
+
var context = _this.chatGpt.getContext();
|
|
135
|
+
|
|
136
|
+
_this.setState({
|
|
137
|
+
context: context
|
|
138
|
+
});
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
_this.generateImage = function () {
|
|
142
|
+
_this.setState({
|
|
143
|
+
open: false
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
_this.setState({
|
|
147
|
+
aiImageVisible: true
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
_this.copyToClipboard = function (text) {
|
|
152
|
+
(0, _commonUtil.copy2ClipBoard)(text);
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
_this.chatGpt = new _FonixtreeGpt["default"]({
|
|
156
|
+
onMessage: function onMessage(text) {
|
|
157
|
+
document.getElementById('recent_response').innerHTML = _this.getMarkText(text);
|
|
158
|
+
|
|
159
|
+
_this.scrollBottom();
|
|
160
|
+
},
|
|
161
|
+
onEnd: function onEnd() {
|
|
162
|
+
var context = _this.chatGpt.getContext();
|
|
163
|
+
|
|
164
|
+
document.getElementById('recent_response').innerHTML = '';
|
|
165
|
+
|
|
166
|
+
_this.setState({
|
|
167
|
+
context: context,
|
|
168
|
+
isGenerating: false
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
return _this;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
ChatRobot.prototype.componentDidMount = function () {
|
|
176
|
+
var _this = this;
|
|
177
|
+
|
|
178
|
+
var context = this.chatGpt.getContext();
|
|
179
|
+
this.setState({
|
|
180
|
+
context: context
|
|
181
|
+
});
|
|
182
|
+
(0, _commonUtil.importAsync)('https://cdn.jsdelivr.net/npm/marked/marked.min.js').then(function () {
|
|
183
|
+
return _this.setState({
|
|
184
|
+
loading: false
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
ChatRobot.prototype.render = function () {
|
|
190
|
+
var _this = this;
|
|
191
|
+
|
|
192
|
+
var _a = this.state,
|
|
193
|
+
context = _a.context,
|
|
194
|
+
message = _a.message,
|
|
195
|
+
open = _a.open,
|
|
196
|
+
isGenerating = _a.isGenerating,
|
|
197
|
+
aiImageVisible = _a.aiImageVisible,
|
|
198
|
+
loading = _a.loading;
|
|
199
|
+
|
|
200
|
+
if (loading) {
|
|
201
|
+
return null;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
205
|
+
className: "chat_wrap"
|
|
206
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
207
|
+
className: "chat_btn_wrap",
|
|
208
|
+
onClick: this.onShowDrawer
|
|
209
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
210
|
+
color: "#2F54EB",
|
|
211
|
+
size: 36,
|
|
212
|
+
type: "icon-ai"
|
|
213
|
+
})), /*#__PURE__*/_react["default"].createElement(_antd.Drawer, {
|
|
214
|
+
bodyStyle: {
|
|
215
|
+
padding: 0
|
|
216
|
+
},
|
|
217
|
+
className: "chat_drawer",
|
|
218
|
+
closable: false,
|
|
219
|
+
footer: /*#__PURE__*/_react["default"].createElement("div", {
|
|
220
|
+
className: "dialog_bottom"
|
|
221
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
222
|
+
onChange: this.onMessageChage,
|
|
223
|
+
onPressEnter: this.onEnter,
|
|
224
|
+
placeholder: "Send a message",
|
|
225
|
+
value: message
|
|
226
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
227
|
+
className: "btn_wrap"
|
|
228
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
229
|
+
color: "#2F54EB",
|
|
230
|
+
onClick: this.generateImage,
|
|
231
|
+
size: 20,
|
|
232
|
+
style: {
|
|
233
|
+
cursor: 'pointer'
|
|
234
|
+
},
|
|
235
|
+
type: "icon-image"
|
|
236
|
+
}), /*#__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'
|
|
242
|
+
},
|
|
243
|
+
type: message.length > 0 ? 'icon-send1' : 'icon-send'
|
|
244
|
+
}))),
|
|
245
|
+
footerStyle: {
|
|
246
|
+
padding: 12
|
|
247
|
+
},
|
|
248
|
+
headerStyle: {
|
|
249
|
+
padding: '12px 24px'
|
|
250
|
+
},
|
|
251
|
+
onClose: this.onCloseDrawer,
|
|
252
|
+
open: open,
|
|
253
|
+
placement: "right",
|
|
254
|
+
title: /*#__PURE__*/_react["default"].createElement("div", {
|
|
255
|
+
className: "dialog_head"
|
|
256
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
257
|
+
className: "dialog_title"
|
|
258
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
259
|
+
color: "#2F54EB",
|
|
260
|
+
onClick: this.onCloseDrawer,
|
|
261
|
+
size: 24,
|
|
262
|
+
style: {
|
|
263
|
+
marginRight: 5
|
|
264
|
+
},
|
|
265
|
+
type: "icon-ai"
|
|
266
|
+
}), "Conversational Editor"), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
267
|
+
onClick: this.onCloseDrawer,
|
|
268
|
+
size: 24,
|
|
269
|
+
style: {
|
|
270
|
+
cursor: 'pointer'
|
|
271
|
+
},
|
|
272
|
+
type: "icon-close"
|
|
273
|
+
})),
|
|
274
|
+
width: 600
|
|
275
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
276
|
+
className: "chat_content_wrap"
|
|
277
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
278
|
+
className: "content_wrap markdown-body",
|
|
279
|
+
id: "content_wrap"
|
|
280
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
281
|
+
className: (0, _classnames["default"])('messageOuterWrap', {
|
|
282
|
+
assistantMessage: true
|
|
283
|
+
})
|
|
284
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
285
|
+
className: "messageWrap"
|
|
286
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
287
|
+
className: "messageContentWrap"
|
|
288
|
+
}, "What would like to create?"))), context.length > 0 && context.map(function (ctxNode) {
|
|
289
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
290
|
+
className: (0, _classnames["default"])('messageOuterWrap', {
|
|
291
|
+
userMessage: ctxNode.role === 'user',
|
|
292
|
+
assistantMessage: ctxNode.role === 'assistant'
|
|
293
|
+
})
|
|
294
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
295
|
+
className: "messageWrap"
|
|
296
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
297
|
+
className: "messageContentWrap",
|
|
298
|
+
dangerouslySetInnerHTML: {
|
|
299
|
+
__html: _this.getMarkText(ctxNode.content)
|
|
300
|
+
}
|
|
301
|
+
}), ctxNode.role === 'assistant' && /*#__PURE__*/_react["default"].createElement("div", {
|
|
302
|
+
className: "msgIconWrap"
|
|
303
|
+
}, /*#__PURE__*/_react["default"].createElement(_CopyBtn["default"], {
|
|
304
|
+
onClick: function onClick() {
|
|
305
|
+
_this.copyToClipboard(ctxNode.content);
|
|
306
|
+
}
|
|
307
|
+
}))));
|
|
308
|
+
}), isGenerating && /*#__PURE__*/_react["default"].createElement("div", {
|
|
309
|
+
className: "recent_response",
|
|
310
|
+
id: "recent_response"
|
|
311
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Spin, {
|
|
312
|
+
spinning: true
|
|
313
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
314
|
+
className: "regenerate_btn",
|
|
315
|
+
onClick: this.onRegenarate
|
|
316
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
317
|
+
color: "#232F46",
|
|
318
|
+
onClick: this.onCloseDrawer,
|
|
319
|
+
size: 16,
|
|
320
|
+
style: {
|
|
321
|
+
marginRight: 5
|
|
322
|
+
},
|
|
323
|
+
type: "icon-refresh"
|
|
324
|
+
}), "Regenerate Response"))), /*#__PURE__*/_react["default"].createElement(_AiImageGenerator["default"], {
|
|
325
|
+
onClose: function onClose() {
|
|
326
|
+
return _this.setState({
|
|
327
|
+
aiImageVisible: false
|
|
328
|
+
});
|
|
329
|
+
},
|
|
330
|
+
onConfirm: function onConfirm() {
|
|
331
|
+
return _this.setState({
|
|
332
|
+
aiImageVisible: false
|
|
333
|
+
});
|
|
334
|
+
},
|
|
335
|
+
visible: aiImageVisible
|
|
336
|
+
}));
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
return ChatRobot;
|
|
340
|
+
}(_react.Component);
|
|
341
|
+
|
|
342
|
+
var _default = ChatRobot;
|
|
343
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
.chat_wrap {
|
|
2
|
+
.chat_btn_wrap {
|
|
3
|
+
position: absolute;
|
|
4
|
+
right: 24px;
|
|
5
|
+
top: 104px;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
z-index: 999;
|
|
10
|
+
height: 64px;
|
|
11
|
+
width: 64px;
|
|
12
|
+
background-color: #FFF;
|
|
13
|
+
border-radius: 50%;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
box-shadow: -3px -3px 12px rgba(45, 48, 64, 0.2), 3px 3px 12px rgba(45, 48, 64, 0.2);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.chat_drawer {
|
|
19
|
+
.dialog_head {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
.dialog_title {
|
|
24
|
+
font-family: 'Open Sans';
|
|
25
|
+
font-style: normal;
|
|
26
|
+
font-weight: 600;
|
|
27
|
+
font-weight: 600;
|
|
28
|
+
font-size: 16px;
|
|
29
|
+
color: #232F46;
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
.chat_content_wrap {
|
|
35
|
+
position: relative;
|
|
36
|
+
padding-bottom: 40px;
|
|
37
|
+
height: 100%;
|
|
38
|
+
.content_wrap {
|
|
39
|
+
padding: 16px;
|
|
40
|
+
height: 100%;
|
|
41
|
+
overflow: scroll;
|
|
42
|
+
font-family: 'Open Sans';
|
|
43
|
+
font-size: 14px;
|
|
44
|
+
font-weight: 400;
|
|
45
|
+
line-height: 22px;
|
|
46
|
+
&::-webkit-scrollbar-track {
|
|
47
|
+
background: transparent;
|
|
48
|
+
}
|
|
49
|
+
&::-webkit-scrollbar-corner {
|
|
50
|
+
background:transparent;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.messageOuterWrap {
|
|
54
|
+
margin-bottom: 20px;
|
|
55
|
+
.messageWrap {
|
|
56
|
+
position: relative;
|
|
57
|
+
width: fit-content;
|
|
58
|
+
max-width: 70%;
|
|
59
|
+
padding: 7px 14px;
|
|
60
|
+
.messageContentWrap {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
p {
|
|
64
|
+
margin-bottom: 0;
|
|
65
|
+
display: inline;
|
|
66
|
+
width: fit-content;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.msgIconWrap {
|
|
71
|
+
position: absolute;
|
|
72
|
+
right: -25px;
|
|
73
|
+
bottom: 0;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.userMessage {
|
|
78
|
+
display: flex;
|
|
79
|
+
justify-content: flex-end;
|
|
80
|
+
.messageWrap {
|
|
81
|
+
border-radius: 4px;
|
|
82
|
+
background: #E9F0FF;
|
|
83
|
+
color: #2F54EB;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
.assistantMessage {
|
|
87
|
+
.messageWrap {
|
|
88
|
+
border-radius: 4px;
|
|
89
|
+
background: #F5F6F7;
|
|
90
|
+
color: #232F46;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
.recent_response {
|
|
94
|
+
min-height: 36px;
|
|
95
|
+
max-width: 70%;
|
|
96
|
+
padding: 7px 14px;
|
|
97
|
+
background: #F5F6F7;
|
|
98
|
+
color: #232F46;
|
|
99
|
+
p {
|
|
100
|
+
margin-bottom: 0;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
.regenerate_btn {
|
|
105
|
+
display: flex;
|
|
106
|
+
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;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
.dialog_bottom {
|
|
122
|
+
position: relative;
|
|
123
|
+
font-size: 14px;
|
|
124
|
+
input {
|
|
125
|
+
padding-right: 60px !important;
|
|
126
|
+
}
|
|
127
|
+
.btn_wrap {
|
|
128
|
+
position: absolute;
|
|
129
|
+
right: 15px;
|
|
130
|
+
top: 0px;
|
|
131
|
+
width: 50px;
|
|
132
|
+
height: 36px;
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
justify-content: space-between;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|