@fonixtree/magic-design 1.0.5 → 1.0.7
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 +6 -7
- package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/es/common/LinkModal/index.js +6 -0
- package/es/common/ProductModal/index.js +4 -4
- 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/components/ProductItem/index.js +1 -1
- 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 +41 -37
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +37 -25
- package/es/composite-comp/dito/components/SignBoard/mobile/index.less +62 -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 +9 -47
- 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 +38 -1
- 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/Button/index.js +7 -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 +108 -372
- package/es/meta-comp/components/Text/index.less +57 -0
- package/es/meta-comp/config-panels/ButtonConfig/index.js +12 -12
- 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/es/utils/currencyUtil.js +8 -8
- 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 +6 -7
- package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/lib/common/LinkModal/index.js +6 -0
- package/lib/common/ProductModal/index.js +4 -4
- 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/components/ProductItem/index.js +1 -1
- 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 +41 -37
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +37 -25
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +62 -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 +9 -47
- 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 +38 -1
- 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/Button/index.js +7 -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 +108 -372
- package/lib/meta-comp/components/Text/index.less +57 -0
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +12 -12
- 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/lib/utils/currencyUtil.js +8 -8
- package/package.json +5 -1
- package/es/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/.DS_Store +0 -0
package/es/utils/commonUtil.js
CHANGED
|
@@ -7,13 +7,14 @@ exports.addZero = exports.addUrlQuery = void 0;
|
|
|
7
7
|
exports.asyncDataURLtoImage = asyncDataURLtoImage;
|
|
8
8
|
exports.checkFileName = exports.calcLastTime = exports.asyncNextTick = void 0;
|
|
9
9
|
exports.commonFetch = commonFetch;
|
|
10
|
+
exports.compatibleNewPageData = void 0;
|
|
10
11
|
exports.convertImageUrl = convertImageUrl;
|
|
11
12
|
exports.convertToRem = void 0;
|
|
12
13
|
exports.copy2ClipBoard = copy2ClipBoard;
|
|
13
14
|
exports.covertKey = covertKey;
|
|
14
|
-
exports.dragSource = void 0;
|
|
15
|
+
exports.dragSource = exports.downloadBase64Image = void 0;
|
|
15
16
|
exports.ensure = ensure;
|
|
16
|
-
exports.getColorRgba = void 0;
|
|
17
|
+
exports.getGAData = exports.getColorRgba = void 0;
|
|
17
18
|
exports.getPageDataMap = getPageDataMap;
|
|
18
19
|
exports.nextTick = exports.navigateTo = exports.importAsync = exports.getUrlParams = void 0;
|
|
19
20
|
exports.pushGA = pushGA;
|
|
@@ -28,10 +29,30 @@ var _axios = _interopRequireDefault(require("axios"));
|
|
|
28
29
|
|
|
29
30
|
var _lodash = require("lodash");
|
|
30
31
|
|
|
32
|
+
var _uuid = require("uuid");
|
|
33
|
+
|
|
31
34
|
var _qs = _interopRequireDefault(require("qs"));
|
|
32
35
|
|
|
36
|
+
var _constants = require("../constants");
|
|
37
|
+
|
|
33
38
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
34
39
|
|
|
40
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
41
|
+
__assign = Object.assign || function (t) {
|
|
42
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
43
|
+
s = arguments[i];
|
|
44
|
+
|
|
45
|
+
for (var p in s) {
|
|
46
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return t;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
return __assign.apply(this, arguments);
|
|
54
|
+
};
|
|
55
|
+
|
|
35
56
|
var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
|
|
36
57
|
function adopt(value) {
|
|
37
58
|
return value instanceof P ? value : new P(function (resolve) {
|
|
@@ -722,13 +743,18 @@ var asyncNextTick = function asyncNextTick(asyncFunc, interval, count) {
|
|
|
722
743
|
exports.asyncNextTick = asyncNextTick;
|
|
723
744
|
|
|
724
745
|
var convertToRem = function convertToRem(value) {
|
|
725
|
-
return value; // PTO项目 解开注释
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
746
|
+
// return value; // PTO项目 解开注释
|
|
747
|
+
if (window.magicDesign.device === 'pc') {
|
|
748
|
+
return value + "px";
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
var baseFont = ensure(function () {
|
|
752
|
+
return window.getComputedStyle(document.getElementsByTagName('html')[0]).fontSize.replace('px', '');
|
|
753
|
+
}, 50);
|
|
754
|
+
var pxValue = parseFloat(value);
|
|
755
|
+
var remValue = pxValue / baseFont; // 假设1rem = 50px
|
|
756
|
+
|
|
757
|
+
return remValue + "rem";
|
|
732
758
|
};
|
|
733
759
|
/** px to rem */
|
|
734
760
|
|
|
@@ -736,30 +762,126 @@ var convertToRem = function convertToRem(value) {
|
|
|
736
762
|
exports.convertToRem = convertToRem;
|
|
737
763
|
|
|
738
764
|
var pxToRem = function pxToRem(styleObj) {
|
|
739
|
-
return styleObj; // PTO项目 解开注释
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
765
|
+
// return styleObj; // PTO项目 解开注释
|
|
766
|
+
if (window.magicDesign.device === 'pc') {
|
|
767
|
+
return styleObj;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
var remObj = {};
|
|
771
|
+
|
|
772
|
+
for (var key in styleObj) {
|
|
773
|
+
if (styleObj.hasOwnProperty(key)) {
|
|
774
|
+
var value = styleObj[key];
|
|
775
|
+
|
|
776
|
+
if (typeof value === 'string' && value.endsWith('px')) {
|
|
777
|
+
remObj[key] = convertToRem(value.split('px')[0]);
|
|
778
|
+
} else if (typeof value === 'number') {
|
|
779
|
+
remObj[key] = ['opacity', 'lineHeight', 'zIndex', 'fontWeight'].includes(key) ? value : convertToRem(value);
|
|
780
|
+
} else if ((key === 'padding' || key === 'margin') && typeof value === 'string') {
|
|
781
|
+
var paddingValues = value.split(' ');
|
|
782
|
+
var remPaddingValues = paddingValues.map(function (paddingValue) {
|
|
783
|
+
return paddingValue.endsWith('px') ? convertToRem(paddingValue) : paddingValue;
|
|
784
|
+
});
|
|
785
|
+
remObj[key] = remPaddingValues.join(' ');
|
|
786
|
+
} else {
|
|
787
|
+
remObj[key] = value;
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
return remObj;
|
|
793
|
+
};
|
|
794
|
+
/**
|
|
795
|
+
* 处理新老数据兼容问题
|
|
796
|
+
* @param pageData 大JSON
|
|
797
|
+
*/
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
exports.pxToRem = pxToRem;
|
|
801
|
+
|
|
802
|
+
var compatibleNewPageData = function compatibleNewPageData(pageData) {
|
|
803
|
+
if (pageData.childNodes && pageData.childNodes.length > 0) {
|
|
804
|
+
pageData.childNodes.forEach(function (child) {
|
|
805
|
+
// 兼容新功能:banner 轮播的 dots 点 区分pc 移动
|
|
806
|
+
if (child.type === 'BANNER') {
|
|
807
|
+
if (!child.setting.dots.color.pc || !child.setting.dots.hoverColor.pc || !child.setting.dots.size.pc) {
|
|
808
|
+
child.setting.dots = __assign(__assign({}, child.setting.dots), {
|
|
809
|
+
color: {
|
|
810
|
+
pc: '#fff',
|
|
811
|
+
mobile: '#fff'
|
|
812
|
+
},
|
|
813
|
+
hoverColor: {
|
|
814
|
+
pc: '#fff',
|
|
815
|
+
mobile: '#fff'
|
|
816
|
+
},
|
|
817
|
+
size: {
|
|
818
|
+
pc: 16,
|
|
819
|
+
mobile: 8
|
|
820
|
+
},
|
|
821
|
+
hoverSize: {
|
|
822
|
+
pc: 16,
|
|
823
|
+
mobile: 8
|
|
824
|
+
}
|
|
825
|
+
});
|
|
826
|
+
}
|
|
827
|
+
} // 兼容新开发的功能: video新增播放按钮 的设置
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
if (child.type === 'VIDEO') {
|
|
831
|
+
// console.log('--compatibleNewPageData -- video ');
|
|
832
|
+
child.groupSource.forEach(function (group) {
|
|
833
|
+
if (!group.playIcon) {
|
|
834
|
+
group.playIcon = {
|
|
835
|
+
open: true,
|
|
836
|
+
parentId: group.id,
|
|
837
|
+
id: (0, _uuid.v4)(),
|
|
838
|
+
type: 'PLAY',
|
|
839
|
+
size: 48,
|
|
840
|
+
pcSize: 60,
|
|
841
|
+
iconType: 'light-playicon-01',
|
|
842
|
+
iconColor: 'Light'
|
|
843
|
+
};
|
|
844
|
+
}
|
|
845
|
+
}); // console.log('--compatibleNewPageData -- video add group.playIcon ', child.groupSource);
|
|
846
|
+
} // 兼容新功能:SEARCH 新增控制购物车和消息图标的开关
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
if (child.type === 'SEARCH') {
|
|
850
|
+
if (!child.content.icon.cartIcon || !child.content.icon.messageIcon) {
|
|
851
|
+
child.content.icon.cartIcon = {
|
|
852
|
+
pc: true,
|
|
853
|
+
mobile: false
|
|
854
|
+
};
|
|
855
|
+
child.content.icon.messageIcon = {
|
|
856
|
+
pc: false,
|
|
857
|
+
mobile: true
|
|
858
|
+
};
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
};
|
|
864
|
+
|
|
865
|
+
exports.compatibleNewPageData = compatibleNewPageData;
|
|
866
|
+
|
|
867
|
+
var getGAData = function getGAData(data) {
|
|
868
|
+
var _a;
|
|
869
|
+
|
|
870
|
+
return {
|
|
871
|
+
moduleId: data.id,
|
|
872
|
+
moduleName: data.moduleIndex + '.' + ((_a = _constants.compInfoMap[data.type]) === null || _a === void 0 ? void 0 : _a.name)
|
|
873
|
+
};
|
|
874
|
+
};
|
|
875
|
+
|
|
876
|
+
exports.getGAData = getGAData;
|
|
877
|
+
|
|
878
|
+
var downloadBase64Image = function downloadBase64Image(base64String, filename) {
|
|
879
|
+
// 创建一个虚拟的链接元素
|
|
880
|
+
var link = document.createElement('a');
|
|
881
|
+
link.href = base64String;
|
|
882
|
+
link.download = filename; // 模拟点击下载
|
|
883
|
+
|
|
884
|
+
link.click();
|
|
763
885
|
};
|
|
764
886
|
|
|
765
|
-
exports.
|
|
887
|
+
exports.downloadBase64Image = downloadBase64Image;
|
package/es/utils/coreUtil.js
CHANGED
|
@@ -303,9 +303,24 @@ var clickUrl = function clickUrl(url) {
|
|
|
303
303
|
|
|
304
304
|
var _b = data.params,
|
|
305
305
|
params = _b === void 0 ? {} : _b;
|
|
306
|
+
console.log('clicked data:', data);
|
|
307
|
+
console.log({
|
|
308
|
+
type: 'jumpBrowser',
|
|
309
|
+
params: {
|
|
310
|
+
url: params.link
|
|
311
|
+
}
|
|
312
|
+
});
|
|
306
313
|
|
|
307
|
-
if ((0, _androidUtil.browserVersion)().
|
|
314
|
+
if ((0, _androidUtil.browserVersion)().isAshitaApp) {
|
|
308
315
|
(0, _androidUtil.sendToApp)(data);
|
|
316
|
+
} else if ((0, _androidUtil.browserVersion)().isApp && params.link && params.link.startsWith('http')) {
|
|
317
|
+
// 兼容Nuri的 绝对路径跳转
|
|
318
|
+
(0, _androidUtil.sendToAndroid)({
|
|
319
|
+
type: 'jumpBrowser',
|
|
320
|
+
params: {
|
|
321
|
+
url: params.link
|
|
322
|
+
}
|
|
323
|
+
});
|
|
309
324
|
} else {
|
|
310
325
|
// 视频
|
|
311
326
|
if (params.type === 'VIDEO') {
|
|
@@ -319,10 +334,9 @@ var clickUrl = function clickUrl(url) {
|
|
|
319
334
|
if (params.type === 'GET_COUPON') {
|
|
320
335
|
getCoupon(params.couponId);
|
|
321
336
|
return;
|
|
322
|
-
}
|
|
323
|
-
|
|
337
|
+
}
|
|
324
338
|
|
|
325
|
-
if (params.type === 'SHARE_URL') {
|
|
339
|
+
if (params.type === 'SHARE_URL' || params.type === 'AFFILIATE_PRODUCT') {
|
|
326
340
|
if (window.magicDesign.handleAction) {
|
|
327
341
|
window.magicDesign.handleAction(params);
|
|
328
342
|
}
|
package/es/utils/currencyUtil.js
CHANGED
|
@@ -15,7 +15,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
15
15
|
|
|
16
16
|
/* eslint-disable */
|
|
17
17
|
var precision = (0, _commonUtil.ensure)(function () {
|
|
18
|
-
return window.
|
|
18
|
+
return window.systemParams.precision;
|
|
19
19
|
}, '0'); // 千分位展示
|
|
20
20
|
|
|
21
21
|
var addSeparators = function addSeparators(nStr, thousandsSep, decimalSep) {
|
|
@@ -42,7 +42,7 @@ exports.addSeparators = addSeparators;
|
|
|
42
42
|
|
|
43
43
|
var getPricePrefix = function getPricePrefix() {
|
|
44
44
|
var pricePrefix = (0, _commonUtil.ensure)(function () {
|
|
45
|
-
return window.
|
|
45
|
+
return window.systemParams.prefix;
|
|
46
46
|
}, 'Rp');
|
|
47
47
|
return pricePrefix;
|
|
48
48
|
};
|
|
@@ -51,7 +51,7 @@ exports.getPricePrefix = getPricePrefix;
|
|
|
51
51
|
|
|
52
52
|
var getPrecision = function getPrecision() {
|
|
53
53
|
var ret = (0, _commonUtil.ensure)(function () {
|
|
54
|
-
return window.
|
|
54
|
+
return window.systemParams.precision;
|
|
55
55
|
}, '0');
|
|
56
56
|
return Number(ret);
|
|
57
57
|
}; // 格式化金额
|
|
@@ -61,13 +61,13 @@ exports.getPrecision = getPrecision;
|
|
|
61
61
|
|
|
62
62
|
var formatCurrency = function formatCurrency(num) {
|
|
63
63
|
var displayPrecision = (0, _commonUtil.ensure)(function () {
|
|
64
|
-
return window.
|
|
64
|
+
return window.systemParams.displayCurrencyPrecision;
|
|
65
65
|
}, '0');
|
|
66
66
|
var precision = (0, _commonUtil.ensure)(function () {
|
|
67
|
-
return window.
|
|
67
|
+
return window.systemParams.precision;
|
|
68
68
|
}, '0');
|
|
69
69
|
var pricePrefix = (0, _commonUtil.ensure)(function () {
|
|
70
|
-
return window.
|
|
70
|
+
return window.systemParams.prefix;
|
|
71
71
|
}, 'Rp');
|
|
72
72
|
var numVal = num;
|
|
73
73
|
|
|
@@ -162,7 +162,7 @@ var currencyToFont = function currencyToFont(value, customPrecision, customDispl
|
|
|
162
162
|
precision = Number(customPrecision);
|
|
163
163
|
} else {
|
|
164
164
|
precision = (0, _commonUtil.ensure)(function () {
|
|
165
|
-
return window.
|
|
165
|
+
return window.systemParams.precision;
|
|
166
166
|
}, '0');
|
|
167
167
|
}
|
|
168
168
|
|
|
@@ -180,7 +180,7 @@ var currencyToFont = function currencyToFont(value, customPrecision, customDispl
|
|
|
180
180
|
displayPrecision = Number(customDisplayPrecision);
|
|
181
181
|
} else {
|
|
182
182
|
displayPrecision = (0, _commonUtil.ensure)(function () {
|
|
183
|
-
return window.
|
|
183
|
+
return window.systemParams.displayCurrencyPrecision;
|
|
184
184
|
}, 'Rp');
|
|
185
185
|
}
|
|
186
186
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "magic-box-iconfont"; /* Project id 3317752 */
|
|
3
|
-
src: url('magic-box-iconfont.woff2?t=
|
|
4
|
-
url('magic-box-iconfont.woff?t=
|
|
5
|
-
url('magic-box-iconfont.ttf?t=
|
|
3
|
+
src: url('magic-box-iconfont.woff2?t=1691480393512') format('woff2'),
|
|
4
|
+
url('magic-box-iconfont.woff?t=1691480393512') format('woff'),
|
|
5
|
+
url('magic-box-iconfont.ttf?t=1691480393512') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.magic-box-iconfont {
|
|
@@ -13,6 +13,70 @@
|
|
|
13
13
|
-moz-osx-font-smoothing: grayscale;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.magic-box-icon-ShoppingCartSimple1:before {
|
|
17
|
+
content: "\e680";
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.magic-box-icon-erweima:before {
|
|
21
|
+
content: "\e67f";
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.magic-box-icon-star:before {
|
|
25
|
+
content: "\e67d";
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.magic-box-icon-MapPin:before {
|
|
29
|
+
content: "\e67e";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.magic-box-icon-HTML:before {
|
|
33
|
+
content: "\e67c";
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.magic-box-icon-w-play-03:before {
|
|
37
|
+
content: "\e67b";
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.magic-box-icon-b-play-03:before {
|
|
41
|
+
content: "\e671";
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.magic-box-icon-select2:before {
|
|
45
|
+
content: "\e67a";
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.magic-box-icon-b-play-02:before {
|
|
49
|
+
content: "\e672";
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.magic-box-icon-b-play-05:before {
|
|
53
|
+
content: "\e673";
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.magic-box-icon-b-play-01:before {
|
|
57
|
+
content: "\e674";
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.magic-box-icon-w-play-01:before {
|
|
61
|
+
content: "\e675";
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.magic-box-icon-w-play-04:before {
|
|
65
|
+
content: "\e676";
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.magic-box-icon-w-play-02:before {
|
|
69
|
+
content: "\e677";
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.magic-box-icon-b-play-04:before {
|
|
73
|
+
content: "\e678";
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.magic-box-icon-w-play-05:before {
|
|
77
|
+
content: "\e679";
|
|
78
|
+
}
|
|
79
|
+
|
|
16
80
|
.magic-box-icon-ListBullets02:before {
|
|
17
81
|
content: "\e670";
|
|
18
82
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "magic-box-iconfont"; /* Project id 3317752 */
|
|
3
|
-
src: url('magic-box-iconfont.woff2?t=
|
|
4
|
-
url('magic-box-iconfont.woff?t=
|
|
5
|
-
url('magic-box-iconfont.ttf?t=
|
|
3
|
+
src: url('magic-box-iconfont.woff2?t=1691480393512') format('woff2'),
|
|
4
|
+
url('magic-box-iconfont.woff?t=1691480393512') format('woff'),
|
|
5
|
+
url('magic-box-iconfont.ttf?t=1691480393512') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.magic-box-iconfont {
|
|
@@ -13,6 +13,70 @@
|
|
|
13
13
|
-moz-osx-font-smoothing: grayscale;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.icon-ShoppingCartSimple1:before {
|
|
17
|
+
content: "\e680";
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.icon-erweima:before {
|
|
21
|
+
content: "\e67f";
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.icon-star:before {
|
|
25
|
+
content: "\e67d";
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.icon-MapPin:before {
|
|
29
|
+
content: "\e67e";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.icon-HTML:before {
|
|
33
|
+
content: "\e67c";
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.icon-w-play-03:before {
|
|
37
|
+
content: "\e67b";
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.icon-b-play-03:before {
|
|
41
|
+
content: "\e671";
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.icon-select2:before {
|
|
45
|
+
content: "\e67a";
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.icon-b-play-02:before {
|
|
49
|
+
content: "\e672";
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.icon-b-play-05:before {
|
|
53
|
+
content: "\e673";
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.icon-b-play-01:before {
|
|
57
|
+
content: "\e674";
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.icon-w-play-01:before {
|
|
61
|
+
content: "\e675";
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.icon-w-play-04:before {
|
|
65
|
+
content: "\e676";
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.icon-w-play-02:before {
|
|
69
|
+
content: "\e677";
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.icon-b-play-04:before {
|
|
73
|
+
content: "\e678";
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.icon-w-play-05:before {
|
|
77
|
+
content: "\e679";
|
|
78
|
+
}
|
|
79
|
+
|
|
16
80
|
.icon-ListBullets02:before {
|
|
17
81
|
content: "\e670";
|
|
18
82
|
}
|